diff options
Diffstat (limited to 'plugins/SpellChecker/src/dictionary.cpp')
-rw-r--r-- | plugins/SpellChecker/src/dictionary.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/SpellChecker/src/dictionary.cpp b/plugins/SpellChecker/src/dictionary.cpp index c726a9b92a..371b934d01 100644 --- a/plugins/SpellChecker/src/dictionary.cpp +++ b/plugins/SpellChecker/src/dictionary.cpp @@ -534,9 +534,8 @@ public: if (mir_strcmp(dic_enc, "UTF-8") == 0) { codePage = CP_UTF8; - - int wcs_len; - hwordchars = fromHunspell((char *)hunspell->get_wordchars_utf16(&wcs_len)); + const std::vector<w_char> wordchars_utf16 = hunspell->get_wordchars_utf16(); + hwordchars = fromHunspell((char *)&wordchars_utf16[0]); } else { |