From 0a916853de716f145ad6cee3d1e9fbb80e6f05e3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Voc=C5=AF?= Date: Mon, 4 Apr 2011 15:27:00 +0000 Subject: [PATCH] use stringstream instead of deprecated strstream, also removes garbage from message text --- org.glite.lb.logger-msg/src/activemq_cpp_plugin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 1.8.2.3