X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6496afbab8fa5973626d92d5af0a26bd1a2db6b2..f6669958924c3c3833e2932b65598b06073d2e65:/include/wx/valnum.h diff --git a/include/wx/valnum.h b/include/wx/valnum.h index 5971e612a6..2fbfe607b8 100644 --- a/include/wx/valnum.h +++ b/include/wx/valnum.h @@ -49,7 +49,7 @@ protected: m_style = style; } - wxNumValidatorBase(const wxNumValidatorBase& other) + wxNumValidatorBase(const wxNumValidatorBase& other) : wxValidator() { m_style = other.m_style; } @@ -192,7 +192,7 @@ public: else if ( !BaseValidator::FromString(s, &value) ) return false; - if ( !IsInRange(value) ) + if ( !this->IsInRange(value) ) return false; *m_value = static_cast(value); @@ -225,7 +225,7 @@ private: { wxString s; if ( value != 0 || !BaseValidator::HasFlag(wxNUM_VAL_ZERO_AS_BLANK) ) - s = ToString(value); + s = this->ToString(value); return s; } @@ -314,8 +314,8 @@ public: wxIntegerValidator(ValueType *value = NULL, int style = wxNUM_VAL_DEFAULT) : Base(value, style) { - DoSetMin(std::numeric_limits::min()); - DoSetMax(std::numeric_limits::max()); + this->DoSetMin(std::numeric_limits::min()); + this->DoSetMax(std::numeric_limits::max()); } virtual wxObject *Clone() const { return new wxIntegerValidator(*this); } @@ -409,7 +409,7 @@ public: { DoSetMinMax(); - SetPrecision(std::numeric_limits::digits10); + this->SetPrecision(std::numeric_limits::digits10); } // Ctor specifying an explicit precision. @@ -434,8 +434,8 @@ private: // NB: Do not use min(), it's not the smallest representable value for // the floating point types but rather the smallest representable // positive value. - DoSetMin(-std::numeric_limits::max()); - DoSetMax( std::numeric_limits::max()); + this->DoSetMin(-std::numeric_limits::max()); + this->DoSetMax( std::numeric_limits::max()); } };