From e5e2c1d6817e04fc67a0472e7e8ca904893544e2 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 16 Oct 2023 20:19:53 +0200 Subject: Replace a slightly tortured lambda with a loop. --- src/lib/reel_writer.cc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/lib/reel_writer.cc b/src/lib/reel_writer.cc index 9383f7c83..78e504697 100644 --- a/src/lib/reel_writer.cc +++ b/src/lib/reel_writer.cc @@ -194,16 +194,11 @@ ReelWriter::ReelWriter ( DCPOMATIC_ASSERT (film()->directory()); std::vector extra_active_channels; - auto add_if_mapped = [this, &extra_active_channels](dcp::Channel channel) { + for (auto channel: std::vector{dcp::Channel::HI, dcp::Channel::VI, dcp::Channel::BSL, dcp::Channel::BSR}) { if (channel_is_mapped(film(), channel)) { extra_active_channels.push_back(channel); } - }; - - add_if_mapped(dcp::Channel::HI); - add_if_mapped(dcp::Channel::VI); - add_if_mapped(dcp::Channel::BSL); - add_if_mapped(dcp::Channel::BSR); + } /* Write the sound asset into the film directory so that we leave the creation of the DCP directory until the last minute. -- cgit v1.2.3