From 97e2d186da4024c7ac62f7549f3243bd15204118 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 3 Dec 2017 15:00:42 +0300 Subject: Hunspell: lib updated to 1.6.2 --- plugins/SpellChecker/src/dictionary.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'plugins/SpellChecker') diff --git a/plugins/SpellChecker/src/dictionary.cpp b/plugins/SpellChecker/src/dictionary.cpp index 30ab2b499a..e12c7d7d47 100644 --- a/plugins/SpellChecker/src/dictionary.cpp +++ b/plugins/SpellChecker/src/dictionary.cpp @@ -428,13 +428,12 @@ protected: return ret; } - wchar_t* fromHunspellAndFree(char *hunspellWord) + wchar_t* fromHunspellAndFree(std::string hunspellWord) { - if (hunspellWord == nullptr) + if (hunspellWord.c_str() == nullptr) return nullptr; - wchar_t *ret = fromHunspell(hunspellWord); - free(hunspellWord); + wchar_t *ret = fromHunspell(hunspellWord.c_str()); return ret; } -- cgit v1.2.3