]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/vertexformat.h
Use default member initializers for simple types
[libs/gl.git] / source / core / vertexformat.h
index f9f99398fc7fe66186a74ad7836e2567fc02cf0c..4ff3401778d15b5989130d4dcf6c2ce803eb4bee 100644 (file)
@@ -75,11 +75,11 @@ class VertexFormat
 private:
        enum { MAX_ATTRIBUTES = 15 };
 
-       std::uint8_t count;
+       std::uint8_t count = 0;
        VertexAttribute attributes[MAX_ATTRIBUTES];
 
 public:
-       VertexFormat();
+       VertexFormat() = default;
        VertexFormat(VertexAttribute);
 
        VertexFormat operator,(VertexAttribute) const;