]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/text.h
Simplify constructors with C++11
[libs/gltk.git] / source / text.h
index 708380ab60f68734e126485f166bbb5ad0b93058..cdde08c2b081aa42804ec16bf6d0656c343c8d3c 100644 (file)
@@ -22,16 +22,16 @@ class MSPGLTK_API Text
 private:
        struct Line
        {
-               unsigned start;
-               unsigned bytes;
-               unsigned length;
-               unsigned width;
+               unsigned start = 0;
+               unsigned bytes = 0;
+               unsigned length = 0;
+               unsigned width = 0;
        };
 
        struct RenderData;
        struct CoordsToGeomData;
 
-       const Style *style;
+       const Style *style = 0;
        std::string text;
        std::vector<Line> lines;