summaryrefslogtreecommitdiff
path: root/i18npool/source/inputchecker
diff options
context:
space:
mode:
Diffstat (limited to 'i18npool/source/inputchecker')
-rw-r--r--i18npool/source/inputchecker/inputsequencechecker.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/i18npool/source/inputchecker/inputsequencechecker.cxx b/i18npool/source/inputchecker/inputsequencechecker.cxx
index 039f5ed19c85..93da474aee14 100644
--- a/i18npool/source/inputchecker/inputsequencechecker.cxx
+++ b/i18npool/source/inputchecker/inputsequencechecker.cxx
@@ -95,10 +95,10 @@ InputSequenceCheckerImpl::getLanguageByScripType(sal_Unicode cChar, sal_Unicode
if (type != UnicodeScript_kScriptCount &&
type == unicode::getUnicodeScriptType( nChar, typeList, UnicodeScript_kScriptCount )) {
switch(type) {
- case UnicodeScript_kThai: return (sal_Char*)"th";
+ case UnicodeScript_kThai: return const_cast<sal_Char*>("th");
//case UnicodeScript_kArabic: return (sal_Char*)"ar";
//case UnicodeScript_kHebrew: return (sal_Char*)"he";
- case UnicodeScript_kDevanagari: return (sal_Char*)"hi";
+ case UnicodeScript_kDevanagari: return const_cast<sal_Char*>("hi");
}
}
return NULL;