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 /plugins/BossKeyPlus | |
parent | fcbb395dc7ff3edab972b6d4b27dbbfb3305f5d7 (diff) |
BYTE -> uint8_t
Diffstat (limited to 'plugins/BossKeyPlus')
-rw-r--r-- | plugins/BossKeyPlus/src/BossKey.cpp | 8 | ||||
-rw-r--r-- | plugins/BossKeyPlus/src/Options.cpp | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/plugins/BossKeyPlus/src/BossKey.cpp b/plugins/BossKeyPlus/src/BossKey.cpp index 038f421609..869eef985e 100644 --- a/plugins/BossKeyPlus/src/BossKey.cpp +++ b/plugins/BossKeyPlus/src/BossKey.cpp @@ -33,7 +33,7 @@ int protoCount; PROTOACCOUNT **proto;
unsigned *oldStatus;
wchar_t **oldStatusMsg;
-BYTE g_bOldSetting;
+uint8_t g_bOldSetting;
CMPlugin g_plugin;
@@ -304,7 +304,7 @@ LRESULT CALLBACK ListenWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPara if (g_wMask & OPT_CHANGESTATUS) // is this even needed?
{
- BYTE bReqMode = g_plugin.getByte("stattype", 2);
+ uint8_t bReqMode = g_plugin.getByte("stattype", 2);
unsigned uMode = (STATUS_ARR_TO_ID[bReqMode]);
DBVARIANT dbVar;
if (g_wMask & OPT_USEDEFMSG || g_plugin.getWString("statmsg", &dbVar)) {
@@ -476,8 +476,8 @@ static wchar_t* GetBossKeyText(void) {
WORD wHotKey = db_get_w(0, "SkinHotKeys", "Hide/Show Miranda", HOTKEYCODE(HOTKEYF_CONTROL, VK_F12));
- BYTE key = LOBYTE(wHotKey);
- BYTE shift = HIBYTE(wHotKey);
+ uint8_t key = LOBYTE(wHotKey);
+ uint8_t shift = HIBYTE(wHotKey);
static wchar_t buf[128];
mir_snwprintf(buf, L"%s%s%s%s%s",
diff --git a/plugins/BossKeyPlus/src/Options.cpp b/plugins/BossKeyPlus/src/Options.cpp index febde01740..7d05135e10 100644 --- a/plugins/BossKeyPlus/src/Options.cpp +++ b/plugins/BossKeyPlus/src/Options.cpp @@ -32,7 +32,7 @@ class COptMainDlg : public CDlgBase void ComboboxSelState()
{
- BYTE bSelection = (BYTE)m_cbStatusList.GetCurSel();
+ uint8_t bSelection = (uint8_t)m_cbStatusList.GetCurSel();
WORD wMode = STATUS_ARR_TO_ID[bSelection];
if (m_chkUsrDefMsg.GetState()) {
wchar_t *ptszDefMsg = GetDefStatusMsg(wMode, nullptr);
@@ -134,7 +134,7 @@ public: // write down status type
if (m_chkChangeStatus.GetState()) {
- g_plugin.setByte("stattype", (BYTE)m_cbStatusList.GetCurSel());
+ g_plugin.setByte("stattype", (uint8_t)m_cbStatusList.GetCurSel());
// status msg, if needed
if (m_edtStatMsg.Enabled()) { // meaning we should save it
|