Fix the release function in the ValuePtr class (#4490)
This commit is contained in:
parent
2808fc615e
commit
70c844ddfb
|
@ -53,8 +53,11 @@ public:
|
|||
}
|
||||
ValuePtr(ValuePtr&& rhs) : mPtr(std::move(rhs.mPtr)), mClone(std::move(rhs.mClone)) {}
|
||||
|
||||
pointer release() {
|
||||
return mPtr.release();
|
||||
/**
|
||||
* Releases the shared_ptr's ownership of the managed object using the .reset() function
|
||||
*/
|
||||
void release() {
|
||||
mPtr.reset();
|
||||
}
|
||||
|
||||
T* get() NOEXCEPT {
|
||||
|
|
Loading…
Reference in New Issue