Changeset 5227 in orxonox.OLD
- Timestamp:
- Sep 23, 2005, 11:24:18 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell.cc
r5209 r5227 82 82 { 83 83 // delete the displayable Buffers 84 for ( int i = 0; i < this->bufferDisplaySize; i++)84 for (unsigned int i = 0; i < this->bufferDisplaySize; i++) 85 85 delete this->bufferText[i]; 86 86 delete[] this->bufferText; … … 106 106 107 107 ShellBuffer::getInstance()->getBufferIterator()->lastElement(); 108 for ( int i = 0; i < this->bufferDisplaySize; i++)108 for (unsigned int i = 0; i < this->bufferDisplaySize; i++) 109 109 this->bufferText[i]->setText(ShellBuffer::getInstance()->getBufferIterator()->prevElement(), true); 110 110 } -
trunk/src/orxonox.cc
r5226 r5227 177 177 178 178 // initialize everything 179 SDL_Init SubSystem(SDL_INIT_TIMER);179 SDL_Init(SDL_INIT_TIMER); 180 180 if( initResources () == -1) return -1; 181 181 if( initVideo() == -1) return -1; -
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.