summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2017-01-23 05:08:19 -0500
committerLioncash <mathew1800@gmail.com>2017-01-23 05:08:19 -0500
commita9da2d9e20ce1655a860ac8d1fd548dce437efa6 (patch)
tree5457beace53ff591040dd1470634f483c2685a68 /Source/Core/InputCommon
parent4436011c5070b41a5e1b4dc03bd230d4581e43c7 (diff)
ControllerEmu: Add missing virtual destructor to BooleanSetting
Diffstat (limited to 'Source/Core/InputCommon')
-rw-r--r--Source/Core/InputCommon/ControllerEmu.cpp2
-rw-r--r--Source/Core/InputCommon/ControllerEmu.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu.cpp b/Source/Core/InputCommon/ControllerEmu.cpp
index 4ea4b59637..678ae02259 100644
--- a/Source/Core/InputCommon/ControllerEmu.cpp
+++ b/Source/Core/InputCommon/ControllerEmu.cpp
@@ -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();
diff --git a/Source/Core/InputCommon/ControllerEmu.h b/Source/Core/InputCommon/ControllerEmu.h
index 147c8c109d..3dc028da15 100644
--- a/Source/Core/InputCommon/ControllerEmu.h
+++ b/Source/Core/InputCommon/ControllerEmu.h
@@ -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; }