THRIFT-244. cpp: Make TJSONProtocolFactor inherit from TProtocolFactory


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@734863 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/protocol/TJSONProtocol.h b/lib/cpp/src/protocol/TJSONProtocol.h
index cece97e..cbf4ef8 100644
--- a/lib/cpp/src/protocol/TJSONProtocol.h
+++ b/lib/cpp/src/protocol/TJSONProtocol.h
@@ -288,7 +288,7 @@
 /**
  * Constructs input and output protocol objects given transports.
  */
-class TJSONProtocolFactory {
+class TJSONProtocolFactory : public TProtocolFactory {
  public:
   TJSONProtocolFactory() {}