diff options
Diffstat (limited to 'i18nutil')
-rw-r--r-- | i18nutil/source/utility/scripttypedetector.cxx | 4 | ||||
-rw-r--r-- | i18nutil/source/utility/unicode.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/i18nutil/source/utility/scripttypedetector.cxx b/i18nutil/source/utility/scripttypedetector.cxx index ece2b575e593..1a9e2c20df0f 100644 --- a/i18nutil/source/utility/scripttypedetector.cxx +++ b/i18nutil/source/utility/scripttypedetector.cxx @@ -25,7 +25,7 @@ using namespace com::sun::star::i18n; -static sal_Int16 scriptDirection[] = { +static const sal_Int16 scriptDirection[] = { ScriptDirection::LEFT_TO_RIGHT, // DirectionProperty_LEFT_TO_RIGHT = 0, ScriptDirection::RIGHT_TO_LEFT, // DirectionProperty_RIGHT_TO_LEFT = 1, ScriptDirection::LEFT_TO_RIGHT, // DirectionProperty_EUROPEAN_NUMBER = 2, @@ -83,7 +83,7 @@ sal_Int32 ScriptTypeDetector::endOfScriptDirection( const OUString& Text, sal_In sal_Int16 ScriptTypeDetector::getCTLScriptType( const OUString& Text, sal_Int32 nPos ) { - static ScriptTypeList typeList[] = { + static const ScriptTypeList typeList[] = { { UnicodeScript_kHebrew, UnicodeScript_kHebrew, CTLScriptType::CTL_HEBREW }, // 10 { UnicodeScript_kArabic, UnicodeScript_kArabic, CTLScriptType::CTL_ARABIC }, // 11 { UnicodeScript_kDevanagari, UnicodeScript_kDevanagari, CTLScriptType::CTL_INDIC }, // 14 diff --git a/i18nutil/source/utility/unicode.cxx b/i18nutil/source/utility/unicode.cxx index dcefa791f274..cda8c1a02800 100644 --- a/i18nutil/source/utility/unicode.cxx +++ b/i18nutil/source/utility/unicode.cxx @@ -30,7 +30,7 @@ using namespace ::com::sun::star::i18n; -static ScriptTypeList defaultTypeList[] = { +static const ScriptTypeList defaultTypeList[] = { { UnicodeScript_kBasicLatin, UnicodeScript_kBasicLatin, UnicodeScript_kBasicLatin }, // 0, @@ -298,7 +298,7 @@ static ScriptTypeList defaultTypeList[] = { }; sal_Int16 SAL_CALL -unicode::getUnicodeScriptType( const sal_Unicode ch, ScriptTypeList* typeList, sal_Int16 unknownType ) { +unicode::getUnicodeScriptType( const sal_Unicode ch, const ScriptTypeList* typeList, sal_Int16 unknownType ) { if (!typeList) { typeList = defaultTypeList; |