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;
}
GSDrawScanline::~GSDrawScanline()
{
}
void GSDrawScanline::BeginDraw(const GSRasterizerData* data)
{
memcpy(&m_global, &((const SharedData*)data)->global, sizeof(m_global));

View File

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

View File

@ -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);
}

View File

@ -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);

View File

@ -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
#endif

View File

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

View File

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

View File

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