diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2021-02-27 17:48:33 +0100 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2021-02-28 20:31:31 +0100 |
commit | e14ccf05534bbc2984b15f7f255adbffc4c7f769 (patch) | |
tree | 7fb6a98dd15591f52b718039e44f388dbae4ceeb /src | |
parent | 269fdef53d98386b714bf6852a1f214e9159faa1 (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/tools/qpoint.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/tools/qpoint.h b/src/corelib/tools/qpoint.h index b886ce3801..8fff462487 100644 --- a/src/corelib/tools/qpoint.h +++ b/src/corelib/tools/qpoint.h @@ -328,6 +328,8 @@ private: Q_DECLARE_TYPEINFO(QPointF, Q_RELOCATABLE_TYPE); +size_t qHash(QPointF, size_t seed = 0) = delete; + /***************************************************************************** QPointF stream functions *****************************************************************************/ |