Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5147 in orxonox.OLD for trunk/src/util


Ignore:
Timestamp:
Aug 27, 2005, 2:51:14 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: flush

Location:
trunk/src/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/shell_command.cc

    r5146 r5147  
    200200      if (paramBegin == NULL)
    201201        paramBegin = commandBegin + strlen(elem->getName());
     202      while (*paramBegin == ' ')
     203        paramBegin++;
    202204
    203205      if (objectPointer != NULL && paramBegin != NULL)
  • trunk/src/util/shell_command.h

    r5146 r5147  
    7070#define ShellCommandExecute1(t1) \
    7171   else if (this->paramCount == 1 && this->parameters[0] == t1##_PARAM) \
    72        (dynamic_cast<T*>(object)->*functionPointer_1_##t1)(0)//t1##_FUNC(parameters, 0))
     72       (dynamic_cast<T*>(object)->*functionPointer_1_##t1)(t1##_FUNC(parameters, 0))
    7373
    7474
     
    159159    virtual void executeCommand (BaseObject* object, const char* parameters)
    160160    {
    161       SubString params(parameters, ',');
     161      if (parameters != NULL)
     162        SubString params(parameters, ',');
    162163#define FUNCTOR_LIST(x) ShellCommandExecute ## x
    163164//#include "functor_list.h"
Note: See TracChangeset for help on using the changeset viewer.