diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-07-02 22:34:18 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-07-02 22:34:31 +0200 |
commit | 2b1c731f3c69c1fa1af68e01683711ceda585e07 (patch) | |
tree | f12db8232983b379fdd45e9aaaff364862054c58 /comphelper | |
parent | 41dbfa9ec7380e082279f1b01bfd323d23134b7d (diff) |
loplugin:casttovoid: comphelper
Change-Id: I28752323d31320141a537c0e108c911cef09c10a
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/container/embeddedobjectcontainer.cxx | 1 | ||||
-rw-r--r-- | comphelper/source/misc/logging.cxx | 9 |
2 files changed, 3 insertions, 7 deletions
diff --git a/comphelper/source/container/embeddedobjectcontainer.cxx b/comphelper/source/container/embeddedobjectcontainer.cxx index 2a045edf863c..c5d7b031ded6 100644 --- a/comphelper/source/container/embeddedobjectcontainer.cxx +++ b/comphelper/source/container/embeddedobjectcontainer.cxx @@ -1041,7 +1041,6 @@ bool EmbeddedObjectContainer::RemoveEmbeddedObject( const uno::Reference < embed } SAL_WARN_IF( !bFound,"comphelper.container", "Object not found for removal!" ); - (void)bFound; if ( xPersist.is() && bKeepToTempStorage ) // #i119941# { // remove replacement image (if there is one) diff --git a/comphelper/source/misc/logging.cxx b/comphelper/source/misc/logging.cxx index 6df71c3d01bf..3744d9580727 100644 --- a/comphelper/source/misc/logging.cxx +++ b/comphelper/source/misc/logging.cxx @@ -63,9 +63,8 @@ namespace comphelper else m_xLogger = xPool->getDefaultLogger(); } - catch( const Exception& e ) + catch( const Exception& ) { - (void)e; OSL_FAIL( "EventLogger_Impl::impl_createLogger_nothrow: caught an exception!" ); } } @@ -90,9 +89,8 @@ namespace comphelper { return m_pImpl->getLogger()->isLoggable( _nLogLevel ); } - catch( const Exception& e ) + catch( const Exception& ) { - (void)e; OSL_FAIL( "EventLogger::isLoggable: caught an exception!" ); } @@ -157,9 +155,8 @@ namespace comphelper xLogger->log( _nLogLevel, sMessage ); } } - catch( const Exception& e ) + catch( const Exception& ) { - (void)e; OSL_FAIL( "EventLogger::impl_log: caught an exception!" ); } |