D28839: [PostingIterator] Make sure skipTo also works for first element
Stefan BrĂ¼ns
noreply at phabricator.kde.org
Tue Apr 14 21:04:24 BST 2020
bruns created this revision.
bruns added reviewers: Baloo, ngraham.
Herald added projects: Frameworks, Baloo.
Herald added a subscriber: kde-frameworks-devel.
bruns requested review of this revision.
REVISION SUMMARY
In case next() has never been called on an iterator, docId() returns 0
(it points before the first element). Only break the loop when next()
returns 0.
REPOSITORY
R293 Baloo
BRANCH
submit
REVISION DETAIL
https://phabricator.kde.org/D28839
AFFECTED FILES
src/engine/postingiterator.cpp
To: bruns, #baloo, ngraham
Cc: kde-frameworks-devel, hurikhan77, lots0logs, LeGast00n, cblack, fbampaloukas, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200414/e94aa6a9/attachment.html>
More information about the Kde-frameworks-devel
mailing list