Changeset 4729 in orxonox.OLD for orxonox/trunk/src/util/loading/factory.cc
- Timestamp:
- Jun 29, 2005, 12:05:16 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/loading/factory.cc
r4725 r4729 35 35 this->setName(factoryName); 36 36 37 this->factoryName = NULL;38 this->setFactoryName(factoryName);39 37 next = NULL; 40 38 … … 54 52 if (this->next) 55 53 delete this->next; 56 57 if (this->factoryName)58 delete []this->factoryName;59 54 } 60 61 /**62 \brief sets the name of this factory63 */64 void Factory::setFactoryName(const char* factoryName)65 {66 if (this->factoryName)67 delete this->factoryName;68 this->factoryName = new char[strlen(factoryName)+1];69 strcpy(this->factoryName, factoryName);70 }71 72 55 73 56 /**
Note: See TracChangeset
for help on using the changeset viewer.