Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 2, 2015, 11:32:08 PM (8 years ago)
Author:
landauf
Message:

made mapEntry const& wherever possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/modules/notifications/NotificationManager.cc

    r10916 r10917  
    6969    {
    7070        // Destroys all Notifications.
    71         for(auto& mapEntry : this->allNotificationsList_)
     71        for(const auto& mapEntry : this->allNotificationsList_)
    7272            mapEntry.second->destroy();
    7373        this->allNotificationsList_.clear();
     
    152152        bool executed = false;
    153153        // 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.
    155155        {
    156156            const std::set<std::string>& set = mapEntry.second->getTargetsSet();
     
    187187
    188188        // 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.
    190190        {
    191191            const std::set<std::string>& set = mapEntry.second->getTargetsSet();
     
    345345
    346346        // 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_)
    348348        {
    349349            if(!bAll && set.find(mapEntry.second->getSender()) != set.end()) // Checks whether the listener has the sender of the current Notification as target.
Note: See TracChangeset for help on using the changeset viewer.