summaryrefslogtreecommitdiff
path: root/extensions/source/propctrlr/usercontrol.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2011-12-01 21:03:42 +0100
committerEike Rathke <erack@redhat.com>2011-12-01 21:04:29 +0100
commit86adb5cacb4fe3e7fb869299447da5876f0da30d (patch)
treef7998dd1a12a82ca53a4fa155cdf5536ac25ef62 /extensions/source/propctrlr/usercontrol.cxx
parentb20ea84970fb8b3068880a361822941c47f50edd (diff)
get rid of class Date and Time default ctor with system time penalty
Diffstat (limited to 'extensions/source/propctrlr/usercontrol.cxx')
-rw-r--r--extensions/source/propctrlr/usercontrol.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/propctrlr/usercontrol.cxx b/extensions/source/propctrlr/usercontrol.cxx
index d039887ae4fd..84108c64e4e6 100644
--- a/extensions/source/propctrlr/usercontrol.cxx
+++ b/extensions/source/propctrlr/usercontrol.cxx
@@ -134,7 +134,7 @@ namespace pcr
{
case NUMBERFORMAT_DATE:
{
- 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);
}
@@ -142,7 +142,7 @@ namespace pcr
case NUMBERFORMAT_TIME:
case NUMBERFORMAT_DATETIME:
{
- Time aCurrentTime;
+ Time aCurrentTime( Time::SYSTEM );
nValue = ::dbtools::DBTypeConversion::toDouble(::dbtools::DBTypeConversion::toTime(aCurrentTime.GetTime()));
}
break;