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/textcommand.h | |
parent | f52ca7838789a6910840597a929ecf6e0be9e1de (diff) | |
download | manaverse-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.gz manaverse-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.bz2 manaverse-f9030497b6196ce2fadb6b6ada5d784be227d9a6.tar.xz manaverse-f9030497b6196ce2fadb6b6ada5d784be227d9a6.zip |
Add missing const.
Diffstat (limited to 'src/textcommand.h')
-rw-r--r-- | src/textcommand.h | 8 |
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) |