From 51cd6edb17866dbfe96990e3db15273d6d26bf75 Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Mon, 28 Jun 2010 19:48:53 -0300 Subject: Fixes usage of std::unique method. std::unique looks for adjacent duplicates in a list, so it needs to be sorted for the algorithm to work in all items. --- abstractmetabuilder.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'abstractmetabuilder.cpp') diff --git a/abstractmetabuilder.cpp b/abstractmetabuilder.cpp index fe310cf1e..41a8b9532 100644 --- a/abstractmetabuilder.cpp +++ b/abstractmetabuilder.cpp @@ -337,6 +337,7 @@ bool AbstractMetaBuilder::build(QIODevice* input) // Start the generation... ClassList typeValues = typeMap.values(); + qSort(typeValues); ClassList::iterator it = std::unique(typeValues.begin(), typeValues.end()); typeValues.erase(it, typeValues.end()); -- cgit v1.2.3