voipplugins/voipadapters/voipxmlprovisioning/voipxmlprocessor/src/voipxmlvoiphandler.cpp
branchRCL_3
changeset 8 7117cbf1600a
parent 2 7b872347d83b
child 11 6134b5029079
--- a/voipplugins/voipadapters/voipxmlprovisioning/voipxmlprocessor/src/voipxmlvoiphandler.cpp	Fri Feb 19 22:44:34 2010 +0200
+++ b/voipplugins/voipadapters/voipxmlprovisioning/voipxmlprocessor/src/voipxmlvoiphandler.cpp	Fri Mar 12 15:42:09 2010 +0200
@@ -938,7 +938,7 @@
     {
     iSpSettings.iAutoAcceptBuddies = EFalse;
     iSpSettings.iAutoEnable        = EFalse;
-    iSpSettings.iResubrcribe = KErrNotFound;
+    iSpSettings.iResubrcribe = KDefaultResubscribe;
     if ( iSpSettings.iBrandingUri )
         {
         delete iSpSettings.iBrandingUri;
@@ -1076,6 +1076,7 @@
     TBool vmbx( EFalse );
 
     // Set MWI URI if present.
+    //lint -e{960} No need for else statement here
     if ( iSpSettings.iMwiUri )
         {
         property->SetName( ESubPropertyVMBXMWIAddress );
@@ -1107,14 +1108,12 @@
         vmbx = ETrue;
         }
 
-    if ( KErrNotFound != iSpSettings.iResubrcribe )
+    if ( vmbx )
         {
         property->SetName( ESubPropertyVMBXMWISubscribeInterval );
         property->SetValue( iSpSettings.iResubrcribe );
         spSettings->AddOrUpdatePropertyL( serviceId, *property );
-        }
-    if ( vmbx )
-        {
+
         property->SetName( ESubPropertyVMBXSettingsId );
         property->SetValue( iEntry->iIds[0].iProfileId );
         spSettings->AddOrUpdatePropertyL( serviceId, *property );