- Timestamp:
- Jan 10, 2016, 1:54:11 PM (9 years ago)
- Location:
- code/branches/cpp11_v3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v3
- Property svn:mergeinfo changed
-
code/branches/cpp11_v3/src/modules/tetris/TetrisScore.cc
r10624 r11054 56 56 RegisterObject(TetrisScore); 57 57 58 this->owner_ = 0;59 this->player_ = NULL;58 this->owner_ = nullptr; 59 this->player_ = nullptr; 60 60 } 61 61 … … 89 89 90 90 // If the owner is set. The owner being a Tetris game. 91 if (this->owner_ != NULL)91 if (this->owner_ != nullptr) 92 92 { 93 93 std::string score("0"); … … 101 101 { 102 102 // Save the name and score of each player as a string. 103 if (player_ != NULL)103 if (player_ != nullptr) 104 104 score = multi_cast<std::string>(this->owner_->getScore(player_)); 105 105 } … … 111 111 @brief 112 112 Is called when the owner changes. 113 Sets the owner to NULL, if it is not a pointer to a Tetris game.113 Sets the owner to nullptr, if it is not a pointer to a Tetris game. 114 114 */ 115 115 void TetrisScore::changedOwner() … … 117 117 SUPER(TetrisScore, changedOwner); 118 118 119 if (this->getOwner() != NULL&& this->getOwner()->getGametype())119 if (this->getOwner() != nullptr && this->getOwner()->getGametype()) 120 120 this->owner_ = orxonox_cast<Tetris*>(this->getOwner()->getGametype()); 121 121 else 122 this->owner_ = 0;122 this->owner_ = nullptr; 123 123 } 124 124 }
Note: See TracChangeset
for help on using the changeset viewer.