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

Unified Diff: chrome/browser/autocomplete/shortcuts_provider.cc

Issue 9160032: [Coverity] Pass AutocompleteMatch to predicate as const-ref (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/shortcuts_provider.cc
diff --git a/chrome/browser/autocomplete/shortcuts_provider.cc b/chrome/browser/autocomplete/shortcuts_provider.cc
index 4629c77cd55700943aed3de7c88b81c2aec361f1..4e6ddafcd2b299249c963b38c5a0716cd0585e0f 100644
--- a/chrome/browser/autocomplete/shortcuts_provider.cc
+++ b/chrome/browser/autocomplete/shortcuts_provider.cc
@@ -40,7 +40,7 @@ class RemoveMatchPredicate {
explicit RemoveMatchPredicate(const std::set<GURL>& urls)
: urls_(urls) {
}
- bool operator()(AutocompleteMatch match) {
+ bool operator()(const AutocompleteMatch& match) {
return urls_.find(match.destination_url) != urls_.end();
}
private:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698