mirror of https://github.com/kiwix/libkiwix.git
suggestions method return a unique_ptr instead of a raw pointer.
This commit is contained in:
parent
d0d7e11093
commit
48347825a9
|
@ -765,7 +765,7 @@ bool Reader::searchSuggestionsSmart(const string& prefix,
|
|||
this->suggestions.clear();
|
||||
this->suggestionsOffset = this->suggestions.begin();
|
||||
/* Try to search in the title using fulltext search database */
|
||||
const zim::Search* suggestionSearch
|
||||
const auto suggestionSearch
|
||||
= this->getZimFileHandler()->suggestions(prefix, 0, suggestionsCount);
|
||||
|
||||
if (suggestionSearch->get_matches_estimated()) {
|
||||
|
|
Loading…
Reference in New Issue