mirror of
https://github.com/hyprwm/hyprlang.git
synced 2026-05-08 08:58:01 +02:00
Use foreach loop.
This commit is contained in:
parent
884462a5a4
commit
ad82cd1027
1 changed files with 2 additions and 2 deletions
|
|
@ -710,8 +710,8 @@ CParseResult CConfig::parseLine(std::string line, bool dynamic) {
|
|||
continue;
|
||||
}
|
||||
//checks if any of the chars were escapable.
|
||||
for (size_t j = 0; j < ESCAPE_SET.size(); j++) {
|
||||
if (RHS.at(i + 1) != ESCAPE_SET[j])
|
||||
for (const auto& ESCAPABLE_CHAR : ESCAPE_SET) {
|
||||
if (RHS.at(i + 1) != ESCAPABLE_CHAR)
|
||||
continue;
|
||||
RHS.erase(i--, 1);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue