Changeset 9702 in orxonox.OLD for branches/new_class_id/src/lib/shell
- Timestamp:
- Aug 25, 2006, 11:54:18 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/shell/shell_command.cc
r9697 r9702 244 244 if (objectList != NULL) 245 245 { 246 NewObjectListBase::base_iterator bo(objectList->base_begin()); 246 NewObjectListBase::base_list list; 247 objectList->getBaseObjectList(&list); 248 NewObjectListBase::base_iterator it; 247 249 248 250 // No Description given (only for speedup) 249 251 if (objectDescriptor.empty()) 250 252 { 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); 253 255 } 254 256 // some description 255 257 else 256 258 { 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); 260 262 } 261 263 }
Note: See TracChangeset
for help on using the changeset viewer.