From 55829fa86de2dbf8935fcb55195f1c5dd4a8b5bb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 20 Mar 2014 00:52:31 +0300 Subject: Improve palette. --- src/gui/palette.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gui/palette.h b/src/gui/palette.h index 0dbb5d3ad..eaee3e141 100644 --- a/src/gui/palette.h +++ b/src/gui/palette.h @@ -101,7 +101,7 @@ class Palette inline const Color &getColorWithAlpha(const int type) A_WARN_UNUSED { - Color* col = &mColors[type].color; + Color *const col = &mColors[type].color; col->a = mColors[type].delay; return *col; } @@ -113,7 +113,7 @@ class Palette * * @return the gradient type of the color with the given index */ - inline GradientType getGradientType(int type) const A_WARN_UNUSED + inline GradientType getGradientType(const int type) const A_WARN_UNUSED { return mColors[type].grad; } /** -- cgit v1.2.3-70-g09d2