diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-01-08 16:25:42 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-01-09 11:54:16 +0100 |
| commit | 12d1abf033654727d6ab6278087ff7cfc65d63f6 (patch) | |
| tree | b920b3c3614fc91a1cb2a220972042e6318a6fd4 /src/lib/audio_buffers.cc | |
| parent | ad41d2dd987ffcd2068d9fbf4273108c9f796762 (diff) | |
Move ScopeGuard into libdcp.
Diffstat (limited to 'src/lib/audio_buffers.cc')
| -rw-r--r-- | src/lib/audio_buffers.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/audio_buffers.cc b/src/lib/audio_buffers.cc index 0e31793ea..9b88827f7 100644 --- a/src/lib/audio_buffers.cc +++ b/src/lib/audio_buffers.cc @@ -22,7 +22,7 @@ #include "audio_buffers.h" #include "dcpomatic_assert.h" #include "maths_util.h" -#include "scope_guard.h" +#include <dcp/scope_guard.h> #include <cassert> #include <cstring> #include <cmath> @@ -83,7 +83,7 @@ AudioBuffers::allocate (int channels, int frames) DCPOMATIC_ASSERT (frames >= 0); DCPOMATIC_ASSERT(frames == 0 || channels > 0); - ScopeGuard sg = [this]() { update_data_pointers(); }; + dcp::ScopeGuard sg = [this]() { update_data_pointers(); }; _data.resize(channels); for (int channel = 0; channel < channels; ++channel) { @@ -344,7 +344,7 @@ AudioBuffers::set_channels(int new_channels) { DCPOMATIC_ASSERT(new_channels > 0); - ScopeGuard sg = [this]() { update_data_pointers(); }; + dcp::ScopeGuard sg = [this]() { update_data_pointers(); }; int const old_channels = channels(); _data.resize(new_channels); |
