Bug 784889 - Use nullptr in a function that returns a pointer. r=ms2ger.
authorRafael Ávila de Espíndola <respindola@mozilla.com>
Thu, 23 Aug 2012 09:56:10 -0400
changeset 105206 2995a63cf3991d9c439ee25b8783871af2f19b92
parent 105205 6797919f02f2d447b3e3758a9cea91685d934647
child 105207 9e98e33cb80df128010a11f20bb6eab2f3bd85c2
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
reviewersms2ger
bugs784889
milestone17.0a1
Bug 784889 - Use nullptr in a function that returns a pointer. r=ms2ger.
dom/base/nsGlobalWindow.cpp
--- a/dom/base/nsGlobalWindow.cpp
+++ b/dom/base/nsGlobalWindow.cpp
@@ -6125,17 +6125,17 @@ PostMessageReadStructuredClone(JSContext
 
   const JSStructuredCloneCallbacks* runtimeCallbacks =
     js::GetContextStructuredCloneCallbacks(cx);
 
   if (runtimeCallbacks) {
     return runtimeCallbacks->read(cx, reader, tag, data, nullptr);
   }
 
-  return JS_FALSE;
+  return nullptr;
 }
 
 static JSBool
 PostMessageWriteStructuredClone(JSContext* cx,
                                 JSStructuredCloneWriter* writer,
                                 JSObject* obj,
                                 void *closure)
 {