Skip to content

Commit 7b273fb

Browse files
committed
Minor cleanup
1 parent 191c504 commit 7b273fb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

include/fmt/base.h

+2-4
Original file line numberDiff line numberDiff line change
@@ -1722,14 +1722,12 @@ class format_string_checker {
17221722
// If id is out of range, it means we do not know the type and cannot parse
17231723
// the format at compile time. Instead, skip over content until we finish
17241724
// the format spec, accounting for any nested replacements.
1725-
auto bracket_count = 0;
1726-
while (begin != end && (bracket_count > 0 || *begin != '}')) {
1725+
for (int bracket_count = 0;
1726+
begin != end && (bracket_count > 0 || *begin != '}'); ++begin) {
17271727
if (*begin == '{')
17281728
++bracket_count;
17291729
else if (*begin == '}')
17301730
--bracket_count;
1731-
1732-
++begin;
17331731
}
17341732
return begin;
17351733
}

0 commit comments

Comments
 (0)