Changeset 17146


Ignore:
Timestamp:
09/07/13 21:48:35 (11 years ago)
Author:
tbretz
Message:
It looks like sometimes the TObject version ofWrite is called from the interpreter with the wrong default arguments: workaround - accept NULL as a file name and replace it with MStatusDisplay.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mbase/MStatusDisplay.h

    r15257 r17146  
    293293     Int_t Read(const char *name, const char *tab);
    294294     Int_t Read(const char *name="MStatusDisplay") { return Read(name, 0); }
    295      Int_t Write(const char *name="MStatusDisplay", Int_t =0, Int_t =0) { return Write(-1, name); }
    296      Int_t Write(const char *name="MStatusDisplay", Int_t =0, Int_t =0) const { return Write(-1, name); }
     295     Int_t Write(const char *name=0, Int_t =0, Int_t =0) { return Write(-1, name?name:"MStatusDisplay"); }
     296     Int_t Write(const char *name=0, Int_t =0, Int_t =0) const { return Write(-1, name?name:"MStatusDisplay"); }
    297297
    298298     // Eventloop interface
Note: See TracChangeset for help on using the changeset viewer.