diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-12-29 06:18:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-12-29 06:18:57 +0300 |
commit | 8931206816513e78b903b4d489aa9e3057cfa915 (patch) | |
tree | 801965d002515281015f9bb01e9136865a6361d0 /src | |
parent | 855e97b88036f83fe951be8399e9daf49a4c6e70 (diff) | |
download | manaverse-8931206816513e78b903b4d489aa9e3057cfa915.tar.gz manaverse-8931206816513e78b903b4d489aa9e3057cfa915.tar.bz2 manaverse-8931206816513e78b903b4d489aa9e3057cfa915.tar.xz manaverse-8931206816513e78b903b4d489aa9e3057cfa915.zip |
Add const and constexpr into colorpair.h
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/colorpair.h | 7 |
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 |