mirror of https://github.com/kiwix/libkiwix.git
Make the search argument constant.
This commit is contained in:
parent
46626a3f98
commit
064d5f3fa6
|
@ -89,7 +89,7 @@ class Searcher
|
|||
* @param resultEnd the end offset of the search results (used for pagination).
|
||||
* @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 resultEnd,
|
||||
const bool verbose = false);
|
||||
|
|
|
@ -97,7 +97,7 @@ Reader* Searcher::get_reader(int readerIndex)
|
|||
}
|
||||
|
||||
/* Search strings in the database */
|
||||
void Searcher::search(std::string& search,
|
||||
void Searcher::search(const std::string& search,
|
||||
unsigned int resultStart,
|
||||
unsigned int resultEnd,
|
||||
const bool verbose)
|
||||
|
|
Loading…
Reference in New Issue