Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

replace 'NULL' by 'nullptr'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/orxonox/gametypes/Gametype.cc

    r10624 r10765  
    9292                this->gtinfo_->destroy();
    9393
    94             ModifyConsoleCommand(__CC_addBots_name).setObject(NULL);
    95             ModifyConsoleCommand(__CC_killBots_name).setObject(NULL);
     94            ModifyConsoleCommand(__CC_addBots_name).setObject(nullptr);
     95            ModifyConsoleCommand(__CC_killBots_name).setObject(nullptr);
    9696        }
    9797    }
     
    337337        {
    338338            // Fallback spawn point if there is no active one, choose a random one.
    339             SpawnPoint* fallbackSpawnPoint = NULL;
     339            SpawnPoint* fallbackSpawnPoint = nullptr;
    340340            unsigned int randomspawn = static_cast<unsigned int>(rnd(static_cast<float>(this->spawnpoints_.size())));
    341341            unsigned int index = 0;
     
    346346                    fallbackSpawnPoint = (*it);
    347347
    348                 if (*it != NULL && (*it)->isActive())
     348                if (*it != nullptr && (*it)->isActive())
    349349                    activeSpawnPoints.push_back(*it);
    350350
     
    552552        }
    553553
    554         return NULL;
     554        return nullptr;
    555555    }
    556556
     
    558558    {
    559559        // find correct memento state
    560         GametypeMementoState* state = NULL;
     560        GametypeMementoState* state = nullptr;
    561561        for (size_t i = 0; i < states.size(); ++i)
    562562        {
     
    570570
    571571        // find correct scene
    572         Scene* scene = NULL;
     572        Scene* scene = nullptr;
    573573        for (ObjectList<Scene>::iterator it = ObjectList<Scene>::begin(); it != ObjectList<Scene>::end(); ++it)
    574574        {
Note: See TracChangeset for help on using the changeset viewer.