summaryrefslogtreecommitdiffstats
path: root/base/tracked_objects.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/tracked_objects.cc')
-rw-r--r--base/tracked_objects.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/tracked_objects.cc b/base/tracked_objects.cc
index a97f014..1e7d293 100644
--- a/base/tracked_objects.cc
+++ b/base/tracked_objects.cc
@@ -765,7 +765,7 @@ bool Comparator::Acceptable(const Snapshot& sample) const {
return true;
}
-void Comparator::SetTiebreaker(Selector selector, const std::string required) {
+void Comparator::SetTiebreaker(Selector selector, const std::string& required) {
if (selector == selector_ || NIL == selector)
return;
combined_selectors_ |= selector;
@@ -804,7 +804,7 @@ void Comparator::SetSubgroupTiebreaker(Selector selector) {
}
}
-void Comparator::ParseKeyphrase(const std::string key_phrase) {
+void Comparator::ParseKeyphrase(const std::string& key_phrase) {
static std::map<const std::string, Selector> key_map;
static bool initialized = false;
if (!initialized) {
@@ -829,7 +829,7 @@ void Comparator::ParseKeyphrase(const std::string key_phrase) {
SetTiebreaker(key_map[keyword], required);
}
-bool Comparator::ParseQuery(const std::string query) {
+bool Comparator::ParseQuery(const std::string& query) {
for (size_t i = 0; i < query.size();) {
size_t slash_offset = query.find('/', i);
ParseKeyphrase(query.substr(i, slash_offset - i));