Use SuggestionItem member function getTitle()

We have introduced a new class SuggestionItem in libkiwix, it must be
used in kiwix-tools as well for handling suggestions.
This commit is contained in:
Maneesh P M 2021-05-28 12:56:22 +05:30
parent c76bbabd10
commit 6d9fa0cb45

View File

@ -93,7 +93,7 @@ int main(int argc, char** argv)
kiwix::SuggestionsList_t suggestions;
reader->searchSuggestionsSmart(pattern, 10, suggestions);
for (auto& suggestion: suggestions) {
std::cout << suggestion[0] << std::endl;
std::cout << suggestion.getTitle() << std::endl;
}
}