diff options
-rw-r--r-- | chrome/third_party/hunspell/src/parsers/textparser.cxx | 6 | ||||
-rw-r--r-- | chrome/third_party/hunspell/src/parsers/textparser.hxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/chrome/third_party/hunspell/src/parsers/textparser.cxx b/chrome/third_party/hunspell/src/parsers/textparser.cxx index 97037b4..9cc4ebf 100644 --- a/chrome/third_party/hunspell/src/parsers/textparser.cxx +++ b/chrome/third_party/hunspell/src/parsers/textparser.cxx @@ -12,7 +12,7 @@ using namespace std; // ISO-8859-1 HTML character entities -static char * LATIN1[] = { +static const char * LATIN1[] = { "À", "Ã", "Å", @@ -78,7 +78,7 @@ int TextParser::is_wordchar(char * w) } } -char * TextParser::get_latin1(char * s) +const char * TextParser::get_latin1(char * s) { if (s[0] == '&') { unsigned int i = 0; @@ -155,7 +155,7 @@ char * TextParser::get_line() char * TextParser::next_token() { - char * latin1; + const char * latin1; for (;;) { switch (state) diff --git a/chrome/third_party/hunspell/src/parsers/textparser.hxx b/chrome/third_party/hunspell/src/parsers/textparser.hxx index 1049d86..54e8af9 100644 --- a/chrome/third_party/hunspell/src/parsers/textparser.hxx +++ b/chrome/third_party/hunspell/src/parsers/textparser.hxx @@ -51,7 +51,7 @@ public: int change_token(const char * word); int get_tokenpos(); int is_wordchar(char * w); - char * get_latin1(char * s); + const char * get_latin1(char * s); char * next_char(); }; |