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

Unified Diff: components/password_manager/core/browser/password_store.cc

Issue 2110663002: components: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase+one fix Created 4 years, 5 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: components/password_manager/core/browser/password_store.cc
diff --git a/components/password_manager/core/browser/password_store.cc b/components/password_manager/core/browser/password_store.cc
index 111c8613ffd9e3bd593e4f79afc40d8f0ca38b70..3058ea62a392b6c6494b22c49687614dbaed428f 100644
--- a/components/password_manager/core/browser/password_store.cc
+++ b/components/password_manager/core/browser/password_store.cc
@@ -51,7 +51,7 @@ void PasswordStore::GetLoginsRequest::NotifyConsumerWithResults(
if (!ignore_logins_cutoff_.is_null()) {
ScopedVector<autofill::PasswordForm> remaining_logins;
remaining_logins.reserve(results.size());
- for (auto& login : results) {
+ for (auto*& login : results) {
if (login->date_created >= ignore_logins_cutoff_) {
remaining_logins.push_back(login);
login = nullptr;

Powered by Google App Engine
This is Rietveld 408576698