diff options
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: |