From a38e1be92c50ce6feba41402201f09605fedaa5a Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Tue, 13 Jan 2015 16:30:44 +0100 Subject: use DateTime instead of separate Date and Time Change-Id: I82cccaabbcf481367e55c52682d0ff765b4a8671 --- sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sc') diff --git a/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx b/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx index a85ec222b7bb..3703f6230a29 100644 --- a/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx +++ b/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx @@ -433,10 +433,7 @@ void ScXMLChangeTrackingImportHelper::EndChangeAction() void ScXMLChangeTrackingImportHelper::ConvertInfo(const ScMyActionInfo& aInfo, OUString& rUser, DateTime& aDateTime) { - Date aDate(aInfo.aDateTime); - tools::Time aTime(aInfo.aDateTime); - aDateTime.SetDate( aDate.GetDate() ); - aDateTime.SetTime( aTime.GetTime() ); + aDateTime = DateTime( aInfo.aDateTime); // old files didn't store nanoseconds, enable again if ( aInfo.aDateTime.NanoSeconds ) -- cgit