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 /reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx | |
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 'reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx')
-rw-r--r-- | reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx b/reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx index f204ecb5cf84..7d9c13a593b7 100644 --- a/reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx +++ b/reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx @@ -63,17 +63,17 @@ ImportDocumentHandler::~ImportDocumentHandler() } IMPLEMENT_GET_IMPLEMENTATION_ID(ImportDocumentHandler) -OUString SAL_CALL ImportDocumentHandler::getImplementationName( ) throw(uno::RuntimeException, std::exception) +OUString SAL_CALL ImportDocumentHandler::getImplementationName( ) { return getImplementationName_Static(); } -sal_Bool SAL_CALL ImportDocumentHandler::supportsService( const OUString& ServiceName ) throw(uno::RuntimeException, std::exception) +sal_Bool SAL_CALL ImportDocumentHandler::supportsService( const OUString& ServiceName ) { return cppu::supportsService(this, ServiceName); } -uno::Sequence< OUString > SAL_CALL ImportDocumentHandler::getSupportedServiceNames( ) throw(uno::RuntimeException, std::exception) +uno::Sequence< OUString > SAL_CALL ImportDocumentHandler::getSupportedServiceNames( ) { uno::Sequence< OUString > aSupported; if ( m_xServiceInfo.is() ) @@ -81,12 +81,12 @@ uno::Sequence< OUString > SAL_CALL ImportDocumentHandler::getSupportedServiceNam return ::comphelper::concatSequences(getSupportedServiceNames_static(),aSupported); } -OUString ImportDocumentHandler::getImplementationName_Static( ) throw(uno::RuntimeException) +OUString ImportDocumentHandler::getImplementationName_Static( ) { return OUString("com.sun.star.comp.report.ImportDocumentHandler"); } -uno::Sequence< OUString > ImportDocumentHandler::getSupportedServiceNames_static( ) throw(uno::RuntimeException) +uno::Sequence< OUString > ImportDocumentHandler::getSupportedServiceNames_static( ) { uno::Sequence< OUString > aSupported { "com.sun.star.report.ImportDocumentHandler" }; return aSupported; @@ -98,12 +98,12 @@ uno::Reference< uno::XInterface > SAL_CALL ImportDocumentHandler::create( const return *(new ImportDocumentHandler( _rxContext )); } // xml::sax::XDocumentHandler: -void SAL_CALL ImportDocumentHandler::startDocument() throw (uno::RuntimeException, xml::sax::SAXException, std::exception) +void SAL_CALL ImportDocumentHandler::startDocument() { m_xDelegatee->startDocument(); } -void SAL_CALL ImportDocumentHandler::endDocument() throw (uno::RuntimeException, xml::sax::SAXException, std::exception) +void SAL_CALL ImportDocumentHandler::endDocument() { m_xDelegatee->endDocument(); uno::Reference< chart2::data::XDataReceiver > xReceiver(m_xModel,uno::UNO_QUERY_THROW); @@ -153,7 +153,7 @@ void SAL_CALL ImportDocumentHandler::endDocument() throw (uno::RuntimeException, } } -void SAL_CALL ImportDocumentHandler::startElement(const OUString & _sName, const uno::Reference< xml::sax::XAttributeList > & _xAttrList) throw (uno::RuntimeException, xml::sax::SAXException, std::exception) +void SAL_CALL ImportDocumentHandler::startElement(const OUString & _sName, const uno::Reference< xml::sax::XAttributeList > & _xAttrList) { uno::Reference< xml::sax::XAttributeList > xNewAttribs = _xAttrList; bool bExport = true; @@ -293,7 +293,7 @@ void SAL_CALL ImportDocumentHandler::startElement(const OUString & _sName, const m_xDelegatee->startElement(_sName,xNewAttribs); } -void SAL_CALL ImportDocumentHandler::endElement(const OUString & _sName) throw (uno::RuntimeException, xml::sax::SAXException, std::exception) +void SAL_CALL ImportDocumentHandler::endElement(const OUString & _sName) { bool bExport = true; OUString sNewName = _sName; @@ -320,26 +320,26 @@ void SAL_CALL ImportDocumentHandler::endElement(const OUString & _sName) throw ( m_xDelegatee->endElement(sNewName); } -void SAL_CALL ImportDocumentHandler::characters(const OUString & aChars) throw (uno::RuntimeException, xml::sax::SAXException, std::exception) +void SAL_CALL ImportDocumentHandler::characters(const OUString & aChars) { m_xDelegatee->characters(aChars); } -void SAL_CALL ImportDocumentHandler::ignorableWhitespace(const OUString & aWhitespaces) throw (uno::RuntimeException, xml::sax::SAXException, std::exception) +void SAL_CALL ImportDocumentHandler::ignorableWhitespace(const OUString & aWhitespaces) { m_xDelegatee->ignorableWhitespace(aWhitespaces); } -void SAL_CALL ImportDocumentHandler::processingInstruction(const OUString & aTarget, const OUString & aData) throw (uno::RuntimeException, xml::sax::SAXException, std::exception) +void SAL_CALL ImportDocumentHandler::processingInstruction(const OUString & aTarget, const OUString & aData) { m_xDelegatee->processingInstruction(aTarget,aData); } -void SAL_CALL ImportDocumentHandler::setDocumentLocator(const uno::Reference< xml::sax::XLocator > & xLocator) throw (uno::RuntimeException, xml::sax::SAXException, std::exception) +void SAL_CALL ImportDocumentHandler::setDocumentLocator(const uno::Reference< xml::sax::XLocator > & xLocator) { m_xDelegatee->setDocumentLocator(xLocator); } -void SAL_CALL ImportDocumentHandler::initialize( const uno::Sequence< uno::Any >& _aArguments ) throw (uno::Exception, uno::RuntimeException, std::exception) +void SAL_CALL ImportDocumentHandler::initialize( const uno::Sequence< uno::Any >& _aArguments ) { ::osl::MutexGuard aGuard(m_aMutex); comphelper::SequenceAsHashMap aArgs(_aArguments); @@ -379,13 +379,13 @@ void SAL_CALL ImportDocumentHandler::initialize( const uno::Sequence< uno::Any > m_pReportElemTokenMap.reset(OXMLHelper::GetReportElemTokenMap()); } -uno::Any SAL_CALL ImportDocumentHandler::queryInterface( const uno::Type& _rType ) throw (uno::RuntimeException, std::exception) +uno::Any SAL_CALL ImportDocumentHandler::queryInterface( const uno::Type& _rType ) { uno::Any aReturn = ImportDocumentHandler_BASE::queryInterface(_rType); return aReturn.hasValue() ? aReturn : (m_xProxy.is() ? m_xProxy->queryAggregation(_rType) : aReturn); } -uno::Sequence< uno::Type > SAL_CALL ImportDocumentHandler::getTypes( ) throw (uno::RuntimeException, std::exception) +uno::Sequence< uno::Type > SAL_CALL ImportDocumentHandler::getTypes( ) { if ( m_xTypeProvider.is() ) return ::comphelper::concatSequences( |