Changeset 2296 for trunk/MagicSoft/Mars/mhist/MH.cc
- Timestamp:
- 07/29/03 13:18:57 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MH.cc
r2209 r2296 796 796 // Otherwise the present gPad is returned. 797 797 // 798 TVirtualPad *MH::GetNewPad( Option_t *opt)799 { 800 TString str(opt);801 802 if (! str.Contains("nonew", TString::kIgnoreCase))798 TVirtualPad *MH::GetNewPad(TString &opt) 799 { 800 opt.ToLower(); 801 802 if (!opt.Contains("nonew")) 803 803 return NULL; 804 805 opt.ReplaceAll("nonew", ""); 804 806 805 807 return gPad; … … 813 815 TObject *MH::Clone(const char *name) const 814 816 { 815 Bool_t store = TH1::AddDirectoryStatus(); 817 const Bool_t store = TH1::AddDirectoryStatus(); 818 816 819 TH1::AddDirectory(kFALSE); 817 818 820 TObject *o = MParContainer::Clone(name); 819 820 821 TH1::AddDirectory(store); 821 822 … … 831 832 TObject *MH::DrawClone(Option_t *opt, Int_t w, Int_t h) const 832 833 { 833 TVirtualPad *p = GetNewPad(opt); 834 TString option(opt); 835 836 TVirtualPad *p = GetNewPad(option); 834 837 if (!p) 835 838 p = MakeDefCanvas(this, w, h); … … 839 842 gROOT->SetSelectedPad(NULL); 840 843 841 TObject *o = MParContainer::DrawClone(opt );844 TObject *o = MParContainer::DrawClone(option); 842 845 o->SetBit(kCanDelete); 843 846 return o;
Note:
See TracChangeset
for help on using the changeset viewer.