diff --git a/plugins/input/postgis/postgis_datasource.cpp b/plugins/input/postgis/postgis_datasource.cpp index 2d0d642f9..7422ecaf5 100644 --- a/plugins/input/postgis/postgis_datasource.cpp +++ b/plugins/input/postgis/postgis_datasource.cpp @@ -380,7 +380,7 @@ std::string postgis_datasource::populate_tokens(const std::string& sql) const return populated_sql; } -std::string postgis_datasource::populate_tokens(const std::string& sql, double const& scale_denom, box2d const& env) const +std::string postgis_datasource::populate_tokens(const std::string& sql, double scale_denom, box2d const& env) const { std::string populated_sql = sql; std::string box = sql_bbox(env); diff --git a/plugins/input/postgis/postgis_datasource.hpp b/plugins/input/postgis/postgis_datasource.hpp index 0ad00df9c..eb5c1e129 100644 --- a/plugins/input/postgis/postgis_datasource.hpp +++ b/plugins/input/postgis/postgis_datasource.hpp @@ -89,7 +89,7 @@ public: void bind() const; private: std::string sql_bbox(box2d const& env) const; - std::string populate_tokens(const std::string& sql, double const& scale_denom, box2d const& env) const; + std::string populate_tokens(const std::string& sql, double scale_denom, box2d const& env) const; std::string populate_tokens(const std::string& sql) const; static std::string unquote(const std::string& sql); boost::shared_ptr get_resultset(boost::shared_ptr const &conn, const std::string &sql) const;