diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-10-16 23:12:52 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-10-16 23:12:52 +0200 |
| commit | 460e2fb65c378256a8f8fb7f3249f746c5b1990e (patch) | |
| tree | 3cb895c2cb6d1405bf3668773eb49c76a01a0fed /src | |
| parent | b7c82dec9d396a46ef3291eeaa956cb385081d81 (diff) | |
Cleanup: two lines can be one.
Diffstat (limited to 'src')
| -rw-r--r-- | src/sound_asset_writer.cc | 3 |
1 files changed, 1 insertions, 2 deletions
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); |
