From eb7dfc49a0fb0abc020ca4406c6a6fc7d9416527 Mon Sep 17 00:00:00 2001 From: Roberto Raggi <roberto.raggi@nokia.com> Date: Wed, 8 Jul 2009 13:50:49 +0200 Subject: [PATCH] Made FindScope a member of FindUses. --- src/plugins/cppeditor/cppeditor.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/plugins/cppeditor/cppeditor.cpp b/src/plugins/cppeditor/cppeditor.cpp index 161894c8e79..e1b199661f2 100644 --- a/src/plugins/cppeditor/cppeditor.cpp +++ b/src/plugins/cppeditor/cppeditor.cpp @@ -178,6 +178,8 @@ class FindUses: protected ASTVisitor } }; + FindScope findScope; + public: FindUses(Control *control) : ASTVisitor(control) @@ -246,8 +248,6 @@ protected: unsigned line, column; getTokenStartPosition(ast->firstToken(), &line, &column); - FindScope findScope; - Scope *scope = findScope(line, column, _functionScope->owner(), translationUnit()); @@ -280,8 +280,6 @@ protected: unsigned line, column; getTokenStartPosition(ast->firstToken(), &line, &column); - FindScope findScope; - Scope *scope = findScope(line, column, _functionScope->owner(), translationUnit()); -- GitLab