filemanager/bkupengine/src/MMCScBkupSBEUtils.cpp
branchRCL_3
changeset 20 efe289f793e7
parent 0 6a9f87576119
--- a/filemanager/bkupengine/src/MMCScBkupSBEUtils.cpp	Tue May 11 16:01:48 2010 +0300
+++ b/filemanager/bkupengine/src/MMCScBkupSBEUtils.cpp	Tue May 25 12:28:34 2010 +0300
@@ -230,20 +230,19 @@
         {
         // Must first create a generic transfer type object... sigh...
         CSBGenericTransferType* transferType = CSBGenericTransferType::NewL( nonConstOriginal->Externalise() );
-        CleanupStack::PushL( transferType );
-        switch(type)
+        CleanupStack::PushL( transferType ); 
+        if ( ESIDTransferDerivedType == type )
             {
-        case ESIDTransferDerivedType:
             ret = CSBSIDTransferType::NewL( transferType );
-            break;
-        case EPackageTransferDerivedType:
+            }
+        else if ( EPackageTransferDerivedType == type )
+            {
             ret = CSBPackageTransferType::NewL( transferType );
-            break;
-        case EJavaTransferDerivedType:
+            }
+        // Type is EJavaTransferDerivedType
+        else
+            {
             ret = CSBJavaTransferType::NewL( transferType );
-            break;
-        default:
-            break;
             }
         CleanupStack::PopAndDestroy( transferType );
         }