diff options
author | Dom Lachowicz <domlachowicz@gmail.com> | 2006-04-02 14:04:56 +0000 |
---|---|---|
committer | Dom Lachowicz <domlachowicz@gmail.com> | 2006-04-02 14:04:56 +0000 |
commit | fd6ea00930bbf015cc372ce1b860938df9da6e9f (patch) | |
tree | d7d1adc4c6aa7cbd819ccd5ac795354cc364fdb5 | |
parent | c31c99ef462a72977042c263fb3b0849f62e750b (diff) | |
download | enchant-fd6ea00930bbf015cc372ce1b860938df9da6e9f.tar.gz |
bump version number; remove unused params
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@21126 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r-- | configure.in | 2 | ||||
-rw-r--r-- | src/ispell/ispell_checker.cpp | 11 |
2 files changed, 7 insertions, 6 deletions
diff --git a/configure.in b/configure.in index 5c365eb..acaa9e3 100644 --- a/configure.in +++ b/configure.in @@ -11,7 +11,7 @@ ENCHANT_MINOR_VERSION=2 dnl 3) Increment when interfaces not changed at all, dnl only bug fixes or internal changes made. dnl 4b) Set to zero when adding, removing or changing interfaces. -ENCHANT_MICRO_VERSION=4 +ENCHANT_MICRO_VERSION=5 dnl dnl Set this too MAJOR_VERSION_PLUS_MINOR_VERSION=`expr $ENCHANT_MAJOR_VERSION + $ENCHANT_MINOR_VERSION` diff --git a/src/ispell/ispell_checker.cpp b/src/ispell/ispell_checker.cpp index 2155204..90bf918 100644 --- a/src/ispell/ispell_checker.cpp +++ b/src/ispell/ispell_checker.cpp @@ -634,8 +634,7 @@ ispell_provider_dispose_dict (EnchantProvider * me, EnchantDict * dict) } static int -_ispell_provider_dictionary_exists (EnchantProvider * me, - const char *const szFile) +_ispell_provider_dictionary_exists (const char *const szFile) { std::vector <std::string> names; @@ -653,11 +652,13 @@ ispell_provider_list_dictionaries (EnchantProvider * me, size_t * out_n_dicts) { size_t i, nb; - char ** out_dicts = g_new0 (char *, size_ispell_map + 1); + + (void)me; + nb = 0; for (i = 0; i < size_ispell_map; i++) - if (_ispell_provider_dictionary_exists (me, ispell_map[i].dict)) + if (_ispell_provider_dictionary_exists (ispell_map[i].dict)) out_dicts[nb++] = g_strdup (ispell_map[i].lang); *out_n_dicts = nb; @@ -682,7 +683,7 @@ ispell_provider_dictionary_exists (struct str_enchant_provider * me, { const IspellMap * mapping = (const IspellMap *)(&(ispell_map[i])); if (!strcmp (tag, mapping->lang) || !strcmp (shortened_dict.c_str(), mapping->lang)) - return _ispell_provider_dictionary_exists(me, mapping->dict); + return _ispell_provider_dictionary_exists(mapping->dict); } return 0; |