aboutsummaryrefslogtreecommitdiffstats
path: root/src/config/ConfigTemplates.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-06-26 00:11:23 +0200
committerMax Kellermann <max@duempel.org>2015-06-26 00:11:23 +0200
commit9477db236329a17891105c68bda99073196a3f69 (patch)
tree9abfb48a427544a14d781261096dfe8cbcb794ab /src/config/ConfigTemplates.hxx
parent8d11577ff2b7caf846a31cbb57b2cf9eb3515961 (diff)
downloadmpd-9477db236329a17891105c68bda99073196a3f69.tar.gz
mpd-9477db236329a17891105c68bda99073196a3f69.tar.xz
mpd-9477db236329a17891105c68bda99073196a3f69.zip
config/Templates: add constructor with defaulted "repeat" parameter
Diffstat (limited to 'src/config/ConfigTemplates.hxx')
-rw-r--r--src/config/ConfigTemplates.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config/ConfigTemplates.hxx b/src/config/ConfigTemplates.hxx
index 1aa6c6e8d..7b01ad40f 100644
--- a/src/config/ConfigTemplates.hxx
+++ b/src/config/ConfigTemplates.hxx
@@ -23,6 +23,10 @@
struct ConfigTemplate {
const char *const name;
const bool repeatable;
+
+ constexpr ConfigTemplate(const char *_name,
+ bool _repeatable=false)
+ :name(_name), repeatable(_repeatable) {}
};
extern const ConfigTemplate config_param_templates[];