C++11 tidying.
[dcpomatic.git] / src / wx / simple_video_view.cc
index 1740e0ffd2b9e98f61523eeb1b3e118a19e7423e..a31d823a99682d9f5dd0e87f6a0f64f9ced9cd62 100644 (file)
@@ -102,7 +102,7 @@ SimpleVideoView::paint ()
                dc.DrawRectangle (_inter_position.x, _inter_position.y + (panel_size.GetHeight() - out_size.height) / 2, _inter_size.width, _inter_size.height);
        }
 
-       optional<dcpomatic::Rect<double> > subs = _viewer->outline_subtitles();
+       auto subs = _viewer->outline_subtitles();
        if (subs) {
                wxPen p (wxColour(0, 255, 0), 2);
                dc.SetPen (p);
@@ -130,7 +130,7 @@ SimpleVideoView::timer ()
        }
 
        display_next_frame (false);
-       DCPTime const next = position() + _viewer->one_video_frame();
+       auto const next = position() + _viewer->one_video_frame();
 
        if (next >= length()) {
                _viewer->finished ();
@@ -160,7 +160,7 @@ SimpleVideoView::start ()
 VideoView::NextFrameResult
 SimpleVideoView::display_next_frame (bool non_blocking)
 {
-       NextFrameResult const r = get_next_frame (non_blocking);
+       auto const r = get_next_frame (non_blocking);
        if (r != SUCCESS) {
                return r;
        }