mirror of https://github.com/kiwix/libkiwix.git
Readd original getNextSuggestion()
This commit is contained in:
parent
c007373b46
commit
2af9ba4eab
|
@ -902,6 +902,21 @@ bool Reader::searchSuggestionsSmart(const string& prefix,
|
|||
}
|
||||
|
||||
/* Get next suggestion */
|
||||
bool Reader::getNextSuggestion(string& title)
|
||||
{
|
||||
if (this->suggestionsOffset != this->suggestions.end()) {
|
||||
/* title */
|
||||
title = (*(this->suggestionsOffset))[0];
|
||||
|
||||
/* increment the cursor for the next call */
|
||||
this->suggestionsOffset++;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Reader::getNextSuggestion(string& title, string& url)
|
||||
{
|
||||
if (this->suggestionsOffset != this->suggestions.end()) {
|
||||
|
|
Loading…
Reference in New Issue