From b15ab1b1cf0aed57d57cad6ca24bf7535bb09189 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sat, 6 May 2017 11:59:43 +0200 Subject: [PATCH] gsdx: use = default instead of trivial constructor/destructor reported by clang-tidy --- plugins/GSdx/GSDrawScanline.cpp | 4 ---- plugins/GSdx/GSDrawScanline.h | 2 +- plugins/GSdx/GSLzma.cpp | 3 --- plugins/GSdx/GSLzma.h | 2 +- plugins/GSdx/PSX/GPUDrawScanline.cpp | 6 +----- plugins/GSdx/PSX/GPUDrawScanline.h | 2 +- plugins/GSdx/PSX/GPUState.cpp | 4 ---- plugins/GSdx/PSX/GPUState.h | 2 +- 8 files changed, 5 insertions(+), 20 deletions(-) diff --git a/plugins/GSdx/GSDrawScanline.cpp b/plugins/GSdx/GSDrawScanline.cpp index 6d906e1fbf..11ffae3aa5 100644 --- a/plugins/GSdx/GSDrawScanline.cpp +++ b/plugins/GSdx/GSDrawScanline.cpp @@ -35,10 +35,6 @@ GSDrawScanline::GSDrawScanline() m_local.gd = &m_global; } -GSDrawScanline::~GSDrawScanline() -{ -} - void GSDrawScanline::BeginDraw(const GSRasterizerData* data) { memcpy(&m_global, &((const SharedData*)data)->global, sizeof(m_global)); diff --git a/plugins/GSdx/GSDrawScanline.h b/plugins/GSdx/GSDrawScanline.h index f1acc6a0b9..f2fb122267 100644 --- a/plugins/GSdx/GSDrawScanline.h +++ b/plugins/GSdx/GSDrawScanline.h @@ -63,7 +63,7 @@ protected: public: GSDrawScanline(); - virtual ~GSDrawScanline(); + virtual ~GSDrawScanline() = default; // IDrawScanline diff --git a/plugins/GSdx/GSLzma.cpp b/plugins/GSdx/GSLzma.cpp index d99a94ff65..fefe5039ba 100644 --- a/plugins/GSdx/GSLzma.cpp +++ b/plugins/GSdx/GSLzma.cpp @@ -158,9 +158,6 @@ GSDumpRaw::GSDumpRaw(char* filename, const char* repack_filename) : GSDumpFile(f m_start = 0; } -GSDumpRaw::~GSDumpRaw() { -} - bool GSDumpRaw::IsEof() { return feof(m_fp); } diff --git a/plugins/GSdx/GSLzma.h b/plugins/GSdx/GSLzma.h index 4f22e56987..0efc568339 100644 --- a/plugins/GSdx/GSLzma.h +++ b/plugins/GSdx/GSLzma.h @@ -78,7 +78,7 @@ class GSDumpRaw : public GSDumpFile { public: GSDumpRaw(char* filename, const char* repack_filename); - virtual ~GSDumpRaw(); + virtual ~GSDumpRaw() = default; bool IsEof(); void Read(void* ptr, size_t size); diff --git a/plugins/GSdx/PSX/GPUDrawScanline.cpp b/plugins/GSdx/PSX/GPUDrawScanline.cpp index 4159fd9d93..0aa8aea7ba 100644 --- a/plugins/GSdx/PSX/GPUDrawScanline.cpp +++ b/plugins/GSdx/PSX/GPUDrawScanline.cpp @@ -31,10 +31,6 @@ GPUDrawScanline::GPUDrawScanline() m_local.gd = &m_global; } -GPUDrawScanline::~GPUDrawScanline() -{ -} - void GPUDrawScanline::BeginDraw(const GSRasterizerData* data) { memcpy(&m_global, &((const SharedData*)data)->global, sizeof(m_global)); @@ -492,4 +488,4 @@ void GPUDrawScanline::DrawRect(const GSVector4i& r, const GSVertexSW& v) // TODO } -#endif \ No newline at end of file +#endif diff --git a/plugins/GSdx/PSX/GPUDrawScanline.h b/plugins/GSdx/PSX/GPUDrawScanline.h index d7c7e26155..e65f31d708 100644 --- a/plugins/GSdx/PSX/GPUDrawScanline.h +++ b/plugins/GSdx/PSX/GPUDrawScanline.h @@ -56,7 +56,7 @@ protected: public: GPUDrawScanline(); - virtual ~GPUDrawScanline(); + virtual ~GPUDrawScanline() = default; // IDrawScanline diff --git a/plugins/GSdx/PSX/GPUState.cpp b/plugins/GSdx/PSX/GPUState.cpp index 90feb5adf8..e1bbaef299 100644 --- a/plugins/GSdx/PSX/GPUState.cpp +++ b/plugins/GSdx/PSX/GPUState.cpp @@ -55,10 +55,6 @@ GPUState::GPUState() Reset(); } -GPUState::~GPUState() -{ -} - void GPUState::Reset() { m_env.Reset(); diff --git a/plugins/GSdx/PSX/GPUState.h b/plugins/GSdx/PSX/GPUState.h index e47a88413b..5e9059ac3e 100644 --- a/plugins/GSdx/PSX/GPUState.h +++ b/plugins/GSdx/PSX/GPUState.h @@ -124,7 +124,7 @@ public: public: GPUState(); - virtual ~GPUState(); + virtual ~GPUState() = default; virtual void Reset(); virtual void Flush();