diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-26 12:28:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-26 12:54:43 +0000 |
commit | e57ca02849c3d87142ff5ff9099a212e72b8139c (patch) | |
tree | bcce66b27261553c308779f3e8663a269ed3a671 /xmlsecurity/source/framework | |
parent | 8802ebd5172ec4bc412a59d136c82b77ab452281 (diff) |
Remove dynamic exception specifications
...(for now, from LIBO_INTERNAL_CODE only). See the mail thread starting at
<https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html>
"Dynamic Exception Specifications" for details.
Most changes have been done automatically by the rewriting loplugin:dynexcspec
(after enabling the rewriting mode, to be committed shortly). The way it only
removes exception specs from declarations if it also sees a definition, it
identified some dead declarations-w/o-definitions (that have been removed
manually) and some cases where a definition appeared in multiple include files
(which have also been cleaned up manually). There's also been cases of macro
paramters (that were used to abstract over exception specs) that have become
unused now (and been removed).
Furthermore, some code needed to be cleaned up manually
(avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no
configurations available that would actually build that code. Missing @throws
documentation has not been applied in such manual clean-up.
Change-Id: I3408691256c9b0c12bc5332de976743626e13960
Reviewed-on: https://gerrit.libreoffice.org/33574
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'xmlsecurity/source/framework')
15 files changed, 61 insertions, 197 deletions
diff --git a/xmlsecurity/source/framework/decryptorimpl.cxx b/xmlsecurity/source/framework/decryptorimpl.cxx index d499bcd96087..757b5d9507d6 100644 --- a/xmlsecurity/source/framework/decryptorimpl.cxx +++ b/xmlsecurity/source/framework/decryptorimpl.cxx @@ -64,7 +64,6 @@ bool DecryptorImpl::checkReady() const } void DecryptorImpl::notifyResultListener() const - throw (cssu::Exception, cssu::RuntimeException) /****** DecryptorImpl/notifyResultListener *********************************** * * NAME @@ -81,7 +80,6 @@ void DecryptorImpl::notifyResultListener() const void DecryptorImpl::startEngine( const cssu::Reference< cssxc::XXMLEncryptionTemplate >& xEncryptionTemplate) - throw (cssu::Exception, cssu::RuntimeException) /****** DecryptorImpl/startEngine ******************************************** * * NAME @@ -117,20 +115,17 @@ void DecryptorImpl::startEngine( const cssu::Reference< /* XDecryptionResultBroadcaster */ void SAL_CALL DecryptorImpl::addDecryptionResultListener( const cssu::Reference< cssxc::sax::XDecryptionResultListener >& listener ) - throw (cssu::Exception, cssu::RuntimeException, std::exception) { m_xResultListener = listener; tryToPerform(); } void SAL_CALL DecryptorImpl::removeDecryptionResultListener( const cssu::Reference< cssxc::sax::XDecryptionResultListener >&) - throw (cssu::RuntimeException, std::exception) { } /* XInitialization */ void SAL_CALL DecryptorImpl::initialize( const cssu::Sequence< cssu::Any >& aArguments ) - throw (cssu::Exception, cssu::RuntimeException, std::exception) { OSL_ASSERT(aArguments.getLength() == 5); @@ -146,39 +141,33 @@ void SAL_CALL DecryptorImpl::initialize( const cssu::Sequence< cssu::Any >& aArg } OUString DecryptorImpl_getImplementationName () - throw (cssu::RuntimeException) { return OUString ( IMPLEMENTATION_NAME ); } cssu::Sequence< OUString > SAL_CALL DecryptorImpl_getSupportedServiceNames( ) - throw (cssu::RuntimeException) { cssu::Sequence<OUString> aRet { "com.sun.star.xml.crypto.sax.Decryptor" }; return aRet; } cssu::Reference< cssu::XInterface > SAL_CALL DecryptorImpl_createInstance( const cssu::Reference< cssl::XMultiServiceFactory >& xMSF) - throw( cssu::Exception ) { return static_cast<cppu::OWeakObject*>(new DecryptorImpl( comphelper::getComponentContext( xMSF ) )); } /* XServiceInfo */ OUString SAL_CALL DecryptorImpl::getImplementationName( ) - throw (cssu::RuntimeException, std::exception) { return DecryptorImpl_getImplementationName(); } sal_Bool SAL_CALL DecryptorImpl::supportsService( const OUString& rServiceName ) - throw (cssu::RuntimeException, std::exception) { return cppu::supportsService(this, rServiceName); } cssu::Sequence< OUString > SAL_CALL DecryptorImpl::getSupportedServiceNames( ) - throw (cssu::RuntimeException, std::exception) { return DecryptorImpl_getSupportedServiceNames(); } diff --git a/xmlsecurity/source/framework/decryptorimpl.hxx b/xmlsecurity/source/framework/decryptorimpl.hxx index 0c485250210f..b1b72c1ef0e9 100644 --- a/xmlsecurity/source/framework/decryptorimpl.hxx +++ b/xmlsecurity/source/framework/decryptorimpl.hxx @@ -51,13 +51,11 @@ class DecryptorImpl : public DecryptorImpl_Base private: css::uno::Reference< css::xml::crypto::XXMLSecurityContext > m_xXMLSecurityContext; - virtual void notifyResultListener() const - throw (css::uno::Exception, css::uno::RuntimeException) override; + virtual void notifyResultListener() const override; virtual bool checkReady() const override; virtual void startEngine( const css::uno::Reference< css::xml::crypto::XXMLEncryptionTemplate >& - xEncryptionTemplate) - throw (css::uno::Exception, css::uno::RuntimeException) override; + xEncryptionTemplate) override; public: explicit DecryptorImpl(const css::uno::Reference< css::uno::XComponentContext > & xContext); @@ -65,38 +63,29 @@ public: /* XDecryptionResultBroadcaster */ virtual void SAL_CALL addDecryptionResultListener( - const css::uno::Reference< css::xml::crypto::sax::XDecryptionResultListener >& listener ) - throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override; + const css::uno::Reference< css::xml::crypto::sax::XDecryptionResultListener >& listener ) override; virtual void SAL_CALL removeDecryptionResultListener( - const css::uno::Reference< css::xml::crypto::sax::XDecryptionResultListener >& listener ) - throw (css::uno::RuntimeException, std::exception) override; + const css::uno::Reference< css::xml::crypto::sax::XDecryptionResultListener >& listener ) override; /* XInitialization */ virtual void SAL_CALL initialize( - const css::uno::Sequence< css::uno::Any >& aArguments ) - throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override; + const css::uno::Sequence< css::uno::Any >& aArguments ) override; /* XServiceInfo */ - virtual OUString SAL_CALL getImplementationName( ) - throw (css::uno::RuntimeException, std::exception) override; - virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) - throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) - throw (css::uno::RuntimeException, std::exception) override; + virtual OUString SAL_CALL getImplementationName( ) override; + virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override; + virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override; }; /// @throws css::uno::RuntimeException -OUString DecryptorImpl_getImplementationName() - throw ( css::uno::RuntimeException ); +OUString DecryptorImpl_getImplementationName(); /// @throws css::uno::RuntimeException -css::uno::Sequence< OUString > SAL_CALL DecryptorImpl_getSupportedServiceNames( ) - throw ( css::uno::RuntimeException ); +css::uno::Sequence< OUString > SAL_CALL DecryptorImpl_getSupportedServiceNames( ); /// @throws css::uno::Exception css::uno::Reference< css::uno::XInterface > -SAL_CALL DecryptorImpl_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& rSMgr) - throw ( css::uno::Exception ); +SAL_CALL DecryptorImpl_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& rSMgr); #endif diff --git a/xmlsecurity/source/framework/encryptionengine.cxx b/xmlsecurity/source/framework/encryptionengine.cxx index eb236e81be97..8cf7d295da5c 100644 --- a/xmlsecurity/source/framework/encryptionengine.cxx +++ b/xmlsecurity/source/framework/encryptionengine.cxx @@ -74,7 +74,6 @@ bool EncryptionEngine::checkReady() const } void EncryptionEngine::tryToPerform( ) - throw (Exception, RuntimeException) /****** EncryptionEngine/tryToPerform **************************************** * * NAME @@ -152,7 +151,6 @@ void EncryptionEngine::clearUp( ) const /* XBlockerMonitor */ void SAL_CALL EncryptionEngine::setBlockerId( sal_Int32 id ) - throw (css::uno::Exception, css::uno::RuntimeException, std::exception) { m_nIdOfBlocker = id; tryToPerform(); diff --git a/xmlsecurity/source/framework/encryptionengine.hxx b/xmlsecurity/source/framework/encryptionengine.hxx index c71ec058c739..33915c5ceb0e 100644 --- a/xmlsecurity/source/framework/encryptionengine.hxx +++ b/xmlsecurity/source/framework/encryptionengine.hxx @@ -69,8 +69,7 @@ protected: explicit EncryptionEngine( const css::uno::Reference< css::uno::XComponentContext > & xContext ); virtual ~EncryptionEngine() override {}; - virtual void tryToPerform( ) - throw (css::uno::Exception, css::uno::RuntimeException) override; + virtual void tryToPerform( ) override; virtual void clearUp( ) const override; virtual bool checkReady() const override; @@ -82,13 +81,11 @@ protected: /// @throws css::uno::Exception /// @throws css::uno::RuntimeException virtual void startEngine( const css::uno::Reference< css::xml::crypto::XXMLEncryptionTemplate >&) - throw (css::uno::Exception, css::uno::RuntimeException) {}; public: /* XBlockerMonitor */ - virtual void SAL_CALL setBlockerId( sal_Int32 id ) - throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL setBlockerId( sal_Int32 id ) override; }; #endif diff --git a/xmlsecurity/source/framework/encryptorimpl.cxx b/xmlsecurity/source/framework/encryptorimpl.cxx index 33bd583b5d85..8c274147c26f 100644 --- a/xmlsecurity/source/framework/encryptorimpl.cxx +++ b/xmlsecurity/source/framework/encryptorimpl.cxx @@ -73,7 +73,6 @@ bool EncryptorImpl::checkReady() const } void EncryptorImpl::notifyResultListener() const - throw (Exception, RuntimeException) /****** DecryptorImpl/notifyResultListener *********************************** * * NAME @@ -90,7 +89,6 @@ void EncryptorImpl::notifyResultListener() const void EncryptorImpl::startEngine( const Reference< cssxc::XXMLEncryptionTemplate >& xEncryptionTemplate) - throw (Exception, RuntimeException) /****** EncryptorImpl/startEngine ******************************************** * * NAME @@ -136,7 +134,6 @@ void EncryptorImpl::startEngine( const Reference< /* XReferenceCollector */ void SAL_CALL EncryptorImpl::setReferenceCount(sal_Int32) - throw (Exception, RuntimeException, std::exception) { /* * dummy method, because there is only one reference in @@ -146,27 +143,23 @@ void SAL_CALL EncryptorImpl::setReferenceCount(sal_Int32) } void SAL_CALL EncryptorImpl::setReferenceId( sal_Int32 id ) - throw (Exception, RuntimeException, std::exception) { m_nReferenceId = id; } /* XEncryptionResultBroadcaster */ void SAL_CALL EncryptorImpl::addEncryptionResultListener( const Reference< cssxc::sax::XEncryptionResultListener >& listener ) - throw (Exception, RuntimeException, std::exception) { m_xResultListener = listener; tryToPerform(); } void SAL_CALL EncryptorImpl::removeEncryptionResultListener( const Reference< cssxc::sax::XEncryptionResultListener >&) - throw (RuntimeException, std::exception) { } /* XInitialization */ void SAL_CALL EncryptorImpl::initialize( const Sequence< Any >& aArguments ) - throw (Exception, RuntimeException, std::exception) { OSL_ASSERT(aArguments.getLength() == 5); @@ -183,13 +176,11 @@ void SAL_CALL EncryptorImpl::initialize( const Sequence< Any >& aArguments ) OUString EncryptorImpl_getImplementationName () - throw (RuntimeException) { return OUString ( IMPLEMENTATION_NAME ); } Sequence< OUString > SAL_CALL EncryptorImpl_getSupportedServiceNames( ) - throw (RuntimeException) { Sequence<OUString> aRet { "com.sun.star.xml.crypto.sax.Encryptor" }; return aRet; @@ -197,26 +188,22 @@ Sequence< OUString > SAL_CALL EncryptorImpl_getSupportedServiceNames( ) Reference< XInterface > SAL_CALL EncryptorImpl_createInstance( const Reference< cssl::XMultiServiceFactory >& xMSF) - throw( Exception ) { return static_cast<cppu::OWeakObject*>(new EncryptorImpl( comphelper::getComponentContext( xMSF ) )); } /* XServiceInfo */ OUString SAL_CALL EncryptorImpl::getImplementationName( ) - throw (RuntimeException, std::exception) { return EncryptorImpl_getImplementationName(); } sal_Bool SAL_CALL EncryptorImpl::supportsService( const OUString& rServiceName ) - throw (RuntimeException, std::exception) { return cppu::supportsService(this, rServiceName); } Sequence< OUString > SAL_CALL EncryptorImpl::getSupportedServiceNames( ) - throw (RuntimeException, std::exception) { return EncryptorImpl_getSupportedServiceNames(); } diff --git a/xmlsecurity/source/framework/encryptorimpl.hxx b/xmlsecurity/source/framework/encryptorimpl.hxx index 561c041aa493..d0e8f05c5073 100644 --- a/xmlsecurity/source/framework/encryptorimpl.hxx +++ b/xmlsecurity/source/framework/encryptorimpl.hxx @@ -60,13 +60,11 @@ private: css::uno::Reference< css::xml::crypto::XSecurityEnvironment > m_xSecurityEnvironment; - virtual void notifyResultListener() const - throw (css::uno::Exception, css::uno::RuntimeException) override; + virtual void notifyResultListener() const override; virtual bool checkReady() const override; virtual void startEngine( const css::uno::Reference< css::xml::crypto::XXMLEncryptionTemplate >& - xEncryptionTemplate) - throw (css::uno::Exception, css::uno::RuntimeException) override; + xEncryptionTemplate) override; public: explicit EncryptorImpl(const css::uno::Reference< css::uno::XComponentContext > & xContext); @@ -76,48 +74,37 @@ public: virtual void SAL_CALL addEncryptionResultListener( const css::uno::Reference< css::xml::crypto::sax::XEncryptionResultListener >& - listener ) - throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override; + listener ) override; virtual void SAL_CALL removeEncryptionResultListener( const css::uno::Reference< css::xml::crypto::sax::XEncryptionResultListener >& - listener ) - throw (css::uno::RuntimeException, std::exception) override; + listener ) override; /* XReferenceCollector */ - virtual void SAL_CALL setReferenceCount( sal_Int32 count ) - throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL setReferenceCount( sal_Int32 count ) override; - virtual void SAL_CALL setReferenceId( sal_Int32 id ) - throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL setReferenceId( sal_Int32 id ) override; /* XInitialization */ virtual void SAL_CALL initialize( - const css::uno::Sequence< css::uno::Any >& aArguments ) - throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override; + const css::uno::Sequence< css::uno::Any >& aArguments ) override; /* XServiceInfo */ - virtual OUString SAL_CALL getImplementationName( ) - throw (css::uno::RuntimeException, std::exception) override; - virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) - throw (css::uno::RuntimeException, std::exception) override; - virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) - throw (css::uno::RuntimeException, std::exception) override; + virtual OUString SAL_CALL getImplementationName( ) override; + virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override; + virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override; }; /// @throws css::uno::RuntimeException -OUString EncryptorImpl_getImplementationName() - throw ( css::uno::RuntimeException ); +OUString EncryptorImpl_getImplementationName(); /// @throws css::uno::RuntimeException -css::uno::Sequence< OUString > SAL_CALL EncryptorImpl_getSupportedServiceNames( ) - throw ( css::uno::RuntimeException ); +css::uno::Sequence< OUString > SAL_CALL EncryptorImpl_getSupportedServiceNames( ); /// @throws css::uno::Exception css::uno::Reference< css::uno::XInterface > SAL_CALL EncryptorImpl_createInstance( - const css::uno::Reference< css::lang::XMultiServiceFactory >& rSMgr) - throw ( css::uno::Exception ); + const css::uno::Reference< css::lang::XMultiServiceFactory >& rSMgr); #endif diff --git a/xmlsecurity/source/framework/saxeventkeeperimpl.cxx b/xmlsecurity/source/framework/saxeventkeeperimpl.cxx index e14bc1fa7830..bb1ce37ff4f2 100644 --- a/xmlsecurity/source/framework/saxeventkeeperimpl.cxx +++ b/xmlsecurity/source/framework/saxeventkeeperimpl.cxx @@ -858,7 +858,6 @@ sal_Int32 SAXEventKeeperImpl::createBlocker() /* XSAXEventKeeper */ sal_Int32 SAL_CALL SAXEventKeeperImpl::addElementCollector( ) - throw (cssu::RuntimeException, std::exception) { return createElementCollector( cssxc::sax::ElementMarkPriority_AFTERMODIFY, @@ -867,32 +866,27 @@ sal_Int32 SAL_CALL SAXEventKeeperImpl::addElementCollector( ) } void SAL_CALL SAXEventKeeperImpl::removeElementCollector( sal_Int32 id ) - throw (cssu::RuntimeException, std::exception) { markElementMarkBuffer(id); } sal_Int32 SAL_CALL SAXEventKeeperImpl::addBlocker( ) - throw (cssu::RuntimeException, std::exception) { return createBlocker(); } void SAL_CALL SAXEventKeeperImpl::removeBlocker( sal_Int32 id ) - throw (cssu::RuntimeException, std::exception) { markElementMarkBuffer(id); } sal_Bool SAL_CALL SAXEventKeeperImpl::isBlocking( ) - throw (cssu::RuntimeException, std::exception) { return (m_pCurrentBlockingBufferNode != nullptr); } cssu::Reference< cssxw::XXMLElementWrapper > SAL_CALL SAXEventKeeperImpl::getElement( sal_Int32 id ) - throw (cssu::RuntimeException, std::exception) { cssu::Reference< cssxw::XXMLElementWrapper > rc; @@ -908,7 +902,6 @@ cssu::Reference< cssxw::XXMLElementWrapper > SAL_CALL void SAL_CALL SAXEventKeeperImpl::setElement( sal_Int32 id, const cssu::Reference< cssxw::XXMLElementWrapper >& aElement ) - throw (cssu::RuntimeException, std::exception) { if (aElement.is()) { @@ -939,7 +932,6 @@ void SAL_CALL SAXEventKeeperImpl::setElement( cssu::Reference< cssxs::XDocumentHandler > SAL_CALL SAXEventKeeperImpl::setNextHandler( const cssu::Reference< cssxs::XDocumentHandler >& xNewHandler ) - throw (cssu::RuntimeException, std::exception) { cssu::Reference< cssxs::XDocumentHandler > xOldHandler = m_xNextHandler; @@ -948,7 +940,6 @@ cssu::Reference< cssxs::XDocumentHandler > SAL_CALL SAXEventKeeperImpl::setNextH } OUString SAL_CALL SAXEventKeeperImpl::printBufferNodeTree() - throw (cssu::RuntimeException, std::exception) { OUString rc; @@ -962,7 +953,6 @@ OUString SAL_CALL SAXEventKeeperImpl::printBufferNodeTree() } cssu::Reference< cssxw::XXMLElementWrapper > SAL_CALL SAXEventKeeperImpl::getCurrentBlockingNode() - throw (cssu::RuntimeException, std::exception) { cssu::Reference< cssxw::XXMLElementWrapper > rc; @@ -978,7 +968,6 @@ cssu::Reference< cssxw::XXMLElementWrapper > SAL_CALL SAXEventKeeperImpl::getCur sal_Int32 SAL_CALL SAXEventKeeperImpl::addSecurityElementCollector( cssxc::sax::ElementMarkPriority priority, sal_Bool modifyElement ) - throw (cssu::RuntimeException, std::exception) { return createElementCollector( priority, @@ -987,7 +976,6 @@ sal_Int32 SAL_CALL SAXEventKeeperImpl::addSecurityElementCollector( } void SAL_CALL SAXEventKeeperImpl::setSecurityId( sal_Int32 id, sal_Int32 securityId ) - throw (cssu::RuntimeException, std::exception) { ElementMark* pElementMark = findElementMarkBuffer(id); if (pElementMark != nullptr) @@ -1001,7 +989,6 @@ void SAL_CALL SAXEventKeeperImpl::setSecurityId( sal_Int32 id, sal_Int32 securit void SAL_CALL SAXEventKeeperImpl::addReferenceResolvedListener( sal_Int32 referenceId, const cssu::Reference< cssxc::sax::XReferenceResolvedListener >& listener ) - throw (cssu::RuntimeException, std::exception) { ElementCollector* pElementCollector = static_cast<ElementCollector*>(findElementMarkBuffer(referenceId)); if (pElementCollector != nullptr) @@ -1013,27 +1000,23 @@ void SAL_CALL SAXEventKeeperImpl::addReferenceResolvedListener( void SAL_CALL SAXEventKeeperImpl::removeReferenceResolvedListener( sal_Int32 /*referenceId*/, const cssu::Reference< cssxc::sax::XReferenceResolvedListener >&) - throw (cssu::RuntimeException, std::exception) { } /* XSAXEventKeeperStatusChangeBroadcaster */ void SAL_CALL SAXEventKeeperImpl::addSAXEventKeeperStatusChangeListener( const cssu::Reference< cssxc::sax::XSAXEventKeeperStatusChangeListener >& listener ) - throw (cssu::RuntimeException, std::exception) { m_xSAXEventKeeperStatusChangeListener = listener; } void SAL_CALL SAXEventKeeperImpl::removeSAXEventKeeperStatusChangeListener( const cssu::Reference< cssxc::sax::XSAXEventKeeperStatusChangeListener >&) - throw (cssu::RuntimeException, std::exception) { } /* XDocumentHandler */ void SAL_CALL SAXEventKeeperImpl::startDocument( ) - throw (cssxs::SAXException, cssu::RuntimeException, std::exception) { if ( m_xNextHandler.is()) { @@ -1042,7 +1025,6 @@ void SAL_CALL SAXEventKeeperImpl::startDocument( ) } void SAL_CALL SAXEventKeeperImpl::endDocument( ) - throw (cssxs::SAXException, cssu::RuntimeException, std::exception) { if ( m_xNextHandler.is()) { @@ -1053,7 +1035,6 @@ void SAL_CALL SAXEventKeeperImpl::endDocument( ) void SAL_CALL SAXEventKeeperImpl::startElement( const OUString& aName, const cssu::Reference< cssxs::XAttributeList >& xAttribs ) - throw (cssxs::SAXException, cssu::RuntimeException, std::exception) { /* * If there is a following handler and no blocking now, then @@ -1091,7 +1072,6 @@ void SAL_CALL SAXEventKeeperImpl::startElement( } void SAL_CALL SAXEventKeeperImpl::endElement( const OUString& aName ) - throw (cssxs::SAXException, cssu::RuntimeException, std::exception) { bool bIsCurrent = m_xXMLDocument->isCurrent(m_pCurrentBufferNode->getXMLElement()); @@ -1144,7 +1124,6 @@ void SAL_CALL SAXEventKeeperImpl::endElement( const OUString& aName ) } void SAL_CALL SAXEventKeeperImpl::characters( const OUString& aChars ) - throw (cssxs::SAXException, cssu::RuntimeException, std::exception) { if (!m_bIsForwarding) { @@ -1162,14 +1141,12 @@ void SAL_CALL SAXEventKeeperImpl::characters( const OUString& aChars ) } void SAL_CALL SAXEventKeeperImpl::ignorableWhitespace( const OUString& aWhitespaces ) - throw (cssxs::SAXException, cssu::RuntimeException, std::exception) { characters( aWhitespaces ); } void SAL_CALL SAXEventKeeperImpl::processingInstruction( const OUString& aTarget, const OUString& aData ) - throw (cssxs::SAXException, cssu::RuntimeException, std::exception) { if (!m_bIsForwarding) { @@ -1187,13 +1164,11 @@ void SAL_CALL SAXEventKeeperImpl::processingInstruction( } void SAL_CALL SAXEventKeeperImpl::setDocumentLocator( const cssu::Reference< cssxs::XLocator >&) - throw (cssxs::SAXException, cssu::RuntimeException, std::exception) { } /* XInitialization */ void SAL_CALL SAXEventKeeperImpl::initialize( const cssu::Sequence< cssu::Any >& aArguments ) - throw (cssu::Exception, cssu::RuntimeException, std::exception) { OSL_ASSERT(aArguments.getLength() == 1); @@ -1206,13 +1181,11 @@ void SAL_CALL SAXEventKeeperImpl::initialize( const cssu::Sequence< cssu::Any >& } OUString SAXEventKeeperImpl_getImplementationName () - throw (cssu::RuntimeException) { return OUString ( IMPLEMENTATION_NAME ); } cssu::Sequence< OUString > SAL_CALL SAXEventKeeperImpl_getSupportedServiceNames( ) - throw (cssu::RuntimeException) { cssu::Sequence<OUString> aRet { "com.sun.star.xml.crypto.sax.SAXEventKeeper" }; return aRet; @@ -1220,26 +1193,22 @@ cssu::Sequence< OUString > SAL_CALL SAXEventKeeperImpl_getSupportedServiceNames( cssu::Reference< cssu::XInterface > SAL_CALL SAXEventKeeperImpl_createInstance( const cssu::Reference< cssl::XMultiServiceFactory > &) - throw( cssu::Exception ) { return static_cast<cppu::OWeakObject*>(new SAXEventKeeperImpl()); } /* XServiceInfo */ OUString SAL_CALL SAXEventKeeperImpl::getImplementationName( ) - throw (cssu::RuntimeException, std::exception) { return SAXEventKeeperImpl_getImplementationName(); } sal_Bool SAL_CALL SAXEventKeeperImpl::supportsService( const OUString& rServiceName ) - throw (cssu::RuntimeException, std::exception) { return cppu::supportsService(this, rServiceName); } cssu::Sequence< OUString > SAL_CALL SAXEventKeeperImpl::getSupportedServiceNames( ) - throw (cssu::RuntimeException, std::exception) { return SAXEventKeeperImpl_getSupportedServiceNames(); } diff --git a/xmlsecurity/source/framework/securityengine.cxx b/xmlsecurity/source/framework/securityengine.cxx index 80e7ecfb8be1..fa8ec96428c1 100644 --- a/xmlsecurity/source/framework/securityengine.cxx +++ b/xmlsecurity/source/framework/securityengine.cxx @@ -34,7 +34,6 @@ SecurityEngine::SecurityEngine() /* XReferenceResolvedListener */ void SAL_CALL SecurityEngine::referenceResolved( sal_Int32 /*referenceId*/) - throw (css::uno::Exception, css::uno::RuntimeException, std::exception) { m_nNumOfResolvedReferences++; tryToPerform(); @@ -42,7 +41,6 @@ void SAL_CALL SecurityEngine::referenceResolved( sal_Int32 /*referenceId*/) /* XKeyCollector */ void SAL_CALL SecurityEngine::setKeyId( sal_Int32 id ) - throw (css::uno::Exception, css::uno::RuntimeException, std::exception) { m_nIdOfKeyEC = id; tryToPerform(); @@ -50,7 +48,6 @@ void SAL_CALL SecurityEngine::setKeyId( sal_Int32 id ) /* XMissionTaker */ sal_Bool SAL_CALL SecurityEngine::endMission( ) - throw (css::uno::RuntimeException, std::exception) { bool rc = m_bMissionDone; diff --git a/xmlsecurity/source/framework/signaturecreatorimpl.cxx b/xmlsecurity/source/framework/signaturecreatorimpl.cxx index 3e289b90f134..d938601afed7 100644 --- a/xmlsecurity/source/framework/signaturecreatorimpl.cxx +++ b/xmlsecurity/source/framework/signaturecreatorimpl.cxx @@ -68,7 +68,6 @@ bool SignatureCreatorImpl::checkReady() const } void SignatureCreatorImpl::notifyResultListener() const - throw (cssu::Exception, cssu::RuntimeException) /****** SignatureCreatorImpl/notifyResultListener ***************************** * * NAME @@ -85,7 +84,6 @@ void SignatureCreatorImpl::notifyResultListener() const void SignatureCreatorImpl::startEngine( const cssu::Reference< cssxc::XXMLSignatureTemplate >& xSignatureTemplate) - throw (cssu::Exception, cssu::RuntimeException) /****** SignatureCreatorImpl/startEngine ************************************* * * NAME @@ -147,7 +145,6 @@ void SignatureCreatorImpl::clearUp() const /* XBlockerMonitor */ void SAL_CALL SignatureCreatorImpl::setBlockerId( sal_Int32 id ) - throw (cssu::Exception, cssu::RuntimeException, std::exception) { m_nIdOfBlocker = id; tryToPerform(); @@ -156,7 +153,6 @@ void SAL_CALL SignatureCreatorImpl::setBlockerId( sal_Int32 id ) /* XSignatureCreationResultBroadcaster */ void SAL_CALL SignatureCreatorImpl::addSignatureCreationResultListener( const cssu::Reference< cssxc::sax::XSignatureCreationResultListener >& listener ) - throw (cssu::Exception, cssu::RuntimeException, std::exception) { m_xResultListener = listener; tryToPerform(); @@ -164,13 +160,11 @@ void SAL_CALL SignatureCreatorImpl::addSignatureCreationResultListener( void SAL_CALL SignatureCreatorImpl::removeSignatureCreationResultListener( const cssu::Reference< cssxc::sax::XSignatureCreationResultListener >&) - throw (cssu::RuntimeException, std::exception) { } /* XInitialization */ void SAL_CALL SignatureCreatorImpl::initialize( const cssu::Sequence< cssu::Any >& aArguments ) - throw (cssu::Exception, cssu::RuntimeException, std::exception) { OSL_ASSERT(aArguments.getLength() == 5); @@ -187,13 +181,11 @@ void SAL_CALL SignatureCreatorImpl::initialize( const cssu::Sequence< cssu::Any OUString SignatureCreatorImpl_getImplementationName () - throw (cssu::RuntimeException) { return OUString ( IMPLEMENTATION_NAME ); } cssu::Sequence< OUString > SAL_CALL SignatureCreatorImpl_getSupportedServiceNames( ) - throw (cssu::RuntimeException) { cssu::Sequence<OUString> aRet { "com.sun.star.xml.crypto.sax.SignatureCreator" }; return aRet; @@ -201,26 +193,22 @@ cssu::Sequence< OUString > SAL_CALL SignatureCreatorImpl_getSupportedServiceName cssu::Reference< cssu::XInterface > SAL_CALL SignatureCreatorImpl_createInstance( const cssu::Reference< cssl::XMultiServiceFactory >& /*xMSF*/ ) - throw( cssu::Exception ) { return static_cast<cppu::OWeakObject*>(new SignatureCreatorImpl); } /* XServiceInfo */ OUString SAL_CALL SignatureCreatorImpl::getImplementationName( ) - throw (cssu::RuntimeException, std::exception) { return SignatureCreatorImpl_getImplementationName(); } sal_Bool SAL_CALL SignatureCreatorImpl::supportsService( const OUString& rServiceName ) - throw (cssu::RuntimeException, std::exception) { return cppu::supportsService(this, rServiceName); } cssu::Sequence< OUString > SAL_CALL SignatureCreatorImpl::getSupportedServiceNames( ) - throw (cssu::RuntimeException, std::exception) { return SignatureCreatorImpl_getSupportedServiceNames(); } diff --git a/xmlsecurity/source/framework/signatureengine.cxx b/xmlsecurity/source/framework/signatureengine.cxx index b22d97cbccf4..8b570465c44d 100644 --- a/xmlsecurity/source/framework/signatureengine.cxx +++ b/xmlsecurity/source/framework/signatureengine.cxx @@ -75,7 +75,6 @@ bool SignatureEngine::checkReady() const } void SignatureEngine::tryToPerform( ) - throw (cssu::Exception, cssu::RuntimeException) /****** SignatureEngine/tryToPerform ***************************************** * * NAME @@ -164,14 +163,12 @@ void SignatureEngine::clearUp( ) const /* XReferenceCollector */ void SAL_CALL SignatureEngine::setReferenceCount( sal_Int32 count ) - throw (cssu::Exception, cssu::RuntimeException, std::exception) { m_nTotalReferenceNumber = count; tryToPerform(); } void SAL_CALL SignatureEngine::setReferenceId( sal_Int32 id ) - throw (cssu::Exception, cssu::RuntimeException, std::exception) { m_vReferenceIds.push_back( id ); } @@ -180,14 +177,12 @@ void SAL_CALL SignatureEngine::setReferenceId( sal_Int32 id ) void SAL_CALL SignatureEngine::setUriBinding( const OUString& uri, const cssu::Reference< css::io::XInputStream >& aInputStream ) - throw (cssu::Exception, cssu::RuntimeException, std::exception) { m_vUris.push_back(uri); m_vXInputStreams.push_back(aInputStream); } cssu::Reference< css::io::XInputStream > SAL_CALL SignatureEngine::getUriBinding( const OUString& uri ) - throw (cssu::Exception, cssu::RuntimeException, std::exception) { cssu::Reference< css::io::XInputStream > xInputStream; diff --git a/xmlsecurity/source/framework/signatureverifierimpl.cxx b/xmlsecurity/source/framework/signatureverifierimpl.cxx index b399af103718..0ae3b619ddcc 100644 --- a/xmlsecurity/source/framework/signatureverifierimpl.cxx +++ b/xmlsecurity/source/framework/signatureverifierimpl.cxx @@ -63,7 +63,6 @@ bool SignatureVerifierImpl::checkReady() const } void SignatureVerifierImpl::notifyResultListener() const - throw (cssu::Exception, cssu::RuntimeException) /****** SignatureVerifierImpl/notifyResultListener *************************** * * NAME @@ -79,7 +78,6 @@ void SignatureVerifierImpl::notifyResultListener() const void SignatureVerifierImpl::startEngine( const cssu::Reference< cssxc::XXMLSignatureTemplate >& xSignatureTemplate) - throw (cssu::Exception, cssu::RuntimeException) /****** SignatureVerifierImpl/startEngine ************************************ * * NAME @@ -108,7 +106,6 @@ void SignatureVerifierImpl::startEngine( const cssu::Reference< /* XSignatureVerifyResultBroadcaster */ void SAL_CALL SignatureVerifierImpl::addSignatureVerifyResultListener( const cssu::Reference< cssxc::sax::XSignatureVerifyResultListener >& listener ) - throw (cssu::Exception, cssu::RuntimeException, std::exception) { m_xResultListener = listener; tryToPerform(); @@ -116,14 +113,12 @@ void SAL_CALL SignatureVerifierImpl::addSignatureVerifyResultListener( void SAL_CALL SignatureVerifierImpl::removeSignatureVerifyResultListener( const cssu::Reference< cssxc::sax::XSignatureVerifyResultListener >&) - throw (cssu::RuntimeException, std::exception) { } /* XInitialization */ void SAL_CALL SignatureVerifierImpl::initialize( const cssu::Sequence< cssu::Any >& aArguments ) - throw (cssu::Exception, cssu::RuntimeException, std::exception) { OSL_ASSERT(aArguments.getLength() == 5); @@ -140,13 +135,11 @@ void SAL_CALL SignatureVerifierImpl::initialize( OUString SignatureVerifierImpl_getImplementationName () - throw (cssu::RuntimeException) { return OUString( IMPLEMENTATION_NAME ); } cssu::Sequence< OUString > SAL_CALL SignatureVerifierImpl_getSupportedServiceNames( ) - throw (cssu::RuntimeException) { cssu::Sequence<OUString> aRet { "com.sun.star.xml.crypto.sax.SignatureVerifier" }; return aRet; @@ -154,26 +147,22 @@ cssu::Sequence< OUString > SAL_CALL SignatureVerifierImpl_getSupportedServiceNam cssu::Reference< cssu::XInterface > SAL_CALL SignatureVerifierImpl_createInstance( const cssu::Reference< cssl::XMultiServiceFactory >& /*rSMgr*/) - throw( cssu::Exception ) { return static_cast<cppu::OWeakObject*>(new SignatureVerifierImpl); } /* XServiceInfo */ OUString SAL_CALL SignatureVerifierImpl::getImplementationName( ) - throw (cssu::RuntimeException, std::exception) { return SignatureVerifierImpl_getImplementationName(); } sal_Bool SAL_CALL SignatureVerifierImpl::supportsService( const OUString& rServiceName ) - throw (cssu::RuntimeException, std::exception) { return cppu::supportsService(this, rServiceName); } cssu::Sequence< OUString > SAL_CALL SignatureVerifierImpl::getSupportedServiceNames( ) - throw (cssu::RuntimeException, std::exception) { return SignatureVerifierImpl_getSupportedServiceNames(); } diff --git a/xmlsecurity/source/framework/xmlencryptiontemplateimpl.cxx b/xmlsecurity/source/framework/xmlencryptiontemplateimpl.cxx index 2cb06278d19a..923f4bb73b3a 100644 --- a/xmlsecurity/source/framework/xmlencryptiontemplateimpl.cxx +++ b/xmlsecurity/source/framework/xmlencryptiontemplateimpl.cxx @@ -39,51 +39,45 @@ XMLEncryptionTemplateImpl::~XMLEncryptionTemplateImpl() { /* XXMLEncryptionTemplate */ void SAL_CALL XMLEncryptionTemplateImpl::setTemplate( const Reference< XXMLElementWrapper >& aTemplate ) - throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception) { m_xTemplate = aTemplate ; } /* XXMLEncryptionTemplate */ Reference< XXMLElementWrapper > SAL_CALL XMLEncryptionTemplateImpl::getTemplate() -throw (css::uno::RuntimeException, std::exception) { return m_xTemplate ; } /* XXMLEncryptionTemplate */ -void SAL_CALL XMLEncryptionTemplateImpl::setTarget( const Reference< XXMLElementWrapper >& aTarget ) - throw( css::lang::IllegalArgumentException, std::exception ) { +void SAL_CALL XMLEncryptionTemplateImpl::setTarget( const Reference< XXMLElementWrapper >& aTarget ) { m_xTarget = aTarget ; } /* XXMLEncryptionTemplate */ Reference< XXMLElementWrapper > SAL_CALL XMLEncryptionTemplateImpl::getTarget() -throw (css::uno::RuntimeException, std::exception) { return m_xTarget ; } void SAL_CALL XMLEncryptionTemplateImpl::setStatus( css::xml::crypto::SecurityOperationStatus status ) - throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) { m_nStatus = status; } css::xml::crypto::SecurityOperationStatus SAL_CALL XMLEncryptionTemplateImpl::getStatus( ) - throw (css::uno::RuntimeException, std::exception) { return m_nStatus; } /* XServiceInfo */ -OUString SAL_CALL XMLEncryptionTemplateImpl::getImplementationName() throw( RuntimeException, std::exception ) { +OUString SAL_CALL XMLEncryptionTemplateImpl::getImplementationName() { return impl_getImplementationName() ; } /* XServiceInfo */ -sal_Bool SAL_CALL XMLEncryptionTemplateImpl::supportsService( const OUString& serviceName) throw( RuntimeException, std::exception ) { +sal_Bool SAL_CALL XMLEncryptionTemplateImpl::supportsService( const OUString& serviceName) { Sequence< OUString > seqServiceNames = getSupportedServiceNames() ; const OUString* pArray = seqServiceNames.getConstArray() ; for( sal_Int32 i = 0 ; i < seqServiceNames.getLength() ; i ++ ) { @@ -94,7 +88,7 @@ sal_Bool SAL_CALL XMLEncryptionTemplateImpl::supportsService( const OUString& se } /* XServiceInfo */ -Sequence< OUString > SAL_CALL XMLEncryptionTemplateImpl::getSupportedServiceNames() throw( RuntimeException, std::exception ) { +Sequence< OUString > SAL_CALL XMLEncryptionTemplateImpl::getSupportedServiceNames() { return impl_getSupportedServiceNames() ; } @@ -105,12 +99,12 @@ Sequence< OUString > XMLEncryptionTemplateImpl::impl_getSupportedServiceNames() return seqServiceNames; } -OUString XMLEncryptionTemplateImpl::impl_getImplementationName() throw( RuntimeException ) { +OUString XMLEncryptionTemplateImpl::impl_getImplementationName() { return OUString("com.sun.star.xml.security.framework.XMLEncryptionTemplateImpl") ; } //Helper for registry -Reference< XInterface > SAL_CALL XMLEncryptionTemplateImpl::impl_createInstance( const Reference< XMultiServiceFactory >& ) throw( RuntimeException ) { +Reference< XInterface > SAL_CALL XMLEncryptionTemplateImpl::impl_createInstance( const Reference< XMultiServiceFactory >& ) { return Reference< XInterface >( *new XMLEncryptionTemplateImpl ) ; } diff --git a/xmlsecurity/source/framework/xmlencryptiontemplateimpl.hxx b/xmlsecurity/source/framework/xmlencryptiontemplateimpl.hxx index e5bec6a3e098..adc92a868d48 100644 --- a/xmlsecurity/source/framework/xmlencryptiontemplateimpl.hxx +++ b/xmlsecurity/source/framework/xmlencryptiontemplateimpl.hxx @@ -50,44 +50,41 @@ class XMLEncryptionTemplateImpl : public ::cppu::WeakImplHelper< //Methods from XXMLEncryptionTemplate virtual void SAL_CALL setTemplate( const css::uno::Reference< css::xml::wrapper::XXMLElementWrapper >& aXmlElement - ) - throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception) override; + ) override; virtual css::uno::Reference< css::xml::wrapper::XXMLElementWrapper > SAL_CALL getTemplate( - ) throw (css::uno::RuntimeException, std::exception) override; + ) override; virtual void SAL_CALL setTarget( const css::uno::Reference< css::xml::wrapper::XXMLElementWrapper >& aXmlElement - ) throw( css::lang::IllegalArgumentException, std::exception) override; + ) override; virtual css::uno::Reference< css::xml::wrapper::XXMLElementWrapper > SAL_CALL getTarget( - ) throw (css::uno::RuntimeException, std::exception) override ; + ) override ; virtual void SAL_CALL setStatus( - css::xml::crypto::SecurityOperationStatus status ) - throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override; + css::xml::crypto::SecurityOperationStatus status ) override; virtual css::xml::crypto::SecurityOperationStatus - SAL_CALL getStatus( ) - throw (css::uno::RuntimeException, std::exception) override; + SAL_CALL getStatus( ) override; //Methods from XServiceInfo - virtual OUString SAL_CALL getImplementationName() throw( css::uno::RuntimeException, std::exception ) override ; + virtual OUString SAL_CALL getImplementationName() override ; virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName - ) throw( css::uno::RuntimeException, std::exception ) override ; + ) override ; - virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception ) override ; + virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override ; //Helper for XServiceInfo static css::uno::Sequence< OUString > impl_getSupportedServiceNames() ; /// @throws css::uno::RuntimeException - static OUString impl_getImplementationName() throw( css::uno::RuntimeException ) ; + static OUString impl_getImplementationName() ; //Helper for registry /// @throws css::uno::RuntimeException - static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& aServiceManager ) throw( css::uno::RuntimeException ) ; + static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& aServiceManager ) ; static css::uno::Reference< css::lang::XSingleServiceFactory > impl_createFactory( const css::uno::Reference< css::lang::XMultiServiceFactory >& aServiceManager ) ; } ; diff --git a/xmlsecurity/source/framework/xmlsignaturetemplateimpl.cxx b/xmlsecurity/source/framework/xmlsignaturetemplateimpl.cxx index a2f7b9bd41dc..8d85579e4a7b 100644 --- a/xmlsecurity/source/framework/xmlsignaturetemplateimpl.cxx +++ b/xmlsecurity/source/framework/xmlsignaturetemplateimpl.cxx @@ -40,26 +40,22 @@ XMLSignatureTemplateImpl::~XMLSignatureTemplateImpl() { /* XXMLSignatureTemplate */ void SAL_CALL XMLSignatureTemplateImpl::setTemplate( const Reference< XXMLElementWrapper >& aTemplate ) - throw( css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception) { m_xTemplate = aTemplate ; } /* XXMLSignatureTemplate */ Reference< XXMLElementWrapper > SAL_CALL XMLSignatureTemplateImpl::getTemplate() - throw (css::uno::RuntimeException, std::exception) { return m_xTemplate ; } void SAL_CALL XMLSignatureTemplateImpl::setTarget( const css::uno::Reference< css::xml::wrapper::XXMLElementWrapper >& aXmlElement ) - throw( css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception) { targets.push_back( aXmlElement ); } css::uno::Sequence< css::uno::Reference< css::xml::wrapper::XXMLElementWrapper > > SAL_CALL XMLSignatureTemplateImpl::getTargets() - throw (css::uno::RuntimeException, std::exception) { sal_Int32 length = targets.size(); css::uno::Sequence< css::uno::Reference< css::xml::wrapper::XXMLElementWrapper > > aTargets (length); @@ -76,37 +72,33 @@ css::uno::Sequence< css::uno::Reference< css::xml::wrapper::XXMLElementWrapper > void SAL_CALL XMLSignatureTemplateImpl::setBinding( const css::uno::Reference< css::xml::crypto::XUriBinding >& aUriBinding ) - throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) { m_xUriBinding = aUriBinding; } css::uno::Reference< css::xml::crypto::XUriBinding > SAL_CALL XMLSignatureTemplateImpl::getBinding() - throw (css::uno::RuntimeException, std::exception) { return m_xUriBinding; } void SAL_CALL XMLSignatureTemplateImpl::setStatus( css::xml::crypto::SecurityOperationStatus status ) - throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) { m_nStatus = status; } css::xml::crypto::SecurityOperationStatus SAL_CALL XMLSignatureTemplateImpl::getStatus( ) - throw (css::uno::RuntimeException, std::exception) { return m_nStatus; } /* XServiceInfo */ -OUString SAL_CALL XMLSignatureTemplateImpl::getImplementationName() throw( RuntimeException, std::exception ) { +OUString SAL_CALL XMLSignatureTemplateImpl::getImplementationName() { return impl_getImplementationName() ; } /* XServiceInfo */ -sal_Bool SAL_CALL XMLSignatureTemplateImpl::supportsService( const OUString& serviceName) throw( RuntimeException, std::exception ) { +sal_Bool SAL_CALL XMLSignatureTemplateImpl::supportsService( const OUString& serviceName) { Sequence< OUString > seqServiceNames = getSupportedServiceNames() ; const OUString* pArray = seqServiceNames.getConstArray() ; for( sal_Int32 i = 0 ; i < seqServiceNames.getLength() ; i ++ ) { @@ -117,7 +109,7 @@ sal_Bool SAL_CALL XMLSignatureTemplateImpl::supportsService( const OUString& ser } /* XServiceInfo */ -Sequence< OUString > SAL_CALL XMLSignatureTemplateImpl::getSupportedServiceNames() throw( RuntimeException, std::exception ) { +Sequence< OUString > SAL_CALL XMLSignatureTemplateImpl::getSupportedServiceNames() { return impl_getSupportedServiceNames() ; } @@ -128,12 +120,12 @@ Sequence< OUString > XMLSignatureTemplateImpl::impl_getSupportedServiceNames() { return seqServiceNames ; } -OUString XMLSignatureTemplateImpl::impl_getImplementationName() throw( RuntimeException ) { +OUString XMLSignatureTemplateImpl::impl_getImplementationName() { return OUString("com.sun.star.xml.security.framework.XMLSignatureTemplateImpl") ; } //Helper for registry -Reference< XInterface > SAL_CALL XMLSignatureTemplateImpl::impl_createInstance( const Reference< XMultiServiceFactory >& ) throw( RuntimeException ) { +Reference< XInterface > SAL_CALL XMLSignatureTemplateImpl::impl_createInstance( const Reference< XMultiServiceFactory >& ) { return Reference< XInterface >( *new XMLSignatureTemplateImpl ) ; } diff --git a/xmlsecurity/source/framework/xmlsignaturetemplateimpl.hxx b/xmlsecurity/source/framework/xmlsignaturetemplateimpl.hxx index ad04b808a967..62f713aecc6f 100644 --- a/xmlsecurity/source/framework/xmlsignaturetemplateimpl.hxx +++ b/xmlsecurity/source/framework/xmlsignaturetemplateimpl.hxx @@ -52,50 +52,46 @@ class XMLSignatureTemplateImpl : public ::cppu::WeakImplHelper< //Methods from XXMLSignatureTemplate virtual void SAL_CALL setTemplate( const css::uno::Reference< css::xml::wrapper::XXMLElementWrapper >& aXmlElement - ) throw( css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception) override; + ) override; virtual css::uno::Reference< css::xml::wrapper::XXMLElementWrapper > SAL_CALL getTemplate( - ) throw (css::uno::RuntimeException, std::exception) override; + ) override; virtual void SAL_CALL setTarget( const css::uno::Reference< css::xml::wrapper::XXMLElementWrapper >& aXmlElement - ) throw( css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception) override; + ) override; virtual css::uno::Sequence< css::uno::Reference< css::xml::wrapper::XXMLElementWrapper > > SAL_CALL getTargets( - ) throw (css::uno::RuntimeException, std::exception) override; + ) override; virtual void SAL_CALL setBinding( - const css::uno::Reference< css::xml::crypto::XUriBinding >& aUriBinding ) - throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override; + const css::uno::Reference< css::xml::crypto::XUriBinding >& aUriBinding ) override; virtual css::uno::Reference< css::xml::crypto::XUriBinding > - SAL_CALL getBinding( ) - throw (css::uno::RuntimeException, std::exception) override; + SAL_CALL getBinding( ) override; virtual void SAL_CALL setStatus( - css::xml::crypto::SecurityOperationStatus status ) - throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override; + css::xml::crypto::SecurityOperationStatus status ) override; virtual css::xml::crypto::SecurityOperationStatus - SAL_CALL getStatus( ) - throw (css::uno::RuntimeException, std::exception) override; + SAL_CALL getStatus( ) override; //Methods from XServiceInfo - virtual OUString SAL_CALL getImplementationName() throw( css::uno::RuntimeException, std::exception ) override ; + virtual OUString SAL_CALL getImplementationName() override ; virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName - ) throw( css::uno::RuntimeException, std::exception ) override ; + ) override ; - virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception ) override ; + virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override ; //Helper for XServiceInfo static css::uno::Sequence< OUString > impl_getSupportedServiceNames() ; /// @throws css::uno::RuntimeException - static OUString impl_getImplementationName() throw( css::uno::RuntimeException ) ; + static OUString impl_getImplementationName() ; //Helper for registry /// @throws css::uno::RuntimeException - static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& aServiceManager ) throw( css::uno::RuntimeException ) ; + static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& aServiceManager ) ; static css::uno::Reference< css::lang::XSingleServiceFactory > impl_createFactory( const css::uno::Reference< css::lang::XMultiServiceFactory >& aServiceManager ) ; } ; |