diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-12-21 16:01:08 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-12-22 06:56:59 +0000 |
commit | 24e14afd1bfcaed6c200ab081973fba7e47267ca (patch) | |
tree | 370e634ab773cd8c2b82b73ace94cbe40ad20c91 /xmlsecurity/source/framework | |
parent | 1a7ad0c10d286ce9ae2700ceb2fd50eed1fb43a4 (diff) |
loplugin:unocast (SignatureVerifierImpl)
(See the upcoming commit introducing that loplugin:unocast on why such
dynamic_casts from UNO types are dangerous.)
Change-Id: I3c2f1eae3d9b2b5ecb6a05c9e7149946b63bb11f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144697
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'xmlsecurity/source/framework')
-rw-r--r-- | xmlsecurity/source/framework/signatureverifierimpl.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/xmlsecurity/source/framework/signatureverifierimpl.cxx b/xmlsecurity/source/framework/signatureverifierimpl.cxx index 44e9e4c0a46c..3489dab31bed 100644 --- a/xmlsecurity/source/framework/signatureverifierimpl.cxx +++ b/xmlsecurity/source/framework/signatureverifierimpl.cxx @@ -21,6 +21,7 @@ #include <framework/signatureverifierimpl.hxx> #include <framework/xmlsignaturetemplateimpl.hxx> #include <com/sun/star/xml/crypto/XXMLSignatureTemplate.hpp> +#include <comphelper/servicehelper.hxx> #include <cppuhelper/supportsservice.hxx> #include <osl/diagnose.h> #include <rtl/ref.hxx> @@ -127,4 +128,13 @@ css::uno::Sequence< OUString > SAL_CALL SignatureVerifierImpl::getSupportedServi return SignatureVerifierImpl_getSupportedServiceNames(); } +sal_Int64 SignatureVerifierImpl::getSomething(css::uno::Sequence<sal_Int8> const & aIdentifier) { + return comphelper::getSomethingImpl(aIdentifier, this); +} + +css::uno::Sequence<sal_Int8> const & SignatureVerifierImpl::getUnoTunnelId() { + static comphelper::UnoIdInit const id; + return id.getSeq(); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |