Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 11, 2010, 5:05:47 PM (14 years ago)
Author:
dafrick
Message:

Removing some TODO comments.
Better handling of duplicate name in Notificationlayer.lua.
Moving StringCompare object from NotificationListener to StringUtils.

File:
1 edited

Legend:

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

    r7403 r7413  
    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, NotificationListenerStringCompare> set = it->first->getTargetsSet();
     131            std::set<std::string, StringCompare> 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, NotificationListenerStringCompare> set = listener->getTargetsSet();
     212        std::set<std::string, StringCompare> 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.
     
    248248        assert(listener);
    249249
    250         //TODO: Make unsigned int.
    251250        unsigned int identifier = this->listenerList_.find(listener)->second;
    252251        std::multimap<std::time_t, Notification*>* map = this->notificationLists_.find(identifier)->second;
Note: See TracChangeset for help on using the changeset viewer.