replace unnecessary continue with break, get rid of now redundant it == end check
This commit is contained in:
parent
e66299973b
commit
0698d10953
@ -475,10 +475,8 @@ OutputIt basic_printf_context<OutputIt, Char>::format() {
|
||||
auto it = start;
|
||||
while (it != end) {
|
||||
if (!detail::find<false, Char>(it, end, '%', it)) {
|
||||
it = end;
|
||||
}
|
||||
if (it == end) {
|
||||
continue;
|
||||
it = end; // detail::find leaves it == nullptr if it doesn't find '%'
|
||||
break;
|
||||
}
|
||||
char_type c = *it++;
|
||||
if (it != end && *it == c) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user