From a90933f6353e924213cc09512ef3338ca88925eb Mon Sep 17 00:00:00 2001 From: fallenoak Date: Tue, 13 Jan 2026 15:53:39 -0600 Subject: [PATCH] feat(util): add operator== overloads to CHashKeyGUID --- src/util/guid/CHashKeyGUID.cpp | 8 ++++++++ src/util/guid/CHashKeyGUID.hpp | 2 ++ 2 files changed, 10 insertions(+) diff --git a/src/util/guid/CHashKeyGUID.cpp b/src/util/guid/CHashKeyGUID.cpp index 7418c57..1e1f7a4 100644 --- a/src/util/guid/CHashKeyGUID.cpp +++ b/src/util/guid/CHashKeyGUID.cpp @@ -7,3 +7,11 @@ CHashKeyGUID::CHashKeyGUID() { CHashKeyGUID::CHashKeyGUID(WOWGUID guid) { this->m_guid = guid; } + +bool CHashKeyGUID::operator==(WOWGUID guid) const { + return this->m_guid == guid; +} + +bool CHashKeyGUID::operator==(const CHashKeyGUID& key) const { + return this->m_guid == key.m_guid; +} diff --git a/src/util/guid/CHashKeyGUID.hpp b/src/util/guid/CHashKeyGUID.hpp index 5ba0e4a..95399d1 100644 --- a/src/util/guid/CHashKeyGUID.hpp +++ b/src/util/guid/CHashKeyGUID.hpp @@ -9,6 +9,8 @@ class CHashKeyGUID { // Public member functions CHashKeyGUID(); CHashKeyGUID(WOWGUID guid); + bool operator==(WOWGUID guid) const; + bool operator==(const CHashKeyGUID& key) const; private: // Private member variables