summaryrefslogtreecommitdiff
path: root/xmlsecurity/source/xmlsec/nss
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-01-13 08:27:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-01-14 09:31:29 +0000
commit6f812b7ac60c1c4fbc8ccba234c19ccf3871dee4 (patch)
tree599ebb9122485fba774c5932490ecd15aebe42e8 /xmlsecurity/source/xmlsec/nss
parent97db783599148e7829a898f7e46764e777500ecc (diff)
XUnoTunnel->dynamic_cast in XMLElementWrapper_XmlSecImpl
Change-Id: Ie0654c8ba6367b575c289b63ac02668ae38066c5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145495 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlsecurity/source/xmlsec/nss')
-rw-r--r--xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx
index 9b79b79b245b..4c5cc4b418d8 100644
--- a/xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx
+++ b/xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx
@@ -110,9 +110,8 @@ SAL_CALL XMLSignature_NssImpl::generate(
throw RuntimeException() ;
}
- Reference< XUnoTunnel > xNodTunnel( xElement , UNO_QUERY_THROW ) ;
XMLElementWrapper_XmlSecImpl* pElement
- = comphelper::getFromUnoTunnel<XMLElementWrapper_XmlSecImpl>(xNodTunnel);
+ = dynamic_cast<XMLElementWrapper_XmlSecImpl*>(xElement.get());
if( pElement == nullptr ) {
throw RuntimeException() ;
}
@@ -192,9 +191,8 @@ SAL_CALL XMLSignature_NssImpl::validate(
if( !xElement.is() )
throw RuntimeException() ;
- Reference< XUnoTunnel > xNodTunnel( xElement , UNO_QUERY_THROW ) ;
XMLElementWrapper_XmlSecImpl* pElement
- = comphelper::getFromUnoTunnel<XMLElementWrapper_XmlSecImpl>(xNodTunnel);
+ = dynamic_cast<XMLElementWrapper_XmlSecImpl*>(xElement.get());
if( pElement == nullptr )
throw RuntimeException() ;