insert_marker to take rvalue it if is moved inside the function
This commit is contained in:
parent
2aa23eca43
commit
dd0b8459f5
2 changed files with 2 additions and 2 deletions
|
@ -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_;
|
||||
|
|
|
@ -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_);
|
||||
|
|
Loading…
Reference in a new issue