From a070328c8985a56f9d53af220b0823c8500b9c6c Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Fri, 21 Mar 2025 10:39:27 +0100 Subject: [PATCH] QmlDesigner: Ancient compiler workaround Change-Id: I5ec44065023aa200e1e6194a050d2e0fe5328afb Reviewed-by: Tim Jenssen --- .../projectstorage/projectstorageupdater.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins/qmldesigner/libs/designercore/projectstorage/projectstorageupdater.cpp b/src/plugins/qmldesigner/libs/designercore/projectstorage/projectstorageupdater.cpp index 9089efc8c27..e9a26edd133 100644 --- a/src/plugins/qmldesigner/libs/designercore/projectstorage/projectstorageupdater.cpp +++ b/src/plugins/qmldesigner/libs/designercore/projectstorage/projectstorageupdater.cpp @@ -114,11 +114,11 @@ ProjectStorageUpdater::Components createComponents( for (const QQmlDirParser::Component &qmlDirParserComponent : qmlDirParserComponents) { if (qmlDirParserComponent.fileName.contains('/')) continue; - components.emplace_back(qmlDirParserComponent.fileName, - qmlDirParserComponent.typeName, - moduleId, - qmlDirParserComponent.version.majorVersion(), - qmlDirParserComponent.version.minorVersion()); + components.push_back({qmlDirParserComponent.fileName, + qmlDirParserComponent.typeName, + moduleId, + qmlDirParserComponent.version.majorVersion(), + qmlDirParserComponent.version.minorVersion()}); } return components;