From 9804cc4eff4c5899abdc5309eeb019eb6ec1bf46 Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Wed, 9 May 2018 18:30:15 +0900 Subject: sc: ScHeaderFieldData always stores a datetime It does not change only the date part nor the time part separately, thus holding single DateTime is sufficient. Change-Id: Ic619608ce7a961287c299698b9a004cbf7038702 Reviewed-on: https://gerrit.libreoffice.org/54058 Tested-by: Jenkins Reviewed-by: Eike Rathke --- sc/source/ui/inc/preview.hxx | 3 +-- sc/source/ui/inc/printfun.hxx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'sc/source/ui/inc') diff --git a/sc/source/ui/inc/preview.hxx b/sc/source/ui/inc/preview.hxx index 54e8d04c4f22..a43002c545ae 100644 --- a/sc/source/ui/inc/preview.hxx +++ b/sc/source/ui/inc/preview.hxx @@ -47,8 +47,7 @@ private: long nTabPage; // Page of sheet long nTabStart; // First (real) page of the sheet long nDisplayStart; // same as above, relative to the start of counting - Date aDate; - tools::Time aTime; + DateTime aDateTime; long nTotalPages; Size aPageSize; // for GetOptimalZoom ScPrintState aState; diff --git a/sc/source/ui/inc/printfun.hxx b/sc/source/ui/inc/printfun.hxx index 2df47432c89a..d96fb277b788 100644 --- a/sc/source/ui/inc/printfun.hxx +++ b/sc/source/ui/inc/printfun.hxx @@ -303,7 +303,7 @@ public: void SetOffset( const Point& rOfs ); void SetManualZoom( sal_uInt16 nNewZoom ); - void SetDateTime( const Date& rDate, const tools::Time& rTime ); + void SetDateTime( const DateTime& ); void SetClearFlag( bool bFlag ); void SetUseStyleColor( bool bFlag ); -- cgit