summaryrefslogtreecommitdiff
path: root/i18npool/source/inputchecker
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-26 15:29:10 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-26 15:33:31 +0100
commitc3f4909b992735f6a90b97b8019442a8acd12f95 (patch)
treefcf5ba14a2f02018e611bc17ffaa6fee91f3b93c /i18npool/source/inputchecker
parentb98a8221c70474687c4da8c60f2892ce9a792e93 (diff)
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I7b184414d822e7d3f4f7694dcea540d731f970d9
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;