diff options
Diffstat (limited to 'xmlsecurity/source')
-rw-r--r-- | xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx b/xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx index ebe113c73175..1afcd3c88a57 100644 --- a/xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx +++ b/xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx @@ -95,7 +95,7 @@ SAL_CALL XMLSignature_GpgImpl::generate( //Get Keys Manager SecurityEnvironmentGpg* pSecEnv = - dynamic_cast<SecurityEnvironmentGpg*>(aEnvironment.get()); + comphelper::getFromUnoTunnel<SecurityEnvironmentGpg>(aEnvironment); if( pSecEnv == nullptr ) throw RuntimeException() ; @@ -306,7 +306,7 @@ SAL_CALL XMLSignature_GpgImpl::validate( Reference< XSecurityEnvironment > aEnvironment = aSecurityCtx->getSecurityEnvironmentByIndex(i); SecurityEnvironmentGpg* pSecEnv = - dynamic_cast<SecurityEnvironmentGpg*>(aEnvironment.get()); + comphelper::getFromUnoTunnel<SecurityEnvironmentGpg>(aEnvironment); if( pSecEnv == nullptr ) throw RuntimeException() ; |