mpx/commonframework/common/src/mpxcollectionpath.cpp
branchRCL_3
changeset 24 6c1dfe4da5dd
parent 0 a2952bb97e68
child 25 63223d4fd956
equal deleted inserted replaced
23:e42293e811d8 24:6c1dfe4da5dd
   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 // -----------------------------------------------------------------------------