activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r509183 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQTextMessage.cpp
Date Mon, 19 Feb 2007 12:39:56 GMT
Author: tabish
Date: Mon Feb 19 04:39:56 2007
New Revision: 509183

URL: http://svn.apache.org/viewvc?view=rev&rev=509183
Log:
http://issues.apache.org/activemq/browse/AMQCPP-30

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQTextMessage.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQTextMessage.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQTextMessage.cpp?view=diff&rev=509183&r1=509182&r2=509183
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQTextMessage.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQTextMessage.cpp
Mon Feb 19 04:39:56 2007
@@ -39,7 +39,7 @@
 ////////////////////////////////////////////////////////////////////////////////
 unsigned char ActiveMQTextMessage::getDataStructureType() const
 {
-    return ActiveMQTextMessage::ID_ACTIVEMQTEXTMESSAGE; 
+    return ActiveMQTextMessage::ID_ACTIVEMQTEXTMESSAGE;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
@@ -49,8 +49,8 @@
         if( getContent().size() < 4 ) {
             return "";
         }
-        
-        return std::string( (const char*)&getContent()[4], getContent().size()-4 ); 
+
+        return std::string( (const char*)&getContent()[4], getContent().size()-4 );
     }
     AMQ_CATCH_RETHROW( exceptions::ActiveMQException )
     AMQ_CATCHALL_THROW( exceptions::ActiveMQException )
@@ -60,10 +60,6 @@
 void ActiveMQTextMessage::setText( const char* msg ) throw( cms::CMSException ) {
     try{
         setText( std::string(msg) );
-        /*size_t length = strlen( msg );
-        for( size_t i = 0; i < length; ++i ){
-            getContent().push_back( msg[i] );
-        }*/
     }
     AMQ_CATCH_RETHROW( exceptions::ActiveMQException )
     AMQ_CATCHALL_THROW( exceptions::ActiveMQException )
@@ -76,13 +72,9 @@
         content.clear();
         io::ByteArrayOutputStream bos( content );
         io::DataOutputStream dos( &bos );
-        
+
         dos.writeInt( msg.length() );
         dos.write( (const unsigned char*)msg.c_str(), msg.length() );
-
-        /*for( size_t i = 0; i < msg.length(); ++i ){
-            getContent().push_back( msg[i] );
-        }*/
     }
     AMQ_CATCH_RETHROW( exceptions::ActiveMQException )
     AMQ_CATCHALL_THROW( exceptions::ActiveMQException )



Mime
View raw message