From 7be232f47b28ce1759e6d911014acc4f35202a31 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 12 Dec 2016 21:01:32 +0300 Subject: Fix compilation with old compilers. --- src/gui/color.h | 6 +++--- 1 file 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(r) * value), CAST_U32(static_cast(g) * value), -- cgit v1.2.3-60-g2f50