- Timestamp:
- Sep 11, 2010, 5:05:47 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/notifications/NotificationQueue.cc
r7412 r7413 69 69 // Initialize. 70 70 this->size_ = 0; 71 this->tickTime_ = 0.0 ;71 this->tickTime_ = 0.0f; 72 72 73 73 // Sets the input values. … … 77 77 this->setDisplayTime(displayTime); 78 78 79 //TODO: Destroy if registration fails?80 81 79 // Register the NotificationQueue with the NotificationManager. 82 80 bool queueRegistered = NotificationManager::getInstance().registerQueue(this); … … 85 83 { 86 84 this->registered_ = false; 87 COUT(1) << "Error: Notification 85 COUT(1) << "Error: NotificationQueue '" << this->getName() << "' could not be registered." << std::endl; 88 86 return; 89 87 } … … 99 97 GUIManager::getInstance().getLuaState()->doString("NotificationLayer.removeQueue(\"" + this->getName() + "\")"); 100 98 NotificationManager::getInstance().unregisterQueue(this); 101 COUT(1) << "Error: Notification 99 COUT(1) << "Error: NotificationQueue '" << this->getName() << "' could not be registered." << std::endl; 102 100 return; 103 101 } … … 358 356 bool first = true; 359 357 // 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++) 361 359 { 362 360 if(!first)
Note: See TracChangeset
for help on using the changeset viewer.