diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2013-08-12 09:16:31 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2013-08-12 09:23:52 +0900 |
commit | 12b1d1cda3332a09476f703629fef372c2b06b2a (patch) | |
tree | 8846f4bf1c7d60069e3ed79e22ade2c1aeed5f3f /linguistic/source | |
parent | cc569401a45e7977aed2aa169b2e2c86d2f06da4 (diff) |
Mark as const
Change-Id: I9277052ee9c6197cef7a46bd8f3ab9c5515c2502
Diffstat (limited to 'linguistic/source')
-rw-r--r-- | linguistic/source/gciterator.cxx | 4 | ||||
-rw-r--r-- | linguistic/source/lngprophelp.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx index d701126f5c2c..d7382e3c0325 100644 --- a/linguistic/source/gciterator.cxx +++ b/linguistic/source/gciterator.cxx @@ -76,7 +76,7 @@ static uno::Sequence< OUString > GrammarCheckingIterator_getSupportedServiceName // white space list: obtained from the fonts.config.txt of a Linux system. -static sal_Unicode aWhiteSpaces[] = +static const sal_Unicode aWhiteSpaces[] = { 0x0020, /* SPACE */ 0x00a0, /* NO-BREAK SPACE */ @@ -128,7 +128,7 @@ static sal_Unicode aWhiteSpaces[] = 0xfffb /* INTERLINEAR ANNOTATION TERMINATOR */ }; -static int nWhiteSpaces = sizeof( aWhiteSpaces ) / sizeof( aWhiteSpaces[0] ); +static const int nWhiteSpaces = sizeof( aWhiteSpaces ) / sizeof( aWhiteSpaces[0] ); static bool lcl_IsWhiteSpace( sal_Unicode cChar ) { diff --git a/linguistic/source/lngprophelp.cxx b/linguistic/source/lngprophelp.cxx index 79db0f0affa3..bf0125ec2be1 100644 --- a/linguistic/source/lngprophelp.cxx +++ b/linguistic/source/lngprophelp.cxx @@ -51,7 +51,7 @@ static const char *aCH[] = UPN_IS_USE_DICTIONARY_LIST, }; -static int nCHCount = sizeof(aCH) / sizeof(aCH[0]); +static const int nCHCount = sizeof(aCH) / sizeof(aCH[0]); PropertyChgHelper::PropertyChgHelper( |