aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmllint/findwarnings.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-09-24 13:23:32 +0200
committerUlf Hermann <ulf.hermann@qt.io>2020-09-25 15:21:41 +0200
commit88fd9c3996fd0280be639ad116ebc3a1b30ae0c4 (patch)
tree24fa1ece436e8394869f078380d1c6a366d0e521 /tools/qmllint/findwarnings.h
parent25a1ad9b654a9a7b0b04d8b63a020162c18b5e20 (diff)
qmllint: Keep scopes mutable until all the imports are resolved
Change-Id: I48601019d0e200eae9d52c3a9db45913cdd9d0f8 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools/qmllint/findwarnings.h')
-rw-r--r--tools/qmllint/findwarnings.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/qmllint/findwarnings.h b/tools/qmllint/findwarnings.h
index 315c72aa47..edc4d46272 100644
--- a/tools/qmllint/findwarnings.h
+++ b/tools/qmllint/findwarnings.h
@@ -82,16 +82,16 @@ private:
private:
struct Import {
- QHash<QString, ScopeTree::ConstPtr> objects;
+ QHash<QString, ScopeTree::Ptr> objects;
QList<QQmlDirParser::Import> imports;
QList<QQmlDirParser::Component> dependencies;
- QList<QPair<QString, ScopeTree::ConstPtr>> scripts;
+ QList<QPair<QString, ScopeTree::Ptr>> scripts;
};
void importHelper(const QString &module, const QString &prefix = QString(),
QTypeRevision version = QTypeRevision());
void processImport(const QString &prefix, const Import &import, QTypeRevision version);
- void readQmltypes(const QString &filename, QHash<QString, ScopeTree::ConstPtr> *objects);
+ void readQmltypes(const QString &filename, QHash<QString, ScopeTree::Ptr> *objects);
Import readQmldir(const QString &dirname);
ScopeTree::Ptr localFile2ScopeTree(const QString &filePath);