Skip to content
Snippets Groups Projects
Commit 3c6f6f1b authored by Adrien Béraud's avatar Adrien Béraud
Browse files

account: return string properties as const ref

Change-Id: I6ea09cb9227f8ba8894dc2aecdfe30a214e0f244
parent 34e52c8b
No related branches found
No related tags found
No related merge requests found
......@@ -221,12 +221,12 @@ public:
const std::string& detail_str = {});
/* They should be treated like macro definitions by the C++ compiler */
std::string getUsername() const { return username_; }
const std::string& getUsername() const { return username_; }
std::string getHostname() const { return hostname_; }
const std::string& getHostname() const { return hostname_; }
void setHostname(const std::string& hostname) { hostname_ = hostname; }
std::string getAlias() const { return alias_; }
const std::string& getAlias() const { return alias_; }
void setAlias(const std::string& alias) { alias_ = alias; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment