mpx/commonframework/common/src/mpxcollectionpath.cpp
changeset 48 b7b49303d0c0
parent 0 a2952bb97e68
child 56 63223d4fd956
equal deleted inserted replaced
45:09978a29cfde 48:b7b49303d0c0
   604 // Current selected IDs
   604 // Current selected IDs
   605 // -----------------------------------------------------------------------------
   605 // -----------------------------------------------------------------------------
   606 //
   606 //
   607 EXPORT_C void CMPXCollectionPath::SelectionL(RArray<TMPXItemId>& aIds) const
   607 EXPORT_C void CMPXCollectionPath::SelectionL(RArray<TMPXItemId>& aIds) const
   608     {
   608     {
       
   609     CleanupClosePushL(aIds);
   609     aIds.Reset();
   610     aIds.Reset();
   610     TInt idCount(iIds.Count());
   611     TInt idCount(iIds.Count());
   611     TInt selCount(iSelection.Count());
   612     TInt selCount(iSelection.Count());
   612     for  (TInt i=0; i<selCount; ++i)
   613     for  (TInt i=0; i<selCount; ++i)
   613         {
   614         {
   615         if (idIndex < idCount)
   616         if (idIndex < idCount)
   616             {
   617             {
   617             aIds.AppendL(iIds[idIndex]);
   618             aIds.AppendL(iIds[idIndex]);
   618             }
   619             }
   619         }
   620         }
       
   621     CleanupStack::Pop();
   620     }
   622     }
   621 
   623 
   622 // -----------------------------------------------------------------------------
   624 // -----------------------------------------------------------------------------
   623 // Update the item id at a particular index
   625 // Update the item id at a particular index
   624 // -----------------------------------------------------------------------------
   626 // -----------------------------------------------------------------------------