From a741885ba5195ea1346a465280fe710f559d0c95 Mon Sep 17 00:00:00 2001 From: cascade Date: Wed, 18 Feb 2004 10:12:43 +0000 Subject: [PATCH] BUC5100,BUC5101 Transition on STL stringstream instead obsolete sstream. cxx, edl hxx cdl --- src/WOKAPI/WOKAPI_Session.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/WOKAPI/WOKAPI_Session.cxx b/src/WOKAPI/WOKAPI_Session.cxx index 4b8cf69..9004c64 100755 --- a/src/WOKAPI/WOKAPI_Session.cxx +++ b/src/WOKAPI/WOKAPI_Session.cxx @@ -5,6 +5,7 @@ #include +#include #include #include @@ -326,10 +327,10 @@ void WOKAPI_Session::GeneralFailure(const Handle(Standard_Failure)& ) } catch(Standard_Failure) { Handle(Standard_Failure) E = Standard_Failure::Caught(); - strstream astream; + Standard_SStream astream; astream << E << ends; ErrorMsg << "WOKAPI_Session::GeneralFailure" - << "Exception was raised : " << astream.str() << endm; + << "Exception was raised : " << GetSString(astream) << endm; ErrorMsg << "WOKAPI_Session::GeneralFailure" << "Could not recover session after Failure : Session is reinitialized" << endm; -- 2.39.5