Merge pull request #4893 from lioncash/delegation

Buttons: Use a delegating constructor
This commit is contained in:
JosJuice 2017-02-11 09:25:39 +01:00 committed by GitHub
commit d4ec178e0b

View File

@ -11,9 +11,8 @@
namespace ControllerEmu namespace ControllerEmu
{ {
Buttons::Buttons(const std::string& name_) : ControlGroup(name_, name_, GROUP_TYPE_BUTTONS) Buttons::Buttons(const std::string& name_) : Buttons(name_, name_)
{ {
numeric_settings.emplace_back(std::make_unique<NumericSetting>(_trans("Threshold"), 0.5));
} }
Buttons::Buttons(const std::string& ini_name, const std::string& group_name) Buttons::Buttons(const std::string& ini_name, const std::string& group_name)