Merge pull request #4728 from lioncash/virtual-dtor

ControllerEmu: Add missing virtual destructor to BooleanSetting
This commit is contained in:
Matthew Parlane 2017-01-24 08:19:23 +13:00 committed by GitHub
commit 98311cd9f4
2 changed files with 3 additions and 0 deletions

View File

@ -103,6 +103,8 @@ void ControllerEmu::ControlGroup::LoadConfig(IniFile::Section* sec, const std::s
}
}
ControllerEmu::ControlGroup::BooleanSetting::~BooleanSetting() = default;
void ControllerEmu::LoadConfig(IniFile::Section* sec, const std::string& base)
{
std::string defdev = default_device.ToString();

View File

@ -107,6 +107,7 @@ public:
: m_type(setting_type), m_name(setting_name), m_default_value(default_value)
{
}
virtual ~BooleanSetting();
virtual bool GetValue() const { return m_value; }
virtual void SetValue(bool value) { m_value = value; }