Diffstat (limited to 'libopie2/opiepim/core/opimrecordlist.h') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opiepim/core/opimrecordlist.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libopie2/opiepim/core/opimrecordlist.h b/libopie2/opiepim/core/opimrecordlist.h index b23138d..1d5027f 100644 --- a/libopie2/opiepim/core/opimrecordlist.h +++ b/libopie2/opiepim/core/opimrecordlist.h | |||
@@ -30,12 +30,13 @@ | |||
30 | #ifndef ORECORDLIST_H | 30 | #ifndef ORECORDLIST_H |
31 | #define ORECORDLIST_H | 31 | #define ORECORDLIST_H |
32 | 32 | ||
33 | /* OPIE */ | 33 | /* OPIE */ |
34 | #include <opie2/opimtemplatebase.h> | 34 | #include <opie2/opimtemplatebase.h> |
35 | #include <opie2/opimrecord.h> | 35 | #include <opie2/opimrecord.h> |
36 | //#include <opie2/odebug.h> | ||
36 | 37 | ||
37 | /* QT */ | 38 | /* QT */ |
38 | #include <qarray.h> | 39 | #include <qarray.h> |
39 | 40 | ||
40 | namespace Opie | 41 | namespace Opie |
41 | { | 42 | { |
@@ -186,13 +187,13 @@ OPimRecordListIterator<T>::~OPimRecordListIterator() | |||
186 | } | 187 | } |
187 | 188 | ||
188 | 189 | ||
189 | template <class T> | 190 | template <class T> |
190 | OPimRecordListIterator<T>::OPimRecordListIterator( const OPimRecordListIterator<T>& it ) | 191 | OPimRecordListIterator<T>::OPimRecordListIterator( const OPimRecordListIterator<T>& it ) |
191 | { | 192 | { |
192 | // qWarning("OPimRecordListIterator copy c'tor"); | 193 | //owarn << "OPimRecordListIterator copy c'tor" << oendl; |
193 | m_uids = it.m_uids; | 194 | m_uids = it.m_uids; |
194 | m_current = it.m_current; | 195 | m_current = it.m_current; |
195 | m_temp = it.m_temp; | 196 | m_temp = it.m_temp; |
196 | m_end = it.m_end; | 197 | m_end = it.m_end; |
197 | m_record = it.m_record; | 198 | m_record = it.m_record; |
198 | m_direction = it.m_direction; | 199 | m_direction = it.m_direction; |
@@ -212,13 +213,13 @@ OPimRecordListIterator<T> &OPimRecordListIterator<T>::operator=( const OPimRecor | |||
212 | } | 213 | } |
213 | 214 | ||
214 | 215 | ||
215 | template <class T> | 216 | template <class T> |
216 | T OPimRecordListIterator<T>::operator*() | 217 | T OPimRecordListIterator<T>::operator*() |
217 | { | 218 | { |
218 | //qWarning("operator* %d %d", m_current, m_uids[m_current] ); | 219 | //owarn << "operator* " << m_current << " " << m_uids[m_current] << oendl; |
219 | if ( !m_end ) | 220 | if ( !m_end ) |
220 | m_record = m_temp->find( m_uids[ m_current ], m_uids, m_current, | 221 | m_record = m_temp->find( m_uids[ m_current ], m_uids, m_current, |
221 | m_direction ? Base::Forward : | 222 | m_direction ? Base::Forward : |
222 | Base::Reverse ); | 223 | Base::Reverse ); |
223 | else | 224 | else |
224 | m_record = T(); | 225 | m_record = T(); |