From f28b48b90e3230d1ce6bbcd5031ecb50089ec12b Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Tue, 26 May 2020 16:57:36 +0200 Subject: Fix -Wdeprecated-copy warnings Mostly by avoiding custom functions when the compiler generated ones work just fine Change-Id: If8152fd24c9084bd85be3741fc218709e50fc375 Reviewed-by: Ulf Hermann --- src/3rdparty/masm/stubs/wtf/Vector.h | 1 - src/3rdparty/masm/wtf/CheckedArithmetic.h | 3 +++ src/3rdparty/masm/wtf/PageBlock.h | 8 -------- 3 files changed, 3 insertions(+), 9 deletions(-) (limited to 'src/3rdparty') diff --git a/src/3rdparty/masm/stubs/wtf/Vector.h b/src/3rdparty/masm/stubs/wtf/Vector.h index 2fead9f6ba..cee647a4b5 100644 --- a/src/3rdparty/masm/stubs/wtf/Vector.h +++ b/src/3rdparty/masm/stubs/wtf/Vector.h @@ -55,7 +55,6 @@ class Vector : public std::vector { public: Vector() {} Vector(int initialSize) : std::vector(initialSize) {} - Vector(const Vector &other) : std::vector(other) {} Vector(std::initializer_list list) : std::vector(list) {} inline void append(const T& value) diff --git a/src/3rdparty/masm/wtf/CheckedArithmetic.h b/src/3rdparty/masm/wtf/CheckedArithmetic.h index dd4acbb9b5..7d36ca5c28 100644 --- a/src/3rdparty/masm/wtf/CheckedArithmetic.h +++ b/src/3rdparty/masm/wtf/CheckedArithmetic.h @@ -430,6 +430,9 @@ public: { } + Checked(const Checked &) = default; + + Checked(ResultOverflowedTag) : m_value(0) { diff --git a/src/3rdparty/masm/wtf/PageBlock.h b/src/3rdparty/masm/wtf/PageBlock.h index 4d408e1c91..09e4048239 100644 --- a/src/3rdparty/masm/wtf/PageBlock.h +++ b/src/3rdparty/masm/wtf/PageBlock.h @@ -37,7 +37,6 @@ inline bool isPowerOfTwo(size_t size) { return !(size & (size - 1)); } class PageBlock { public: PageBlock(); - PageBlock(const PageBlock&); PageBlock(void*, size_t, bool hasGuardPages); void* realBase() const { return m_realBase; } @@ -69,13 +68,6 @@ inline PageBlock::PageBlock() { } -inline PageBlock::PageBlock(const PageBlock& other) - : m_realBase(other.m_realBase) - , m_base(other.m_base) - , m_size(other.m_size) -{ -} - inline PageBlock::PageBlock(void* base, size_t size, bool hasGuardPages) : m_realBase(base) , m_base(static_cast(base) + ((base && hasGuardPages) ? pageSize() : 0)) -- cgit v1.2.3