Skip to content

Commit

Permalink
fix: default gateway reference
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed May 20, 2024
1 parent 0f6ce7d commit fd643d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/dpp/cluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/dpp/cluster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fd643d7

Please sign in to comment.