From abf07dc06df1c0c339c3edd9dcb65fef4eecfa06 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Mon, 17 Aug 2015 16:39:52 -0700 Subject: [PATCH] move hasher for UUID to UUID.h --- libraries/networking/src/UUID.h | 6 ++++++ libraries/octree/src/OctreeEditPacketSender.h | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libraries/networking/src/UUID.h b/libraries/networking/src/UUID.h index 7e7048486f..b8cb1b56ca 100644 --- a/libraries/networking/src/UUID.h +++ b/libraries/networking/src/UUID.h @@ -18,4 +18,10 @@ const int NUM_BYTES_RFC4122_UUID = 16; QString uuidStringWithoutCurlyBraces(const QUuid& uuid); +template <> struct std::hash { + size_t operator()(const QUuid& uuid) const { + return qHash(uuid); + } +}; + #endif // hifi_UUID_h diff --git a/libraries/octree/src/OctreeEditPacketSender.h b/libraries/octree/src/OctreeEditPacketSender.h index d10870a221..d8761e6161 100644 --- a/libraries/octree/src/OctreeEditPacketSender.h +++ b/libraries/octree/src/OctreeEditPacketSender.h @@ -20,12 +20,6 @@ #include "JurisdictionMap.h" #include "SentPacketHistory.h" -template <> struct std::hash { - size_t operator()(const QUuid& uuid) const { - return qHash(uuid); - } -}; - /// Utility for processing, packing, queueing and sending of outbound edit messages. class OctreeEditPacketSender : public PacketSender { Q_OBJECT