prefer STL implementation
This commit is contained in:
parent
187a42f006
commit
1bb1653e69
1 changed files with 3 additions and 7 deletions
|
@ -24,12 +24,8 @@
|
|||
#include <mapnik/color.hpp>
|
||||
#include <mapnik/simplify.hpp>
|
||||
|
||||
// boost
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-local-typedef"
|
||||
#include <boost/algorithm/string/replace.hpp> // for replace
|
||||
#pragma GCC diagnostic pop
|
||||
// stl
|
||||
#include <algorithm>
|
||||
|
||||
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];
|
||||
|
|
Loading…
Reference in a new issue