diff --git a/src/plugins/qmlprofiler/tests/qmlprofilerdetailsrewriter_test.cpp b/src/plugins/qmlprofiler/tests/qmlprofilerdetailsrewriter_test.cpp index d0a60c60da5..a6c57efa09f 100644 --- a/src/plugins/qmlprofiler/tests/qmlprofilerdetailsrewriter_test.cpp +++ b/src/plugins/qmlprofiler/tests/qmlprofilerdetailsrewriter_test.cpp @@ -213,8 +213,9 @@ void QmlProfilerDetailsRewriterTest::seedRewriter() QFutureInterface result; QmlJS::PathsAndLanguages lPaths; - for (auto p : QLibraryInfo::location(QLibraryInfo::Qml2ImportsPath)) - lPaths.maybeInsert(Utils::FileName::fromString(p), QmlJS::Dialect::Qml); + lPaths.maybeInsert( + Utils::FileName::fromString(QLibraryInfo::location(QLibraryInfo::Qml2ImportsPath)), + QmlJS::Dialect::Qml); QmlJS::ModelManagerInterface::importScan(result, QmlJS::ModelManagerInterface::workingCopy(), lPaths, m_modelManager, false);