From e748c2b56c35bb68fbe83234b155a9963cff1748 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 25 Apr 2021 19:11:38 +0100 Subject: [PATCH] Make wxSpinCtrlDouble::DetermineDigits() private There is no need to allow calling this function from derived classes. No real changes. --- include/wx/generic/spinctlg.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/wx/generic/spinctlg.h b/include/wx/generic/spinctlg.h index 8f3e5ecc92..4c64ade837 100644 --- a/include/wx/generic/spinctlg.h +++ b/include/wx/generic/spinctlg.h @@ -416,7 +416,6 @@ protected: virtual bool DoTextToValue(const wxString& text, double *val) wxOVERRIDE; virtual wxString DoValueToText(double val) wxOVERRIDE; virtual void ResetTextValidator() wxOVERRIDE; - void DetermineDigits(double inc); unsigned m_digits; @@ -428,6 +427,9 @@ private: m_format = wxASCII_STR("%0.0f"); } + // Update m_digits and m_format to correspond to the given increment. + void DetermineDigits(double inc); + wxString m_format; wxDECLARE_DYNAMIC_CLASS(wxSpinCtrlDouble);