mirror of https://github.com/PCSX2/pcsx2.git
gsdx: use = default instead of trivial constructor/destructor
reported by clang-tidy
This commit is contained in:
parent
94b50b85e7
commit
b15ab1b1cf
|
@ -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));
|
||||
|
|
|
@ -63,7 +63,7 @@ protected:
|
|||
|
||||
public:
|
||||
GSDrawScanline();
|
||||
virtual ~GSDrawScanline();
|
||||
virtual ~GSDrawScanline() = default;
|
||||
|
||||
// IDrawScanline
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -56,7 +56,7 @@ protected:
|
|||
|
||||
public:
|
||||
GPUDrawScanline();
|
||||
virtual ~GPUDrawScanline();
|
||||
virtual ~GPUDrawScanline() = default;
|
||||
|
||||
// IDrawScanline
|
||||
|
||||
|
|
|
@ -55,10 +55,6 @@ GPUState::GPUState()
|
|||
Reset();
|
||||
}
|
||||
|
||||
GPUState::~GPUState()
|
||||
{
|
||||
}
|
||||
|
||||
void GPUState::Reset()
|
||||
{
|
||||
m_env.Reset();
|
||||
|
|
|
@ -124,7 +124,7 @@ public:
|
|||
|
||||
public:
|
||||
GPUState();
|
||||
virtual ~GPUState();
|
||||
virtual ~GPUState() = default;
|
||||
|
||||
virtual void Reset();
|
||||
virtual void Flush();
|
||||
|
|
Loading…
Reference in New Issue