From c3f4909b992735f6a90b97b8019442a8acd12f95 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 26 Mar 2015 15:29:10 +0100 Subject: const_cast: convert some C-style casts and remove some redundant ones Change-Id: I7b184414d822e7d3f4f7694dcea540d731f970d9 --- i18npool/source/inputchecker/inputsequencechecker.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'i18npool/source/inputchecker') 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("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("hi"); } } return NULL; -- cgit