phonebookui/Phonebook2/ServerApplication/src/CPbk2MultiAssignDataPhase.cpp
branchRCL_3
changeset 32 2828b4d142c0
parent 26 0d28c1c5b6dd
child 58 d4f567ce2e7c
equal deleted inserted replaced
26:0d28c1c5b6dd 32:2828b4d142c0
   291 // --------------------------------------------------------------------------
   291 // --------------------------------------------------------------------------
   292 //
   292 //
   293 void CPbk2MultiAssignDataPhase::ContactOperationFailed
   293 void CPbk2MultiAssignDataPhase::ContactOperationFailed
   294         ( TContactOp /*aOpCode*/, TInt aErrorCode, TBool /*aErrorNotified*/ )
   294         ( TContactOp /*aOpCode*/, TInt aErrorCode, TBool /*aErrorNotified*/ )
   295     {
   295     {
   296     // Locking the contact failed
       
   297      if ( KErrInUse == aErrorCode )
       
   298         {
       
   299         CCoeEnv::Static()->HandleError( aErrorCode );
       
   300         }
       
   301 
       
   302      // If the contact operation failed, the iStoreContact is expected to be deleted,
   296      // If the contact operation failed, the iStoreContact is expected to be deleted,
   303      // otherwise it will lead to memory leak.
   297      // otherwise it will lead to memory leak.
   304     if ( iStoreContact )
   298     if ( iStoreContact )
   305         {
   299         {
   306         delete iStoreContact;
   300         delete iStoreContact;