From: Roger Meier Date: Mon, 18 Jun 2012 20:02:36 +0000 (+0000) Subject: THRIFT-1631 Fix C++ server constructor typos X-Git-Tag: 0.9.1~342 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=89cc4303aac22b4505934fa965ee7981c83f171c;p=common%2Fthrift.git THRIFT-1631 Fix C++ server constructor typos Patch: Andrew Cox THRIFT-1573 Error on TNonblockingServer constructor Patch: Denis git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1351472 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/cpp/src/thrift/server/TServer.h b/lib/cpp/src/thrift/server/TServer.h index f172ad14..c9e88b18 100644 --- a/lib/cpp/src/thrift/server/TServer.h +++ b/lib/cpp/src/thrift/server/TServer.h @@ -142,7 +142,7 @@ class TServer : public concurrency::Runnable { protected: template - TServer(const boost::shared_ptr& processorFactory, + TServer(const boost::shared_ptr& processorFactory, THRIFT_OVERLOAD_IF(ProcessorFactory, TProcessorFactory)): processorFactory_(processorFactory) { setInputTransportFactory(boost::shared_ptr( @@ -166,7 +166,7 @@ protected: } template - TServer(const boost::shared_ptr& processorFactory, + TServer(const boost::shared_ptr& processorFactory, const boost::shared_ptr& serverTransport, THRIFT_OVERLOAD_IF(ProcessorFactory, TProcessorFactory)): processorFactory_(processorFactory), diff --git a/lib/cpp/src/thrift/server/TThreadPoolServer.h b/lib/cpp/src/thrift/server/TThreadPoolServer.h index 48a11cb6..70b19bbc 100644 --- a/lib/cpp/src/thrift/server/TThreadPoolServer.h +++ b/lib/cpp/src/thrift/server/TThreadPoolServer.h @@ -44,7 +44,7 @@ class TThreadPoolServer : public TServer { const boost::shared_ptr& transportFactory, const boost::shared_ptr& protocolFactory, const boost::shared_ptr& threadManager, - THRIFT_OVERLOAD_IF(ProcessorFactory, TProtocolFactory)) : + THRIFT_OVERLOAD_IF(ProcessorFactory, TProcessorFactory)) : TServer(processorFactory, serverTransport, transportFactory, protocolFactory), threadManager_(threadManager), diff --git a/lib/cpp/src/thrift/server/TThreadedServer.h b/lib/cpp/src/thrift/server/TThreadedServer.h index 42faaf0c..f965fcde 100644 --- a/lib/cpp/src/thrift/server/TThreadedServer.h +++ b/lib/cpp/src/thrift/server/TThreadedServer.h @@ -53,7 +53,7 @@ class TThreadedServer : public TServer { const boost::shared_ptr& transportFactory, const boost::shared_ptr& protocolFactory, const boost::shared_ptr& threadFactory, - THRIFT_OVERLOAD_IF(ProcessorFactory, TProtocolFactory)); + THRIFT_OVERLOAD_IF(ProcessorFactory, TProcessorFactory)); template TThreadedServer(const boost::shared_ptr& processor, @@ -109,7 +109,7 @@ TThreadedServer::TThreadedServer( const boost::shared_ptr& transportFactory, const boost::shared_ptr& protocolFactory, const boost::shared_ptr& threadFactory, - THRIFT_OVERLOAD_IF_DEFN(ProcessorFactory, TProtocolFactory)) : + THRIFT_OVERLOAD_IF_DEFN(ProcessorFactory, TProcessorFactory)) : TServer(processorFactory, serverTransport, transportFactory, protocolFactory), threadFactory_(threadFactory) {