predictivesearch/PcsAlgorithm/Algorithm1/src/CPcsCache.cpp
branchRCL_3
changeset 21 9da50d567e3c
parent 20 f4a778e096c2
equal deleted inserted replaced
20:f4a778e096c2 21:9da50d567e3c
   172     // Second TInt = Location in the pool
   172     // Second TInt = Location in the pool
   173     // Required for memory optimization so that more than one pool
   173     // Required for memory optimization so that more than one pool
   174     // element doesn't get added for the same data
   174     // element doesn't get added for the same data
   175     RHashMap<TInt, TInt> elementHash;
   175     RHashMap<TInt, TInt> elementHash;
   176     CleanupClosePushL( elementHash );
   176     CleanupClosePushL( elementHash );
   177     TLinearOrder<CPcsPoolElement> rule( CPcsPoolElement::CompareByData );
   177     TLinearOrder<CPcsPoolElement> rule( CPcsPoolElement::CompareByDataL );
   178 
   178 
   179     TBool unnamed = ETrue;
   179     TBool unnamed = ETrue;
   180     // Parse thru each data element
   180     // Parse thru each data element
   181     for ( TInt dataIndex = 0; dataIndex < aData.DataElementCount(); dataIndex++ )
   181     for ( TInt dataIndex = 0; dataIndex < aData.DataElementCount(); dataIndex++ )
   182     {
   182     {