Changeset 7157 for code/branches/presentation3
- Timestamp:
- Jul 21, 2010, 2:35:23 PM (14 years ago)
- Location:
- code/branches/presentation3/src/modules
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/modules/overlays/GUIOverlay.cc
r6799 r7157 30 30 31 31 #include <string> 32 #include <sstream>33 32 33 #include "util/Convert.h" 34 34 #include "core/input/InputManager.h" 35 35 #include "core/CoreIncludes.h" … … 73 73 if (this->isVisible()) 74 74 { 75 std::ostringstream out; 76 out << reinterpret_cast<long>(this); 77 const std::string& str = out.str(); 75 const std::string& str = multi_cast<std::string>(reinterpret_cast<long>(this)); 78 76 GUIManager::getInstance().showGUIExtra(this->guiName_, str); 79 77 -
code/branches/presentation3/src/modules/questsystem/notifications/NotificationQueue.cc
r7127 r7157 34 34 #include "NotificationQueue.h" 35 35 36 #include <sstream> 37 36 #include "util/Convert.h" 38 37 #include "core/CoreIncludes.h" 39 38 #include "core/XMLPort.h" … … 403 402 std::string timeString = std::ctime(&time); 404 403 timeString.erase(timeString.length()-1); 405 std::ostringstream stream; 406 stream << reinterpret_cast<unsigned long>(notification); 407 const std::string& addressString = stream.str(); 404 const std::string& addressString = multi_cast<std::string>(reinterpret_cast<unsigned long>(notification)); 408 405 container->name = "NotificationOverlay(" + timeString + ")&" + addressString; 409 406
Note: See TracChangeset
for help on using the changeset viewer.