diff --git a/mfbt/WeakPtr.h b/mfbt/WeakPtr.h index e20767141e0..721c28e48d1 100644 --- a/mfbt/WeakPtr.h +++ b/mfbt/WeakPtr.h @@ -126,6 +126,10 @@ class WeakPtr return ref->get(); } + T* get() const { + return ref->get(); + } + private: friend class SupportsWeakPtr;