voipplugins/voipadapters/voipxmlprovisioning/voipxmlprocessor/src/voipxmlvoiphandler.cpp
branchRCL_3
changeset 18 8c9c07ad8b6b
parent 11 6134b5029079
--- a/voipplugins/voipadapters/voipxmlprovisioning/voipxmlprocessor/src/voipxmlvoiphandler.cpp	Wed Jun 09 09:31:04 2010 +0300
+++ b/voipplugins/voipadapters/voipxmlprovisioning/voipxmlprocessor/src/voipxmlvoiphandler.cpp	Mon Jun 21 15:29:21 2010 +0300
@@ -294,7 +294,7 @@
         {
         case EName:
             {
-            TBuf<KMaxSettingsNameLength> name( KNullDesC );
+            TBuf<KMaxNodeValueLength> name( KNullDesC );
             name.Copy( aValue );
             TRAP_IGNORE( ValidateProfileNameL( name ) );
             iEntry->iProviderName.Copy( name );
@@ -809,7 +809,6 @@
     newName->Des().Copy( aName.Left( maxModifyLength ) );
 
     TUint i( 1 ); // Add number to the name if name already in use.
-    TBool changed( EFalse );
 
     // Go through each profile and see if the name of the new profile    
     // matches one of the existing names. If it does change it and
@@ -834,16 +833,11 @@
                 {
                 User::Leave( KErrBadName );
                 }
-            changed = ETrue;
             }
         CleanupStack::PopAndDestroy( profile ); // CS:2
         }
-
-    // Change setting only if it was changed.
-    if ( changed )
-        {
-        aName.Copy( newName->Des() );
-        }
+    
+    aName.Copy( *newName );
 
     // newName, &voipIds
     CleanupStack::PopAndDestroy( 2, &voipIds ); // CS:0