diff options
author | Eike Rathke <erack@redhat.com> | 2011-12-01 21:03:42 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2011-12-01 21:04:29 +0100 |
commit | 86adb5cacb4fe3e7fb869299447da5876f0da30d (patch) | |
tree | f7998dd1a12a82ca53a4fa155cdf5536ac25ef62 /vbahelper | |
parent | b20ea84970fb8b3068880a361822941c47f50edd (diff) |
get rid of class Date and Time default ctor with system time penalty
Diffstat (limited to 'vbahelper')
-rw-r--r-- | vbahelper/source/vbahelper/vbaapplicationbase.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vbahelper/source/vbahelper/vbaapplicationbase.cxx b/vbahelper/source/vbahelper/vbaapplicationbase.cxx index 21eec2670a09..162ea28919ef 100644 --- a/vbahelper/source/vbahelper/vbaapplicationbase.cxx +++ b/vbahelper/source/vbahelper/vbaapplicationbase.cxx @@ -86,8 +86,8 @@ public: static double GetNow() { - Date aDateNow; - Time aTimeNow; + Date aDateNow( Date::SYSTEM ); + Time aTimeNow( Time::SYSTEM ); Date aRefDate( 1,1,1900 ); long nDiffDays = (long)(aDateNow - aRefDate); nDiffDays += 2; // Change VisualBasic: 1.Jan.1900 == 2 |