From e57ca02849c3d87142ff5ff9099a212e72b8139c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 26 Jan 2017 12:28:58 +0100 Subject: Remove dynamic exception specifications ...(for now, from LIBO_INTERNAL_CODE only). See the mail thread starting at "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 Reviewed-by: Stephan Bergmann --- framework/inc/xml/toolboxdocumenthandler.hxx | 52 +++++++--------------------- 1 file changed, 13 insertions(+), 39 deletions(-) (limited to 'framework/inc/xml/toolboxdocumenthandler.hxx') diff --git a/framework/inc/xml/toolboxdocumenthandler.hxx b/framework/inc/xml/toolboxdocumenthandler.hxx index 3e402b86072e..5e7488b3e5c2 100644 --- a/framework/inc/xml/toolboxdocumenthandler.hxx +++ b/framework/inc/xml/toolboxdocumenthandler.hxx @@ -65,41 +65,25 @@ class FWE_DLLPUBLIC OReadToolBoxDocumentHandler : virtual ~OReadToolBoxDocumentHandler() override; // XDocumentHandler - virtual void SAL_CALL startDocument() - throw ( css::xml::sax::SAXException, - css::uno::RuntimeException, std::exception ) override; + virtual void SAL_CALL startDocument() override; - virtual void SAL_CALL endDocument() - throw( css::xml::sax::SAXException, - css::uno::RuntimeException, std::exception ) override; + virtual void SAL_CALL endDocument() override; virtual void SAL_CALL startElement( const OUString& aName, - const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs) - throw( css::xml::sax::SAXException, - css::uno::RuntimeException, std::exception ) override; + const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs) override; - virtual void SAL_CALL endElement(const OUString& aName) - throw( css::xml::sax::SAXException, - css::uno::RuntimeException, std::exception ) override; + virtual void SAL_CALL endElement(const OUString& aName) override; - virtual void SAL_CALL characters(const OUString& aChars) - throw( css::xml::sax::SAXException, - css::uno::RuntimeException, std::exception ) override; + virtual void SAL_CALL characters(const OUString& aChars) override; - virtual void SAL_CALL ignorableWhitespace(const OUString& aWhitespaces) - throw( css::xml::sax::SAXException, - css::uno::RuntimeException, std::exception ) override; + virtual void SAL_CALL ignorableWhitespace(const OUString& aWhitespaces) override; virtual void SAL_CALL processingInstruction(const OUString& aTarget, - const OUString& aData) - throw( css::xml::sax::SAXException, - css::uno::RuntimeException, std::exception ) override; + const OUString& aData) override; virtual void SAL_CALL setDocumentLocator( - const css::uno::Reference< css::xml::sax::XLocator > &xLocator) - throw( css::xml::sax::SAXException, - css::uno::RuntimeException, std::exception ) override; + const css::uno::Reference< css::xml::sax::XLocator > &xLocator) override; private: OUString getErrorLineString(); @@ -146,35 +130,25 @@ class FWE_DLLPUBLIC OWriteToolBoxDocumentHandler final /// @throws css::xml::sax::SAXException /// @throws css::uno::RuntimeException - void WriteToolBoxDocument() throw - ( css::xml::sax::SAXException, - css::uno::RuntimeException ); + void WriteToolBoxDocument(); private: /// @throws css::xml::sax::SAXException /// @throws css::uno::RuntimeException void WriteToolBoxItem( const OUString& aCommandURL, const OUString& aLabel, const OUString& aHelpURL, - sal_Int16 nStyle, bool bVisible ) throw - ( css::xml::sax::SAXException, - css::uno::RuntimeException ); + sal_Int16 nStyle, bool bVisible ); /// @throws css::xml::sax::SAXException /// @throws css::uno::RuntimeException - void WriteToolBoxSpace() throw - ( css::xml::sax::SAXException, - css::uno::RuntimeException ); + void WriteToolBoxSpace(); /// @throws css::xml::sax::SAXException /// @throws css::uno::RuntimeException - void WriteToolBoxBreak() throw - ( css::xml::sax::SAXException, - css::uno::RuntimeException ); + void WriteToolBoxBreak(); /// @throws css::xml::sax::SAXException /// @throws css::uno::RuntimeException - void WriteToolBoxSeparator() throw - ( css::xml::sax::SAXException, - css::uno::RuntimeException ); + void WriteToolBoxSeparator(); css::uno::Reference< css::xml::sax::XDocumentHandler > m_xWriteDocumentHandler; css::uno::Reference< css::xml::sax::XAttributeList > m_xEmptyList; -- cgit