forked from qt-creator/qt-creator
Made FindScope a member of FindUses.
This commit is contained in:
@@ -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:
|
|||||||
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:
|
|||||||
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());
|
||||||
|
|||||||
Reference in New Issue
Block a user