feat(util): add operator== overloads to CHashKeyGUID

This commit is contained in:
fallenoak committed 2026-01-13 15:53:39 -06:00
1 parent 4dd9921a4f
commit a90933f635
2 files changed
+10

No files matched your search

+8
View File
@@ -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;
}
+2
View File
@@ -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