From c080785c7930a5284a381899705c59d3923b87f2 Mon Sep 17 00:00:00 2001 From: Joe Drew Date: Fri, 12 Oct 2012 18:17:58 -0400 Subject: [PATCH] Bug 801120 - Support T* WeakPtr::get(). r=Ms2ger,ehsan --HG-- extra : rebase_source : 662ef6f39966956be5588d9bd7508dbe59a2c537 --- mfbt/WeakPtr.h | 4 ++++ 1 file changed, 4 insertions(+) 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;