Core: Remove one IEditorFactory::addMimeType overload

Not overly useful in the times of QT_RESTRICTED_CAST_FROM_ASCII

Change-Id: I87032b1da9cc4e8205d2a9c8596bc9ba832acf30
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2020-02-06 08:11:13 +01:00
parent 582b0216c6
commit 0b1a463c47
4 changed files with 3 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ ImageViewerFactory::ImageViewerFactory()
const QList<QByteArray> supportedMimeTypes = QImageReader::supportedMimeTypes();
for (const QByteArray &format : supportedMimeTypes)
addMimeType(format.constData());
addMimeType(QString::fromLatin1(format));
}
} // namespace Internal