Fix gcc 13 fatal warning: emplace_back() rather than append()

Fixes: QTBUG-116763
Pick-to: 6.6
Change-Id: Ie7c897deb14fcd1ff27277892f0c5a151ff63b41
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
Shawn Rutledge 2023-09-18 15:07:18 +02:00
parent 60d6051490
commit 300614a170

View File

@ -104,7 +104,7 @@ QList<QByteArray> supportedMimeTypes(Capability cap)
QList<QByteArray> mimeTypes;
mimeTypes.reserve(_qt_NumFormats);
for (const auto &fmt : _qt_BuiltInFormats)
mimeTypes.append(imagePrefix() + fmt.mimeType);
mimeTypes.emplace_back(imagePrefix() + fmt.mimeType);
#ifndef QT_NO_IMAGEFORMATPLUGIN
appendImagePluginMimeTypes(irhLoader(), pluginCapability(cap), &mimeTypes);