remove bad const warnings

This commit is contained in:
Caolan McNamara 2010-01-05 11:27:13 +00:00
parent 475bf34a13
commit dcde4c8eef
2 changed files with 25 additions and 1 deletions

View File

@ -12,6 +12,15 @@ diff -ru hunspell-1.2.8.orig/src/hunspell/affixmgr.cxx hunspell-1.2.8/src/hunspe
} else { } else {
rv=NULL; rv=NULL;
} }
@@ -3234,7 +3234,7 @@
}
// return the value of suffix
-const int AffixMgr::have_contclass()
+int AffixMgr::have_contclass()
{
return havecontclass;
}
@@ -4276,7 +4276,7 @@ @@ -4276,7 +4276,7 @@
if (strip[i] == cond[j]) in = 1; if (strip[i] == cond[j]) in = 1;
} while ((j < (condl - 1)) && (cond[j] != ']')); } while ((j < (condl - 1)) && (cond[j] != ']'));
@ -200,3 +209,15 @@ diff -ru hunspell-1.2.8.orig/src/hunspell/suggestmgr.cxx hunspell-1.2.8/src/huns
c[i*(n+1) + j] = c[(i-1)*(n+1) + j-1]+1; c[i*(n+1) + j] = c[(i-1)*(n+1) + j-1]+1;
b[i*(n+1) + j] = LCS_UPLEFT; b[i*(n+1) + j] = LCS_UPLEFT;
} else if (c[(i-1)*(n+1) + j] >= c[i*(n+1) + j-1]) { } else if (c[(i-1)*(n+1) + j] >= c[i*(n+1) + j-1]) {
diff -ru hunspell-1.2.8.orig/src/hunspell/affixmgr.hxx hunspell-1.2.8/src/hunspell/affixmgr.hxx
--- hunspell-1.2.8.orig/src/hunspell/affixmgr.hxx 2010-01-05 11:21:06.000000000 +0000
+++ hunspell-1.2.8/src/hunspell/affixmgr.hxx 2008-10-30 20:28:59.000000000 +0000
@@ -192,7 +192,7 @@
const char * get_suffix();
const char * get_derived();
const char * get_version();
- const int have_contclass();
+ int have_contclass();
int get_utf8();
int get_complexprefixes();
char * get_suffixed(char );

View File

@ -1,7 +1,7 @@
Name: hunspell Name: hunspell
Summary: A spell checker and morphological analyzer library Summary: A spell checker and morphological analyzer library
Version: 1.2.8 Version: 1.2.8
Release: 14%{?dist} Release: 15%{?dist}
Source0: http://downloads.sourceforge.net/%{name}/hunspell-%{version}.tar.gz Source0: http://downloads.sourceforge.net/%{name}/hunspell-%{version}.tar.gz
Source1: http://people.debian.org/~agmartin/misc/ispellaff2myspell Source1: http://people.debian.org/~agmartin/misc/ispellaff2myspell
Source2: http://people.redhat.com/caolanm/hunspell/wordlist2hunspell Source2: http://people.redhat.com/caolanm/hunspell/wordlist2hunspell
@ -127,6 +127,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man3/hunspell.3.gz %{_mandir}/man3/hunspell.3.gz
%changelog %changelog
* Tue Jan 05 2010 Caolan McNamara <caolanm@redhat.com> - 1.2.8-15
- Remove bad const warnings
* Mon Dec 21 2009 Caolan McNamara <caolanm@redhat.com> - 1.2.8-14 * Mon Dec 21 2009 Caolan McNamara <caolanm@redhat.com> - 1.2.8-14
- Preserve timestamps - Preserve timestamps