summaryrefslogtreecommitdiffhomepage
path: root/opentrack-compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-06-20 10:21:28 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-06-20 10:21:28 +0200
commitafb4f51a5526822681b147d5cbf37b6f818c49ca (patch)
treed512ce775b8477f8988c66c269fe9cb7f733700d /opentrack-compat
parentb6c3fc5ba220bec945cff5fe8085059ac4d1de8a (diff)
compat/options: inline method
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_; }