From 137b9d4d0a1b1b68162c7b603e1aceeaed73a9f6 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Wed, 16 Jun 2004 21:17:33 +0000 Subject: [PATCH] ICU-3718 Make some data read-only X-SVN-Rev: 15893 --- icu4c/source/i18n/calendar.cpp | 2 +- icu4c/source/i18n/ucol_sit.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/icu4c/source/i18n/calendar.cpp b/icu4c/source/i18n/calendar.cpp index f7fb46b35c..766c996c4f 100644 --- a/icu4c/source/i18n/calendar.cpp +++ b/icu4c/source/i18n/calendar.cpp @@ -101,7 +101,7 @@ static ICULocaleService* gService = NULL; // ------------------------------------- -static const char *gBasicCalendars[] = { "@calendar=gregorian", "@calendar=japanese", +static const char * const gBasicCalendars[] = { "@calendar=gregorian", "@calendar=japanese", "@calendar=buddhist", "@calendar=islamic-civil", "@calendar=islamic", "@calendar=hebrew", "@calendar=chinese", NULL }; diff --git a/icu4c/source/i18n/ucol_sit.cpp b/icu4c/source/i18n/ucol_sit.cpp index 99b22a0f2f..49ef3be61b 100644 --- a/icu4c/source/i18n/ucol_sit.cpp +++ b/icu4c/source/i18n/ucol_sit.cpp @@ -49,7 +49,7 @@ enum OptionsList { * be established. Currently, the mapping is from locale name to * index. */ -static const char* locales[] = { +static const char* const locales[] = { /* 00 - 09 */ "ar", "be", "bg", "ca", "cs", "da", "de", "de__PHONEBOOK", "el", "en", /* 10 - 19 */ "en_BE", "eo", "es", "es__TRADITIONAL", "et", "fa", "fa_AF", "fi", "fo", "fr", /* 20 - 29 */ "gu", "he", "hi", "hi__DIRECT", "hr", "hu", "is", "it", "ja", "kk", @@ -59,7 +59,7 @@ static const char* locales[] = { /* 60 - 64 */ "zh_HK", "zh_MO", "zh_TW", "zh_TW_STROKE", "zh__PINYIN" }; -static const char* keywords[] = { +static const char* const keywords[] = { /* 00 */ "", /* 01 */ "direct", /* 02 */ "phonebook", @@ -88,7 +88,7 @@ static const char variantArg = 'V'; static const char RFC3066Arg = 'X'; static const char scriptArg = 'Z'; -static const char *collationKeyword = "@collation="; +static const char collationKeyword[] = "@collation="; static const int32_t locElementCount = 5; static const int32_t locElementCapacity = 32;