summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-07-20 22:12:37 +0100
committerCarl Hetherington <cth@carlh.net>2018-07-20 22:12:37 +0100
commitaa0c63e482b63d7e85407ca72fa0ba5e5e1259ad (patch)
tree5e12c8e53d80dfc171252e5c148954d0810d6696 /src/lib
parent06b218772cf18041edb11b5ed35c8a305b8fe26a (diff)
Thinko in previous.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/caption_content.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/caption_content.cc b/src/lib/caption_content.cc
index 801ccc0d0..af534980a 100644
--- a/src/lib/caption_content.cc
+++ b/src/lib/caption_content.cc
@@ -90,7 +90,7 @@ CaptionContent::from_xml (Content* parent, cxml::ConstNodePtr node, int version)
if (!node->optional_number_child<double>("SubtitleXOffset") && !node->optional_number_child<double>("SubtitleOffset")) {
return shared_ptr<CaptionContent> ();
}
- shared_ptr<CaptionContent> (new CaptionContent (parent, node, version));
+ return shared_ptr<CaptionContent> (new CaptionContent (parent, node, version));
}
if (!node->node_child("Caption")) {