[Explicitly declare shared_ptr]
authoryunfang <dev-null@apache.org>
Wed, 3 Oct 2007 22:59:41 +0000 (22:59 +0000)
committeryunfang <dev-null@apache.org>
Wed, 3 Oct 2007 22:59:41 +0000 (22:59 +0000)
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
lib/cpp/src/concurrency/Mutex.h

index 695d5dc..a055656 100644 (file)
@@ -9,6 +9,8 @@
 #include <assert.h>
 #include <pthread.h>
 
+using boost::shared_ptr;
+
 namespace facebook { namespace thrift { namespace concurrency { 
 
 /** 
index dd35edb..7594339 100644 (file)
@@ -8,7 +8,6 @@
 #define _THRIFT_CONCURRENCY_MUTEX_H_ 1
 
 #include <boost/shared_ptr.hpp>
-using boost::shared_ptr;
 
 namespace facebook { namespace thrift { namespace concurrency { 
 
@@ -29,7 +28,7 @@ class Mutex {
  private:
 
   class impl;
-  shared_ptr<impl> impl_;
+  boost::shared_ptr<impl> impl_;
 };
 
 class ReadWriteMutex {
@@ -51,7 +50,7 @@ public:
 private:
 
   class impl;
-  shared_ptr<impl> impl_;
+  boost::shared_ptr<impl> impl_;
 };
 
 class Guard {