diff --git a/src/plugins/qmldesigner/designercore/projectstorage/qmltypesparser.cpp b/src/plugins/qmldesigner/designercore/projectstorage/qmltypesparser.cpp index 10363150dc1..104338e514b 100644 --- a/src/plugins/qmldesigner/designercore/projectstorage/qmltypesparser.cpp +++ b/src/plugins/qmldesigner/designercore/projectstorage/qmltypesparser.cpp @@ -9,6 +9,8 @@ #include +#include + #ifdef QDS_BUILD_QMLPARSER #include #include @@ -469,9 +471,9 @@ using namespace Qt::StringLiterals; constexpr auto skipLists = std::make_tuple( std::pair{"QtQuick.Templates-cppnative"sv, std::array{"QQuickItem"_L1}}); -std::span getSkipList(std::string_view moduleName) +Utils::span getSkipList(std::string_view moduleName) { - static constexpr std::span emptySkipList; + static constexpr Utils::span emptySkipList; auto currentSkipList = emptySkipList; std::apply( @@ -484,7 +486,7 @@ std::span getSkipList(std::string_view moduleName) return currentSkipList; } -bool skipType(const QQmlJSExportedScope &object, std::span skipList) +bool skipType(const QQmlJSExportedScope &object, Utils::span skipList) { return std::any_of(skipList.begin(), skipList.end(), [&](const QLatin1StringView skip) { return object.scope->internalName() == skip;