summaryrefslogtreecommitdiff
path: root/external/clucene/patches/write-strings.patch
blob: d1661ee727d138e4bd391c846160d62df8819e0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- src/contribs-lib/CLucene/analysis/PorterStemmer.cpp
+++ src/contribs-lib/CLucene/analysis/PorterStemmer.cpp
@@ -94,7 +94,7 @@
     return true;
   }
 
-  bool PorterStemmer::ends(TCHAR *s) {
+  bool PorterStemmer::ends(const TCHAR *s) {
 	size_t l = _tcslen(s);
     size_t o = k-l+1;
     if (o < k0)
--- src/contribs-lib/CLucene/analysis/PorterStemmer.h
+++ src/contribs-lib/CLucene/analysis/PorterStemmer.h
@@ -68,7 +68,7 @@
   */
    bool cvc(size_t i);
 
-  bool ends(TCHAR *s);
+  bool ends(const TCHAR *s);
 
   /* setto(s) sets (j+1),...k to the characters in the string s, readjusting
      k. */