activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1370049 - in /activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang: ArrayPointerTest.cpp PointerTest.cpp
Date Mon, 06 Aug 2012 22:34:10 GMT
Author: tabish
Date: Mon Aug  6 22:34:09 2012
New Revision: 1370049

URL: http://svn.apache.org/viewvc?rev=1370049&view=rev
Log:
fix for: https://issues.apache.org/jira/browse/AMQCPP-418

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang/ArrayPointerTest.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang/PointerTest.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang/ArrayPointerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang/ArrayPointerTest.cpp?rev=1370049&r1=1370048&r2=1370049&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang/ArrayPointerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang/ArrayPointerTest.cpp Mon
Aug  6 22:34:09 2012
@@ -416,9 +416,9 @@ void ArrayPointerTest::testSTLContainers
 
     std::map< ArrayPointer<TestClassA>, std::string > testMap;
 
-    testMap.insert( std::make_pair( pointer1, "Bob" ) );
-    testMap.insert( std::make_pair( pointer2, "Steve" ) );
-    testMap.insert( std::make_pair( pointer3, "Steve" ) );
+    testMap.insert( std::make_pair( pointer1, std::string("Bob") ) );
+    testMap.insert( std::make_pair( pointer2, std::string("Steve") ) );
+    testMap.insert( std::make_pair( pointer3, std::string("Steve") ) );
 
     // Two and Three should be equivalent (not equal) but in this case
     // equivalent is what matters.  So pointer2 should be bumped out of the map.

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang/PointerTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang/PointerTest.cpp?rev=1370049&r1=1370048&r2=1370049&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang/PointerTest.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang/PointerTest.cpp Mon Aug 
6 22:34:09 2012
@@ -352,9 +352,9 @@ void PointerTest::testSTLContainers() {
 
     std::map< Pointer<TestClassBase>, std::string > testMap;
 
-    testMap.insert( std::make_pair( pointer1, "Bob" ) );
-    testMap.insert( std::make_pair( pointer2, "Steve" ) );
-    testMap.insert( std::make_pair( pointer3, "Steve" ) );
+    testMap.insert( std::make_pair( pointer1, std::string("Bob") ) );
+    testMap.insert( std::make_pair( pointer2, std::string("Steve") ) );
+    testMap.insert( std::make_pair( pointer3, std::string("Steve") ) );
 
     // Two and Three should be equivalent (not equal) but in this case
     // equivalent is what matters.  So pointer2 should be bumped out of the map.



Mime
View raw message