Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7157


Ignore:
Timestamp:
Jul 21, 2010, 2:35:23 PM (14 years ago)
Author:
rgrieder
Message:

Using our own conversion functions.

Location:
code/branches/presentation3/src/modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/src/modules/overlays/GUIOverlay.cc

    r6799 r7157  
    3030
    3131#include <string>
    32 #include <sstream>
    3332
     33#include "util/Convert.h"
    3434#include "core/input/InputManager.h"
    3535#include "core/CoreIncludes.h"
     
    7373        if (this->isVisible())
    7474        {
    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));
    7876            GUIManager::getInstance().showGUIExtra(this->guiName_, str);
    7977
  • code/branches/presentation3/src/modules/questsystem/notifications/NotificationQueue.cc

    r7127 r7157  
    3434#include "NotificationQueue.h"
    3535
    36 #include <sstream>
    37 
     36#include "util/Convert.h"
    3837#include "core/CoreIncludes.h"
    3938#include "core/XMLPort.h"
     
    403402        std::string timeString = std::ctime(&time);
    404403        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));
    408405        container->name = "NotificationOverlay(" + timeString + ")&" + addressString;
    409406
Note: See TracChangeset for help on using the changeset viewer.