Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 26, 2009, 11:18:13 AM (14 years ago)
Author:
rgrieder
Message:

Uniform code-styling per file. As if I didn't know what to do

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/input/KeyBinder.cc

    r6417 r6422  
    291291        std::vector<std::string>& oldKeynames = this->allCommands_[button->bindingString_];
    292292        std::vector<std::string>::iterator it = std::find(oldKeynames.begin(), oldKeynames.end(), stream.str());
    293         if(it != oldKeynames.end())
    294         {
     293        if (it != oldKeynames.end())
    295294            oldKeynames.erase(it);
    296         }
    297295
    298296        if (!command.empty())
    299297        {
    300298            std::vector<std::string>& keynames = this->allCommands_[command];
    301             if( std::find(keynames.begin(), keynames.end(), stream.str()) == keynames.end())
    302             {
     299            if (std::find(keynames.begin(), keynames.end(), stream.str()) == keynames.end())
    303300                this->allCommands_[command].push_back(stream.str());
    304             }
    305301        }
    306302     }
     
    312308    const std::string& KeyBinder::getBinding(const std::string& commandName)
    313309    {
    314         if( this->allCommands_.find(commandName) != this->allCommands_.end())
     310        if (this->allCommands_.find(commandName) != this->allCommands_.end())
    315311        {
    316312            std::vector<std::string>& keynames = this->allCommands_[commandName];
     
    331327    const std::string& KeyBinder::getBinding(const std::string& commandName, unsigned int index)
    332328    {
    333         if( this->allCommands_.find(commandName) != this->allCommands_.end())
     329        if (this->allCommands_.find(commandName) != this->allCommands_.end())
    334330        {
    335331            std::vector<std::string>& keynames = this->allCommands_[commandName];
    336             if(index < keynames.size())
    337             {
     332            if (index < keynames.size())
    338333                return keynames[index];
    339             }
    340334
    341335            return BLANKSTRING;
     
    353347    unsigned int KeyBinder::getNumberOfBindings(const std::string& commandName)
    354348    {
    355         if( this->allCommands_.find(commandName) != this->allCommands_.end())
     349        if (this->allCommands_.find(commandName) != this->allCommands_.end())
    356350        {
    357351            std::vector<std::string>& keynames = this->allCommands_[commandName];
Note: See TracChangeset for help on using the changeset viewer.