Simplify after recent changes by adding DoSetDigitsAndUpdate()

There is no need for a separate UpdateAfterDigitsChange(), it is always
called together with DoSetDigits().
This commit is contained in:
Vadim Zeitlin
2021-04-25 20:08:05 +01:00
parent 6c9c0ba02b
commit c16f85bd4d
2 changed files with 8 additions and 12 deletions

View File

@@ -430,11 +430,11 @@ private:
// specified increment without loss of precision.
static unsigned DetermineDigits(double inc);
// Set the number of digits and the format unconditionally.
// Just set the number of digits and the format unconditionally.
void DoSetDigits(unsigned digits);
// Update the appearance after the number of digits has changed.
void UpdateAfterDigitsChange();
// Call DoSetDigits() and update the appearance.
void DoSetDigitsAndUpdate(unsigned digits);
wxString m_format;