summaryrefslogtreecommitdiff
path: root/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-10-16 22:47:00 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-10-17 12:30:15 +0200
commit4af72419f3e8a571d0a367c6422424fdc3ab4061 (patch)
treebde965aca50c5393f5730a900281eaf7f71eece5 /xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
parent43a9bf11203ed92096af34ab828501e0218832c7 (diff)
Simplify vector initialization in xmlsecurity
Change-Id: Ia19ffa1213d578c30f35545bcca515669e7ff7a0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123710 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx')
-rw-r--r--xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx6
1 files changed, 4 insertions, 2 deletions
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<uno::Reference<xml::crypto::XXMLSecurityContext>> xSecContexts;
- xSecContexts.push_back(maSignatureManager.getSecurityContext());
+ std::vector<uno::Reference<xml::crypto::XXMLSecurityContext>> 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());