From f9030497b6196ce2fadb6b6ada5d784be227d9a6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 1 May 2014 15:14:16 +0300 Subject: Add missing const. --- src/textcommand.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/textcommand.h') 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) -- cgit v1.2.3-60-g2f50