From ac8e22a781844cfd4f0dd4024afd9012dcdc45a6 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Mon, 3 Sep 2012 10:52:26 -0700 Subject: [PATCH] bindings: get_filename - no need for const here --- bindings/python/mapnik_line_pattern_symbolizer.cpp | 2 +- bindings/python/mapnik_point_symbolizer.cpp | 2 +- bindings/python/mapnik_polygon_pattern_symbolizer.cpp | 2 +- bindings/python/mapnik_shield_symbolizer.cpp | 2 +- bindings/python/mapnik_svg.hpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bindings/python/mapnik_line_pattern_symbolizer.cpp b/bindings/python/mapnik_line_pattern_symbolizer.cpp index 8e7d1f825..527bd3547 100644 --- a/bindings/python/mapnik_line_pattern_symbolizer.cpp +++ b/bindings/python/mapnik_line_pattern_symbolizer.cpp @@ -37,7 +37,7 @@ using mapnik::parse_path; namespace { using namespace boost::python; -const std::string get_filename(line_pattern_symbolizer const& t) +std::string get_filename(line_pattern_symbolizer const& t) { return path_processor_type::to_string(*t.get_filename()); } diff --git a/bindings/python/mapnik_point_symbolizer.cpp b/bindings/python/mapnik_point_symbolizer.cpp index 749ded972..f979b9e79 100644 --- a/bindings/python/mapnik_point_symbolizer.cpp +++ b/bindings/python/mapnik_point_symbolizer.cpp @@ -38,7 +38,7 @@ using mapnik::parse_path; namespace { using namespace boost::python; -const std::string get_filename(point_symbolizer const& t) +std::string get_filename(point_symbolizer const& t) { return path_processor_type::to_string(*t.get_filename()); } diff --git a/bindings/python/mapnik_polygon_pattern_symbolizer.cpp b/bindings/python/mapnik_polygon_pattern_symbolizer.cpp index 4edb2004b..4be2f7c41 100644 --- a/bindings/python/mapnik_polygon_pattern_symbolizer.cpp +++ b/bindings/python/mapnik_polygon_pattern_symbolizer.cpp @@ -37,7 +37,7 @@ using mapnik::guess_type; namespace { using namespace boost::python; -const std::string get_filename(polygon_pattern_symbolizer const& t) +std::string get_filename(polygon_pattern_symbolizer const& t) { return path_processor_type::to_string(*t.get_filename()); } diff --git a/bindings/python/mapnik_shield_symbolizer.cpp b/bindings/python/mapnik_shield_symbolizer.cpp index 39c09c184..b84279e83 100644 --- a/bindings/python/mapnik_shield_symbolizer.cpp +++ b/bindings/python/mapnik_shield_symbolizer.cpp @@ -75,7 +75,7 @@ void set_text_displacement(shield_symbolizer & t, boost::python::tuple arg) t.set_displacement(extract(arg[0]),extract(arg[1])); } -const std::string get_filename(shield_symbolizer const& t) +std::string get_filename(shield_symbolizer const& t) { return path_processor_type::to_string(*t.get_filename()); } diff --git a/bindings/python/mapnik_svg.hpp b/bindings/python/mapnik_svg.hpp index bb027e63e..418ee0511 100644 --- a/bindings/python/mapnik_svg.hpp +++ b/bindings/python/mapnik_svg.hpp @@ -31,7 +31,7 @@ namespace mapnik { using namespace boost::python; template -const std::string get_svg_transform(T& symbolizer) +std::string get_svg_transform(T& symbolizer) { return symbolizer.get_image_transform_string(); }