activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject git commit: Fix some warnings
Date Fri, 13 Sep 2013 22:19:49 GMT
Updated Branches:
  refs/heads/trunk 66103dd16 -> 17673bdfe


Fix some warnings 

Project: http://git-wip-us.apache.org/repos/asf/activemq-cpp/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-cpp/commit/17673bdf
Tree: http://git-wip-us.apache.org/repos/asf/activemq-cpp/tree/17673bdf
Diff: http://git-wip-us.apache.org/repos/asf/activemq-cpp/diff/17673bdf

Branch: refs/heads/trunk
Commit: 17673bdfed968c6025a7bf2b1f47ce51cf1d863a
Parents: 66103dd
Author: Timothy Bish <tabish121@gmai.com>
Authored: Fri Sep 13 18:19:42 2013 -0400
Committer: Timothy Bish <tabish121@gmai.com>
Committed: Fri Sep 13 18:19:42 2013 -0400

----------------------------------------------------------------------
 .../test-integration/activemq/test/BulkMessageTest.cpp  | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-cpp/blob/17673bdf/activemq-cpp/src/test-integration/activemq/test/BulkMessageTest.cpp
----------------------------------------------------------------------
diff --git a/activemq-cpp/src/test-integration/activemq/test/BulkMessageTest.cpp b/activemq-cpp/src/test-integration/activemq/test/BulkMessageTest.cpp
index 58b9591..33993a6 100644
--- a/activemq-cpp/src/test-integration/activemq/test/BulkMessageTest.cpp
+++ b/activemq-cpp/src/test-integration/activemq/test/BulkMessageTest.cpp
@@ -73,7 +73,7 @@ namespace {
             Pointer<BytesMessage> message;
 
             for( int i = 0; i < num; ++i ) {
-                message.reset( session->createBytesMessage( (const unsigned char*) body.c_str(),
body.length() ) );
+                message.reset( session->createBytesMessage( (const unsigned char*) body.c_str(),
(int) body.length() ) );
                 producer->send( message.get() );
             }
         }
@@ -95,17 +95,15 @@ void BulkMessageTest::testBulkMessageSendReceive() {
     static const int MSG_SIZE = 8192;
 
     // Create CMS Object for consumer Comms
-    cms::Session* session( cmsProvider->getSession() );
     cms::MessageConsumer* consumer = cmsProvider->getConsumer();
-    Destination* destination = cmsProvider->getDestination();
 
-    ProducerThread thread( this->getBrokerURL(), cmsProvider->getDestinationName(),
cmsProvider->getSubscription(), MSG_COUNT, MSG_SIZE );
+    ProducerThread thread(this->getBrokerURL(), cmsProvider->getDestinationName(),
cmsProvider->getSubscription(), MSG_COUNT, MSG_SIZE);
     thread.start();
 
     Pointer<cms::Message> message;
 
-    for( int i = 0; i < MSG_COUNT ; ++i ) {
-        CPPUNIT_ASSERT_NO_THROW( message.reset( consumer->receive( 2000 ) ) );
-        CPPUNIT_ASSERT( message.get() != NULL );
+    for (int i = 0; i < MSG_COUNT; ++i) {
+        CPPUNIT_ASSERT_NO_THROW(message.reset(consumer->receive(2000)));
+        CPPUNIT_ASSERT(message.get() != NULL);
     }
 }


Mime
View raw message