Changeset 9663 in orxonox.OLD for trunk/src/lib/lang/new_object_list.cc
- Timestamp:
- Aug 20, 2006, 3:07:59 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/lang/new_object_list.cc
r9662 r9663 25 25 if (NewObjectListBase::_classes == NULL) 26 26 NewObjectListBase::_classes = new cList; 27 assert(!NewObjectListBase:: exists(className) && "Classes should not be included once, and no two classes should have the same name (key value)");27 assert(!NewObjectListBase::classNameExists(className) && "Classes should not be included once, and no two classes should have the same name (key value)"); 28 28 29 this->_id = NewObjectListBase::_idCounter++; 29 30 30 31 … … 46 47 * @return true if such a class already exists. 47 48 */ 48 bool NewObjectListBase:: exists(const std::string& name)49 bool NewObjectListBase::classNameExists(const std::string& name) 49 50 { 50 51 cList::iterator it;
Note: See TracChangeset
for help on using the changeset viewer.