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 /plugins/SpellChecker | |
parent | 62a186697df33c96dc1a6dac0f4dfc38652fb96f (diff) |
WORD -> uint16_t
Diffstat (limited to 'plugins/SpellChecker')
-rw-r--r-- | plugins/SpellChecker/src/RichEdit.cpp | 2 | ||||
-rw-r--r-- | plugins/SpellChecker/src/options.h | 2 |
2 files changed, 2 insertions, 2 deletions
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;
|