From 41febb73eae83391421d4ee6cd54aef2d7534ba5 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Thu, 26 Apr 2012 00:42:37 -0400 Subject: [PATCH] Bug 747826. Return the value inside a Nullable by reference, not by value, so Nullable around some sort of complex type works sanely. r=peterv --- dom/bindings/Nullable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/bindings/Nullable.h b/dom/bindings/Nullable.h index ee556c4652c6..72933e466066 100644 --- a/dom/bindings/Nullable.h +++ b/dom/bindings/Nullable.h @@ -48,7 +48,7 @@ public: mIsNull = true; } - T Value() const { + const T& Value() const { MOZ_ASSERT(!mIsNull); return mValue; }