qtmobility/plugins/contacts/symbian/src/filtering/cntfilterlocalid.cpp
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 11 06b8e2af4411
--- a/qtmobility/plugins/contacts/symbian/src/filtering/cntfilterlocalid.cpp	Fri Apr 16 15:51:22 2010 +0300
+++ b/qtmobility/plugins/contacts/symbian/src/filtering/cntfilterlocalid.cpp	Mon May 03 13:18:40 2010 +0300
@@ -59,14 +59,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;
@@ -76,7 +76,7 @@
     createSelectQuery( filter,sqlQuery,error);
     
     //fetch the contacts
-    if(error != QContactManager::NotSupportedError)
+    if(*error != QContactManager::NotSupportedError)
     {
         idList =  m_srvConnection.searchContacts(sqlQuery, error);
     }
@@ -101,13 +101,13 @@
 
 void CntFilterLocalId::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 = "";