mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-02-04 08:59:07 +00:00
chore(hash): ensure correct const declarations in HASHKEY classes
This commit is contained in:
parent
73e0097395
commit
195e0319d1
3 changed files with 9 additions and 9 deletions
|
|
@ -14,7 +14,7 @@ HASHKEY_PTR::HASHKEY_PTR(void* key) {
|
|||
this->m_key = key;
|
||||
}
|
||||
|
||||
bool HASHKEY_PTR::operator==(const HASHKEY_PTR& key) {
|
||||
bool HASHKEY_PTR::operator==(const HASHKEY_PTR& key) const {
|
||||
return this->m_key == key.m_key;
|
||||
}
|
||||
|
||||
|
|
@ -44,7 +44,7 @@ HASHKEY_STR& HASHKEY_STR::operator=(const char* str) {
|
|||
return *this;
|
||||
}
|
||||
|
||||
bool HASHKEY_STR::operator==(const char* str) {
|
||||
bool HASHKEY_STR::operator==(const char* str) const {
|
||||
return SStrCmp(this->m_str, str, STORM_MAX_STR) == 0;
|
||||
}
|
||||
|
||||
|
|
@ -53,6 +53,6 @@ HASHKEY_STRI& HASHKEY_STRI::operator=(const char* str) {
|
|||
return *this;
|
||||
}
|
||||
|
||||
bool HASHKEY_STRI::operator==(const char* str) {
|
||||
bool HASHKEY_STRI::operator==(const char* str) const {
|
||||
return SStrCmpI(this->m_str, str, STORM_MAX_STR) == 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ class HASHKEY_PTR {
|
|||
// Member functions
|
||||
HASHKEY_PTR();
|
||||
HASHKEY_PTR(void* key);
|
||||
bool operator==(const HASHKEY_PTR& key);
|
||||
bool operator==(const HASHKEY_PTR& key) const;
|
||||
};
|
||||
|
||||
class HASHKEY_STR {
|
||||
|
|
@ -22,14 +22,14 @@ class HASHKEY_STR {
|
|||
HASHKEY_STR(const char* str);
|
||||
~HASHKEY_STR();
|
||||
HASHKEY_STR& operator=(const char* str);
|
||||
bool operator==(const char* str);
|
||||
bool operator==(const char* str) const;
|
||||
};
|
||||
|
||||
class HASHKEY_STRI : public HASHKEY_STR {
|
||||
public:
|
||||
// Member functions
|
||||
HASHKEY_STRI& operator=(const char* str);
|
||||
bool operator==(const char* str);
|
||||
bool operator==(const char* str) const;
|
||||
};
|
||||
|
||||
class HASHKEY_NONE {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue