Changeset 10765 for code/branches/cpp11_v2/src/modules/notifications
- Timestamp:
- Nov 4, 2015, 10:25:42 PM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/modules/notifications
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/notifications/NotificationDispatcher.cc
r10624 r10765 177 177 178 178 PlayerTrigger* pTrigger = orxonox_cast<PlayerTrigger*>(trigger); 179 PlayerInfo* player = NULL;179 PlayerInfo* player = nullptr; 180 180 181 181 // If the trigger is a PlayerTrigger. 182 if(pTrigger != NULL)182 if(pTrigger != nullptr) 183 183 { 184 184 if(!pTrigger->isForPlayer()) // The PlayerTrigger is not exclusively for Pawns which means we cannot extract one. … … 190 190 return false; 191 191 192 if(player == NULL)192 if(player == nullptr) 193 193 { 194 194 orxout(verbose, context::notifications) << "The NotificationDispatcher was triggered by an entity other than a Pawn. (" << trigger->getIdentifier()->getName() << ")" << endl; -
code/branches/cpp11_v2/src/modules/notifications/NotificationManager.cc
r10624 r10765 334 334 // If all senders are the target of the NotificationQueue, then the list of Notifications for that specific NotificationQueue is the same as the list of all Notifications. 335 335 bool bAll = set.find(NotificationListener::ALL) != set.end(); 336 std::multimap<std::time_t, Notification*>* map = NULL;336 std::multimap<std::time_t, Notification*>* map = nullptr; 337 337 if(bAll) 338 338 this->notificationLists_[queue->getName()] = &this->allNotificationsList_; … … 395 395 The name of the NotificationQueue. 396 396 @return 397 Returns a pointer to the NotificationQueue with the input name. Returns NULLif no NotificationQueue with such a name exists.397 Returns a pointer to the NotificationQueue with the input name. Returns nullptr if no NotificationQueue with such a name exists. 398 398 */ 399 399 NotificationQueue* NotificationManager::getQueue(const std::string & name) 400 400 { 401 401 std::map<const std::string, NotificationQueue*>::iterator it = this->queues_.find(name); 402 // Returns NULLif no such NotificationQueue exists.402 // Returns nullptr if no such NotificationQueue exists. 403 403 if(it == this->queues_.end()) 404 return NULL;404 return nullptr; 405 405 406 406 return (*it).second; -
code/branches/cpp11_v2/src/modules/notifications/NotificationQueueCEGUI.cc
r10258 r10765 290 290 The name of the NotificationQueueCEGUI to be got. 291 291 @return 292 Returns a pointer to the NotificationQueueCEGUI, or NULLif it doesn't exist.292 Returns a pointer to the NotificationQueueCEGUI, or nullptr if it doesn't exist. 293 293 */ 294 294 /*static*/ NotificationQueueCEGUI* NotificationQueueCEGUI::getQueue(const std::string& name) 295 295 { 296 296 NotificationQueue* queue = NotificationManager::getInstance().getQueue(name); 297 if(queue == NULL|| !queue->isA(Class(NotificationQueueCEGUI)))298 return NULL;297 if(queue == nullptr || !queue->isA(Class(NotificationQueueCEGUI))) 298 return nullptr; 299 299 return static_cast<NotificationQueueCEGUI*>(queue); 300 300 }
Note: See TracChangeset
for help on using the changeset viewer.