From 0de74e919182122b2dde62d179685bb1e3cb05bc Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 7 Mar 2013 15:47:27 +0100 Subject: [PATCH] Fix QString usage in createPixmapDataSync(). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Warning introduced by 707bbe5dea9d7398b205124a54422f2fafb6f151 . Change-Id: I20f0da00ea519cc2ec82a1d13f1887c099a3947c Reviewed-by: Morten Johan Sørvig --- src/quick/util/qquickpixmapcache.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/quick/util/qquickpixmapcache.cpp b/src/quick/util/qquickpixmapcache.cpp index d5ef4b7..c5968c2 100644 --- a/src/quick/util/qquickpixmapcache.cpp +++ b/src/quick/util/qquickpixmapcache.cpp @@ -1022,10 +1022,10 @@ static QQuickPixmapData* createPixmapDataSync(QQuickPixmap *declarativePixmap, Q // check for "retina" high-dpi and use @2x file if it exixts if (qApp->devicePixelRatio() > 1) { - int dotIndex = localFile.lastIndexOf(QStringLiteral(".")); + const int dotIndex = localFile.lastIndexOf(QLatin1Char('.')); if (dotIndex != -1) { QString retinaFile = localFile; - retinaFile.insert(dotIndex, "@2x"); + retinaFile.insert(dotIndex, QStringLiteral("@2x")); if (QFile(retinaFile).exists()) localFile = retinaFile; } -- 1.7.2.5