diff options
Diffstat (limited to 'xmlsecurity/source/framework')
7 files changed, 8 insertions, 8 deletions
diff --git a/xmlsecurity/source/framework/decryptorimpl.cxx b/xmlsecurity/source/framework/decryptorimpl.cxx index bb41a3dce52f..03e15f618e02 100644 --- a/xmlsecurity/source/framework/decryptorimpl.cxx +++ b/xmlsecurity/source/framework/decryptorimpl.cxx @@ -196,7 +196,7 @@ cssu::Sequence< OUString > SAL_CALL DecryptorImpl_getSupportedServiceNames( ) cssu::Reference< cssu::XInterface > SAL_CALL DecryptorImpl_createInstance( const cssu::Reference< cssl::XMultiServiceFactory >& xMSF) throw( cssu::Exception ) { - return (cppu::OWeakObject*) new DecryptorImpl( comphelper::getComponentContext( xMSF ) ); + return static_cast<cppu::OWeakObject*>(new DecryptorImpl( comphelper::getComponentContext( xMSF ) )); } /* XServiceInfo */ diff --git a/xmlsecurity/source/framework/encryptionengine.cxx b/xmlsecurity/source/framework/encryptionengine.cxx index 6b74377c2aa2..30d8452605c9 100644 --- a/xmlsecurity/source/framework/encryptionengine.cxx +++ b/xmlsecurity/source/framework/encryptionengine.cxx @@ -162,7 +162,7 @@ void EncryptionEngine::clearUp( ) const xReferenceResolvedBroadcaster->removeReferenceResolvedListener( m_nIdOfTemplateEC, - static_cast<const Reference < cssxc::sax::XReferenceResolvedListener > >((SecurityEngine *)this)); + static_cast<const Reference < cssxc::sax::XReferenceResolvedListener > >(static_cast<SecurityEngine *>(const_cast<EncryptionEngine *>(this)))); m_xSAXEventKeeper->removeElementCollector(m_nIdOfTemplateEC); diff --git a/xmlsecurity/source/framework/encryptorimpl.cxx b/xmlsecurity/source/framework/encryptorimpl.cxx index 776b5327f3a6..291433031178 100644 --- a/xmlsecurity/source/framework/encryptorimpl.cxx +++ b/xmlsecurity/source/framework/encryptorimpl.cxx @@ -231,7 +231,7 @@ Reference< XInterface > SAL_CALL EncryptorImpl_createInstance( const Reference< cssl::XMultiServiceFactory >& xMSF) throw( Exception ) { - return (cppu::OWeakObject*) new EncryptorImpl( comphelper::getComponentContext( xMSF ) ); + return static_cast<cppu::OWeakObject*>(new EncryptorImpl( comphelper::getComponentContext( xMSF ) )); } /* XServiceInfo */ diff --git a/xmlsecurity/source/framework/saxeventkeeperimpl.cxx b/xmlsecurity/source/framework/saxeventkeeperimpl.cxx index 652b0f18b6ec..e6fa9ee63a00 100644 --- a/xmlsecurity/source/framework/saxeventkeeperimpl.cxx +++ b/xmlsecurity/source/framework/saxeventkeeperimpl.cxx @@ -1378,7 +1378,7 @@ cssu::Reference< cssu::XInterface > SAL_CALL SAXEventKeeperImpl_createInstance( const cssu::Reference< cssl::XMultiServiceFactory > &) throw( cssu::Exception ) { - return (cppu::OWeakObject*) new SAXEventKeeperImpl(); + return static_cast<cppu::OWeakObject*>(new SAXEventKeeperImpl()); } /* XServiceInfo */ diff --git a/xmlsecurity/source/framework/signaturecreatorimpl.cxx b/xmlsecurity/source/framework/signaturecreatorimpl.cxx index 68f0025bde7c..b9e3b6985613 100644 --- a/xmlsecurity/source/framework/signaturecreatorimpl.cxx +++ b/xmlsecurity/source/framework/signaturecreatorimpl.cxx @@ -245,7 +245,7 @@ cssu::Reference< cssu::XInterface > SAL_CALL SignatureCreatorImpl_createInstance const cssu::Reference< cssl::XMultiServiceFactory >& xMSF ) throw( cssu::Exception ) { - return (cppu::OWeakObject*) new SignatureCreatorImpl( comphelper::getComponentContext( xMSF ) ); + return static_cast<cppu::OWeakObject*>(new SignatureCreatorImpl( comphelper::getComponentContext( xMSF ) )); } /* XServiceInfo */ diff --git a/xmlsecurity/source/framework/signatureengine.cxx b/xmlsecurity/source/framework/signatureengine.cxx index 655b317b7e7c..15285b52bdf0 100644 --- a/xmlsecurity/source/framework/signatureengine.cxx +++ b/xmlsecurity/source/framework/signatureengine.cxx @@ -176,7 +176,7 @@ void SignatureEngine::clearUp( ) const xReferenceResolvedBroadcaster( m_xSAXEventKeeper, cssu::UNO_QUERY ); xReferenceResolvedBroadcaster->removeReferenceResolvedListener( m_nIdOfTemplateEC, - static_cast<const cssu::Reference < cssxc::sax::XReferenceResolvedListener > >((SecurityEngine *)this)); + static_cast<const cssu::Reference < cssxc::sax::XReferenceResolvedListener > >(static_cast<SecurityEngine *>(const_cast<SignatureEngine *>(this)))); m_xSAXEventKeeper->removeElementCollector(m_nIdOfTemplateEC); @@ -186,7 +186,7 @@ void SignatureEngine::clearUp( ) const { xReferenceResolvedBroadcaster->removeReferenceResolvedListener( *ii, - static_cast<const cssu::Reference < cssxc::sax::XReferenceResolvedListener > >((SecurityEngine *)this)); + static_cast<const cssu::Reference < cssxc::sax::XReferenceResolvedListener > >(static_cast<SecurityEngine *>(const_cast<SignatureEngine *>(this)))); m_xSAXEventKeeper->removeElementCollector(*ii); } diff --git a/xmlsecurity/source/framework/signatureverifierimpl.cxx b/xmlsecurity/source/framework/signatureverifierimpl.cxx index 6ef0bedc79c3..9cad609e147f 100644 --- a/xmlsecurity/source/framework/signatureverifierimpl.cxx +++ b/xmlsecurity/source/framework/signatureverifierimpl.cxx @@ -191,7 +191,7 @@ cssu::Reference< cssu::XInterface > SAL_CALL SignatureVerifierImpl_createInstanc const cssu::Reference< cssl::XMultiServiceFactory >& rSMgr) throw( cssu::Exception ) { - return (cppu::OWeakObject*) new SignatureVerifierImpl( comphelper::getComponentContext(rSMgr) ); + return static_cast<cppu::OWeakObject*>(new SignatureVerifierImpl( comphelper::getComponentContext(rSMgr) )); } /* XServiceInfo */ |