From 37c98eaad76b7f1bf86c75fe2c32cf6aa11f7c6f Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Fri, 13 May 2016 19:32:21 +0000 Subject: SpellChecker: Updated hunspell to 1.4.1 git-svn-id: http://svn.miranda-ng.org/main/trunk@16828 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SpellChecker/src/dictionary.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/SpellChecker/src/dictionary.cpp') 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 wordchars_utf16 = hunspell->get_wordchars_utf16(); + hwordchars = fromHunspell((char *)&wordchars_utf16[0]); } else { -- cgit v1.2.3