mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-11-29 12:31:58 +03:00
fix compiler warning
This commit is contained in:
parent
65db3a7bd3
commit
a71f44baa5
@ -1071,7 +1071,7 @@ void CConfigManager::parseLine(std::string& line) {
|
||||
}
|
||||
|
||||
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, "#");
|
||||
startPos++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user