diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-05-17 13:01:56 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-05-17 13:01:56 +0200 |
commit | 18490596f998822af2a6915602198d6e63f15c03 (patch) | |
tree | 579e9c45c0523e42f973c175dcbbaf650118e4a8 /src/libs/cplusplus/CppDocument.cpp | |
parent | 56c5c8266a94fe5740839d71da59c6139e0c0c0f (diff) | |
download | qt-creator-18490596f998822af2a6915602198d6e63f15c03.tar.gz |
Renamed Document::findSymbolAt().
Diffstat (limited to 'src/libs/cplusplus/CppDocument.cpp')
-rw-r--r-- | src/libs/cplusplus/CppDocument.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libs/cplusplus/CppDocument.cpp b/src/libs/cplusplus/CppDocument.cpp index e5ba35d75d..85f456a22c 100644 --- a/src/libs/cplusplus/CppDocument.cpp +++ b/src/libs/cplusplus/CppDocument.cpp @@ -406,12 +406,12 @@ Scope *Document::scopeAt(unsigned line, unsigned column) return globalSymbols(); } -Symbol *Document::findSymbolAt(unsigned line, unsigned column) const +Symbol *Document::lastVisibleSymbolAt(unsigned line, unsigned column) const { - return findSymbolAt(line, column, globalSymbols()); + return lastVisibleSymbolAt(line, column, globalSymbols()); } -Symbol *Document::findSymbolAt(unsigned line, unsigned column, Scope *scope) const +Symbol *Document::lastVisibleSymbolAt(unsigned line, unsigned column, Scope *scope) const { Symbol *previousSymbol = 0; @@ -425,7 +425,7 @@ Symbol *Document::findSymbolAt(unsigned line, unsigned column, Scope *scope) con if (previousSymbol) { if (ScopedSymbol *scoped = previousSymbol->asScopedSymbol()) { - if (Symbol *member = findSymbolAt(line, column, scoped->members())) + if (Symbol *member = lastVisibleSymbolAt(line, column, scoped->members())) return member; } } |