Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7407 in orxonox.OLD for trunk/src/lib/shell/shell_command.cc


Ignore:
Timestamp:
Apr 27, 2006, 8:42:16 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: cloning the Completors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell_command.cc

    r7403 r7407  
    4646    this->executor->setName(commandName);
    4747
     48    for (unsigned int i = 0; i < this->executor->getParamCount(); i++)
     49      this->completors.push_back(new CompletorDefault(&this->executor->getDefaultValue(i)));
    4850    this->alias = NULL;
    4951
     
    6264    if (this->alias != NULL)
    6365      delete this->alias;
     66    while (!this->completors.empty())
     67    {
     68      delete this->completors.back();
     69      this->completors.pop_back();
     70    }
    6471    delete this->executor;
    6572  }
Note: See TracChangeset for help on using the changeset viewer.