From: Carl Hetherington Date: Thu, 20 Jan 2022 22:33:34 +0000 (+0100) Subject: Cleanup: use boost::none. X-Git-Tag: checked-for-v2.16.x~33 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=6bf4ea25986d1807fa689405ce6db191fadaa256;p=dcpomatic.git Cleanup: use boost::none. --- 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(); + _next_video_time = boost::none; _next_video_eyes = Eyes::BOTH; - _next_audio_time = boost::optional(); + _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(); - _next_video_eyes = optional(); - _next_audio_time = optional(); + _next_video_time = boost::none; + _next_video_eyes = boost::none; + _next_audio_time = boost::none; } _black.set_position (time);