From: Mikko Rasa Date: Sat, 1 Dec 2012 09:55:16 +0000 (+0200) Subject: Add the target type to lexical_cast invocations X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=a50eef72fac4b253bd014a32ec43b90e990b5784;p=libs%2Fgui.git Add the target type to lexical_cast invocations --- diff --git a/source/graphics/display.cpp b/source/graphics/display.cpp index da036a1..588d492 100644 --- a/source/graphics/display.cpp +++ b/source/graphics/display.cpp @@ -24,7 +24,7 @@ int x_error_handler(Display *display, XErrorEvent *event) char err[128]; XGetErrorText(display, event->error_code, err, sizeof(err)); - string request_code = Msp::lexical_cast(static_cast(event->request_code)); + string request_code = Msp::lexical_cast(event->request_code); char req[128]; XGetErrorDatabaseText(display, "XRequest", request_code.c_str(), request_code.c_str(), req, sizeof(req)); diff --git a/source/input/control.cpp b/source/input/control.cpp index eee0f15..f3f1919 100644 --- a/source/input/control.cpp +++ b/source/input/control.cpp @@ -2,6 +2,8 @@ #include "control.h" #include "device.h" +using namespace std; + namespace Msp { namespace Input { @@ -28,7 +30,7 @@ std::string ControlSource::str() const else if(type==NONE) return "None"; - return lexical_cast(index); + return lexical_cast(index); }