Changeset 10765 for code/branches/cpp11_v2/src/orxonox/LevelManager.cc
- Timestamp:
- Nov 4, 2015, 10:25:42 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/orxonox/LevelManager.cc
r10624 r10765 154 154 Get the currently active Level. 155 155 @return 156 Returns a pointer to the currently active level or NULLif there currently are no active Levels.156 Returns a pointer to the currently active level or nullptr if there currently are no active Levels. 157 157 */ 158 158 Level* LevelManager::getActiveLevel() … … 218 218 { 219 219 if(index >= this->availableLevels_.size()) 220 return NULL;220 return nullptr; 221 221 222 222 // If this index directly follows the last we can optimize a lot. … … 272 272 if (it->find("old/") != 0) 273 273 { 274 LevelInfoItem* info = NULL;274 LevelInfoItem* info = nullptr; 275 275 276 276 // Load the LevelInfo object from the level file. … … 286 286 Loader::getInstance().unload(&file); 287 287 288 if(info == NULL)288 if(info == nullptr) 289 289 { 290 290 // Create a default LevelInfoItem object that merely contains the name
Note: See TracChangeset
for help on using the changeset viewer.