From 1039b2829a264280493ba0fa979214fe024dc70c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 26 Dec 2021 17:06:04 +0300 Subject: WORD -> uint16_t --- plugins/CSList/src/cslist.cpp | 6 +++--- plugins/CSList/src/stdafx.h | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/CSList/src') diff --git a/plugins/CSList/src/cslist.cpp b/plugins/CSList/src/cslist.cpp index 08d8abb871..698112b10e 100644 --- a/plugins/CSList/src/cslist.cpp +++ b/plugins/CSList/src/cslist.cpp @@ -147,7 +147,7 @@ void RegisterHotkeys(char buf[200], wchar_t* accName, int Number) g_plugin.addHotkey(&hotkey); } -void SetStatus(WORD code, StatusItem* item, char *szAccName) +void SetStatus(uint16_t code, StatusItem* item, char *szAccName) { if (code == IDCLOSE) return; @@ -413,7 +413,7 @@ BOOL CSWindow::toggleButtons() /////////////////////////////////////////////////////////////////////////////// // CSAMWindow class - add form window -CSAMWindow::CSAMWindow(WORD action, CSWindow* parent) +CSAMWindow::CSAMWindow(uint16_t action, CSWindow* parent) { m_action = action; m_parent = parent; @@ -491,7 +491,7 @@ void CSAMWindow::fillDialog() SetDlgItemText(m_handle, IDC_MESSAGE, m_item->m_tszMessage); } -void CSAMWindow::checkFieldLimit(WORD action, WORD item) +void CSAMWindow::checkFieldLimit(uint16_t action, uint16_t item) { BOOL type = (item == IDC_MESSAGE) ? TRUE : FALSE; unsigned int limit = type ? EXTRASTATUS_MESSAGE_LIMIT : EXTRASTATUS_TITLE_LIMIT; diff --git a/plugins/CSList/src/stdafx.h b/plugins/CSList/src/stdafx.h index b70f359d2e..8586578d5d 100644 --- a/plugins/CSList/src/stdafx.h +++ b/plugins/CSList/src/stdafx.h @@ -363,7 +363,7 @@ struct CSWindow struct CSAMWindow { - WORD m_action; + uint16_t m_action; StatusItem* m_item; CSWindow* m_parent; BOOL m_bChanged; @@ -372,13 +372,13 @@ struct CSAMWindow HWND m_hCombo; HWND m_hMessage; - CSAMWindow(WORD action, CSWindow* parent); + CSAMWindow(uint16_t action, CSWindow* parent); ~CSAMWindow(); void exec(); void setCombo(); void fillDialog(); - void checkFieldLimit(WORD action, WORD item); + void checkFieldLimit(uint16_t action, uint16_t item); void checkItemValidity(); }; @@ -391,7 +391,7 @@ void addProtoStatusMenuItem(char *protoName); // other functions void RegisterHotkeys(char buf[200], wchar_t* accName, int Number); -void SetStatus(WORD code, StatusItem* item, char *protoName); +void SetStatus(uint16_t code, StatusItem* item, char *protoName); //====[ PROCEDURES ]========================================================= -- cgit v1.2.3