diff options
Diffstat (limited to 'i18npool/source/inputchecker/inputsequencechecker_hi.cxx')
-rw-r--r-- | i18npool/source/inputchecker/inputsequencechecker_hi.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/i18npool/source/inputchecker/inputsequencechecker_hi.cxx b/i18npool/source/inputchecker/inputsequencechecker_hi.cxx index 4e65a655ac7f..c560833a9020 100644 --- a/i18npool/source/inputchecker/inputsequencechecker_hi.cxx +++ b/i18npool/source/inputchecker/inputsequencechecker_hi.cxx @@ -101,8 +101,10 @@ bool const DEV_Composible[2][2] = { /* Mode 1 */ {false, true} // STRICT = 1 }; -#define getCharType(x) \ - ((x >= 0x0900 && x < 0x097f) ? devaCT[x - 0x0900] : ND_) +static constexpr sal_uInt16 getCharType(sal_Unicode x) +{ + return (x >= 0x0900 && x < 0x097f) ? devaCT[x - 0x0900] : ND_; +} sal_Bool SAL_CALL InputSequenceChecker_hi::checkInputSequence(const OUString& Text, |