summaryrefslogtreecommitdiff
path: root/xmlsecurity/inc/xmlsec
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-26 12:28:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-26 12:54:43 +0000
commite57ca02849c3d87142ff5ff9099a212e72b8139c (patch)
treebcce66b27261553c308779f3e8663a269ed3a671 /xmlsecurity/inc/xmlsec
parent8802ebd5172ec4bc412a59d136c82b77ab452281 (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/inc/xmlsec')
-rw-r--r--xmlsecurity/inc/xmlsec/saxhelper.hxx21
-rw-r--r--xmlsecurity/inc/xmlsec/xmldocumentwrapper_xmlsecimpl.hxx108
2 files changed, 43 insertions, 86 deletions
diff --git a/xmlsecurity/inc/xmlsec/saxhelper.hxx b/xmlsecurity/inc/xmlsec/saxhelper.hxx
index 6814ede6d826..44e61de8e0ef 100644
--- a/xmlsecurity/inc/xmlsec/saxhelper.hxx
+++ b/xmlsecurity/inc/xmlsec/saxhelper.hxx
@@ -47,43 +47,36 @@ class SAXHelper final
/// @throws css::xml::sax::SAXException
/// @throws css::uno::RuntimeException
- void startDocument()
- throw( css::xml::sax::SAXException , css::uno::RuntimeException ) ;
+ void startDocument() ;
/// @throws css::xml::sax::SAXException
/// @throws css::uno::RuntimeException
- void endDocument()
- throw( css::xml::sax::SAXException , css::uno::RuntimeException ) ;
+ void endDocument() ;
/// @throws css::xml::sax::SAXException
/// @throws css::uno::RuntimeException
void startElement(
const OUString& aName ,
const css::uno::Sequence<
- css::xml::csax::XMLAttribute >& aAttributes )
- throw( css::xml::sax::SAXException , css::uno::RuntimeException ) ;
+ css::xml::csax::XMLAttribute >& aAttributes ) ;
/// @throws css::xml::sax::SAXException
/// @throws css::uno::RuntimeException
- void endElement( const OUString& aName )
- throw( css::xml::sax::SAXException , css::uno::RuntimeException ) ;
+ void endElement( const OUString& aName ) ;
/// @throws css::xml::sax::SAXException
/// @throws css::uno::RuntimeException
- void characters( const OUString& aChars )
- throw( css::xml::sax::SAXException , css::uno::RuntimeException ) ;
+ void characters( const OUString& aChars ) ;
/// @throws css::xml::sax::SAXException
/// @throws css::uno::RuntimeException
- void ignorableWhitespace( const OUString& aWhitespaces )
- throw( css::xml::sax::SAXException , css::uno::RuntimeException ) ;
+ void ignorableWhitespace( const OUString& aWhitespaces ) ;
/// @throws css::xml::sax::SAXException
/// @throws css::uno::RuntimeException
void processingInstruction(
const OUString& aTarget ,
- const OUString& aData )
- throw( css::xml::sax::SAXException , css::uno::RuntimeException ) ;
+ const OUString& aData ) ;
} ;
diff --git a/xmlsecurity/inc/xmlsec/xmldocumentwrapper_xmlsecimpl.hxx b/xmlsecurity/inc/xmlsec/xmldocumentwrapper_xmlsecimpl.hxx
index dfeb0042adf0..94d237997702 100644
--- a/xmlsecurity/inc/xmlsec/xmldocumentwrapper_xmlsecimpl.hxx
+++ b/xmlsecurity/inc/xmlsec/xmldocumentwrapper_xmlsecimpl.hxx
@@ -93,22 +93,19 @@ private:
static void sendStartElement(
const css::uno::Reference< css::xml::sax::XDocumentHandler >& xHandler,
const css::uno::Reference< css::xml::sax::XDocumentHandler >& xHandler2,
- const xmlNodePtr pNode)
- throw (css::xml::sax::SAXException);
+ const xmlNodePtr pNode);
/// @throws css::xml::sax::SAXException
static void sendEndElement(
const css::uno::Reference< css::xml::sax::XDocumentHandler >& xHandler,
const css::uno::Reference< css::xml::sax::XDocumentHandler >& xHandler2,
- const xmlNodePtr pNode)
- throw (css::xml::sax::SAXException);
+ const xmlNodePtr pNode);
/// @throws css::xml::sax::SAXException
static void sendNode(
const css::uno::Reference< css::xml::sax::XDocumentHandler >& xHandler,
const css::uno::Reference< css::xml::sax::XDocumentHandler >& xHandler2,
- const xmlNodePtr pNode)
- throw (css::xml::sax::SAXException);
+ const xmlNodePtr pNode);
static OString getNodeQName(const xmlNodePtr pNode);
@@ -129,135 +126,102 @@ public:
virtual ~XMLDocumentWrapper_XmlSecImpl() override;
/* css::xml::wrapper::XXMLDocumentWrapper */
- virtual css::uno::Reference< css::xml::wrapper::XXMLElementWrapper > SAL_CALL getCurrentElement( )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::xml::wrapper::XXMLElementWrapper > SAL_CALL getCurrentElement( ) override;
virtual void SAL_CALL setCurrentElement( const css::uno::Reference<
- css::xml::wrapper::XXMLElementWrapper >& element )
- throw (css::uno::RuntimeException, std::exception) override;
+ css::xml::wrapper::XXMLElementWrapper >& element ) override;
- virtual void SAL_CALL removeCurrentElement( )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL removeCurrentElement( ) override;
virtual sal_Bool SAL_CALL isCurrent( const css::uno::Reference<
- css::xml::wrapper::XXMLElementWrapper >& node )
- throw (css::uno::RuntimeException, std::exception) override;
+ css::xml::wrapper::XXMLElementWrapper >& node ) override;
- virtual sal_Bool SAL_CALL isCurrentElementEmpty( )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL isCurrentElementEmpty( ) override;
virtual OUString SAL_CALL getNodeName( const css::uno::Reference<
- css::xml::wrapper::XXMLElementWrapper >& node )
- throw (css::uno::RuntimeException, std::exception) override;
+ css::xml::wrapper::XXMLElementWrapper >& node ) override;
virtual void SAL_CALL clearUselessData(
const css::uno::Reference< css::xml::wrapper::XXMLElementWrapper >& node,
const css::uno::Sequence< css::uno::Reference< css::xml::wrapper::XXMLElementWrapper > >& reservedDescendants,
- const css::uno::Reference< css::xml::wrapper::XXMLElementWrapper >& stopAtNode )
- throw (css::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::xml::wrapper::XXMLElementWrapper >& stopAtNode ) override;
virtual void SAL_CALL collapse( const css::uno::Reference<
- css::xml::wrapper::XXMLElementWrapper >& node )
- throw (css::uno::RuntimeException, std::exception) override;
+ css::xml::wrapper::XXMLElementWrapper >& node ) override;
virtual void SAL_CALL generateSAXEvents(
const css::uno::Reference< css::xml::sax::XDocumentHandler >& handler,
const css::uno::Reference< css::xml::sax::XDocumentHandler >& xEventKeeperHandler,
const css::uno::Reference< css::xml::wrapper::XXMLElementWrapper >& startNode,
- const css::uno::Reference< css::xml::wrapper::XXMLElementWrapper >& endNode )
- throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::xml::wrapper::XXMLElementWrapper >& endNode ) override;
virtual void SAL_CALL getTree(
- const css::uno::Reference< css::xml::sax::XDocumentHandler >& handler )
- throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::xml::sax::XDocumentHandler >& handler ) override;
virtual void SAL_CALL rebuildIDLink(
- const css::uno::Reference< css::xml::wrapper::XXMLElementWrapper >& node )
- throw (css::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::xml::wrapper::XXMLElementWrapper >& node ) override;
/* css::xml::sax::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;
+ virtual void SAL_CALL processingInstruction( const OUString& aTarget, 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;
+ virtual void SAL_CALL setDocumentLocator( const css::uno::Reference< css::xml::sax::XLocator >& xLocator ) override;
/* css::xml::csax::XCompressedDocumentHandler */
- virtual void SAL_CALL compressedStartDocument( )
- throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL compressedStartDocument( ) override;
- virtual void SAL_CALL compressedEndDocument( )
- throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL compressedEndDocument( ) override;
virtual void SAL_CALL compressedStartElement(
const OUString& aName,
- const css::uno::Sequence< css::xml::csax::XMLAttribute >& aAttributes )
- throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
+ const css::uno::Sequence< css::xml::csax::XMLAttribute >& aAttributes ) override;
- virtual void SAL_CALL compressedEndElement( const OUString& aName )
- throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL compressedEndElement( const OUString& aName ) override;
- virtual void SAL_CALL compressedCharacters( const OUString& aChars )
- throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL compressedCharacters( const OUString& aChars ) override;
- virtual void SAL_CALL compressedIgnorableWhitespace( const OUString& aWhitespaces )
- throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL compressedIgnorableWhitespace( const OUString& aWhitespaces ) override;
- virtual void SAL_CALL compressedProcessingInstruction( const OUString& aTarget, const OUString& aData )
- throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL compressedProcessingInstruction( const OUString& aTarget, const OUString& aData ) override;
virtual void SAL_CALL compressedSetDocumentLocator(
sal_Int32 columnNumber,
sal_Int32 lineNumber,
const OUString& publicId,
- const OUString& systemId )
- throw (css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override;
+ const OUString& systemId ) override;
/* css::lang::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;
+ virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) 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;
};
/// @throws css::uno::RuntimeException
-OUString XMLDocumentWrapper_XmlSecImpl_getImplementationName()
- throw ( css::uno::RuntimeException );
+OUString XMLDocumentWrapper_XmlSecImpl_getImplementationName();
/// @throws css::uno::RuntimeException
css::uno::Sequence< OUString > SAL_CALL
- XMLDocumentWrapper_XmlSecImpl_getSupportedServiceNames( )
- throw ( css::uno::RuntimeException );
+ XMLDocumentWrapper_XmlSecImpl_getSupportedServiceNames( );
/// @throws css::uno::Exception
css::uno::Reference< css::uno::XInterface >
SAL_CALL XMLDocumentWrapper_XmlSecImpl_createInstance(
- const css::uno::Reference< css::uno::XComponentContext > &)
- throw ( css::uno::Exception );
+ const css::uno::Reference< css::uno::XComponentContext > &);
#endif