From 62a186697df33c96dc1a6dac0f4dfc38652fb96f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 26 Dec 2021 16:39:04 +0300 Subject: BYTE -> uint8_t --- plugins/Sessions/Src/Options.cpp | 12 ++++++------ plugins/Sessions/Src/SaveSessions.cpp | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/Sessions') diff --git a/plugins/Sessions/Src/Options.cpp b/plugins/Sessions/Src/Options.cpp index 9188c7e817..1fb44c7f21 100644 --- a/plugins/Sessions/Src/Options.cpp +++ b/plugins/Sessions/Src/Options.cpp @@ -254,7 +254,7 @@ public: { int iDelay = GetDlgItemInt(m_hwnd, IDC_STARTDELAY, nullptr, FALSE); g_plugin.setWord("StartupModeDelay", (WORD)iDelay); - g_plugin.setByte("TrackCount", (BYTE)(g_ses_limit = GetDlgItemInt(m_hwnd, IDC_TRACK, nullptr, FALSE))); + g_plugin.setByte("TrackCount", (uint8_t)(g_ses_limit = GetDlgItemInt(m_hwnd, IDC_TRACK, nullptr, FALSE))); if (chkExitSave.IsChecked()) g_plugin.setByte("ShutdownMode", 2); else if (IsDlgButtonChecked(m_hwnd, IDC_REXDSAVE)) @@ -273,10 +273,10 @@ public: else if (chkNothing.IsChecked()) g_plugin.setByte("StartupMode", 0); - g_plugin.setByte("ExclHidden", (BYTE)(IsDlgButtonChecked(m_hwnd, IDC_EXCLHIDDEN) ? (g_bExclHidden = 1) : (g_bExclHidden = 0))); - g_plugin.setByte("WarnOnHidden", (BYTE)(IsDlgButtonChecked(m_hwnd, IDC_LASTHIDDENWARN) ? (g_bWarnOnHidden = 1) : (g_bWarnOnHidden = 0))); - g_plugin.setByte("OtherWarnings", (BYTE)(IsDlgButtonChecked(m_hwnd, IDC_WARNINGS) ? (g_bOtherWarnings = 1) : (g_bOtherWarnings = 0))); - g_plugin.setByte("CrashRecovery", (BYTE)(IsDlgButtonChecked(m_hwnd, IDC_CRASHRECOVERY) ? (g_bCrashRecovery = 1) : (g_bCrashRecovery = 0))); + g_plugin.setByte("ExclHidden", (uint8_t)(IsDlgButtonChecked(m_hwnd, IDC_EXCLHIDDEN) ? (g_bExclHidden = 1) : (g_bExclHidden = 0))); + g_plugin.setByte("WarnOnHidden", (uint8_t)(IsDlgButtonChecked(m_hwnd, IDC_LASTHIDDENWARN) ? (g_bWarnOnHidden = 1) : (g_bWarnOnHidden = 0))); + g_plugin.setByte("OtherWarnings", (uint8_t)(IsDlgButtonChecked(m_hwnd, IDC_WARNINGS) ? (g_bOtherWarnings = 1) : (g_bOtherWarnings = 0))); + g_plugin.setByte("CrashRecovery", (uint8_t)(IsDlgButtonChecked(m_hwnd, IDC_CRASHRECOVERY) ? (g_bCrashRecovery = 1) : (g_bCrashRecovery = 0))); return true; } @@ -376,7 +376,7 @@ public: void onClick_Save(CCtrlButton *) { for (auto &hContact : Contacts()) { - BYTE res = m_clist.GetCheck(m_clist.FindContact(hContact)); + uint8_t res = m_clist.GetCheck(m_clist.FindContact(hContact)); if (res) { // !!!!!!!!!!!!!!!!!!! } diff --git a/plugins/Sessions/Src/SaveSessions.cpp b/plugins/Sessions/Src/SaveSessions.cpp index 457b224c21..75dd36ddb1 100644 --- a/plugins/Sessions/Src/SaveSessions.cpp +++ b/plugins/Sessions/Src/SaveSessions.cpp @@ -110,7 +110,7 @@ public: if (chkSelContacts.IsChecked() && bSC) { int i = 0; for (auto &hContact : Contacts()) { - BYTE res = m_clist.GetCheck(m_clist.FindContact(hContact)); + uint8_t res = m_clist.GetCheck(m_clist.FindContact(hContact)); if (res) { user_session_list[i] = hContact; i++; -- cgit v1.2.3