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/Version.h | 4 ++-- plugins/SpellChecker/src/dictionary.cpp | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'plugins/SpellChecker/src') diff --git a/plugins/SpellChecker/src/Version.h b/plugins/SpellChecker/src/Version.h index 237d49359b..cf5c959244 100644 --- a/plugins/SpellChecker/src/Version.h +++ b/plugins/SpellChecker/src/Version.h @@ -1,14 +1,14 @@ #define __MAJOR_VERSION 0 #define __MINOR_VERSION 2 #define __RELEASE_NUM 6 -#define __BUILD_NUM 3 +#define __BUILD_NUM 4 #include #define __PLUGIN_NAME "Spell checker" #define __FILENAME "SpellChecker.dll" #define __DESCRIPTION "Spell checker for the message windows. Uses Hunspell to do the checking." -#define __AUTHOR "Ricardo Pescuma Domenecci, FREAK_THEMIGHTY" +#define __AUTHOR "Ricardo Pescuma Domenecci, Wishmaster" #define __AUTHOREMAIL "pescuma@miranda-im.org" #define __AUTHORWEB "http://miranda-ng.org/p/SpellChecker/" #define __COPYRIGHT "© 2006-2010 Ricardo Pescuma Domenecci" 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