aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetabuilder.cpp
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-06-28 19:48:53 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:06 -0300
commit51cd6edb17866dbfe96990e3db15273d6d26bf75 (patch)
tree1e99ffecbbf79781888f0628f6b66ac8d6ec2605 /abstractmetabuilder.cpp
parent068900d4f0af107e03dca9b530fff47deac4066d (diff)
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.
Diffstat (limited to 'abstractmetabuilder.cpp')
-rw-r--r--abstractmetabuilder.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/abstractmetabuilder.cpp b/abstractmetabuilder.cpp
index fe310cf1..41a8b953 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());