diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-03-12 20:45:07 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-03-12 20:45:07 +0100 |
| commit | 7bc31adf96d88f0a256eac959849b50771b4e2c5 (patch) | |
| tree | 3edfc78a731dc2167a5217730ceb4d580ade4b26 | |
| parent | 74b761faecff92e01740fdaef9b461d5ffdf11c3 (diff) | |
White space: move_to_dialog.{cc,h}
| -rw-r--r-- | src/wx/move_to_dialog.cc | 33 | ||||
| -rw-r--r-- | src/wx/move_to_dialog.h | 4 |
2 files changed, 18 insertions, 19 deletions
diff --git a/src/wx/move_to_dialog.cc b/src/wx/move_to_dialog.cc index 4b930d5d7..dbefcf258 100644 --- a/src/wx/move_to_dialog.cc +++ b/src/wx/move_to_dialog.cc @@ -27,28 +27,27 @@ LIBDCP_DISABLE_WARNINGS LIBDCP_ENABLE_WARNINGS -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) +MoveToDialog::MoveToDialog(wxWindow* parent, optional<DCPTime> position, shared_ptr<const Film> film) + : TableDialog(parent, _("Move content"), 2, 0, true) + , _film(film) { - add (_("Start of reel"), true); - _reel = new wxSpinCtrl (this, wxID_ANY); - _reel->SetRange (1, film->reels().size()); - add (_reel); + add(_("Start of reel"), true); + _reel = new wxSpinCtrl(this, wxID_ANY); + _reel->SetRange(1, film->reels().size()); + add(_reel); - layout (); + layout(); if (position) { int j = 0; for (auto i: film->reels()) { if (i.from == position.get()) { - _reel->SetValue (j + 1); + _reel->SetValue(j + 1); } ++j; } @@ -57,17 +56,17 @@ MoveToDialog::MoveToDialog (wxWindow* parent, optional<DCPTime> position, shared DCPTime -MoveToDialog::position () const +MoveToDialog::position() const { - auto film = _film.lock (); - DCPOMATIC_ASSERT (film); - auto reels = film->reels (); - auto i = reels.begin (); + auto film = _film.lock(); + DCPOMATIC_ASSERT(film); + auto reels = film->reels(); + auto i = reels.begin(); for (int j = 0; j < _reel->GetValue() - 1; ++j) { - DCPOMATIC_ASSERT (i != reels.end()); + DCPOMATIC_ASSERT(i != reels.end()); ++i; } - DCPOMATIC_ASSERT (i != reels.end()); + DCPOMATIC_ASSERT(i != reels.end()); return i->from; } diff --git a/src/wx/move_to_dialog.h b/src/wx/move_to_dialog.h index 16267bc9b..ae5be185f 100644 --- a/src/wx/move_to_dialog.h +++ b/src/wx/move_to_dialog.h @@ -31,9 +31,9 @@ class wxSpinCtrl; class MoveToDialog : public TableDialog { public: - MoveToDialog (wxWindow* parent, boost::optional<dcpomatic::DCPTime> position, std::shared_ptr<const Film> film); + MoveToDialog(wxWindow* parent, boost::optional<dcpomatic::DCPTime> position, std::shared_ptr<const Film> film); - dcpomatic::DCPTime position () const; + dcpomatic::DCPTime position() const; private: std::weak_ptr<const Film> _film; |
