diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-26 16:16:22 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-26 16:16:22 +0200 |
commit | 05f2fd666902e7246b7110187d4964644291e26f (patch) | |
tree | 26184894891d998e8e88e8826e3c3425ec7a9244 /src/plugins/cpptools/cppcodecompletion.cpp | |
parent | 688d382ad947df8f4406d10846da0751839d61d1 (diff) | |
download | qt-creator-05f2fd666902e7246b7110187d4964644291e26f.tar.gz |
Renamed Symbol::scope() to Symbol::enclosingScope().
Diffstat (limited to 'src/plugins/cpptools/cppcodecompletion.cpp')
-rw-r--r-- | src/plugins/cpptools/cppcodecompletion.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/cpptools/cppcodecompletion.cpp b/src/plugins/cpptools/cppcodecompletion.cpp index 87f7b5bfaf..4e6f013d79 100644 --- a/src/plugins/cpptools/cppcodecompletion.cpp +++ b/src/plugins/cpptools/cppcodecompletion.cpp @@ -1055,7 +1055,7 @@ void CppCodeCompletion::globalCompletion(Scope *currentScope) QList<ClassOrNamespace *> usingBindings; ClassOrNamespace *currentBinding = 0; - for (Scope *scope = currentScope; scope; scope = scope->scope()) { + for (Scope *scope = currentScope; scope; scope = scope->enclosingScope()) { if (scope->isBlock()) { if (ClassOrNamespace *binding = context.lookupType(scope)) { for (unsigned i = 0; i < scope->memberCount(); ++i) { @@ -1074,7 +1074,7 @@ void CppCodeCompletion::globalCompletion(Scope *currentScope) } } - for (Scope *scope = currentScope; scope; scope = scope->scope()) { + for (Scope *scope = currentScope; scope; scope = scope->enclosingScope()) { if (scope->isBlock()) { for (unsigned i = 0; i < scope->memberCount(); ++i) { addCompletionItem(scope->memberAt(i)); @@ -1153,7 +1153,7 @@ bool CppCodeCompletion::completeConstructorOrFunction(const QList<LookupItem> &r if (! fun->name()) continue; - else if (! functions.isEmpty() && functions.first()->scope() != fun->scope()) + else if (! functions.isEmpty() && functions.first()->enclosingScope() != fun->enclosingScope()) continue; // skip fun, it's an hidden declaration. bool newOverload = true; |