summaryrefslogtreecommitdiff
authorzecke <zecke>2002-09-24 16:12:30 (UTC)
committer zecke <zecke>2002-09-24 16:12:30 (UTC)
commit262dfbf10d031ab8a80948cd1485d747ad2c931b (patch) (unidiff)
treeeac43bd496fc1886584fcbf174271f0d396fbc3e
parent7b065f0388604e0485fa64a14abdf939dceab954 (diff)
downloadopie-262dfbf10d031ab8a80948cd1485d747ad2c931b.zip
opie-262dfbf10d031ab8a80948cd1485d747ad2c931b.tar.gz
opie-262dfbf10d031ab8a80948cd1485d747ad2c931b.tar.bz2
this inline makes loading todos twice as fast
but there is still room for improvisation
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/pim/otodo.h2
-rw-r--r--libopie2/opiepim/otodo.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libopie/pim/otodo.h b/libopie/pim/otodo.h
index 1443e4f..5bd91d6 100644
--- a/libopie/pim/otodo.h
+++ b/libopie/pim/otodo.h
@@ -174,36 +174,36 @@ public:
174 * set the alarm time 174 * set the alarm time
175 */ 175 */
176 void setAlarmDateTime ( const QDateTime& alarm ); 176 void setAlarmDateTime ( const QDateTime& alarm );
177 177
178 void setDescription(const QString& ); 178 void setDescription(const QString& );
179 void setSummary(const QString& ); 179 void setSummary(const QString& );
180 bool isOverdue(); 180 bool isOverdue();
181 181
182 182
183 bool match( const QRegExp &r )const; 183 bool match( const QRegExp &r )const;
184 184
185 bool operator<(const OTodo &toDoEvent )const; 185 bool operator<(const OTodo &toDoEvent )const;
186 bool operator<=(const OTodo &toDoEvent )const; 186 bool operator<=(const OTodo &toDoEvent )const;
187 bool operator!=(const OTodo &toDoEvent )const; 187 bool operator!=(const OTodo &toDoEvent )const;
188 bool operator>(const OTodo &toDoEvent )const; 188 bool operator>(const OTodo &toDoEvent )const;
189 bool operator>=(const OTodo &toDoEvent)const; 189 bool operator>=(const OTodo &toDoEvent)const;
190 bool operator==(const OTodo &toDoEvent )const; 190 bool operator==(const OTodo &toDoEvent )const;
191 OTodo &operator=(const OTodo &toDoEvent ); 191 OTodo &operator=(const OTodo &toDoEvent );
192 192
193 private: 193 private:
194 class OTodoPrivate; 194 class OTodoPrivate;
195 struct OTodoData; 195 struct OTodoData;
196 196
197 void deref(); 197 void deref();
198 void changeOrModify(); 198 inline void changeOrModify();
199 void copy( OTodoData* src, OTodoData* dest ); 199 void copy( OTodoData* src, OTodoData* dest );
200 OTodoPrivate *d; 200 OTodoPrivate *d;
201 OTodoData *data; 201 OTodoData *data;
202 202
203}; 203};
204inline bool OTodo::operator!=(const OTodo &toDoEvent )const { 204inline bool OTodo::operator!=(const OTodo &toDoEvent )const {
205 return !(*this == toDoEvent); 205 return !(*this == toDoEvent);
206} 206}
207 207
208 208
209#endif 209#endif
diff --git a/libopie2/opiepim/otodo.h b/libopie2/opiepim/otodo.h
index 1443e4f..5bd91d6 100644
--- a/libopie2/opiepim/otodo.h
+++ b/libopie2/opiepim/otodo.h
@@ -174,36 +174,36 @@ public:
174 * set the alarm time 174 * set the alarm time
175 */ 175 */
176 void setAlarmDateTime ( const QDateTime& alarm ); 176 void setAlarmDateTime ( const QDateTime& alarm );
177 177
178 void setDescription(const QString& ); 178 void setDescription(const QString& );
179 void setSummary(const QString& ); 179 void setSummary(const QString& );
180 bool isOverdue(); 180 bool isOverdue();
181 181
182 182
183 bool match( const QRegExp &r )const; 183 bool match( const QRegExp &r )const;
184 184
185 bool operator<(const OTodo &toDoEvent )const; 185 bool operator<(const OTodo &toDoEvent )const;
186 bool operator<=(const OTodo &toDoEvent )const; 186 bool operator<=(const OTodo &toDoEvent )const;
187 bool operator!=(const OTodo &toDoEvent )const; 187 bool operator!=(const OTodo &toDoEvent )const;
188 bool operator>(const OTodo &toDoEvent )const; 188 bool operator>(const OTodo &toDoEvent )const;
189 bool operator>=(const OTodo &toDoEvent)const; 189 bool operator>=(const OTodo &toDoEvent)const;
190 bool operator==(const OTodo &toDoEvent )const; 190 bool operator==(const OTodo &toDoEvent )const;
191 OTodo &operator=(const OTodo &toDoEvent ); 191 OTodo &operator=(const OTodo &toDoEvent );
192 192
193 private: 193 private:
194 class OTodoPrivate; 194 class OTodoPrivate;
195 struct OTodoData; 195 struct OTodoData;
196 196
197 void deref(); 197 void deref();
198 void changeOrModify(); 198 inline void changeOrModify();
199 void copy( OTodoData* src, OTodoData* dest ); 199 void copy( OTodoData* src, OTodoData* dest );
200 OTodoPrivate *d; 200 OTodoPrivate *d;
201 OTodoData *data; 201 OTodoData *data;
202 202
203}; 203};
204inline bool OTodo::operator!=(const OTodo &toDoEvent )const { 204inline bool OTodo::operator!=(const OTodo &toDoEvent )const {
205 return !(*this == toDoEvent); 205 return !(*this == toDoEvent);
206} 206}
207 207
208 208
209#endif 209#endif