From 86adb5cacb4fe3e7fb869299447da5876f0da30d Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Thu, 1 Dec 2011 21:03:42 +0100 Subject: get rid of class Date and Time default ctor with system time penalty --- reportdesign/source/ui/dlg/DateTime.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'reportdesign') diff --git a/reportdesign/source/ui/dlg/DateTime.cxx b/reportdesign/source/ui/dlg/DateTime.cxx index 4edb039913d2..563d24f356ef 100644 --- a/reportdesign/source/ui/dlg/DateTime.cxx +++ b/reportdesign/source/ui/dlg/DateTime.cxx @@ -198,12 +198,12 @@ short ODateTimeDialog::Execute() double nValue = 0; if ( _bTime ) { - Time aCurrentTime; + Time aCurrentTime( Time::SYSTEM ); nValue = ::dbtools::DBTypeConversion::toDouble(::dbtools::DBTypeConversion::toTime(aCurrentTime.GetTime())); } else { - Date aCurrentDate; + Date aCurrentDate( Date::SYSTEM ); static ::com::sun::star::util::Date STANDARD_DB_DATE(30,12,1899); nValue = ::dbtools::DBTypeConversion::toDouble(::dbtools::DBTypeConversion::toDate(static_cast(aCurrentDate.GetDate())),STANDARD_DB_DATE); } -- cgit