summaryrefslogtreecommitdiff
path: root/src/being/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-01 15:14:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-01 23:42:37 +0300
commitf9030497b6196ce2fadb6b6ada5d784be227d9a6 (patch)
treed11408b35d0860709d31e6520578cdd28391f151 /src/being/being.h
parentf52ca7838789a6910840597a929ecf6e0be9e1de (diff)
downloadmanaplus-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.gz
manaplus-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.bz2
manaplus-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.xz
manaplus-f9030497b6196ce2fadb6b6ada5d784be227d9a6.zip
Add missing const.
Diffstat (limited to 'src/being/being.h')
-rw-r--r--src/being/being.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/being/being.h b/src/being/being.h
index 793454ca2..2a6ec9195 100644
--- a/src/being/being.h
+++ b/src/being/being.h
@@ -474,7 +474,7 @@ class Being : public ActorSprite, public ConfigListener
/**
* Sets the walk speed in pixels per second.
*/
- void setWalkSpeed(Vector speed)
+ void setWalkSpeed(const Vector &speed)
{ mWalkSpeed = speed; mSpeed = speed.x; }
/**
@@ -725,7 +725,7 @@ class Being : public ActorSprite, public ConfigListener
const std::string &getIp() const A_WARN_UNUSED
{ return mIp; }
- void setIp(std::string ip)
+ void setIp(const std::string &ip)
{ mIp = ip; }
unsigned int getPvpRank() const A_WARN_UNUSED
@@ -791,7 +791,7 @@ class Being : public ActorSprite, public ConfigListener
const std::string getComment() const A_WARN_UNUSED
{ return mComment; }
- void setComment(std::string n)
+ void setComment(const std::string &n)
{ mComment = n; }
static void clearCache();
@@ -829,7 +829,7 @@ class Being : public ActorSprite, public ConfigListener
void updatePercentHP();
- void setRaceName(std::string name)
+ void setRaceName(const std::string &name)
{ mRaceName = name; }
std::string getRaceName() const A_WARN_UNUSED