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 /sdext/source/presenter/PresenterToolBar.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 'sdext/source/presenter/PresenterToolBar.cxx')
-rw-r--r-- | sdext/source/presenter/PresenterToolBar.cxx | 37 |
1 files changed, 4 insertions, 33 deletions
diff --git a/sdext/source/presenter/PresenterToolBar.cxx b/sdext/source/presenter/PresenterToolBar.cxx index fbd1694abcd9..42823bbedbab 100644 --- a/sdext/source/presenter/PresenterToolBar.cxx +++ b/sdext/source/presenter/PresenterToolBar.cxx @@ -160,18 +160,15 @@ namespace { // lang::XEventListener - virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent) - throw(css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent) override; // document::XEventListener - virtual void SAL_CALL notifyEvent (const css::document::EventObject& rEvent) - throw(css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL notifyEvent (const css::document::EventObject& rEvent) override; // frame::XStatusListener - virtual void SAL_CALL statusChanged (const css::frame::FeatureStateEvent& rEvent) - throw(css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL statusChanged (const css::frame::FeatureStateEvent& rEvent) override; protected: ::rtl::Reference<PresenterToolBar> mpToolBar; @@ -219,8 +216,7 @@ namespace { // lang::XEventListener - virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent) - throw(css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent) override; protected: virtual awt::Size CreateBoundingSize ( @@ -492,7 +488,6 @@ const Reference<XComponentContext>& PresenterToolBar::GetComponentContext() cons //----- lang::XEventListener ------------------------------------------------- void SAL_CALL PresenterToolBar::disposing (const lang::EventObject& rEventObject) - throw (RuntimeException, std::exception) { if (rEventObject.Source == mxWindow) mxWindow = nullptr; @@ -501,34 +496,29 @@ void SAL_CALL PresenterToolBar::disposing (const lang::EventObject& rEventObject //----- XWindowListener ------------------------------------------------------- void SAL_CALL PresenterToolBar::windowResized (const awt::WindowEvent& rEvent) - throw (RuntimeException, std::exception) { (void)rEvent; mbIsLayoutPending = true; } void SAL_CALL PresenterToolBar::windowMoved (const awt::WindowEvent& rEvent) - throw (RuntimeException, std::exception) { (void)rEvent; } void SAL_CALL PresenterToolBar::windowShown (const lang::EventObject& rEvent) - throw (RuntimeException, std::exception) { (void)rEvent; mbIsLayoutPending = true; } void SAL_CALL PresenterToolBar::windowHidden (const lang::EventObject& rEvent) - throw (RuntimeException, std::exception) { (void)rEvent; } //----- XPaintListener -------------------------------------------------------- void SAL_CALL PresenterToolBar::windowPaint (const css::awt::PaintEvent& rEvent) - throw (RuntimeException, std::exception) { if ( ! mxCanvas.is()) return; @@ -553,28 +543,24 @@ void SAL_CALL PresenterToolBar::windowPaint (const css::awt::PaintEvent& rEvent) //----- XMouseListener -------------------------------------------------------- void SAL_CALL PresenterToolBar::mousePressed (const css::awt::MouseEvent& rEvent) - throw(css::uno::RuntimeException, std::exception) { ThrowIfDisposed(); CheckMouseOver(rEvent, true, true); } void SAL_CALL PresenterToolBar::mouseReleased (const css::awt::MouseEvent& rEvent) - throw(css::uno::RuntimeException, std::exception) { ThrowIfDisposed(); CheckMouseOver(rEvent, true); } void SAL_CALL PresenterToolBar::mouseEntered (const css::awt::MouseEvent& rEvent) - throw(css::uno::RuntimeException, std::exception) { ThrowIfDisposed(); CheckMouseOver(rEvent, true); } void SAL_CALL PresenterToolBar::mouseExited (const css::awt::MouseEvent& rEvent) - throw(css::uno::RuntimeException, std::exception) { ThrowIfDisposed(); CheckMouseOver(rEvent, false); @@ -583,14 +569,12 @@ void SAL_CALL PresenterToolBar::mouseExited (const css::awt::MouseEvent& rEvent) //----- XMouseMotionListener -------------------------------------------------- void SAL_CALL PresenterToolBar::mouseMoved (const css::awt::MouseEvent& rEvent) - throw (css::uno::RuntimeException, std::exception) { ThrowIfDisposed(); CheckMouseOver(rEvent, true); } void SAL_CALL PresenterToolBar::mouseDragged (const css::awt::MouseEvent& rEvent) - throw (css::uno::RuntimeException, std::exception) { ThrowIfDisposed(); (void)rEvent; @@ -599,7 +583,6 @@ void SAL_CALL PresenterToolBar::mouseDragged (const css::awt::MouseEvent& rEvent //----- XDrawView ------------------------------------------------------------- void SAL_CALL PresenterToolBar::setCurrentPage (const Reference<drawing::XDrawPage>& rxSlide) - throw (RuntimeException, std::exception) { if (rxSlide != mxCurrentSlide) { @@ -609,7 +592,6 @@ void SAL_CALL PresenterToolBar::setCurrentPage (const Reference<drawing::XDrawPa } Reference<drawing::XDrawPage> SAL_CALL PresenterToolBar::getCurrentPage() - throw (RuntimeException, std::exception) { return mxCurrentSlide; } @@ -1051,7 +1033,6 @@ void PresenterToolBar::CheckMouseOver ( } void PresenterToolBar::ThrowIfDisposed() const - throw (css::lang::DisposedException) { if (rBHelper.bDisposed || rBHelper.bInDispose) { @@ -1144,7 +1125,6 @@ const ::rtl::Reference<PresenterToolBar>& PresenterToolBarView::GetPresenterTool //----- XPaintListener -------------------------------------------------------- void SAL_CALL PresenterToolBarView::windowPaint (const css::awt::PaintEvent& rEvent) - throw (RuntimeException, std::exception) { awt::Rectangle aWindowBox (mxWindow->getPosSize()); mpPresenterController->GetCanvasHelper()->Paint( @@ -1158,7 +1138,6 @@ void SAL_CALL PresenterToolBarView::windowPaint (const css::awt::PaintEvent& rEv //----- lang::XEventListener ------------------------------------------------- void SAL_CALL PresenterToolBarView::disposing (const lang::EventObject& rEventObject) - throw (RuntimeException, std::exception) { if (rEventObject.Source == mxWindow) mxWindow = nullptr; @@ -1167,13 +1146,11 @@ void SAL_CALL PresenterToolBarView::disposing (const lang::EventObject& rEventOb //----- XResourceId ----------------------------------------------------------- Reference<XResourceId> SAL_CALL PresenterToolBarView::getResourceId() - throw (RuntimeException, std::exception) { return mxViewId; } sal_Bool SAL_CALL PresenterToolBarView::isAnchorOnly() - throw (RuntimeException, std::exception) { return false; } @@ -1181,7 +1158,6 @@ sal_Bool SAL_CALL PresenterToolBarView::isAnchorOnly() //----- XDrawView ------------------------------------------------------------- void SAL_CALL PresenterToolBarView::setCurrentPage (const Reference<drawing::XDrawPage>& rxSlide) - throw (RuntimeException, std::exception) { Reference<drawing::XDrawView> xToolBar (static_cast<XWeak*>(mpToolBar.get()), UNO_QUERY); if (xToolBar.is()) @@ -1189,7 +1165,6 @@ void SAL_CALL PresenterToolBarView::setCurrentPage (const Reference<drawing::XDr } Reference<drawing::XDrawPage> SAL_CALL PresenterToolBarView::getCurrentPage() - throw (RuntimeException, std::exception) { return nullptr; } @@ -1362,7 +1337,6 @@ void Element::UpdateState() //----- lang::XEventListener -------------------------------------------------- void SAL_CALL Element::disposing (const css::lang::EventObject& rEvent) - throw(css::uno::RuntimeException, std::exception) { (void)rEvent; } @@ -1370,7 +1344,6 @@ void SAL_CALL Element::disposing (const css::lang::EventObject& rEvent) //----- document::XEventListener ---------------------------------------------- void SAL_CALL Element::notifyEvent (const css::document::EventObject& rEvent) - throw(css::uno::RuntimeException, std::exception) { (void)rEvent; UpdateState(); @@ -1379,7 +1352,6 @@ void SAL_CALL Element::notifyEvent (const css::document::EventObject& rEvent) //----- frame::XStatusListener ------------------------------------------------ void SAL_CALL Element::statusChanged (const css::frame::FeatureStateEvent& rEvent) - throw(css::uno::RuntimeException, std::exception) { bool bIsSelected (mbIsSelected); bool bIsEnabled (rEvent.IsEnabled); @@ -1613,7 +1585,6 @@ PresenterBitmapDescriptor::Mode Button::GetMode() const //----- lang::XEventListener -------------------------------------------------- void SAL_CALL Button::disposing (const css::lang::EventObject& rEvent) - throw(css::uno::RuntimeException, std::exception) { (void)rEvent; mbIsListenerRegistered = false; |