From 2492b561385859b7ef76fe816a8dc845f0b9bd09 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Feb 2016 01:53:51 +0300 Subject: Fix some casts between signed and unsigned in some files. --- src/textcommand.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/textcommand.h') diff --git a/src/textcommand.h b/src/textcommand.h index c74ea9303..496c6d8ff 100644 --- a/src/textcommand.h +++ b/src/textcommand.h @@ -43,7 +43,7 @@ class TextCommand final /** * Constructor. */ - TextCommand(const unsigned int id, + TextCommand(const int id, const std::string &symbol, const std::string &command, const std::string &comment, @@ -51,14 +51,14 @@ class TextCommand final const std::string &icon, const unsigned int basicLvl, const MagicSchoolT school = MagicSchool::SkillMagic, - const unsigned int schoolLvl = 0, - const int mana = 0); + const unsigned int schoolLvl = 0U, + const unsigned int mana = 0U); #endif /** * Constructor. */ - TextCommand(const unsigned int id, + TextCommand(const int id, const std::string &symbol, const std::string &command, const std::string &comment, @@ -68,7 +68,7 @@ class TextCommand final /** * Constructor. */ - explicit TextCommand(const unsigned int id); + explicit TextCommand(const int id); A_DELETE_COPY(TextCommand) @@ -89,7 +89,7 @@ class TextCommand final std::string getSymbol() const A_WARN_UNUSED { return mSymbol; } - unsigned int getId() const A_WARN_UNUSED + int getId() const A_WARN_UNUSED { return mId; } CommandTargetT getTargetType() const A_WARN_UNUSED @@ -99,7 +99,7 @@ class TextCommand final { return mIcon; } #ifdef TMWA_SUPPORT - int getMana() const A_WARN_UNUSED + unsigned int getMana() const A_WARN_UNUSED { return mMana; } MagicSchoolT getSchool() const A_WARN_UNUSED @@ -139,7 +139,7 @@ class TextCommand final void setSymbol(const std::string &symbol) { mSymbol = symbol; } - void setId(const unsigned int id) + void setId(const int id) { mId = id; } void setTargetType(const CommandTargetT targetType) @@ -163,9 +163,9 @@ class TextCommand final std::string mSymbol; CommandTargetT mTargetType; std::string mIcon; - unsigned int mId; + int mId; #ifdef TMWA_SUPPORT - int mMana; + unsigned int mMana; MagicSchoolT mSchool; unsigned mBaseLvl; unsigned mSchoolLvl; -- cgit v1.2.3-60-g2f50