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 /svl | |
parent | b20ea84970fb8b3068880a361822941c47f50edd (diff) |
get rid of class Date and Time default ctor with system time penalty
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/items/dateitem.cxx | 3 | ||||
-rw-r--r-- | svl/source/numbers/zforfind.cxx | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/svl/source/items/dateitem.cxx b/svl/source/items/dateitem.cxx index 67ed22985c6b..e5329958f127 100644 --- a/svl/source/items/dateitem.cxx +++ b/svl/source/items/dateitem.cxx @@ -55,7 +55,8 @@ TYPEINIT1(SfxDateTimeItem, SfxPoolItem); // ----------------------------------------------------------------------- SfxDateTimeItem::SfxDateTimeItem( sal_uInt16 which ) : - SfxPoolItem( which ) + SfxPoolItem( which ), + aDateTime( DateTime::SYSTEM ) { DBG_CTOR(SfxDateTimeItem, 0); } diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx index 556981e3981b..6e1cde011235 100644 --- a/svl/source/numbers/zforfind.cxx +++ b/svl/source/numbers/zforfind.cxx @@ -1017,7 +1017,7 @@ bool ImpSvNumberInputScan::GetDateRef( double& fDays, sal_uInt16& nCounter, CalendarWrapper* pCal = pFormatter->GetCalendar(); for ( int nTryOrder = 1; nTryOrder <= nFormatOrder; nTryOrder++ ) { - pCal->setGregorianDateTime( Date() ); // today + pCal->setGregorianDateTime( Date( Date::SYSTEM ) ); // today String aOrgCalendar; // empty => not changed yet DateFormat DateFmt; bool bFormatTurn; @@ -1207,7 +1207,7 @@ input for the following reasons: if ( !bHadExact || !pCal->isValid() ) { if ( !bHadExact && nExactDateOrder ) - pCal->setGregorianDateTime( Date() ); // reset today + pCal->setGregorianDateTime( Date( Date::SYSTEM ) ); // reset today switch (DateFmt) { case MDY: |