aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2013-03-07 15:47:27 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-12 14:25:37 +0100
commit0de74e919182122b2dde62d179685bb1e3cb05bc (patch)
tree7b75362076d8ff9a471f55d7444cacbda2016e94
parentfd4a811af84331813b2264229155d32885d4463e (diff)
Fix QString usage in createPixmapDataSync().
Warning introduced by 707bbe5dea9d7398b205124a54422f2fafb6f151 . Change-Id: I20f0da00ea519cc2ec82a1d13f1887c099a3947c Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
-rw-r--r--src/quick/util/qquickpixmapcache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/util/qquickpixmapcache.cpp b/src/quick/util/qquickpixmapcache.cpp
index d5ef4b767f..c5968c2bc1 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;
}