Changeset 11407 for trunk/Mars/mbase
- Timestamp:
- 07/14/11 18:32:16 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mbase/MStatusDisplay.cc
r10055 r11407 1555 1555 } 1556 1556 1557 const UInt_tlen = sizeof(char)*(strlen(buf2)+1);1557 len = sizeof(char)*(strlen(buf2)+1); 1558 1558 1559 1559 const size_t ret = fwrite(buf2, len, 1, p); … … 2333 2333 MStatusArray list; 2334 2334 2335 constInt_t n = list.Read(name);2335 Int_t n = list.Read(name); 2336 2336 2337 2337 // … … 2342 2342 { 2343 2343 // Either read the title from the file or create our own 2344 TNamed * n=0;2345 gFile->GetObject("Title", n); // FIXME: Is the list allowed to take ownership?2346 list.Add( n ? n: new TNamed(GetName(), GetTitle()));2344 TNamed *title=0; 2345 gFile->GetObject("Title", title); // FIXME: Is the list allowed to take ownership? 2346 list.Add(title ? title : new TNamed(GetName(), GetTitle())); 2347 2347 2348 2348 const Bool_t store = TH1::AddDirectoryStatus();
Note:
See TracChangeset
for help on using the changeset viewer.