aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetabuilder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'abstractmetabuilder.cpp')
-rw-r--r--abstractmetabuilder.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/abstractmetabuilder.cpp b/abstractmetabuilder.cpp
index 4281b2b6..16047a64 100644
--- a/abstractmetabuilder.cpp
+++ b/abstractmetabuilder.cpp
@@ -2623,11 +2623,7 @@ AbstractMetaClassList AbstractMetaBuilder::classesTopologicalSorted(const Abstra
QHash<QString, int> map;
QHash<int, AbstractMetaClass*> reverseMap;
- AbstractMetaClassList classList;
- if (cppClass)
- classList = cppClass->innerClasses();
- else
- classList = m_metaClasses;
+ const AbstractMetaClassList& classList = cppClass ? cppClass->innerClasses() : m_metaClasses;
Graph graph(classList.count());