From 4fde16b72c4979f108f3cbe759da2a6d9c7f4ccf Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 15 May 2023 00:41:40 +0200 Subject: Style/formatting tweaks. --- examples/make_dcp.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'examples') diff --git a/examples/make_dcp.cc b/examples/make_dcp.cc index a99d4ef0..6e0961a5 100644 --- a/examples/make_dcp.cc +++ b/examples/make_dcp.cc @@ -64,7 +64,7 @@ main () /* Write 24 frames of the same JPEG2000 file */ dcp::ArrayData picture("examples/help.j2c"); for (int i = 0; i < 24; ++i) { - picture_writer->write (picture); + picture_writer->write(picture); } /* And finish off */ @@ -80,8 +80,8 @@ main () std::array left; std::array right; for (int i = 0; i < 48000; ++i) { - left[i] = sin (2 * M_PI * i * 440 / 48000) * 0.25; - right[i] = sin (2 * M_PI * i * 880 / 48000) * 0.25; + left[i] = sin(2 * M_PI * i * 440 / 48000) * 0.25; + right[i] = sin(2 * M_PI * i * 880 / 48000) * 0.25; } std::array audio; audio[0] = left.data(); @@ -89,7 +89,7 @@ main () sound_writer->write(audio.data(), 2, 48000); /* And finish off */ - sound_writer->finalize (); + sound_writer->finalize(); /* Now create a reel */ auto reel = std::make_shared(); @@ -105,9 +105,9 @@ main () cpl->add(reel); /* Write the DCP */ - dcp::DCP dcp ("DCP"); - dcp.add (cpl); - dcp.write_xml (); + auto dcp = dcp::DCP("DCP"); + dcp.add(cpl); + dcp.write_xml(); return 0; } -- cgit v1.2.3