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/05/21 01:13:45 UTC
svn commit: r946818 - in
/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io:
ByteArrayOutputStream.cpp ByteArrayOutputStream.h
Author: tabish
Date: Thu May 20 23:13:45 2010
New Revision: 946818
URL: http://svn.apache.org/viewvc?rev=946818&view=rev
Log:
Update the interface for this class.
Modified:
activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/ByteArrayOutputStream.cpp
activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/ByteArrayOutputStream.h
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/ByteArrayOutputStream.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/ByteArrayOutputStream.cpp?rev=946818&r1=946817&r2=946818&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/ByteArrayOutputStream.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/ByteArrayOutputStream.cpp Thu May 20 23:13:45 2010
@@ -55,10 +55,10 @@ ByteArrayOutputStream::~ByteArrayOutputS
}
////////////////////////////////////////////////////////////////////////////////
-std::pair<const unsigned char*, int> ByteArrayOutputStream::toByteArray() const {
+std::pair<unsigned char*, int> ByteArrayOutputStream::toByteArray() const {
if( this->count == 0 ) {
- return std::pair<const unsigned char*, int>( NULL, 0 );
+ return std::pair<unsigned char*, int>( NULL, 0 );
}
unsigned char* temp = new unsigned char[this->count];
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/ByteArrayOutputStream.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/ByteArrayOutputStream.h?rev=946818&r1=946817&r2=946818&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/ByteArrayOutputStream.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/ByteArrayOutputStream.h Thu May 20 23:13:45 2010
@@ -81,7 +81,7 @@ namespace io{
*
* @return an STL pair containing the copied array and its size.
*/
- std::pair<const unsigned char*, int> toByteArray() const;
+ std::pair<unsigned char*, int> toByteArray() const;
/**
* Gets the current count of bytes written into this ByteArrayOutputStream.