summaryrefslogtreecommitdiff
path: root/fpdfsdk/pwl/cpwl_scroll_bar.h
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/pwl/cpwl_scroll_bar.h')
-rw-r--r--fpdfsdk/pwl/cpwl_scroll_bar.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/fpdfsdk/pwl/cpwl_scroll_bar.h b/fpdfsdk/pwl/cpwl_scroll_bar.h
index 3c3c56e4bb..3592423a7d 100644
--- a/fpdfsdk/pwl/cpwl_scroll_bar.h
+++ b/fpdfsdk/pwl/cpwl_scroll_bar.h
@@ -64,21 +64,20 @@ class CPWL_SBButton final : public CPWL_Wnd {
struct PWL_FLOATRANGE {
public:
- PWL_FLOATRANGE();
- PWL_FLOATRANGE(float min, float max);
+ PWL_FLOATRANGE() = default;
bool operator==(const PWL_FLOATRANGE& that) const {
return fMin == that.fMin && fMax == that.fMax;
}
bool operator!=(const PWL_FLOATRANGE& that) const { return !(*this == that); }
- void Default();
+ void Reset();
void Set(float min, float max);
bool In(float x) const;
float GetWidth() const;
- float fMin;
- float fMax;
+ float fMin = 0.0f;
+ float fMax = 0.0f;
};
struct PWL_SCROLL_PRIVATEDATA {