Ignore:
Timestamp:
07/18/07 20:30:13 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MParContainer.cc

    r8218 r8642  
    7171#include "MLogManip.h"
    7272
     73#include "MStatusDisplay.h"
     74
    7375TList *gListOfPrimitives; // forard declaration in MParContainer.h
    7476
     
    116118        return;
    117119
    118     *fLog << all << "Deleting " << GetDescriptor() << endl;
     120    *fLog << all << "Deleting " << this << " " << GetDescriptor() << endl;
    119121    if (TestBit(kMustCleanup) && gROOT && gROOT->MustClean())
    120122    {
     
    921923    return ((TEnv&)env).GetValue(prefix, dflt);
    922924}
     925
     926// --------------------------------------------------------------------------
     927//
     928// If object to remove is fDisplay set fDisplay to NULL.
     929// If object to remove is fLog     set fLog     to NULL.
     930// Call TObject::RecursiveRemove
     931//
     932void MParContainer::RecursiveRemove(TObject *obj)
     933{
     934    if (obj==fDisplay)
     935        fDisplay=NULL;
     936
     937    if (obj==fLog)
     938        fLog=NULL;
     939
     940    if (fDisplay)
     941        fDisplay->RecursiveRemove(obj);
     942
     943    if (fLog)
     944        fLog->RecursiveRemove(obj);
     945
     946    TObject::RecursiveRemove(obj);
     947}
     948
Note: See TracChangeset for help on using the changeset viewer.