Virtual base classes should have a virtual destructor.

Build a libdolphinwx. Just fooling around with LTO..


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6981 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang 2011-01-30 01:58:54 +00:00
parent 25af2ae9b8
commit f57cfc7c6f
11 changed files with 19 additions and 25 deletions

View File

@ -148,7 +148,7 @@ if sys.platform == 'darwin':
wxconfig.ParseWXConfig(wxenv)
env['CPPDEFINES'] += ['__WXOSX_COCOA__']
env['CPPPATH'] += wxenv['CPPPATH']
env['LIBPATH'] += wxenv['LIBPATH']
#env['LIBPATH'] += wxenv['LIBPATH']
env['wxconfiglibs'] = wxenv['LIBS']
env['CPPPATH'] += ['#Externals']

View File

@ -28,7 +28,6 @@ class IUCode;
class DSPHLE : public PluginDSP {
public:
DSPHLE();
~DSPHLE();
virtual void Initialize(void *hWnd, bool bWii, bool bDSPThread);
virtual void Shutdown();

View File

@ -48,9 +48,6 @@ DSPLLE::DSPLLE() {
m_cycle_count = 0;
}
DSPLLE::~DSPLLE() {
}
void DSPLLE::DoState(PointerWrap &p)
{
p.Do(m_InitMixer);

View File

@ -26,7 +26,6 @@
class DSPLLE : public PluginDSP {
public:
DSPLLE();
~DSPLLE();
virtual void Initialize(void *hWnd, bool bWii, bool bDSPThread);
virtual void Shutdown();

View File

@ -33,6 +33,3 @@ PluginDSP *CreateDSPPlugin(bool HLE)
return new DSPLLE();
}
}
PluginDSP::PluginDSP() {}
PluginDSP::~PluginDSP() {}

View File

@ -25,8 +25,7 @@
class PluginDSP
{
public:
PluginDSP();
~PluginDSP();
virtual ~PluginDSP() {}
virtual bool IsLLE() = 0;

View File

@ -21,6 +21,8 @@
class CPUCoreBase
{
public:
virtual ~CPUCoreBase() {}
virtual void Init() = 0;
virtual void Shutdown() = 0;
virtual void ClearCache() = 0;

View File

@ -105,7 +105,7 @@ void PadSettingCheckBox::UpdateValue()
void PadSettingSpin::UpdateGUI()
{
((wxSpinCtrl*)wxcontrol)->SetValue(value * 100);
((wxSpinCtrl*)wxcontrol)->SetValue((int)(value * 100));
}
void PadSettingSpin::UpdateValue()
@ -536,7 +536,7 @@ wxStaticBoxSizer* ControlDialog::CreateControlChooser(wxWindow* const parent, wx
range_slider = new wxSlider(parent, -1, SLIDER_TICK_COUNT, 0, SLIDER_TICK_COUNT * 5, wxDefaultPosition, wxDefaultSize, wxSL_TOP | wxSL_LABELS /*| wxSL_AUTOTICKS*/);
range_slider->SetValue(control_reference->range * SLIDER_TICK_COUNT);
range_slider->SetValue((int)(control_reference->range * SLIDER_TICK_COUNT));
_connect_macro_(detect_button, ControlDialog::DetectControl, wxEVT_COMMAND_BUTTON_CLICKED, parent);
_connect_macro_(clear_button, ControlDialog::ClearControl, wxEVT_COMMAND_BUTTON_CLICKED, parent);

View File

@ -74,7 +74,7 @@ class PadSettingSpin : public PadSetting
public:
PadSettingSpin(wxWindow* const parent, ControllerEmu::ControlGroup::Setting* const setting)
: PadSetting(new wxSpinCtrl(parent, -1, wxEmptyString, wxDefaultPosition
, wxSize(54, -1), 0, setting->low, setting->high, setting->value * 100))
, wxSize(54, -1), 0, setting->low, setting->high, (int)(setting->value * 100)))
, value(setting->value) {}
void UpdateGUI();

View File

@ -5,9 +5,7 @@ import os
import sys
from SconsTests import utils
files = [
'BootManager.cpp',
]
files = ['BootManager.cpp']
libs = [
'core',
@ -19,8 +17,12 @@ wxlibs = [ ]
ldflags = [ ]
if env['HAVE_WX']:
files += [
if not env['HAVE_WX']:
files += ['MainNoGUI.cpp']
else:
files += ['Main.cpp']
libfiles = [
'AboutDolphin.cpp',
'ARCodeAddEdit.cpp',
'GeckoCodeDiag.cpp',
@ -38,7 +40,6 @@ if env['HAVE_WX']:
'ISOProperties.cpp',
'PatchAddEdit.cpp',
'CheatsWindow.cpp',
'Main.cpp',
'MemcardManager.cpp',
'MemoryCards/GCMemcard.cpp',
'MemoryCards/WiiSaveCrypted.cpp',
@ -52,11 +53,9 @@ if env['HAVE_WX']:
'WxUtils.cpp',
]
wxlibs += [ 'debwx', 'debugger_ui_util' ]
else:
files += [
'MainNoGUI.cpp',
]
env.StaticLibrary(env['local_libs'] + "dolphinwx", libfiles)
wxlibs += ['debwx', 'debugger_ui_util', 'dolphinwx']
if sys.platform == 'win32':
files += [ "stdafx.cpp" ]

View File

@ -21,6 +21,8 @@
class GFXDebuggerBase
{
public:
virtual ~GFXDebuggerBase() {}
// if paused, debugging functions can be enabled
virtual void OnPause() {};
virtual void OnContinue() {};