File indexing completed on 2024-04-21 03:51:41
0001 /* 0002 SPDX-FileCopyrightText: 2015 Vishesh Handa <vhanda@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 0007 #include "postingiterator.h" 0008 0009 using namespace Baloo; 0010 0011 PostingIterator::~PostingIterator() 0012 { 0013 } 0014 0015 quint64 PostingIterator::skipTo(quint64 id) 0016 { 0017 quint64 currentId = docId(); 0018 while (currentId < id) { 0019 currentId = next(); 0020 if (!currentId) { 0021 break; 0022 } 0023 } 0024 return currentId; 0025 }