diff options
Diffstat (limited to 'linguistic/source')
-rw-r--r-- | linguistic/source/hhconvdic.cxx | 7 |
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; } |