activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nmitt...@apache.org
Subject svn commit: r508984 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageMarshaller.cpp
Date Sun, 18 Feb 2007 20:34:31 GMT
Author: nmittler
Date: Sun Feb 18 12:34:31 2007
New Revision: 508984

URL: http://svn.apache.org/viewvc?view=rev&rev=508984
Log:
[AMQCPP-30] changing two writes in looseMarshal to writeBoolean

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageMarshaller.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageMarshaller.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageMarshaller.cpp?view=diff&rev=508984&r1=508983&r2=508984
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageMarshaller.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/marshal/v2/MessageMarshaller.cpp
Sun Feb 18 12:34:31 2007
@@ -243,12 +243,12 @@
     looseMarshalNestedObject( wireFormat, info->getReplyTo(), dataOut );
     looseMarshalLong( wireFormat, info->getTimestamp(), dataOut );
     looseMarshalString( info->getType(), dataOut );
-    dataOut->write( info->getContent().size() != 0 );
+    dataOut->writeBoolean( info->getContent().size() != 0 );
     if( info->getContent().size() != 0 ) {
         dataOut->writeInt( (int)info->getContent().size() );
         dataOut->write( (const unsigned char*)(&info->getContent()[0]), (int)info->getContent().size()
);
     }
-    dataOut->write( info->getMarshalledProperties().size() != 0 );
+    dataOut->writeBoolean( info->getMarshalledProperties().size() != 0 );
     if( info->getMarshalledProperties().size() != 0 ) {
         dataOut->writeInt( (int)info->getMarshalledProperties().size() );
         dataOut->write( (const unsigned char*)(&info->getMarshalledProperties()[0]),
(int)info->getMarshalledProperties().size() );



Mime
View raw message