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:
Gregory Hainaut 2017-05-06 13:02:02 +02:00
parent d332bb1645
commit 585ccc1b24
13 changed files with 8 additions and 30 deletions

View File

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

View File

@ -110,10 +110,6 @@ IsoDirectory::IsoDirectory(SectorSource& r, IsoFileDescriptor directoryEntry)
Init(directoryEntry);
}
IsoDirectory::~IsoDirectory() throw()
{
}
void IsoDirectory::Init(const IsoFileDescriptor& directoryEntry)
{
// parse directory sector

View File

@ -35,7 +35,3 @@ int IsoFSCDVD::getNumSectors()
return td.lsn;
}
IsoFSCDVD::~IsoFSCDVD() throw()
{
}

View File

@ -23,7 +23,7 @@ class IsoFSCDVD: public SectorSource
{
public:
IsoFSCDVD();
virtual ~IsoFSCDVD() throw();
virtual ~IsoFSCDVD() = default;
virtual bool readSector(unsigned char* buffer, int lba);

View File

@ -53,10 +53,6 @@ void IsoFile::Init()
internalReader.readSector(currentSector, currentSectorNumber);
}
IsoFile::~IsoFile() throw()
{
}
u32 IsoFile::seek(u32 absoffset)
{
u32 endOffset = absoffset;

View File

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

View File

@ -143,7 +143,7 @@ public:
fd = hostfd;
}
virtual ~HostFile() {}
virtual ~HostFile() = default;
static __fi int translate_error(int err)
{

View File

@ -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 {

View File

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

View File

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

View File

@ -344,7 +344,7 @@ public:
public:
CpuInitializerSet() {}
virtual ~CpuInitializerSet() throw() {}
virtual ~CpuInitializerSet() = default;
};

View File

@ -29,10 +29,6 @@ SysThreadBase::SysThreadBase() :
{
}
SysThreadBase::~SysThreadBase() throw()
{
}
void SysThreadBase::Start()
{
_parent::Start();

View File

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