From 89cc4303aac22b4505934fa965ee7981c83f171c Mon Sep 17 00:00:00 2001 From: Roger Meier Date: Mon, 18 Jun 2012 20:02:36 +0000 Subject: [PATCH] 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 --- lib/cpp/src/thrift/server/TServer.h | 4 ++-- lib/cpp/src/thrift/server/TThreadPoolServer.h | 2 +- lib/cpp/src/thrift/server/TThreadedServer.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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) { -- 2.17.1