Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5659 in orxonox.OLD for trunk/src/lib/util/executor


Ignore:
Timestamp:
Nov 20, 2005, 11:31:18 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: valgrind sweep - no more Use of Uninitialized Value in MultiType

Location:
trunk/src/lib/util/executor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/util/executor/executor.cc

    r5641 r5659  
    5959  // What Parameters we have got
    6060  for (unsigned int i = 0; i < paramCount; i++)
    61     this->defaultValue[i].setType(va_arg(parameterList, int));
     61  {
     62    int type = va_arg(parameterList, int);
     63    this->defaultValue[i].setType(type);
     64  }
    6265}
    6366
     
    7982  executor->defaultValue = new MultiType[this->paramCount];
    8083  for (unsigned int i = 0; i < this->paramCount; i++)
    81     executor->defaultValue[i] = this->defaultValue[i];
     84  {
     85    executor->defaultValue[i] =  this->defaultValue[i];
     86//    printf("1: %s 2: %s\n", MultiType::MultiTypeToString(this->defaultValue[i].getType()),  MultiType::MultiTypeToString(executor->defaultValue[i].getType()));
     87  }
    8288}
    8389
  • trunk/src/lib/util/executor/executor_specials.h

    r5652 r5659  
    2828     */
    2929    ExecutorXML(void(T::*function)(const TiXmlElement*), const TiXmlElement* root, const char* paramName)
    30       : Executor(1)
     30      : Executor(1, MT_EXT1)
    3131    {
    3232      PRINTF(4)("Loading %s from XML-element %p\n", paramName, root);
Note: See TracChangeset for help on using the changeset viewer.