summaryrefslogtreecommitdiffhomepage
path: root/options/tie.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'options/tie.hpp')
-rw-r--r--options/tie.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/options/tie.hpp b/options/tie.hpp
index 2969f8d4..1b8056a7 100644
--- a/options/tie.hpp
+++ b/options/tie.hpp
@@ -91,7 +91,7 @@ tie_setting(value<t>& v, QComboBox* cb)
fn1(v, cb, enum_cases),
v.DIRECT_CONNTYPE);
base_value::connect(&v,
- static_cast<void (base_value::*)(int)>(&base_value::valueChanged),
+ static_cast<void (base_value::*)(int) const>(&base_value::valueChanged),
cb,
fn2(v, cb, enum_cases),
v.DIRECT_CONNTYPE);
@@ -203,7 +203,7 @@ inline void tie_setting(value<slider_value>& v, QSlider* w)
},
v.DIRECT_CONNTYPE);
base_value::connect(&v,
- static_cast<void(base_value::*)(double)>(&base_value::valueChanged),
+ static_cast<void(base_value::*)(double) const>(&base_value::valueChanged),
w,
[=](double value) { w->setValue(int(round(value * q_diff) + q_min)); },
v.SAFE_CONNTYPE);