From c60f70617d589ba27fc213e698e26e3dac2f7d37 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 14 Apr 2021 09:46:55 +0200 Subject: C++11 tidying. --- src/subtitle_asset.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 (new order::String (text, order::Font (is, standard), is->text()))); + text->children.push_back (make_shared(text, order::Font (is, standard), is->text())); } auto ii = dynamic_pointer_cast(i); if (ii) { text.reset (); subtitle->children.push_back ( - shared_ptr (new order::Image (subtitle, ii->id(), ii->png_image(), ii->h_align(), ii->h_position(), ii->v_align(), ii->v_position())) + make_shared(subtitle, ii->id(), ii->png_image(), ii->h_align(), ii->h_position(), ii->v_align(), ii->v_position()) ); } } -- cgit v1.2.3