diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-27 14:49:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-28 09:05:11 +0200 |
commit | 5f19287a9cd4167e3be937e3df820446f2e30518 (patch) | |
tree | 64f33b2e66cec0aea2972dc7324534eab3113c6f /basctl/source/basicide | |
parent | e871c9cb7ce4f3df2ba6780be62ed46b5ee7a410 (diff) |
loplugin:simplifybool in accessibility..basic
Change-Id: Ibf6cef4baa2d3d400d953ac8bc97a66b5901def9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94972
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl/source/basicide')
-rw-r--r-- | basctl/source/basicide/basidesh.cxx | 4 | ||||
-rw-r--r-- | basctl/source/basicide/brkdlg.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/basctl/source/basicide/basidesh.cxx b/basctl/source/basicide/basidesh.cxx index 896b77f2f892..3a2259bf40ac 100644 --- a/basctl/source/basicide/basidesh.cxx +++ b/basctl/source/basicide/basidesh.cxx @@ -487,8 +487,8 @@ void Shell::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) return; const SfxHintId nHintId = pSbxHint->GetId(); - if ( !(( nHintId == SfxHintId::BasicStart ) || - ( nHintId == SfxHintId::BasicStop )) ) + if ( ( nHintId != SfxHintId::BasicStart ) && + ( nHintId != SfxHintId::BasicStop ) ) return; if (SfxBindings* pBindings = GetBindingsPtr()) diff --git a/basctl/source/basicide/brkdlg.cxx b/basctl/source/basicide/brkdlg.cxx index 15a4b5a91d05..e5fafd545331 100644 --- a/basctl/source/basicide/brkdlg.cxx +++ b/basctl/source/basicide/brkdlg.cxx @@ -47,7 +47,7 @@ bool lcl_ParseText(OUString const &rText, size_t& rLineNr ) if (aText.isEmpty()) return false; sal_Unicode cFirst = aText[0]; - if (cFirst != '#' && !(cFirst >= '0' && cFirst <= '9')) + if (cFirst != '#' && (cFirst < '0' || cFirst > '9')) return false; if (cFirst == '#') aText = aText.copy(1); |