summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-04-14 09:46:55 +0200
committerCarl Hetherington <cth@carlh.net>2021-04-14 09:51:04 +0200
commitc60f70617d589ba27fc213e698e26e3dac2f7d37 (patch)
treefb672f02318d628178969bfa2a5a5223f45b366f /src
parent274dd30f2b11fe8ea563a2ac7436c9d463865b0b (diff)
C++11 tidying.
Diffstat (limited to 'src')
-rw-r--r--src/subtitle_asset.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/subtitle_asset.cc b/src/subtitle_asset.cc
index 99673da9..bb752441 100644
--- a/src/subtitle_asset.cc
+++ b/src/subtitle_asset.cc
@@ -674,14 +674,14 @@ SubtitleAsset::subtitles_as_xml (xmlpp::Element* xml_root, int time_code_rate, S
last_direction = is->direction ();
}
- text->children.push_back (shared_ptr<order::String> (new order::String (text, order::Font (is, standard), is->text())));
+ text->children.push_back (make_shared<order::String>(text, order::Font (is, standard), is->text()));
}
auto ii = dynamic_pointer_cast<SubtitleImage>(i);
if (ii) {
text.reset ();
subtitle->children.push_back (
- shared_ptr<order::Image> (new order::Image (subtitle, ii->id(), ii->png_image(), ii->h_align(), ii->h_position(), ii->v_align(), ii->v_position()))
+ make_shared<order::Image>(subtitle, ii->id(), ii->png_image(), ii->h_align(), ii->h_position(), ii->v_align(), ii->v_position())
);
}
}