summaryrefslogtreecommitdiff
path: root/src/textcommand.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-12 20:26:59 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-12 20:26:59 +0300
commitbebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43 (patch)
tree4d631106f76ba8a052dc2ef8b23b8a968040db82 /src/textcommand.h
parent67638eeec5267977940dce29c5a94ce4d093ed69 (diff)
downloadmanaplus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.gz
manaplus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.bz2
manaplus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.xz
manaplus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.zip
Add noexcept in some files.
Diffstat (limited to 'src/textcommand.h')
-rw-r--r--src/textcommand.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/textcommand.h b/src/textcommand.h
index 230c926a0..82d3027fe 100644
--- a/src/textcommand.h
+++ b/src/textcommand.h
@@ -77,38 +77,38 @@ class TextCommand final
*/
~TextCommand();
- std::string getName() const A_WARN_UNUSED
+ std::string getName() const noexcept2 A_WARN_UNUSED
{ return mCommand; }
- std::string getCommand() const A_WARN_UNUSED
+ std::string getCommand() const noexcept2 A_WARN_UNUSED
{ return mCommand; }
- std::string getComment() const A_WARN_UNUSED
+ std::string getComment() const noexcept2 A_WARN_UNUSED
{ return mComment; }
- std::string getSymbol() const A_WARN_UNUSED
+ std::string getSymbol() const noexcept2 A_WARN_UNUSED
{ return mSymbol; }
- int getId() const A_WARN_UNUSED
+ int getId() const noexcept2 A_WARN_UNUSED
{ return mId; }
- CommandTargetT getTargetType() const A_WARN_UNUSED
+ CommandTargetT getTargetType() const noexcept2 A_WARN_UNUSED
{ return mTargetType; }
- std::string getIcon() const A_WARN_UNUSED
+ std::string getIcon() const noexcept2 A_WARN_UNUSED
{ return mIcon; }
#ifdef TMWA_SUPPORT
- unsigned int getMana() const A_WARN_UNUSED
+ unsigned int getMana() const noexcept2 A_WARN_UNUSED
{ return mMana; }
- MagicSchoolT getSchool() const A_WARN_UNUSED
+ MagicSchoolT getSchool() const noexcept2 A_WARN_UNUSED
{ return mSchool; }
- unsigned getBaseLvl() const A_WARN_UNUSED
+ unsigned getBaseLvl() const noexcept2 A_WARN_UNUSED
{ return mBaseLvl; }
- unsigned getSchoolLvl() const A_WARN_UNUSED
+ unsigned getSchoolLvl() const noexcept2 A_WARN_UNUSED
{ return mSchoolLvl; }
void setMana(const unsigned int mana)
@@ -123,7 +123,7 @@ class TextCommand final
void setSchoolLvl(const unsigned int schoolLvl)
{ mSchoolLvl = schoolLvl; }
- TextCommandTypeT getCommandType() const A_WARN_UNUSED
+ TextCommandTypeT getCommandType() const noexcept2 A_WARN_UNUSED
{ return mCommandType; }
void setCommandType(const TextCommandTypeT commandType)
@@ -148,10 +148,10 @@ class TextCommand final
void setIcon(const std::string &icon)
{ mIcon = icon; loadImage(); }
- bool isEmpty() const A_WARN_UNUSED
+ bool isEmpty() const noexcept2 A_WARN_UNUSED
{ return mCommand.empty() && mSymbol.empty(); }
- Image *getImage() const A_WARN_UNUSED
+ Image *getImage() const noexcept2 A_WARN_UNUSED
{ return mImage; }
private: