Bug 1495892 - Aggregates in c++2a can't have deleted ctors. r=dholbert
authorJeff Gilbert <jgilbert@mozilla.com>
Tue, 16 Oct 2018 19:39:37 +0000
changeset 489883 af0263577e4d16da5c44df23ef5a44685c07a4d0
parent 489882 963840088024c60bc7e52d6046312989a2935705
child 489884 4c98e1b28c388eed1ce835038f570cc0169ef389
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersdholbert
bugs1495892
milestone64.0a1
Bug 1495892 - Aggregates in c++2a can't have deleted ctors. r=dholbert GLContextSymbols previously had a deleted default ctor to prevent accidentally leaving its members uninitialized, instead of zeroing with aggregate initialization. Differential Revision: https://phabricator.services.mozilla.com/D8796
gfx/gl/GLContextSymbols.h
--- a/gfx/gl/GLContextSymbols.h
+++ b/gfx/gl/GLContextSymbols.h
@@ -22,18 +22,16 @@
 #define GLAPI
 #endif
 
 namespace mozilla {
 namespace gl {
 
 struct GLContextSymbols final
 {
-    GLContextSymbols() = delete; // Initialize with {}.
-
     void (GLAPIENTRY * fActiveTexture)(GLenum);
     void (GLAPIENTRY * fAttachShader)(GLuint, GLuint);
     void (GLAPIENTRY * fBeginQuery)(GLenum, GLuint);
     void (GLAPIENTRY * fBindAttribLocation)(GLuint, GLuint, const GLchar*);
     void (GLAPIENTRY * fBindBuffer)(GLenum, GLuint);
     void (GLAPIENTRY * fBindTexture)(GLenum, GLuint);
     void (GLAPIENTRY * fBindVertexArray)(GLuint);
     void (GLAPIENTRY * fBlendColor)(GLfloat, GLfloat, GLfloat, GLfloat);