predictivesearch/PcsAlgorithm/Algorithm1/src/CPcsCache.cpp
branchRCL_3
changeset 85 38bb213f60ba
parent 68 9da50d567e3c
equal deleted inserted replaced
74:6b5524b4f673 85:38bb213f60ba
   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::CompareByDataL );
   177     TLinearOrder<CPcsPoolElement> rule( CPcsPoolElement::CompareByData );
   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     {