Changeset 5227 in orxonox.OLD for trunk/src/util
- Timestamp:
- Sep 23, 2005, 11:24:18 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/loading/load_param.cc
r5226 r5227 77 77 strcpy(this->paramDesc->types[i], tmpTypeName); 78 78 79 //! @todo SWITCH CASE WITH l_[TYPE]_TYPE -> much faster 79 80 // default value description 80 81 if (!strcmp(tmpTypeName, l_INT_NAME)) … … 249 250 } 250 251 delete iterator; 252 delete this->paramList; 251 253 252 254 delete[] this->className; … … 311 313 { 312 314 delete iterator; 313 return enumParamDesc; 315 //return enumParamDesc; 316 return NULL; 314 317 } 315 318 enumParamDesc = iterator->nextElement(); … … 317 320 delete iterator; 318 321 319 this->paramList->add(new LoadParamDescription(paramName)); 320 return paramList->lastElement(); 322 LoadParamDescription* newParam = new LoadParamDescription(paramName); 323 324 this->paramList->add(newParam); 325 return newParam; 321 326 } 322 327
Note: See TracChangeset
for help on using the changeset viewer.