Permalink
Browse files

use const ref and avoid creating temp std::string

  • Loading branch information...
1 parent fb6bf40 commit 3891922b28eb22a0ec43a2efd3341299ac6cfe8a @artemp artemp committed Mar 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/input/shape/dbfile.cpp
@@ -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_)
{

0 comments on commit 3891922

Please sign in to comment.