equal
deleted
inserted
replaced
559 // |
559 // |
560 inline void CGlxNavigableList::SelectionL( RArray< TGlxMediaId >& aItemIds ) const |
560 inline void CGlxNavigableList::SelectionL( RArray< TGlxMediaId >& aItemIds ) const |
561 { |
561 { |
562 TRACER( "CGlxNavigableList::SelectionL"); |
562 TRACER( "CGlxNavigableList::SelectionL"); |
563 |
563 |
|
564 CleanupClosePushL(aItemIds); |
564 aItemIds.Reset(); |
565 aItemIds.Reset(); |
565 |
566 |
566 // Reserve full required space to avoid reallocations during loop |
567 // Reserve full required space to avoid reallocations during loop |
567 aItemIds.ReserveL( iSelectedItemIndices.Count() ); |
568 aItemIds.ReserveL( iSelectedItemIndices.Count() ); |
568 |
569 |
569 TInt count = iSelectedItemIndices.Count(); |
570 TInt count = iSelectedItemIndices.Count(); |
570 for ( TInt i = 0; i < count; ++i ) |
571 for ( TInt i = 0; i < count; ++i ) |
571 { |
572 { |
572 aItemIds.AppendL( iItemList->Item( iSelectedItemIndices[ i ] ).Id() ); |
573 aItemIds.AppendL( iItemList->Item( iSelectedItemIndices[ i ] ).Id() ); |
573 } |
574 } |
|
575 CleanupStack::Pop(&aItemIds); |
574 } |
576 } |
575 |
577 |
576 // ----------------------------------------------------------------------------- |
578 // ----------------------------------------------------------------------------- |
577 // Clear list contents |
579 // Clear list contents |
578 // inline private member function only in cpp file, so will be inlined in arm |
580 // inline private member function only in cpp file, so will be inlined in arm |