QMimeBinaryProvider::loadMimeTypePrivate(): avoid an unneeded QStringRef -> QString conversion
Change-Id: Id6baae4b710fd9aa8bdc4721dbe64e2d881163bb Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
parent
c977c687cb
commit
948e88dab2
@ -591,7 +591,7 @@ void QMimeBinaryProvider::loadMimeTypePrivate(QMimeTypePrivate &data)
|
||||
if (xml.name() != QLatin1String("mime-type")) {
|
||||
continue;
|
||||
}
|
||||
const QString name = xml.attributes().value(QLatin1String("type")).toString();
|
||||
const QStringRef name = xml.attributes().value(QLatin1String("type"));
|
||||
if (name.isEmpty())
|
||||
continue;
|
||||
if (name != data.name) {
|
||||
|
Loading…
Reference in New Issue
Block a user