Commit fe75ea8d authored by Benjamin Poulain's avatar Benjamin Poulain
Browse files

Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline

parents c86acef6 eb7dfc49
...@@ -178,6 +178,8 @@ class FindUses: protected ASTVisitor ...@@ -178,6 +178,8 @@ class FindUses: protected ASTVisitor
} }
}; };
FindScope findScope;
public: public:
FindUses(Control *control) FindUses(Control *control)
: ASTVisitor(control) : ASTVisitor(control)
...@@ -246,8 +248,6 @@ protected: ...@@ -246,8 +248,6 @@ protected:
unsigned line, column; unsigned line, column;
getTokenStartPosition(ast->firstToken(), &line, &column); getTokenStartPosition(ast->firstToken(), &line, &column);
FindScope findScope;
Scope *scope = findScope(line, column, Scope *scope = findScope(line, column,
_functionScope->owner(), _functionScope->owner(),
translationUnit()); translationUnit());
...@@ -280,8 +280,6 @@ protected: ...@@ -280,8 +280,6 @@ protected:
unsigned line, column; unsigned line, column;
getTokenStartPosition(ast->firstToken(), &line, &column); getTokenStartPosition(ast->firstToken(), &line, &column);
FindScope findScope;
Scope *scope = findScope(line, column, Scope *scope = findScope(line, column,
_functionScope->owner(), _functionScope->owner(),
translationUnit()); 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