summaryrefslogtreecommitdiff
path: root/src/gui/color.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-22 17:07:50 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-22 17:07:50 +0300
commit4aada89a99e81574db3e662b9c354cde0cd4440d (patch)
tree970264d1f52215ad563ce90fd4a86e92e8cbaddf /src/gui/color.h
parent04dd5dab7669440d4d5e4bb4d72002ab7fb38912 (diff)
downloadmanaplus-4aada89a99e81574db3e662b9c354cde0cd4440d.tar.gz
manaplus-4aada89a99e81574db3e662b9c354cde0cd4440d.tar.bz2
manaplus-4aada89a99e81574db3e662b9c354cde0cd4440d.tar.xz
manaplus-4aada89a99e81574db3e662b9c354cde0cd4440d.zip
Fix style issues.
Diffstat (limited to 'src/gui/color.h')
-rw-r--r--src/gui/color.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/color.h b/src/gui/color.h
index 26552a88e..e555574dc 100644
--- a/src/gui/color.h
+++ b/src/gui/color.h
@@ -96,7 +96,7 @@ class Color final
*
* @param color The color to initialise the object with.
*/
- constexpr Color(const unsigned int color) :
+ explicit constexpr Color(const unsigned int color) :
r((color >> 16) & 0xFFU),
g((color >> 8) & 0xFFU),
b(color & 0xFFU),
@@ -204,7 +204,10 @@ class Color final
*/
constexpr bool operator==(const Color& color) const
{
- return r == color.r && g == color.g && b == color.b && a == color.a;
+ return r == color.r &&
+ g == color.g &&
+ b == color.b &&
+ a == color.a;
}
/**