diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-07-02 22:32:00 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-07-02 22:32:00 +0200 |
commit | 54445375ec54696a35f28c7e1bd3efe1c35e1fbe (patch) | |
tree | d6da7accd43a20be4742f5e87d691fb4592198f2 /framework | |
parent | 207d625a9d0ae61d82ee2a72aeb998aff61bff15 (diff) |
loplugin:casttovoid: framework
Change-Id: I9e111f06520019ac87fbb55a9ca813fb97e6ed3a
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/accelerators/presethandler.cxx | 2 | ||||
-rw-r--r-- | framework/source/fwe/helper/documentundoguard.cxx | 36 | ||||
-rw-r--r-- | framework/source/fwi/jobs/configaccess.cxx | 1 | ||||
-rw-r--r-- | framework/source/helper/ocomponentenumeration.cxx | 1 |
4 files changed, 13 insertions, 27 deletions
diff --git a/framework/source/accelerators/presethandler.cxx b/framework/source/accelerators/presethandler.cxx index 649b9f35e1e1..13034b7ede1e 100644 --- a/framework/source/accelerators/presethandler.cxx +++ b/framework/source/accelerators/presethandler.cxx @@ -170,7 +170,7 @@ void lcl_throwCorruptedUIConfigurationException( { css::uno::Exception e; bool ok = (exception >>= e); - OSL_ASSERT(ok); (void) ok; // avoid warnings + OSL_ASSERT(ok); throw css::configuration::CorruptedUIConfigurationException( lcl_getLocalizedMessage(id), css::uno::Reference< css::uno::XInterface >(), diff --git a/framework/source/fwe/helper/documentundoguard.cxx b/framework/source/fwe/helper/documentundoguard.cxx index b51b3e283f58..956c7111f4fb 100644 --- a/framework/source/fwe/helper/documentundoguard.cxx +++ b/framework/source/fwe/helper/documentundoguard.cxx @@ -98,75 +98,63 @@ namespace framework bool m_documentDisposed; }; - void SAL_CALL UndoManagerContextListener::undoActionAdded( const UndoManagerEvent& i_event ) + void SAL_CALL UndoManagerContextListener::undoActionAdded( const UndoManagerEvent& ) { - (void)i_event; // not interested in } - void SAL_CALL UndoManagerContextListener::actionUndone( const UndoManagerEvent& i_event ) + void SAL_CALL UndoManagerContextListener::actionUndone( const UndoManagerEvent& ) { - (void)i_event; // not interested in } - void SAL_CALL UndoManagerContextListener::actionRedone( const UndoManagerEvent& i_event ) + void SAL_CALL UndoManagerContextListener::actionRedone( const UndoManagerEvent& ) { - (void)i_event; // not interested in } - void SAL_CALL UndoManagerContextListener::allActionsCleared( const EventObject& i_event ) + void SAL_CALL UndoManagerContextListener::allActionsCleared( const EventObject& ) { - (void)i_event; // not interested in } - void SAL_CALL UndoManagerContextListener::redoActionsCleared( const EventObject& i_event ) + void SAL_CALL UndoManagerContextListener::redoActionsCleared( const EventObject& ) { - (void)i_event; // not interested in } - void SAL_CALL UndoManagerContextListener::resetAll( const EventObject& i_event ) + void SAL_CALL UndoManagerContextListener::resetAll( const EventObject& ) { - (void)i_event; m_nRelativeContextDepth = 0; } - void SAL_CALL UndoManagerContextListener::enteredContext( const UndoManagerEvent& i_event ) + void SAL_CALL UndoManagerContextListener::enteredContext( const UndoManagerEvent& ) { - (void)i_event; osl_atomic_increment( &m_nRelativeContextDepth ); } - void SAL_CALL UndoManagerContextListener::enteredHiddenContext( const UndoManagerEvent& i_event ) + void SAL_CALL UndoManagerContextListener::enteredHiddenContext( const UndoManagerEvent& ) { - (void)i_event; osl_atomic_increment( &m_nRelativeContextDepth ); } - void SAL_CALL UndoManagerContextListener::leftContext( const UndoManagerEvent& i_event ) + void SAL_CALL UndoManagerContextListener::leftContext( const UndoManagerEvent& ) { - (void)i_event; osl_atomic_decrement( &m_nRelativeContextDepth ); } - void SAL_CALL UndoManagerContextListener::leftHiddenContext( const UndoManagerEvent& i_event ) + void SAL_CALL UndoManagerContextListener::leftHiddenContext( const UndoManagerEvent& ) { - (void)i_event; osl_atomic_decrement( &m_nRelativeContextDepth ); } - void SAL_CALL UndoManagerContextListener::cancelledContext( const UndoManagerEvent& i_event ) + void SAL_CALL UndoManagerContextListener::cancelledContext( const UndoManagerEvent& ) { - (void)i_event; osl_atomic_decrement( &m_nRelativeContextDepth ); } - void SAL_CALL UndoManagerContextListener::disposing( const EventObject& i_event ) + void SAL_CALL UndoManagerContextListener::disposing( const EventObject& ) { - (void)i_event; m_documentDisposed = true; } diff --git a/framework/source/fwi/jobs/configaccess.cxx b/framework/source/fwi/jobs/configaccess.cxx index 0c1921f7c457..13d3118d1a4a 100644 --- a/framework/source/fwi/jobs/configaccess.cxx +++ b/framework/source/fwi/jobs/configaccess.cxx @@ -128,7 +128,6 @@ void ConfigAccess::open( /*IN*/ EOpenMode eMode ) } catch(const css::uno::Exception& ex) { - (void) ex; // avoid warning SAL_INFO("fwk", "open config: " << ex.Message); } diff --git a/framework/source/helper/ocomponentenumeration.cxx b/framework/source/helper/ocomponentenumeration.cxx index fd663af6e8cf..5c964d62f727 100644 --- a/framework/source/helper/ocomponentenumeration.cxx +++ b/framework/source/helper/ocomponentenumeration.cxx @@ -51,7 +51,6 @@ void SAL_CALL OComponentEnumeration::disposing( const EventObject& aEvent ) // Safe impossible cases // This method is not specified for all incoming parameters. - (void) aEvent; SAL_WARN_IF( !aEvent.Source.is(), "fwk", "OComponentEnumeration::disposing(): Invalid parameter detected!" ); // Reset instance to defaults, release references and free memory. |