diff options
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/forms/elementexport.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/forms/propertyexport.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/text/txtlists.cxx | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/xmloff/source/forms/elementexport.cxx b/xmloff/source/forms/elementexport.cxx index fc85eeccc0dc..0d6a1713d121 100644 --- a/xmloff/source/forms/elementexport.cxx +++ b/xmloff/source/forms/elementexport.cxx @@ -1150,7 +1150,7 @@ namespace xmloff sal_Int32 nRepeatDelay = 0; m_xProps->getPropertyValue( PROPERTY_REPEAT_DELAY ) >>= nRepeatDelay; - Time aTime; + Time aTime( Time::SYSTEM ); aTime.MakeTimeFromMS( nRepeatDelay ); util::Duration aDuration; aDuration.Hours = aTime.GetHour(); diff --git a/xmloff/source/forms/propertyexport.cxx b/xmloff/source/forms/propertyexport.cxx index 0ab60d8abf52..7088fb7040e8 100644 --- a/xmloff/source/forms/propertyexport.cxx +++ b/xmloff/source/forms/propertyexport.cxx @@ -595,7 +595,7 @@ namespace xmloff ::com::sun::star::util::DateTime aDateTime; if (_rValue >>= aDate) { - Date aToolsDate; + Date aToolsDate( Date::EMPTY ); ::utl::typeConvert(aDate, aToolsDate); fValue = aToolsDate.GetDate(); } @@ -606,7 +606,7 @@ namespace xmloff } else if (_rValue >>= aDateTime) { - DateTime aToolsDateTime; + DateTime aToolsDateTime( DateTime::EMPTY ); ::utl::typeConvert(aDateTime, aToolsDateTime); // the time part (the digits behind the comma) fValue = ((aDateTime.Hours * 60 + aDateTime.Minutes) * 60 + aDateTime.Seconds) * 100 + aDateTime.HundredthSeconds; diff --git a/xmloff/source/text/txtlists.cxx b/xmloff/source/text/txtlists.cxx index 940aa4a6e6c4..b615933e22a1 100644 --- a/xmloff/source/text/txtlists.cxx +++ b/xmloff/source/text/txtlists.cxx @@ -239,8 +239,8 @@ const ::rtl::OUString& XMLTextListsHelper::GetListStyleOfLastProcessedList() con { // Value of xml:id in element <text:list> has to be a valid ID type (#i92478#) ::rtl::OUString sTmpStr( RTL_CONSTASCII_USTRINGPARAM( "list" ) ); - sal_Int64 n = Time().GetTime(); - n += Date().GetDate(); + sal_Int64 n = Time( Time::SYSTEM ).GetTime(); + n += Date( Date::SYSTEM ).GetDate(); n += rand(); // Value of xml:id in element <text:list> has to be a valid ID type (#i92478#) sTmpStr += ::rtl::OUString::valueOf( n ); |