Skip to content

Commit

Permalink
Formatting issues with const in Color.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
franziska-wegner committed Jan 5, 2024
1 parent f9bb292 commit 2556df8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/IO/Appearance/Color.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2556df8

Please sign in to comment.