diff options
author | Eike Rathke <erack@redhat.com> | 2011-12-01 21:03:42 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2011-12-01 21:04:29 +0100 |
commit | 86adb5cacb4fe3e7fb869299447da5876f0da30d (patch) | |
tree | f7998dd1a12a82ca53a4fa155cdf5536ac25ef62 /reportdesign | |
parent | pull in module headers before solver (diff) | |
download | core-86adb5cacb4fe3e7fb869299447da5876f0da30d.tar.gz core-86adb5cacb4fe3e7fb869299447da5876f0da30d.zip |
get rid of class Date and Time default ctor with system time penalty
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/ui/dlg/DateTime.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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<sal_Int32>(aCurrentDate.GetDate())),STANDARD_DB_DATE); } |