- Timestamp:
- Jan 10, 2016, 1:54:11 PM (8 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/orxonox/interfaces/NotificationListener.cc
r10624 r11054 108 108 { 109 109 // Iterate through all NotificationListeners and notify them by calling the method they overloaded. 110 for( ObjectList<NotificationListener>::iterator it = ObjectList<NotificationListener>::begin(); it != ObjectList<NotificationListener>::end(); ++it)110 for(NotificationListener* listener : ObjectList<NotificationListener>()) 111 111 { 112 112 // If the notification is a message. 113 113 if(!isCommand) 114 it->registerNotification(message, sender, notificationMessageType::Value(messageType));114 listener->registerNotification(message, sender, notificationMessageType::Value(messageType)); 115 115 116 116 // If the notification is a command. … … 119 119 notificationCommand::Value command = str2Command(message); 120 120 if(command != notificationCommand::none) 121 it->executeCommand(command, sender);121 listener->executeCommand(command, sender); 122 122 } 123 123 }
Note: See TracChangeset
for help on using the changeset viewer.