summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-04-10 15:14:02 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-04-13 01:54:37 -0400
commitbc36f99b32cd46acd4e5dbdc63cfff23316185af (patch)
tree9b1421e9875cdcda32cafe8dbea5ff4657e06605 /sc/source/ui
parent2a53a72fbffe285fb50193f853bab60db61ccf54 (diff)
Centralize D_TIMEFACTOR as DATE_TIME_FACTOR.
It was about time. Change-Id: I87225be540c22b3031c6aee3f3fd9d26795abef8
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/view/viewfun6.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sc/source/ui/view/viewfun6.cxx b/sc/source/ui/view/viewfun6.cxx
index 37376e4aed23..ec0f6d421c90 100644
--- a/sc/source/ui/view/viewfun6.cxx
+++ b/sc/source/ui/view/viewfun6.cxx
@@ -43,14 +43,12 @@
#include "formulacell.hxx"
#include "markdata.hxx"
#include "drawview.hxx"
+#include "globalnames.hxx"
#include <vector>
using ::std::vector;
-#define D_TIMEFACTOR 86400.0
-
-
void ScViewFunc::DetectiveAddPred()
{
ScDocShell* pDocSh = GetViewData()->GetDocShell();
@@ -255,7 +253,7 @@ void ScViewFunc::InsertCurrentTime(short nCellFmt, const OUString& rUndoStr)
double fTime =
aActTime.Get100Sec() / 100.0 + aActTime.GetSec() +
(aActTime.GetMin() * 60.0) + (aActTime.GetHour() * 3600.0);
- fTime /= D_TIMEFACTOR;
+ fTime /= DATE_TIME_FACTOR;
pUndoMgr->EnterListAction(rUndoStr, rUndoStr);
pDocSh->GetDocFunc().SetValueCell(aCurPos, fDate+fTime, true);