| 99 | } |
| 100 | |
| 101 | void SettingInfo::SetDefaultValue(SettingsInterface* si, const char* section, const char* key) const |
| 102 | { |
| 103 | switch (type) |
| 104 | { |
| 105 | case SettingInfo::Type::Boolean: |
| 106 | si->SetBoolValue(section, key, BooleanDefaultValue()); |
| 107 | break; |
| 108 | case SettingInfo::Type::Integer: |
| 109 | case SettingInfo::Type::IntegerList: |
| 110 | si->SetIntValue(section, key, IntegerDefaultValue()); |
| 111 | break; |
| 112 | case SettingInfo::Type::Float: |
| 113 | si->SetFloatValue(section, key, FloatDefaultValue()); |
| 114 | break; |
| 115 | case SettingInfo::Type::String: |
| 116 | case SettingInfo::Type::StringList: |
| 117 | case SettingInfo::Type::Path: |
| 118 | si->SetStringValue(section, key, StringDefaultValue()); |
| 119 | break; |
| 120 | default: |
| 121 | break; |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | void SettingInfo::CopyValue(SettingsInterface* dest_si, const SettingsInterface& src_si, |
| 126 | const char* section, const char* key) const |
nothing calls this directly
no test coverage detected