summaryrefslogtreecommitdiff
path: root/src/parse
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-23 15:34:47 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-23 15:34:47 +0100
commit02ff5c5989c4e2a84e4a3be8123abdbd887f8648 (patch)
tree4cb8b458691329cba95e8e282aa01803ccef3848 /src/parse
parent04156a67a01fbb81c6e8b59ecff6a22dee712c30 (diff)
A few small cleanups.
Diffstat (limited to 'src/parse')
-rw-r--r--src/parse/subtitle.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/parse/subtitle.h b/src/parse/subtitle.h
index 34321545..c20278a3 100644
--- a/src/parse/subtitle.h
+++ b/src/parse/subtitle.h
@@ -32,7 +32,11 @@ class Font;
class Text
{
public:
- Text () {}
+ Text ()
+ : v_position (0)
+ , v_align (TOP)
+ {}
+
Text (boost::shared_ptr<const cxml::Node> node);
float v_position;
@@ -61,7 +65,10 @@ private:
class Font
{
public:
- Font () {}
+ Font ()
+ : size (0)
+ {}
+
Font (boost::shared_ptr<const cxml::Node> node);
Font (std::list<boost::shared_ptr<Font> > const & font_nodes);