diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-27 14:06:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-28 08:55:10 +0200 |
commit | 26c82e22bf4f077022ae88d0a7f8ad0fa6d2a5ba (patch) | |
tree | 42bf27db4a1da0fa3ea3bdd7997e7058c1638f98 /unotools/source/accessibility | |
parent | ef531e85d95fe18d553bce1a6926d24c08ffe2bf (diff) |
loplugin:oncevar in ucb..vbahelper
Change-Id: I1fc7c7505a42b3bf9d4a5ab22961930b9831d4ae
Reviewed-on: https://gerrit.libreoffice.org/39327
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools/source/accessibility')
-rw-r--r-- | unotools/source/accessibility/accessiblerelationsethelper.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/unotools/source/accessibility/accessiblerelationsethelper.cxx b/unotools/source/accessibility/accessiblerelationsethelper.cxx index 3ca876f1aa46..6456085f55a0 100644 --- a/unotools/source/accessibility/accessiblerelationsethelper.cxx +++ b/unotools/source/accessibility/accessiblerelationsethelper.cxx @@ -83,13 +83,11 @@ AccessibleRelation AccessibleRelationSetHelperImpl::getRelationByType( sal_Int16 { sal_Int32 nCount(getRelationCount()); sal_Int32 i(0); - bool bFound(false); - while ((i < nCount) && !bFound) + while (i < nCount) { if (maRelations[i].RelationType == aRelationType) return maRelations[i]; - else - i++; + i++; } return AccessibleRelation(); } |