Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7729 in orxonox.OLD for trunk/src/lib/shell/shell_input.cc


Ignore:
Timestamp:
May 19, 2006, 3:07:09 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: better debug names
As DEBUG and ERROR are already given to windows.h and other files:
DEBUG is renamed to DEBUG_LEVEL
and all
NO, ERR, WARN, INFO, DEBUG, vDEBUG
are renamed to
ORX_NONE, ORX_ERR, ORX_WARN, ORX_INFO, ORX_DEBUG, ORX_vDEBUG

File:
1 edited

Legend:

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

    r7676 r7729  
    4444
    4545    this->inputLine = "";
    46     this->historyIT = this->history.begin();
     46    this->historyIT = ShellInput::history.begin();
    4747    this->setHistoryLength(50);
    4848    this->historyScrolling = false;
     
    6565  }
    6666
     67  std::list<std::string> ShellInput::history;
     68
    6769  /**
    6870   * @brief standard deconstructor
    6971   */
    7072  ShellInput::~ShellInput ()
    71 {}
     73  {}
    7274
    7375  /**
     
    173175
    174176    // adding the new Command to the History
    175     this->history.push_back(this->inputLine);
     177    if (history.back() != this->inputLine)
     178      this->history.push_back(this->inputLine);
    176179    if (this->history.size() > this->historyLength)
    177180    {
Note: See TracChangeset for help on using the changeset viewer.