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/spellchecker.cc | |
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/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 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 = |