Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 6, 2015, 10:54:34 PM (10 years ago)
Author:
landauf
Message:

replace '0' by 'nullptr'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/orxonox/worldentities/pawns/Pawn.cc

    r10650 r10768  
    7676        this->reloadWaitCountdown_ = 0;
    7777
    78         this->lastHitOriginator_ = 0;
     78        this->lastHitOriginator_ = nullptr;
    7979
    8080        // set damage multiplier to default value 1, meaning nominal damage
     
    9191        }
    9292        else
    93             this->weaponSystem_ = 0;
     93            this->weaponSystem_ = nullptr;
    9494
    9595        this->setRadarObjectColour(ColourValue::Red);
     
    109109        else
    110110        {
    111             this->explosionSound_ = 0;
     111            this->explosionSound_ = nullptr;
    112112        }
    113113    }
     
    345345                    {
    346346                        // delete the AIController // <-- TODO: delete? nothing is deleted here... should we delete the controller?
    347                         slave->setControllableEntity(0);
     347                        slave->setControllableEntity(nullptr);
    348348
    349349                        // set a new master within the formation
     
    509509            return this->weaponSystem_->getWeaponSlot(index);
    510510        else
    511             return 0;
     511            return nullptr;
    512512    }
    513513
     
    523523            return this->weaponSystem_->getWeaponSet(index);
    524524        else
    525             return 0;
     525            return nullptr;
    526526    }
    527527
     
    551551            return this->weaponSystem_->getWeaponPack(index);
    552552        else
    553             return 0;
     553            return nullptr;
    554554    }
    555555
     
    594594                return it->getController();
    595595        }
    596         return 0;
     596        return nullptr;
    597597    }
    598598
Note: See TracChangeset for help on using the changeset viewer.