summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-21 09:05:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-21 12:29:46 +0200
commit639511d7194726b188a2ecae9b3489a250532d03 (patch)
treeaf8195623e940c171934b9bbbe16acbc38e0d378 /linguistic
parentcf46500243c51071227e08c5067041e414180ebc (diff)
use for-range on Sequence in i18npool..sd
Change-Id: I19eba57bc6058c317473d0746f06699a09ba2830 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94608 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/hhconvdic.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/linguistic/source/hhconvdic.cxx b/linguistic/source/hhconvdic.cxx
index a57df56f122b..1888e6186a81 100644
--- a/linguistic/source/hhconvdic.cxx
+++ b/linguistic/source/hhconvdic.cxx
@@ -65,13 +65,12 @@ static sal_Int16 checkScriptType(sal_Unicode c)
static bool TextIsAllScriptType( const OUString &rTxt, sal_Int16 nScriptType )
{
- bool bIsAll = true;
- for (sal_Int32 i = 0; i < rTxt.getLength() && bIsAll; ++i)
+ for (sal_Int32 i = 0; i < rTxt.getLength(); ++i)
{
if (checkScriptType( rTxt[i]) != nScriptType)
- bIsAll = false;
+ return false;
}
- return bIsAll;
+ return true;
}