From: Petr Machata Date: Mon, 2 Feb 2009 17:02:31 +0000 (+0100) Subject: Use sorted container to do the comparisons X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c31b45dd140741e0157b4b21aa99e7ab525c2e4a;p=thirdparty%2Felfutils.git Use sorted container to do the comparisons --- diff --git a/src/dwarflint-hl.cc b/src/dwarflint-hl.cc index c499a18bf..1c7c495d3 100644 --- a/src/dwarflint-hl.cc +++ b/src/dwarflint-hl.cc @@ -66,8 +66,9 @@ check_matching_ranges (Dwarf *dwarf) where_reset_1 (&where_ref, 0); where_reset_2 (&where_ref, cu.offset ()); - const elfutils::dwarf::arange_list &cu_aranges = i->second; - const elfutils::dwarf::ranges &cu_ranges = cu.ranges (); + std::set + cu_aranges = i->second, + cu_ranges = cu.ranges (); typedef std::vector range_vec; range_vec missing;