Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 4, 2015, 10:25:42 PM (10 years ago)
Author:
landauf
Message:

replace 'NULL' by 'nullptr'

Location:
code/branches/cpp11_v2/src/modules/dodgerace
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/modules/dodgerace/DodgeRace.cc

    r10624 r10765  
    6767    {
    6868        level++;
    69         if (getPlayer() != NULL)
     69        if (getPlayer() != nullptr)
    7070        {
    7171            for (int i = 0; i < 7; i++)
     
    8585    void DodgeRace::tick(float dt)
    8686    {
    87         if (getPlayer() != NULL)
     87        if (getPlayer() != nullptr)
    8888        {
    8989            currentPosition = getPlayer()->getWorldPosition().x;
     
    134134    DodgeRaceShip* DodgeRace::getPlayer()
    135135    {
    136         if (player == NULL)
     136        if (player == nullptr)
    137137        {
    138138            for (ObjectList<DodgeRaceShip>::iterator it = ObjectList<DodgeRaceShip>::begin(); it != ObjectList<DodgeRaceShip>::end(); ++it)
     
    173173        this->bForceSpawn_ = false;
    174174
    175         if (this->center_ == NULL)  // abandon mission!
     175        if (this->center_ == nullptr)  // abandon mission!
    176176        {
    177177            orxout(internal_error) << "DodgeRace: No Centerpoint specified." << endl;
  • code/branches/cpp11_v2/src/modules/dodgerace/DodgeRaceCenterPoint.cc

    r10624 r10765  
    5656    void DodgeRaceCenterPoint::checkGametype()
    5757    {
    58         if (this->getGametype() != NULL && this->getGametype()->isA(Class(DodgeRace)))
     58        if (this->getGametype() != nullptr && this->getGametype()->isA(Class(DodgeRace)))
    5959        {
    6060            DodgeRace* DodgeRaceGametype = orxonox_cast<DodgeRace*>(this->getGametype());
  • code/branches/cpp11_v2/src/modules/dodgerace/DodgeRaceShip.cc

    r10624 r10765  
    9191        // Camera
    9292        Camera* camera = this->getCamera();
    93         if (camera != NULL)
     93        if (camera != nullptr)
    9494        {
    9595            // camera->setPosition(Vector3(-pos.z, -posforeward, 0));
     
    152152    DodgeRace* DodgeRaceShip::getGame()
    153153    {
    154         if (game == NULL)
     154        if (game == nullptr)
    155155        {
    156156            for (ObjectList<DodgeRace>::iterator it = ObjectList<DodgeRace>::begin(); it != ObjectList<DodgeRace>::end(); ++it)
Note: See TracChangeset for help on using the changeset viewer.