data.resize(dstEnd - data.begin());
}
catch(const utf8::exception &e) {
- debug(String("String::copyFromUTF8() - UTF8-CPP error: ") + e.what());
+ const String message(e.what());
+ debug("String::copyFromUTF8() - UTF8-CPP error: " + message);
data.clear();
}
}
v.resize(static_cast<unsigned int>(dstEnd - v.begin()));
}
catch(const utf8::exception &e) {
- debug(String("String::data() - UTF8-CPP error: ") + e.what());
+ const String message(e.what());
+ debug("String::data() - UTF8-CPP error: " + message);
v.clear();
}