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

Unified Diff: components/update_client/update_response.cc

Issue 2691393002: Fix auto raw pointer deduction on linux (Closed)
Patch Set: update Created 3 years, 10 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/update_client/update_response.cc
diff --git a/components/update_client/update_response.cc b/components/update_client/update_response.cc
index 41670d317de9ff25162350fc280a42caa360b4f3..ef1aa2af693f709b44b97337f0fdbabfabb9c551 100644
--- a/components/update_client/update_response.cc
+++ b/components/update_client/update_response.cc
@@ -291,7 +291,7 @@ bool ParseAppTag(xmlNode* app,
static const char* attrs[] = {UpdateResponse::Result::kCohort,
UpdateResponse::Result::kCohortHint,
UpdateResponse::Result::kCohortName};
- for (const auto& attr : attrs) {
+ for (auto* attr : attrs) {
auto value = GetAttributePtr(app, attr);
if (value)
result->cohort_attrs.insert({attr, *value});

Powered by Google App Engine
This is Rietveld 408576698