X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fmove_to_dialog.cc;h=fdd118520999b50a67367d9f637ec6180aefe24f;hb=39fb8198febde1937019db1c300ec363aab5aa56;hp=542655477381eed773be38cd6440a3f08ee8df1b;hpb=b249700e1da7dd6631a8b4440587f4093a2bdef1;p=dcpomatic.git 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 + Copyright (C) 2016-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,15 +18,18 @@ */ + #include "move_to_dialog.h" #include "lib/film.h" #include + using std::list; using std::shared_ptr; using boost::optional; using namespace dcpomatic; + MoveToDialog::MoveToDialog (wxWindow* parent, optional position, shared_ptr film) : TableDialog (parent, _("Move content"), 2, 0, true) , _film (film) @@ -49,13 +52,14 @@ MoveToDialog::MoveToDialog (wxWindow* parent, optional position, shared } } + DCPTime MoveToDialog::position () const { - shared_ptr film = _film.lock (); + auto film = _film.lock (); DCPOMATIC_ASSERT (film); - list reels = film->reels (); - list::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;