pass string by const ref

This commit is contained in:
Dane Springmeyer 2013-07-19 15:46:01 -04:00
parent 6bbbe155fe
commit 3864fada72
2 changed files with 2 additions and 2 deletions

View file

@ -167,7 +167,7 @@ public:
/*!
* @param column Set the field rendering of this layer is grouped by.
*/
void set_group_by(std::string column);
void set_group_by(std::string const& column);
/*!
* @return The field rendering of this layer is grouped by.

View file

@ -236,7 +236,7 @@ bool layer::cache_features() const
return cache_features_;
}
void layer::set_group_by(std::string column)
void layer::set_group_by(std::string const& column)
{
group_by_ = column;
}