mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-21 10:58:15 -04:00
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:
parent
c76bbabd10
commit
6d9fa0cb45
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user