mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
BooleanSetting: Initialize m_value to default_value in the constructor
Ensures all class state is initialized to valid values on construction.
This commit is contained in:
@ -8,7 +8,8 @@ namespace ControllerEmu
|
||||
{
|
||||
BooleanSetting::BooleanSetting(const std::string& setting_name, const std::string& ui_name,
|
||||
const bool default_value, const SettingType setting_type)
|
||||
: m_type(setting_type), m_name(setting_name), m_ui_name(ui_name), m_default_value(default_value)
|
||||
: m_type(setting_type), m_name(setting_name), m_ui_name(ui_name),
|
||||
m_default_value(default_value), m_value(default_value)
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user