diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-01 15:14:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-01 23:42:37 +0300 |
commit | f9030497b6196ce2fadb6b6ada5d784be227d9a6 (patch) | |
tree | d11408b35d0860709d31e6520578cdd28391f151 /src/avatar.h | |
parent | f52ca7838789a6910840597a929ecf6e0be9e1de (diff) | |
download | manaplus-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.gz manaplus-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.bz2 manaplus-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.xz manaplus-f9030497b6196ce2fadb6b6ada5d784be227d9a6.zip |
Add missing const.
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 03050a06f..60e68a948 100644 --- a/src/avatar.h +++ b/src/avatar.h @@ -115,7 +115,7 @@ public: std::string getMap() const A_WARN_UNUSED { return mMap; } - void setMap(std::string map) + void setMap(const std::string &map) { mMap = map; } int getX() const A_WARN_UNUSED @@ -169,7 +169,7 @@ public: const std::string &getIp() const A_WARN_UNUSED { return mIp; } - void setIp(std::string ip) + void setIp(const std::string &ip) { mIp = ip; } bool getPoison() const A_WARN_UNUSED |