diff -r df4dfb214df5 -r 8c9c07ad8b6b voipplugins/voipadapters/voipxmlprovisioning/voipxmlprocessor/src/voipxmlvoiphandler.cpp --- 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 name( KNullDesC ); + TBuf 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