From 4af72419f3e8a571d0a367c6422424fdc3ab4061 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sat, 16 Oct 2021 22:47:00 +0200 Subject: Simplify vector initialization in xmlsecurity Change-Id: Ia19ffa1213d578c30f35545bcca515669e7ff7a0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123710 Tested-by: Jenkins Reviewed-by: Julien Nabet --- xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx') diff --git a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx index 86bf4c23f12b..7ffe14da6649 100644 --- a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx +++ b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx @@ -379,8 +379,10 @@ IMPL_LINK_NOARG(DigitalSignaturesDialog, AddButtonHdl, weld::Button&, void) return; try { - std::vector> xSecContexts; - xSecContexts.push_back(maSignatureManager.getSecurityContext()); + std::vector> xSecContexts + { + maSignatureManager.getSecurityContext() + }; // Gpg signing is only possible with ODF >= 1.2 documents if (DocumentSignatureHelper::CanSignWithGPG(maSignatureManager.getStore(), m_sODFVersion)) xSecContexts.push_back(maSignatureManager.getGpgSecurityContext()); -- cgit