Author: tabish
Date: Wed Nov 11 18:15:03 2009
New Revision: 834997
URL:
http://svn.apache.org/viewvc?rev=834997&view=revLog:
https://issues.apache.org/activemq/browse/AMQCPP-265Fix 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;