Kill qHash(QPointF)

QPointF operator== is fuzzy, hence it can't be hashed efficiently.
Prevent the erroneous addition of the overload by client code
by providing it as deleted.

Change-Id: I2cfaaf5c2c8896ec9a7929f7c7bf52a912d0450f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Giuseppe D'Angelo 2021-02-27 17:48:33 +01:00
parent 269fdef53d
commit e14ccf0553
1 changed files with 2 additions and 0 deletions

View File

@ -328,6 +328,8 @@ private:
Q_DECLARE_TYPEINFO(QPointF, Q_RELOCATABLE_TYPE);
size_t qHash(QPointF, size_t seed = 0) = delete;
/*****************************************************************************
QPointF stream functions
*****************************************************************************/