Changeset 3300 for code/trunk/src/core/Shell.cc
- Timestamp:
- Jul 17, 2009, 11:53:35 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/core/Shell.cc
r3280 r3300 129 129 this->inputBuffer_->registerListener(this, &Shell::backspace, '\b', true); 130 130 this->inputBuffer_->registerListener(this, &Shell::deletechar, KeyCode::Delete); 131 this->inputBuffer_->registerListener(this, &Shell::exit, (char)27, true);131 this->inputBuffer_->registerListener(this, &Shell::exit, static_cast<char>(27), true); 132 132 this->inputBuffer_->registerListener(this, &Shell::cursor_right, KeyCode::Right); 133 133 this->inputBuffer_->registerListener(this, &Shell::cursor_left, KeyCode::Left); … … 149 149 Shell& instance = Shell::getInstance(); 150 150 151 for ( int i = instance.historyOffset_; i < (int)instance.commandHistory_.size(); ++i)151 for (unsigned int i = instance.historyOffset_; i < instance.commandHistory_.size(); ++i) 152 152 instance.addLine(instance.commandHistory_[i], -1); 153 for ( int i = 0; i < (int)instance.historyOffset_; ++i)153 for (unsigned int i = 0; i < instance.historyOffset_; ++i) 154 154 instance.addLine(instance.commandHistory_[i], -1); 155 155 }
Note: See TracChangeset
for help on using the changeset viewer.