move hasher for UUID to UUID.h

This commit is contained in:
Stephen Birarda 2015-08-17 16:39:52 -07:00
parent 47d1710208
commit abf07dc06d
2 changed files with 6 additions and 6 deletions

View file

@ -18,4 +18,10 @@ const int NUM_BYTES_RFC4122_UUID = 16;
QString uuidStringWithoutCurlyBraces(const QUuid& uuid);
template <> struct std::hash<QUuid> {
size_t operator()(const QUuid& uuid) const {
return qHash(uuid);
}
};
#endif // hifi_UUID_h

View file

@ -20,12 +20,6 @@
#include "JurisdictionMap.h"
#include "SentPacketHistory.h"
template <> struct std::hash<QUuid> {
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