Bug 1445577 - Fix -Wmicrosoft-unqualified-friend in WebGLProgram.h. - r=kvark draft
authorJeff Gilbert <jgilbert@mozilla.com>
Wed, 14 Mar 2018 01:25:44 -0700
changeset 767277 fffb99c3715dcbe8c596f49c8c2e2f7f8f06adef
parent 767163 c56ef1c14a555023949ad727c86e3c2df995edd2
push id102551
push userbmo:jgilbert@mozilla.com
push dateWed, 14 Mar 2018 08:33:15 +0000
reviewerskvark
bugs1445577
milestone61.0a1
Bug 1445577 - Fix -Wmicrosoft-unqualified-friend in WebGLProgram.h. - r=kvark "unqualified friend declaration referring to type outside of the nearest enclosing namespace is a Microsoft extension; add a nested name specifier [-Wmicrosoft-unqualified-friend]"
dom/canvas/WebGLProgram.h
--- a/dom/canvas/WebGLProgram.h
+++ b/dom/canvas/WebGLProgram.h
@@ -80,17 +80,17 @@ struct CachedDrawFetchLimits final {
     uint64_t maxVerts;
     uint64_t maxInstances;
 };
 
 struct LinkedProgramInfo final
     : public RefCounted<LinkedProgramInfo>
     , public SupportsWeakPtr<LinkedProgramInfo>
 {
-    friend class WebGLProgram;
+    friend class mozilla::WebGLProgram;
 
     MOZ_DECLARE_REFCOUNTED_TYPENAME(LinkedProgramInfo)
     MOZ_DECLARE_WEAKREFERENCE_TYPENAME(LinkedProgramInfo)
 
     //////
 
     WebGLProgram* const prog;
     const GLenum transformFeedbackBufferMode;