summaryrefslogtreecommitdiff
path: root/libopie2
Side-by-side diff
Diffstat (limited to 'libopie2') (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
@@ -307,3 +307,3 @@ namespace {
}
-
+
QString FindQuery::multi()const {
@@ -322,3 +322,3 @@ namespace {
qu += " from addressbook where uid = " + QString::number(m_uid);
-
+
// owarn << "find query: " << qu << "" << oendl;
@@ -494,6 +494,6 @@ OPimContact OPimContactAccessBackend_SQL::find( int uid, const QArray<int>& quer
t.start();
-
+
uint numReadAhead = readAhead();
QArray<int> searchList( numReadAhead );
-
+
uint size =0;
@@ -626,2 +626,4 @@ QArray<int> OPimContactAccessBackend_SQL::queryByExample ( const OPimContact &qu
}
+
+ delete endDate;
}
@@ -827,3 +829,3 @@ QMap<int, QString> OPimContactAccessBackend_SQL::requestNonCustom( int uid ) co
t3needed = t3.elapsed();
-
+
@@ -836,3 +838,3 @@ 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
@@ -842,3 +844,3 @@ OPimContact OPimContactAccessBackend_SQL::requestContactsAndCache( int uid, cons
// 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;
@@ -873,3 +875,3 @@ OPimContact OPimContactAccessBackend_SQL::requestContactsAndCache( int uid, cons
t3needed = t3.elapsed();
-
+
@@ -878,3 +880,3 @@ OPimContact OPimContactAccessBackend_SQL::requestContactsAndCache( int uid, cons
<< " ms, mapping: " << t3needed << " ms" << oendl;
-
+
return retContact;