summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Woehlke <matthew.woehlke@kitware.com>2015-02-17 13:45:22 -0500
committerJohn Cummings <jcummings2@users.sf.net>2015-02-19 13:44:58 +0000
commit0fd6bc31ee9f2b9fe7d1bff40542ef8e51d1adac (patch)
treee4f238d00bc48baf9983a6979354534cc32c80ff
parent4978122812f82f351351767087d7fb9b8915c8c4 (diff)
Process global enums in declaration order
In the same vein as the previous commit, process global enums in order added (which presumably is declaration order). For what we're doing at this point, this may not be as critical, but again is needed to avoid a spurious test failure. Change-Id: If32a07fee2e7e9b7699e01eda3408ed57855e947 Reviewed-by: John Cummings <jcummings2@users.sf.net>
-rw-r--r--ApiExtractor/abstractmetabuilder.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/ApiExtractor/abstractmetabuilder.cpp b/ApiExtractor/abstractmetabuilder.cpp
index 564f6c3e..ebb3134e 100644
--- a/ApiExtractor/abstractmetabuilder.cpp
+++ b/ApiExtractor/abstractmetabuilder.cpp
@@ -414,9 +414,8 @@ bool AbstractMetaBuilder::build(QIODevice* input)
ReportHandler::flush();
// We need to know all global enums
- QHash<QString, EnumModelItem> enumMap = m_dom->enumMap();
- ReportHandler::setProgressReference(enumMap);
- foreach (EnumModelItem item, enumMap) {
+ ReportHandler::setProgressReference(m_dom->enumMap());
+ foreach (EnumModelItem item, m_dom->enums()) {
ReportHandler::progress("Generating enum model...");
AbstractMetaEnum *metaEnum = traverseEnum(item, 0, QSet<QString>());
if (metaEnum) {