]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/text.h
Use default member initializers for simple types
[libs/gl.git] / source / render / text.h
index 0b4fa92c4ac5fe0197dbc917f19bb6453eded733..c007c81f8aeaee0c9813dbf66915ccdd12814400 100644 (file)
@@ -37,9 +37,9 @@ private:
        Mesh mesh;
        Object object;
        Tag texture_slot;
-       float horz_align;
-       float vert_offset;
-       float width;
+       float horz_align = 0.0f;
+       float vert_offset = 0.0f;
+       float width = 0.0f;
 
 public:
        Text(const Font &, const Technique * = 0, Tag = Tag());