mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02: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);
|
||||
|
||||
template <> struct std::hash<QUuid> {
|
||||
size_t operator()(const QUuid& uuid) const {
|
||||
return qHash(uuid);
|
||||
}
|
||||
};
|
||||
|
||||
#endif // hifi_UUID_h
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue