diff options
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/settings.cpp | 2 | ||||
| -rw-r--r-- | src/common/settings.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp index 605fe7f86..c8651925e 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp | |||
| @@ -144,7 +144,7 @@ float Volume() { | |||
| 144 | return values.volume.GetValue() / static_cast<f32>(values.volume.GetDefault()); | 144 | return values.volume.GetValue() / static_cast<f32>(values.volume.GetDefault()); |
| 145 | } | 145 | } |
| 146 | 146 | ||
| 147 | Linkage::Linkage() = default; | 147 | Linkage::Linkage(u32 initial_count) : count{initial_count} {} |
| 148 | Linkage::~Linkage() = default; | 148 | Linkage::~Linkage() = default; |
| 149 | 149 | ||
| 150 | const char* TranslateCategory(Category category) { | 150 | const char* TranslateCategory(Category category) { |
diff --git a/src/common/settings.h b/src/common/settings.h index 1f95bd7d5..51708706b 100644 --- a/src/common/settings.h +++ b/src/common/settings.h | |||
| @@ -291,7 +291,7 @@ public: | |||
| 291 | 291 | ||
| 292 | class Linkage { | 292 | class Linkage { |
| 293 | public: | 293 | public: |
| 294 | explicit Linkage(); | 294 | explicit Linkage(u32 initial_count = 0); |
| 295 | ~Linkage(); | 295 | ~Linkage(); |
| 296 | std::map<Category, std::forward_list<BasicSetting*>> by_category{}; | 296 | std::map<Category, std::forward_list<BasicSetting*>> by_category{}; |
| 297 | std::vector<std::function<void()>> restore_functions{}; | 297 | std::vector<std::function<void()>> restore_functions{}; |