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

Unified Diff: chrome/browser/webdata/autofill_change.h

Issue 9006038: [Coverity] Change some pass by values to pass by const refs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removing const ref from enums Created 9 years 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 | chrome/browser/webdata/autofill_change.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/webdata/autofill_change.h
diff --git a/chrome/browser/webdata/autofill_change.h b/chrome/browser/webdata/autofill_change.h
index 297a6a79f678812ee2cb1124829a5fa4cf1ce9e5..079a94a3218e65685106b4d4826df15e991b2baa 100644
--- a/chrome/browser/webdata/autofill_change.h
+++ b/chrome/browser/webdata/autofill_change.h
@@ -54,7 +54,7 @@ class AutofillProfileChange : public GenericAutofillChange<std::string> {
// When |type| == UPDATE, |profile| should be non-NULL.
// When |type| == REMOVE, |profile| should be NULL.
AutofillProfileChange(Type type,
- std::string key,
+ const std::string& key,
const AutofillProfile* profile);
virtual ~AutofillProfileChange();
@@ -75,7 +75,7 @@ class AutofillCreditCardChange : public GenericAutofillChange<std::string> {
// When |type| == UPDATE, |credit_card| should be non-NULL.
// When |type| == REMOVE, |credit_card| should be NULL.
AutofillCreditCardChange(Type type,
- std::string key,
+ const std::string& key,
const CreditCard* credit_card);
virtual ~AutofillCreditCardChange();
« no previous file with comments | « no previous file | chrome/browser/webdata/autofill_change.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698