[Libreoffice-commits] core.git: i18nutil/source

Takeshi Abe tabe at fixedpoint.jp
Sat Aug 10 17:16:08 PDT 2013


 i18nutil/source/utility/casefolding_data.h |    4 ++--
 i18nutil/source/utility/paper.cxx          |    2 +-
 i18nutil/source/utility/unicode_data.h     |   14 +++++++-------
 3 files changed, 10 insertions(+), 10 deletions(-)

New commits:
commit b47e653209729665cd1cf426ee6141705a2376a7
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Sun Aug 11 08:01:51 2013 +0900

    Mark as const
    
    Change-Id: I220204cc5ebec15402ae175aef110abad8b00267

diff --git a/i18nutil/source/utility/casefolding_data.h b/i18nutil/source/utility/casefolding_data.h
index 0b50083..c41e8ba 100644
--- a/i18nutil/source/utility/casefolding_data.h
+++ b/i18nutil/source/utility/casefolding_data.h
@@ -23,7 +23,7 @@
 
 namespace com { namespace sun { namespace star { namespace i18n {
 
-static sal_Int8 CaseMappingIndex[] = {
+static const sal_Int8 CaseMappingIndex[] = {
     0x00, 0x01, 0x02, 0x03, 0x04, 0x05,   -1,   -1, // 0000 - 07ff
       -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1, // 0800 - 0fff
       -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1, // 1000 - 17ff
@@ -59,7 +59,7 @@ static sal_Int8 CaseMappingIndex[] = {
 };
 
 
-static Value CaseMappingValue[] = {
+static const Value CaseMappingValue[] = {
     {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0000 - 0007
     {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0008 - 000f
     {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, {0x00, 0x0000}, // 0010 - 0017
diff --git a/i18nutil/source/utility/paper.cxx b/i18nutil/source/utility/paper.cxx
index 372990b..1a6c725 100644
--- a/i18nutil/source/utility/paper.cxx
+++ b/i18nutil/source/utility/paper.cxx
@@ -61,7 +61,7 @@ struct PageDesc
 //http://partners.adobe.com/public/developer/en/ps/5003.PPD_Spec_v4.3.pdf
 //http://www.y-adagio.com/public/committees/docsii/doc_00-49/symp_ulaan/china_ppr.pdf (Kai)
 //http://www.sls.psi.ch/controls/help/howto/Howto_Print_a_A0_Poster_at_WSLA_012_2.pdf (Dia)
-static PageDesc aDinTab[] =
+static const PageDesc aDinTab[] =
 {
     { MM2MM100( 841 ),   MM2MM100( 1189 ),   "A0",  NULL },
     { MM2MM100( 594 ),   MM2MM100( 841 ),    "A1",  NULL },
diff --git a/i18nutil/source/utility/unicode_data.h b/i18nutil/source/utility/unicode_data.h
index 231125c..e7a192f 100644
--- a/i18nutil/source/utility/unicode_data.h
+++ b/i18nutil/source/utility/unicode_data.h
@@ -25,7 +25,7 @@
 
 #define UnicodeTypeNumberBlock  5
 
-static sal_Int8 UnicodeTypeIndex[] = {
+static const sal_Int8 UnicodeTypeIndex[] = {
     0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, // 0000 - 07ff
     0x00, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, // 0800 - 0fff
     0x14, 0x15, 0x16, 0x17, 0x18, 0x01, 0x19, 0x1a, // 1000 - 17ff
@@ -61,12 +61,12 @@ static sal_Int8 UnicodeTypeIndex[] = {
 };
 
 
-static sal_Int8 UnicodeTypeBlockValue[] = {
+static const sal_Int8 UnicodeTypeBlockValue[] = {
      0,  5, 17, 18, 27,
 };
 
 
-static sal_Int8 UnicodeTypeValue[] = {
+static const sal_Int8 UnicodeTypeValue[] = {
     15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,// 0000 - 000f
     15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,// 0010 - 001f
     12,23,23,23,25,23,23,23,20,21,23,24,23,19,23,23,// 0020 - 002f
@@ -905,7 +905,7 @@ static sal_Int8 UnicodeTypeValue[] = {
 
 #define UnicodeDirectionNumberBlock  3
 
-static sal_Int8 UnicodeDirectionIndex[] = {
+static const sal_Int8 UnicodeDirectionIndex[] = {
     0x03, 0x00, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, // 0000 - 07ff
     0x00, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, // 0800 - 0fff
     0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x13, // 1000 - 17ff
@@ -941,12 +941,12 @@ static sal_Int8 UnicodeDirectionIndex[] = {
 };
 
 
-static sal_Int8 UnicodeDirectionBlockValue[] = {
+static const sal_Int8 UnicodeDirectionBlockValue[] = {
      0, 10, 13,
 };
 
 
-static sal_Int8 UnicodeDirectionValue[] = {
+static const sal_Int8 UnicodeDirectionValue[] = {
     18,18,18,18,18,18,18,18,18, 8, 7, 8, 9, 7,18,18,// 0000 - 000f
     18,18,18,18,18,18,18,18,18,18,18,18, 7, 7, 7, 8,// 0010 - 001f
      9,10,10, 4, 4, 4,10,10,10,10,10, 4, 6, 4, 6, 3,// 0020 - 002f
@@ -1548,7 +1548,7 @@ static sal_Int8 UnicodeDirectionValue[] = {
 #define UnicodeScriptTypeFrom    0
 #define UnicodeScriptTypeTo      1
 
-static sal_Unicode UnicodeScriptType[][2] = {
+static const sal_Unicode UnicodeScriptType[][2] = {
     {0x0000, 0x007f}, //  0. Basic Latin
     {0x0080, 0x00ff}, //  1. Latin-1 Supplement
     {0x0100, 0x017f}, //  2. Latin Extended-A


More information about the Libreoffice-commits mailing list