summaryrefslogtreecommitdiffstats
path: root/filter/source/xsltfilter
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 /filter/source/xsltfilter
parentMoved About dialog to DialogFragment (diff)
downloadcore-e57ca02849c3d87142ff5ff9099a212e72b8139c.tar.gz
core-e57ca02849c3d87142ff5ff9099a212e72b8139c.zip
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 'filter/source/xsltfilter')
-rw-r--r--filter/source/xsltfilter/LibXSLTTransformer.cxx13
-rw-r--r--filter/source/xsltfilter/LibXSLTTransformer.hxx22
-rw-r--r--filter/source/xsltfilter/XSLTFilter.cxx36
3 files changed, 31 insertions, 40 deletions
diff --git a/filter/source/xsltfilter/LibXSLTTransformer.cxx b/filter/source/xsltfilter/LibXSLTTransformer.cxx
index f3b8265f0625..d828cbd91991 100644
--- a/filter/source/xsltfilter/LibXSLTTransformer.cxx
+++ b/filter/source/xsltfilter/LibXSLTTransformer.cxx
@@ -374,13 +374,12 @@ namespace XSLT
void
LibXSLTTransformer::setInputStream(
const css::uno::Reference<XInputStream>& inputStream)
- throw (RuntimeException, std::exception)
{
m_rInputStream = inputStream;
}
css::uno::Reference<XInputStream>
- LibXSLTTransformer::getInputStream() throw (RuntimeException, std::exception)
+ LibXSLTTransformer::getInputStream()
{
return m_rInputStream;
}
@@ -388,20 +387,18 @@ namespace XSLT
void
LibXSLTTransformer::setOutputStream(
const css::uno::Reference<XOutputStream>& outputStream)
- throw (RuntimeException, std::exception)
{
m_rOutputStream = outputStream;
}
css::uno::Reference<XOutputStream>
- LibXSLTTransformer::getOutputStream() throw (RuntimeException, std::exception)
+ LibXSLTTransformer::getOutputStream()
{
return m_rOutputStream;
}
void
LibXSLTTransformer::addListener(const css::uno::Reference<XStreamListener>& listener)
- throw (RuntimeException, std::exception)
{
m_listeners.insert(m_listeners.begin(), listener);
}
@@ -409,13 +406,12 @@ namespace XSLT
void
LibXSLTTransformer::removeListener(
const css::uno::Reference<XStreamListener>& listener)
- throw (RuntimeException, std::exception)
{
m_listeners.remove(listener);
}
void
- LibXSLTTransformer::start() throw (RuntimeException, std::exception)
+ LibXSLTTransformer::start()
{
ListenerList::iterator it;
ListenerList* l = &m_listeners;
@@ -460,7 +456,7 @@ namespace XSLT
}
void
- LibXSLTTransformer::terminate() throw (RuntimeException, std::exception)
+ LibXSLTTransformer::terminate()
{
if (m_Reader.is())
{
@@ -474,7 +470,6 @@ namespace XSLT
void
LibXSLTTransformer::initialize(const Sequence<Any>& args)
- throw (RuntimeException, std::exception)
{
Sequence<Any> params;
if (!(args[0] >>= params))
diff --git a/filter/source/xsltfilter/LibXSLTTransformer.hxx b/filter/source/xsltfilter/LibXSLTTransformer.hxx
index 87f3225c86b7..beb500f7faa5 100644
--- a/filter/source/xsltfilter/LibXSLTTransformer.hxx
+++ b/filter/source/xsltfilter/LibXSLTTransformer.hxx
@@ -133,29 +133,25 @@ namespace XSLT
// XActiveDataSink
virtual void SAL_CALL
- setInputStream(const css::uno::Reference<XInputStream>& inputStream)
- throw (RuntimeException, std::exception) override;
+ setInputStream(const css::uno::Reference<XInputStream>& inputStream) override;
virtual css::uno::Reference<XInputStream> SAL_CALL
- getInputStream() throw (RuntimeException, std::exception) override;
+ getInputStream() override;
// XActiveDataSource
virtual void SAL_CALL
- setOutputStream(const css::uno::Reference<XOutputStream>& outputStream)
- throw (RuntimeException, std::exception) override;
+ setOutputStream(const css::uno::Reference<XOutputStream>& outputStream) override;
virtual css::uno::Reference<XOutputStream> SAL_CALL
- getOutputStream() throw (RuntimeException, std::exception) override;
+ getOutputStream() override;
// XActiveDataControl
virtual void SAL_CALL
- addListener(const css::uno::Reference<XStreamListener>& listener)
- throw (RuntimeException, std::exception) override;
+ addListener(const css::uno::Reference<XStreamListener>& listener) override;
virtual void SAL_CALL
- removeListener(const css::uno::Reference<XStreamListener>& listener)
- throw (RuntimeException, std::exception) override;
+ removeListener(const css::uno::Reference<XStreamListener>& listener) override;
virtual void SAL_CALL
- start() throw (RuntimeException, std::exception) override;
+ start() override;
virtual void SAL_CALL
- terminate() throw (RuntimeException, std::exception) override;
+ terminate() override;
virtual void SAL_CALL
- initialize(const Sequence<Any>& params) throw (RuntimeException, std::exception) override;
+ initialize(const Sequence<Any>& params) override;
void SAL_CALL
done();
diff --git a/filter/source/xsltfilter/XSLTFilter.cxx b/filter/source/xsltfilter/XSLTFilter.cxx
index 468757f05484..1adab3e15d01 100644
--- a/filter/source/xsltfilter/XSLTFilter.cxx
+++ b/filter/source/xsltfilter/XSLTFilter.cxx
@@ -131,32 +131,32 @@ namespace XSLT
// XStreamListener
virtual void SAL_CALL
- error(const Any& a) throw (RuntimeException, std::exception) override;
+ error(const Any& a) override;
virtual void SAL_CALL
- closed() throw (RuntimeException, std::exception) override;
+ closed() override;
virtual void SAL_CALL
- terminated() throw (RuntimeException, std::exception) override;
+ terminated() override;
virtual void SAL_CALL
- started() throw (RuntimeException, std::exception) override;
+ started() override;
virtual void SAL_CALL
- disposing(const EventObject& e) throw (RuntimeException, std::exception) override;
+ disposing(const EventObject& e) override;
// XImportFilter
virtual sal_Bool SAL_CALL
importer(const Sequence<PropertyValue>& aSourceData, const css::uno::Reference<
XDocumentHandler>& xHandler,
- const Sequence<OUString>& msUserData) throw (RuntimeException, std::exception) override;
+ const Sequence<OUString>& msUserData) override;
// XExportFilter
virtual sal_Bool SAL_CALL
exporter(const Sequence<PropertyValue>& aSourceData, const Sequence<
- OUString>& msUserData) throw (RuntimeException, std::exception) override;
+ OUString>& msUserData) override;
// XDocumentHandler
virtual void SAL_CALL
- startDocument() throw (SAXException, RuntimeException, std::exception) override;
+ startDocument() override;
virtual void SAL_CALL
- endDocument() throw (SAXException, RuntimeException, std::exception) override;
+ endDocument() override;
};
XSLTFilter::XSLTFilter(const css::uno::Reference<XComponentContext> &r):
@@ -164,7 +164,7 @@ namespace XSLT
{}
void
- XSLTFilter::disposing(const EventObject&) throw (RuntimeException, std::exception)
+ XSLTFilter::disposing(const EventObject&)
{
}
@@ -223,12 +223,12 @@ namespace XSLT
}
void
- XSLTFilter::started() throw (RuntimeException, std::exception)
+ XSLTFilter::started()
{
m_cTransformed.reset();
}
void
- XSLTFilter::error(const Any& a) throw (RuntimeException, std::exception)
+ XSLTFilter::error(const Any& a)
{
Exception e;
if (a >>= e)
@@ -239,12 +239,12 @@ namespace XSLT
m_cTransformed.set();
}
void
- XSLTFilter::closed() throw (RuntimeException, std::exception)
+ XSLTFilter::closed()
{
m_cTransformed.set();
}
void
- XSLTFilter::terminated() throw (RuntimeException, std::exception)
+ XSLTFilter::terminated()
{
m_bTerminated = true;
m_cTransformed.set();
@@ -268,7 +268,7 @@ namespace XSLT
sal_Bool
XSLTFilter::importer(const Sequence<PropertyValue>& aSourceData,
const css::uno::Reference<XDocumentHandler>& xHandler, const Sequence<
- OUString>& msUserData) throw (RuntimeException, std::exception)
+ OUString>& msUserData)
{
if (msUserData.getLength() < 5)
return false;
@@ -414,7 +414,7 @@ namespace XSLT
sal_Bool
XSLTFilter::exporter(const Sequence<PropertyValue>& aSourceData,
- const Sequence<OUString>& msUserData) throw (RuntimeException, std::exception)
+ const Sequence<OUString>& msUserData)
{
if (msUserData.getLength() < 6)
return false;
@@ -514,14 +514,14 @@ namespace XSLT
// events to the XML writer that we created upon the output stream
// that was provided by the XMLFilterAdapter
void
- XSLTFilter::startDocument() throw (SAXException, RuntimeException, std::exception)
+ XSLTFilter::startDocument()
{
ExtendedDocumentHandlerAdapter::startDocument();
m_tcontrol->start();
}
void
- XSLTFilter::endDocument() throw (SAXException, RuntimeException, std::exception)
+ XSLTFilter::endDocument()
{
ExtendedDocumentHandlerAdapter::endDocument();
// wait for the transformer to finish