activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r946818 - in /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io: ByteArrayOutputStream.cpp ByteArrayOutputStream.h
Date Thu, 20 May 2010 23:13:45 GMT
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.



Mime
View raw message