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

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

Issue 10573017: Rename SpellCheckCommon namespace to chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years, 6 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/common/spellcheck_common.cc ('k') | chrome/renderer/spellchecker/spellcheck_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/spellchecker/spellcheck.cc
diff --git a/chrome/renderer/spellchecker/spellcheck.cc b/chrome/renderer/spellchecker/spellcheck.cc
index 4bfa5853e15e7b2b8d555339f179ef1e0757ff41..57de752c6cdf57a5fb7059528424973df69e5237 100644
--- a/chrome/renderer/spellchecker/spellcheck.cc
+++ b/chrome/renderer/spellchecker/spellcheck.cc
@@ -245,15 +245,18 @@ string16 SpellCheck::GetAutoCorrectionWord(const string16& word, int tag) {
return autocorrect_word; // Return the empty string.
int word_length = static_cast<int>(word.size());
- if (word_length < 2 || word_length > SpellCheckCommon::kMaxAutoCorrectWordSize)
+ if (word_length < 2 ||
+ word_length > chrome::spellcheck_common::kMaxAutoCorrectWordSize)
return autocorrect_word;
if (InitializeIfNeeded())
return autocorrect_word;
- char16 misspelled_word[SpellCheckCommon::kMaxAutoCorrectWordSize + 1];
+ char16 misspelled_word[
+ chrome::spellcheck_common::kMaxAutoCorrectWordSize + 1];
const char16* word_char = word.c_str();
- for (int i = 0; i <= SpellCheckCommon::kMaxAutoCorrectWordSize; i++) {
+ for (int i = 0; i <= chrome::spellcheck_common::kMaxAutoCorrectWordSize;
+ ++i) {
if (i >= word_length)
misspelled_word[i] = 0;
else
@@ -453,8 +456,8 @@ void SpellCheck::FillSuggestionList(
hunspell_->suggest(&suggestions, UTF16ToUTF8(wrong_word).c_str());
// Populate the vector of WideStrings.
- for (int i = 0; i < number_of_suggestions; i++) {
- if (i < SpellCheckCommon::kMaxSuggestions)
+ for (int i = 0; i < number_of_suggestions; ++i) {
+ if (i < chrome::spellcheck_common::kMaxSuggestions)
optional_suggestions->push_back(UTF8ToUTF16(suggestions[i]));
free(suggestions[i]);
}
« no previous file with comments | « chrome/common/spellcheck_common.cc ('k') | chrome/renderer/spellchecker/spellcheck_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698