From d6e6c1c9ad224167195cac9aa0fb24d69553e250 Mon Sep 17 00:00:00 2001 From: sakertooth Date: Tue, 26 Sep 2023 07:59:13 -0400 Subject: [PATCH] Move in result to m_data --- src/core/SampleBuffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/SampleBuffer.cpp b/src/core/SampleBuffer.cpp index 2a39888e4..1824b4541 100644 --- a/src/core/SampleBuffer.cpp +++ b/src/core/SampleBuffer.cpp @@ -115,7 +115,7 @@ void SampleBuffer::decodeSampleSF(const QString& audioFile) } } - m_data = result; + m_data = std::move(result); m_audioFile = audioFile; m_sampleRate = sfInfo.samplerate; } @@ -137,7 +137,7 @@ void SampleBuffer::decodeSampleDS(const QString& audioFile) } else { throw std::runtime_error{"Decoding failure: failed to decode DrumSynth file."}; } - m_data = result; + m_data = std::move(result); m_audioFile = audioFile; m_sampleRate = engineRate; }