activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r552856 - /activemq/activemq-cpp/trunk/src/main/activemq/connector/stomp/StompFrame.h
Date Tue, 03 Jul 2007 14:44:46 GMT
Author: tabish
Date: Tue Jul  3 07:44:45 2007
New Revision: 552856

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

Submitting optimized StompFrame

Modified:
    activemq/activemq-cpp/trunk/src/main/activemq/connector/stomp/StompFrame.h

Modified: activemq/activemq-cpp/trunk/src/main/activemq/connector/stomp/StompFrame.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/connector/stomp/StompFrame.h?view=diff&rev=552856&r1=552855&r2=552856
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/connector/stomp/StompFrame.h (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/connector/stomp/StompFrame.h Tue Jul  3
07:44:45 2007
@@ -123,7 +123,8 @@
             body.clear();
 
             // Copy data to internal buffer.
-            body.insert( body.end(), bytes, bytes + numBytes );
+            std::back_insert_iterator< std::vector<unsigned char> > iter( body
);
+            std::copy( bytes, bytes + numBytes, iter );
         }
 
     private:



Mime
View raw message