fix - pass by const ref

This commit is contained in:
artemp 2015-08-12 12:09:40 +02:00
parent fb41fb4bb7
commit 715cff3f2a
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@
namespace mapnik {
namespace detail {
int parse_jpeg_quality(std::string params);
int parse_jpeg_quality(std::string const& params);
}
struct jpeg_saver
{

View file

@ -43,7 +43,7 @@ jpeg_saver::jpeg_saver(std::ostream & stream, std::string const& t)
namespace detail {
int parse_jpeg_quality(std::string params)
int parse_jpeg_quality(std::string const& params)
{
int quality = 85;
if (params != "jpeg")