diff options
Diffstat (limited to 'Libraries/LibAudio')
-rw-r--r-- | Libraries/LibAudio/ABuffer.h | 4 | ||||
-rw-r--r-- | Libraries/LibAudio/AWavLoader.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Libraries/LibAudio/ABuffer.h b/Libraries/LibAudio/ABuffer.h index 30a3742e7d..53ccbb0694 100644 --- a/Libraries/LibAudio/ABuffer.h +++ b/Libraries/LibAudio/ABuffer.h @@ -53,8 +53,8 @@ struct ASample { class ABuffer : public RefCounted<ABuffer> { public: static RefPtr<ABuffer> from_pcm_data(ByteBuffer& data, int num_channels, int bits_per_sample, int source_rate); - ABuffer(Vector<ASample>& samples) - : m_samples(samples) + ABuffer(Vector<ASample>&& samples) + : m_samples(move(samples)) {} const Vector<ASample>& samples() const { return m_samples; } diff --git a/Libraries/LibAudio/AWavLoader.cpp b/Libraries/LibAudio/AWavLoader.cpp index 1369d6fb1a..e33200964f 100644 --- a/Libraries/LibAudio/AWavLoader.cpp +++ b/Libraries/LibAudio/AWavLoader.cpp @@ -217,5 +217,5 @@ RefPtr<ABuffer> ABuffer::from_pcm_data(ByteBuffer& data, int num_channels, int b // don't belong. ASSERT(!stream.handle_read_failure()); - return adopt(*new ABuffer(fdata)); + return adopt(*new ABuffer(move(fdata))); } |