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

Unified Diff: src/hunspell/hashmgr.cxx

Issue 193073: Move StringPiece into the base namespace. This change... (Closed) Base URL: svn://chrome-svn.jail/chrome/trunk/deps/third_party/hunspell128/
Patch Set: Created 11 years, 3 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 | « src/hunspell/hashmgr.hxx ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hunspell/hashmgr.cxx
===================================================================
--- src/hunspell/hashmgr.cxx (revision 25668)
+++ src/hunspell/hashmgr.cxx (working copy)
@@ -152,7 +152,7 @@
int affix_ids[hunspell::BDict::MAX_AFFIXES_PER_WORD];
int affix_count = bdict_reader->FindWord(word, affix_ids);
if (affix_count == 0) { // look for custom added word
- std::map<StringPiece, int>::const_iterator iter =
+ std::map<base::StringPiece, int>::const_iterator iter =
custom_word_to_affix_id_map_.find(word);
if (iter != custom_word_to_affix_id_map_.end()) {
affix_count = 1;
@@ -276,12 +276,12 @@
free(hp);
}
#else
- std::map<StringPiece, int>::iterator iter =
+ std::map<base::StringPiece, int>::iterator iter =
custom_word_to_affix_id_map_.find(word);
if(iter == custom_word_to_affix_id_map_.end()) { // word needs to be added
std::string* new_string_word = new std::string(word);
pointer_to_strings_.push_back(new_string_word);
- StringPiece sp(*(new_string_word));
+ base::StringPiece sp(*(new_string_word));
custom_word_to_affix_id_map_[sp] = 0; // no affixes for custom words
return 1;
}
« no previous file with comments | « src/hunspell/hashmgr.hxx ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698