Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4514)

Unified Diff: chrome/browser/spellchecker.cc

Issue 176046: Update hunspell DEPS to 1.2.8 (Closed)
Patch Set: Update to newer DEPS Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/spellcheck_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/spellchecker.cc
diff --git a/chrome/browser/spellchecker.cc b/chrome/browser/spellchecker.cc
index b8bcc7fb0d6e3c29d27676cb1643c3cdfd481829..b6e43fb0474df7209f55356c458d5a123fe5a422 100644
--- a/chrome/browser/spellchecker.cc
+++ b/chrome/browser/spellchecker.cc
@@ -595,7 +595,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());
}
}
}
@@ -728,7 +728,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 =
« no previous file with comments | « chrome/browser/spellcheck_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698