diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2017-12-03 15:00:42 +0300 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2017-12-03 15:01:25 +0300 |
commit | 97e2d186da4024c7ac62f7549f3243bd15204118 (patch) | |
tree | a0fdb451333c952b3eb773094380d88d3464ac30 /plugins | |
parent | d1f75ef5d26e7071fd1f6071e6c9a306fd19c33d (diff) |
Hunspell: lib updated to 1.6.2
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/SpellChecker/src/dictionary.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
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; } |