diff options
author | George Hazan <ghazan@miranda.im> | 2021-12-26 16:39:04 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-12-26 16:39:04 +0300 |
commit | 62a186697df33c96dc1a6dac0f4dfc38652fb96f (patch) | |
tree | 1437d0906218fae8827aed384026f2b7e656f4ac /include/m_protoint.h | |
parent | fcbb395dc7ff3edab972b6d4b27dbbfb3305f5d7 (diff) |
BYTE -> uint8_t
Diffstat (limited to 'include/m_protoint.h')
-rw-r--r-- | include/m_protoint.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/m_protoint.h b/include/m_protoint.h index 352f4d3574..6f41d51de3 100644 --- a/include/m_protoint.h +++ b/include/m_protoint.h @@ -109,9 +109,9 @@ public: __forceinline bool isChatRoom(MCONTACT hContact) { return getBool(hContact, "ChatRoom", false); } - __forceinline int getByte(const char *name, BYTE defaultValue = 0) { + __forceinline int getByte(const char *name, uint8_t defaultValue = 0) { return db_get_b(0, m_szModuleName, name, defaultValue); } - __forceinline int getByte(MCONTACT hContact, const char *name, BYTE defaultValue = 0) { + __forceinline int getByte(MCONTACT hContact, const char *name, uint8_t defaultValue = 0) { return db_get_b(hContact, m_szModuleName, name, defaultValue); } __forceinline int getWord(const char *name, WORD defaultValue = 0) { @@ -164,8 +164,8 @@ public: __forceinline CMStringW getMStringW(MCONTACT hContact, const char *name, const wchar_t *szValue = nullptr) { return db_get_wsm(hContact, m_szModuleName, name, szValue); } - __forceinline void setByte(const char *name, BYTE value) { db_set_b(0, m_szModuleName, name, value); } - __forceinline void setByte(MCONTACT hContact, const char *name, BYTE value) { db_set_b(hContact, m_szModuleName, name, value); } + __forceinline void setByte(const char *name, uint8_t value) { db_set_b(0, m_szModuleName, name, value); } + __forceinline void setByte(MCONTACT hContact, const char *name, uint8_t value) { db_set_b(hContact, m_szModuleName, name, value); } __forceinline void setWord(const char *name, WORD value) { db_set_w(0, m_szModuleName, name, value); } __forceinline void setWord(MCONTACT hContact, const char *name, WORD value) { db_set_w(hContact, m_szModuleName, name, value); } |