mirror of
https://github.com/kiwix/libkiwix.git
synced 2026-10-23 09:29:25 -04:00
Adapt to new libzim api.
It is not possible to create a iterator without argument anymore.
This commit is contained in:
1 parent
2bf6b04726
commit
cbf5bd57a8
1 file changed
+1
-2
+1
-2
@@ -714,7 +714,6 @@ bool Reader::searchSuggestions(const string& prefix,
|
||||
const bool reset)
|
||||
{
|
||||
bool retVal = false;
|
||||
zim::File::const_iterator articleItr;
|
||||
|
||||
/* Reset the suggestions otherwise check if the suggestions number is less
|
||||
* than the suggestionsCount */
|
||||
@@ -732,7 +731,7 @@ bool Reader::searchSuggestions(const string& prefix,
|
||||
return false;
|
||||
}
|
||||
|
||||
for (articleItr = zimFileHandler->findByTitle('A', prefix);
|
||||
for (auto articleItr = zimFileHandler->findByTitle('A', prefix);
|
||||
articleItr != zimFileHandler->end()
|
||||
&& articleItr->getTitle().compare(0, prefix.size(), prefix) == 0
|
||||
&& this->suggestions.size() < suggestionsCount;
|
||||
|
||||
Reference in new issue
Block a user