From ec0146214165c53a9b82d62b8c1408aaaaf465ca Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sun, 2 Jul 2017 22:30:34 +0200 Subject: loplugin:casttovoid: sdext Change-Id: I557d59a4bfb9cab17a2cb00c3a80f85a6ef9671b --- sdext/source/presenter/PresenterButton.cxx | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) (limited to 'sdext/source/presenter/PresenterButton.cxx') diff --git a/sdext/source/presenter/PresenterButton.cxx b/sdext/source/presenter/PresenterButton.cxx index 4487e70bad0e..70f9c493981c 100644 --- a/sdext/source/presenter/PresenterButton.cxx +++ b/sdext/source/presenter/PresenterButton.cxx @@ -230,27 +230,23 @@ css::geometry::IntegerSize2D const & PresenterButton::GetSize() //----- XWindowListener ------------------------------------------------------- -void SAL_CALL PresenterButton::windowResized (const css::awt::WindowEvent& rEvent) +void SAL_CALL PresenterButton::windowResized (const css::awt::WindowEvent&) { - (void)rEvent; ThrowIfDisposed(); } -void SAL_CALL PresenterButton::windowMoved (const css::awt::WindowEvent& rEvent) +void SAL_CALL PresenterButton::windowMoved (const css::awt::WindowEvent&) { - (void)rEvent; ThrowIfDisposed(); } -void SAL_CALL PresenterButton::windowShown (const css::lang::EventObject& rEvent) +void SAL_CALL PresenterButton::windowShown (const css::lang::EventObject&) { - (void)rEvent; ThrowIfDisposed(); } -void SAL_CALL PresenterButton::windowHidden (const css::lang::EventObject& rEvent) +void SAL_CALL PresenterButton::windowHidden (const css::lang::EventObject&) { - (void)rEvent; ThrowIfDisposed(); } @@ -288,16 +284,14 @@ void SAL_CALL PresenterButton::windowPaint (const css::awt::PaintEvent& rEvent) //----- XMouseListener -------------------------------------------------------- -void SAL_CALL PresenterButton::mousePressed (const css::awt::MouseEvent& rEvent) +void SAL_CALL PresenterButton::mousePressed (const css::awt::MouseEvent&) { - (void)rEvent; ThrowIfDisposed(); meState = PresenterBitmapDescriptor::ButtonDown; } -void SAL_CALL PresenterButton::mouseReleased (const css::awt::MouseEvent& rEvent) +void SAL_CALL PresenterButton::mouseReleased (const css::awt::MouseEvent&) { - (void)rEvent; ThrowIfDisposed(); if (meState == PresenterBitmapDescriptor::ButtonDown) @@ -310,17 +304,15 @@ void SAL_CALL PresenterButton::mouseReleased (const css::awt::MouseEvent& rEvent } } -void SAL_CALL PresenterButton::mouseEntered (const css::awt::MouseEvent& rEvent) +void SAL_CALL PresenterButton::mouseEntered (const css::awt::MouseEvent&) { - (void)rEvent; ThrowIfDisposed(); meState = PresenterBitmapDescriptor::MouseOver; Invalidate(); } -void SAL_CALL PresenterButton::mouseExited (const css::awt::MouseEvent& rEvent) +void SAL_CALL PresenterButton::mouseExited (const css::awt::MouseEvent&) { - (void)rEvent; ThrowIfDisposed(); meState = PresenterBitmapDescriptor::Normal; Invalidate(); @@ -328,15 +320,13 @@ void SAL_CALL PresenterButton::mouseExited (const css::awt::MouseEvent& rEvent) //----- XMouseMotionListener -------------------------------------------------- -void SAL_CALL PresenterButton::mouseMoved (const css::awt::MouseEvent& rEvent) +void SAL_CALL PresenterButton::mouseMoved (const css::awt::MouseEvent&) { - (void)rEvent; ThrowIfDisposed(); } -void SAL_CALL PresenterButton::mouseDragged (const css::awt::MouseEvent& rEvent) +void SAL_CALL PresenterButton::mouseDragged (const css::awt::MouseEvent&) { - (void)rEvent; ThrowIfDisposed(); } -- cgit