Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4782 in orxonox.OLD for orxonox/trunk/src/lib/lang


Ignore:
Timestamp:
Jul 3, 2005, 12:26:16 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: orxonox-events registered, solved an error in ClassList

Location:
orxonox/trunk/src/lib/lang
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/lang/class_list.cc

    r4778 r4782  
    4747ClassList::~ClassList ()
    4848{
     49  delete this->objectList;
    4950  --ClassList::classCount;
    5051}
     
    6566{
    6667  ClassList* regClass;
     68  PRINTF(5)("subscribe a %s\n", className );
    6769
    6870  if(ClassList::first == NULL)
     
    7981      }
    8082
    81       if (tmp->next == NULL)
     83      if (unlikely(tmp->next == NULL))
     84      {
    8285        tmp->next = regClass = new ClassList(classID, className);
     86        break;
     87      }
    8388      tmp = tmp->next;
    8489    }
  • orxonox/trunk/src/lib/lang/class_list.h

    r4764 r4782  
    5252
    5353    // 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
    5555    static unsigned int      classCount;             //!< The Count of classes that have been registered (should match the lower description)
    5656};
Note: See TracChangeset for help on using the changeset viewer.