Commit eb7dfc49 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Made FindScope a member of FindUses.

parent 5b28b539
......@@ -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());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment