Closed jamessynge closed 3 years ago
There doesn't seem to be a reason for the string to be non-const, so that would simplify things for the caller.
You mean changing void setHostname(char* hostname); to void setHostname(const char* hostname);
void setHostname(char* hostname);
void setHostname(const char* hostname);
Done!
Thanks very much.
There doesn't seem to be a reason for the string to be non-const, so that would simplify things for the caller.