summaryrefslogtreecommitdiff
path: root/src/gui/models/colormodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/models/colormodel.cpp')
-rw-r--r--src/gui/models/colormodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/models/colormodel.cpp b/src/gui/models/colormodel.cpp
index 7ba88e9a8..88dee3c93 100644
--- a/src/gui/models/colormodel.cpp
+++ b/src/gui/models/colormodel.cpp
@@ -45,7 +45,7 @@ std::string ColorModel::getElementAt(int i)
{
if (i >= getNumberOfElements() || i < 0)
return "???";
- return mNames[i];
+ return mNames[static_cast<size_t>(i)];
}
const ColorPair *ColorModel::getColorAt(const int i) const
@@ -53,7 +53,7 @@ const ColorPair *ColorModel::getColorAt(const int i) const
if (i >= static_cast<int>(mColors.size()) || i < 0)
return &mColors[0];
- return &mColors[i];
+ return &mColors[static_cast<size_t>(i)];
}
void ColorModel::add(const std::string &name, const Color *const color1,