diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2018-05-23 22:10:22 +0900 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-24 13:28:12 +0200 |
commit | b4960947db5652382710e817ed1412eeb9132be6 (patch) | |
tree | 4f0b6ab59be2616013fcbd392049c9fd9e2e4b1f /xmlsecurity/inc | |
parent | 9082e37400baf75296cb94c5588ddeb3d18f0b09 (diff) |
xmlsecurity: Ask current datetime only once
... and pass it as the sole argument to XMLSignatureHelper::SetDateTime().
Change-Id: I7f3e8dc90bb34ca347a1ad5a79717a338af3bed9
Reviewed-on: https://gerrit.libreoffice.org/54706
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlsecurity/inc')
-rw-r--r-- | xmlsecurity/inc/xmlsignaturehelper.hxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xmlsecurity/inc/xmlsignaturehelper.hxx b/xmlsecurity/inc/xmlsignaturehelper.hxx index c41179d4805c..02128bb4f6a8 100644 --- a/xmlsecurity/inc/xmlsignaturehelper.hxx +++ b/xmlsecurity/inc/xmlsignaturehelper.hxx @@ -37,8 +37,7 @@ #include <com/sun/star/xml/crypto/sax/XSignatureCreationResultListener.hpp> #include <com/sun/star/xml/crypto/sax/XSignatureVerifyResultListener.hpp> -class Date; -namespace tools { class Time; } +class DateTime; namespace com { namespace sun { @@ -128,7 +127,7 @@ public: void SetGpgCertificate(sal_Int32 nSecurityId, const OUString& ouGpgCertDigest, const OUString& ouGpgCert, const OUString& ouGpgOwner); - void SetDateTime( sal_Int32 nSecurityId, const Date& rDate, const tools::Time& rTime ); + void SetDateTime( sal_Int32 nSecurityId, const DateTime& rDateTime ); void SetDescription(sal_Int32 nSecurityId, const OUString& rDescription); void SetSignatureLineId(sal_Int32 nSecurityId, const OUString& rSignatureLineId); void |