]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/qt_helpers.C
This commit is a big rework of the FontLoader/FontMetrics interaction. Only Qt4 for...
[features.git] / src / frontends / qt4 / qt_helpers.C
index 3f419624f38839979c434ed338ddfff3fcbbc228..394c13341d5384b05946f2e9bfaec452bf1f17ac 100644 (file)
@@ -123,6 +123,7 @@ QString const toqstr(string const & str)
 QString const ucs4_to_qstring(char_type const * str, size_t ls)
 {
        QString s;
+       s.reserve(ls);
 
        for (size_t i = 0; i < ls; ++i)
                s.append(ucs4_to_qchar(str[i]));