Changeset 18148 for trunk/Mars


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
Location:
trunk/Mars/mdrs
Files:
3 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    }
  • trunk/Mars/mdrs/MDrsCalibrationTime.cc

    r18144 r18148  
    4949}
    5050
    51 bool MDrsCalibrationTime::ReadFits(const string &fname)
     51bool MDrsCalibrationTime::ReadFits(TString fname)
    5252{
     53    gSystem->ExpandPathName(fname);
     54
    5355    string msg;
    5456    try
    5557    {
    56         msg = DrsCalibrateTime::ReadFitsImp(fname);
     58        msg = DrsCalibrateTime::ReadFitsImp(fname.Data());
    5759    }
    5860    catch (const exception &e)
  • trunk/Mars/mdrs/MDrsCalibrationTime.h

    r18123 r18148  
    4747    }
    4848
    49     bool ReadFits(const std::string &fname);
     49    bool ReadFits(TString fname);
    5050    bool WriteFits(const std::string &fname) const;
    5151
Note: See TracChangeset for help on using the changeset viewer.