diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2013-08-09 09:14:53 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2013-08-09 09:22:49 +0900 |
commit | f30cde45db99d5c57e8be6956bbf824ab92328c2 (patch) | |
tree | 1cf0db30957e97074542549e4e44900b1ef7aaed /i18npool/inc | |
parent | 06e6123012cf58954e94b67568dc7dea4b6ed769 (diff) |
Mark as const/static
Change-Id: I5d51d7e01913ac9917578f8c9789312af9be3638
Diffstat (limited to 'i18npool/inc')
-rw-r--r-- | i18npool/inc/bullet.h | 22 | ||||
-rw-r--r-- | i18npool/inc/calendar_gregorian.hxx | 6 | ||||
-rw-r--r-- | i18npool/inc/transliteration_Ignore.hxx | 2 | ||||
-rw-r--r-- | i18npool/inc/transliteration_Numeric.hxx | 2 |
4 files changed, 16 insertions, 16 deletions
diff --git a/i18npool/inc/bullet.h b/i18npool/inc/bullet.h index 3392bbe2731e..c1f144326df5 100644 --- a/i18npool/inc/bullet.h +++ b/i18npool/inc/bullet.h @@ -19,7 +19,7 @@ namespace com { namespace sun { namespace star { namespace i18n { -static sal_Unicode table_AIUFullWidth_ja_JP[] = { +static const sal_Unicode table_AIUFullWidth_ja_JP[] = { 0x30A2, // KATAKANA LETTER A 0x30A4, // KATAKANA LETTER I 0x30A6, // KATAKANA LETTER U @@ -68,7 +68,7 @@ static sal_Unicode table_AIUFullWidth_ja_JP[] = { 0x30F3 // KATAKANA LETTER N }; -static sal_Unicode table_AIUHalfWidth_ja_JP[] = { +static const sal_Unicode table_AIUHalfWidth_ja_JP[] = { 0xFF71, // HALFWIDTH KATAKANA LETTER A 0xFF72, // HALFWIDTH KATAKANA LETTER I 0xFF73, // HALFWIDTH KATAKANA LETTER U @@ -117,7 +117,7 @@ static sal_Unicode table_AIUHalfWidth_ja_JP[] = { 0xFF9D // HALFWIDTH KATAKANA LETTER N }; -static sal_Unicode table_IROHAFullWidth_ja_JP[] = { +static const sal_Unicode table_IROHAFullWidth_ja_JP[] = { 0x30A4, // KATAKANA LETTER I 0x30ED, // KATAKANA LETTER RO 0x30CF, // KATAKANA LETTER HA @@ -168,7 +168,7 @@ static sal_Unicode table_IROHAFullWidth_ja_JP[] = { 0x30F3 // KATAKANA LETTER N }; -static sal_Unicode table_IROHAHalfWidth_ja_JP[] = { +static const sal_Unicode table_IROHAHalfWidth_ja_JP[] = { 0xFF72, // HALFWIDTH KATAKANA LETTER I 0xFF9B, // HALFWIDTH KATAKANA LETTER RO 0xFF8A, // HALFWIDTH KATAKANA LETTER HA @@ -219,7 +219,7 @@ static sal_Unicode table_IROHAHalfWidth_ja_JP[] = { 0xFF9D // HALFWIDTH KATAKANA LETTER N }; -static sal_Unicode table_CircledNumber[] = { +static const sal_Unicode table_CircledNumber[] = { 0x2460, // CIRCLED DIGIT ONE 0x2461, // CIRCLED DIGIT TWO 0x2462, // CIRCLED DIGIT THREE @@ -242,7 +242,7 @@ static sal_Unicode table_CircledNumber[] = { 0x2473 // CIRCLED NUMBER TWENTY }; -static sal_Unicode table_HangulJamo_ko[] = { +static const sal_Unicode table_HangulJamo_ko[] = { 0x3131, // HANGUL LETTER KIYEOK 0x3134, // HANGUL LETTER NIEUN 0x3137, // HANGUL LETTER TIKEUT @@ -259,7 +259,7 @@ static sal_Unicode table_HangulJamo_ko[] = { 0x314E // HANGUL LETTER HIEUH }; -static sal_Unicode table_HangulSyllable_ko[] = { +static const sal_Unicode table_HangulSyllable_ko[] = { 0xAC00, // HANGUL SYLLABLE GA 0xB098, // HANGUL SYLLABLE NA 0xB2E4, // HANGUL SYLLABLE DA @@ -277,7 +277,7 @@ static sal_Unicode table_HangulSyllable_ko[] = { }; -static sal_Unicode table_HangulCircledJamo_ko[] = { +static const sal_Unicode table_HangulCircledJamo_ko[] = { 0x3260, // CIRCLED HANGUL LETTER KIYEOK 0x3261, // CIRCLED HANGUL LETTER NIEUN 0x3262, // CIRCLED HANGUL LETTER TIKEUT @@ -295,7 +295,7 @@ static sal_Unicode table_HangulCircledJamo_ko[] = { }; -static sal_Unicode table_HangulCircledSyllable_ko[] = { +static const sal_Unicode table_HangulCircledSyllable_ko[] = { 0x326E, // CIRCLED HANGUL SYLLABLE GA 0x326F, // CIRCLED HANGUL SYLLABLE NA 0x3270, // CIRCLED HANGUL SYLLABLE DA @@ -312,11 +312,11 @@ static sal_Unicode table_HangulCircledSyllable_ko[] = { 0x327B // CIRCLED HANGUL SYLLABLE HA }; -static sal_Unicode table_TianGan_zh[] = { +static const sal_Unicode table_TianGan_zh[] = { 0x7532,0x4e59,0x4e19,0x4e01,0x620a,0x5df1,0x5e9a,0x8f9b,0x58ec,0x7678 }; -static sal_Unicode table_DiZi_zh[] = { +static const sal_Unicode table_DiZi_zh[] = { 0x5b50,0x4e11,0x5bc5,0x536f,0x8fb0,0x5df3,0x5348,0x672a,0x7533,0x9149,0x620c,0x4ea5 }; diff --git a/i18npool/inc/calendar_gregorian.hxx b/i18npool/inc/calendar_gregorian.hxx index 691af7f9fca9..6a45d56e30ca 100644 --- a/i18npool/inc/calendar_gregorian.hxx +++ b/i18npool/inc/calendar_gregorian.hxx @@ -47,8 +47,8 @@ public: // Constructors Calendar_gregorian(); - Calendar_gregorian(Era *_eraArray); - void SAL_CALL init(Era *_eraArray); + Calendar_gregorian(const Era *_eraArray); + void SAL_CALL init(const Era *_eraArray); /** * Destructor @@ -91,7 +91,7 @@ public: virtual com::sun::star::uno::Sequence < OUString > SAL_CALL getSupportedServiceNames() throw(com::sun::star::uno::RuntimeException); protected: - Era *eraArray; + const Era *eraArray; icu::Calendar *body; NativeNumberSupplier aNatNum; const sal_Char* cCalendar; diff --git a/i18npool/inc/transliteration_Ignore.hxx b/i18npool/inc/transliteration_Ignore.hxx index e66e16aff2f0..0f5c48618869 100644 --- a/i18npool/inc/transliteration_Ignore.hxx +++ b/i18npool/inc/transliteration_Ignore.hxx @@ -71,7 +71,7 @@ public: protected: TransFunc func; oneToOneMapping *table; - Mapping *map; + const Mapping *map; }; #define TRANSLITERATION_IGNORE( name ) \ diff --git a/i18npool/inc/transliteration_Numeric.hxx b/i18npool/inc/transliteration_Numeric.hxx index 585e6014c4b7..c9db417b7b04 100644 --- a/i18npool/inc/transliteration_Numeric.hxx +++ b/i18npool/inc/transliteration_Numeric.hxx @@ -51,7 +51,7 @@ public: protected: sal_Int16 nNativeNumberMode; sal_Int16 tableSize; - sal_Unicode* table; + const sal_Unicode* table; sal_Bool recycleSymbol; private: OUString SAL_CALL |