summaryrefslogtreecommitdiffstats
path: root/examples/embedded/lightmaps
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2020-09-07 15:57:15 +0200
committerMitch Curtis <mitch.curtis@qt.io>2020-09-15 02:46:40 +0200
commitfb65b32d7621f065ec854f1e72828720bffb3b39 (patch)
tree7f8bc479ddc552a654f91d998d701f1bbf496d76 /examples/embedded/lightmaps
parent9815ebf24b5aa148a416ee3b159088f0092d2715 (diff)
Add qHash implementation for QPoint
[ChangeLog][QtCore][QPoint] Added qHash() implementation. Change-Id: I65332e7aafab53af40a6e11457b9b457196d584c Fixes: QTBUG-86457 Reviewed-by: Thorbjørn Lindeijer <bjorn@lindeijer.nl> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'examples/embedded/lightmaps')
-rw-r--r--examples/embedded/lightmaps/slippymap.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/examples/embedded/lightmaps/slippymap.cpp b/examples/embedded/lightmaps/slippymap.cpp
index 038738c69e..bd97aef7ee 100644
--- a/examples/embedded/lightmaps/slippymap.cpp
+++ b/examples/embedded/lightmaps/slippymap.cpp
@@ -53,19 +53,6 @@
#include "slippymap.h"
#include "qmath.h"
-#ifdef QT_NAMESPACE
-QT_BEGIN_NAMESPACE
-size_t qHash(const QT_NAMESPACE::QPoint& p)
-#else
-size_t qHash(const QPoint& p)
-#endif
-{
- return p.x() * 17 ^ p.y();
-}
-#ifdef QT_NAMESPACE
-QT_END_NAMESPACE
-#endif
-
// tile size in pixels
const int tdim = 256;