diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-29 11:34:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-29 14:44:37 +0200 |
commit | 9b25614939f7709e3d67949f49c4beeec0cdc534 (patch) | |
tree | c1e25fc743202c1fd8288ef5f8c0332203b1fc5c /extensions | |
parent | 6647a167400753df45dba788ed793d55ca0be9f8 (diff) |
loplugin:simplifybool in dbaccess..framework
Change-Id: I0d73bb7d8d3fde426edc0a10c0750758b68aceb5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95099
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/propctrlr/propertycontrolextender.cxx | 4 | ||||
-rw-r--r-- | extensions/source/scanner/sane.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/extensions/source/propctrlr/propertycontrolextender.cxx b/extensions/source/propctrlr/propertycontrolextender.cxx index 443a166820e6..142e288ddeb9 100644 --- a/extensions/source/propctrlr/propertycontrolextender.cxx +++ b/extensions/source/propctrlr/propertycontrolextender.cxx @@ -78,8 +78,8 @@ namespace pcr void SAL_CALL PropertyControlExtender::keyPressed( const KeyEvent& _event ) { OSL_ENSURE( _event.Source == m_pData->xControlWindow, "PropertyControlExtender::keyPressed: where does this come from?" ); - if ( !(( _event.KeyFunc == KeyFunction::DELETE ) - && ( _event.Modifiers == 0 )) + if ( ( _event.KeyFunc != KeyFunction::DELETE ) + || ( _event.Modifiers != 0 ) ) return; diff --git a/extensions/source/scanner/sane.cxx b/extensions/source/scanner/sane.cxx index 9030e5697a09..f8f85de5d9e1 100644 --- a/extensions/source/scanner/sane.cxx +++ b/extensions/source/scanner/sane.cxx @@ -388,8 +388,8 @@ bool Sane::GetOptionValue( int n, double& rRet, int nElement ) bool Sane::GetOptionValue( int n, double* pSet ) { - if( ! maHandle || ! ( mppOptions[n]->type == SANE_TYPE_FIXED || - mppOptions[n]->type == SANE_TYPE_INT ) ) + if( ! maHandle || ( mppOptions[n]->type != SANE_TYPE_FIXED && + mppOptions[n]->type != SANE_TYPE_INT ) ) return false; std::unique_ptr<SANE_Word[]> pFixedSet(new SANE_Word[mppOptions[n]->size/sizeof(SANE_Word)]); |