csxhelp/HelpEngine/src/CSXHLegacyContentParser.cpp
branchRCL_3
changeset 14 b69cc3efe785
parent 12 e3a25416bf1f
equal deleted inserted replaced
12:e3a25416bf1f 14:b69cc3efe785
   101     {    
   101     {    
   102     const TInt twoColumnFlatArray = 2;
   102     const TInt twoColumnFlatArray = 2;
   103     CDesCArray* categoryList = new(ELeave) CDesCArrayFlat(twoColumnFlatArray);
   103     CDesCArray* categoryList = new(ELeave) CDesCArrayFlat(twoColumnFlatArray);
   104     CleanupStack::PushL(categoryList);
   104     CleanupStack::PushL(categoryList);
   105     iModel->CategoryListL(categoryList);
   105     iModel->CategoryListL(categoryList);
   106     CCSXHLegacyTOC1* CategoryObj;
   106     CCSXHLegacyTOC1* categoryObj;
   107     TBuf<KMaxFileName> appName;
   107     TBuf<KMaxFileName> appName;
   108     TLinearOrder<CCSXHHelpContentBase> anOrder(Orderer<CCSXHHelpContentBase>);          
   108     TLinearOrder<CCSXHHelpContentBase> anOrder(Orderer<CCSXHHelpContentBase>);          
   109     for (TInt i(0); i < categoryList->Count(); i++)
   109     for (TInt i(0); i < categoryList->Count(); i++)
   110         {           
   110         {           
   111         appName = categoryList->MdcaPoint(i);                           
   111         appName = categoryList->MdcaPoint(i);                           
   112         CategoryObj = CCSXHLegacyTOC1::NewL(appName);
   112         categoryObj = CCSXHLegacyTOC1::NewLC(appName);
   113         if ( aDataBase->GetAppHelpsTopics()->InsertChild(CategoryObj) )
   113         if ( aDataBase->GetAppHelpsTopics()->InsertChild(categoryObj) )
   114                 iLegacyTOC1List.Append(CategoryObj);//Keep a local copy*/       
   114             {
       
   115             iLegacyTOC1List.AppendL(categoryObj);//Keep a local copy*/
       
   116             }
       
   117         CleanupStack::Pop(categoryObj);
   115         }
   118         }
   116     CleanupStack::Pop(categoryList);            
   119     CleanupStack::Pop(categoryList);            
   117     delete categoryList;
   120     delete categoryList;
   118     }
   121     }
   119 // --------------------------------------------------------------------------
   122 // --------------------------------------------------------------------------