From a9da2d9e20ce1655a860ac8d1fd548dce437efa6 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 23 Jan 2017 05:08:19 -0500 Subject: [PATCH] ControllerEmu: Add missing virtual destructor to BooleanSetting --- Source/Core/InputCommon/ControllerEmu.cpp | 2 ++ Source/Core/InputCommon/ControllerEmu.h | 1 + 2 files changed, 3 insertions(+) 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; }