summaryrefslogtreecommitdiff
authorzecke <zecke>2004-09-12 23:48:59 (UTC)
committer zecke <zecke>2004-09-12 23:48:59 (UTC)
commitdf292cd5dbd8f3c11efa06db1a2ed565a6efa9b8 (patch) (side-by-side diff)
tree749fce3927b9dad57bb4e836771860a8607963ba
parent03d8f31d45fa569d944ff635428ad9a946f077b9 (diff)
downloadopie-df292cd5dbd8f3c11efa06db1a2ed565a6efa9b8.zip
opie-df292cd5dbd8f3c11efa06db1a2ed565a6efa9b8.tar.gz
opie-df292cd5dbd8f3c11efa06db1a2ed565a6efa9b8.tar.bz2
-Sorry for the whitespaces
-Delete endDate which is used by queryByExample Eilers can you look if a QDate::isValid makes more sense?
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiepim/backend/ocontactaccessbackend_sql.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/libopie2/opiepim/backend/ocontactaccessbackend_sql.cpp b/libopie2/opiepim/backend/ocontactaccessbackend_sql.cpp
index 221e977..3d284f7 100644
--- a/libopie2/opiepim/backend/ocontactaccessbackend_sql.cpp
+++ b/libopie2/opiepim/backend/ocontactaccessbackend_sql.cpp
@@ -306,5 +306,5 @@ namespace {
return multi();
}
-
+
QString FindQuery::multi()const {
QString qu = "select * from addressbook where";
@@ -321,5 +321,5 @@ namespace {
QString qu = "select *";
qu += " from addressbook where uid = " + QString::number(m_uid);
-
+
// owarn << "find query: " << qu << "" << oendl;
return qu;
@@ -493,8 +493,8 @@ OPimContact OPimContactAccessBackend_SQL::find( int uid, const QArray<int>& quer
QTime t;
t.start();
-
+
uint numReadAhead = readAhead();
QArray<int> searchList( numReadAhead );
-
+
uint size =0;
@@ -625,4 +625,6 @@ QArray<int> OPimContactAccessBackend_SQL::queryByExample ( const OPimContact &qu
}
}
+
+ delete endDate;
}
// Skip trailing "AND"
@@ -826,5 +828,5 @@ QMap<int, QString> OPimContactAccessBackend_SQL::requestNonCustom( int uid ) co
nonCustomMap = fillNonCustomMap( resItem );
t3needed = t3.elapsed();
-
+
// odebug << "Adding UID: " << resItem.data( "uid" ) << "" << oendl;
@@ -835,5 +837,5 @@ QMap<int, QString> OPimContactAccessBackend_SQL::requestNonCustom( int uid ) co
}
-/* Returns contact requested by uid and fills cache with contacts requested by uids in the cachelist */
+/* Returns contact requested by uid and fills cache with contacts requested by uids in the cachelist */
OPimContact OPimContactAccessBackend_SQL::requestContactsAndCache( int uid, const QArray<int>& uidlist )const
{
@@ -841,5 +843,5 @@ OPimContact OPimContactAccessBackend_SQL::requestContactsAndCache( int uid, cons
// We don't have to add the given uid to the uidlist, it is expected to be there already (see opimrecordlist.h).
// All contacts will be stored in the cache, afterwards the contact with the user id "uid" will be returned
- // by using the cache..
+ // by using the cache..
QArray<int> cachelist = uidlist;
OPimContact retContact;
@@ -872,10 +874,10 @@ OPimContact OPimContactAccessBackend_SQL::requestContactsAndCache( int uid, cons
} while ( ! res_noncustom.atEnd() ); //atEnd() is true if we are past(!) the list !!
t3needed = t3.elapsed();
-
+
// odebug << "Adding UID: " << resItem.data( "uid" ) << "" << oendl;
odebug << "RequestContactsAndCache needed: insg.:" << t.elapsed() << " ms, query: " << t2needed
<< " ms, mapping: " << t3needed << " ms" << oendl;
-
+
return retContact;
}