From 4692a34a1cc8b4f2265d5502e55c846cc6fb7253 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Fri, 8 Mar 2019 15:18:09 +0100 Subject: [PATCH] QStringLiteral is a bit faster here --- src/imageformats/kra.cpp | 2 +- src/imageformats/ora.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/imageformats/kra.cpp b/src/imageformats/kra.cpp index ceac73e..f4e8f28 100644 --- a/src/imageformats/kra.cpp +++ b/src/imageformats/kra.cpp @@ -39,7 +39,7 @@ bool KraHandler::read(QImage *image) KZip zip(device()); if (!zip.open(QIODevice::ReadOnly)) return false; - const KArchiveEntry *entry = zip.directory()->entry(QLatin1String("mergedimage.png")); + const KArchiveEntry *entry = zip.directory()->entry(QStringLiteral("mergedimage.png")); if (!entry || !entry->isFile()) return false; const KZipFileEntry* fileZipEntry = static_cast(entry); diff --git a/src/imageformats/ora.cpp b/src/imageformats/ora.cpp index 4e5a11e..ad05d9f 100644 --- a/src/imageformats/ora.cpp +++ b/src/imageformats/ora.cpp @@ -38,7 +38,7 @@ bool OraHandler::read(QImage *image) KZip zip(device()); if (!zip.open(QIODevice::ReadOnly)) return false; - const KArchiveEntry *entry = zip.directory()->entry(QLatin1String("mergedimage.png")); + const KArchiveEntry *entry = zip.directory()->entry(QStringLiteral("mergedimage.png")); if (!entry || !entry->isFile()) return false; const KZipFileEntry* fileZipEntry = static_cast(entry);