From d316965a8c6fce4a85b776e8eaac2c700b6425d6 Mon Sep 17 00:00:00 2001 From: Philippe Groarke <philippe.groarke@savoirfairelinux.com> Date: Thu, 23 Oct 2014 14:19:08 -0400 Subject: [PATCH] audiobuffer: cleanup Change-Id: Ia523eaad3974111a2b1e5c98e768469d933f7cc0 --- daemon/src/audio/audiobuffer.cpp | 2 +- daemon/src/audio/audiobuffer.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/daemon/src/audio/audiobuffer.cpp b/daemon/src/audio/audiobuffer.cpp index 3a2ad2a64d..51eac48567 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 e8f20a1503..82e23b8243 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 */ -- GitLab