Changeset 4782 in orxonox.OLD for orxonox/trunk/src/lib/lang
- Timestamp:
- Jul 3, 2005, 12:26:16 PM (19 years ago)
- Location:
- orxonox/trunk/src/lib/lang
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/lang/class_list.cc
r4778 r4782 47 47 ClassList::~ClassList () 48 48 { 49 delete this->objectList; 49 50 --ClassList::classCount; 50 51 } … … 65 66 { 66 67 ClassList* regClass; 68 PRINTF(5)("subscribe a %s\n", className ); 67 69 68 70 if(ClassList::first == NULL) … … 79 81 } 80 82 81 if (tmp->next == NULL) 83 if (unlikely(tmp->next == NULL)) 84 { 82 85 tmp->next = regClass = new ClassList(classID, className); 86 break; 87 } 83 88 tmp = tmp->next; 84 89 } -
orxonox/trunk/src/lib/lang/class_list.h
r4764 r4782 52 52 53 53 // STATIC MEMBERS 54 static ClassList* first; //!< The first Class in the List (should be BaseObject)54 static ClassList* first; //!< The first Class in the List 55 55 static unsigned int classCount; //!< The Count of classes that have been registered (should match the lower description) 56 56 };
Note: See TracChangeset
for help on using the changeset viewer.