Changeset 2210 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 06/23/03 13:19:34 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MParList.cc
r2178 r2210 75 75 fContainer = new TOrdCollection; 76 76 fAutodelete = new TOrdCollection; 77 78 gROOT->GetListOfCleanups()->Add(fContainer); 79 gROOT->GetListOfCleanups()->Add(fAutodelete); 80 fContainer->SetBit(kMustCleanup); 81 fAutodelete->SetBit(kMustCleanup); 77 82 } 78 83 … … 111 116 IsOwner() ? fContainer->SetOwner() : fAutodelete->SetOwner(); 112 117 118 TIter Next(fContainer); 119 TObject *o; 120 while (o=Next()) 121 if (o->TestBit(kCanDelete)) 122 delete fContainer->Remove(o); 123 113 124 // FIXME? If fContainer is owner do we have to remove the object 114 125 // from fAutodelete due to the acces when checking for a … … 206 217 *fLog << inf << "Adding " << name << " to " << GetName() << "... " << flush; 207 218 219 cont->SetBit(kMustCleanup); 208 220 fContainer->Add(cont); 209 221 *fLog << "Done." << endl; … … 228 240 MParContainer *cont = NULL; 229 241 while ((cont=Next())) 242 { 243 cont->SetBit(kMustCleanup); 230 244 AddToList(cont); 245 } 231 246 } 232 247
Note:
See TracChangeset
for help on using the changeset viewer.