summaryrefslogtreecommitdiff
path: root/src/textcommand.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/textcommand.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/textcommand.h')
-rw-r--r--src/textcommand.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/textcommand.h b/src/textcommand.h
index 2011e90c2..9c807badc 100644
--- a/src/textcommand.h
+++ b/src/textcommand.h
@@ -125,13 +125,13 @@ class TextCommand final
TextCommandType getCommandType() const A_WARN_UNUSED
{ return mCommandType; }
- void setCommand(std::string command)
+ void setCommand(const std::string &command)
{ mCommand = command; }
- void setComment(std::string comment)
+ void setComment(const std::string &comment)
{ mComment = comment; }
- void setSymbol(std::string symbol)
+ void setSymbol(const std::string &symbol)
{ mSymbol = symbol; }
void setId(const unsigned int id)
@@ -140,7 +140,7 @@ class TextCommand final
void setTargetType(const SpellTarget targetType)
{ mTargetType = targetType; }
- void setIcon(std::string icon)
+ void setIcon(const std::string &icon)
{ mIcon = icon; loadImage(); }
void setMana(const unsigned int mana)