-rw-r--r-- | libopie/pim/orecordlist.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/libopie/pim/orecordlist.h b/libopie/pim/orecordlist.h index edcd729..5211f57 100644 --- a/libopie/pim/orecordlist.h +++ b/libopie/pim/orecordlist.h @@ -8,4 +8,5 @@ #include "opimrecord.h" +class ORecordListIteratorPrivate; /** * Our List Iterator @@ -72,7 +73,8 @@ private: /* d pointer for future versions */ - class IteratorPrivate; - IteratorPrivate *d; + ORecordListIteratorPrivate *d; }; + +class ORecordListPrivate; /** * The recordlist used as a return type @@ -112,5 +114,5 @@ ORecordList( const QArray<int>& ids, int uidAt(uint i ); - /** + /** * Remove the contact with given uid */ @@ -124,4 +126,5 @@ private: QArray<int> m_ids; const Base* m_acc; + ORecordListPrivate *d; }; @@ -221,4 +224,7 @@ ORecordListIterator<T>::ORecordListIterator( const QArray<int> uids, m_direction( false ) { + /* if the list is empty we're already at the end of the list */ + if (uids.count() == 0 ) + m_end = true; } template <class T> |