| 152 | } |
| 153 | |
| 154 | void Settings::SetString(PCWSTR name, PCWSTR value) { |
| 155 | auto it = _settings.find(name); |
| 156 | if (it != _settings.end()) { |
| 157 | it->second.SetString(value); |
| 158 | } |
| 159 | else { |
| 160 | Setting s(name, value); |
| 161 | _settings.insert({ name,std::move(s) }); |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | std::wstring Settings::GetString(PCWSTR name) const { |
| 166 | auto it = _settings.find(name); |