diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-21 01:14:06 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-21 01:14:06 +0100 |
| commit | 5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f (patch) | |
| tree | 769dca1358e35017ce5a5b3ab2dfafe2b24d61ed /src/lib/text_subtitle_content.cc | |
| parent | 4e83acad0c2a5c528709a175a80261b8147d3b49 (diff) | |
Use make_shared<>.
Diffstat (limited to 'src/lib/text_subtitle_content.cc')
| -rw-r--r-- | src/lib/text_subtitle_content.cc | 4 |
1 files changed, 3 insertions, 1 deletions
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 <libxml++/libxml++.h> +#include <boost/make_shared.hpp> #include <iostream> #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<const Film> film, boost::filesystem::path path) : Content (film, path) @@ -58,7 +60,7 @@ TextSubtitleContent::examine (boost::shared_ptr<Job> job) boost::mutex::scoped_lock lm (_mutex); _length = s.length (); - subtitle->add_font (shared_ptr<Font> (new Font (TEXT_FONT_ID))); + subtitle->add_font (make_shared<Font> (TEXT_FONT_ID)); } string |
