r?jrmuizel - Remove &* from forwarded out-params. draft
authorJeff Gilbert <jdashg@gmail.com>
Tue, 10 May 2016 17:59:39 -0700
changeset 365534 325d865ad5951b96ff76873cd7524ffaa72e6600
parent 365533 11ae76707f37445afefd88e8779052f5ce152da7
child 520592 b67236ce2b83166e8b3910edd71f2b1c3d10e9c7
push id17781
push userjgilbert@mozilla.com
push dateWed, 11 May 2016 01:01:14 +0000
milestone49.0a1
r?jrmuizel - Remove &* from forwarded out-params. From 5ed59c005653f404a164cc9b57d822fb8e0c4b37 Mon Sep 17 00:00:00 2001 --- dom/canvas/WebGLContext.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) MozReview-Commit-ID: JzwWk1QlNzJ
dom/canvas/WebGLContext.cpp
--- a/dom/canvas/WebGLContext.cpp
+++ b/dom/canvas/WebGLContext.cpp
@@ -665,26 +665,26 @@ WebGLContext::CreateAndInitGLWith(FnCrea
     std::queue<gl::SurfaceCaps> fallbackCaps;
     PopulateCapFallbackQueue(baseCaps, &fallbackCaps);
 
     MOZ_RELEASE_ASSERT(!gl);
     gl = nullptr;
     while (!fallbackCaps.empty()) {
         gl::SurfaceCaps& caps = fallbackCaps.front();
 
-        gl = fnCreateGL(caps, flags, this, &*out_failReason);
+        gl = fnCreateGL(caps, flags, this, out_failReason);
         if (gl)
             break;
 
         fallbackCaps.pop();
     }
     if (!gl)
         return false;
 
-    if (!InitAndValidateGL(&*out_failReason)) {
+    if (!InitAndValidateGL(out_failReason)) {
         gl = nullptr;
         return false;
     }
 
     return true;
 }
 
 bool
@@ -702,22 +702,22 @@ WebGLContext::CreateAndInitGL(bool force
     gl::CreateContextFlags flags = gl::CreateContextFlags::NONE;
     if (forceEnabled) flags |= gl::CreateContextFlags::FORCE_ENABLE_HARDWARE;
     if (!IsWebGL2())  flags |= gl::CreateContextFlags::REQUIRE_COMPAT_PROFILE;
     if (IsWebGL2())   flags |= gl::CreateContextFlags::PREFER_ES3;
 
     const gl::SurfaceCaps baseCaps = BaseCaps(mOptions, this);
 
     if (useEGL)
-        return CreateAndInitGLWith(CreateGLWithEGL, baseCaps, flags, &*out_failReason);
+        return CreateAndInitGLWith(CreateGLWithEGL, baseCaps, flags, out_failReason);
 
     if (useANGLE)
-        return CreateAndInitGLWith(CreateGLWithANGLE, baseCaps, flags, &*out_failReason);
+        return CreateAndInitGLWith(CreateGLWithANGLE, baseCaps, flags, out_failReason);
 
-    return CreateAndInitGLWith(CreateGLWithDefault, baseCaps, flags, &*out_failReason);
+    return CreateAndInitGLWith(CreateGLWithDefault, baseCaps, flags, out_failReason);
 }
 
 // Fallback for resizes:
 bool
 WebGLContext::ResizeBackbuffer(uint32_t requestedWidth,
                                uint32_t requestedHeight)
 {
     uint32_t width = requestedWidth;