diff options
author | mhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-03 18:13:58 +0000 |
---|---|---|
committer | mhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-03 18:13:58 +0000 |
commit | b614cbb088107996d8e56d30cdecefca9f14d5b6 (patch) | |
tree | 47c38ae97993d4ab786e916844d20ece42f75b01 /chrome/browser | |
parent | 951073ea674d8436fbcfbd6a0310fe20fb2e6a4a (diff) | |
download | chromium_src-b614cbb088107996d8e56d30cdecefca9f14d5b6.zip chromium_src-b614cbb088107996d8e56d30cdecefca9f14d5b6.tar.gz chromium_src-b614cbb088107996d8e56d30cdecefca9f14d5b6.tar.bz2 |
Reverting hunspell upgrade 22263,22257,22252,22243. Causing many valgrind warnings.
TBR: brettw, dank, jshin
Review URL: http://codereview.chromium.org/159797
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22287 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/spellcheck_unittest.cc | 6 | ||||
-rw-r--r-- | chrome/browser/spellchecker.cc | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/spellcheck_unittest.cc b/chrome/browser/spellcheck_unittest.cc index 1d51b5b..86eadff 100644 --- a/chrome/browser/spellcheck_unittest.cc +++ b/chrome/browser/spellcheck_unittest.cc @@ -607,11 +607,11 @@ TEST_F(SpellCheckTest, SpellCheckSuggestions_EN_US) { {L"wate", false, 0, 0, L"water"}, {L"wate", false, 0, 0, L"waste"}, {L"wate", false, 0, 0, L"sate"}, - {L"wate", false, 0, 0, L"ate"}, + {L"wate", false, 0, 0, L"rate"}, {L"jum", false, 0, 0, L"jump"}, - {L"jum", false, 0, 0, L"hum"}, + {L"jum", false, 0, 0, L"rum"}, {L"jum", false, 0, 0, L"sum"}, - {L"jum", false, 0, 0, L"um"}, + {L"jum", false, 0, 0, L"tum"}, #endif //!OS_MACOSX // TODO (Sidchat): add many more examples. }; diff --git a/chrome/browser/spellchecker.cc b/chrome/browser/spellchecker.cc index f7635b6..f3bb9d3 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_->add(it->c_str()); + hunspell_->put_word(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_->add(word_to_add.c_str()); + hunspell_->put_word(word_to_add.c_str()); // Now add the word to the custom dictionary file. Task* write_word_task = |