fix - pass by const ref
This commit is contained in:
parent
fb41fb4bb7
commit
715cff3f2a
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue