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 /sc/source/ui/vba/vbaname.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 'sc/source/ui/vba/vbaname.cxx')
-rw-r--r-- | sc/source/ui/vba/vbaname.cxx | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/sc/source/ui/vba/vbaname.cxx b/sc/source/ui/vba/vbaname.cxx index 7fe9a92a5f72..6e6e86e9ac4b 100644 --- a/sc/source/ui/vba/vbaname.cxx +++ b/sc/source/ui/vba/vbaname.cxx @@ -56,37 +56,37 @@ ScVbaName::~ScVbaName() } OUString -ScVbaName::getName() throw (css::uno::RuntimeException, std::exception) +ScVbaName::getName() { return mxNamedRange->getName(); } void -ScVbaName::setName( const OUString & rName ) throw (css::uno::RuntimeException, std::exception) +ScVbaName::setName( const OUString & rName ) { mxNamedRange->setName( rName ); } OUString -ScVbaName::getNameLocal() throw (css::uno::RuntimeException, std::exception) +ScVbaName::getNameLocal() { return getName(); } void -ScVbaName::setNameLocal( const OUString & rName ) throw (css::uno::RuntimeException, std::exception) +ScVbaName::setNameLocal( const OUString & rName ) { setName( rName ); } sal_Bool -ScVbaName::getVisible() throw (css::uno::RuntimeException, std::exception) +ScVbaName::getVisible() { return true; } void -ScVbaName::setVisible( sal_Bool /*bVisible*/ ) throw (css::uno::RuntimeException, std::exception) +ScVbaName::setVisible( sal_Bool /*bVisible*/ ) { } @@ -131,7 +131,7 @@ void ScVbaName::setContent( const OUString& rContent, const formula::FormulaGra } OUString -ScVbaName::getValue() throw (css::uno::RuntimeException, std::exception) +ScVbaName::getValue() { rtl::OUString sResult = getContent( formula::FormulaGrammar::GRAM_NATIVE_XL_A1 ); @@ -139,62 +139,62 @@ ScVbaName::getValue() throw (css::uno::RuntimeException, std::exception) } void -ScVbaName::setValue( const OUString & rValue ) throw (css::uno::RuntimeException, std::exception) +ScVbaName::setValue( const OUString & rValue ) { setContent( rValue, formula::FormulaGrammar::GRAM_NATIVE_XL_A1 ); } OUString -ScVbaName::getRefersTo() throw (css::uno::RuntimeException, std::exception) +ScVbaName::getRefersTo() { return getValue(); } void -ScVbaName::setRefersTo( const OUString & rRefersTo ) throw (css::uno::RuntimeException, std::exception) +ScVbaName::setRefersTo( const OUString & rRefersTo ) { setValue( rRefersTo ); } OUString -ScVbaName::getRefersToLocal() throw (css::uno::RuntimeException, std::exception) +ScVbaName::getRefersToLocal() { return getRefersTo(); } void -ScVbaName::setRefersToLocal( const OUString & rRefersTo ) throw (css::uno::RuntimeException, std::exception) +ScVbaName::setRefersToLocal( const OUString & rRefersTo ) { setRefersTo( rRefersTo ); } OUString -ScVbaName::getRefersToR1C1() throw (css::uno::RuntimeException, std::exception) +ScVbaName::getRefersToR1C1() { rtl::OUString sResult = getContent( formula::FormulaGrammar::GRAM_NATIVE_XL_R1C1 ); return sResult; } void -ScVbaName::setRefersToR1C1( const OUString & rRefersTo ) throw (css::uno::RuntimeException, std::exception) +ScVbaName::setRefersToR1C1( const OUString & rRefersTo ) { setContent( rRefersTo, formula::FormulaGrammar::GRAM_NATIVE_XL_R1C1 ); } OUString -ScVbaName::getRefersToR1C1Local() throw (css::uno::RuntimeException, std::exception) +ScVbaName::getRefersToR1C1Local() { return getRefersToR1C1(); } void -ScVbaName::setRefersToR1C1Local( const OUString & rRefersTo ) throw (css::uno::RuntimeException, std::exception) +ScVbaName::setRefersToR1C1Local( const OUString & rRefersTo ) { setRefersTo( rRefersTo ); } css::uno::Reference< ov::excel::XRange > -ScVbaName::getRefersToRange() throw (css::uno::RuntimeException, std::exception) +ScVbaName::getRefersToRange() { uno::Reference< ov::excel::XRange > xRange = ScVbaRange::getRangeObjectForName( mxContext, mxNamedRange->getName(), excel::getDocShell( mxModel ), formula::FormulaGrammar::CONV_XL_R1C1 ); @@ -202,7 +202,7 @@ ScVbaName::getRefersToRange() throw (css::uno::RuntimeException, std::exception) } void -ScVbaName::Delete() throw (css::uno::RuntimeException, std::exception) +ScVbaName::Delete() { mxNames->removeByName( mxNamedRange->getName() ); } |