Changeset 10917 for code/branches/cpp11_v2/src/modules/notifications
- Timestamp:
- Dec 2, 2015, 11:32:08 PM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/modules/notifications
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/notifications/NotificationManager.cc
r10916 r10917 69 69 { 70 70 // Destroys all Notifications. 71 for( auto& mapEntry : this->allNotificationsList_)71 for(const auto& mapEntry : this->allNotificationsList_) 72 72 mapEntry.second->destroy(); 73 73 this->allNotificationsList_.clear(); … … 152 152 bool executed = false; 153 153 // Clear all NotificationQueues that have the input sender as target. 154 for( auto& mapEntry : this->queues_) // Iterate through all NotificationQueues.154 for(const auto& mapEntry : this->queues_) // Iterate through all NotificationQueues. 155 155 { 156 156 const std::set<std::string>& set = mapEntry.second->getTargetsSet(); … … 187 187 188 188 // Insert the Notification in all NotificationQueues that have its sender as target. 189 for( auto& mapEntry : this->queues_) // Iterate through all NotificationQueues.189 for(const auto& mapEntry : this->queues_) // Iterate through all NotificationQueues. 190 190 { 191 191 const std::set<std::string>& set = mapEntry.second->getTargetsSet(); … … 345 345 346 346 // Iterate through all Notifications to determine whether any of them should belong to the newly registered NotificationQueue. 347 for( auto& mapEntry : this->allNotificationsList_)347 for(const auto& mapEntry : this->allNotificationsList_) 348 348 { 349 349 if(!bAll && set.find(mapEntry.second->getSender()) != set.end()) // Checks whether the listener has the sender of the current Notification as target. -
code/branches/cpp11_v2/src/modules/notifications/NotificationQueue.cc
r10916 r10917 206 206 { 207 207 // Add all Notifications that have been created after this NotificationQueue was created. 208 for( auto& mapEntry : *notifications)208 for(const auto& mapEntry : *notifications) 209 209 { 210 210 if(mapEntry.first >= this->creationTime_)
Note: See TracChangeset
for help on using the changeset viewer.