You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2010/02/21 02:00:16 UTC

svn commit: r912270 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/Message.cpp

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 );