hash function simplified

This commit is contained in:
Uwe Rathmann 2020-10-09 08:21:06 +02:00
parent 21d90e5fa0
commit 1b8bbdc261

View File

@ -127,10 +127,8 @@ QVariant QskBoxShapeMetrics::interpolate(
uint QskBoxShapeMetrics::hash( uint seed ) const noexcept
{
uint hash = qHashBits( m_radii, sizeof( m_radii ), seed );
const int mode = m_sizeMode;
return qHashBits( &mode, sizeof( mode ), hash );
uint hash = qHash( static_cast<int>( m_sizeMode ), seed );
return qHashBits( m_radii, sizeof( m_radii ), hash );
}
#ifndef QT_NO_DEBUG_STREAM