summaryrefslogtreecommitdiff
path: root/src/tools/dcpomatic.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-01-07 23:22:48 +0100
committerCarl Hetherington <cth@carlh.net>2022-01-07 23:23:08 +0100
commit2ac6688e4e75ff26db9208e760966bd071dcc48f (patch)
treeb07e8890c13c23b7d3a05274965029697f4fc4dc /src/tools/dcpomatic.cc
parent89d4090c6b1bdf889c2302b92e1f4bf33cf7cf05 (diff)
C++11 tidying.
Diffstat (limited to 'src/tools/dcpomatic.cc')
-rw-r--r--src/tools/dcpomatic.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc
index 27df23ef0..459832963 100644
--- a/src/tools/dcpomatic.cc
+++ b/src/tools/dcpomatic.cc
@@ -615,7 +615,7 @@ private:
int const r = d->ShowModal ();
if (r == wxID_OK && d->check_path() && maybe_save_film<FilmChangedDuplicatingDialog>()) {
- shared_ptr<Film> film (new Film (d->path()));
+ auto film = make_shared<Film>(d->path());
film->copy_from (_film);
film->set_name (d->path().filename().generic_string());
film->write_metadata ();