mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 00:32:45 +03:00
feat(util): add operator== overloads to CHashKeyGUID
This commit is contained in:
parent
4dd9921a4f
commit
a90933f635
@ -7,3 +7,11 @@ CHashKeyGUID::CHashKeyGUID() {
|
|||||||
CHashKeyGUID::CHashKeyGUID(WOWGUID guid) {
|
CHashKeyGUID::CHashKeyGUID(WOWGUID guid) {
|
||||||
this->m_guid = 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
|
// Public member functions
|
||||||
CHashKeyGUID();
|
CHashKeyGUID();
|
||||||
CHashKeyGUID(WOWGUID guid);
|
CHashKeyGUID(WOWGUID guid);
|
||||||
|
bool operator==(WOWGUID guid) const;
|
||||||
|
bool operator==(const CHashKeyGUID& key) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Private member variables
|
// Private member variables
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user