mirror of
https://github.com/KDE/konsole.git
synced 2026-05-24 06:28:08 -04:00
Re-write CharacterColor::operator==(), CharacterColor::operator!=().
Previous implementation caused memory alignment trap on ARM. BUG:160137 svn path=/trunk/KDE/kdebase/apps/konsole/; revision=792018
This commit is contained in:
@@ -244,14 +244,11 @@ private:
|
||||
|
||||
inline bool operator == (const CharacterColor& a, const CharacterColor& b)
|
||||
{
|
||||
return *reinterpret_cast<const quint32*>(&a._colorSpace) ==
|
||||
*reinterpret_cast<const quint32*>(&b._colorSpace);
|
||||
return !memcmp(&a,&b,sizeof(CharacterColor));
|
||||
}
|
||||
|
||||
inline bool operator != (const CharacterColor& a, const CharacterColor& b)
|
||||
{
|
||||
return *reinterpret_cast<const quint32*>(&a._colorSpace) !=
|
||||
*reinterpret_cast<const quint32*>(&b._colorSpace);
|
||||
return !operator==(a,b);
|
||||
}
|
||||
|
||||
inline const QColor color256(quint8 u, const ColorEntry* base)
|
||||
|
||||
Reference in New Issue
Block a user