Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7401 in orxonox.OLD for trunk/src/lib/shell


Ignore:
Timestamp:
Apr 27, 2006, 4:49:31 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: small fixes

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

Legend:

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

    r7399 r7401  
    9090      std::vector<ShellCommand*>::iterator cmd;
    9191      for (cmd = cmdClass->commandList.begin(); cmd < cmdClass->commandList.end(); cmd++)
    92       {
    9392        if (commandName == (*cmd)->getName())
    94         {
    9593          delete (*cmd);
    96         }
    97       }
    9894    }
    9995  }
     
    166162            return true;
    167163          }
    168           /// TODO CHECK FOR STATIC functions.
    169164        }
    170165      }
     
    232227
    233228  /**
    234    * lets a command be described
     229   * @brief lets a command be described
    235230   * @param description the description of the Given command
    236231   */
     
    289284
    290285  /**
    291    * prints out nice information about the Shells Commands
     286   * @brief prints out nice information about the Shells Commands
    292287   */
    293288  void ShellCommand::debug()
     
    314309
    315310  /**
    316    * converts a Parameter to a String
     311   * @brief converts a Parameter to a String
    317312   * @param parameter the Parameter we have.
    318313   * @returns the Name of the Parameter at Hand
    319314   */
    320   const char* ShellCommand::paramToString(long parameter)
     315  const std::string& ShellCommand::paramToString(long parameter)
    321316  {
    322317    return MultiType::MultiTypeToString((MT_Type)parameter);
  • trunk/src/lib/shell/shell_command.h

    r7398 r7401  
    8282
    8383    static bool isRegistered(const std::string& commandName, const std::string& className);
    84     static const char* paramToString(long parameter);
     84    static const std::string& paramToString(long parameter);
    8585
    8686  private:
Note: See TracChangeset for help on using the changeset viewer.