Get rid of all the using namespace and using boost:: declarations in Thrift header files
Summary: To remove upstream dependencies. Still keeping some specific using directives around.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665047 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/protocol/TProtocol.h b/lib/cpp/src/protocol/TProtocol.h
index 8b2e6bd..735268e 100644
--- a/lib/cpp/src/protocol/TProtocol.h
+++ b/lib/cpp/src/protocol/TProtocol.h
@@ -19,9 +19,7 @@
namespace facebook { namespace thrift { namespace protocol {
-using namespace boost;
-
-using namespace facebook::thrift::transport;
+using facebook::thrift::transport::TTransport;
#if __BYTE_ORDER == __BIG_ENDIAN
#define ntohll(n) (n)
@@ -290,26 +288,26 @@
}
}
- inline shared_ptr<TTransport> getTransport() {
+ inline boost::shared_ptr<TTransport> getTransport() {
return ptrans_;
}
// TODO: remove these two calls, they are for backwards
// compatibility
- inline shared_ptr<TTransport> getInputTransport() {
+ inline boost::shared_ptr<TTransport> getInputTransport() {
return ptrans_;
}
- inline shared_ptr<TTransport> getOutputTransport() {
+ inline boost::shared_ptr<TTransport> getOutputTransport() {
return ptrans_;
}
protected:
- TProtocol(shared_ptr<TTransport> ptrans):
+ TProtocol(boost::shared_ptr<TTransport> ptrans):
ptrans_(ptrans) {
trans_ = ptrans.get();
}
- shared_ptr<TTransport> ptrans_;
+ boost::shared_ptr<TTransport> ptrans_;
TTransport* trans_;
private: