mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-05 01:55:43 +01:00
refactor(sonar): hasChar revert
This commit is contained in:
@@ -426,7 +426,7 @@ void cParser::stripFirstTokenBOM(std::string& token, bool ToLower, const char* B
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if first "token" was standalone BOM, read the next real token (avoid recursion)
|
// if first "token" was standalone BOM, read the next real token (avoid recursion)
|
||||||
if (token.empty() && mStream->peek() != EOF) {
|
if (token.empty() && hasChar()) {
|
||||||
// readToken will not re-enter BOM stripping because mFirstToken is now false
|
// readToken will not re-enter BOM stripping because mFirstToken is now false
|
||||||
readToken(token, ToLower, Break);
|
readToken(token, ToLower, Break);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user