From dd0b8459f5cd5960fc34f84242ecb0f7eebd9b3b Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 19 Feb 2015 01:37:45 -0800 Subject: [PATCH] insert_marker to take rvalue it if is moved inside the function --- include/mapnik/marker_cache.hpp | 2 +- src/marker_cache.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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_);