]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/text.cpp
Simplify constructors with C++11
[libs/gltk.git] / source / text.cpp
index bffb6e6a86cc0b33f6b35285d6a22338cfb7c8ae..166bbb5212c7145fbc1c39bbfccf44cf7441354f 100644 (file)
@@ -25,15 +25,8 @@ struct Text::CoordsToGeomData
 
 
 Text::Text():
-       style(0)
-{
-       Line line;
-       line.start = 0;
-       line.bytes = 0;
-       line.length = 0;
-       line.width = 0;
-       lines.push_back(line);
-}
+       lines(1)
+{ }
 
 Text::Text(const Style &s, const string &t):
        style(&s)