summaryrefslogtreecommitdiff
path: root/framework
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 /framework
parentb20ea84970fb8b3068880a361822941c47f50edd (diff)
get rid of class Date and Time default ctor with system time penalty
Diffstat (limited to 'framework')
-rw-r--r--framework/source/jobs/jobdata.cxx2
-rw-r--r--framework/source/services/license.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/framework/source/jobs/jobdata.cxx b/framework/source/jobs/jobdata.cxx
index 8469dbab6b7f..f65c3d996bfc 100644
--- a/framework/source/jobs/jobdata.cxx
+++ b/framework/source/jobs/jobdata.cxx
@@ -562,7 +562,7 @@ void JobData::disableJob()
{
// Convert and write the user timestamp to the configuration.
css::uno::Any aValue;
- aValue <<= Converter::convert_DateTime2ISO8601(DateTime());
+ aValue <<= Converter::convert_DateTime2ISO8601(DateTime( DateTime::SYSTEM));
xPropSet->setPropertyValue(::rtl::OUString::createFromAscii(EVENTCFG_PROP_USERTIME), aValue);
}
diff --git a/framework/source/services/license.cxx b/framework/source/services/license.cxx
index 221cd5959061..73d1e6dfca4c 100644
--- a/framework/source/services/license.cxx
+++ b/framework/source/services/license.cxx
@@ -239,7 +239,7 @@ static sal_Bool _parseDateTime(const ::rtl::OUString& aString, DateTime& aDateTi
static ::rtl::OUString _getCurrentDateString()
{
::rtl::OUString aString;
- return _makeDateTimeString(DateTime());
+ return _makeDateTimeString(DateTime( DateTime::SYSTEM));
}
// execution of license check...
@@ -328,7 +328,7 @@ css::uno::Any SAL_CALL License::execute(const css::uno::Sequence< css::beans::Na
// compare dates
DateTime aLicenseDateTime = _oslDateTimeToDateTime(aDateTimeVal);
- DateTime aAcceptDateTime;
+ DateTime aAcceptDateTime( DateTime::EMPTY);
if (!_parseDateTime(aAcceptDate, aAcceptDateTime))
return makeAny(sal_False);