Changeset View
Changeset View
Standalone View
Standalone View
src/lib/resultiterator.cpp
Show All 40 Lines | |||||
41 | 41 | | |||
42 | ResultIterator::ResultIterator(const QStringList& results) | 42 | ResultIterator::ResultIterator(const QStringList& results) | ||
43 | : d(new ResultIteratorPrivate) | 43 | : d(new ResultIteratorPrivate) | ||
44 | { | 44 | { | ||
45 | d->results = results; | 45 | d->results = results; | ||
46 | d->pos = -1; | 46 | d->pos = -1; | ||
47 | } | 47 | } | ||
48 | 48 | | |||
49 | // TODO Remove for KF6 | ||||
49 | ResultIterator::ResultIterator(const ResultIterator& rhs) | 50 | ResultIterator::ResultIterator(const ResultIterator& rhs) | ||
50 | : d(rhs.d) | 51 | : d(rhs.d) | ||
51 | { | 52 | { | ||
53 | qWarning("ResultIterator copy constructor being used. This is crashy"); | ||||
54 | } | ||||
55 | | ||||
56 | | ||||
57 | ResultIterator::ResultIterator(ResultIterator &&rhs) | ||||
58 | : d(rhs.d) | ||||
59 | { | ||||
60 | rhs.d = nullptr; | ||||
52 | } | 61 | } | ||
53 | 62 | | |||
54 | ResultIterator::~ResultIterator() | 63 | ResultIterator::~ResultIterator() | ||
55 | { | 64 | { | ||
56 | delete d; | 65 | delete d; | ||
57 | } | 66 | } | ||
58 | 67 | | |||
59 | bool ResultIterator::next() | 68 | bool ResultIterator::next() | ||
Show All 10 Lines |