summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/userpalette.cpp11
-rw-r--r--src/gui/userpalette.h2
2 files changed, 8 insertions, 5 deletions
diff --git a/src/gui/userpalette.cpp b/src/gui/userpalette.cpp
index 74d47203f..d6fb35192 100644
--- a/src/gui/userpalette.cpp
+++ b/src/gui/userpalette.cpp
@@ -234,8 +234,10 @@ UserPalette::~UserPalette()
}
}
-void UserPalette::setColor(const int type, const int r,
- const int g, const int b)
+void UserPalette::setColor(const int type,
+ const int r,
+ const int g,
+ const int b)
{
Color &color = mColors[type].color;
color.r = r;
@@ -311,7 +313,7 @@ void UserPalette::rollback()
}
}
-int UserPalette::getColorTypeAt(int i)
+int UserPalette::getColorTypeAt(const int i)
{
if (i < 0 || i >= getNumberOfElements())
return BEING;
@@ -319,7 +321,8 @@ int UserPalette::getColorTypeAt(int i)
return mColors[i].type;
}
-void UserPalette::addColor(const unsigned type, const unsigned rgb,
+void UserPalette::addColor(const unsigned type,
+ const unsigned rgb,
Palette::GradientType grad,
const std::string &text,
int delay)
diff --git a/src/gui/userpalette.h b/src/gui/userpalette.h
index 7bab5bed9..da8252340 100644
--- a/src/gui/userpalette.h
+++ b/src/gui/userpalette.h
@@ -186,7 +186,7 @@ class UserPalette final : public Palette, public ListModel
*
* @return the color type of the color with the given index
*/
- int getColorTypeAt(int i) A_WARN_UNUSED;
+ int getColorTypeAt(const int i) A_WARN_UNUSED;
private:
/**