summaryrefslogtreecommitdiff
path: root/xmlsecurity/source/component
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-10-17 11:59:18 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-10-17 17:21:34 +0200
commit1d1d0bd4d941c58306f3086cf3103b40ad0978ba (patch)
tree14acd1580a1677e4056bba3623f9f03bf63e77bb /xmlsecurity/source/component
parentfb1469ea68b8f87f17e1729e7c5d4cc8ebbb45bd (diff)
Simplify Sequences in xmlsecurity
Change-Id: I749e19f786ad006dffcd65dd1ee60e57c428f57b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123717 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'xmlsecurity/source/component')
-rw-r--r--xmlsecurity/source/component/documentdigitalsignatures.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/xmlsecurity/source/component/documentdigitalsignatures.cxx b/xmlsecurity/source/component/documentdigitalsignatures.cxx
index 686c49d91b63..50cbdf7184a0 100644
--- a/xmlsecurity/source/component/documentdigitalsignatures.cxx
+++ b/xmlsecurity/source/component/documentdigitalsignatures.cxx
@@ -689,13 +689,10 @@ DocumentDigitalSignatures::chooseCertificatesImpl(std::map<OUString, OUString>&
CertificateChooser aChooser(Application::GetFrameWeld(mxParentWindow), std::move(xSecContexts), eAction);
- uno::Sequence< Reference< css::security::XCertificate > > xCerts(1);
- xCerts[0] = Reference< css::security::XCertificate >(nullptr);
-
if (aChooser.run() != RET_OK)
- return xCerts;
+ return { Reference< css::security::XCertificate >(nullptr) };
- xCerts = aChooser.GetSelectedCertificates();
+ uno::Sequence< Reference< css::security::XCertificate > > xCerts = aChooser.GetSelectedCertificates();
rProperties["Description"] = aChooser.GetDescription();
rProperties["Usage"] = aChooser.GetUsageText();