Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 11, 2010, 8:30:17 PM (14 years ago)
Author:
rgrieder
Message:

Removed StringCompare again.

File:
1 edited

Legend:

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

    r7413 r7417  
    129129        for(std::map<NotificationListener*, unsigned int>::iterator it = this->listenerList_.begin(); it != this->listenerList_.end(); it++) // Iterate through all NotificationListeners.
    130130        {
    131             std::set<std::string, StringCompare> set = it->first->getTargetsSet();
     131            const std::set<std::string>& set = it->first->getTargetsSet();
    132132            bool bAll = set.find(NotificationManager::ALL) != set.end();
    133133            // If either the Notification has as sender 'all', the NotificationListener displays all Notifications or the NotificationListener has the sender of the Notification as target.
     
    210210        this->listenerList_[listener] = index; // Add the NotificationListener to the list of NotificationListeners.
    211211
    212         std::set<std::string, StringCompare> set = listener->getTargetsSet();
     212        const std::set<std::string>& set = listener->getTargetsSet();
    213213
    214214        // If all senders are the target of the NotificationListener, then the list of Notifications for that specific NotificationListener is the same as the list of all Notifications.
Note: See TracChangeset for help on using the changeset viewer.