qtcontactsmobility/plugins/contacts/symbian/src/filtering/cntfilterdetailrange.cpp
changeset 27 de1630741fbe
parent 25 76a2435edfd4
--- a/qtcontactsmobility/plugins/contacts/symbian/src/filtering/cntfilterdetailrange.cpp	Fri Apr 16 14:53:18 2010 +0300
+++ b/qtcontactsmobility/plugins/contacts/symbian/src/filtering/cntfilterdetailrange.cpp	Mon May 03 12:24:20 2010 +0300
@@ -61,14 +61,14 @@
         const QContactFilter &filter,
         const QList<QContactSortOrder> &sortOrders,
         bool &filterSupportedflag,
-        QContactManager::Error &error)  
+        QContactManager::Error* error)
 {
     Q_UNUSED(sortOrders);
     Q_UNUSED(filterSupportedflag);
     //Check if any invalid filter is passed 
     if(!filterSupported(filter))
             {
-            error =  QContactManager::NotSupportedError;
+            *error =  QContactManager::NotSupportedError;
             return QList<QContactLocalId>();
             }
     QList<QContactLocalId> idList;
@@ -78,7 +78,7 @@
     createSelectQuery( filter,sqlQuery,error);
     
     //fetch the contacts
-    if(error != QContactManager::NotSupportedError)
+    if(*error != QContactManager::NotSupportedError)
     {
         idList =  m_srvConnection.searchContacts(sqlQuery, error);
     }
@@ -103,13 +103,13 @@
 
 void CntFilterdetailrange::createSelectQuery(const QContactFilter& filter,
                               QString& sqlQuery,
-                              QContactManager::Error& error)
+                              QContactManager::Error* error)
 
 {
     //Check if any invalid filter is passed 
     if(!filterSupported(filter))
             {
-            error =  QContactManager::NotSupportedError;
+            *error =  QContactManager::NotSupportedError;
             }
    //Not yet supported
     sqlQuery = "";