summaryrefslogtreecommitdiff
path: root/sc/source/filter/oox
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 /sc/source/filter/oox
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 'sc/source/filter/oox')
-rw-r--r--sc/source/filter/oox/excelfilter.cxx6
-rw-r--r--sc/source/filter/oox/ooxformulaparser.cxx14
2 files changed, 10 insertions, 10 deletions
diff --git a/sc/source/filter/oox/excelfilter.cxx b/sc/source/filter/oox/excelfilter.cxx
index 8cda915f6b74..e624e34b426a 100644
--- a/sc/source/filter/oox/excelfilter.cxx
+++ b/sc/source/filter/oox/excelfilter.cxx
@@ -40,7 +40,7 @@ using namespace ::oox::core;
using ::oox::drawingml::table::TableStyleListPtr;
-ExcelFilter::ExcelFilter( const Reference< XComponentContext >& rxContext ) throw( RuntimeException ) :
+ExcelFilter::ExcelFilter( const Reference< XComponentContext >& rxContext ) :
XmlFilterBase( rxContext ),
mpBookGlob( nullptr )
{
@@ -149,7 +149,7 @@ GraphicHelper* ExcelFilter::implCreateGraphicHelper() const
return new ExcelVbaProject( getComponentContext(), Reference< XSpreadsheetDocument >( getModel(), UNO_QUERY ) );
}
-sal_Bool SAL_CALL ExcelFilter::filter( const css::uno::Sequence< css::beans::PropertyValue >& rDescriptor ) throw( css::uno::RuntimeException, std::exception )
+sal_Bool SAL_CALL ExcelFilter::filter( const css::uno::Sequence< css::beans::PropertyValue >& rDescriptor )
{
if ( XmlFilterBase::filter( rDescriptor ) )
return true;
@@ -174,7 +174,7 @@ sal_Bool SAL_CALL ExcelFilter::filter( const css::uno::Sequence< css::beans::Pro
return false;
}
-OUString ExcelFilter::getImplementationName() throw (css::uno::RuntimeException, std::exception)
+OUString ExcelFilter::getImplementationName()
{
return OUString( "com.sun.star.comp.oox.xls.ExcelFilter" );
}
diff --git a/sc/source/filter/oox/ooxformulaparser.cxx b/sc/source/filter/oox/ooxformulaparser.cxx
index 720c27707bc2..6491560d6d8f 100644
--- a/sc/source/filter/oox/ooxformulaparser.cxx
+++ b/sc/source/filter/oox/ooxformulaparser.cxx
@@ -108,17 +108,17 @@ OOXMLFormulaParser::~OOXMLFormulaParser()
}
// com.sun.star.lang.XServiceInfo interface -----------------------------------
-OUString SAL_CALL OOXMLFormulaParser::getImplementationName() throw( RuntimeException, std::exception )
+OUString SAL_CALL OOXMLFormulaParser::getImplementationName()
{
return OUString( "com.sun.star.comp.oox.xls.FormulaParser");
}
-sal_Bool SAL_CALL OOXMLFormulaParser::supportsService( const OUString& rService ) throw( RuntimeException, std::exception )
+sal_Bool SAL_CALL OOXMLFormulaParser::supportsService( const OUString& rService )
{
return cppu::supportsService(this, rService);
}
-Sequence< OUString > SAL_CALL OOXMLFormulaParser::getSupportedServiceNames() throw( RuntimeException, std::exception )
+Sequence< OUString > SAL_CALL OOXMLFormulaParser::getSupportedServiceNames()
{
Sequence< OUString > aServiceNames { "com.sun.star.sheet.FilterFormulaParser" };
return aServiceNames;
@@ -126,7 +126,7 @@ Sequence< OUString > SAL_CALL OOXMLFormulaParser::getSupportedServiceNames() thr
// com.sun.star.lang.XInitialization interface --------------------------------
-void SAL_CALL OOXMLFormulaParser::initialize( const Sequence< Any >& rArgs ) throw( Exception, RuntimeException, std::exception )
+void SAL_CALL OOXMLFormulaParser::initialize( const Sequence< Any >& rArgs )
{
OSL_ENSURE( rArgs.hasElements(), "OOXMLFormulaParser::initialize - missing arguments" );
if( !rArgs.hasElements() )
@@ -136,7 +136,7 @@ void SAL_CALL OOXMLFormulaParser::initialize( const Sequence< Any >& rArgs ) thr
// com.sun.star.sheet.XFilterFormulaParser interface --------------------------
-OUString SAL_CALL OOXMLFormulaParser::getSupportedNamespace() throw( RuntimeException, std::exception )
+OUString SAL_CALL OOXMLFormulaParser::getSupportedNamespace()
{
return OUString( "http://schemas.microsoft.com/office/excel/formula");
}
@@ -144,7 +144,7 @@ OUString SAL_CALL OOXMLFormulaParser::getSupportedNamespace() throw( RuntimeExce
// com.sun.star.sheet.XFormulaParser interface --------------------------------
Sequence< FormulaToken > SAL_CALL OOXMLFormulaParser::parseFormula(
- const OUString& rFormula, const CellAddress& rReferencePos ) throw( RuntimeException, std::exception )
+ const OUString& rFormula, const CellAddress& rReferencePos )
{
if( !mxParserImpl )
{
@@ -156,7 +156,7 @@ Sequence< FormulaToken > SAL_CALL OOXMLFormulaParser::parseFormula(
}
OUString SAL_CALL OOXMLFormulaParser::printFormula(
- const Sequence< FormulaToken >& /*rTokens*/, const CellAddress& /*rReferencePos*/ ) throw( RuntimeException, std::exception )
+ const Sequence< FormulaToken >& /*rTokens*/, const CellAddress& /*rReferencePos*/ )
{
// not implemented
throw RuntimeException();