summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-29 06:18:57 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-29 06:18:57 +0300
commit8931206816513e78b903b4d489aa9e3057cfa915 (patch)
tree801965d002515281015f9bb01e9136865a6361d0
parent855e97b88036f83fe951be8399e9daf49a4c6e70 (diff)
downloadplus-8931206816513e78b903b4d489aa9e3057cfa915.tar.gz
plus-8931206816513e78b903b4d489aa9e3057cfa915.tar.bz2
plus-8931206816513e78b903b4d489aa9e3057cfa915.tar.xz
plus-8931206816513e78b903b4d489aa9e3057cfa915.zip
Add const and constexpr into colorpair.h
-rw-r--r--src/gui/colorpair.h7
1 files changed, 4 insertions, 3 deletions
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