From 460e2fb65c378256a8f8fb7f3249f746c5b1990e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 16 Oct 2023 23:12:52 +0200 Subject: Cleanup: two lines can be one. --- src/sound_asset_writer.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/sound_asset_writer.cc b/src/sound_asset_writer.cc index 49170990..9ec93924 100644 --- a/src/sound_asset_writer.cc +++ b/src/sound_asset_writer.cc @@ -209,8 +209,7 @@ LIBDCP_ENABLE_WARNINGS /* Remove duplicates */ std::sort(dcp_channels.begin(), dcp_channels.end()); - auto last = std::unique(dcp_channels.begin(), dcp_channels.end()); - dcp_channels.erase(last, dcp_channels.end()); + dcp_channels.erase(std::unique(dcp_channels.begin(), dcp_channels.end()), dcp_channels.end()); for (auto dcp_channel: dcp_channels) { auto channel = new ASDCP::MXF::AudioChannelLabelSubDescriptor(asdcp_smpte_dict); -- cgit v1.2.3