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/SpellChecker/src/RichEdit.cpp | 2 +- plugins/SpellChecker/src/options.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/SpellChecker/src') diff --git a/plugins/SpellChecker/src/RichEdit.cpp b/plugins/SpellChecker/src/RichEdit.cpp index fa001f1847..11a4a6f553 100644 --- a/plugins/SpellChecker/src/RichEdit.cpp +++ b/plugins/SpellChecker/src/RichEdit.cpp @@ -145,7 +145,7 @@ int RichEdit::GetLineCount() const void RichEdit::GetLine(int line, wchar_t *text, size_t text_len) const { - *((WORD*)text) = WORD(text_len - 1); + *((uint16_t*)text) = uint16_t(text_len - 1); unsigned size = (unsigned)SendMessage(EM_GETLINE, (WPARAM)line, (LPARAM)text); // Sometimes it likes to return size = lineLen+1, adding an \n at the end, so we remove it here diff --git a/plugins/SpellChecker/src/options.h b/plugins/SpellChecker/src/options.h index 5577c8fb3a..ade1e6f55b 100644 --- a/plugins/SpellChecker/src/options.h +++ b/plugins/SpellChecker/src/options.h @@ -38,7 +38,7 @@ struct Options BOOL ignore_with_numbers; BOOL ask_when_sending_with_error; - WORD underline_type; + uint16_t underline_type; BOOL cascade_corrections; BOOL show_all_corrections; BOOL show_wrong_word; -- cgit v1.2.3