summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-01-20 23:33:34 +0100
committerCarl Hetherington <cth@carlh.net>2022-01-24 15:59:44 +0100
commit6bf4ea25986d1807fa689405ce6db191fadaa256 (patch)
treeb31d2f35629c38355f0be1afdda7e61497612690 /src
parentb5a2f6308bfc49774b748235fa42ba84bb3bbe2f (diff)
Cleanup: use boost::none.
Diffstat (limited to 'src')
-rw-r--r--src/lib/player.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc
index 82f4e30ee..a10654071 100644
--- a/src/lib/player.cc
+++ b/src/lib/player.cc
@@ -279,9 +279,9 @@ Player::setup_pieces_unlocked ()
_black = Empty (_film, playlist(), bind(&have_video, _1), _playback_length);
_silent = Empty (_film, playlist(), bind(&have_audio, _1), _playback_length);
- _next_video_time = boost::optional<dcpomatic::DCPTime>();
+ _next_video_time = boost::none;
_next_video_eyes = Eyes::BOTH;
- _next_audio_time = boost::optional<dcpomatic::DCPTime>();
+ _next_audio_time = boost::none;
}
@@ -1239,9 +1239,9 @@ Player::seek (DCPTime time, bool accurate)
_next_video_eyes = Eyes::LEFT;
_next_audio_time = time;
} else {
- _next_video_time = optional<DCPTime>();
- _next_video_eyes = optional<Eyes>();
- _next_audio_time = optional<DCPTime>();
+ _next_video_time = boost::none;
+ _next_video_eyes = boost::none;
+ _next_audio_time = boost::none;
}
_black.set_position (time);