Ignore:
Timestamp:
06/16/08 00:48:18 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mreport/MReportFileRead.cc

    r8955 r8963  
    6868
    6969    fIn = new ifstream;
     70
    7071    fList = new THashTable(1,1);
    7172    fList->SetOwner();
     
    8990MReportHelp *MReportFileRead::GetReportHelp(const TString &str) const
    9091{
    91     return (MReportHelp*)fList->FindObject(str);
     92    return static_cast<MReportHelp*>(fList->FindObject(str));
    9293}
    9394
     
    143144Int_t MReportFileRead::PreProcess(MParList *pList)
    144145{
    145     //MTime *time = (MTime*)pList->FindCreateObj("MTime");
    146     //if (!time)
    147     //    return kFALSE;
    148146    fNumLine = 0;
    149147
     148    // Add the MReport instances first to the paramter list
     149    // so that SetupReading can find them if needed
     150    fList->R__FOR_EACH(MReportHelp, AddToList)(*pList);
     151
     152    // Setup reading
    150153    TIter Next(fList);
    151154    MReportHelp *help=0;
     
    153156        if (!help->SetupReading(*pList))
    154157            return kFALSE;
    155 
    156     fList->R__FOR_EACH(MReportHelp, AddToList)(*pList);
    157158
    158159    //
Note: See TracChangeset for help on using the changeset viewer.