Changeset 14888 for trunk/Mars/mbase


Ignore:
Timestamp:
02/13/13 09:53:24 (12 years ago)
Author:
tbretz
Message:
Added a possible fix for newer root versions... might not be the best one yet.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mbase/MStatusArray.cc

    r13117 r14888  
    108108#ifdef DEBUG
    109109            cout << "Start Delete " << o << " " << o->GetName() << " " << o->ClassName() << endl;
    110             ptr = o;
    111110#endif
    112111            delete o;
    113112
    114113#ifdef DEBUG
    115             ptr = 0;
    116114            cout << "Done  Delete " << o<< endl;
    117115#endif
     
    218216        {
    219217#ifdef DEBUG
    220             cout << "MStatusArray::RecursiveRemove " << obj << " from TGraph " << g << endl;
     218            gLog << all << "MStatusArray::RecursiveRemove " << obj << " from TGraph " << g << endl;
    221219#endif
    222220
     
    227225            {
    228226#ifdef DEBUG
    229                 cout << "       SetHist(0)" << endl;
     227                gLog << all << "       SetHist(0)" << endl;
    230228#endif
    231229                g->SetHistogram(0);
    232                 continue;
    233230            }
    234231
     
    240237            {
    241238#ifdef DEBUG
    242                 cout << "       SetFunc(0)" << endl;
     239                gLog << all << "       SetFunc(0)" << endl;
    243240#endif
    244241                static_cast<MyGraph*>(g)->ResetListOfFunctions();
    245                 continue;
    246242            }
    247243        }
     
    306302        SetCleanup(o);
    307303
     304#if ROOT_VERSION_CODE < ROOT_VERSION(5,26,00)
    308305    // Now delete the MARS object first because we have full control
    309306    // of them
     
    316313    while ((o=Next3()))
    317314        while (!RecursiveDelete(dynamic_cast<TVirtualPad*>(o)));
     315#endif
    318316
    319317    // And delete all the rest
Note: See TracChangeset for help on using the changeset viewer.