From 145429602687d1785c485bcd1ea9dcd83f28bda4 Mon Sep 17 00:00:00 2001 From: yunfang Date: Wed, 3 Oct 2007 22:59:41 +0000 Subject: [PATCH] [Explicitly declare shared_ptr] Summary: just some simple styling changes. moving using boost::shared_ptr to .cpp and using the full path name in .h Reviewed by: boz, dreiss Test Plan: compiled and tested on the adfinder git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665289 13f79535-47bb-0310-9956-ffa450edef68 --- lib/cpp/src/concurrency/Mutex.cpp | 2 ++ lib/cpp/src/concurrency/Mutex.h | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/cpp/src/concurrency/Mutex.cpp b/lib/cpp/src/concurrency/Mutex.cpp index 695d5dc5..a0556562 100644 --- a/lib/cpp/src/concurrency/Mutex.cpp +++ b/lib/cpp/src/concurrency/Mutex.cpp @@ -9,6 +9,8 @@ #include #include +using boost::shared_ptr; + namespace facebook { namespace thrift { namespace concurrency { /** diff --git a/lib/cpp/src/concurrency/Mutex.h b/lib/cpp/src/concurrency/Mutex.h index dd35edb1..75943396 100644 --- a/lib/cpp/src/concurrency/Mutex.h +++ b/lib/cpp/src/concurrency/Mutex.h @@ -8,7 +8,6 @@ #define _THRIFT_CONCURRENCY_MUTEX_H_ 1 #include -using boost::shared_ptr; namespace facebook { namespace thrift { namespace concurrency { @@ -29,7 +28,7 @@ class Mutex { private: class impl; - shared_ptr impl_; + boost::shared_ptr impl_; }; class ReadWriteMutex { @@ -51,7 +50,7 @@ public: private: class impl; - shared_ptr impl_; + boost::shared_ptr impl_; }; class Guard { -- 2.17.1