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/LevelManager.cc

    r10624 r10765  
    154154        Get the currently active Level.
    155155    @return
    156         Returns a pointer to the currently active level or NULL if there currently are no active Levels.
     156        Returns a pointer to the currently active level or nullptr if there currently are no active Levels.
    157157    */
    158158    Level* LevelManager::getActiveLevel()
     
    218218    {
    219219        if(index >= this->availableLevels_.size())
    220             return NULL;
     220            return nullptr;
    221221
    222222        // If this index directly follows the last we can optimize a lot.
     
    272272            if (it->find("old/") != 0)
    273273            {
    274                 LevelInfoItem* info = NULL;
     274                LevelInfoItem* info = nullptr;
    275275
    276276                // Load the LevelInfo object from the level file.
     
    286286                Loader::getInstance().unload(&file);
    287287
    288                 if(info == NULL)
     288                if(info == nullptr)
    289289                {
    290290                    // Create a default LevelInfoItem object that merely contains the name
Note: See TracChangeset for help on using the changeset viewer.