diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-05 12:24:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-06 07:46:11 +0100 |
commit | 97ebc98f0e956712d242e13f15531742f844a738 (patch) | |
tree | f8f59969604c4cac28a3efba17c4c281752fa62f /i18npool | |
parent | 4b363760b9f196e139ee367d54252c4d6cbe25f3 (diff) |
convert some macros to local functions
Change-Id: If2c89f0f53615f6200b6cd1fb6267cc9b47df927
Reviewed-on: https://gerrit.libreoffice.org/62884
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool')
-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, |