summaryrefslogtreecommitdiff
path: root/i18nutil/source/utility/casefolding.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'i18nutil/source/utility/casefolding.cxx')
-rw-r--r--i18nutil/source/utility/casefolding.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/i18nutil/source/utility/casefolding.cxx b/i18nutil/source/utility/casefolding.cxx
index cf3a716701e3..57a6a23bc561 100644
--- a/i18nutil/source/utility/casefolding.cxx
+++ b/i18nutil/source/utility/casefolding.cxx
@@ -135,9 +135,10 @@ Mapping casefolding::getValue(const sal_Unicode* str, sal_Int32 pos, sal_Int32 l
static bool
is_ja_voice_sound_mark(sal_Unicode& current, sal_Unicode next)
{
- sal_Unicode c = 0;
-
- if ((next == 0x3099 || next == 0x309a) && ( (c = widthfolding::getCompositionChar(current, next)) != 0 ))
+ if (!(next == 0x3099 || next == 0x309a))
+ return false;
+ sal_Unicode c = widthfolding::getCompositionChar(current, next);
+ if (c != 0)
current = c;
return c != 0;
}