Cleanup: use auto.
authorCarl Hetherington <cth@carlh.net>
Sun, 18 Feb 2024 22:34:26 +0000 (23:34 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 19 Feb 2024 08:54:43 +0000 (09:54 +0100)
src/lib/butler.cc

index b2fbc6c60b630be0c0478dace3b922c735517878..dd98745878a1aadac6fb8699c6ee4ab8ceabb5bf 100644 (file)
@@ -138,7 +138,7 @@ Butler::should_run () const
 {
        if (_video.size() >= MAXIMUM_VIDEO_READAHEAD * 10) {
                /* This is way too big */
-               optional<DCPTime> pos = _audio.peek();
+               auto pos = _audio.peek();
                if (pos) {
                        throw ProgrammingError
                                (__FILE__, __LINE__, String::compose ("Butler video buffers reached %1 frames (audio is %2 at %3)", _video.size(), _audio.size(), pos->get()));