summaryrefslogtreecommitdiff
path: root/src/gui/palette.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-10-21 20:54:54 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-10-23 10:55:29 +0200
commit9c5791d3e3b413d8b703f1530f67de8936a3434c (patch)
treedd718ab5e09a0128f94509fed3c8b241c23e8dfa /src/gui/palette.h
parent659b1eac4fc9e733fcfd233020bac78701c30640 (diff)
downloadmana-9c5791d3e3b413d8b703f1530f67de8936a3434c.tar.gz
mana-9c5791d3e3b413d8b703f1530f67de8936a3434c.tar.bz2
mana-9c5791d3e3b413d8b703f1530f67de8936a3434c.tar.xz
mana-9c5791d3e3b413d8b703f1530f67de8936a3434c.zip
Fixed a certain class of Doxygen warnings
All cases of documentation for non-existing parameters are now fixed. Also marked a few getters as 'const', removed some superfluous 'inline' keywords and removed the unused 'forceQuantity' option from ItemContainer. Reviewed-by: Yohann Ferreira
Diffstat (limited to 'src/gui/palette.h')
-rw-r--r--src/gui/palette.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/palette.h b/src/gui/palette.h
index 51cf7d5f..fcee670f 100644
--- a/src/gui/palette.h
+++ b/src/gui/palette.h
@@ -70,9 +70,9 @@ class Palette
*
* @return the requested color
*/
- inline const gcn::Color &getColor(int type, int alpha = 255)
+ const gcn::Color &getColor(int type, int alpha = 255)
{
- gcn::Color* col = &mColors[type].color;
+ gcn::Color *col = &mColors[type].color;
col->a = alpha;
return *col;
}
@@ -84,7 +84,7 @@ class Palette
*
* @return the gradient type of the color with the given index
*/
- inline GradientType getGradientType(int type)
+ GradientType getGradientType(int type) const
{
return mColors[type].grad;
}
@@ -96,7 +96,7 @@ class Palette
*
* @return the color char of the color with the given index
*/
- inline char getColorChar(int type)
+ char getColorChar(int type) const
{
return mColors[type].ch;
}
@@ -108,8 +108,8 @@ class Palette
*
* @return the gradient delay of the color with the given index
*/
- inline int getGradientDelay(int type)
- { return mColors[type].delay; }
+ int getGradientDelay(int type) const
+ { return mColors[type].delay; }
/**
* Updates all colors, that are non-static.
@@ -147,7 +147,7 @@ class Palette
int delay;
int committedDelay;
- void set(int type, gcn::Color& color, GradientType grad, int delay)
+ void set(int type, gcn::Color &color, GradientType grad, int delay)
{
ColorElem::type = type;
ColorElem::color = color;
@@ -157,7 +157,7 @@ class Palette
ColorElem::gradientIndex = rand();
}
- inline int getRGB()
+ int getRGB() const
{
return (committedColor.r << 16) | (committedColor.g << 8) |
committedColor.b;