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;
|
auto it = start;
|
||||||
while (it != end) {
|
while (it != end) {
|
||||||
if (!detail::find<false, Char>(it, end, '%', it)) {
|
if (!detail::find<false, Char>(it, end, '%', it)) {
|
||||||
it = end;
|
it = end; // detail::find leaves it == nullptr if it doesn't find '%'
|
||||||
}
|
break;
|
||||||
if (it == end) {
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
char_type c = *it++;
|
char_type c = *it++;
|
||||||
if (it != end && *it == c) {
|
if (it != end && *it == c) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user