You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2009/11/11 19:15:03 UTC

svn commit: r834997 - in /activemq/activemq-cpp/trunk/activemq-cpp/src: examples/producers/SimpleProducer.cpp test-integration/activemq/test/ExpirationTest.cpp

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;