Changeset View
Changeset View
Standalone View
Standalone View
src/engine/phraseanditerator.cpp
Show All 14 Lines | |||||
15 | * You should have received a copy of the GNU Lesser General Public | 15 | * You should have received a copy of the GNU Lesser General Public | ||
16 | * License along with this library; if not, write to the Free Software | 16 | * License along with this library; if not, write to the Free Software | ||
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
18 | * | 18 | * | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #include "phraseanditerator.h" | 21 | #include "phraseanditerator.h" | ||
22 | 22 | | |||
23 | #include <QDebug> | | |||
24 | | ||||
25 | using namespace Baloo; | 23 | using namespace Baloo; | ||
26 | 24 | | |||
27 | PhraseAndIterator::PhraseAndIterator(const QVector<PostingIterator*>& iterators) | 25 | PhraseAndIterator::PhraseAndIterator(const QVector<PostingIterator*>& iterators) | ||
28 | : m_iterators(iterators) | 26 | : m_iterators(iterators) | ||
29 | , m_docId(0) | 27 | , m_docId(0) | ||
30 | { | 28 | { | ||
31 | if (m_iterators.contains(nullptr)) { | 29 | if (m_iterators.contains(nullptr)) { | ||
32 | qDeleteAll(m_iterators); | 30 | qDeleteAll(m_iterators); | ||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |