diff options
Diffstat (limited to 'include/lldb/Utility/SharingPtr.h')
| -rw-r--r-- | include/lldb/Utility/SharingPtr.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/lldb/Utility/SharingPtr.h b/include/lldb/Utility/SharingPtr.h index 1b5f86bbe2df..5c77dad9f7ff 100644 --- a/include/lldb/Utility/SharingPtr.h +++ b/include/lldb/Utility/SharingPtr.h @@ -154,6 +154,7 @@ public: void swap(SharingPtr& r); void reset(); template<class Y> void reset(Y* p); + void reset(std::nullptr_t); element_type* get() const {return ptr_;} element_type& operator*() const {return *ptr_;} @@ -295,6 +296,14 @@ SharingPtr<T>::reset() } template<class T> +inline +void +SharingPtr<T>::reset (std::nullptr_t p) +{ + reset(); +} + +template<class T> template<class Y> inline void @@ -547,7 +556,7 @@ public: if (cb_) cb_(baton_, *this, false); } - + void SetCallback(Callback cb, void* baton) { cb_ = cb; |
