summaryrefslogtreecommitdiff
path: root/i18nutil
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2013-07-29 17:38:09 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2013-07-29 17:39:30 +0900
commit57931a7cf76a6f5b323e178d3cade25d98e12096 (patch)
treee2ef8f2fbd1de13b93388f8746238a4278706bc0 /i18nutil
parent40c5338fdd817878d9dd6240f7f3629b413120a5 (diff)
Mark as const
Change-Id: Ib78b25641ae20a3eb23545649f08b963e34c74ff
Diffstat (limited to 'i18nutil')
-rw-r--r--i18nutil/source/utility/paper.cxx2
-rw-r--r--i18nutil/source/utility/unicode.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/i18nutil/source/utility/paper.cxx b/i18nutil/source/utility/paper.cxx
index 5199b0712eea..372990b5fe6b 100644
--- a/i18nutil/source/utility/paper.cxx
+++ b/i18nutil/source/utility/paper.cxx
@@ -235,7 +235,7 @@ PaperInfo PaperInfo::getSystemDefaultPaper()
{
OString aPaper(pBuffer);
aPaper = aPaper.trim();
- static struct { const char *pName; Paper ePaper; } aCustoms [] =
+ static const struct { const char *pName; Paper ePaper; } aCustoms [] =
{
{ "B0", PAPER_B0_ISO },
{ "B1", PAPER_B1_ISO },
diff --git a/i18nutil/source/utility/unicode.cxx b/i18nutil/source/utility/unicode.cxx
index b46a7f61b2c0..dcefa791f274 100644
--- a/i18nutil/source/utility/unicode.cxx
+++ b/i18nutil/source/utility/unicode.cxx
@@ -392,7 +392,7 @@ sal_Bool SAL_CALL unicode::isWhiteSpace( const sal_Unicode ch) {
sal_Int16 SAL_CALL unicode::getScriptClassFromUScriptCode(UScriptCode eScript)
{
//See unicode/uscript.h
- static sal_Int16 scriptTypes[] =
+ static const sal_Int16 scriptTypes[] =
{
ScriptType::WEAK, ScriptType::WEAK, ScriptType::COMPLEX, ScriptType::LATIN, ScriptType::COMPLEX,
ScriptType::ASIAN, ScriptType::LATIN, ScriptType::LATIN, ScriptType::LATIN, ScriptType::COMPLEX,