From 958e042c5a4d4e38fd1baae50b78a2febfd306ab Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 31 Jan 2007 21:57:44 +0000 Subject: The queryByExample member function was not properly overridden by the child class. This means that the last child in the chain would be called instead. Seeing as how the function is not really implemented in this class I am sure that they do want the override so a user is A. not fooled into thinking it is and B. running into a parent function doing the wrong thing. --- (limited to 'libopie2') diff --git a/libopie2/opiepim/backend/odatebookaccessbackend_sql.cpp b/libopie2/opiepim/backend/odatebookaccessbackend_sql.cpp index 629e4da..78c3bf7 100644 --- a/libopie2/opiepim/backend/odatebookaccessbackend_sql.cpp +++ b/libopie2/opiepim/backend/odatebookaccessbackend_sql.cpp @@ -207,7 +207,7 @@ QArray ODateBookAccessBackend_SQL::allRecords()const return m_uids; } -QArray ODateBookAccessBackend_SQL::queryByExample(const OPimEvent&, int, const QDateTime& ) { +QArray ODateBookAccessBackend_SQL::queryByExample(const int& unUsed, int settings, const QDateTime& ) { qDebug( "Accessing ODateBookAccessBackend_SQL::queryByExample() which is not implemented!" ); return QArray(); } diff --git a/libopie2/opiepim/backend/odatebookaccessbackend_sql.h b/libopie2/opiepim/backend/odatebookaccessbackend_sql.h index a649d25..2de2dca 100644 --- a/libopie2/opiepim/backend/odatebookaccessbackend_sql.h +++ b/libopie2/opiepim/backend/odatebookaccessbackend_sql.h @@ -59,7 +59,7 @@ public: QArray allRecords()const; QArray matchRegexp(const QRegExp &r) const; - QArray queryByExample( const OPimEvent&, int, const QDateTime& d = QDateTime() ); + QArray queryByExample( const int& unUsed, int settings, const QDateTime& d = QDateTime() ); OPimEvent find( int uid )const; void clear(); bool add( const OPimEvent& ev ); -- cgit v0.9.0.2