summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Fan <Peng.Fan@freescale.com>2014-07-24 11:09:03 +0800
committerChris Johns <chrisj@rtems.org>2014-07-24 17:15:42 +1000
commit30f0566b7f88462c794abf8d0edc2066ed9f90d7 (patch)
tree647b2e5033de35a4c22921bf2a4157cadfd99663
parent09469993e4e291f2ebfc8e898e6fa12e897e123d (diff)
std::list should be sorted before unique
std::list should be sorted first, then unique can remove duplicated objects. Otherwise there will be many duplicated objects. Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
-rw-r--r--rld-outputter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/rld-outputter.cpp b/rld-outputter.cpp
index e00fbae..e6527eb 100644
--- a/rld-outputter.cpp
+++ b/rld-outputter.cpp
@@ -428,6 +428,7 @@ namespace rld
cache.get_objects (objects);
objects.merge (dep_copy);
+ objects.sort ();
objects.unique ();
app.open (true);