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>
This commit is contained in:
Takeshi Abe
2018-05-17 17:54:38 +09:00
parent 1de2b14b3f
commit 84efa4087b

View File

@@ -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 )