summaryrefslogtreecommitdiff
path: root/xmlsecurity/source/helper/documentsignaturemanager.cxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2018-05-23 22:10:22 +0900
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-24 13:28:12 +0200
commitb4960947db5652382710e817ed1412eeb9132be6 (patch)
tree4f0b6ab59be2616013fcbd392049c9fd9e2e4b1f /xmlsecurity/source/helper/documentsignaturemanager.cxx
parent9082e37400baf75296cb94c5588ddeb3d18f0b09 (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/source/helper/documentsignaturemanager.cxx')
-rw-r--r--xmlsecurity/source/helper/documentsignaturemanager.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/xmlsecurity/source/helper/documentsignaturemanager.cxx b/xmlsecurity/source/helper/documentsignaturemanager.cxx
index f302f1a64955..c88c18964b22 100644
--- a/xmlsecurity/source/helper/documentsignaturemanager.cxx
+++ b/xmlsecurity/source/helper/documentsignaturemanager.cxx
@@ -35,8 +35,7 @@
#include <comphelper/storagehelper.hxx>
#include <rtl/ustrbuf.hxx>
#include <sax/tools/converter.hxx>
-#include <tools/date.hxx>
-#include <tools/time.hxx>
+#include <tools/datetime.hxx>
#include <o3tl/make_unique.hxx>
#include <certificate.hxx>
@@ -385,8 +384,7 @@ bool DocumentSignatureManager::add(
maSignatureHelper.AddForSigning(nSecurityId, aElements[n], bBinaryMode, bAdESCompliant);
}
- maSignatureHelper.SetDateTime(nSecurityId, Date(Date::SYSTEM),
- tools::Time(tools::Time::SYSTEM));
+ maSignatureHelper.SetDateTime(nSecurityId, DateTime(DateTime::SYSTEM));
maSignatureHelper.SetDescription(nSecurityId, rDescription);
if (!rSignatureLineId.isEmpty())