summaryrefslogtreecommitdiffhomepage
path: root/opentrack-compat
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack-compat')
-rw-r--r--opentrack-compat/options.cpp5
-rw-r--r--opentrack-compat/options.hpp2
2 files changed, 1 insertions, 6 deletions
diff --git a/opentrack-compat/options.cpp b/opentrack-compat/options.cpp
index be82ebdb..05ae692a 100644
--- a/opentrack-compat/options.cpp
+++ b/opentrack-compat/options.cpp
@@ -245,11 +245,6 @@ OPENTRACK_COMPAT_EXPORT opt_singleton& singleton()
} // end options::detail
-slider_value::operator double() const
-{
- return cur_;
-}
-
slider_value::slider_value(double cur, double min, double max) :
cur_(cur),
min_(min),
diff --git a/opentrack-compat/options.hpp b/opentrack-compat/options.hpp
index b8db411a..20f26d26 100644
--- a/opentrack-compat/options.hpp
+++ b/opentrack-compat/options.hpp
@@ -61,7 +61,7 @@ namespace options
slider_value();
slider_value& operator=(const slider_value& v);
bool operator==(const slider_value& v) const;
- operator double() const;
+ operator double() const { return cur_; }
double cur() const { return cur_; }
double min() const { return min_; }
double max() const { return max_; }