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

Unified Diff: chrome/renderer/spellchecker/spellcheck.cc

Issue 10823011: Reapply Justin's spellchecker patch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/spellchecker/spellcheck.cc
===================================================================
--- chrome/renderer/spellchecker/spellcheck.cc (revision 148264)
+++ chrome/renderer/spellchecker/spellcheck.cc (working copy)
@@ -350,7 +350,7 @@
}
void SpellCheck::AddWordToHunspell(const std::string& word) {
- if (!word.empty() && word.length() < MAXWORDUTF8LEN)
+ if (!word.empty() && word.length() < MAXWORDLEN)
hunspell_->add(word.c_str());
}
@@ -386,7 +386,7 @@
} else {
std::string word_to_check_utf8(UTF16ToUTF8(word_to_check));
// Hunspell shouldn't let us exceed its max, but check just in case
- if (word_to_check_utf8.length() < MAXWORDUTF8LEN) {
+ if (word_to_check_utf8.length() < MAXWORDLEN) {
if (hunspell_.get()) {
// |hunspell_->spell| returns 0 if the word is spelled correctly and
// non-zero otherwsie.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698