Skip to content

Commit

Permalink
Add a few default functions in explicitly. (-Wdeprecated-copy)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcum42 committed May 12, 2019
1 parent 284880f commit 5d4ae31
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/include/Utilities/pxEvents.h
Expand Up @@ -81,6 +81,7 @@ class pxSimpleEvent : public wxEvent
{
}

pxSimpleEvent(const pxSimpleEvent&) = default;
virtual wxEvent *Clone() const { return new pxSimpleEvent(*this); }
};

Expand Down
1 change: 1 addition & 0 deletions common/include/x86emitter/x86types.h
Expand Up @@ -504,6 +504,7 @@ class xAddressReg : public xRegisterLong
xAddressVoid operator-(const void *right) const;
xAddressVoid operator*(int factor) const;
xAddressVoid operator<<(u32 shift) const;
xAddressReg& operator=(const xAddressReg&) = default;
};

// --------------------------------------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions pcsx2/gui/AppCorePlugins.cpp
Expand Up @@ -138,6 +138,7 @@ class LoadSinglePluginEvent : public pxActionEvent
PluginsEnum_t m_pid;

public:
LoadSinglePluginEvent(const LoadSinglePluginEvent&) = default;
virtual ~LoadSinglePluginEvent() = default;
virtual LoadSinglePluginEvent *Clone() const { return new LoadSinglePluginEvent(*this); }

Expand Down Expand Up @@ -167,6 +168,7 @@ class SinglePluginMethodEvent : public pxActionEvent
FnPtr_AppPluginPid m_method;

public:
SinglePluginMethodEvent(const SinglePluginMethodEvent&) = default;
virtual ~SinglePluginMethodEvent() = default;
virtual SinglePluginMethodEvent *Clone() const { return new SinglePluginMethodEvent(*this); }

Expand Down
2 changes: 2 additions & 0 deletions plugins/GSdx/GSVector4.h
Expand Up @@ -57,6 +57,8 @@ class alignas(16) GSVector4
{
}

constexpr GSVector4(const GSVector4&) = default;

__forceinline GSVector4(float x, float y, float z, float w)
{
m = _mm_set_ps(w, z, y, x);
Expand Down

0 comments on commit 5d4ae31

Please sign in to comment.