summaryrefslogtreecommitdiff
path: root/src/gui/userpalette.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-29 23:40:41 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-29 23:40:41 +0300
commit1feb7f7edc5f8f383e594b256ef4cab0fae75b99 (patch)
tree68fe26fdd1ef25645deef894c296b6fbc80b0e13 /src/gui/userpalette.h
parent41044107cc0a17125ebd806c9934b6eb636dafe6 (diff)
downloadplus-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.gz
plus-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.bz2
plus-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.xz
plus-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.zip
Add const to more classes.
Diffstat (limited to 'src/gui/userpalette.h')
-rw-r--r--src/gui/userpalette.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/userpalette.h b/src/gui/userpalette.h
index e6193baf7..a808e865b 100644
--- a/src/gui/userpalette.h
+++ b/src/gui/userpalette.h
@@ -96,7 +96,7 @@ class UserPalette : public Palette, public gcn::ListModel
*
* @return the requested committed color
*/
- inline const gcn::Color &getCommittedColor(int type)
+ inline const gcn::Color &getCommittedColor(const int type) const
{
return mColors[type].committedColor;
}
@@ -108,7 +108,7 @@ class UserPalette : public Palette, public gcn::ListModel
*
* @return the requested test color
*/
- inline const gcn::Color &getTestColor(int type) const
+ inline const gcn::Color &getTestColor(const int type) const
{ return mColors[type].testColor; }
/**
@@ -117,7 +117,7 @@ class UserPalette : public Palette, public gcn::ListModel
* @param type the color type requested
* @param color the color that should be tested
*/
- inline void setTestColor(int type, gcn::Color color)
+ inline void setTestColor(const int type, const gcn::Color color)
{ mColors[type].testColor = color; }
/**
@@ -142,7 +142,7 @@ class UserPalette : public Palette, public gcn::ListModel
*
* @param grad gradient type to set
*/
- void setGradientDelay(int type, int delay)
+ void setGradientDelay(const int type, const int delay)
{ mColors[type].delay = delay; }
/**