summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-12 21:01:32 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-12 21:01:32 +0300
commit7be232f47b28ce1759e6d911014acc4f35202a31 (patch)
treefb9c8e46e141587d30acb82d8c324a4fc36cfb93
parent89cbe82ec07003c16038c278791d58e0744d4eef (diff)
downloadmv-7be232f47b28ce1759e6d911014acc4f35202a31.tar.gz
mv-7be232f47b28ce1759e6d911014acc4f35202a31.tar.bz2
mv-7be232f47b28ce1759e6d911014acc4f35202a31.tar.xz
mv-7be232f47b28ce1759e6d911014acc4f35202a31.zip
Fix compilation with old compilers.
-rw-r--r--src/gui/color.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/color.h b/src/gui/color.h
index e81757adc..26552a88e 100644
--- a/src/gui/color.h
+++ b/src/gui/color.h
@@ -135,7 +135,7 @@ class Color final
* @param color A color to add to this color.
* @return The added colors with an alpha value set to 255.
*/
- constexpr Color operator+(const Color& color) const
+ constexpr2 Color operator+(const Color& color) const
{
Color result(r + color.r,
g + color.g,
@@ -159,7 +159,7 @@ class Color final
* @param color A color to subtract from this color.
* @return The subtracted colors with an alpha value set to 255.
*/
- constexpr Color operator-(const Color& color) const
+ constexpr2 Color operator-(const Color& color) const
{
Color result(r - color.r,
g - color.g,
@@ -182,7 +182,7 @@ class Color final
* the add and subtract operations, be multiplied as
* well.
*/
- constexpr Color operator*(const float value) const
+ constexpr2 Color operator*(const float value) const
{
Color result(CAST_U32(static_cast<float>(r) * value),
CAST_U32(static_cast<float>(g) * value),