summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-09-17 22:58:36 +0200
committerCarl Hetherington <cth@carlh.net>2023-09-17 22:58:36 +0200
commit7aee68aff2fd8d229ef1dfd8559ab949f05b3291 (patch)
treeae8a1d17e697490154d26359378ad055d6df8aa4
parent8a073a94eff9cb7f290ce9619fcf025b18d33f62 (diff)
Cleanup: use make_shared.
-rw-r--r--src/lib/film.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc
index db5733558..9150ba956 100644
--- a/src/lib/film.cc
+++ b/src/lib/film.cc
@@ -1882,8 +1882,8 @@ Film::content_summary (DCPTimePeriod period) const
void
Film::use_template (string name)
{
- _template_film.reset (new Film (optional<boost::filesystem::path>()));
_template_film->read_metadata (Config::instance()->template_read_path(name));
+ _template_film = std::make_shared<Film>(optional<boost::filesystem::path>());
_use_isdcf_name = _template_film->_use_isdcf_name;
_dcp_content_type = _template_film->_dcp_content_type;
_container = _template_film->_container;