diff --git a/src/plugins/cppeditor/cppeditor.cpp b/src/plugins/cppeditor/cppeditor.cpp
index 161894c8e796165a074fe7da3c6b0386571b9463..e1b199661f21650a69f66cfa6b6cced7620f5f4b 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());