From: Carl Hetherington Date: Mon, 17 Jan 2022 19:47:06 +0000 (+0100) Subject: More build fixes. X-Git-Tag: v2.15.184 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=72218f61297458b142e5a2397b01e482d2097270 More build fixes. --- diff --git a/test/closed_caption_test.cc b/test/closed_caption_test.cc index bcb6f84a7..d1cb9c3e3 100644 --- a/test/closed_caption_test.cc +++ b/test/closed_caption_test.cc @@ -100,15 +100,15 @@ BOOST_AUTO_TEST_CASE (closed_caption_test2) BOOST_REQUIRE_EQUAL (ccaps.size(), 3U); auto i = ccaps.begin (); - BOOST_CHECK_EQUAL ((*i)->annotation_text(), "First track"); + BOOST_CHECK_EQUAL ((*i)->annotation_text().get_value_or(""), "First track"); BOOST_REQUIRE (static_cast((*i)->language())); BOOST_CHECK_EQUAL ((*i)->language().get(), "fr-FR"); ++i; - BOOST_CHECK_EQUAL ((*i)->annotation_text(), "Second track"); + BOOST_CHECK_EQUAL ((*i)->annotation_text().get_value_or(""), "Second track"); BOOST_REQUIRE (static_cast((*i)->language())); BOOST_CHECK_EQUAL ((*i)->language().get(), "de-DE"); ++i; - BOOST_CHECK_EQUAL ((*i)->annotation_text(), "Third track"); + BOOST_CHECK_EQUAL ((*i)->annotation_text().get_value_or(""), "Third track"); BOOST_REQUIRE (static_cast((*i)->language())); BOOST_CHECK_EQUAL ((*i)->language().get(), "it-IT");