From: Michal Voců Date: Mon, 4 Apr 2011 15:27:00 +0000 (+0000) Subject: use stringstream instead of deprecated strstream, also removes garbage from message... X-Git-Tag: glite-lb-client_R_5_0_4_3~11 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=0a916853de716f145ad6cee3d1e9fbb80e6f05e3;p=jra1mw.git use stringstream instead of deprecated strstream, also removes garbage from message text --- diff --git a/org.glite.lb.logger-msg/src/activemq_cpp_plugin.cpp b/org.glite.lb.logger-msg/src/activemq_cpp_plugin.cpp index 8d6385a..15efa86 100644 --- a/org.glite.lb.logger-msg/src/activemq_cpp_plugin.cpp +++ b/org.glite.lb.logger-msg/src/activemq_cpp_plugin.cpp @@ -44,7 +44,7 @@ extern "C" { #include #include -#include +#include #include #include @@ -121,7 +121,7 @@ OutputPlugin::createMessage(edg_wll_JobStat &state_out) cms::TextMessage *cms_msg = session->createTextMessage(); char *s; unsigned int i; - std::ostrstream body; + std::ostringstream body; body << "{"; /* jobid */ @@ -186,7 +186,7 @@ OutputPlugin::createMessage(edg_wll_JobStat &state_out) } body << "}"; - cms_msg->setText(body.str()); + cms_msg->setText(body.str().c_str()); cms_msg->setStringProperty("Content-type", "text/javascript"); return cms_msg;