activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r752621 - /activemq/activemq-cpp/trunk/src/main/activemq/transport/AbstractTransportFactory.cpp
Date Wed, 11 Mar 2009 21:12:15 GMT
Author: tabish
Date: Wed Mar 11 21:12:14 2009
New Revision: 752621

URL: http://svn.apache.org/viewvc?rev=752621&view=rev
Log:
small cleanup

Modified:
    activemq/activemq-cpp/trunk/src/main/activemq/transport/AbstractTransportFactory.cpp

Modified: activemq/activemq-cpp/trunk/src/main/activemq/transport/AbstractTransportFactory.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/transport/AbstractTransportFactory.cpp?rev=752621&r1=752620&r2=752621&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/transport/AbstractTransportFactory.cpp (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/transport/AbstractTransportFactory.cpp Wed
Mar 11 21:12:14 2009
@@ -85,9 +85,7 @@
         Pointer<WireFormat> wireFormat = this->createWireFormat( properties );
 
         // Create the initial Transport, then wrap it in the normal Filters
-        Pointer<Transport> transport( doCreateComposite( location, wireFormat, properties
) );
-
-        return transport;
+        return doCreateComposite( location, wireFormat, properties );
     }
     AMQ_CATCH_RETHROW( ActiveMQException )
     AMQ_CATCH_EXCEPTION_CONVERT( Exception, ActiveMQException )
@@ -106,7 +104,7 @@
         WireFormatFactory* factory =
             WireFormatRegistry::getInstance().findFactory( wireFormat );
 
-        return Pointer<WireFormat>( factory->createWireFormat( properties ) );
+        return factory->createWireFormat( properties );
     }
     AMQ_CATCH_RETHROW( NoSuchElementException )
     AMQ_CATCH_EXCEPTION_CONVERT( Exception, NoSuchElementException )



Mime
View raw message