diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2024-07-18 08:05:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-07-18 10:27:41 +0200 |
commit | 3519027515b7ba66aa5303311916b951a8f29e4c (patch) | |
tree | c08204a48f62a5c01129a1495c0ce7e14be1c593 /svx | |
parent | b97e1d6c119bd58966df5d87d853f62bc06b7b87 (diff) |
make date/time single-arg constructors explicit
Change-Id: I943f755d95b90ef8aeb7d5b339f617ff50db4e29
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170673
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/fmcomp/gridcell.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx index 8d728384cd5c..a8a87a8d0803 100644 --- a/svx/source/fmcomp/gridcell.cxx +++ b/svx/source/fmcomp/gridcell.cxx @@ -2267,14 +2267,14 @@ void DbDateField::implAdjustGenericFieldSetting( const Reference< XPropertySet > } rControlFormatter.SetExtDateFormat( static_cast<ExtDateFieldFormat>(nFormat) ); - rControlFormatter.SetMin( aMin ); - rControlFormatter.SetMax( aMax ); + rControlFormatter.SetMin( ::Date(aMin) ); + rControlFormatter.SetMax( ::Date(aMax) ); rControlFormatter.SetStrictFormat( bStrict ); rControlFormatter.EnableEmptyField( true ); rPainterFormatter.SetExtDateFormat( static_cast<ExtDateFieldFormat>(nFormat) ); - rPainterFormatter.SetMin( aMin ); - rPainterFormatter.SetMax( aMax ); + rPainterFormatter.SetMin( ::Date(aMin) ); + rPainterFormatter.SetMax( ::Date(aMax) ); rPainterFormatter.SetStrictFormat( bStrict ); rPainterFormatter.EnableEmptyField( true ); } @@ -2375,8 +2375,8 @@ void DbTimeField::implAdjustGenericFieldSetting( const Reference< XPropertySet > weld::TimeFormatter& rControlFormatter = static_cast<weld::TimeFormatter&>(pControl->get_formatter()); rControlFormatter.SetExtFormat(static_cast<ExtTimeFieldFormat>(nFormat)); - rControlFormatter.SetMin(aMin); - rControlFormatter.SetMax(aMax); + rControlFormatter.SetMin(tools::Time(aMin)); + rControlFormatter.SetMax(tools::Time(aMax)); rControlFormatter.SetStrictFormat(bStrict); rControlFormatter.EnableEmptyField(true); @@ -2384,8 +2384,8 @@ void DbTimeField::implAdjustGenericFieldSetting( const Reference< XPropertySet > weld::TimeFormatter& rPainterFormatter = static_cast<weld::TimeFormatter&>(pPainter->get_formatter()); rPainterFormatter.SetExtFormat(static_cast<ExtTimeFieldFormat>(nFormat)); - rPainterFormatter.SetMin(aMin); - rPainterFormatter.SetMax(aMax); + rPainterFormatter.SetMin(tools::Time(aMin)); + rPainterFormatter.SetMax(tools::Time(aMax)); rPainterFormatter.SetStrictFormat(bStrict); rPainterFormatter.EnableEmptyField(true); } |