Prefer empty braces to semicolons for empty loop bodies

This commit is contained in:
Rangi42
2025-01-17 00:20:33 -05:00
parent a85d6b3b57
commit fac5e35d24
3 changed files with 5 additions and 10 deletions

View File

@@ -2577,8 +2577,7 @@ static size_t charlenUTF8(std::string const &str) {
std::string_view view = str;
size_t len;
for (len = 0; charmap_ConvertNext(view, nullptr); len++)
;
for (len = 0; charmap_ConvertNext(view, nullptr); len++) {}
return len;
}