emailservices/emailstore/message_store/server/src/ContainerStoreMRUAddressTable.cpp
changeset 72 64e38f08e49c
parent 59 16ed8d08d0b1
child 68 83cc6bae1de8
equal deleted inserted replaced
65:478bc57ad291 72:64e38f08e49c
   477     TInt count = iAddressLists.Count();
   477     TInt count = iAddressLists.Count();
   478     for ( TInt i = 0 ; i < count ; i++ )
   478     for ( TInt i = 0 ; i < count ; i++ )
   479         {
   479         {
   480         if ( iAddressLists[i]->MailboxId() == aMailboxId )
   480         if ( iAddressLists[i]->MailboxId() == aMailboxId )
   481             {
   481             {
       
   482             found = ETrue;
   482             CMruAddressList* list = iAddressLists[i];
   483             CMruAddressList* list = iAddressLists[i];
   483             iAddressLists.Remove( i );
   484             iAddressLists.Remove( i );
   484             delete list;
   485             delete list;
   485             break;
   486             break;
   486             }
   487             }
   487         }
   488         }
   488     
   489     if ( !found )
   489     if ( !found == NULL )
       
   490         {
   490         {
   491         User::Leave( KErrNotFound );
   491         User::Leave( KErrNotFound );
   492         }
   492         }
   493     
   493     
   494     //delete from the table
   494     //delete from the table
   688 void CContainerStoreMruAddressTable::UpdateMruNumberInTableL( TUint aOldMruNum, TUint aNewMruNum )
   688 void CContainerStoreMruAddressTable::UpdateMruNumberInTableL( TUint aOldMruNum, TUint aNewMruNum )
   689     {
   689     {
   690     __LOG_ENTER_SUPPRESS("UpdateMruNumberInTable")
   690     __LOG_ENTER_SUPPRESS("UpdateMruNumberInTable")
   691     __LOG_WRITE_FORMAT2_INFO("updating MRU %u to %u", aOldMruNum, aNewMruNum )
   691     __LOG_WRITE_FORMAT2_INFO("updating MRU %u to %u", aOldMruNum, aNewMruNum )
   692     
   692     
   693     iTable.SeekL( aOldMruNum );
   693     SeekL( aOldMruNum );
   694     
   694     
   695     PrepareRowForUpdateLC();
   695     PrepareRowForUpdateLC();
   696     
   696     
   697     iTable.SetColL( iMruNumColNum, aNewMruNum );
   697     iTable.SetColL( iMruNumColNum, aNewMruNum );
   698     
   698