diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2013-08-05 17:17:28 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2013-08-05 17:18:47 +0900 |
commit | c2c664a741609eb0b09071642d58b5d66dd62401 (patch) | |
tree | 45d96c5721eff2f9addf9f387e300f9583f7db8b /hwpfilter/source/hwpeq.cxx | |
parent | 95d1b05430d0d6384c6910fa9dfdd3c703201d34 (diff) |
Mark as const
Change-Id: I10bd1e46dcd8f990d9dea4b96a82f0b1e5a33764
Diffstat (limited to 'hwpfilter/source/hwpeq.cxx')
-rw-r--r-- | hwpfilter/source/hwpeq.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/hwpfilter/source/hwpeq.cxx b/hwpfilter/source/hwpeq.cxx index 4dd732cf770f..68d18933359f 100644 --- a/hwpfilter/source/hwpeq.cxx +++ b/hwpfilter/source/hwpeq.cxx @@ -67,7 +67,7 @@ struct hwpeq { unsigned char flag; // case sensitive? }; -static hwpeq eq_tbl[] = { +static const hwpeq eq_tbl[] = { { "!=", "\\equiv ", 0, 0 }, { "#", "\\\\", 0, 0 }, { "+-", "\\pm ", 0, 0 }, @@ -380,11 +380,11 @@ static hwpeq eq_tbl[] = { { "zeta", NULL, 0, EQ_CASE } }; -static hwpeq *lookup_eqn(char *str) +static const hwpeq *lookup_eqn(char *str) { - static int eqCount = SAL_N_ELEMENTS(eq_tbl); + static const int eqCount = SAL_N_ELEMENTS(eq_tbl); int m, k, l = 0, r = eqCount; - hwpeq *result = 0; + const hwpeq *result = 0; while( l < r ) { m = (l + r) / 2; @@ -568,7 +568,7 @@ static int eq_word(MzString& outs, istream *strm, int status) MzString token, white, state; int result; char keyword[256]; - hwpeq *eq; + const hwpeq *eq; next_token(white, token, strm); if (token.length() <= 0) @@ -665,7 +665,7 @@ static char eq2ltxconv(MzString& sstr, istream *strm, const char *sentinel) MzString white, token; char key[256]; int ch, result; - hwpeq *eq = 0; + const hwpeq *eq = 0; while( 0 != (result = next_token(white, token, strm)) ) { if( sentinel && (result == 1) && strchr(sentinel, token[0]) ) |