QLocale(Win): fix pessimizing use of QStringBuilder

Instead of

   result += QString(string builder expression);

forcing a QString creation incl. memory allocation, do

   result += string builder expression;

using the overloaded QString += QStringBuilder operator.

Change-Id: I23023c76620fa6bb7bf9f2786c22f6a2ec0d87c2
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
bb10
Marc Mutz 2017-01-31 00:43:07 +01:00
parent 714100f631
commit d258d6962a
1 changed files with 1 additions and 1 deletions

View File

@ -691,7 +691,7 @@ QString QSystemLocalePrivate::winToQtFormat(const QString &sys_fmt)
if (text == QLatin1String("'"))
result += QLatin1String("''");
else
result += QString(QLatin1Char('\'') + text + QLatin1Char('\''));
result += QLatin1Char('\'') + text + QLatin1Char('\'');
continue;
}