summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppfindreferences.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cpptools/cppfindreferences.cpp')
-rw-r--r--src/plugins/cpptools/cppfindreferences.cpp4
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)