diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2014-07-20 08:01:05 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2014-07-20 08:01:05 +0000 |
commit | d5dfa90eec9c108f86b9a0aa3f746a5b164c6649 (patch) | |
tree | e6eb1ae6ca89db58494b28d6c5124ea94c517c37 /plugins/SpellChecker/src/hunspell/dictmgr.cxx | |
parent | 42c1d344fd105bcc25ae35e5a82d16a978b302c4 (diff) |
SpellChecker:
-Updated Hunspell to 1.3.3
-Create services in Load()
git-svn-id: http://svn.miranda-ng.org/main/trunk@9876 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SpellChecker/src/hunspell/dictmgr.cxx')
-rw-r--r-- | plugins/SpellChecker/src/hunspell/dictmgr.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/SpellChecker/src/hunspell/dictmgr.cxx b/plugins/SpellChecker/src/hunspell/dictmgr.cxx index 5310053f76..857d757730 100644 --- a/plugins/SpellChecker/src/hunspell/dictmgr.cxx +++ b/plugins/SpellChecker/src/hunspell/dictmgr.cxx @@ -1,7 +1,7 @@ #include <stdlib.h> #include <string.h> -#include "..\commons.h"
+#include "..\commons.h" DictMgr::DictMgr(const char * dictpath, const char * etype) : numdict(0) { @@ -53,8 +53,7 @@ int DictMgr::parse_file(const char * dictpath, const char * etype) dictentry * pdict = pdentry; // open the dictionary list file - FILE * dictlst; - dictlst = fopen(dictpath,"r"); + FILE *dictlst = myfopen(dictpath,"r"); if (!dictlst) { return 1; } @@ -97,7 +96,8 @@ int DictMgr::parse_file(const char * dictpath, const char * etype) case 3: free(pdict->region); pdict->region=NULL; - case 2: //deliberate fallthrough + /* FALLTHROUGH */ + case 2: free(pdict->lang); pdict->lang=NULL; default: |