core: use = default for trivial destructor

Again not reported by clang-tidy and done with sed
This commit is contained in:
Gregory Hainaut 2017-05-06 15:28:33 +02:00
parent 2ff43f2ed8
commit 47264dc350
25 changed files with 71 additions and 71 deletions

View File

@ -20,5 +20,5 @@ class SectorSource
public:
virtual int getNumSectors()=0;
virtual bool readSector(unsigned char* buffer, int lba)=0;
virtual ~SectorSource() throw() {}
virtual ~SectorSource() = default;
};

View File

@ -142,7 +142,7 @@ class ElfObject
// Destructor!
// C++ does all the cleanup automagically for us.
virtual ~ElfObject() throw() { }
virtual ~ElfObject() = default;
ElfObject(const wxString& srcfile, IsoFile& isofile);
ElfObject( const wxString& srcfile, uint hdrsize );

View File

@ -178,7 +178,7 @@ struct Game_Data
class IGameDatabase
{
public:
virtual ~IGameDatabase() throw() {}
virtual ~IGameDatabase() = default;
virtual wxString getBaseKey() const=0;
virtual bool findGame(Game_Data& dest, const wxString& id)=0;

View File

@ -232,7 +232,7 @@ protected:
static const int MemoryBaseAllocSize = _8mb; // 8 meg base alloc when PS2 main memory is excluded
public:
virtual ~memSavingState() throw() { }
virtual ~memSavingState() = default;
memSavingState( VmStateBuffer& save_to );
memSavingState( VmStateBuffer* save_to );

View File

@ -234,7 +234,7 @@ public:
public:
IEventListener_SysState() {}
virtual ~IEventListener_SysState() throw() {}
virtual ~IEventListener_SysState() = default;
virtual void DispatchEvent( const SysStateUnlockedParams& status )
{

View File

@ -126,7 +126,7 @@ public:
m_Idx = 0;
m_lastEEcycles = 0;
}
virtual ~BaseVUmicroCPU() throw() {}
virtual ~BaseVUmicroCPU() = default;
// Called by the PS2 VM's event manager for every internal vertical sync (occurs at either
// 50hz (pal) or 59.94hz (NTSC).

View File

@ -39,7 +39,7 @@ public:
m_datasize = 0;
}
virtual ~ArchiveEntry() throw() {}
virtual ~ArchiveEntry() = default;
ArchiveEntry& SetDataIndex( uptr idx )
{
@ -83,7 +83,7 @@ protected:
std::unique_ptr<ArchiveDataBuffer> m_data;
public:
virtual ~ArchiveEntryList() throw() {}
virtual ~ArchiveEntryList() = default;
ArchiveEntryList() {}

View File

@ -260,7 +260,7 @@ protected:
public:
FramerateManager() { Reset(); }
virtual ~FramerateManager() throw() {}
virtual ~FramerateManager() = default;
void Reset();
void Resume();

View File

@ -49,7 +49,7 @@ protected:
Threading::Mutex* m_mtx_resume;
public:
virtual ~BaseSysExecEvent_ScopedCore() throw() {}
virtual ~BaseSysExecEvent_ScopedCore() = default;
BaseSysExecEvent_ScopedCore& SetResumeStates( SynchronousActionState* sync, Threading::Mutex* mutex )
{
@ -87,7 +87,7 @@ class SysExecEvent_CoreThreadClose : public BaseSysExecEvent_ScopedCore
public:
wxString GetEventName() const { return L"CloseCoreThread"; }
virtual ~SysExecEvent_CoreThreadClose() throw() {}
virtual ~SysExecEvent_CoreThreadClose() = default;
SysExecEvent_CoreThreadClose* Clone() const { return new SysExecEvent_CoreThreadClose( *this ); }
SysExecEvent_CoreThreadClose( SynchronousActionState* sync=NULL, SynchronousActionState* resume_sync=NULL, Threading::Mutex* mtx_resume=NULL )
@ -105,7 +105,7 @@ class SysExecEvent_CoreThreadPause : public BaseSysExecEvent_ScopedCore
public:
wxString GetEventName() const { return L"PauseCoreThread"; }
virtual ~SysExecEvent_CoreThreadPause() throw() {}
virtual ~SysExecEvent_CoreThreadPause() = default;
SysExecEvent_CoreThreadPause* Clone() const { return new SysExecEvent_CoreThreadPause( *this ); }
SysExecEvent_CoreThreadPause( SynchronousActionState* sync=NULL, SynchronousActionState* resume_sync=NULL, Threading::Mutex* mtx_resume=NULL )
@ -165,7 +165,7 @@ protected:
IScopedCoreThread() {}
public:
virtual ~IScopedCoreThread() throw() {};
virtual ~IScopedCoreThread() = default;;
virtual void AllowResume()=0;
virtual void DisallowResume()=0;
};
@ -241,7 +241,7 @@ protected:
public:
ScopedCoreThreadPopup();
virtual ~ScopedCoreThreadPopup() throw() {}
virtual ~ScopedCoreThreadPopup() = default;
virtual void AllowResume();
virtual void DisallowResume();

View File

@ -82,7 +82,7 @@ public:
typedef CoreThreadStatus EvtParams;
public:
virtual ~IEventListener_CoreThread() throw() {}
virtual ~IEventListener_CoreThread() = default;
virtual void DispatchEvent( const CoreThreadStatus& status );
@ -110,7 +110,7 @@ public:
typedef PluginEventType EvtParams;
public:
virtual ~IEventListener_Plugins() throw() {}
virtual ~IEventListener_Plugins() = default;
virtual void DispatchEvent( const PluginEventType& pevt );
@ -141,7 +141,7 @@ public:
typedef AppEventInfo EvtParams;
public:
virtual ~IEventListener_AppStatus() throw() {}
virtual ~IEventListener_AppStatus() = default;
virtual void DispatchEvent( const AppEventInfo& evtinfo );
@ -191,7 +191,7 @@ public:
pxAssert(dispatchTo != NULL);
}
virtual ~EventListenerHelper_CoreThread() throw() {}
virtual ~EventListenerHelper_CoreThread() = default;
protected:
void CoreThread_OnIndeterminate() { Owner.OnCoreThread_Indeterminate(); }
@ -218,7 +218,7 @@ public:
pxAssert(dispatchTo != NULL);
}
virtual ~EventListenerHelper_Plugins() throw() {}
virtual ~EventListenerHelper_Plugins() = default;
protected:
void CorePlugins_OnLoaded() { Owner.OnCorePlugins_Loaded(); }
@ -247,7 +247,7 @@ public:
pxAssert(dispatchTo != NULL);
}
virtual ~EventListenerHelper_AppStatus() throw() {}
virtual ~EventListenerHelper_AppStatus() = default;
protected:
virtual void AppStatusEvent_OnUiSettingsLoadSave( const AppSettingsEventInfo& evtinfo ) { Owner.AppStatusEvent_OnUiSettingsLoadSave( evtinfo ); }
@ -268,7 +268,7 @@ protected:
CoreThreadStatus m_evt;
public:
virtual ~CoreThreadStatusEvent() throw() {}
virtual ~CoreThreadStatusEvent() = default;
CoreThreadStatusEvent* Clone() const { return new CoreThreadStatusEvent( *this ); }
explicit CoreThreadStatusEvent( CoreThreadStatus evt, SynchronousActionState* sema=NULL );

View File

@ -36,7 +36,7 @@ protected:
public:
wxString GetEventName() const { return L"SaveSinglePlugin"; }
virtual ~SysExecEvent_SaveSinglePlugin() throw() {}
virtual ~SysExecEvent_SaveSinglePlugin() = default;
SysExecEvent_SaveSinglePlugin* Clone() const { return new SysExecEvent_SaveSinglePlugin( *this ); }
SysExecEvent_SaveSinglePlugin( PluginsEnum_t pid=PluginId_GS )

View File

@ -22,7 +22,7 @@ class BaseCpuUsageProvider
{
public:
BaseCpuUsageProvider() {}
virtual ~BaseCpuUsageProvider() throw() {}
virtual ~BaseCpuUsageProvider() = default;
virtual bool IsImplemented() const=0;
virtual void UpdateStats()=0;
@ -77,7 +77,7 @@ protected:
public:
DefaultCpuUsageProvider();
virtual ~DefaultCpuUsageProvider() throw() {}
virtual ~DefaultCpuUsageProvider() = default;
bool IsImplemented() const;
void Reset();

View File

@ -80,7 +80,7 @@ class DisassemblyDialog : public wxFrame
{
public:
DisassemblyDialog( wxWindow* parent=NULL );
virtual ~DisassemblyDialog() throw() {}
virtual ~DisassemblyDialog() = default;
static wxString GetNameStatic() { return L"DisassemblyDialog"; }
wxString GetDialogName() const { return GetNameStatic(); }

View File

@ -87,7 +87,7 @@ namespace Dialogs
class SysConfigDialog : public BaseConfigurationDialog
{
public:
virtual ~SysConfigDialog() throw() {}
virtual ~SysConfigDialog() = default;
SysConfigDialog(wxWindow* parent=NULL);
static wxString GetNameStatic() { return L"CoreSettings"; }
wxString GetDialogName() const { return GetNameStatic(); }
@ -119,7 +119,7 @@ namespace Dialogs
{
public:
InterfaceLanguageDialog(wxWindow* parent = NULL);
virtual ~InterfaceLanguageDialog() throw() { }
virtual ~InterfaceLanguageDialog() = default;
static wxString GetNameStatic() { return L"InterfaceLanguage"; }
wxString GetDialogName() const { return GetNameStatic(); }
@ -140,7 +140,7 @@ namespace Dialogs
Panels::BaseMcdListPanel* m_panel_mcdlist;
public:
virtual ~McdConfigDialog() throw() {}
virtual ~McdConfigDialog() = default;
McdConfigDialog(wxWindow* parent=NULL);
static wxString GetNameStatic() { return L"McdConfig"; }
wxString GetDialogName() const { return GetNameStatic(); }
@ -156,7 +156,7 @@ namespace Dialogs
class GameDatabaseDialog : public BaseConfigurationDialog
{
public:
virtual ~GameDatabaseDialog() throw() {}
virtual ~GameDatabaseDialog() = default;
GameDatabaseDialog(wxWindow* parent=NULL);
static wxString GetNameStatic() { return L"GameDatabase"; }
wxString GetDialogName() const { return GetNameStatic(); }
@ -173,7 +173,7 @@ namespace Dialogs
protected:
public:
virtual ~ComponentsConfigDialog() throw() {}
virtual ~ComponentsConfigDialog() = default;
ComponentsConfigDialog(wxWindow* parent=NULL);
static wxString GetNameStatic() { return L"AppSettings"; }
wxString GetDialogName() const { return GetNameStatic(); }
@ -200,7 +200,7 @@ namespace Dialogs
#endif
public:
virtual ~CreateMemoryCardDialog() throw() {}
virtual ~CreateMemoryCardDialog() = default;
CreateMemoryCardDialog( wxWindow* parent, const wxDirName& mcdpath, const wxString& suggested_mcdfileName);
//duplicate of MemoryCardFile::Create. Don't know why the existing method isn't used. - avih
@ -226,7 +226,7 @@ namespace Dialogs
pxRadioPanel* m_radio_CardType;
public:
virtual ~ConvertMemoryCardDialog() throw() {}
virtual ~ConvertMemoryCardDialog() = default;
ConvertMemoryCardDialog( wxWindow* parent, const wxDirName& mcdPath, const AppConfig::McdOptions& mcdSourceConfig );
protected:

View File

@ -27,7 +27,7 @@ class LogOptionsDialog : public BaseConfigurationDialog
{
public:
LogOptionsDialog( wxWindow* parent=NULL );
virtual ~LogOptionsDialog() throw() { }
virtual ~LogOptionsDialog() = default;
static wxString GetNameStatic() { return L"TraceLogSettings"; }
wxString GetDialogName() const { return GetNameStatic(); }

View File

@ -65,7 +65,7 @@ namespace Dialogs
public:
AboutBoxDialog( wxWindow* parent=NULL );
virtual ~AboutBoxDialog() throw() {}
virtual ~AboutBoxDialog() = default;
static wxString GetNameStatic() { return L"AboutBox"; }
wxString GetDialogName() const { return GetNameStatic(); }
@ -80,7 +80,7 @@ namespace Dialogs
public:
PickUserModeDialog( wxWindow* parent );
virtual ~PickUserModeDialog() throw() {}
virtual ~PickUserModeDialog() = default;
protected:
void OnOk_Click( wxCommandEvent& evt );
@ -91,7 +91,7 @@ namespace Dialogs
{
public:
ImportSettingsDialog( wxWindow* parent );
virtual ~ImportSettingsDialog() throw() {}
virtual ~ImportSettingsDialog() = default;
protected:
void OnImport_Click( wxCommandEvent& evt );
@ -102,7 +102,7 @@ namespace Dialogs
{
public:
AssertionDialog( const wxString& text, const wxString& stacktrace );
virtual ~AssertionDialog() throw() {}
virtual ~AssertionDialog() = default;
};
}

View File

@ -27,7 +27,7 @@ protected:
wxWindow* m_WindowBound;
public:
virtual ~IsoDropTarget() throw() { }
virtual ~IsoDropTarget() = default;
IsoDropTarget( wxWindow* parent ) : wxFileDropTarget()
{
m_WindowBound = parent;

View File

@ -80,7 +80,7 @@ public:
m_menu_cmd = menu_command;
}
virtual ~InvokeMenuCommand_OnSysStateUnlocked() throw() {}
virtual ~InvokeMenuCommand_OnSysStateUnlocked() = default;
virtual void SaveStateAction_OnCreateFinished()
{

View File

@ -333,7 +333,7 @@ protected:
public:
FolderMemoryCard();
virtual ~FolderMemoryCard() throw() {}
virtual ~FolderMemoryCard() = default;
void Lock();
void Unlock();
@ -556,7 +556,7 @@ protected:
public:
FolderMemoryCardAggregator();
virtual ~FolderMemoryCardAggregator() throw( ) {}
virtual ~FolderMemoryCardAggregator() = default;
void Open();
void Close();

View File

@ -51,7 +51,7 @@ namespace Panels
public:
DirPickerPanel( wxWindow* parent, FoldersEnum_t folderid, const wxString& label, const wxString& dialogLabel );
DirPickerPanel( wxWindow* parent, FoldersEnum_t folderid, const wxString& dialogLabel );
virtual ~DirPickerPanel() throw() { }
virtual ~DirPickerPanel() = default;
void Reset();
wxDirName GetPath() const;
@ -89,7 +89,7 @@ namespace Panels
DirPickerPanel* m_dirpicker_custom;
public:
virtual ~DocsFolderPickerPanel() throw() { }
virtual ~DocsFolderPickerPanel() = default;
DocsFolderPickerPanel( wxWindow* parent, bool isFirstTime = true );
void Apply();
@ -109,7 +109,7 @@ namespace Panels
wxComboBox* m_picker;
public:
virtual ~LanguageSelectionPanel() throw() { }
virtual ~LanguageSelectionPanel() = default;
LanguageSelectionPanel( wxWindow* parent, bool showApply = true );
void Apply();
@ -135,7 +135,7 @@ namespace Panels
public:
BaseAdvancedCpuOptions( wxWindow* parent );
virtual ~BaseAdvancedCpuOptions() throw() { }
virtual ~BaseAdvancedCpuOptions() = default;
void RestoreDefaults();
@ -151,7 +151,7 @@ namespace Panels
{
public:
AdvancedOptionsFPU( wxWindow* parent );
virtual ~AdvancedOptionsFPU() throw() { }
virtual ~AdvancedOptionsFPU() = default;
void Apply();
void AppStatusEvent_OnSettingsApplied();
void ApplyConfigToGui( AppConfig& configToApply, int flags=0 );
@ -161,7 +161,7 @@ namespace Panels
{
public:
AdvancedOptionsVU( wxWindow* parent );
virtual ~AdvancedOptionsVU() throw() { }
virtual ~AdvancedOptionsVU() = default;
void Apply();
void AppStatusEvent_OnSettingsApplied();
void ApplyConfigToGui( AppConfig& configToApply, int flags=0 );
@ -182,7 +182,7 @@ namespace Panels
public:
CpuPanelEE( wxWindow* parent );
virtual ~CpuPanelEE() throw() {}
virtual ~CpuPanelEE() = default;
void Apply();
void AppStatusEvent_OnSettingsApplied();
@ -203,7 +203,7 @@ namespace Panels
public:
CpuPanelVU( wxWindow* parent );
virtual ~CpuPanelVU() throw() {}
virtual ~CpuPanelVU() = default;
void Apply();
void AppStatusEvent_OnSettingsApplied();
@ -226,7 +226,7 @@ namespace Panels
public:
FrameSkipPanel( wxWindow* parent );
virtual ~FrameSkipPanel() throw() {}
virtual ~FrameSkipPanel() = default;
void Apply();
void AppStatusEvent_OnSettingsApplied();
@ -253,7 +253,7 @@ namespace Panels
public:
FramelimiterPanel( wxWindow* parent );
virtual ~FramelimiterPanel() throw() {}
virtual ~FramelimiterPanel() = default;
void Apply();
void AppStatusEvent_OnSettingsApplied();
@ -293,7 +293,7 @@ namespace Panels
public:
GSWindowSettingsPanel( wxWindow* parent );
virtual ~GSWindowSettingsPanel() throw() {}
virtual ~GSWindowSettingsPanel() = default;
void Apply();
void AppStatusEvent_OnSettingsApplied();
void ApplyConfigToGui( AppConfig& configToApply, int flags=0 );
@ -309,7 +309,7 @@ namespace Panels
public:
VideoPanel( wxWindow* parent );
virtual ~VideoPanel() throw() {}
virtual ~VideoPanel() = default;
void Apply();
void AppStatusEvent_OnSettingsApplied();
void ApplyConfigToGui( AppConfig& configToApply, int flags=0 );
@ -343,7 +343,7 @@ namespace Panels
pxCheckBox* m_check_vuThread;
public:
virtual ~SpeedHacksPanel() throw() {}
virtual ~SpeedHacksPanel() = default;
SpeedHacksPanel( wxWindow* parent );
void Apply();
void EnableStuff( AppConfig* configToUse=NULL );
@ -374,7 +374,7 @@ namespace Panels
public:
GameFixesPanel( wxWindow* parent );
virtual ~GameFixesPanel() throw() { }
virtual ~GameFixesPanel() = default;
void EnableStuff( AppConfig* configToUse=NULL );
void OnEnable_Toggled( wxCommandEvent& evt );
void Apply();
@ -402,7 +402,7 @@ namespace Panels
public:
GameDatabasePanel( wxWindow* parent );
virtual ~GameDatabasePanel() throw() { }
virtual ~GameDatabasePanel() = default;
void Apply();
void AppStatusEvent_OnSettingsApplied();

View File

@ -45,7 +45,7 @@ namespace Panels
public:
eeLogOptionsPanel( LogOptionsPanel* parent );
virtual ~eeLogOptionsPanel() throw() {}
virtual ~eeLogOptionsPanel() = default;
CheckedStaticBox* GetStaticBox( const wxString& subgroup ) const;
@ -63,7 +63,7 @@ namespace Panels
public:
iopLogOptionsPanel( LogOptionsPanel* parent );
virtual ~iopLogOptionsPanel() throw() {}
virtual ~iopLogOptionsPanel() = default;
CheckedStaticBox* GetStaticBox( const wxString& subgroup ) const;
@ -84,7 +84,7 @@ namespace Panels
public:
LogOptionsPanel( wxWindow* parent );
virtual ~LogOptionsPanel() throw() {}
virtual ~LogOptionsPanel() = default;
void AppStatusEvent_OnSettingsApplied();
void OnUpdateEnableAll();

View File

@ -107,7 +107,7 @@ public:
void setExternHandler(void (*f)(void)){m_externHandler=f;};
void OnChanged(wxEvent& evt){if (m_externHandler) m_externHandler(); evt.Skip();}
virtual ~BaseMcdListView() throw() { }
virtual ~BaseMcdListView() = default;
BaseMcdListView( wxWindow* parent )
: _parent( parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT | wxLC_SINGLE_SEL | wxLC_VIRTUAL )
{
@ -134,7 +134,7 @@ class MemoryCardListView_Simple : public BaseMcdListView
typedef BaseMcdListView _parent;
public:
virtual ~MemoryCardListView_Simple() throw() { }
virtual ~MemoryCardListView_Simple() = default;
MemoryCardListView_Simple( wxWindow* parent );
void CreateColumns();
@ -182,7 +182,7 @@ namespace Panels
}
public:
virtual ~BaseMcdListPanel() throw() {}
virtual ~BaseMcdListPanel() = default;
BaseMcdListPanel( wxWindow* parent );
void CreateLayout();
@ -295,7 +295,7 @@ namespace Panels
public:
McdConfigPanel_Toggles( wxWindow* parent );
virtual ~McdConfigPanel_Toggles() throw() { }
virtual ~McdConfigPanel_Toggles() = default;
void Apply();
protected:

View File

@ -76,6 +76,6 @@ struct RecentIsoList
std::unique_ptr<wxMenu> Menu;
RecentIsoList(int firstIdForMenuItems_or_wxID_ANY);
virtual ~RecentIsoList() throw() { }
virtual ~RecentIsoList() = default;
};

View File

@ -79,7 +79,7 @@ protected:
SynchronousActionState* m_sync;
public:
virtual ~SysExecEvent() throw() {}
virtual ~SysExecEvent() = default;
SysExecEvent* Clone() const { return new SysExecEvent( *this ); }
SysExecEvent( SynchronousActionState* sync=NULL )
@ -145,7 +145,7 @@ protected:
public:
wxString GetEventName() const { return m_TraceName; }
virtual ~SysExecEvent_MethodVoid() throw() {}
virtual ~SysExecEvent_MethodVoid() = default;
SysExecEvent_MethodVoid* Clone() const { return new SysExecEvent_MethodVoid( *this ); }
bool AllowCancelOnExit() const { return !m_IsCritical; }
@ -214,7 +214,7 @@ protected:
public:
pxEvtQueue();
virtual ~pxEvtQueue() throw() {}
virtual ~pxEvtQueue() = default;
virtual wxString GetEventHandlerName() const { return L"pxEvtQueue"; }
@ -273,7 +273,7 @@ protected:
public:
ExecutorThread( pxEvtQueue* evtandler = NULL );
virtual ~ExecutorThread() throw() { }
virtual ~ExecutorThread() = default;
virtual void ShutdownQueue();
bool IsRunning() const;

View File

@ -46,7 +46,7 @@ protected:
public:
VifUnpackSSE_Base();
virtual ~VifUnpackSSE_Base() throw() {}
virtual ~VifUnpackSSE_Base() = default;
virtual void xUnpack( int upktype ) const;
virtual bool IsUnmaskedOp() const=0;
@ -90,7 +90,7 @@ public:
public:
VifUnpackSSE_Simple(bool usn_, bool domask_, int curCycle_);
virtual ~VifUnpackSSE_Simple() throw() {}
virtual ~VifUnpackSSE_Simple() = default;
virtual bool IsUnmaskedOp() const{ return !doMask; }
@ -125,7 +125,7 @@ public:
vCL = src.vCL;
}
virtual ~VifUnpackSSE_Dynarec() throw() {}
virtual ~VifUnpackSSE_Dynarec() = default;
virtual bool IsUnmaskedOp() const{ return !doMode && !doMask; }