aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmllint/importedmembersvisitor.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-03-31 15:46:20 +0200
committerUlf Hermann <ulf.hermann@qt.io>2020-04-01 10:29:29 +0200
commiteb5aa8d9c18535ecd0aacc42fe3af954faf01c04 (patch)
treeee76e6358c9ae18fcdce6a6ae4fead3173ea6780 /tools/qmllint/importedmembersvisitor.h
parenta88e5c1711bbef1af00ca9a9e0db71b8a24223aa (diff)
qmllint: Consistently use shared pointers for ScopeTree
ScopeTree keeps a weak pointer to its parent scope and strong shared pointers to its children. Avoid passing bare pointers around, so that we cannot create multiple shared pointers independently from the same bare pointer. Change-Id: Id0faece550b1878363004d843a8fa5c1164794ae Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools/qmllint/importedmembersvisitor.h')
-rw-r--r--tools/qmllint/importedmembersvisitor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qmllint/importedmembersvisitor.h b/tools/qmllint/importedmembersvisitor.h
index 793ff18dcc..045ba00420 100644
--- a/tools/qmllint/importedmembersvisitor.h
+++ b/tools/qmllint/importedmembersvisitor.h
@@ -51,7 +51,7 @@ public:
m_colorOut(colorOut)
{}
- ScopeTree *result(const QString &scopeName) const;
+ ScopeTree::Ptr result(const QString &scopeName) const;
private:
bool visit(QQmlJS::AST::UiObjectDefinition *) override;