Merge branch 'reserve_utf8_stream' into 'master'

Reserve the output buffer in lowerCaseUtf8

See merge request OpenMW/openmw!2370
crashfix_debugdraw
psi29a 2 years ago
commit a5664d7ba9

@ -129,6 +129,7 @@ public:
// Decode string as utf8 characters, convert to lower case and pack them to string
std::string out;
out.reserve(str.length());
Utf8Stream stream (str);
while (!stream.eof ())
{

Loading…
Cancel
Save