No need to clear empty strings
This commit is contained in:
parent
cc987d8ff5
commit
bd45c71d8d
|
@ -236,8 +236,8 @@ bool TokenList::createTokens(std::istream &code, const std::string& file0)
|
||||||
if (!CurrentToken.empty()) {
|
if (!CurrentToken.empty()) {
|
||||||
addtoken(CurrentToken, lineno, FileIndex, true);
|
addtoken(CurrentToken, lineno, FileIndex, true);
|
||||||
_back->isExpandedMacro(expandedMacro);
|
_back->isExpandedMacro(expandedMacro);
|
||||||
|
CurrentToken.clear();
|
||||||
}
|
}
|
||||||
CurrentToken.clear();
|
|
||||||
expandedMacro = true;
|
expandedMacro = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -352,10 +352,9 @@ bool TokenList::createTokens(std::istream &code, const std::string& file0)
|
||||||
if (!CurrentToken.empty()) {
|
if (!CurrentToken.empty()) {
|
||||||
_back->isExpandedMacro(expandedMacro);
|
_back->isExpandedMacro(expandedMacro);
|
||||||
expandedMacro = false;
|
expandedMacro = false;
|
||||||
|
CurrentToken.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
CurrentToken.clear();
|
|
||||||
|
|
||||||
if (ch == '\n') {
|
if (ch == '\n') {
|
||||||
if (_settings->terminated())
|
if (_settings->terminated())
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue