Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4729 in orxonox.OLD for orxonox/trunk/src/util/loading/factory.cc


Ignore:
Timestamp:
Jun 29, 2005, 12:05:16 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: factory-fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/util/loading/factory.cc

    r4725 r4729  
    3535  this->setName(factoryName);
    3636
    37   this->factoryName = NULL;
    38   this->setFactoryName(factoryName);
    3937  next = NULL;
    4038
     
    5452  if (this->next)
    5553    delete this->next;
    56 
    57   if (this->factoryName)
    58     delete []this->factoryName;
    5954}
    60 
    61 /**
    62    \brief sets the name of this factory
    63 */
    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 
    7255
    7356/**
Note: See TracChangeset for help on using the changeset viewer.