replace unnecessary continue with break, get rid of now redundant it == end check

This commit is contained in:
rimathia 2020-11-08 19:12:43 +01:00
parent e66299973b
commit 0698d10953

View File

@ -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) {