From 1bb1653e6958db669f5d27174ccbadd8c4bc9481 Mon Sep 17 00:00:00 2001 From: Jiri Drbalek Date: Fri, 6 Feb 2015 16:08:36 +0000 Subject: [PATCH] prefer STL implementation --- src/symbolizer_keys.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/symbolizer_keys.cpp b/src/symbolizer_keys.cpp index b22fa2ed0..ac974a34b 100644 --- a/src/symbolizer_keys.cpp +++ b/src/symbolizer_keys.cpp @@ -24,12 +24,8 @@ #include #include -// boost -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wunused-parameter" -#pragma GCC diagnostic ignored "-Wunused-local-typedef" -#include // for replace -#pragma GCC diagnostic pop +// stl +#include namespace mapnik { @@ -170,7 +166,7 @@ property_meta_type const& get_meta(mapnik::keys key) mapnik::keys get_key(std::string const& name) { std::string name_copy(name); - boost::algorithm::replace_all(name_copy,"_","-"); + std::replace(name_copy.begin(), name_copy.end(), '_', '-'); for (unsigned i=0; i< const_max_key ; ++i) { property_meta_type const& item = key_meta[i];