diff options
author | George Hazan <ghazan@miranda.im> | 2021-12-26 17:06:04 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-12-26 17:06:04 +0300 |
commit | 1039b2829a264280493ba0fa979214fe024dc70c (patch) | |
tree | 8fa6a60eb46627582c372b56a4a1d4754d6732c3 /utils | |
parent | 62a186697df33c96dc1a6dac0f4dfc38652fb96f (diff) |
WORD -> uint16_t
Diffstat (limited to 'utils')
-rw-r--r-- | utils/mir_options.cpp | 10 | ||||
-rw-r--r-- | utils/mir_options.h | 4 | ||||
-rw-r--r-- | utils/std_string_utils.cpp | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/utils/mir_options.cpp b/utils/mir_options.cpp index cc20034688..7f64f3b43c 100644 --- a/utils/mir_options.cpp +++ b/utils/mir_options.cpp @@ -107,7 +107,7 @@ static void LoadOpt(OptPageControl *ctrl, char *module) break; case CONTROL_SPIN: - *((WORD *)ctrl->var) = db_get_w(0, module, ctrl->setting, ctrl->dwDefValue); + *((uint16_t *)ctrl->var) = db_get_w(0, module, ctrl->setting, ctrl->dwDefValue); break; case CONTROL_COLOR: @@ -115,11 +115,11 @@ static void LoadOpt(OptPageControl *ctrl, char *module) break; case CONTROL_RADIO: - *((WORD *)ctrl->var) = db_get_w(0, module, ctrl->setting, ctrl->dwDefValue); + *((uint16_t *)ctrl->var) = db_get_w(0, module, ctrl->setting, ctrl->dwDefValue); break; case CONTROL_COMBO: - *((WORD *)ctrl->var) = db_get_w(0, module, ctrl->setting, ctrl->dwDefValue); + *((uint16_t *)ctrl->var) = db_get_w(0, module, ctrl->setting, ctrl->dwDefValue); break; case CONTROL_PROTOCOL_LIST: @@ -317,7 +317,7 @@ INT_PTR CALLBACK SaveOptsDlgProc(OptPageControl *controls, int controlsSize, cha break; case CONTROL_SPIN: - db_set_w(0, module, ctrl->setting, (WORD)SendDlgItemMessage(hwndDlg, ctrl->nIDSpin, UDM_GETPOS, 0, 0)); + db_set_w(0, module, ctrl->setting, (uint16_t)SendDlgItemMessage(hwndDlg, ctrl->nIDSpin, UDM_GETPOS, 0, 0)); break; case CONTROL_COLOR: @@ -330,7 +330,7 @@ INT_PTR CALLBACK SaveOptsDlgProc(OptPageControl *controls, int controlsSize, cha break; case CONTROL_COMBO: - db_set_w(0, module, ctrl->setting, (WORD)SendDlgItemMessage(hwndDlg, ctrl->nID, CB_GETCURSEL, 0, 0)); + db_set_w(0, module, ctrl->setting, (uint16_t)SendDlgItemMessage(hwndDlg, ctrl->nID, CB_GETCURSEL, 0, 0)); break; case CONTROL_PROTOCOL_LIST: diff --git a/utils/mir_options.h b/utils/mir_options.h index e0c43d8457..bd66914e63 100644 --- a/utils/mir_options.h +++ b/utils/mir_options.h @@ -55,8 +55,8 @@ typedef struct { FPAllowProtocol allowProtocol; unsigned int checkboxID; }; - WORD min; - WORD max; + uint16_t min; + uint16_t max; } OptPageControl; INT_PTR CALLBACK SaveOptsDlgProc(OptPageControl *controls, int controlsSize, char *module, HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam); diff --git a/utils/std_string_utils.cpp b/utils/std_string_utils.cpp index b7024bedcf..5b7ddd5822 100644 --- a/utils/std_string_utils.cpp +++ b/utils/std_string_utils.cpp @@ -72,7 +72,7 @@ time_t utils::time::from_string(const std::string &data) return (time_t)timestamp; } -std::string utils::conversion::to_string(void* data, WORD type) +std::string utils::conversion::to_string(void* data, uint16_t type) { std::stringstream out; |