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 /forms/source/component/Filter.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 'forms/source/component/Filter.cxx')
-rw-r--r-- | forms/source/component/Filter.cxx | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/forms/source/component/Filter.cxx b/forms/source/component/Filter.cxx index fd1ee7452bd8..96225e6cba06 100644 --- a/forms/source/component/Filter.cxx +++ b/forms/source/component/Filter.cxx @@ -131,7 +131,7 @@ namespace frm } - Any SAL_CALL OFilterControl::queryAggregation( const Type & rType ) throw(RuntimeException, std::exception) + Any SAL_CALL OFilterControl::queryAggregation( const Type & rType ) { Any aRet = UnoControl::queryAggregation( rType); if(!aRet.hasValue()) @@ -169,7 +169,7 @@ namespace frm // XComponent - void OFilterControl::dispose() throw( RuntimeException, std::exception ) + void OFilterControl::dispose() { EventObject aEvt(*this); m_aTextListeners.disposeAndClear( aEvt ); @@ -177,7 +177,7 @@ namespace frm } - void OFilterControl::createPeer( const Reference< XToolkit > & rxToolkit, const Reference< XWindowPeer > & rParentPeer ) throw(RuntimeException, std::exception) + void OFilterControl::createPeer( const Reference< XToolkit > & rxToolkit, const Reference< XWindowPeer > & rParentPeer ) { UnoControl::createPeer( rxToolkit, rParentPeer ); @@ -267,14 +267,14 @@ namespace frm // XEventListener - void SAL_CALL OFilterControl::disposing(const EventObject& Source) throw( RuntimeException, std::exception ) + void SAL_CALL OFilterControl::disposing(const EventObject& Source) { UnoControl::disposing(Source); } // XItemListener - void SAL_CALL OFilterControl::itemStateChanged( const ItemEvent& rEvent ) throw(RuntimeException, std::exception) + void SAL_CALL OFilterControl::itemStateChanged( const ItemEvent& rEvent ) { #if !HAVE_FEATURE_DBCONNECTIVITY (void) rEvent; @@ -481,7 +481,7 @@ namespace frm // XFocusListener - void SAL_CALL OFilterControl::focusGained(const FocusEvent& /*e*/) throw( RuntimeException, std::exception ) + void SAL_CALL OFilterControl::focusGained(const FocusEvent& /*e*/) { // should we fill the combobox? if (m_bFilterList && !m_bFilterListFilled) @@ -489,12 +489,12 @@ namespace frm } - void SAL_CALL OFilterControl::focusLost(const FocusEvent& /*e*/) throw( RuntimeException, std::exception ) + void SAL_CALL OFilterControl::focusLost(const FocusEvent& /*e*/) { } - sal_Bool SAL_CALL OFilterControl::commit() throw(RuntimeException, std::exception) + sal_Bool SAL_CALL OFilterControl::commit() { #if HAVE_FEATURE_DBCONNECTIVITY if ( !ensureInitialized( ) ) @@ -547,19 +547,19 @@ namespace frm // XTextComponent - void SAL_CALL OFilterControl::addTextListener(const Reference< XTextListener > & l) throw(RuntimeException, std::exception) + void SAL_CALL OFilterControl::addTextListener(const Reference< XTextListener > & l) { m_aTextListeners.addInterface( l ); } - void SAL_CALL OFilterControl::removeTextListener(const Reference< XTextListener > & l) throw(RuntimeException, std::exception) + void SAL_CALL OFilterControl::removeTextListener(const Reference< XTextListener > & l) { m_aTextListeners.removeInterface( l ); } - void SAL_CALL OFilterControl::setText( const OUString& aText ) throw(RuntimeException, std::exception) + void SAL_CALL OFilterControl::setText( const OUString& aText ) { if ( !ensureInitialized( ) ) // already asserted in ensureInitialized @@ -658,7 +658,7 @@ namespace frm } - void SAL_CALL OFilterControl::insertText( const css::awt::Selection& rSel, const OUString& aText ) throw(css::uno::RuntimeException, std::exception) + void SAL_CALL OFilterControl::insertText( const css::awt::Selection& rSel, const OUString& aText ) { Reference< XTextComponent > xText( getPeer(), UNO_QUERY ); if (xText.is()) @@ -669,13 +669,13 @@ namespace frm } - OUString SAL_CALL OFilterControl::getText() throw(RuntimeException, std::exception) + OUString SAL_CALL OFilterControl::getText() { return m_aText; } - OUString SAL_CALL OFilterControl::getSelectedText() throw(RuntimeException, std::exception) + OUString SAL_CALL OFilterControl::getSelectedText() { OUString aSelected; Reference< XTextComponent > xText( getPeer(), UNO_QUERY ); @@ -686,7 +686,7 @@ namespace frm } - void SAL_CALL OFilterControl::setSelection( const css::awt::Selection& aSelection ) throw(css::uno::RuntimeException, std::exception) + void SAL_CALL OFilterControl::setSelection( const css::awt::Selection& aSelection ) { Reference< XTextComponent > xText( getPeer(), UNO_QUERY ); if (xText.is()) @@ -694,7 +694,7 @@ namespace frm } - css::awt::Selection SAL_CALL OFilterControl::getSelection() throw(css::uno::RuntimeException, std::exception) + css::awt::Selection SAL_CALL OFilterControl::getSelection() { css::awt::Selection aSel; Reference< XTextComponent > xText( getPeer(), UNO_QUERY ); @@ -704,14 +704,14 @@ namespace frm } - sal_Bool SAL_CALL OFilterControl::isEditable() throw(RuntimeException, std::exception) + sal_Bool SAL_CALL OFilterControl::isEditable() { Reference< XTextComponent > xText( getPeer(), UNO_QUERY ); return xText.is() && xText->isEditable(); } - void SAL_CALL OFilterControl::setEditable( sal_Bool bEditable ) throw(RuntimeException, std::exception) + void SAL_CALL OFilterControl::setEditable( sal_Bool bEditable ) { Reference< XTextComponent > xText( getPeer(), UNO_QUERY ); if (xText.is()) @@ -719,14 +719,14 @@ namespace frm } - sal_Int16 SAL_CALL OFilterControl::getMaxTextLen() throw(RuntimeException, std::exception) + sal_Int16 SAL_CALL OFilterControl::getMaxTextLen() { Reference< XTextComponent > xText( getPeer(), UNO_QUERY ); return xText.is() ? xText->getMaxTextLen() : 0; } - void SAL_CALL OFilterControl::setMaxTextLen( sal_Int16 nLength ) throw(RuntimeException, std::exception) + void SAL_CALL OFilterControl::setMaxTextLen( sal_Int16 nLength ) { Reference< XTextComponent > xText( getPeer(), UNO_QUERY ); if (xText.is()) @@ -748,7 +748,7 @@ namespace frm } - void SAL_CALL OFilterControl::initialize( const Sequence< Any >& aArguments ) throw (Exception, RuntimeException, std::exception) + void SAL_CALL OFilterControl::initialize( const Sequence< Any >& aArguments ) { const Any* pArguments = aArguments.getConstArray(); const Any* pArgumentsEnd = pArguments + aArguments.getLength(); @@ -871,17 +871,17 @@ namespace frm #endif } - OUString SAL_CALL OFilterControl::getImplementationName( ) throw (RuntimeException, std::exception) + OUString SAL_CALL OFilterControl::getImplementationName( ) { return OUString( "com.sun.star.comp.forms.OFilterControl" ); } - sal_Bool SAL_CALL OFilterControl::supportsService( const OUString& ServiceName ) throw (RuntimeException, std::exception) + sal_Bool SAL_CALL OFilterControl::supportsService( const OUString& ServiceName ) { return cppu::supportsService(this, ServiceName); } - Sequence< OUString > SAL_CALL OFilterControl::getSupportedServiceNames( ) throw (RuntimeException, std::exception) + Sequence< OUString > SAL_CALL OFilterControl::getSupportedServiceNames( ) { return { "com.sun.star.form.control.FilterControl", "com.sun.star.awt.UnoControl" }; |