activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r765714 - in /activemq/activemq-cpp/branches/activemq-cpp-2.x/src/test: activemq/connector/openwire/utils/OpenwireStringSupportTest.cpp decaf/io/DataInputStreamTest.cpp
Date Thu, 16 Apr 2009 18:30:15 GMT
Author: tabish
Date: Thu Apr 16 18:30:15 2009
New Revision: 765714

URL: http://svn.apache.org/viewvc?rev=765714&view=rev
Log:
Fix an uninitialized variable in the tests, gets rid of a warning on the windows build.  

Modified:
    activemq/activemq-cpp/branches/activemq-cpp-2.x/src/test/activemq/connector/openwire/utils/OpenwireStringSupportTest.cpp
    activemq/activemq-cpp/branches/activemq-cpp-2.x/src/test/decaf/io/DataInputStreamTest.cpp

Modified: activemq/activemq-cpp/branches/activemq-cpp-2.x/src/test/activemq/connector/openwire/utils/OpenwireStringSupportTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/branches/activemq-cpp-2.x/src/test/activemq/connector/openwire/utils/OpenwireStringSupportTest.cpp?rev=765714&r1=765713&r2=765714&view=diff
==============================================================================
--- activemq/activemq-cpp/branches/activemq-cpp-2.x/src/test/activemq/connector/openwire/utils/OpenwireStringSupportTest.cpp
(original)
+++ activemq/activemq-cpp/branches/activemq-cpp-2.x/src/test/activemq/connector/openwire/utils/OpenwireStringSupportTest.cpp
Thu Apr 16 18:30:15 2009
@@ -108,7 +108,7 @@
 
     std::string result = reader.readUTF();
 
-    for( std::size_t i; i < result.length(); ++i ) {
+    for( std::size_t i = 0; i < result.length(); ++i ) {
         CPPUNIT_ASSERT( (unsigned char)result[i] == expect[i] );
     }
 }

Modified: activemq/activemq-cpp/branches/activemq-cpp-2.x/src/test/decaf/io/DataInputStreamTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/branches/activemq-cpp-2.x/src/test/decaf/io/DataInputStreamTest.cpp?rev=765714&r1=765713&r2=765714&view=diff
==============================================================================
--- activemq/activemq-cpp/branches/activemq-cpp-2.x/src/test/decaf/io/DataInputStreamTest.cpp
(original)
+++ activemq/activemq-cpp/branches/activemq-cpp-2.x/src/test/decaf/io/DataInputStreamTest.cpp
Thu Apr 16 18:30:15 2009
@@ -526,7 +526,7 @@
 
     std::string result = reader.readUTF();
 
-    for( std::size_t i; i < result.length(); ++i ) {
+    for( std::size_t i = 0; i < result.length(); ++i ) {
         CPPUNIT_ASSERT( (unsigned char)result[i] == expect[i] );
     }
 }



Mime
View raw message