Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Apr 27, 2006, 4:08:46 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: Aliases better

File:
1 edited

Legend:

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

    r7394 r7397  
    162162    {
    163163      // CHECK FOR ALIAS
    164       std::vector<ShellCommandAlias*>::iterator alias;
    165       for (alias = ShellCommandAlias::aliasList.begin(); alias != ShellCommandAlias::aliasList.end(); alias++ )
     164      std::vector<ShellCommandAlias*>::const_iterator alias;
     165      for (alias = ShellCommandAlias::getAliases().begin(); alias != ShellCommandAlias::getAliases().end(); alias++ )
    166166      {
    167167        if (inputSplits.getString(0) == (*alias)->getName() && (*alias)->getCommand() != NULL &&
     
    271271    {
    272272      ShellCommandAlias* aliasCMD = new ShellCommandAlias(alias, this);
    273       ShellCommandAlias::aliasList.push_back(aliasCMD);
    274273      this->alias = aliasCMD;
    275274    }
     
    333332
    334333
     334  /**
     335   * @param aliasName the name of the Alias
     336   * @param command the Command, to associate this alias with
     337   */
    335338  ShellCommandAlias::ShellCommandAlias(const std::string& aliasName, ShellCommand* command)
    336339  {
Note: See TracChangeset for help on using the changeset viewer.