From e15d8269f591f36e6933cd01b9c79ed81c1deeb5 Mon Sep 17 00:00:00 2001 From: Arkadiy Illarionov Date: Sun, 21 Apr 2019 15:12:31 +0300 Subject: Exit from search loop when condition is satisfied Change-Id: Iff5299a86559a88bff9256e55e75a508e3713d28 Reviewed-on: https://gerrit.libreoffice.org/71037 Tested-by: Jenkins Reviewed-by: Noel Grandin --- accessibility/source/extended/AccessibleGridControlTable.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accessibility/source/extended/AccessibleGridControlTable.cxx b/accessibility/source/extended/AccessibleGridControlTable.cxx index 75c21fb55530..e57bf58bf6d4 100644 --- a/accessibility/source/extended/AccessibleGridControlTable.cxx +++ b/accessibility/source/extended/AccessibleGridControlTable.cxx @@ -172,7 +172,7 @@ sal_Bool SAL_CALL AccessibleGridControlTable::isAccessibleRowSelected( sal_Int32 if(nRow == selectedRows[i]) { bSelected = true; - continue; + break; } } return bSelected; -- cgit