THRIFT-1631 Fix C++ server constructor typos
authorRoger Meier <roger@apache.org>
Mon, 18 Jun 2012 20:02:36 +0000 (20:02 +0000)
committerRoger Meier <roger@apache.org>
Mon, 18 Jun 2012 20:02:36 +0000 (20:02 +0000)
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
lib/cpp/src/thrift/server/TThreadPoolServer.h
lib/cpp/src/thrift/server/TThreadedServer.h

index f172ad1..c9e88b1 100644 (file)
@@ -142,7 +142,7 @@ class TServer : public concurrency::Runnable {
 
 protected:
   template<typename ProcessorFactory>
-  TServer(const boost::shared_ptr<TProcessorFactory>& processorFactory,
+  TServer(const boost::shared_ptr<ProcessorFactory>& processorFactory,
           THRIFT_OVERLOAD_IF(ProcessorFactory, TProcessorFactory)):
     processorFactory_(processorFactory) {
     setInputTransportFactory(boost::shared_ptr<TTransportFactory>(
@@ -166,7 +166,7 @@ protected:
   }
 
   template<typename ProcessorFactory>
-  TServer(const boost::shared_ptr<TProcessorFactory>& processorFactory,
+  TServer(const boost::shared_ptr<ProcessorFactory>& processorFactory,
           const boost::shared_ptr<TServerTransport>& serverTransport,
           THRIFT_OVERLOAD_IF(ProcessorFactory, TProcessorFactory)):
     processorFactory_(processorFactory),
index 48a11cb..70b19bb 100644 (file)
@@ -44,7 +44,7 @@ class TThreadPoolServer : public TServer {
       const boost::shared_ptr<TTransportFactory>& transportFactory,
       const boost::shared_ptr<TProtocolFactory>& protocolFactory,
       const boost::shared_ptr<ThreadManager>& threadManager,
-      THRIFT_OVERLOAD_IF(ProcessorFactory, TProtocolFactory)) :
+      THRIFT_OVERLOAD_IF(ProcessorFactory, TProcessorFactory)) :
     TServer(processorFactory, serverTransport, transportFactory,
             protocolFactory),
     threadManager_(threadManager),
index 42faaf0..f965fcd 100644 (file)
@@ -53,7 +53,7 @@ class TThreadedServer : public TServer {
                   const boost::shared_ptr<TTransportFactory>& transportFactory,
                   const boost::shared_ptr<TProtocolFactory>& protocolFactory,
                   const boost::shared_ptr<ThreadFactory>& threadFactory,
-                  THRIFT_OVERLOAD_IF(ProcessorFactory, TProtocolFactory));
+                  THRIFT_OVERLOAD_IF(ProcessorFactory, TProcessorFactory));
 
   template<typename Processor>
   TThreadedServer(const boost::shared_ptr<Processor>& processor,
@@ -109,7 +109,7 @@ TThreadedServer::TThreadedServer(
     const boost::shared_ptr<TTransportFactory>& transportFactory,
     const boost::shared_ptr<TProtocolFactory>& protocolFactory,
     const boost::shared_ptr<ThreadFactory>& threadFactory,
-    THRIFT_OVERLOAD_IF_DEFN(ProcessorFactory, TProtocolFactory)) :
+    THRIFT_OVERLOAD_IF_DEFN(ProcessorFactory, TProcessorFactory)) :
   TServer(processorFactory, serverTransport, transportFactory,
           protocolFactory),
   threadFactory_(threadFactory) {