summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2018-05-17 17:54:38 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2018-05-20 04:47:40 +0200
commit84efa4087b803a39219ccce79ca374d0d09cf6d9 (patch)
treeb526e60fa5d3c059464703b153bfb187fc70c0d2 /sfx2
parent1de2b14b3f736c7a81c68aced6dcdef45b62d4b8 (diff)
sfx2: Avoid looking up system clock twice for current datetime
Change-Id: If5d7bbd611321e6eee1c4bd9143af415c8a1671d Reviewed-on: https://gerrit.libreoffice.org/54472 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/docfile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index 14a5f6aa61f0..1ac4c883d30a 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -333,7 +333,7 @@ SfxMedium_Impl::SfxMedium_Impl() :
m_pInStream(nullptr),
m_pOutStream(nullptr),
pOrigFilter( nullptr ),
- aExpireTime( Date( Date::SYSTEM ) + 10, tools::Time( tools::Time::SYSTEM ) ),
+ aExpireTime( DateTime( DateTime::SYSTEM ) + static_cast<sal_Int32>(10) ),
pTempFile( nullptr ),
nLastStorageError( ERRCODE_NONE ),
m_nSignatureState( SignatureState::NOSIGNATURES )