+ pass std::string argument by const&

This commit is contained in:
Artem Pavlenko 2010-07-19 11:09:44 +00:00
parent 384c703557
commit 4bf42fe2d7
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

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