use const ref and avoid creating temp std::string
This commit is contained in:
parent
fb6bf401e9
commit
3891922b28
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ void dbf_file::add_attribute(int col, mapnik::transcoder const& tr, Feature & f)
|
||||||
|
|
||||||
if (col>=0 && col<num_fields_)
|
if (col>=0 && col<num_fields_)
|
||||||
{
|
{
|
||||||
std::string name=fields_[col].name_;
|
std::string const& name=fields_[col].name_;
|
||||||
|
|
||||||
switch (fields_[col].type_)
|
switch (fields_[col].type_)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue