mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-06-03 17:08:08 -04:00
QStringLiteral is a bit faster here
This commit is contained in:
parent
c0656c5181
commit
4692a34a1c
@ -39,7 +39,7 @@ bool KraHandler::read(QImage *image)
|
|||||||
KZip zip(device());
|
KZip zip(device());
|
||||||
if (!zip.open(QIODevice::ReadOnly)) return false;
|
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;
|
if (!entry || !entry->isFile()) return false;
|
||||||
|
|
||||||
const KZipFileEntry* fileZipEntry = static_cast<const KZipFileEntry*>(entry);
|
const KZipFileEntry* fileZipEntry = static_cast<const KZipFileEntry*>(entry);
|
||||||
|
@ -38,7 +38,7 @@ bool OraHandler::read(QImage *image)
|
|||||||
KZip zip(device());
|
KZip zip(device());
|
||||||
if (!zip.open(QIODevice::ReadOnly)) return false;
|
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;
|
if (!entry || !entry->isFile()) return false;
|
||||||
|
|
||||||
const KZipFileEntry* fileZipEntry = static_cast<const KZipFileEntry*>(entry);
|
const KZipFileEntry* fileZipEntry = static_cast<const KZipFileEntry*>(entry);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user