Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 25, 2006, 11:54:18 AM (18 years ago)
Author:
bensch
Message:

new BaseObjectList retrieval function, thus removing the awefully strange and confusing virutal base_iterator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/shell/shell_command.cc

    r9697 r9702  
    244244    if (objectList != NULL)
    245245    {
    246       NewObjectListBase::base_iterator bo(objectList->base_begin());
     246      NewObjectListBase::base_list list;
     247      objectList->getBaseObjectList(&list);
     248      NewObjectListBase::base_iterator it;
    247249
    248250      // No Description given (only for speedup)
    249251      if (objectDescriptor.empty())
    250252      {
    251         for (; bo != objectList->base_end(); bo++)
    252           boList->push_back(*bo);
     253        for (it = list.begin(); it != list.end(); it++)
     254          boList->push_back(*it);
    253255      }
    254256      // some description
    255257      else
    256258      {
    257         for (bo = objectList->base_begin(); bo != objectList->base_end(); bo++)
    258           if (!nocaseCmp(objectDescriptor, (*bo)->getName(), objectDescriptor.size()))
    259             boList->push_back(*bo);
     259        for (it = list.begin(); it != list.end(); it++)
     260          if (!nocaseCmp(objectDescriptor, (*it)->getName(), objectDescriptor.size()))
     261            boList->push_back(*it);
    260262      }
    261263    }
Note: See TracChangeset for help on using the changeset viewer.