Changeset 8906 for trunk/MagicSoft/Mars/mbase/MTaskList.cc
- Timestamp:
- 06/01/08 20:19:43 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MTaskList.cc
r8744 r8906 18 18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 720 ! Copyright: MAGIC Software Development, 2000-2008 21 21 ! 22 22 ! … … 420 420 MTaskList *MTaskList::FindTaskList(const char *task) 421 421 { 422 if (FindObject(task))423 return this;424 425 422 TIter Next(fTasks); 426 423 TObject *o = 0; 427 424 while ((o=Next())) 428 425 { 426 if (strcmp(o->GetName(), task)==0) 427 return this; 428 429 429 MTaskList *l = dynamic_cast<MTaskList*>(o); 430 430 if (!l) 431 431 continue; 432 432 433 if ( l->FindObject(task))433 if ((l=l->FindTaskList(task))) 434 434 return l; 435 435 } … … 443 443 MTaskList *MTaskList::FindTaskList(const MTask *task) 444 444 { 445 if (FindObject(task))446 return this;447 448 445 TIter Next(fTasks); 449 446 TObject *o = 0; 450 447 while ((o=Next())) 451 448 { 449 if (o==task) 450 return this; 451 452 452 MTaskList *l = dynamic_cast<MTaskList*>(o); 453 453 if (!l) 454 454 continue; 455 455 456 if ( l->FindObject(task))456 if ((l=l->FindTaskList(task))) 457 457 return l; 458 458 }
Note:
See TracChangeset
for help on using the changeset viewer.