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/FavContacts/src/contact_cache.cpp | 2 +- plugins/FavContacts/src/options.cpp | 2 +- plugins/FavContacts/src/services.cpp | 4 ++-- plugins/FavContacts/src/stdafx.h | 20 ++++++++++---------- 4 files changed, 14 insertions(+), 14 deletions(-) (limited to 'plugins/FavContacts') diff --git a/plugins/FavContacts/src/contact_cache.cpp b/plugins/FavContacts/src/contact_cache.cpp index 42f46da620..2416ed0c00 100644 --- a/plugins/FavContacts/src/contact_cache.cpp +++ b/plugins/FavContacts/src/contact_cache.cpp @@ -173,7 +173,7 @@ bool CContactCache::filter(int rate, wchar_t *str) int nKbdLayouts = GetKeyboardLayoutList(_countof(kbdLayouts), kbdLayouts); wchar_t buf[256]; - BYTE keyState[256] = { 0 }; + uint8_t keyState[256] = { 0 }; for (int iLayout = 0; iLayout < nKbdLayouts; ++iLayout) { if (kbdLayoutActive == kbdLayouts[iLayout]) diff --git a/plugins/FavContacts/src/options.cpp b/plugins/FavContacts/src/options.cpp index af7034e7dd..2ad1d715dd 100644 --- a/plugins/FavContacts/src/options.cpp +++ b/plugins/FavContacts/src/options.cpp @@ -208,7 +208,7 @@ static INT_PTR CALLBACK OptionsDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARA sttSaveOptions(); for (auto &hContact : Contacts()) { - BYTE fav = SendDlgItemMessage(hwnd, IDC_CLIST, CLM_GETCHECKMARK, + uint8_t fav = SendDlgItemMessage(hwnd, IDC_CLIST, CLM_GETCHECKMARK, SendDlgItemMessage(hwnd, IDC_CLIST, CLM_FINDCONTACT, hContact, 0), 0); if (fav != g_plugin.getByte(hContact, "IsFavourite")) g_plugin.setByte(hContact, "IsFavourite", fav); diff --git a/plugins/FavContacts/src/services.cpp b/plugins/FavContacts/src/services.cpp index 82e448aa63..4d0efee903 100644 --- a/plugins/FavContacts/src/services.cpp +++ b/plugins/FavContacts/src/services.cpp @@ -51,7 +51,7 @@ int ProcessSrmmEvent(WPARAM, LPARAM lParam) hDialogsList = WindowList_Create(); WindowList_Add(hDialogsList, event->hwndWindow, event->hContact); - BYTE fav = g_plugin.getByte(event->hContact, "IsFavourite"); + uint8_t fav = g_plugin.getByte(event->hContact, "IsFavourite"); Srmm_SetIconFlags(event->hContact, MODULENAME, 0, fav ? 0 : MBF_DISABLED); if (event->hContact == hContactToActivate) { @@ -86,7 +86,7 @@ int ProcessSrmmIconClick(WPARAM hContact, LPARAM lParam) return 0; if (sicd->flags & MBCF_RIGHTBUTTON) { - BYTE fav = !g_plugin.getByte(hContact, "IsFavourite"); + uint8_t fav = !g_plugin.getByte(hContact, "IsFavourite"); g_plugin.setByte(hContact, "IsFavourite", fav); if (fav) CallService(MS_AV_GETAVATARBITMAP, hContact, 0); diff --git a/plugins/FavContacts/src/stdafx.h b/plugins/FavContacts/src/stdafx.h index f974139199..ad34fea12b 100644 --- a/plugins/FavContacts/src/stdafx.h +++ b/plugins/FavContacts/src/stdafx.h @@ -70,17 +70,17 @@ struct CMPlugin : public PLUGIN struct Options { - BYTE bSecondLine; - BYTE bAvatars; - BYTE bAvatarBorder; + uint8_t bSecondLine; + uint8_t bAvatars; + uint8_t bAvatarBorder; WORD wAvatarRadius; - BYTE bNoTransparentBorder; - BYTE bSysColors; - BYTE bCenterHotkey; - BYTE bUseGroups; - BYTE bUseColumns; - BYTE bRightAvatars; - BYTE bDimIdle; + uint8_t bNoTransparentBorder; + uint8_t bSysColors; + uint8_t bCenterHotkey; + uint8_t bUseGroups; + uint8_t bUseColumns; + uint8_t bRightAvatars; + uint8_t bDimIdle; WORD wMaxRecent; COLORREF clLine1, clLine2, clBack; -- cgit v1.2.3