From 86adb5cacb4fe3e7fb869299447da5876f0da30d Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Thu, 1 Dec 2011 21:03:42 +0100 Subject: get rid of class Date and Time default ctor with system time penalty --- sc/source/ui/view/viewfun6.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sc/source/ui/view/viewfun6.cxx') diff --git a/sc/source/ui/view/viewfun6.cxx b/sc/source/ui/view/viewfun6.cxx index 1b7eb4c902f9..0f4736e2df8c 100644 --- a/sc/source/ui/view/viewfun6.cxx +++ b/sc/source/ui/view/viewfun6.cxx @@ -293,9 +293,9 @@ void ScViewFunc::InsertCurrentTime(short nCellFmt, const OUString& rUndoStr) ScDocument* pDoc = pDocSh->GetDocument(); ::svl::IUndoManager* pUndoMgr = pDocSh->GetUndoManager(); SvNumberFormatter* pFormatter = pDoc->GetFormatTable(); - Date aActDate; + Date aActDate( Date::SYSTEM ); double fDate = aActDate - *pFormatter->GetNullDate(); - Time aActTime; + Time aActTime( Time::SYSTEM ); double fTime = aActTime.Get100Sec() / 100.0 + aActTime.GetSec() + (aActTime.GetMin() * 60.0) + (aActTime.GetHour() * 3600.0); -- cgit v1.2.3