summaryrefslogtreecommitdiff
path: root/src/gui/userpalette.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-21 00:45:24 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-21 00:45:24 +0300
commitcfa5391c1be51ef49380e398a72c813255d6316e (patch)
tree32e9f77ae80e72a6388923dddb90721e661394e5 /src/gui/userpalette.h
parent31acb66791e27b6cfa846302156ad2e7a88f5f04 (diff)
downloadplus-cfa5391c1be51ef49380e398a72c813255d6316e.tar.gz
plus-cfa5391c1be51ef49380e398a72c813255d6316e.tar.bz2
plus-cfa5391c1be51ef49380e398a72c813255d6316e.tar.xz
plus-cfa5391c1be51ef49380e398a72c813255d6316e.zip
first part of checks and style fixes.
Diffstat (limited to 'src/gui/userpalette.h')
-rw-r--r--src/gui/userpalette.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/userpalette.h b/src/gui/userpalette.h
index 3d53cc26c..e6193baf7 100644
--- a/src/gui/userpalette.h
+++ b/src/gui/userpalette.h
@@ -128,14 +128,14 @@ class UserPalette : public Palette, public gcn::ListModel
* @param g green component
* @param b blue component
*/
- void setColor(int type, int r, int g, int b);
+ void setColor(const int type, const int r, const int g, const int b);
/**
* Sets the gradient type for the specified color.
*
* @param grad gradient type to set
*/
- void setGradient(int type, Palette::GradientType grad);
+ void setGradient(const int type, const Palette::GradientType grad);
/**
* Sets the gradient delay for the specified color.
@@ -198,7 +198,7 @@ class UserPalette : public Palette, public gcn::ListModel
* Commit the colors. Commit the non-static color values, if
* commitNonStatic is true. Only needed in the constructor.
*/
- void commit(bool commitNonStatic);
+ void commit(const bool commitNonStatic);
/**
* Prefixes the given string with "Color", lowercases all letters but
@@ -219,8 +219,9 @@ class UserPalette : public Palette, public gcn::ListModel
* @param rgb default color if not found in config
* @param text identifier of color
*/
- void addColor(unsigned type, unsigned rgb, GradientType grad,
- const std::string &text, int delay = GRADIENT_DELAY);
+ void addColor(const unsigned type, const unsigned rgb,
+ GradientType grad, const std::string &text,
+ int delay = GRADIENT_DELAY);
};
extern UserPalette *userPalette;