Commit e0e9693d authored by Robert Knight's avatar Robert Knight
Browse files

Compare CharacterColor members explicitly rather than using memcpy for clarity.

CCBUG: 160137

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=792019
parent a7ec88c2
......@@ -244,7 +244,10 @@ private:
inline bool operator == (const CharacterColor& a, const CharacterColor& b)
{
return !memcmp(&a,&b,sizeof(CharacterColor));
return a._colorSpace == b._colorSpace &&
a._u == b._u &&
a._v == b._v &&
a._w == b._w;
}
inline bool operator != (const CharacterColor& a, const CharacterColor& b)
{
......
Markdown is supported
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