mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-11 05:36:12 +00:00
COMMON: Fix WeakPtr missing copy constructor
This commit is contained in:
parent
be5a7cb8e7
commit
c8d0186752
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user