gsdx: use = default instead of trivial constructor/destructor

reported by clang-tidy
This commit is contained in:
Gregory Hainaut 2017-05-06 11:59:43 +02:00
parent 94b50b85e7
commit b15ab1b1cf
8 changed files with 5 additions and 20 deletions

View File

@ -35,10 +35,6 @@ GSDrawScanline::GSDrawScanline()
m_local.gd = &m_global; m_local.gd = &m_global;
} }
GSDrawScanline::~GSDrawScanline()
{
}
void GSDrawScanline::BeginDraw(const GSRasterizerData* data) void GSDrawScanline::BeginDraw(const GSRasterizerData* data)
{ {
memcpy(&m_global, &((const SharedData*)data)->global, sizeof(m_global)); memcpy(&m_global, &((const SharedData*)data)->global, sizeof(m_global));

View File

@ -63,7 +63,7 @@ protected:
public: public:
GSDrawScanline(); GSDrawScanline();
virtual ~GSDrawScanline(); virtual ~GSDrawScanline() = default;
// IDrawScanline // IDrawScanline

View File

@ -158,9 +158,6 @@ GSDumpRaw::GSDumpRaw(char* filename, const char* repack_filename) : GSDumpFile(f
m_start = 0; m_start = 0;
} }
GSDumpRaw::~GSDumpRaw() {
}
bool GSDumpRaw::IsEof() { bool GSDumpRaw::IsEof() {
return feof(m_fp); return feof(m_fp);
} }

View File

@ -78,7 +78,7 @@ class GSDumpRaw : public GSDumpFile {
public: public:
GSDumpRaw(char* filename, const char* repack_filename); GSDumpRaw(char* filename, const char* repack_filename);
virtual ~GSDumpRaw(); virtual ~GSDumpRaw() = default;
bool IsEof(); bool IsEof();
void Read(void* ptr, size_t size); void Read(void* ptr, size_t size);

View File

@ -31,10 +31,6 @@ GPUDrawScanline::GPUDrawScanline()
m_local.gd = &m_global; m_local.gd = &m_global;
} }
GPUDrawScanline::~GPUDrawScanline()
{
}
void GPUDrawScanline::BeginDraw(const GSRasterizerData* data) void GPUDrawScanline::BeginDraw(const GSRasterizerData* data)
{ {
memcpy(&m_global, &((const SharedData*)data)->global, sizeof(m_global)); memcpy(&m_global, &((const SharedData*)data)->global, sizeof(m_global));

View File

@ -56,7 +56,7 @@ protected:
public: public:
GPUDrawScanline(); GPUDrawScanline();
virtual ~GPUDrawScanline(); virtual ~GPUDrawScanline() = default;
// IDrawScanline // IDrawScanline

View File

@ -55,10 +55,6 @@ GPUState::GPUState()
Reset(); Reset();
} }
GPUState::~GPUState()
{
}
void GPUState::Reset() void GPUState::Reset()
{ {
m_env.Reset(); m_env.Reset();

View File

@ -124,7 +124,7 @@ public:
public: public:
GPUState(); GPUState();
virtual ~GPUState(); virtual ~GPUState() = default;
virtual void Reset(); virtual void Reset();
virtual void Flush(); virtual void Flush();