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

Unified Diff: chrome/browser/spellchecker.cc

Issue 155841: Update Hunspell to the latest stable version to use the latest dictionary for... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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') | chrome/third_party/hunspell/README.chromium » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/spellchecker.cc
===================================================================
--- chrome/browser/spellchecker.cc (revision 21721)
+++ chrome/browser/spellchecker.cc (working copy)
@@ -613,7 +613,7 @@
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 @@
// 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') | chrome/third_party/hunspell/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698