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 /oox/source/ppt | |
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 'oox/source/ppt')
-rw-r--r-- | oox/source/ppt/dgmimport.cxx | 6 | ||||
-rw-r--r-- | oox/source/ppt/dgmlayout.cxx | 6 | ||||
-rw-r--r-- | oox/source/ppt/pptimport.cxx | 8 |
3 files changed, 10 insertions, 10 deletions
diff --git a/oox/source/ppt/dgmimport.cxx b/oox/source/ppt/dgmimport.cxx index 57271291eb40..8ce77d115e38 100644 --- a/oox/source/ppt/dgmimport.cxx +++ b/oox/source/ppt/dgmimport.cxx @@ -48,7 +48,7 @@ uno::Sequence< OUString > SAL_CALL QuickDiagrammingImport_getSupportedServiceNam return aSeq; } -uno::Reference< uno::XInterface > SAL_CALL QuickDiagrammingImport_createInstance( const Reference< XComponentContext >& rxContext ) throw( Exception ) +uno::Reference< uno::XInterface > SAL_CALL QuickDiagrammingImport_createInstance( const Reference< XComponentContext >& rxContext ) { return static_cast<cppu::OWeakObject*>(new QuickDiagrammingImport( rxContext )); } @@ -57,7 +57,7 @@ QuickDiagrammingImport::QuickDiagrammingImport( const css::uno::Reference< css:: : XmlFilterBase( rxContext ) {} -bool QuickDiagrammingImport::importDocument() throw (css::uno::RuntimeException, std::exception) +bool QuickDiagrammingImport::importDocument() { /* to activate the PPTX dumper, define the environment variable OOO_PPTXDUMPER and insert the full path to the file @@ -113,7 +113,7 @@ oox::drawingml::chart::ChartConverter* QuickDiagrammingImport::getChartConverter return nullptr; } -OUString QuickDiagrammingImport::getImplementationName() throw (css::uno::RuntimeException, std::exception) +OUString QuickDiagrammingImport::getImplementationName() { return QuickDiagrammingImport_getImplementationName(); } diff --git a/oox/source/ppt/dgmlayout.cxx b/oox/source/ppt/dgmlayout.cxx index 9e35c8c8c335..6fd9c99d9790 100644 --- a/oox/source/ppt/dgmlayout.cxx +++ b/oox/source/ppt/dgmlayout.cxx @@ -55,7 +55,7 @@ uno::Sequence< OUString > SAL_CALL QuickDiagrammingLayout_getSupportedServiceNam return aSeq; } -uno::Reference< uno::XInterface > SAL_CALL QuickDiagrammingLayout_createInstance( const Reference< XComponentContext >& rxContext ) throw( Exception ) +uno::Reference< uno::XInterface > SAL_CALL QuickDiagrammingLayout_createInstance( const Reference< XComponentContext >& rxContext ) { return static_cast<cppu::OWeakObject*>(new QuickDiagrammingLayout( rxContext )); } @@ -65,7 +65,7 @@ QuickDiagrammingLayout::QuickDiagrammingLayout( const Reference< XComponentConte mpThemePtr(new drawingml::Theme()) {} -bool QuickDiagrammingLayout::importDocument() throw (css::uno::RuntimeException) +bool QuickDiagrammingLayout::importDocument() { Reference<drawing::XShape> xParentShape(getParentShape(), UNO_QUERY_THROW); @@ -165,7 +165,7 @@ const oox::drawingml::table::TableStyleListPtr QuickDiagrammingLayout::getTableS return nullptr; } -OUString QuickDiagrammingLayout::getImplementationName() throw (css::uno::RuntimeException, std::exception) +OUString QuickDiagrammingLayout::getImplementationName() { return QuickDiagrammingLayout_getImplementationName(); } diff --git a/oox/source/ppt/pptimport.cxx b/oox/source/ppt/pptimport.cxx index 140d3b665534..414a149adcdb 100644 --- a/oox/source/ppt/pptimport.cxx +++ b/oox/source/ppt/pptimport.cxx @@ -56,7 +56,7 @@ uno::Sequence< OUString > SAL_CALL PowerPointImport_getSupportedServiceNames() return aSeq; } -uno::Reference< uno::XInterface > SAL_CALL PowerPointImport_createInstance( const Reference< XComponentContext >& rxContext ) throw( Exception ) +uno::Reference< uno::XInterface > SAL_CALL PowerPointImport_createInstance( const Reference< XComponentContext >& rxContext ) { return static_cast< ::cppu::OWeakObject* >( new PowerPointImport( rxContext ) ); } @@ -65,7 +65,7 @@ uno::Reference< uno::XInterface > SAL_CALL PowerPointImport_createInstance( cons XmlFilterBase* PowerPointImport::mpDebugFilterBase = nullptr; #endif -PowerPointImport::PowerPointImport( const Reference< XComponentContext >& rxContext ) throw( RuntimeException ) : +PowerPointImport::PowerPointImport( const Reference< XComponentContext >& rxContext ) : XmlFilterBase( rxContext ), mxChartConv( new ::oox::drawingml::chart::ChartConverter ) @@ -144,7 +144,7 @@ const ::oox::drawingml::Theme* PowerPointImport::getCurrentTheme() const return mpActualSlidePersist ? mpActualSlidePersist->getTheme().get() : nullptr; } -sal_Bool SAL_CALL PowerPointImport::filter( const Sequence< PropertyValue >& rDescriptor ) throw( RuntimeException, std::exception ) +sal_Bool SAL_CALL PowerPointImport::filter( const Sequence< PropertyValue >& rDescriptor ) { if( XmlFilterBase::filter( rDescriptor ) ) return true; @@ -228,7 +228,7 @@ GraphicHelper* PowerPointImport::implCreateGraphicHelper() const return new ::oox::ole::VbaProject( getComponentContext(), getModel(), "Impress" ); } -OUString PowerPointImport::getImplementationName() throw (css::uno::RuntimeException, std::exception) +OUString PowerPointImport::getImplementationName() { return PowerPointImport_getImplementationName(); } |