mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-11 08:54:05 +03:00
feat(util): add operator== overloads to CHashKeyGUID
This commit is contained in:
2 files changed
+10
No files matched your search
@@ -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;
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user