qtmobility/plugins/contacts/symbiansim/src/cntsymbiansimtransformerror.cpp
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 14 6fbed849b4f4
--- a/qtmobility/plugins/contacts/symbiansim/src/cntsymbiansimtransformerror.cpp	Fri Apr 16 15:51:22 2010 +0300
+++ b/qtmobility/plugins/contacts/symbiansim/src/cntsymbiansimtransformerror.cpp	Mon May 03 13:18:40 2010 +0300
@@ -46,54 +46,54 @@
  * \param symbianError Symbian error.
  * \param QtError Qt error.
 */
-void CntSymbianSimTransformError::transformError(TInt symbianError, QContactManager::Error& qtError)
+void CntSymbianSimTransformError::transformError(TInt symbianError, QContactManager::Error* qtError)
 {
     switch(symbianError)
     {
         case KErrNone:
         {
-            qtError = QContactManager::NoError;
+            *qtError = QContactManager::NoError;
             break;
         }
         case KErrNotFound:
         {
-            qtError = QContactManager::DoesNotExistError;
+            *qtError = QContactManager::DoesNotExistError;
             break;
         }
         case KErrAlreadyExists:
         {
-            qtError = QContactManager::AlreadyExistsError;
+            *qtError = QContactManager::AlreadyExistsError;
             break;
         }
         case KErrLocked:
         {
-            qtError = QContactManager::LockedError;
+            *qtError = QContactManager::LockedError;
             break;
         }
         case KErrAccessDenied:
         case KErrPermissionDenied:
         {
-            qtError = QContactManager::PermissionsError;
+            *qtError = QContactManager::PermissionsError;
             break;
         }
         case KErrNoMemory:
         {
-            qtError = QContactManager::OutOfMemoryError;
+            *qtError = QContactManager::OutOfMemoryError;
             break;
         }
         case KErrNotSupported:
         {
-            qtError = QContactManager::NotSupportedError;
+            *qtError = QContactManager::NotSupportedError;
             break;
         }
         case KErrArgument:
         {
-            qtError = QContactManager::BadArgumentError;
+            *qtError = QContactManager::BadArgumentError;
             break;
         }
         default:
         {
-            qtError = QContactManager::UnspecifiedError;
+            *qtError = QContactManager::UnspecifiedError;
             break;
         }
     }