QImageWriter: use new QJsonObject::value(QLatin1String)

Allows to get rid of some QStringLiterals, reducing QtGui
text size by ~200b.

Change-Id: I0f3a84c1c8ee6771d8e1f2c6284d314b3fc0c28a
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
This commit is contained in:
Marc Mutz 2016-04-28 09:51:24 +02:00
parent f5aa65349c
commit e54c74e3f0

View File

@ -854,9 +854,9 @@ void supportedImageHandlerMimeTypes(QFactoryLoader *loader,
const int pluginCount = metaDataList.size();
for (int i = 0; i < pluginCount; ++i) {
const QJsonObject metaData = metaDataList.at(i).value(QStringLiteral("MetaData")).toObject();
const QJsonArray keys = metaData.value(QStringLiteral("Keys")).toArray();
const QJsonArray mimeTypes = metaData.value(QStringLiteral("MimeTypes")).toArray();
const QJsonObject metaData = metaDataList.at(i).value(QLatin1String("MetaData")).toObject();
const QJsonArray keys = metaData.value(QLatin1String("Keys")).toArray();
const QJsonArray mimeTypes = metaData.value(QLatin1String("MimeTypes")).toArray();
QImageIOPlugin *plugin = qobject_cast<QImageIOPlugin *>(loader->instance(i));
const int keyCount = keys.size();
for (int k = 0; k < keyCount; ++k) {