[Libreoffice-commits] core.git: sfx2/source
Takeshi Abe
tabe at fixedpoint.jp
Sun May 20 02:48:01 UTC 2018
sfx2/source/doc/docfile.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 84efa4087b803a39219ccce79ca374d0d09cf6d9
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date: Thu May 17 17:54:38 2018 +0900
sfx2: Avoid looking up system clock twice for current datetime
Change-Id: If5d7bbd611321e6eee1c4bd9143af415c8a1671d
Reviewed-on: https://gerrit.libreoffice.org/54472
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Takeshi Abe <tabe at fixedpoint.jp>
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 )
More information about the Libreoffice-commits
mailing list