forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -509,7 +509,7 @@ public:
|
||||
QHash<const Function *, FunctionItem *> virtualFunctions;
|
||||
foreach (const Class *clazz, baseClasses) {
|
||||
ClassItem *itemBase = new ClassItem(printer.prettyName(clazz->name()), clazz);
|
||||
for (Scope::iterator it = clazz->firstMember(); it != clazz->lastMember(); ++it) {
|
||||
for (Scope::iterator it = clazz->memberBegin(); it != clazz->memberEnd(); ++it) {
|
||||
if (const Function *func = (*it)->type()->asFunctionType()) {
|
||||
// Filter virtual destructors
|
||||
if (func->name()->asDestructorNameId())
|
||||
|
||||
Reference in New Issue
Block a user