insert_marker to take rvalue it if is moved inside the function

This commit is contained in:
Dane Springmeyer 2015-02-19 01:37:45 -08:00
parent 2aa23eca43
commit dd0b8459f5
2 changed files with 2 additions and 2 deletions

View file

@ -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<std::string, mapnik::marker> marker_cache_;
bool insert_svg(std::string const& name, std::string const& svg_string);
boost::unordered_map<std::string,std::string> svg_cache_;

View file

@ -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_);