Changeset 656 for trunk


Ignore:
Timestamp:
03/01/01 16:27:34 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MCT1ReadAscii.cc

    r653 r656  
    3939    //
    4040    fIn = new ifstream(fFileName);
    41     if (!fIn->is_open())
     41    if (!(*fIn))
    4242    {
    4343        *fLog << "Error: MCT1ReadAscii::PreProcess: Cannot open file." << endl;
  • trunk/MagicSoft/Mars/mraw/MRawEvtData.cc

    r654 r656  
    301301    // Enhance array by the size which we'll read now
    302302    //
    303     Byte_t lo[nlo];
    304     Byte_t hi[nhi];
     303    Byte_t *lo = new Byte_t[nlo];
     304    Byte_t *hi = new Byte_t[nhi];
    305305
    306306    const int npixhi = fHiGainPixId->GetSize();
     
    340340        //}
    341341    }
    342 }
    343 
     342    delete lo;
     343    delete hi;
     344}
     345
Note: See TracChangeset for help on using the changeset viewer.