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/SeenPlugin | |
parent | fcbb395dc7ff3edab972b6d4b27dbbfb3305f5d7 (diff) |
BYTE -> uint8_t
Diffstat (limited to 'plugins/SeenPlugin')
-rw-r--r-- | plugins/SeenPlugin/src/history.cpp | 2 | ||||
-rw-r--r-- | plugins/SeenPlugin/src/stdafx.h | 4 | ||||
-rw-r--r-- | plugins/SeenPlugin/src/utils.cpp | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/plugins/SeenPlugin/src/history.cpp b/plugins/SeenPlugin/src/history.cpp index 6b88ee8e4a..03ed948e9a 100644 --- a/plugins/SeenPlugin/src/history.cpp +++ b/plugins/SeenPlugin/src/history.cpp @@ -274,7 +274,7 @@ INT_PTR CALLBACK HistoryDlgProc(HWND hwndDlg, UINT Message, WPARAM wparam, LPARA return FALSE;
}
-void ShowHistory(MCONTACT hContact, BYTE isAlert)
+void ShowHistory(MCONTACT hContact, uint8_t isAlert)
{
HWND hHistoryDlg = WindowList_Find(hWindowList, hContact);
if (hHistoryDlg == nullptr) {
diff --git a/plugins/SeenPlugin/src/stdafx.h b/plugins/SeenPlugin/src/stdafx.h index af9f7c8354..5c48418d44 100644 --- a/plugins/SeenPlugin/src/stdafx.h +++ b/plugins/SeenPlugin/src/stdafx.h @@ -101,7 +101,7 @@ struct CMPlugin : public PLUGIN<CMPlugin> typedef struct{
int count;
WPARAM wpcontact[1024];
- BYTE times[1024];
+ uint8_t times[1024];
} MISSEDCONTACTS;
int IsWatchedProtocol(const char* szProto);
@@ -115,7 +115,7 @@ int UpdateValues(WPARAM, LPARAM); int ModeChange(WPARAM,LPARAM);
int ModeChange_mo(WPARAM,LPARAM);
int CheckIfOnline(void);
-void ShowHistory(MCONTACT hContact, BYTE isAlert);
+void ShowHistory(MCONTACT hContact, uint8_t isAlert);
void InitFileOutput(void);
void UninitFileOutput(void);
diff --git a/plugins/SeenPlugin/src/utils.cpp b/plugins/SeenPlugin/src/utils.cpp index 0114ea022b..53014d3ef1 100644 --- a/plugins/SeenPlugin/src/utils.cpp +++ b/plugins/SeenPlugin/src/utils.cpp @@ -457,7 +457,7 @@ static void waitThread(logthread_info* infoParam) if (infoParam->currStatus != prevStatus) {
g_plugin.setWord(infoParam->hContact, "OldStatus", (WORD)(prevStatus | 0x8000));
if (includeIdle)
- g_plugin.setByte(infoParam->hContact, "OldIdle", (BYTE)((prevStatus & 0x8000) == 0));
+ g_plugin.setByte(infoParam->hContact, "OldIdle", (uint8_t)((prevStatus & 0x8000) == 0));
g_plugin.setWord(infoParam->hContact, "StatusTriger", infoParam->currStatus);
}
@@ -588,7 +588,7 @@ static void cleanThread(logthread_info* infoParam) if (db_get_w(hContact, szProto, "Status", ID_STATUS_OFFLINE) == ID_STATUS_OFFLINE) {
g_plugin.setWord(hContact, "OldStatus", (WORD)(oldStatus | 0x8000));
if (includeIdle)
- g_plugin.setByte(hContact, "OldIdle", (BYTE)((oldStatus & 0x8000) ? 0 : 1));
+ g_plugin.setByte(hContact, "OldIdle", (uint8_t)((oldStatus & 0x8000) ? 0 : 1));
g_plugin.setWord(hContact, "StatusTriger", ID_STATUS_OFFLINE);
}
}
|