From 5d4ae31ba1a31b5db7735aa4d2d18bc6dbf96570 Mon Sep 17 00:00:00 2001 From: Shanoah Alkire Date: Sat, 11 May 2019 19:18:18 -0700 Subject: [PATCH] Add a few default functions in explicitly. (-Wdeprecated-copy) --- common/include/Utilities/pxEvents.h | 1 + common/include/x86emitter/x86types.h | 1 + pcsx2/gui/AppCorePlugins.cpp | 2 ++ plugins/GSdx/GSVector4.h | 2 ++ 4 files changed, 6 insertions(+) diff --git a/common/include/Utilities/pxEvents.h b/common/include/Utilities/pxEvents.h index 409b72dbd9..36ee0819af 100644 --- a/common/include/Utilities/pxEvents.h +++ b/common/include/Utilities/pxEvents.h @@ -81,6 +81,7 @@ public: { } + pxSimpleEvent(const pxSimpleEvent&) = default; virtual wxEvent *Clone() const { return new pxSimpleEvent(*this); } }; diff --git a/common/include/x86emitter/x86types.h b/common/include/x86emitter/x86types.h index 9b2d1f4260..cd90c6f044 100644 --- a/common/include/x86emitter/x86types.h +++ b/common/include/x86emitter/x86types.h @@ -504,6 +504,7 @@ public: xAddressVoid operator-(const void *right) const; xAddressVoid operator*(int factor) const; xAddressVoid operator<<(u32 shift) const; + xAddressReg& operator=(const xAddressReg&) = default; }; // -------------------------------------------------------------------------------------- diff --git a/pcsx2/gui/AppCorePlugins.cpp b/pcsx2/gui/AppCorePlugins.cpp index 5a74bb696e..51907c66ca 100644 --- a/pcsx2/gui/AppCorePlugins.cpp +++ b/pcsx2/gui/AppCorePlugins.cpp @@ -138,6 +138,7 @@ protected: PluginsEnum_t m_pid; public: + LoadSinglePluginEvent(const LoadSinglePluginEvent&) = default; virtual ~LoadSinglePluginEvent() = default; virtual LoadSinglePluginEvent *Clone() const { return new LoadSinglePluginEvent(*this); } @@ -167,6 +168,7 @@ protected: FnPtr_AppPluginPid m_method; public: + SinglePluginMethodEvent(const SinglePluginMethodEvent&) = default; virtual ~SinglePluginMethodEvent() = default; virtual SinglePluginMethodEvent *Clone() const { return new SinglePluginMethodEvent(*this); } diff --git a/plugins/GSdx/GSVector4.h b/plugins/GSdx/GSVector4.h index 955fbf9359..06be7cb732 100644 --- a/plugins/GSdx/GSVector4.h +++ b/plugins/GSdx/GSVector4.h @@ -57,6 +57,8 @@ public: { } + constexpr GSVector4(const GSVector4&) = default; + __forceinline GSVector4(float x, float y, float z, float w) { m = _mm_set_ps(w, z, y, x);