From 2556df8b206f1f4f1e50a3717095528978009af1 Mon Sep 17 00:00:00 2001 From: Franziska Wegner Date: Fri, 5 Jan 2024 14:55:57 -0800 Subject: [PATCH] Formatting issues with const in Color.hpp --- include/IO/Appearance/Color.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/IO/Appearance/Color.hpp b/include/IO/Appearance/Color.hpp index 6ec442d1..534927b4 100644 --- a/include/IO/Appearance/Color.hpp +++ b/include/IO/Appearance/Color.hpp @@ -279,15 +279,15 @@ class Color { ~Color(){} - bool operator== ( const Color& rhs ) { + bool operator== ( Color const & rhs ) { return Red() == rhs.Red() && Green() == rhs.Green() && Blue() == rhs.Blue(); } - bool operator!= ( const Color& rhs ) { + bool operator!= ( Color const & rhs ) { return !operator==(rhs); } - friend std::ostream& operator<<(std::ostream& os, const Name color ) { + friend std::ostream& operator<<(std::ostream& os, Name const color ) { switch ( color ) { case Name::KITgreen: os << "KITgreen"; break; case Name::KITgreen70: os << "KITgreen70"; break;