COMMON: Fix WeakPtr missing copy constructor

This commit is contained in:
elasota 2022-04-19 00:19:28 -04:00 committed by Paul Gilbert
parent be5a7cb8e7
commit c8d0186752

View File

@ -387,6 +387,11 @@ public:
WeakPtr(std::nullptr_t) : BasePtr<T>() {
}
WeakPtr(const WeakPtr<T> &r) : BasePtr<T>(r) {
if (this->_tracker)
this->_tracker->incWeak();
}
WeakPtr(const BasePtr<T> &r) : BasePtr<T>(r) {
if (this->_tracker)
this->_tracker->incWeak();