author | eilers <eilers> | 2002-10-14 16:21:54 (UTC) |
---|---|---|
committer | eilers <eilers> | 2002-10-14 16:21:54 (UTC) |
commit | f48ddfb53e49550f9fe8e9502f2a44aeb8b359cc (patch) (unidiff) | |
tree | 7972f3fc9a1d61e22fe57ff0fa96fd9a0badb55d /libopie/pim/otodoaccessxml.cpp | |
parent | da3868438e739310862bf65b0d0c8ffa864392e8 (diff) | |
download | opie-f48ddfb53e49550f9fe8e9502f2a44aeb8b359cc.zip opie-f48ddfb53e49550f9fe8e9502f2a44aeb8b359cc.tar.gz opie-f48ddfb53e49550f9fe8e9502f2a44aeb8b359cc.tar.bz2 |
Some minor interface updates
Diffstat (limited to 'libopie/pim/otodoaccessxml.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie/pim/otodoaccessxml.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie/pim/otodoaccessxml.cpp b/libopie/pim/otodoaccessxml.cpp index f3b0783..3b4cab2 100644 --- a/libopie/pim/otodoaccessxml.cpp +++ b/libopie/pim/otodoaccessxml.cpp | |||
@@ -178,25 +178,25 @@ bool OTodoAccessXML::save() { | |||
178 | } | 178 | } |
179 | QArray<int> OTodoAccessXML::allRecords()const { | 179 | QArray<int> OTodoAccessXML::allRecords()const { |
180 | QArray<int> ids( m_events.count() ); | 180 | QArray<int> ids( m_events.count() ); |
181 | QMap<int, OTodo>::ConstIterator it; | 181 | QMap<int, OTodo>::ConstIterator it; |
182 | int i = 0; | 182 | int i = 0; |
183 | 183 | ||
184 | for ( it = m_events.begin(); it != m_events.end(); ++it ) { | 184 | for ( it = m_events.begin(); it != m_events.end(); ++it ) { |
185 | ids[i] = it.key(); | 185 | ids[i] = it.key(); |
186 | i++; | 186 | i++; |
187 | } | 187 | } |
188 | return ids; | 188 | return ids; |
189 | } | 189 | } |
190 | QArray<int> OTodoAccessXML::queryByExample( const OTodo&, int sort ) { | 190 | QArray<int> OTodoAccessXML::queryByExample( const OTodo&, int ) { |
191 | QArray<int> ids(0); | 191 | QArray<int> ids(0); |
192 | return ids; | 192 | return ids; |
193 | } | 193 | } |
194 | OTodo OTodoAccessXML::find( int uid )const { | 194 | OTodo OTodoAccessXML::find( int uid )const { |
195 | OTodo todo; | 195 | OTodo todo; |
196 | todo.setUid( 0 ); // isEmpty() | 196 | todo.setUid( 0 ); // isEmpty() |
197 | QMap<int, OTodo>::ConstIterator it = m_events.find( uid ); | 197 | QMap<int, OTodo>::ConstIterator it = m_events.find( uid ); |
198 | if ( it != m_events.end() ) | 198 | if ( it != m_events.end() ) |
199 | todo = it.data(); | 199 | todo = it.data(); |
200 | 200 | ||
201 | return todo; | 201 | return todo; |
202 | } | 202 | } |