util: clang-tidy

This commit is contained in:
Austin Horstman
2024-07-02 10:30:04 -05:00
parent 14c3235c12
commit d66685a3aa
9 changed files with 54 additions and 48 deletions

View File

@@ -2,8 +2,8 @@
int ustring_clen(const Glib::ustring &str) {
int total = 0;
for (auto i = str.begin(); i != str.end(); ++i) {
total += g_unichar_iswide(*i) + 1;
for (unsigned int i : str) {
total += g_unichar_iswide(i) + 1;
}
return total;
}
}