https://src.bluestatic.org
/
zcpointer.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
148bfcc
)
Remove unnecessary owned<T>::GetRawPointer().
author
Robert Sesek <rsesek@bluestatic.org>
Sat, 8 Oct 2016 21:30:25 +0000
(17:30 -0400)
committer
Robert Sesek <rsesek@bluestatic.org>
Sat, 8 Oct 2016 21:30:25 +0000
(17:30 -0400)
zcpointer.h
patch
|
blob
|
history
diff --git
a/zcpointer.h
b/zcpointer.h
index c4b8991502692e76bd3bc4c0f7314e882113b948..06ce70c21c00b859e961382f4405cf9e9322df52 100644
(file)
--- a/
zcpointer.h
+++ b/
zcpointer.h
@@
-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: