Commit 34c35803 authored by Ahmad Samir's avatar Ahmad Samir Committed by Waqar Ahmed
Browse files

Use std::tie

parent c463ff98
Pipeline #99800 passed with stage
in 1 minute and 53 seconds
...@@ -186,7 +186,7 @@ public: ...@@ -186,7 +186,7 @@ public:
*/ */
friend constexpr bool operator==(const CharacterColor a, const CharacterColor b) friend constexpr bool operator==(const CharacterColor a, const CharacterColor b)
{ {
return a._colorSpace == b._colorSpace && a._u == b._u && a._v == b._v && a._w == b._w; return std::tie(a._colorSpace, a._u, a._v, a._w) == std::tie(b._colorSpace, b._u, b._v, b._w);
} }
/** /**
* Compares two colors and returns true if they represent different color values * Compares two colors and returns true if they represent different color values
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment