summaryrefslogtreecommitdiff
path: root/plugins/SpellChecker/src/dictionary.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2016-05-13 19:32:21 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2016-05-13 19:32:21 +0000
commit37c98eaad76b7f1bf86c75fe2c32cf6aa11f7c6f (patch)
tree32aede144aa0cd0f2dd058b003cdbd534a2f969c /plugins/SpellChecker/src/dictionary.cpp
parente73bb3845517a31fa795e8d2174fcc8572835b33 (diff)
SpellChecker: Updated hunspell to 1.4.1
git-svn-id: http://svn.miranda-ng.org/main/trunk@16828 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SpellChecker/src/dictionary.cpp')
-rw-r--r--plugins/SpellChecker/src/dictionary.cpp5
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 {