diff --git a/src/properties.cpp b/src/properties.cpp index 0f41995e7..a2e454d94 100644 --- a/src/properties.cpp +++ b/src/properties.cpp @@ -90,14 +90,14 @@ void properties_t::set_string(std::string const &property, m_to_update[property] = value; } -void properties_t::set_int(std::string property, int64_t value) +void properties_t::set_int(std::string const &property, int64_t value) { - set_string(std::move(property), std::to_string(value)); + set_string(property, std::to_string(value)); } -void properties_t::set_bool(std::string property, bool value) +void properties_t::set_bool(std::string const &property, bool value) { - set_string(std::move(property), value ? "true" : "false"); + set_string(property, value ? "true" : "false"); } void properties_t::init_table() diff --git a/src/properties.hpp b/src/properties.hpp index ac27e9a3a..0aa51399b 100644 --- a/src/properties.hpp +++ b/src/properties.hpp @@ -63,7 +63,7 @@ class properties_t * \param property Name of the property * \param value Value of the property */ - void set_int(std::string property, int64_t value); + void set_int(std::string const &property, int64_t value); /** * Set property to boolean value. In the database this will show up as the @@ -72,7 +72,7 @@ class properties_t * \param property Name of the property * \param value Value of the property */ - void set_bool(std::string property, bool value); + void set_bool(std::string const &property, bool value); /** * Initialize the database table 'osm2pgsql_properties'. It is created if