Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 17, 2009, 11:53:35 PM (15 years ago)
Author:
rgrieder
Message:

Found a few more C-Style casts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/Shell.cc

    r3280 r3300  
    129129        this->inputBuffer_->registerListener(this, &Shell::backspace, '\b', true);
    130130        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);
    132132        this->inputBuffer_->registerListener(this, &Shell::cursor_right, KeyCode::Right);
    133133        this->inputBuffer_->registerListener(this, &Shell::cursor_left, KeyCode::Left);
     
    149149        Shell& instance = Shell::getInstance();
    150150
    151         for (int i = instance.historyOffset_; i < (int)instance.commandHistory_.size(); ++i)
     151        for (unsigned int i = instance.historyOffset_; i < instance.commandHistory_.size(); ++i)
    152152            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)
    154154            instance.addLine(instance.commandHistory_[i], -1);
    155155    }
Note: See TracChangeset for help on using the changeset viewer.