[Coverity] Pass AutocompleteMatch to predicate as const-ref

CID=100203
BUG=none
TEST=none


Review URL: http://codereview.chromium.org/9160032

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120725 0039d316-1c4b-4281-b951-d872f2087c98
parent 2d449b31
...@@ -40,7 +40,7 @@ class RemoveMatchPredicate { ...@@ -40,7 +40,7 @@ class RemoveMatchPredicate {
explicit RemoveMatchPredicate(const std::set<GURL>& urls) explicit RemoveMatchPredicate(const std::set<GURL>& urls)
: urls_(urls) { : urls_(urls) {
} }
bool operator()(AutocompleteMatch match) { bool operator()(const AutocompleteMatch& match) {
return urls_.find(match.destination_url) != urls_.end(); return urls_.find(match.destination_url) != urls_.end();
} }
private: private:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment