Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 21, 2016, 1:59:04 PM (9 years ago)
Author:
muemart
Message:

Fix some clang-tidy warnings.
Also, Serialise.h was doing some C-style casts that ended up being const casts. I moved those const casts as close to the source as possible and changed the loadAndIncrease functions to not do that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/pong/Pong.cc

    r11071 r11083  
    326326    PlayerInfo* Pong::getLeftPlayer() const
    327327    {
    328         if (this->bat_ != nullptr && this->bat_[0] != nullptr)
     328        if (this->bat_[0] != nullptr)
    329329            return this->bat_[0]->getPlayer();
    330330        else
     
    340340    PlayerInfo* Pong::getRightPlayer() const
    341341    {
    342         if (this->bat_ != nullptr && this->bat_[1] != nullptr)
     342        if (this->bat_[1] != nullptr)
    343343            return this->bat_[1]->getPlayer();
    344344        else
Note: See TracChangeset for help on using the changeset viewer.