Changeset 8484 for trunk/MagicSoft/Mars/mbase/MStatusArray.cc
- Timestamp:
- 05/10/07 13:16:56 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MStatusArray.cc
r8299 r8484 93 93 TObject *MStatusArray::FindObjectInPad(TVirtualPad *pad, const char *object, TClass *cls) const 94 94 { 95 TObject *o = pad->FindObject(object);96 if (o && o->InheritsFrom(cls))97 return o;95 TObject *o = NULL;//pad->FindObject(object); 96 // if (o && o->InheritsFrom(cls)) 97 // return o; 98 98 99 99 TIter Next(pad->GetListOfPrimitives()); 100 100 while ((o=Next())) 101 101 { 102 if (o->GetName()==(TString)object && o->InheritsFrom(cls)) 103 return o; 104 102 105 if (o==pad || !o->InheritsFrom(TVirtualPad::Class())) 103 106 continue; 104 107 105 108 if ((o = FindObjectInPad((TVirtualPad*)o, object, cls))) 106 if (o->InheritsFrom(cls)) 107 return o; 109 return o; 110 // if (o->InheritsFrom(cls)) 111 // return o; 108 112 } 109 113 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.