diff options
author | mhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-19 21:30:34 +0000 |
---|---|---|
committer | mhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-19 21:30:34 +0000 |
commit | b0d0ef1acacb3545aab2fd6e5ac94fd2eba206b4 (patch) | |
tree | 36d5c3ff318d00babc2db6b7f85a8bfb942583e5 /chrome/third_party | |
parent | 758e8cf69b071869e53cf50c350e35ab3b6fbc2d (diff) | |
download | chromium_src-b0d0ef1acacb3545aab2fd6e5ac94fd2eba206b4.zip chromium_src-b0d0ef1acacb3545aab2fd6e5ac94fd2eba206b4.tar.gz chromium_src-b0d0ef1acacb3545aab2fd6e5ac94fd2eba206b4.tar.bz2 |
Fix up warnings when compiling hunspell on the Mac.
It was upset about assigning const char* to char *.
Original patch by dmaclach@gmail.com
Original review http://codereview.chromium.org/173046
R=me
BUG=19679
TEST=none
Review URL: http://codereview.chromium.org/173084
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23749 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/third_party')
-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(); }; |