mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-04 06:01:56 -07:00
fix compiler warning
This commit is contained in:
@@ -1071,7 +1071,7 @@ void CConfigManager::parseLine(std::string& line) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
size_t startPos = 0;
|
size_t startPos = 0;
|
||||||
while ((startPos = line.find("##", startPos)) != std::string::npos) {
|
while (startPos < line.length() - 1 && (startPos = line.find("##", startPos)) != std::string::npos) {
|
||||||
line.replace(startPos, 2, "#");
|
line.replace(startPos, 2, "#");
|
||||||
startPos++;
|
startPos++;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user