mirror of https://github.com/PCSX2/pcsx2.git
core: use = default instead of trivial constructor/destructor
reported by clang-tidy Note: drop throw() specifier as it is the 'default' in C++11 for destructor
This commit is contained in:
parent
d332bb1645
commit
585ccc1b24
|
@ -31,7 +31,7 @@ public:
|
|||
public:
|
||||
IsoDirectory(SectorSource& r);
|
||||
IsoDirectory(SectorSource& r, IsoFileDescriptor directoryEntry);
|
||||
virtual ~IsoDirectory() throw();
|
||||
virtual ~IsoDirectory() = default;
|
||||
|
||||
wxString FStype_ToString() const;
|
||||
SectorSource& GetReader() const { return internalReader; }
|
||||
|
|
|
@ -110,10 +110,6 @@ IsoDirectory::IsoDirectory(SectorSource& r, IsoFileDescriptor directoryEntry)
|
|||
Init(directoryEntry);
|
||||
}
|
||||
|
||||
IsoDirectory::~IsoDirectory() throw()
|
||||
{
|
||||
}
|
||||
|
||||
void IsoDirectory::Init(const IsoFileDescriptor& directoryEntry)
|
||||
{
|
||||
// parse directory sector
|
||||
|
|
|
@ -35,7 +35,3 @@ int IsoFSCDVD::getNumSectors()
|
|||
|
||||
return td.lsn;
|
||||
}
|
||||
|
||||
IsoFSCDVD::~IsoFSCDVD() throw()
|
||||
{
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ class IsoFSCDVD: public SectorSource
|
|||
{
|
||||
public:
|
||||
IsoFSCDVD();
|
||||
virtual ~IsoFSCDVD() throw();
|
||||
virtual ~IsoFSCDVD() = default;
|
||||
|
||||
virtual bool readSector(unsigned char* buffer, int lba);
|
||||
|
||||
|
|
|
@ -53,10 +53,6 @@ void IsoFile::Init()
|
|||
internalReader.readSector(currentSector, currentSectorNumber);
|
||||
}
|
||||
|
||||
IsoFile::~IsoFile() throw()
|
||||
{
|
||||
}
|
||||
|
||||
u32 IsoFile::seek(u32 absoffset)
|
||||
{
|
||||
u32 endOffset = absoffset;
|
||||
|
|
|
@ -38,7 +38,7 @@ public:
|
|||
IsoFile(const IsoDirectory& dir, const wxString& filename);
|
||||
IsoFile(SectorSource& reader, const wxString& filename);
|
||||
IsoFile(SectorSource& reader, const IsoFileDescriptor& fileEntry);
|
||||
virtual ~IsoFile() throw();
|
||||
virtual ~IsoFile() = default;
|
||||
|
||||
u32 seek(u32 absoffset);
|
||||
u32 seek(s64 offset, wxSeekMode ref_position);
|
||||
|
|
|
@ -143,7 +143,7 @@ public:
|
|||
fd = hostfd;
|
||||
}
|
||||
|
||||
virtual ~HostFile() {}
|
||||
virtual ~HostFile() = default;
|
||||
|
||||
static __fi int translate_error(int err)
|
||||
{
|
||||
|
|
|
@ -137,7 +137,7 @@ protected:
|
|||
|
||||
public:
|
||||
LinuxPipeRedirection(FILE* stdstream);
|
||||
virtual ~LinuxPipeRedirection() noexcept;
|
||||
virtual ~LinuxPipeRedirection() = default;
|
||||
};
|
||||
|
||||
LinuxPipeRedirection::LinuxPipeRedirection(FILE* stdstream)
|
||||
|
@ -154,10 +154,6 @@ LinuxPipeRedirection::LinuxPipeRedirection(FILE* stdstream)
|
|||
}
|
||||
}
|
||||
|
||||
LinuxPipeRedirection::~LinuxPipeRedirection() noexcept
|
||||
{
|
||||
}
|
||||
|
||||
PipeRedirectionBase* NewPipeRedir(FILE* stdstream)
|
||||
{
|
||||
try {
|
||||
|
|
|
@ -315,8 +315,6 @@ memLoadingState::memLoadingState( const SafeArray<u8>* load_from )
|
|||
{
|
||||
}
|
||||
|
||||
memLoadingState::~memLoadingState() throw() { }
|
||||
|
||||
// Loading of state data from a memory buffer...
|
||||
void memLoadingState::FreezeMem( void* data, int size )
|
||||
{
|
||||
|
|
|
@ -247,7 +247,7 @@ public:
|
|||
class memLoadingState : public SaveStateBase
|
||||
{
|
||||
public:
|
||||
virtual ~memLoadingState() throw();
|
||||
virtual ~memLoadingState() = default;
|
||||
|
||||
memLoadingState( const VmStateBuffer& load_from );
|
||||
memLoadingState( const VmStateBuffer* load_from );
|
||||
|
|
|
@ -344,7 +344,7 @@ public:
|
|||
|
||||
public:
|
||||
CpuInitializerSet() {}
|
||||
virtual ~CpuInitializerSet() throw() {}
|
||||
virtual ~CpuInitializerSet() = default;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -29,10 +29,6 @@ SysThreadBase::SysThreadBase() :
|
|||
{
|
||||
}
|
||||
|
||||
SysThreadBase::~SysThreadBase() throw()
|
||||
{
|
||||
}
|
||||
|
||||
void SysThreadBase::Start()
|
||||
{
|
||||
_parent::Start();
|
||||
|
|
|
@ -82,7 +82,7 @@ protected:
|
|||
|
||||
public:
|
||||
explicit SysThreadBase();
|
||||
virtual ~SysThreadBase() throw();
|
||||
virtual ~SysThreadBase() = default;
|
||||
|
||||
// Thread safety for IsOpen / IsClosed: The execution mode can change at any time on
|
||||
// any thread, so the actual status may have already changed by the time this function
|
||||
|
|
Loading…
Reference in New Issue