mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-05-28 00:30:23 -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());
|
||||
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<const KZipFileEntry*>(entry);
|
||||
|
@ -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<const KZipFileEntry*>(entry);
|
||||
|
Loading…
Reference in New Issue
Block a user