From 48347825a9c5632a3b7e11171aa1b93f5ad99349 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Tue, 28 May 2019 15:08:16 +0200 Subject: [PATCH] suggestions method return a unique_ptr instead of a raw pointer. --- src/reader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reader.cpp b/src/reader.cpp index 8390a2fe7..7422991f7 100644 --- a/src/reader.cpp +++ b/src/reader.cpp @@ -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()) {