summaryrefslogtreecommitdiffhomepage
path: root/options/value-traits.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'options/value-traits.hpp')
-rw-r--r--options/value-traits.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/options/value-traits.hpp b/options/value-traits.hpp
index 8a04b46d..0b30248e 100644
--- a/options/value-traits.hpp
+++ b/options/value-traits.hpp
@@ -34,7 +34,7 @@ struct value_traits<slider_value> : default_value_traits<slider_value>
{
static inline slider_value from_value(const slider_value& val, const slider_value& def)
{
- return slider_value(val.cur(), def.min(), def.max());
+ return { val.cur(), def.min(), def.max() };
}
};