Readd original getNextSuggestion()

This commit is contained in:
Aditya-Sood 2019-09-26 12:36:28 +05:30
parent c007373b46
commit 2af9ba4eab
1 changed files with 15 additions and 0 deletions

View File

@ -902,6 +902,21 @@ bool Reader::searchSuggestionsSmart(const string& prefix,
} }
/* Get next suggestion */ /* 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) bool Reader::getNextSuggestion(string& title, string& url)
{ {
if (this->suggestionsOffset != this->suggestions.end()) { if (this->suggestionsOffset != this->suggestions.end()) {