diff options
author | mhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-01 02:31:34 +0000 |
---|---|---|
committer | mhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-01 02:31:34 +0000 |
commit | 963f23274defde0c604f7643616a10f0215e1fe0 (patch) | |
tree | 04ffcc9faaedd37a9b273f38fba4c78e047f8a63 /chrome/browser/spellchecker.cc | |
parent | 877591d6f4d26e8725ab72f3bce38819d1640bf4 (diff) | |
download | chromium_src-963f23274defde0c604f7643616a10f0215e1fe0.zip chromium_src-963f23274defde0c604f7643616a10f0215e1fe0.tar.gz chromium_src-963f23274defde0c604f7643616a10f0215e1fe0.tar.bz2 |
Update Hunspell to the latest stable version to use the latest bdict format.
Updated Hunspell to version 1.2.8 which properly deals with UTF8 and fixes many bugs. This CL will use the BDict format and remove the usage of FileMgr. Removed the unwanted "key" parameter constructors from hunspell since we are managing them through bdict. Removed all line numbers from the errors since we don't support that.
BUG= 14756 (http://crbug.com/14756)
TEST= Compiled Hunspell, Compiled Chromium, Ran Chromium, Fixed some of my spelling mistakes. Ran unit tests for SpellCheckTest.*
Review URL: http://codereview.chromium.org/155841
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22243 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/spellchecker.cc')
-rw-r--r-- | chrome/browser/spellchecker.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/spellchecker.cc b/chrome/browser/spellchecker.cc index f3bb9d3..f7635b6 100644 --- a/chrome/browser/spellchecker.cc +++ b/chrome/browser/spellchecker.cc @@ -613,7 +613,7 @@ void SpellChecker::AddCustomWordsToHunspell() { if (hunspell_.get()) { for (std::vector<std::string>::iterator it = list_of_words.begin(); it != list_of_words.end(); ++it) { - hunspell_->put_word(it->c_str()); + hunspell_->add(it->c_str()); } } } @@ -744,7 +744,7 @@ void SpellChecker::AddWord(const std::wstring& word) { // Add the word to hunspell. std::string word_to_add = WideToUTF8(word); if (!word_to_add.empty()) - hunspell_->put_word(word_to_add.c_str()); + hunspell_->add(word_to_add.c_str()); // Now add the word to the custom dictionary file. Task* write_word_task = |