summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaud VERSINI <arnaud.versini@libreoffice.org>2023-07-02 22:07:15 +0200
committerArnaud Versini <arnaud.versini@libreoffice.org>2023-07-07 07:59:51 +0200
commitf57bb8bbadf086873155401445b03bdb971ecc6f (patch)
tree899d9c7e3d5a8a93bd9d1d4b9e9204e64081f37d
parent77fca616e0bd79e0b405fd0b3543cf8e94e15df3 (diff)
xmlsecurity : remove deadcode and usage of array template
Change-Id: I282e2af395471aa4818bfb4586ac06c7850c8a61 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153862 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-by: Arnaud Versini <arnaud.versini@libreoffice.org> Tested-by: Arnaud Versini <arnaud.versini@libreoffice.org>
-rw-r--r--xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
index 2a3cd3049a13..921dedbca49d 100644
--- a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
+++ b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
@@ -19,7 +19,6 @@
#include <sal/config.h>
-#include <array>
#include <string_view>
#include <digitalsignaturesdialog.hxx>
@@ -117,7 +116,7 @@ namespace
m_nODF = nTmp;
}
#ifdef _WIN32
- constexpr std::array<std::u16string_view, 9> aGUIServers = { u"Gpg4win\\kleopatra.exe",
+ constexpr std::u16string_view aGUIServers[] = { u"Gpg4win\\kleopatra.exe",
u"Gpg4win\\bin\\kleopatra.exe",
u"GNU\\GnuPG\\kleopatra.exe",
u"GNU\\GnuPG\\launch-gpa.exe",
@@ -127,7 +126,7 @@ namespace
u"GNU\\GnuPG\\bin\\launch-gpa.exe",
u"GNU\\GnuPG\\bin\\gpa.exe"};
#else
- constexpr std::array<std::u16string_view, 4> aGUIServers = { u"kleopatra", u"seahorse", u"gpa", u"kgpg" };
+ constexpr std::u16string_view aGUIServers[] = { u"kleopatra", u"seahorse", u"gpa", u"kgpg" };
#endif
}
@@ -551,9 +550,6 @@ IMPL_LINK_NOARG(DigitalSignaturesDialog, CertMgrButtonHdl, weld::Button&, void)
OUString aPath(cPath, strlen(cPath), osl_getThreadTextEncoding());
#endif
- if (aGUIServers.empty())
- return;
-
OUString sFoundGUIServer, sExecutable;
for ( auto const &rServer : aGUIServers)