Changeset 9671 in orxonox.OLD for trunk/src/lib/lang/new_object_list.cc
- Timestamp:
- Aug 21, 2006, 4:14:57 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/lang/new_object_list.cc
r9664 r9671 24 24 { 25 25 if (NewObjectListBase::_classes == NULL) 26 NewObjectListBase::_classes = new cList; 26 NewObjectListBase::_classes = new cSet; 27 28 27 29 assert(!NewObjectListBase::classNameExists(className) && "Classes should not be included once, and no two classes should have the same name (key value)"); 28 30 … … 37 39 38 40 int NewObjectListBase::_idCounter = 0; 39 NewObjectListBase::c List* NewObjectListBase::_classes = NULL;41 NewObjectListBase::cSet* NewObjectListBase::_classes = NULL; 40 42 41 43 … … 48 50 bool NewObjectListBase::classNameExists(const std::string& name) 49 51 { 50 c List::iterator it;52 cSet::iterator it; 51 53 for (it = NewObjectListBase::_classes->begin(); it != NewObjectListBase::_classes->end(); it++) 52 54 if(*it != NULL && (*it)->name() != name)
Note: See TracChangeset
for help on using the changeset viewer.