mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
move hasher for UUID to UUID.h
This commit is contained in:
parent
47d1710208
commit
abf07dc06d
2 changed files with 6 additions and 6 deletions
|
@ -18,4 +18,10 @@ const int NUM_BYTES_RFC4122_UUID = 16;
|
||||||
|
|
||||||
QString uuidStringWithoutCurlyBraces(const QUuid& uuid);
|
QString uuidStringWithoutCurlyBraces(const QUuid& uuid);
|
||||||
|
|
||||||
|
template <> struct std::hash<QUuid> {
|
||||||
|
size_t operator()(const QUuid& uuid) const {
|
||||||
|
return qHash(uuid);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
#endif // hifi_UUID_h
|
#endif // hifi_UUID_h
|
||||||
|
|
|
@ -20,12 +20,6 @@
|
||||||
#include "JurisdictionMap.h"
|
#include "JurisdictionMap.h"
|
||||||
#include "SentPacketHistory.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.
|
/// Utility for processing, packing, queueing and sending of outbound edit messages.
|
||||||
class OctreeEditPacketSender : public PacketSender {
|
class OctreeEditPacketSender : public PacketSender {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
Loading…
Reference in a new issue