summaryrefslogtreecommitdiff
path: root/hwpfilter
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 /hwpfilter
parent40c5338fdd817878d9dd6240f7f3629b413120a5 (diff)
Mark as const
Change-Id: Ib78b25641ae20a3eb23545649f08b963e34c74ff
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hcode.cxx2
-rw-r--r--hwpfilter/source/mapping.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/hwpfilter/source/hcode.cxx b/hwpfilter/source/hcode.cxx
index 396008cbe82e..accf2aa4997c 100644
--- a/hwpfilter/source/hcode.cxx
+++ b/hwpfilter/source/hcode.cxx
@@ -388,7 +388,7 @@ static unsigned hhtg_tg[] =
// ?
static char LineCharDir(hchar ch)
{
- static char index2dir[] = { 10, 11, 9, 14, 15, 13, 6, 7, 5, 3, 12 };
+ static const char index2dir[] = { 10, 11, 9, 14, 15, 13, 6, 7, 5, 3, 12 };
return (LINEBASE <= ch && ch < LINEBASE + 11 * 7) ?
index2dir[(ch - LINEBASE) % 11] : 0;
diff --git a/hwpfilter/source/mapping.h b/hwpfilter/source/mapping.h
index e7f6c3285fbc..48ee0b081e92 100644
--- a/hwpfilter/source/mapping.h
+++ b/hwpfilter/source/mapping.h
@@ -363,7 +363,7 @@ const struct FormulaEntry FormulaMapTab[] = {
#ifndef DEBUG
hchar_string getMathMLEntity(const char *tex)
{
- static size_t tabSize = sizeof(FormulaMapTab) / sizeof(FormulaMapTab[0]);
+ static const size_t tabSize = sizeof(FormulaMapTab) / sizeof(FormulaMapTab[0]);
hchar_string buf;
for (size_t i = 0 ; i < tabSize ; i++) {