upnpframework/upnpcommonui/src/upnpbrowsedialog.cpp
changeset 34 eab116a48b80
parent 30 5ec426854821
equal deleted inserted replaced
33:6ac064bb53eb 34:eab116a48b80
  2454                 }
  2454                 }
  2455             //if not in array add it there
  2455             //if not in array add it there
  2456             if ( !alreadyInArray )
  2456             if ( !alreadyInArray )
  2457                 {
  2457                 {
  2458                 CUpnpItem* itemForSelectionArray = CUpnpItem::NewL();
  2458                 CUpnpItem* itemForSelectionArray = CUpnpItem::NewL();
       
  2459                 CleanupStack::PushL( itemForSelectionArray );
  2459                 
  2460                 
  2460                 itemForSelectionArray->CopyL( *iResultArray[ indexes->At(
  2461                 itemForSelectionArray->CopyL( *iResultArray[ indexes->At(
  2461                                                      selectionCount ) ] );
  2462                                                      selectionCount ) ] );
  2462 
  2463 
  2463                 iSelectedItemsArray.AppendL( itemForSelectionArray );
  2464                 iSelectedItemsArray.AppendL( itemForSelectionArray );
       
  2465                 CleanupStack::Pop( itemForSelectionArray );
  2464                 }
  2466                 }
  2465             }
  2467             }
  2466         }
  2468         }
  2467     CTextListBoxModel* model = iListBox->Model();
  2469     CTextListBoxModel* model = iListBox->Model();
  2468     TInt numberOfItems = model->NumberOfItems();
  2470     TInt numberOfItems = model->NumberOfItems();