Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5172 in orxonox.OLD for trunk


Ignore:
Timestamp:
Sep 7, 2005, 2:30:11 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: minor bug-fix

Location:
trunk/src/lib/shell
Files:
2 edited

Legend:

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

    r5166 r5172  
    3333
    3434SHELL_COMMAND(clear, Shell, clear)->describe("Clears the shell from unwanted lines (empties all buffers)");
     35SHELL_COMMAND(deactivate, Shell, deactivate)->describe("Deactivates the Shell. (moves it into background)");
     36
    3537
    3638/**
  • trunk/src/lib/shell/shell_command.cc

    r5171 r5172  
    9999}
    100100
     101/**
     102 * searches for a CommandClass
     103 * @param className the name of the CommandClass
     104 * @returns the CommandClass if found, or a new CommandClass if not
     105 */
    101106ShellCommandClass* ShellCommandClass::getCommandClass(const char* className)
    102107{
     
    119124}
    120125
    121 
     126/**
     127 * initializes the CommandList (if it is NULL)
     128 */
    122129void ShellCommandClass::initCommandClassList()
    123130{
     
    211218    ShellCommandClass::initCommandClassList();
    212219
    213  const  ShellCommandClass* checkClass = ShellCommandClass::isRegistered(className);
    214 
    215   if (checkClass != NULL)
     220 const ShellCommandClass* checkClass = ShellCommandClass::isRegistered(className);
     221
     222 if (checkClass != NULL)
    216223  {
    217224    tIterator<ShellCommandBase>* iterator = checkClass->commandList->getIterator();
     
    236243  }
    237244}
    238 
    239 
    240245
    241246/**
     
    418423    tIterator<ShellCommandBase>* iterator = elemCL->commandList->getIterator();
    419424    const ShellCommandBase* elem = iterator->firstElement();
     425    while(elem != NULL)
    420426    {
    421427      PRINT(0)("  command:'%s' : params:%d: ", elem->getName(), elem->paramCount);
Note: See TracChangeset for help on using the changeset viewer.