Diffstat (limited to 'libopie2/opiepim/backend/otodoaccessxml.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/backend/otodoaccessxml.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opiepim/backend/otodoaccessxml.cpp b/libopie2/opiepim/backend/otodoaccessxml.cpp index f3b0783..3b4cab2 100644 --- a/libopie2/opiepim/backend/otodoaccessxml.cpp +++ b/libopie2/opiepim/backend/otodoaccessxml.cpp | |||
@@ -174,33 +174,33 @@ bool OTodoAccessXML::save() { | |||
174 | } | 174 | } |
175 | 175 | ||
176 | m_changed = false; | 176 | m_changed = false; |
177 | return true; | 177 | return true; |
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 | } |
203 | void OTodoAccessXML::clear() { | 203 | void OTodoAccessXML::clear() { |
204 | if (m_opened ) | 204 | if (m_opened ) |
205 | m_changed = true; | 205 | m_changed = true; |
206 | 206 | ||