diff --git a/include/mapnik/marker_cache.hpp b/include/mapnik/marker_cache.hpp index 1d835d167..40cf8048f 100644 --- a/include/mapnik/marker_cache.hpp +++ b/include/mapnik/marker_cache.hpp @@ -46,7 +46,7 @@ class MAPNIK_DECL marker_cache : private: marker_cache(); ~marker_cache(); - bool insert_marker(std::string const& key, marker & path); + bool insert_marker(std::string const& key, marker && path); boost::unordered_map marker_cache_; bool insert_svg(std::string const& name, std::string const& svg_string); boost::unordered_map svg_cache_; diff --git a/src/marker_cache.cpp b/src/marker_cache.cpp index 7f4ba5cb9..e4daeb559 100644 --- a/src/marker_cache.cpp +++ b/src/marker_cache.cpp @@ -109,7 +109,7 @@ bool marker_cache::insert_svg(std::string const& name, std::string const& svg_st return false; } -bool marker_cache::insert_marker(std::string const& uri, mapnik::marker & path) +bool marker_cache::insert_marker(std::string const& uri, mapnik::marker && path) { #ifdef MAPNIK_THREADSAFE mapnik::scoped_lock lock(mutex_);