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

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

Issue 113403006: Update some uses of char16 to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/renderer/spellchecker/spellcheck.h ('k') | chrome/renderer/spellchecker/spellcheck_language.h » ('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 b08dfeed1170849f5f2468acdfbc6a65260fe514..51c0ba9414524e0a6ca13b65781c6f902fc073d3 100644
--- a/chrome/renderer/spellchecker/spellcheck.cc
+++ b/chrome/renderer/spellchecker/spellcheck.cc
@@ -175,7 +175,7 @@ void SpellCheck::Init(base::PlatformFile file,
}
bool SpellCheck::SpellCheckWord(
- const char16* in_word,
+ const base::char16* in_word,
int in_word_len,
int tag,
int* misspelling_start,
@@ -258,9 +258,9 @@ base::string16 SpellCheck::GetAutoCorrectionWord(const base::string16& word,
if (InitializeIfNeeded())
return autocorrect_word;
- char16 misspelled_word[
+ base::char16 misspelled_word[
chrome::spellcheck_common::kMaxAutoCorrectWordSize + 1];
- const char16* word_char = word.c_str();
+ const base::char16* word_char = word.c_str();
for (int i = 0; i <= chrome::spellcheck_common::kMaxAutoCorrectWordSize;
++i) {
if (i >= word_length)
@@ -354,7 +354,7 @@ void SpellCheck::CreateTextCheckingResults(
// Double-check misspelled words with our spellchecker and attach grammar
// markers to them if our spellchecker tells they are correct words, i.e. they
// are probably contextually-misspelled words.
- const char16* text = line_text.c_str();
+ const base::char16* text = line_text.c_str();
std::vector<WebTextCheckingResult> list;
for (size_t i = 0; i < spellcheck_results.size(); ++i) {
SpellCheckResult::Decoration decoration = spellcheck_results[i].decoration;
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck.h ('k') | chrome/renderer/spellchecker/spellcheck_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698