Make the search argument constant.

This commit is contained in:
Matthieu Gautier 2020-03-05 14:05:03 +01:00
parent 46626a3f98
commit 064d5f3fa6
2 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ class Searcher
* @param resultEnd the end offset of the search results (used for pagination). * @param resultEnd the end offset of the search results (used for pagination).
* @param verbose print some info on stdout if true. * @param verbose print some info on stdout if true.
*/ */
void search(std::string& search, void search(const std::string& search,
unsigned int resultStart, unsigned int resultStart,
unsigned int resultEnd, unsigned int resultEnd,
const bool verbose = false); const bool verbose = false);

View File

@ -97,7 +97,7 @@ Reader* Searcher::get_reader(int readerIndex)
} }
/* Search strings in the database */ /* Search strings in the database */
void Searcher::search(std::string& search, void Searcher::search(const std::string& search,
unsigned int resultStart, unsigned int resultStart,
unsigned int resultEnd, unsigned int resultEnd,
const bool verbose) const bool verbose)