Changeset 3301 for code/trunk/src/orxonox/overlays/notifications
- Timestamp:
- Jul 18, 2009, 4:03:59 PM (15 years ago)
- Location:
- code/trunk/src/orxonox/overlays/notifications
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/overlays/notifications/NotificationOverlay.cc
r3196 r3301 129 129 std::string NotificationOverlay::clipMessage(const std::string & message) 130 130 { 131 if(message.length() <= (unsigned int)this->queue_->getNotificationLength()) //!< If the message is not too long.131 if(message.length() <= static_cast<unsigned int>(this->queue_->getNotificationLength())) //!< If the message is not too long. 132 132 return message; 133 133 return message.substr(0, this->queue_->getNotificationLength()); -
code/trunk/src/orxonox/overlays/notifications/NotificationQueue.cc
r3196 r3301 398 398 timeString.erase(timeString.length()-1); 399 399 std::ostringstream stream; 400 stream << (unsigned long)notification;400 stream << reinterpret_cast<unsigned long>(notification); 401 401 std::string addressString = stream.str() ; 402 402 container->name = "NotificationOverlay(" + timeString + ")&" + addressString;
Note: See TracChangeset
for help on using the changeset viewer.