Ignore:
Timestamp:
02/18/15 12:12:15 (10 years ago)
Author:
tbretz
Message:
std namespace missing; expand path name; consequently argument must not be const
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mdrs/MDrsCalibration.h

    r18144 r18148  
    3030    }
    3131
    32     bool ReadFits(const TString &str)
     32    bool ReadFits(TString fname)
    3333    {
    34         gSystem->ExpandPathName(str);
     34        gSystem->ExpandPathName(fname);
    3535
    36         string msg;
     36        std::string msg;
    3737        try
    3838        {
    39             msg = ReadFitsImp(str.Data());
     39            msg = ReadFitsImp(fname.Data());
    4040        }
    41         catch (const exception &e)
     41        catch (const std::exception &e)
    4242        {
    4343            msg = e.what();
     
    4646        if (msg.empty())
    4747        {
    48             *fLog << inf << "Read DRS calibration file " << fname << endl;
     48            *fLog << inf << "Read DRS calibration file " << fname << std::endl;
    4949            return true;
    5050        }
    5151
    52         *fLog << err << "Error reading from " << fname << ": " << msg << endl;
     52        *fLog << err << "Error reading from " << fname << ": " << msg << std::endl;
    5353        return false;
    5454    }
Note: See TracChangeset for help on using the changeset viewer.