Use QStringLiteral instead of QString::fromLatin1

The value is returned, so it would be converted to QString anyway.
This saves the allocation.

Change-Id: I1a4ec4e16bccdd23e662be9b3dd7f8f09b4197ee
Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
This commit is contained in:
Frederik Gladhorn 2018-12-10 10:20:48 +01:00
parent 9ee6eed572
commit f3b980a253

View File

@ -2180,7 +2180,7 @@ void QFont::cacheStatistics()
*/ */
QString QFont::lastResortFamily() const QString QFont::lastResortFamily() const
{ {
return QString::fromLatin1("helvetica"); return QStringLiteral("helvetica");
} }
#endif #endif