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

This commit is contained in:
fallenoak 2026-01-13 15:53:39 -06:00
parent 4dd9921a4f
commit a90933f635
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 10 additions and 0 deletions

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;
}

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