diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-07-02 08:20:47 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-07-02 09:34:17 +0200 |
commit | f2faf7acf4445fef2a149ebbdecb569a2d119d94 (patch) | |
tree | 6629ba211a70a54a0ab82f6c4f4de08504072951 /options/slider.cpp | |
parent | 66e75860d0c54baa39ed789442b09b96eeebe2e6 (diff) |
nothing important
Diffstat (limited to 'options/slider.cpp')
-rw-r--r-- | options/slider.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/options/slider.cpp b/options/slider.cpp index 4f4124c6..56d9ba16 100644 --- a/options/slider.cpp +++ b/options/slider.cpp @@ -24,8 +24,21 @@ slider_value::slider_value(double cur, double min, double max) : cur_ = min_; } -slider_value::slider_value(const slider_value& v) : slider_value(v.cur(), v.min(), v.max()) +slider_value& slider_value::operator=(const slider_value& v) { + if (this != &v) + { + cur_ = v.cur(); + min_ = v.min(); + max_ = v.max(); + } + + return *this; +} + +slider_value::slider_value(const slider_value& v) +{ + *this = v; } slider_value::slider_value() : slider_value(0, 0, 0) |