summaryrefslogtreecommitdiff
path: root/src/gui/userpalette.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-30 01:19:46 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-30 13:11:34 +0300
commit6b1684d33dec02eb6308bb3d8d3707f4d5252ba5 (patch)
tree4a0a5fd220828b92ef96446fe38dbe67ff446c6c /src/gui/userpalette.h
parent2a70a50c785ce639b76141a3a6887836d22fe12c (diff)
downloadManaVerse-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.gz
ManaVerse-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.bz2
ManaVerse-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.xz
ManaVerse-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.zip
Add unused warnings to some files.
Diffstat (limited to 'src/gui/userpalette.h')
-rw-r--r--src/gui/userpalette.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/gui/userpalette.h b/src/gui/userpalette.h
index 1242554d7..43decd601 100644
--- a/src/gui/userpalette.h
+++ b/src/gui/userpalette.h
@@ -98,7 +98,8 @@ class UserPalette final : public Palette, public gcn::ListModel
*
* @return the requested committed color
*/
- inline const gcn::Color &getCommittedColor(const int type) const
+ inline const gcn::Color &getCommittedColor(const int type)
+ const A_WARN_UNUSED
{
return mColors[type].committedColor;
}
@@ -110,7 +111,8 @@ class UserPalette final : public Palette, public gcn::ListModel
*
* @return the requested test color
*/
- inline const gcn::Color &getTestColor(const int type) const
+ inline const gcn::Color &getTestColor(const int type)
+ const A_WARN_UNUSED
{ return mColors[type].testColor; }
/**
@@ -152,7 +154,7 @@ class UserPalette final : public Palette, public gcn::ListModel
*
* @return the number of colors known
*/
- inline int getNumberOfElements() override
+ inline int getNumberOfElements() override A_WARN_UNUSED
{ return static_cast<int>(mColors.size()); }
/**
@@ -162,7 +164,7 @@ class UserPalette final : public Palette, public gcn::ListModel
*
* @return the name of the color
*/
- std::string getElementAt(int i) override;
+ std::string getElementAt(int i) override A_WARN_UNUSED;
/**
* Commit the colors
@@ -183,7 +185,7 @@ class UserPalette final : public Palette, public gcn::ListModel
*
* @return the color type of the color with the given index
*/
- int getColorTypeAt(int i);
+ int getColorTypeAt(int i) A_WARN_UNUSED;
private:
/**
@@ -212,7 +214,8 @@ class UserPalette final : public Palette, public gcn::ListModel
*
* @return the transformed string
*/
- static std::string getConfigName(const std::string &typeName);
+ static std::string getConfigName(const std::string &typeName)
+ A_WARN_UNUSED;
/**
* Initialise color