From: Carl Hetherington Date: Mon, 16 Oct 2023 21:12:52 +0000 (+0200) Subject: Cleanup: two lines can be one. X-Git-Tag: v1.8.86~1 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=460e2fb65c378256a8f8fb7f3249f746c5b1990e;p=libdcp.git Cleanup: two lines can be one. --- 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);