From 18d7548714022cd5f9486ca629561ab106b5992f Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sun, 2 Jul 2017 22:28:03 +0200 Subject: loplugin:casttovoid: unotools Change-Id: I957f58894dfd8bd495df386bd443b190e163727e --- unotools/source/misc/closeveto.cxx | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/unotools/source/misc/closeveto.cxx b/unotools/source/misc/closeveto.cxx index 81a752fa5b9b..ed668fc12848 100644 --- a/unotools/source/misc/closeveto.cxx +++ b/unotools/source/misc/closeveto.cxx @@ -69,25 +69,17 @@ namespace utl bool m_bHasOwnership; }; - void SAL_CALL CloseListener_Impl::queryClosing( const EventObject& i_source, sal_Bool i_deliverOwnership ) + void SAL_CALL CloseListener_Impl::queryClosing( const EventObject&, sal_Bool i_deliverOwnership ) { - (void)i_source; - if ( !m_bHasOwnership ) m_bHasOwnership = i_deliverOwnership; throw CloseVetoException(); } - void SAL_CALL CloseListener_Impl::notifyClosing( const EventObject& i_source ) - { - (void)i_source; - } + void SAL_CALL CloseListener_Impl::notifyClosing( const EventObject& ) {} - void SAL_CALL CloseListener_Impl::disposing( const EventObject& i_source ) - { - (void)i_source; - } + void SAL_CALL CloseListener_Impl::disposing( const EventObject& ) {} //= CloseVeto_Data -- cgit