diff --git a/daemon/src/audio/audiobuffer.cpp b/daemon/src/audio/audiobuffer.cpp index 3a2ad2a64df55c7e7a9fe84e6ad495271d4e8118..51eac48567ac6c069db7b8a860efce5fabf45a25 100644 --- a/daemon/src/audio/audiobuffer.cpp +++ b/daemon/src/audio/audiobuffer.cpp @@ -63,7 +63,7 @@ AudioBuffer& AudioBuffer::operator=(const AudioBuffer& other) { sampleRate_ = other.sampleRate_; return *this; } - + AudioBuffer& AudioBuffer::operator=(AudioBuffer&& other) { samples_ = std::move( other.samples_ ); sampleRate_ = other.sampleRate_; diff --git a/daemon/src/audio/audiobuffer.h b/daemon/src/audio/audiobuffer.h index e8f20a15030713307c63ef81366c21770fc1286b..82e23b8243eb1129128d121bf4639114bb273ca4 100644 --- a/daemon/src/audio/audiobuffer.h +++ b/daemon/src/audio/audiobuffer.h @@ -103,17 +103,17 @@ class AudioBuffer { * If copy_content is set to true, the other buffer content is also copied. */ AudioBuffer(const AudioBuffer& other, bool copy_content = false); - + /** * Move constructor */ AudioBuffer(AudioBuffer&& other) : sampleRate_(other.sampleRate_), samples_( std::move(other.samples_) ) {}; - + /** * Copy operator */ AudioBuffer& operator=(const AudioBuffer& other); - + /** * Move operator */