From 46d53cb40d3a8a015b38049c3e21224aef59e61d Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 12 Jan 2012 14:05:03 -0800 Subject: [PATCH] plugins/ pass by value --- plugins/input/postgis/postgis_datasource.cpp | 2 +- plugins/input/postgis/postgis_datasource.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;