-rw-r--r-- | libopie/pim/orecordlist.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libopie/pim/orecordlist.h b/libopie/pim/orecordlist.h index c63d813..1fd0741 100644 --- a/libopie/pim/orecordlist.h +++ b/libopie/pim/orecordlist.h @@ -109,2 +109,3 @@ public: + T operator[]( uint i ); // FIXME implemenent remove @@ -148,3 +149,3 @@ ORecordListIterator<T> &ORecordListIterator<T>::operator=( const ORecordListIter m_end = it.m_end; -// m_record = it.m_record; + m_record = it.m_record; @@ -254,2 +255,6 @@ return m_ids.count(); } +template <class T> +T ORecordList<T>::operator[]( uint i ) { + return m_acc->find( m_ids[i] ); +} #endif |