Make validation helper functions private in all numeric wxPG properties

wxUIntProperty::DoValidation() is already declared as private and the same access level should be applied to DoValidation() in other numeric properties because these functions are helpers intended for internal use only.
This commit is contained in:
Artur Wieczorek
2019-06-28 21:52:57 +02:00
parent 48adc38bbb
commit d0a61a09ec
3 changed files with 11 additions and 21 deletions

View File

@@ -227,14 +227,6 @@ public:
static wxValidator* GetClassValidator();
virtual wxValidator* DoGetValidator() const;
virtual wxVariant AddSpinStepValue(long stepScale) const;
/** Validation helper.
*/
static bool DoValidation( const wxPGProperty* property,
wxLongLong_t& value,
wxPGValidationInfo* pValidationInfo,
int mode =
wxPG_PROPERTY_VALIDATION_ERROR_MESSAGE );
};
@@ -315,13 +307,6 @@ public:
virtual bool ValidateValue( wxVariant& value,
wxPGValidationInfo& validationInfo ) const;
/** Validation helper.
*/
static bool DoValidation( const wxPGProperty* property,
double& value,
wxPGValidationInfo* pValidationInfo,
int mode =
wxPG_PROPERTY_VALIDATION_ERROR_MESSAGE );
static wxValidator* GetClassValidator();
virtual wxValidator* DoGetValidator () const;
virtual wxVariant AddSpinStepValue(long stepScale) const;