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

Unified Diff: chrome/browser/history/query_parser.cc

Issue 7008005: base/i18n: Pass |str| as const reference in BreakIterator::Init(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: const reference Created 9 years, 7 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
Index: chrome/browser/history/query_parser.cc
diff --git a/chrome/browser/history/query_parser.cc b/chrome/browser/history/query_parser.cc
index 21ef90b6135d4cf6ceb8b12f84352e4534e9f51c..d507bd1c6d6c7d272fcf8b8dcf52334ff37bb8fe 100644
--- a/chrome/browser/history/query_parser.cc
+++ b/chrome/browser/history/query_parser.cc
@@ -354,7 +354,7 @@ bool QueryParser::DoesQueryMatch(const string16& text,
}
bool QueryParser::ParseQueryImpl(const string16& query, QueryNodeList* root) {
- base::i18n::BreakIterator iter(&query, base::i18n::BreakIterator::BREAK_WORD);
+ base::i18n::BreakIterator iter(query, base::i18n::BreakIterator::BREAK_WORD);
// TODO(evanm): support a locale here
if (!iter.Init())
return false;
@@ -395,7 +395,7 @@ bool QueryParser::ParseQueryImpl(const string16& query, QueryNodeList* root) {
void QueryParser::ExtractQueryWords(const string16& text,
std::vector<QueryWord>* words) {
- base::i18n::BreakIterator iter(&text, base::i18n::BreakIterator::BREAK_WORD);
+ base::i18n::BreakIterator iter(text, base::i18n::BreakIterator::BREAK_WORD);
// TODO(evanm): support a locale here
if (!iter.Init())
return;
« no previous file with comments | « chrome/browser/history/in_memory_url_index.cc ('k') | chrome/browser/ui/views/download/download_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698