From cfa5391c1be51ef49380e398a72c813255d6316e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 21 Aug 2012 00:45:24 +0300 Subject: first part of checks and style fixes. --- src/gui/userpalette.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/gui/userpalette.h') 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; -- cgit v1.2.3-60-g2f50