Skip to content

Commit

Permalink
Merge pull request #4728 from lioncash/virtual-dtor
Browse files Browse the repository at this point in the history
ControllerEmu: Add missing virtual destructor to BooleanSetting
  • Loading branch information
Parlane committed Jan 23, 2017
2 parents ee06518 + a9da2d9 commit 98311cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Core/InputCommon/ControllerEmu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions Source/Core/InputCommon/ControllerEmu.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ class ControllerEmu
: 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; }
Expand Down

0 comments on commit 98311cd

Please sign in to comment.