diff options
author | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2018-12-10 10:20:48 +0100 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2018-12-20 12:40:14 +0000 |
commit | f3b980a25339c2d7db71eb9dd125d7d14df05fc6 (patch) | |
tree | f0ab178a5305fcb3933a14e43052a5814fdc1735 /src/gui/text/qfont.cpp | |
parent | 9ee6eed572df76b60248153cf16febd6156ad006 (diff) |
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>
Diffstat (limited to 'src/gui/text/qfont.cpp')
-rw-r--r-- | src/gui/text/qfont.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qfont.cpp b/src/gui/text/qfont.cpp index 38462c6e24..d879836572 100644 --- a/src/gui/text/qfont.cpp +++ b/src/gui/text/qfont.cpp @@ -2180,7 +2180,7 @@ void QFont::cacheStatistics() */ QString QFont::lastResortFamily() const { - return QString::fromLatin1("helvetica"); + return QStringLiteral("helvetica"); } #endif |