Buttons: Use a delegating constructor

Basic code deduplication
This commit is contained in:
Lioncash 2017-02-10 19:52:12 -05:00
parent 2cad67952d
commit fda235b6e3
1 changed files with 1 additions and 2 deletions

View File

@ -11,9 +11,8 @@
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)