Remove unnecessary owned<T>::GetRawPointer().
authorRobert Sesek <rsesek@bluestatic.org>
Sat, 8 Oct 2016 21:30:25 +0000 (17:30 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Sat, 8 Oct 2016 21:30:25 +0000 (17:30 -0400)
zcpointer.h

index c4b8991502692e76bd3bc4c0f7314e882113b948..06ce70c21c00b859e961382f4405cf9e9322df52 100644 (file)
@@ -71,13 +71,6 @@ class owned : public std::unique_ptr<T, internal::OwnedPtrDeleter<T>> {
     return ref<T>(*this);
   }
 
- protected:
-  friend class ref<T>;
-
-  T* GetRawPointer() const {
-    return get();
-  }
-
  private:
   T* get() const {
     return this->std::unique_ptr<T, Deleter>::get();
@@ -112,7 +105,7 @@ class ref {
 
   T* operator->() const {
     CheckDeleted();
-    return ptr_->GetRawPointer();
+    return ptr_->operator->();
   }
 
  protected: