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/NotificationQueue.cc

    r7412 r7413  
    6969        // Initialize.
    7070        this->size_ = 0;
    71         this->tickTime_ = 0.0;
     71        this->tickTime_ = 0.0f;
    7272
    7373        // Sets the input values.
     
    7777        this->setDisplayTime(displayTime);
    7878
    79         //TODO: Destroy if registration fails?
    80 
    8179        // Register the NotificationQueue with the NotificationManager.
    8280        bool queueRegistered = NotificationManager::getInstance().registerQueue(this);
     
    8583        {
    8684            this->registered_ = false;
    87             COUT(1) << "Error: Notification Queue '" << this->getName() << "' could not be registered." << std::endl;
     85            COUT(1) << "Error: NotificationQueue '" << this->getName() << "' could not be registered." << std::endl;
    8886            return;
    8987        }
     
    9997            GUIManager::getInstance().getLuaState()->doString("NotificationLayer.removeQueue(\"" + this->getName() +  "\")");
    10098            NotificationManager::getInstance().unregisterQueue(this);
    101             COUT(1) << "Error: Notification Queue '" << this->getName() << "' could not be registered." << std::endl;
     99            COUT(1) << "Error: NotificationQueue '" << this->getName() << "' could not be registered." << std::endl;
    102100            return;
    103101        }
     
    358356        bool first = true;
    359357        // Iterate through the set of targets.
    360         for(std::set<std::string, NotificationListenerStringCompare>::const_iterator it = this->targets_.begin(); it != this->targets_.end(); it++)
     358        for(std::set<std::string, StringCompare>::const_iterator it = this->targets_.begin(); it != this->targets_.end(); it++)
    361359        {
    362360            if(!first)
Note: See TracChangeset for help on using the changeset viewer.