Changeset 8906
- Timestamp:
- 06/01/08 20:19:43 (17 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8905 r8906 27 27 * mbase/MContinue.cc: 28 28 - improved output 29 30 * mbase/MTaskList.cc: 31 - fixed broken FindTaskList 29 32 30 33 … … 143 146 - contped has been removed from the tasklist 144 147 148 * mhbase/MH3.cc: 149 - fixed a bug introduced with the lables (it must be !(x&y) 150 instead of !x&y 151 152 * mjobs/MDataSet.cc: 153 - shortened a line of output to fit into 80 characters 154 145 155 146 156 -
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.