Add explicit switch fallthroughs in convertUTF.h

master
jcdr428 2022-01-09 00:58:17 +01:00
parent fa1333a6f9
commit e970b9372b
1 changed files with 5 additions and 0 deletions

View File

@ -181,18 +181,23 @@ void IterateUTF8Chars(const std::string& utf8String, Fn f)
case 5:
ch += get_as_uchar();
ch <<= 6;
[[fallthrough]];
case 4:
ch += get_as_uchar();
ch <<= 6;
[[fallthrough]];
case 3:
ch += get_as_uchar();
ch <<= 6;
[[fallthrough]];
case 2:
ch += get_as_uchar();
ch <<= 6;
[[fallthrough]];
case 1:
ch += get_as_uchar();
ch <<= 6;
[[fallthrough]];
case 0:
ch += get_as_uchar();
}