From e1c1c65578adc0ba0900926dfe0758930bc878fe Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Sun, 31 Oct 2021 14:28:01 +0100 Subject: cleanup --- source/blender/blenlib/BLI_virtual_array.hh | 20 ++++---------------- .../functions/intern/generic_virtual_array.cc | 17 ++++------------- 2 files changed, 8 insertions(+), 29 deletions(-) diff --git a/source/blender/blenlib/BLI_virtual_array.hh b/source/blender/blenlib/BLI_virtual_array.hh index e94fed7ef24..d9f83d3e1cb 100644 --- a/source/blender/blenlib/BLI_virtual_array.hh +++ b/source/blender/blenlib/BLI_virtual_array.hh @@ -810,14 +810,8 @@ template class VArray : public VArrayCommon { public: VArray() = default; - - VArray(const VArray &other) : VArrayCommon(other) - { - } - - VArray(VArray &&other) noexcept : VArrayCommon(std::move(other)) - { - } + VArray(const VArray &other) = default; + VArray(VArray &&other) noexcept = default; VArray(const VArrayImpl *impl) : VArrayCommon(impl) { @@ -903,14 +897,8 @@ template class VArray : public VArrayCommon { template class VMutableArray : public VArrayCommon { public: VMutableArray() = default; - - VMutableArray(const VMutableArray &other) : VArrayCommon(other) - { - } - - VMutableArray(VMutableArray &&other) noexcept : VArrayCommon(std::move(other)) - { - } + VMutableArray(const VMutableArray &other) = default; + VMutableArray(VMutableArray &&other) noexcept = default; VMutableArray(const VMutableArrayImpl *impl) : VArrayCommon(impl) { diff --git a/source/blender/functions/intern/generic_virtual_array.cc b/source/blender/functions/intern/generic_virtual_array.cc index feaf7dccd9b..5d20fb1b73b 100644 --- a/source/blender/functions/intern/generic_virtual_array.cc +++ b/source/blender/functions/intern/generic_virtual_array.cc @@ -591,13 +591,9 @@ IndexRange GVArrayCommon::index_range() const /** \name #GVArray * \{ */ -GVArray::GVArray(const GVArray &other) : GVArrayCommon(other) -{ -} +GVArray::GVArray(const GVArray &other) = default; -GVArray::GVArray(GVArray &&other) noexcept : GVArrayCommon(std::move(other)) -{ -} +GVArray::GVArray(GVArray &&other) noexcept = default; GVArray::GVArray(const GVArrayImpl *impl) : GVArrayCommon(impl) { @@ -671,13 +667,8 @@ GVArray &GVArray::operator=(GVArray &&other) noexcept /** \name #GVMutableArray * \{ */ -GVMutableArray::GVMutableArray(const GVMutableArray &other) : GVArrayCommon(other) -{ -} - -GVMutableArray::GVMutableArray(GVMutableArray &&other) noexcept : GVArrayCommon(std::move(other)) -{ -} +GVMutableArray::GVMutableArray(const GVMutableArray &other) = default; +GVMutableArray::GVMutableArray(GVMutableArray &&other) noexcept = default; GVMutableArray::GVMutableArray(GVMutableArrayImpl *impl) : GVArrayCommon(impl) { -- cgit v1.2.3