ui/uiengine/medialists/src/glxnavigablelist.cpp
changeset 52 a3a4c0de738e
parent 23 74c9f037fd5d
equal deleted inserted replaced
50:a0f57508af73 52:a3a4c0de738e
   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
   922     }
   924     }
   923 
   925 
   924 // ---------------------------------------------------------------------------
   926 // ---------------------------------------------------------------------------
   925 // Test invariant
   927 // Test invariant
   926 // ---------------------------------------------------------------------------
   928 // ---------------------------------------------------------------------------
   927 void CGlxNavigableList::__DbgTestInvariant() const
   929 EXPORT_C void CGlxNavigableList::__DbgTestInvariant() const
   928     {
   930     {
   929     TRACER( "CGlxNavigableList::__DbgTestInvariant");
   931     TRACER( "CGlxNavigableList::__DbgTestInvariant");
   930     
   932     
   931     #if 0
   933     #if 0
   932     //def _DEBUG
   934     //def _DEBUG