syncmlfw/common/sosserver/src/nsmlsoshandler.cpp
branchRCL_3
changeset 25 b183ec05bd8c
parent 0 b497e44ab2fc
child 26 19bba8228ff0
--- a/syncmlfw/common/sosserver/src/nsmlsoshandler.cpp	Thu Aug 19 10:44:50 2010 +0300
+++ b/syncmlfw/common/sosserver/src/nsmlsoshandler.cpp	Tue Aug 31 16:04:06 2010 +0300
@@ -813,26 +813,19 @@
     CNSmlDMSettings* settings = CNSmlDMSettings::NewLC();
     CNSmlDMProfile* prof = settings->ProfileL( iCurrentJob->ProfileId() );
     if(prof)
+    	{
+      	CleanupStack::PushL( prof );    
+    		if ( iCurrentJob->iPending || prof->IntValue( EDMProfileHidden ))
         {
-        CleanupStack::PushL( prof );
-	    }
-    
-    if ( iCurrentJob->iPending || prof->IntValue( EDMProfileHidden ))
-        {
-        syncInit = EServerAlerted;
+        	syncInit = EServerAlerted;
         }
 
-    if ( !iCurrentJob->TransportId() )
-        {
-        if ( prof )
-            {
-            iCurrentJob->SetTransportId( prof->IntValue( EDMProfileTransportId ) );
-            }
+    		if ( !iCurrentJob->TransportId() )
+        {        
+           iCurrentJob->SetTransportId( prof->IntValue( EDMProfileTransportId ) );
         }
-    if(prof)
-        {
         CleanupStack::PopAndDestroy( prof );
-        }
+      }
     CleanupStack::PopAndDestroy( settings );