diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-01-07 23:22:48 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-01-07 23:23:08 +0100 |
| commit | 2ac6688e4e75ff26db9208e760966bd071dcc48f (patch) | |
| tree | b07e8890c13c23b7d3a05274965029697f4fc4dc /src/tools | |
| parent | 89d4090c6b1bdf889c2302b92e1f4bf33cf7cf05 (diff) | |
C++11 tidying.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dcpomatic.cc | 2 | ||||
| -rw-r--r-- | src/tools/dcpomatic_playlist.cc | 2 |
2 files changed, 2 insertions, 2 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 (); diff --git a/src/tools/dcpomatic_playlist.cc b/src/tools/dcpomatic_playlist.cc index 6f06c0624..d80d13903 100644 --- a/src/tools/dcpomatic_playlist.cc +++ b/src/tools/dcpomatic_playlist.cc @@ -206,7 +206,7 @@ private: void new_playlist () { - shared_ptr<SignalSPL> spl (new SignalSPL(wx_to_std(_("New Playlist")))); + auto spl = make_shared<SignalSPL>(wx_to_std(_("New Playlist"))); add_playlist_to_model (spl); add_playlist_to_view (spl); _list->SetItemState (_list->GetItemCount() - 1, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED); |
