diff options
author | George Hazan <ghazan@miranda.im> | 2021-12-26 17:06:04 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-12-26 17:06:04 +0300 |
commit | 1039b2829a264280493ba0fa979214fe024dc70c (patch) | |
tree | 8fa6a60eb46627582c372b56a4a1d4754d6732c3 /include/m_protoint.h | |
parent | 62a186697df33c96dc1a6dac0f4dfc38652fb96f (diff) |
WORD -> uint16_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 6f41d51de3..4876656bd9 100644 --- a/include/m_protoint.h +++ b/include/m_protoint.h @@ -114,9 +114,9 @@ public: __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) { + __forceinline int getWord(const char *name, uint16_t defaultValue = 0) { return db_get_w(0, m_szModuleName, name, defaultValue); } - __forceinline int getWord(MCONTACT hContact, const char *name, WORD defaultValue = 0) { + __forceinline int getWord(MCONTACT hContact, const char *name, uint16_t defaultValue = 0) { return db_get_w(hContact, m_szModuleName, name, defaultValue); } __forceinline DWORD getDword(const char *name, DWORD defaultValue = 0) { @@ -167,8 +167,8 @@ public: __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); } + __forceinline void setWord(const char *name, uint16_t value) { db_set_w(0, m_szModuleName, name, value); } + __forceinline void setWord(MCONTACT hContact, const char *name, uint16_t value) { db_set_w(hContact, m_szModuleName, name, value); } __forceinline void setDword(const char *name, DWORD value) { db_set_dw(0, m_szModuleName, name, value); } __forceinline void setDword(MCONTACT hContact, const char *name, DWORD value) { db_set_dw(hContact, m_szModuleName, name, value); } |