diff --git a/include/dpp/cluster.h b/include/dpp/cluster.h index b27d068e9d..ec4044964b 100644 --- a/include/dpp/cluster.h +++ b/include/dpp/cluster.h @@ -325,7 +325,7 @@ class DPP_EXPORT cluster { * * @return cluster& Reference to self for chaining. */ - cluster& set_default_gateway(std::string& default_gateway); + cluster& set_default_gateway(const std::string& default_gateway); /** * @brief Log a message to whatever log the user is using. diff --git a/src/dpp/cluster.cpp b/src/dpp/cluster.cpp index 96b9d56421..db8ce14c31 100644 --- a/src/dpp/cluster.cpp +++ b/src/dpp/cluster.cpp @@ -411,7 +411,7 @@ cluster& cluster::clear_audit_reason() { return *this; } -cluster& cluster::set_default_gateway(std::string &default_gateway_new) { +cluster& cluster::set_default_gateway(const std::string &default_gateway_new) { default_gateway = default_gateway_new; return *this; }