summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-12-19 21:45:52 +0100
committerCarl Hetherington <cth@carlh.net>2025-09-03 10:22:35 +0200
commit442481cd5d5007e254606785387e334557871132 (patch)
treeacf448575a43db127a392246e0e7698787fb5620 /test
parent9278232a79b8e275d144f1d1f2652f27457320e9 (diff)
Use some default constructors.
Diffstat (limited to 'test')
-rw-r--r--test/dcp_subtitle_test.cc2
-rw-r--r--test/empty_test.cc4
-rw-r--r--test/reels_test.cc4
3 files changed, 5 insertions, 5 deletions
diff --git a/test/dcp_subtitle_test.cc b/test/dcp_subtitle_test.cc
index 0386c3b46..abc8512d7 100644
--- a/test/dcp_subtitle_test.cc
+++ b/test/dcp_subtitle_test.cc
@@ -129,7 +129,7 @@ BOOST_AUTO_TEST_CASE (dcp_subtitle_test2)
stored = optional<ContentStringText> ();
while (!decoder->pass()) {
- if (stored && stored->from() == ContentTime(0)) {
+ if (stored && stored->from() == ContentTime()) {
/* Text passed around by the player should be unescaped */
BOOST_CHECK_EQUAL(stored->subs.front().text(), "<b>Hello world!</b>");
}
diff --git a/test/empty_test.cc b/test/empty_test.cc
index 50849a1ec..4e0d87af0 100644
--- a/test/empty_test.cc
+++ b/test/empty_test.cc
@@ -101,7 +101,7 @@ BOOST_AUTO_TEST_CASE (empty_test2)
* A A A B
*/
contentA->video->set_length (3);
- contentA->set_position (film, DCPTime(0));
+ contentA->set_position(film, DCPTime());
contentB->video->set_length (1);
contentB->set_position (film, DCPTime::from_frames(7, vfr));
@@ -139,7 +139,7 @@ BOOST_AUTO_TEST_CASE (empty_test3)
* A A A B
*/
contentA->video->set_length (3);
- contentA->set_position (film, DCPTime(0));
+ contentA->set_position(film, DCPTime());
contentB->video->set_length (1);
contentB->set_position (film, DCPTime::from_frames(7, vfr));
diff --git a/test/reels_test.cc b/test/reels_test.cc
index c43ffb9ea..1684759ec 100644
--- a/test/reels_test.cc
+++ b/test/reels_test.cc
@@ -319,8 +319,8 @@ BOOST_AUTO_TEST_CASE (reels_test7)
film->set_reel_type (ReelType::BY_VIDEO_CONTENT);
BOOST_REQUIRE_EQUAL (film->reels().size(), 2U);
- BOOST_CHECK (film->reels().front() == DCPTimePeriod(DCPTime(0), DCPTime::from_frames(2 * 24, 24)));
- BOOST_CHECK (film->reels().back() == DCPTimePeriod(DCPTime::from_frames(2 * 24, 24), DCPTime::from_frames(3 * 24 + 1, 24)));
+ BOOST_CHECK(film->reels().front() == DCPTimePeriod(DCPTime(), DCPTime::from_frames(2 * 24, 24)));
+ BOOST_CHECK(film->reels().back() == DCPTimePeriod(DCPTime::from_frames(2 * 24, 24), DCPTime::from_frames(3 * 24 + 1, 24)));
make_and_verify_dcp (film);
}