activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r834997 - in /activemq/activemq-cpp/trunk/activemq-cpp/src: examples/producers/SimpleProducer.cpp test-integration/activemq/test/ExpirationTest.cpp
Date Wed, 11 Nov 2009 18:15:03 GMT
Author: tabish
Date: Wed Nov 11 18:15:03 2009
New Revision: 834997

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

Fix a couple of windows warnings

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/examples/producers/SimpleProducer.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/activemq/test/ExpirationTest.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/examples/producers/SimpleProducer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/examples/producers/SimpleProducer.cpp?rev=834997&r1=834996&r2=834997&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/examples/producers/SimpleProducer.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/examples/producers/SimpleProducer.cpp Wed
Nov 11 18:15:03 2009
@@ -18,7 +18,7 @@
 #include <decaf/lang/Thread.h>
 #include <decaf/lang/Runnable.h>
 #include <decaf/util/concurrent/CountDownLatch.h>
-#include <decaf/lang/Integer.h>
+#include <decaf/lang/Long.h>
 #include <decaf/util/Date.h>
 #include <activemq/core/ActiveMQConnectionFactory.h>
 #include <activemq/util/Config.h>
@@ -115,7 +115,7 @@
             producer->setDeliveryMode( DeliveryMode::NON_PERSISTENT );
 
             // Create the Thread Id String
-            string threadIdStr = Integer::toString( Thread::getId() );
+            string threadIdStr = Long::toString( Thread::getId() );
 
             // Create a messages
             string text = (string)"Hello world! from thread " + threadIdStr;

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/activemq/test/ExpirationTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/activemq/test/ExpirationTest.cpp?rev=834997&r1=834996&r2=834997&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/activemq/test/ExpirationTest.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/activemq/test/ExpirationTest.cpp
Wed Nov 11 18:15:03 2009
@@ -19,7 +19,7 @@
 
 #include <decaf/lang/Runnable.h>
 #include <decaf/lang/Thread.h>
-#include <decaf/lang/Integer.h>
+#include <decaf/lang/Long.h>
 #include <decaf/util/UUID.h>
 
 #include <sstream>
@@ -81,7 +81,7 @@
                 }
 
                 // Create the Thread Id String
-                string threadIdStr = Integer::toString( Thread::getId() );
+                string threadIdStr = Long::toString( Thread::getId() );
 
                 // Create a messages
                 string text = (string)"Hello world! from thread " + threadIdStr;



Mime
View raw message