activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r912270 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/Message.cpp
Date Sun, 21 Feb 2010 01:00:16 GMT
Author: tabish
Date: Sun Feb 21 01:00:16 2010
New Revision: 912270

URL: http://svn.apache.org/viewvc?rev=912270&view=rev
Log:
Fix a warning in the Message commands toString method.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/Message.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/Message.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/Message.cpp?rev=912270&r1=912269&r2=912270&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/Message.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/Message.cpp Sun Feb
21 01:00:16 2010
@@ -283,13 +283,14 @@
     stream << "BrokerInTime = " << this->getBrokerInTime();
     stream << ", ";
     stream << "BrokerOutTime = " << this->getBrokerOutTime();
-    stream << " }";
 
-    return stream.str();
     stream << " Value of ackHandler = " << ackHandler.get() << std::endl;
     stream << " Value of properties = " << this->properties.toString() <<
std::endl;
     stream << " Value of readOnlyBody = " << this->readOnlyBody << std::endl;
     stream << " Value of readOnlyProperties = " << this->readOnlyBody <<
std::endl;
+    stream << " }";
+
+    return stream.str();
 }
 
 ////////////////////////////////////////////////////////////////////////////////
@@ -842,7 +843,7 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-decaf::lang::Pointer<commands::Command> Message::visit( activemq::state::CommandVisitor*
visitor ) 
+decaf::lang::Pointer<commands::Command> Message::visit( activemq::state::CommandVisitor*
visitor )
     throw( activemq::exceptions::ActiveMQException ) {
 
     return visitor->processMessage( this );



Mime
View raw message