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 /protocols/Non-IM Contact/src | |
parent | fcbb395dc7ff3edab972b6d4b27dbbfb3305f5d7 (diff) |
BYTE -> uint8_t
Diffstat (limited to 'protocols/Non-IM Contact/src')
-rw-r--r-- | protocols/Non-IM Contact/src/contactinfo.cpp | 8 | ||||
-rw-r--r-- | protocols/Non-IM Contact/src/dialog.cpp | 2 | ||||
-rw-r--r-- | protocols/Non-IM Contact/src/namereplacing.cpp | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/protocols/Non-IM Contact/src/contactinfo.cpp b/protocols/Non-IM Contact/src/contactinfo.cpp index 6f34ff479b..47effee3e7 100644 --- a/protocols/Non-IM Contact/src/contactinfo.cpp +++ b/protocols/Non-IM Contact/src/contactinfo.cpp @@ -261,8 +261,8 @@ INT_PTR CALLBACK DlgProcOtherStuff(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP else g_plugin.setWord(hContact, "Timer", 0); // always visible - g_plugin.setByte(hContact, "AlwaysVisible", (BYTE)IsDlgButtonChecked(hwnd, IDC_ALWAYS_VISIBLE)); - g_plugin.setByte(hContact, "VisibleUnlessOffline", (BYTE)IsDlgButtonChecked(hwnd, IDC_VISIBLE_UNLESS_OFFLINE)); + g_plugin.setByte(hContact, "AlwaysVisible", (uint8_t)IsDlgButtonChecked(hwnd, IDC_ALWAYS_VISIBLE)); + g_plugin.setByte(hContact, "VisibleUnlessOffline", (uint8_t)IsDlgButtonChecked(hwnd, IDC_VISIBLE_UNLESS_OFFLINE)); } return TRUE; } @@ -643,8 +643,8 @@ INT_PTR ImportContacts(WPARAM, LPARAM) // copy the ToolTip g_plugin.setString(hContact, "ToolTip", tooltip); // timer - g_plugin.setByte(hContact, "UseTimer", (BYTE)usetimer); - g_plugin.setByte(hContact, "Minutes", (BYTE)minutes); + g_plugin.setByte(hContact, "UseTimer", (uint8_t)usetimer); + g_plugin.setByte(hContact, "Minutes", (uint8_t)minutes); g_plugin.setWord(hContact, "Timer", (WORD)timer); //icon g_plugin.setWord(hContact, "Icon", (WORD)icon); diff --git a/protocols/Non-IM Contact/src/dialog.cpp b/protocols/Non-IM Contact/src/dialog.cpp index 1db80c26df..8549d7cecc 100644 --- a/protocols/Non-IM Contact/src/dialog.cpp +++ b/protocols/Non-IM Contact/src/dialog.cpp @@ -58,7 +58,7 @@ INT_PTR CALLBACK DlgProcNimcOpts(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPar case 0: switch (((LPNMHDR)lParam)->code) { case PSN_APPLY: - g_plugin.setByte("AwayAsStatus", (BYTE)IsDlgButtonChecked(hwnd, IDC_AWAYISNOTONLINE)); + g_plugin.setByte("AwayAsStatus", (uint8_t)IsDlgButtonChecked(hwnd, IDC_AWAYISNOTONLINE)); if (BST_UNCHECKED == IsDlgButtonChecked(hwnd, IDC_DISABLETIMER) && GetWindowTextLength(GetDlgItem(hwnd, IDC_TIMER_INT))) { GetDlgItemText(hwnd, IDC_TIMER_INT, tmp, _countof(tmp)); g_plugin.setWord("Timer", (WORD)_wtoi(tmp)); diff --git a/protocols/Non-IM Contact/src/namereplacing.cpp b/protocols/Non-IM Contact/src/namereplacing.cpp index 54709aa37c..00a9ca07ab 100644 --- a/protocols/Non-IM Contact/src/namereplacing.cpp +++ b/protocols/Non-IM Contact/src/namereplacing.cpp @@ -302,7 +302,7 @@ void checkStringForSaveN(CMStringA &str) switch (D[0]) { case '0': case 'b': - db_set_b(0, A, B, (BYTE)atoi(C)); + db_set_b(0, A, B, (uint8_t)atoi(C)); break; case '1': case 'w': |