suggestions method return a unique_ptr instead of a raw pointer.

This commit is contained in:
Matthieu Gautier 2019-05-28 15:08:16 +02:00
parent d0d7e11093
commit 48347825a9
1 changed files with 1 additions and 1 deletions

View File

@ -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()) {