X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fae7d1580972e42b6bfea83abbcc19000e34c1a7..61f3e0f5c172147d5ba76fc7f099472c1e05aba4:/include/wx/spinbutt.h diff --git a/include/wx/spinbutt.h b/include/wx/spinbutt.h index 78b8c96225..a4f3073f77 100644 --- a/include/wx/spinbutt.h +++ b/include/wx/spinbutt.h @@ -39,7 +39,8 @@ class WXDLLEXPORT wxSpinButtonBase : public wxControl { public: - wxSpinButtonBase() { InitBase(); } + // ctor intiializes the range with the default (0..100) values + wxSpinButtonBase() { m_min = 0; m_max = 100; } // accessors virtual int GetValue() const = 0; @@ -60,13 +61,6 @@ public: bool IsVertical() const { return (m_windowStyle & wxSP_VERTICAL) != 0; } protected: - // init the base part of the control - void InitBase() - { - m_min = 0; - m_max = 100; - } - // the range value int m_min; int m_max;