QLocale: replace use of append(QString(n, c)) with resize(size() + n, c)
Avoids a temporary QString creation. Change-Id: Ibc87a3f1bf2979780e4a2cce7e1757f97c39a9be Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
795df9cdda
commit
a6bca753c9
@ -3565,7 +3565,7 @@ QString QCalendarBackend::dateTimeToString(QStringView format, const QDateTime &
|
||||
}
|
||||
}
|
||||
if (!used)
|
||||
result.append(QString(repeat, c));
|
||||
result.resize(result.size() + repeat, c);
|
||||
i += repeat;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user