From be2e93a378bd8e6f425185e80d106b26b7eb854a Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 4 May 2013 17:45:47 +1000 Subject: Replacing raw pointers and allocations with std::string. --- src/RESearch.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/RESearch.h') diff --git a/src/RESearch.h b/src/RESearch.h index 5e1d34168..1f30ffb6d 100644 --- a/src/RESearch.h +++ b/src/RESearch.h @@ -33,7 +33,7 @@ class RESearch { public: RESearch(CharClassify *charClassTable); ~RESearch(); - bool GrabMatches(CharacterIndexer &ci); + void GrabMatches(CharacterIndexer &ci); const char *Compile(const char *pattern, int length, bool caseSensitive, bool posix); int Execute(CharacterIndexer &ci, int lp, int endp); @@ -43,7 +43,7 @@ public: int bopat[MAXTAG]; int eopat[MAXTAG]; - char *pat[MAXTAG]; + std::string pat[MAXTAG]; private: void Init(); -- cgit v1.2.3