use const ref and avoid creating temp std::string

This commit is contained in:
Artem Pavlenko 2012-03-13 10:11:58 +00:00
parent fb6bf401e9
commit 3891922b28

View file

@ -127,7 +127,7 @@ void dbf_file::add_attribute(int col, mapnik::transcoder const& tr, Feature & f)
if (col>=0 && col<num_fields_)
{
std::string name=fields_[col].name_;
std::string const& name=fields_[col].name_;
switch (fields_[col].type_)
{