summaryrefslogtreecommitdiffstats
path: root/src/common/settings_common.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/common/settings_common.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/common/settings_common.cpp b/src/common/settings_common.cpp
index fb42991fa..3e86c7347 100644
--- a/src/common/settings_common.cpp
+++ b/src/common/settings_common.cpp
@@ -7,9 +7,10 @@
namespace Settings {
BasicSetting::BasicSetting(Linkage& linkage, const std::string& name, enum Category category_,
- bool save_, bool runtime_modifiable_)
- : label{name}, category{category_}, id{linkage.count}, save{save_}, runtime_modifiable{
- runtime_modifiable_} {
+ bool save_, bool runtime_modifiable_,
+ enum Specialization specialization_)
+ : label{name}, category{category_}, id{linkage.count}, save{save_},
+ runtime_modifiable{runtime_modifiable_}, specialization{specialization_} {
linkage.by_category[category].push_front(this);
linkage.count++;
}
@@ -38,6 +39,10 @@ Category BasicSetting::Category() const {
return category;
}
+Specialization BasicSetting::Specialization() const {
+ return specialization;
+}
+
const std::string& BasicSetting::GetLabel() const {
return label;
}