summaryrefslogtreecommitdiff
path: root/xmloff/source/meta
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 /xmloff/source/meta
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 'xmloff/source/meta')
-rw-r--r--xmloff/source/meta/MetaExportComponent.cxx3
-rw-r--r--xmloff/source/meta/MetaImportComponent.cxx4
-rw-r--r--xmloff/source/meta/xmlmetae.cxx8
-rw-r--r--xmloff/source/meta/xmlversion.cxx5
4 files changed, 2 insertions, 18 deletions
diff --git a/xmloff/source/meta/MetaExportComponent.cxx b/xmloff/source/meta/MetaExportComponent.cxx
index eef8e3adf1a4..24ff911018c6 100644
--- a/xmloff/source/meta/MetaExportComponent.cxx
+++ b/xmloff/source/meta/MetaExportComponent.cxx
@@ -53,7 +53,7 @@ XMLMetaExportComponent::~XMLMetaExportComponent()
{
}
-void SAL_CALL XMLMetaExportComponent::setSourceDocument( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >& xDoc ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception)
+void SAL_CALL XMLMetaExportComponent::setSourceDocument( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >& xDoc )
{
try
{
@@ -199,7 +199,6 @@ OUString SAL_CALL XMLMetaExportOOO_getImplementationName() throw()
uno::Reference< uno::XInterface > SAL_CALL XMLMetaExportOOO_createInstance(
const uno::Reference< lang::XMultiServiceFactory > & rSMgr)
- throw( uno::Exception )
{
return static_cast<cppu::OWeakObject*>(new XMLMetaExportComponent( comphelper::getComponentContext(rSMgr), XMLMetaExportOOO_getImplementationName(), SvXMLExportFlags::META));
}
diff --git a/xmloff/source/meta/MetaImportComponent.cxx b/xmloff/source/meta/MetaImportComponent.cxx
index fcf9a8352bc5..98fe47608ca3 100644
--- a/xmloff/source/meta/MetaImportComponent.cxx
+++ b/xmloff/source/meta/MetaImportComponent.cxx
@@ -49,8 +49,7 @@ protected:
const css::uno::Reference< css::xml::sax::XAttributeList > & xAttrList ) override;
// XImporter
- virtual void SAL_CALL setTargetDocument( const css::uno::Reference< css::lang::XComponent >& xDoc )
- throw(css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL setTargetDocument( const css::uno::Reference< css::lang::XComponent >& xDoc ) override;
};
// global functions to support the component
@@ -93,7 +92,6 @@ SvXMLImportContext* XMLMetaImportComponent::CreateContext(
void SAL_CALL XMLMetaImportComponent::setTargetDocument(
const uno::Reference< lang::XComponent >& xDoc )
- throw(lang::IllegalArgumentException, uno::RuntimeException, std::exception)
{
mxDocProps.set( xDoc, uno::UNO_QUERY );
if( !mxDocProps.is() )
diff --git a/xmloff/source/meta/xmlmetae.cxx b/xmloff/source/meta/xmlmetae.cxx
index 9d94e7917573..2cb5522e27a8 100644
--- a/xmloff/source/meta/xmlmetae.cxx
+++ b/xmloff/source/meta/xmlmetae.cxx
@@ -347,7 +347,6 @@ void SvXMLMetaExport::Export()
// css::xml::sax::XDocumentHandler:
void SAL_CALL
SvXMLMetaExport::startDocument()
- throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
{
// ignore: has already been done by SvXMLExport::exportDoc
assert(m_level == 0 && "SvXMLMetaExport: level error");
@@ -355,7 +354,6 @@ SvXMLMetaExport::startDocument()
void SAL_CALL
SvXMLMetaExport::endDocument()
- throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
{
// ignore: will be done by SvXMLExport::exportDoc
assert(m_level == 0 && "SvXMLMetaExport: level error");
@@ -365,7 +363,6 @@ SvXMLMetaExport::endDocument()
void SAL_CALL
SvXMLMetaExport::startElement(const OUString & i_rName,
const uno::Reference< xml::sax::XAttributeList > & i_xAttribs)
- throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
{
if (m_level == 0) {
@@ -447,7 +444,6 @@ SvXMLMetaExport::startElement(const OUString & i_rName,
void SAL_CALL
SvXMLMetaExport::endElement(const OUString & i_rName)
- throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
{
--m_level;
if (m_level == 0) {
@@ -460,14 +456,12 @@ SvXMLMetaExport::endElement(const OUString & i_rName)
void SAL_CALL
SvXMLMetaExport::characters(const OUString & i_rChars)
- throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
{
mrExport.Characters(i_rChars);
}
void SAL_CALL
SvXMLMetaExport::ignorableWhitespace(const OUString & /*i_rWhitespaces*/)
- throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
{
mrExport.IgnorableWhitespace(/*i_rWhitespaces*/);
}
@@ -475,7 +469,6 @@ SvXMLMetaExport::ignorableWhitespace(const OUString & /*i_rWhitespaces*/)
void SAL_CALL
SvXMLMetaExport::processingInstruction(const OUString & i_rTarget,
const OUString & i_rData)
- throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
{
// ignore; the exporter cannot handle these
(void) i_rTarget;
@@ -484,7 +477,6 @@ SvXMLMetaExport::processingInstruction(const OUString & i_rTarget,
void SAL_CALL
SvXMLMetaExport::setDocumentLocator(const uno::Reference<xml::sax::XLocator>&)
- throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
{
// nothing to do here, move along...
}
diff --git a/xmloff/source/meta/xmlversion.cxx b/xmloff/source/meta/xmlversion.cxx
index cb664689a477..9ccbc23bea63 100644
--- a/xmloff/source/meta/xmlversion.cxx
+++ b/xmloff/source/meta/xmlversion.cxx
@@ -318,7 +318,6 @@ bool XMLVersionContext::ParseISODateTimeString(
}
void SAL_CALL XMLVersionListPersistence::store( const uno::Reference< embed::XStorage >& xRoot, const uno::Sequence< util::RevisionTag >& rVersions )
- throw (css::io::IOException, css::uno::Exception, css::uno::RuntimeException, std::exception)
{
// no storage, no version list!
if ( xRoot.is() )
@@ -364,7 +363,6 @@ void SAL_CALL XMLVersionListPersistence::store( const uno::Reference< embed::XSt
}
uno::Sequence< util::RevisionTag > SAL_CALL XMLVersionListPersistence::load( const uno::Reference< embed::XStorage >& xRoot )
- throw (css::container::NoSuchElementException, css::io::IOException, css::uno::Exception, css::uno::RuntimeException, std::exception)
{
css::uno::Sequence < css::util::RevisionTag > aVersions;
@@ -427,21 +425,18 @@ uno::Sequence< util::RevisionTag > SAL_CALL XMLVersionListPersistence::load( con
}
OUString XMLVersionListPersistence::getImplementationName()
- throw (css::uno::RuntimeException, std::exception)
{
return OUString("XMLVersionListPersistence");
}
sal_Bool XMLVersionListPersistence::supportsService(
OUString const & ServiceName)
- throw (css::uno::RuntimeException, std::exception)
{
return cppu::supportsService(this, ServiceName);
}
css::uno::Sequence<OUString>
XMLVersionListPersistence::getSupportedServiceNames()
- throw (css::uno::RuntimeException, std::exception)
{
return css::uno::Sequence<OUString>{
"com.sun.star.document.DocumentRevisionListPersistence"};