summaryrefslogtreecommitdiff
path: root/plugingui/timingframecontent.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2018-06-08 16:43:46 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2018-06-08 16:43:46 +0200
commit59ec43d9b88dc50f2860b0171f0e4c43e90ee290 (patch)
tree22a6550c775d7951512d44069faad6a854767310 /plugingui/timingframecontent.cc
parent42003bd802d868182bf040e86f2cf2773b8ee851 (diff)
Fix const in newly added functions.
Diffstat (limited to 'plugingui/timingframecontent.cc')
-rw-r--r--plugingui/timingframecontent.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugingui/timingframecontent.cc b/plugingui/timingframecontent.cc
index 3a29c6b..5e48423 100644
--- a/plugingui/timingframecontent.cc
+++ b/plugingui/timingframecontent.cc
@@ -86,7 +86,7 @@ TimingframeContent::TimingframeContent(Widget* parent,
}
-float TimingframeContent::thightnessKnobToSettings(float value)
+float TimingframeContent::thightnessKnobToSettings(float value) const
{
value -= 1.0f;
value *= -1.0f;
@@ -95,7 +95,7 @@ float TimingframeContent::thightnessKnobToSettings(float value)
return value;
}
-float TimingframeContent::tightnessSettingsToKnob(float value)
+float TimingframeContent::tightnessSettingsToKnob(float value) const
{
value /= 500.0f;
value *= -1.0f;
@@ -104,7 +104,7 @@ float TimingframeContent::tightnessSettingsToKnob(float value)
return value;
}
-float TimingframeContent::laidbackKnobToSettings(float value)
+float TimingframeContent::laidbackKnobToSettings(float value) const
{
value -= 0.5f;
value *= 2.0f;
@@ -113,7 +113,7 @@ float TimingframeContent::laidbackKnobToSettings(float value)
return std::lround(value);
}
-float TimingframeContent::laidbackSettingsToKnob(int int_value)
+float TimingframeContent::laidbackSettingsToKnob(int int_value) const
{
float value = int_value;
value /= (float)settings.latency_max.load();