mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-04 21:09:05 +00:00
Fix qHash(NormalizedRect)
This commit is contained in:
parent
0858cd0d5b
commit
0cb6dace0c
2 changed files with 3 additions and 3 deletions
|
@ -261,9 +261,9 @@ void NormalizedRect::transform(const QTransform &matrix)
|
|||
bottom = rect.bottom();
|
||||
}
|
||||
|
||||
uint Okular::qHash(const NormalizedRect &r, uint seed)
|
||||
size_t Okular::qHash(const NormalizedRect &r, size_t seed)
|
||||
{
|
||||
return ::qHash(r.bottom, ::qHash(r.right, ::qHash(r.top, ::qHash(r.left, seed))));
|
||||
return ::qHashMulti(seed, r.bottom, r.right, r.top, r.left);
|
||||
}
|
||||
|
||||
QDebug operator<<(QDebug str, const Okular::NormalizedRect &r)
|
||||
|
|
|
@ -967,7 +967,7 @@ public:
|
|||
QColor color;
|
||||
};
|
||||
|
||||
uint qHash(const Okular::NormalizedRect &r, uint seed = 0);
|
||||
size_t qHash(const Okular::NormalizedRect &r, size_t seed = 0);
|
||||
}
|
||||
|
||||
#ifndef QT_NO_DEBUG_STREAM
|
||||
|
|
Loading…
Reference in a new issue