diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-04-29 09:14:20 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-04-29 20:53:49 +0200 |
| commit | 39fb8198febde1937019db1c300ec363aab5aa56 (patch) | |
| tree | 52bc32134e8ae2b5587b3a62130baa9acf815b60 /src/wx/move_to_dialog.cc | |
| parent | b249700e1da7dd6631a8b4440587f4093a2bdef1 (diff) | |
C++11 tidying.
Diffstat (limited to 'src/wx/move_to_dialog.cc')
| -rw-r--r-- | src/wx/move_to_dialog.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/wx/move_to_dialog.cc b/src/wx/move_to_dialog.cc index 542655477..fdd118520 100644 --- a/src/wx/move_to_dialog.cc +++ b/src/wx/move_to_dialog.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2016 Carl Hetherington <cth@carlh.net> + Copyright (C) 2016-2021 Carl Hetherington <cth@carlh.net> This file is part of DCP-o-matic. @@ -18,15 +18,18 @@ */ + #include "move_to_dialog.h" #include "lib/film.h" #include <wx/spinctrl.h> + using std::list; using std::shared_ptr; using boost::optional; using namespace dcpomatic; + MoveToDialog::MoveToDialog (wxWindow* parent, optional<DCPTime> position, shared_ptr<const Film> film) : TableDialog (parent, _("Move content"), 2, 0, true) , _film (film) @@ -49,13 +52,14 @@ MoveToDialog::MoveToDialog (wxWindow* parent, optional<DCPTime> position, shared } } + DCPTime MoveToDialog::position () const { - shared_ptr<const Film> film = _film.lock (); + auto film = _film.lock (); DCPOMATIC_ASSERT (film); - list<DCPTimePeriod> reels = film->reels (); - list<DCPTimePeriod>::const_iterator i = reels.begin (); + auto reels = film->reels (); + auto i = reels.begin (); for (int j = 0; j < _reel->GetValue() - 1; ++j) { DCPOMATIC_ASSERT (i != reels.end()); ++i; |
