diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-27 15:27:24 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-27 15:30:55 +0200 |
commit | 4591a1373ad2ba726f321b6c11576464a40df621 (patch) | |
tree | 31d38328fe9c45c2c25ae6bffd823c457ffd5907 /extensions | |
parent | 6e8a81e564f5c64e8aac402ed58b2ec3dadb33a9 (diff) |
More loplugin:simplifybool
Change-Id: I5d904726bdfec1f2bfa5798e9fd82a5ac61f461a
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/plugin/unx/nppapi.cxx | 4 | ||||
-rw-r--r-- | extensions/source/update/check/updatehdl.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/extensions/source/plugin/unx/nppapi.cxx b/extensions/source/plugin/unx/nppapi.cxx index f0707e63fa3f..9fbf3d3afd66 100644 --- a/extensions/source/plugin/unx/nppapi.cxx +++ b/extensions/source/plugin/unx/nppapi.cxx @@ -69,7 +69,7 @@ IMPL_LINK( PluginConnector, NewMessageHdl, Mediator*, /*pMediator*/ ) osl::MutexGuard aGuard( m_aUserEventMutex ); bool bFound = false; for( std::vector< PluginConnector* >::iterator it = allConnectors.begin(); - it != allConnectors.end() && bFound == false; ++it ) + it != allConnectors.end() && !bFound; ++it ) { if( *it == this ) bFound = true; @@ -84,7 +84,7 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, /*pMediator*/ ) { bool bFound = false; for( std::vector< PluginConnector* >::iterator it = allConnectors.begin(); - it != allConnectors.end() && bFound == false; ++it ) + it != allConnectors.end() && !bFound; ++it ) { if( *it == this ) bFound = true; diff --git a/extensions/source/update/check/updatehdl.cxx b/extensions/source/update/check/updatehdl.cxx index 28eb58ea2ddd..2f9d68d94f6f 100644 --- a/extensions/source/update/check/updatehdl.cxx +++ b/extensions/source/update/check/updatehdl.cxx @@ -1301,7 +1301,7 @@ void UpdateHandler::createDialog() uno::Reference< awt::XUnoControlDialog > xControl = awt::UnoControlDialog::create( mxContext ); xControl->setModel( xControlModel ); - if ( mbVisible == false ) + if ( !mbVisible ) { xControl->setVisible( false ); } |