From 8931206816513e78b903b4d489aa9e3057cfa915 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 29 Dec 2016 06:18:57 +0300 Subject: Add const and constexpr into colorpair.h --- src/gui/colorpair.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/gui/colorpair.h b/src/gui/colorpair.h index 2eea3898a..75f454ff6 100644 --- a/src/gui/colorpair.h +++ b/src/gui/colorpair.h @@ -27,14 +27,15 @@ class Color; struct ColorPair final { - ColorPair(const Color* c1, const Color* c2) : + constexpr ColorPair(const Color *const c1, + const Color *const c2) : color1(c1), color2(c2) { } - const Color* color1; - const Color* color2; + const Color *const color1; + const Color *const color2; }; #endif // GUI_COLORPAIR_H -- cgit v1.2.3-70-g09d2