Tokenizer: Simplify '->' to '.'
This commit is contained in:
parent
bc12a0b21f
commit
7bd0bc7534
|
@ -1803,9 +1803,7 @@ void Tokenizer::combineOperators()
|
||||||
const bool cpp = isCPP();
|
const bool cpp = isCPP();
|
||||||
|
|
||||||
// Combine tokens..
|
// Combine tokens..
|
||||||
for (Token *tok = list.front();
|
for (Token *tok = list.front(); tok && tok->next(); tok = tok->next()) {
|
||||||
tok && tok->next();
|
|
||||||
tok = tok->next()) {
|
|
||||||
const char c1 = tok->str()[0];
|
const char c1 = tok->str()[0];
|
||||||
|
|
||||||
if (tok->str().length() == 1 && tok->next()->str().length() == 1) {
|
if (tok->str().length() == 1 && tok->next()->str().length() == 1) {
|
||||||
|
@ -1870,6 +1868,9 @@ void Tokenizer::combineOperators()
|
||||||
tok->str(tok->str() + ":");
|
tok->str(tok->str() + ":");
|
||||||
tok->deleteNext();
|
tok->deleteNext();
|
||||||
}
|
}
|
||||||
|
} else if (tok->str() == "->") {
|
||||||
|
tok->str(".");
|
||||||
|
tok->originalName("->");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue