Skip to content

Commit 228685f

Browse files
committed
[CEXT-Dan#292] improve expandPercents
1 parent 48bf373 commit 228685f

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

PyRxCore/PyAcRx.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,9 @@ class py_redirector
5151
result.reserve(size_t(input.size() * 1.25));
5252
for (char c : input)
5353
{
54-
bool flag = false;
55-
if (c == '%')
56-
{
57-
flag = true;
58-
}
5954
result += c;
60-
if (flag)
61-
{
55+
if (c == '%')
6256
result += '%';
63-
flag = false;
64-
}
6557
}
6658
return result;
6759
}

0 commit comments

Comments
 (0)