Skip to content

Commit 83b4e6c

Browse files
mwoehlke-kitwaremathstuf
authored andcommitted
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
1 parent 65d51d4 commit 83b4e6c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ApiExtractor/abstractmetabuilder.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,9 +451,8 @@ bool AbstractMetaBuilder::build(QIODevice* input)
451451
ReportHandler::flush();
452452

453453
// We need to know all global enums
454-
QHash<QString, EnumModelItem> enumMap = m_dom->enumMap();
455-
ReportHandler::setProgressReference(enumMap);
456-
foreach (EnumModelItem item, enumMap) {
454+
ReportHandler::setProgressReference(m_dom->enumMap());
455+
foreach (EnumModelItem item, m_dom->enums()) {
457456
ReportHandler::progress("Generating enum model...");
458457
AbstractMetaEnum *metaEnum = traverseEnum(item, 0, QSet<QString>());
459458
if (metaEnum) {

0 commit comments

Comments
 (0)