summaryrefslogtreecommitdiffhomepage
path: root/options/slider.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-12-28 03:02:57 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-01-16 07:48:18 +0100
commit6f04e4ca46e6f2dcd3eda63529a1bbd915f7676b (patch)
tree9aeb1332980c4285396457ad9f278495064549b5 /options/slider.hpp
parent3be3bb256f3e9362f8889f0532f875c5ad3b41fb (diff)
clang-tidy fixes only
Maybe global `-Wcomma' is too harsh. There should be no functional changes whatsoever.
Diffstat (limited to 'options/slider.hpp')
-rw-r--r--options/slider.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/options/slider.hpp b/options/slider.hpp
index 1dd9ec7c..abf39685 100644
--- a/options/slider.hpp
+++ b/options/slider.hpp
@@ -34,11 +34,11 @@ namespace options
slider_value& operator=(const slider_value& v) = default;
slider_value(const slider_value& v) = default;
- slider_value() : slider_value{0, 0, 0} {};
+ slider_value() : slider_value{0, 0, 0} {}
bool operator==(const slider_value& v) const;
bool operator!=(const slider_value& v) const;
- operator double() const { return cur_; }
+ constexpr operator double() const { return cur_; }
double cur() const { return cur_; }
double min() const { return min_; }
double max() const { return max_; }