diff options
Diffstat (limited to 'src/avatar.h')
-rw-r--r-- | src/avatar.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/avatar.h b/src/avatar.h index bbae9044..29fc8c56 100644 --- a/src/avatar.h +++ b/src/avatar.h @@ -27,12 +27,12 @@ class Avatar { public: - Avatar(const std::string &name = ""); + Avatar(const std::string &name = std::string()); /** * Returns the avatar's name. */ - std::string getName() const { return mName; } + const std::string &getName() const { return mName; } /** * Set the avatar's name. |