From 11abec50ba13e056a331f0d5c0a51f5e841e63f0 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Sun, 25 Apr 2021 08:11:42 +0200 Subject: [PATCH] Fix copy and move operations of Buffer --- src/sfizz/Buffer.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sfizz/Buffer.h b/src/sfizz/Buffer.h index 399e04ae..e8a5135a 100644 --- a/src/sfizz/Buffer.h +++ b/src/sfizz/Buffer.h @@ -230,7 +230,7 @@ public: * * @param other */ - Buffer(const Buffer& other) + Buffer(const Buffer& other) { resize(other.size()); std::memcpy(this->data(), other.data(), other.size() * sizeof(value_type)); @@ -241,7 +241,7 @@ public: * * @param other */ - Buffer(Buffer&& other) noexcept + Buffer(Buffer&& other) noexcept : largerSize(other.largerSize), alignedSize(other.alignedSize), normalData(other.normalData), @@ -252,7 +252,7 @@ public: other._clear(); } - Buffer& operator=(const Buffer& other) + Buffer& operator=(const Buffer& other) { if (this != &other) { resize(other.size()); @@ -261,7 +261,7 @@ public: return *this; } - Buffer& operator=(Buffer&& other) noexcept + Buffer& operator=(Buffer&& other) noexcept { if (this != &other) { if (largerSize > 0)