diff options
author | Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> | 2015-01-13 17:29:34 +0100 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> | 2015-01-14 12:29:37 +0100 |
commit | 845cb2e432c73712d27a96dc3765a539b13a195f (patch) | |
tree | 817fe4c20c54cd4a91fd052eb7e03c12469f704b /src/plugins/cpptools/cppfindreferences.cpp | |
parent | d9c70f43d97a035a951c9e504e5c56259dfdacdb (diff) | |
download | qt-creator-845cb2e432c73712d27a96dc3765a539b13a195f.tar.gz |
C++: Better names for Scope's iterators
Scope::lastMember() was misleading.
Change-Id: I953d489b8a2a9b86321f73cad3b7b371c4acf91f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Przemyslaw Gorszkowski <pgorszkowski@gmail.com>
Diffstat (limited to 'src/plugins/cpptools/cppfindreferences.cpp')
-rw-r--r-- | src/plugins/cpptools/cppfindreferences.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cppfindreferences.cpp b/src/plugins/cpptools/cppfindreferences.cpp index 2c8856c4b8..681f80f24b 100644 --- a/src/plugins/cpptools/cppfindreferences.cpp +++ b/src/plugins/cpptools/cppfindreferences.cpp @@ -141,8 +141,8 @@ static QByteArray idForSymbol(Symbol *symbol) // add the index of this symbol within its enclosing scope // (counting symbols without identifier of the same type) int count = 0; - Scope::iterator it = scope->firstMember(); - while (it != scope->lastMember() && *it != symbol) { + Scope::iterator it = scope->memberBegin(); + while (it != scope->memberEnd() && *it != symbol) { Symbol *val = *it; ++it; if (val->identifier() || typeId(val) != uid) |