mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 07:29:20 +02: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 (token.empty() && mStream->peek() != EOF) {
|
||||
if (token.empty() && hasChar()) {
|
||||
// readToken will not re-enter BOM stripping because mFirstToken is now false
|
||||
readToken(token, ToLower, Break);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user