White space: move_to_dialog.{cc,h}
authorCarl Hetherington <cth@carlh.net>
Wed, 12 Mar 2025 19:45:07 +0000 (20:45 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 12 Mar 2025 19:45:07 +0000 (20:45 +0100)
src/wx/move_to_dialog.cc
src/wx/move_to_dialog.h

index 4b930d5d75e53ac949ec44d75d12989789233c29..dbefcf2586a4b247886445adde667854d550ec32 100644 (file)
@@ -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;
 }
index 16267bc9babb3cbaf4831e195f88a849791f5cac..ae5be185f6bfdf6179809ee045f00ec619193ab7 100644 (file)
@@ -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;