Changeset 3605 in orxonox.OLD for orxonox/branches/levelloader/src/lib/lang
- Timestamp:
- Mar 18, 2005, 11:52:15 AM (20 years ago)
- Location:
- orxonox/branches/levelloader/src/lib/lang
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelloader/src/lib/lang/base_object.cc
r3499 r3605 26 26 \brief standard constructor 27 27 */ 28 BaseObject::BaseObject () {} 28 BaseObject::BaseObject () 29 { 30 this->className = NULL; 31 } 29 32 30 33 … … 32 35 \brief standard deconstructor 33 36 */ 34 BaseObject::~BaseObject () {} 35 37 BaseObject::~BaseObject () 38 { 39 delete []this->className; 40 } 36 41 37 42 void BaseObject::setClassName (char* className) 38 43 { 39 this->className = className; 44 this->className = new char[strlen(className)+1]; 45 strcpy(this->className, className); 40 46 } 41 47 -
orxonox/branches/levelloader/src/lib/lang/base_object.h
r3499 r3605 15 15 public: 16 16 BaseObject (); 17 ~BaseObject ();17 virtual ~BaseObject (); 18 18 19 19 void setClassName (char* className);
Note: See TracChangeset
for help on using the changeset viewer.