diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-12-04 20:32:23 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-12-05 10:43:19 +0100 |
commit | 5796b4f90bfb7394ca89530cd67f6cf23e1ac693 (patch) | |
tree | 410f2aaace594325df09b41a4850107473c990f9 /vcl | |
parent | 3d3cb7808b4ca2ce10b16644846e6709d98e593c (diff) |
turn TimeFormatter::ImplInit into initializer list
Change-Id: I2f21241f753b1fe1300a284cc80a29911cd223ae
Reviewed-on: https://gerrit.libreoffice.org/84465
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/field2.cxx | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx index 3b4c51ce0832..e703f20ffb20 100644 --- a/vcl/source/control/field2.cxx +++ b/vcl/source/control/field2.cxx @@ -2287,22 +2287,17 @@ void TimeField::ImplTimeSpinArea( bool bUp ) } } -void TimeFormatter::ImplInit() -{ - meFormat = TimeFieldFormat::F_NONE; - mbDuration = false; - mnTimeFormat = TimeFormat::Hour24; // Should become an ExtTimeFieldFormat in next implementation, merge with mbDuration and meFormat -} - -TimeFormatter::TimeFormatter(Edit* pEdit) : - FormatterBase(pEdit), - maLastTime( 0, 0 ), - maMin( 0, 0 ), - maMax( 23, 59, 59, 999999999 ), - mbEnforceValidValue( true ), - maFieldTime( 0, 0 ) +TimeFormatter::TimeFormatter(Edit* pEdit) + : FormatterBase(pEdit) + , maLastTime(0, 0) + , maMin(0, 0) + , maMax(23, 59, 59, 999999999) + , meFormat(TimeFieldFormat::F_NONE) + , mnTimeFormat(TimeFormat::Hour24) // Should become an ExtTimeFieldFormat in next implementation, merge with mbDuration and meFormat + , mbDuration(false) + , mbEnforceValidValue(true) + , maFieldTime(0, 0) { - ImplInit(); } TimeFormatter::~TimeFormatter() |