activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1516610 - in /activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq: cmsutil/CmsTemplateTest.h cmsutil/DummyMessage.h cmsutil/DummyMessageCreator.h cmsutil/DummyProducer.h exceptions/ActiveMQExceptionTest.cpp
Date Thu, 22 Aug 2013 21:15:36 GMT
Author: tabish
Date: Thu Aug 22 21:15:36 2013
New Revision: 1516610

URL: http://svn.apache.org/r1516610
Log:
Remove old throws declarations to avoid warnings on vs2010+

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/CmsTemplateTest.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyMessage.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyMessageCreator.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyProducer.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/exceptions/ActiveMQExceptionTest.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/CmsTemplateTest.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/CmsTemplateTest.h?rev=1516610&r1=1516609&r2=1516610&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/CmsTemplateTest.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/CmsTemplateTest.h Thu
Aug 22 21:15:36 2013
@@ -72,7 +72,7 @@ namespace cmsutil{
 
             virtual void onSend(const cms::Destination* destination,
                 cms::Message* message, int deliveryMode, int priority,
-                long long timeToLive) throw (cms::CMSException){
+                long long timeToLive) {
                 this->dest = destination;
                 this->message = message;
                 this->deliveryMode = deliveryMode;
@@ -83,7 +83,7 @@ namespace cmsutil{
             virtual cms::Message* doReceive(const cms::Destination* dest,
                     const std::string& selector,
                     bool noLocal,
-                    long long timeout) throw (cms::CMSException){
+                    long long timeout) {
                 this->dest = dest;
                 this->selector = selector;
                 this->noLocal = noLocal;

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyMessage.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyMessage.h?rev=1516610&r1=1516609&r2=1516610&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyMessage.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyMessage.h Thu
Aug 22 21:15:36 2013
@@ -38,11 +38,11 @@ namespace cmsutil {
 
         virtual void clearProperties() {}
 
-        virtual std::vector<std::string> getPropertyNames() const throw (cms::CMSException)
{
+        virtual std::vector<std::string> getPropertyNames() const {
             return std::vector<std::string>();
         }
 
-        virtual bool propertyExists(const std::string& name) const throw (cms::CMSException)
{
+        virtual bool propertyExists(const std::string& name) const {
             return false;
         }
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyMessageCreator.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyMessageCreator.h?rev=1516610&r1=1516609&r2=1516610&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyMessageCreator.h
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyMessageCreator.h
Thu Aug 22 21:15:36 2013
@@ -29,8 +29,7 @@ namespace cmsutil {
 
         virtual ~DummyMessageCreator() {}
 
-        virtual cms::Message* createMessage(cms::Session* session )
-                    throw (cms::CMSException) {
+        virtual cms::Message* createMessage(cms::Session* session ) {
             return new DummyMessage();
         }
     };

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyProducer.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyProducer.h?rev=1516610&r1=1516609&r2=1516610&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyProducer.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyProducer.h Thu
Aug 22 21:15:36 2013
@@ -90,7 +90,7 @@ namespace cmsutil {
          * @param mode
          *      The DeliveryMode
          */
-        virtual void setDeliveryMode(int mode) throw (cms::CMSException) {
+        virtual void setDeliveryMode(int mode) {
             this->deliveryMode = mode;
         }
 
@@ -99,7 +99,7 @@ namespace cmsutil {
          *
          * @return The DeliveryMode
          */
-        virtual int getDeliveryMode() const throw (cms::CMSException) {
+        virtual int getDeliveryMode() const {
             return deliveryMode;
         }
 
@@ -109,7 +109,7 @@ namespace cmsutil {
          * @param value
          *      boolean indicating enable / disable (true / false)
          */
-        virtual void setDisableMessageID(bool value) throw (cms::CMSException) {
+        virtual void setDisableMessageID(bool value) {
             disableMessageId = value;
         }
 
@@ -118,7 +118,7 @@ namespace cmsutil {
          *
          * @return boolean indicating enable / disable (true / false)
          */
-        virtual bool getDisableMessageID() const throw (cms::CMSException) {
+        virtual bool getDisableMessageID() const {
             return disableMessageId;
         }
 
@@ -126,7 +126,7 @@ namespace cmsutil {
          * Sets if Message Time Stamps are disbled for this Producer
          * @param value - boolean indicating enable / disable (true / false)
          */
-        virtual void setDisableMessageTimeStamp(bool value) throw (cms::CMSException) {
+        virtual void setDisableMessageTimeStamp(bool value) {
             disableMessageTimestamp = value;
         }
 
@@ -135,7 +135,7 @@ namespace cmsutil {
          *
          * @return boolean indicating enable / disable (true / false)
          */
-        virtual bool getDisableMessageTimeStamp() const throw (cms::CMSException) {
+        virtual bool getDisableMessageTimeStamp() const {
             return disableMessageTimestamp;
         }
 
@@ -145,7 +145,7 @@ namespace cmsutil {
          * @param priority
          *      int value for Priority level
          */
-        virtual void setPriority(int priority) throw (cms::CMSException) {
+        virtual void setPriority(int priority) {
             this->priority = priority;
         }
 
@@ -154,7 +154,7 @@ namespace cmsutil {
          *
          * @return int based priority level
          */
-        virtual int getPriority() const throw (cms::CMSException) {
+        virtual int getPriority() const {
             return priority;
         }
 
@@ -166,7 +166,7 @@ namespace cmsutil {
          * @param time
          *      default time to live value in milliseconds
          */
-        virtual void setTimeToLive(long long time) throw (cms::CMSException) {
+        virtual void setTimeToLive(long long time) {
             ttl = time;
         }
 
@@ -175,7 +175,7 @@ namespace cmsutil {
          *
          * @return Time to live value in milliseconds
          */
-        virtual long long getTimeToLive() const throw (cms::CMSException) {
+        virtual long long getTimeToLive() const {
             return ttl;
         }
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/exceptions/ActiveMQExceptionTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/exceptions/ActiveMQExceptionTest.cpp?rev=1516610&r1=1516609&r2=1516610&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/exceptions/ActiveMQExceptionTest.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/exceptions/ActiveMQExceptionTest.cpp
Thu Aug 22 21:15:36 2013
@@ -29,7 +29,7 @@ using namespace decaf::lang::exceptions;
 
 ////////////////////////////////////////////////////////////////////////////////
 namespace {
-    void testMethod() throw ( cms::CMSException ) {
+    void testMethod() {
         throw cms::MessageNotReadableException( "TEST", NULL );
     }
 }



Mime
View raw message