- Timestamp:
- Aug 16, 2013, 9:20:59 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core6/src/libraries/core/object/Listable.cc
r9627 r9651 33 33 34 34 #include "Listable.h" 35 #include "core/CoreIncludes.h" 35 36 #include "ObjectListBase.h" 36 37 #include "Context.h" … … 38 39 namespace orxonox 39 40 { 41 RegisterClass(Listable); 42 40 43 /** 41 44 @brief Constructor: Allocates space in the element list. … … 45 48 this->context_ = Context::getRootContext(); 46 49 this->elements_.reserve(6); 50 51 RegisterObject(Listable); 47 52 } 48 53 49 54 /** 50 @brief Constructor: Allocates space in the element list and assign es the context55 @brief Constructor: Allocates space in the element list and assigns the context 51 56 */ 52 57 Listable::Listable(Context* context) … … 54 59 this->context_ = context; 55 60 this->elements_.reserve(6); 61 62 RegisterObject(Listable); 56 63 } 57 64 … … 80 87 void Listable::setContext(Context* context) 81 88 { 89 assert(context); 82 90 std::vector<ObjectListBaseElement*> copy = this->elements_; 83 91 this->elements_.clear();
Note: See TracChangeset
for help on using the changeset viewer.