From 5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 21 Jun 2016 01:14:06 +0100 Subject: Use make_shared<>. --- src/lib/text_subtitle_content.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/text_subtitle_content.cc') diff --git a/src/lib/text_subtitle_content.cc b/src/lib/text_subtitle_content.cc index 24a328d08..ea56ac7bb 100644 --- a/src/lib/text_subtitle_content.cc +++ b/src/lib/text_subtitle_content.cc @@ -26,6 +26,7 @@ #include "raw_convert.h" #include "subtitle_content.h" #include +#include #include #include "i18n.h" @@ -33,6 +34,7 @@ using std::string; using std::cout; using boost::shared_ptr; +using boost::make_shared; TextSubtitleContent::TextSubtitleContent (shared_ptr film, boost::filesystem::path path) : Content (film, path) @@ -58,7 +60,7 @@ TextSubtitleContent::examine (boost::shared_ptr job) boost::mutex::scoped_lock lm (_mutex); _length = s.length (); - subtitle->add_font (shared_ptr (new Font (TEXT_FONT_ID))); + subtitle->add_font (make_shared (TEXT_FONT_ID)); } string -- cgit v1.2.3