+ pass std::string argument by const&
This commit is contained in:
parent
384c703557
commit
4bf42fe2d7
2 changed files with 3 additions and 3 deletions
|
@ -43,7 +43,7 @@ class MAPNIK_DECL symbolizer_base {
|
|||
*
|
||||
* expression can be empty the default expression of
|
||||
* the writer is used in this case. */
|
||||
void add_metawriter(std::string name, metawriter_properties const& properties);
|
||||
void add_metawriter(std::string const& name, metawriter_properties const& properties);
|
||||
/** Cache metawriter objects to avoid repeated lookups while processing.
|
||||
*
|
||||
* This function has to be called before the symbolizer is used, because
|
||||
|
|
|
@ -27,10 +27,10 @@
|
|||
|
||||
namespace mapnik {
|
||||
|
||||
void symbolizer_base::add_metawriter(std::string name, metawriter_properties const& properties)
|
||||
void symbolizer_base::add_metawriter(std::string const& name, metawriter_properties const& properties)
|
||||
{
|
||||
properties_ = properties;
|
||||
writer_name_ = name;
|
||||
properties_ = properties;
|
||||
}
|
||||
|
||||
void symbolizer_base::cache_metawriters(Map const &m)
|
||||
|
|
Loading…
Reference in a new issue