aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-09-03 14:50:50 +0000
committerlloyd <[email protected]>2010-09-03 14:50:50 +0000
commit6a7604d32b825530c5abbdae06abc82a5c5210da (patch)
tree3fb4d4679e93fb870ca1a3081bcf4788662ae005 /src/utils
parent1c73edd37cd7264780e9a8c699d61433231ef472 (diff)
Uglify Data_Store::search_with a little to go through multimap_insert
to avoid a Sun Studio bug.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/datastor/datastor.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/utils/datastor/datastor.cpp b/src/utils/datastor/datastor.cpp
index b3f00ac6c..49e7b2dda 100644
--- a/src/utils/datastor/datastor.cpp
+++ b/src/utils/datastor/datastor.cpp
@@ -53,7 +53,13 @@ Data_Store::search_with(const Matcher& matcher) const
while(i != contents.end())
{
if(matcher(i->first, i->second))
- out.insert(matcher.transform(i->first, i->second));
+ {
+ std::pair<std::string, std::string> p(
+ matcher.transform(i->first, i->second));
+
+ multimap_insert(out, p.first, p.second);
+ }
+
++i;
}