COMMON: Fix additional compilation errors in U32String

This commit is contained in:
Thierry Crozat 2020-10-31 21:32:36 +00:00
parent e7476495ab
commit d2251bde1c

View File

@ -133,13 +133,13 @@ U32String operator+(const U32String &x, const uint32 y) {
void U32String::insertString(const char *s, uint32 p) {
while (*s != '\0') {
BaseString::insertChar(*s++, p++);
BaseString<u32char_type_t>::insertChar(*s++, p++);
}
}
void U32String::insertString(const String &s, uint32 p) {
for (uint32 i = 0; i < s.size(); ++i) {
BaseString::insertChar(s[i], p++);
BaseString<u32char_type_t>::insertChar(s[i], p++);
}
}