17
0
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:
jerrrrycho
2026-10-11 13:21:40 +02:00
parent 00f33e592a
commit e32e799e45

View File

@@ -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);
}