Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 14, 2008, 6:23:52 PM (16 years ago)
Author:
landauf
Message:

fixed an interesting bug in ObjectList/MetaObjectList/Iterator: it's now possible to delete multiple objects in one function-call while iterating through the objects. (and it would have crashed with std::list as well, so no stupid comments please :D)

added a feature in Timer.cc, allowing timers to tick faster than orxonox. this is from core2-branch but got lost while merging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/Identifier.h

    r1062 r1063  
    303303            void setName(const std::string& name);
    304304            /** @brief Returns the list of all existing objects of this class. @return The list */
    305             inline const ObjectList<T>* getObjects() const { return this->objects_; }
     305            inline ObjectList<T>* getObjects() const { return this->objects_; }
    306306            /** @brief Returns a list of all existing objects of this class. @return The list */
    307             inline const ObjectList<BaseObject>* getObjectList() const { return (ObjectList<BaseObject>*)this->objects_; }
     307            inline ObjectList<BaseObject>* getObjectList() const { return (ObjectList<BaseObject>*)this->objects_; }
    308308
    309309            void updateConfigValues() const;
Note: See TracChangeset for help on using the changeset viewer.