Index: base/trace_event/trace_event_argument.cc |
diff --git a/base/trace_event/trace_event_argument.cc b/base/trace_event/trace_event_argument.cc |
index 8babf3b47faa882a89893479c8594f86e66e518b..4067536d71b40930a1d4c96f021c1d6d6f81934e 100644 |
--- a/base/trace_event/trace_event_argument.cc |
+++ b/base/trace_event/trace_event_argument.cc |
@@ -288,7 +288,7 @@ void TracedValue::SetBaseValueWithCopiedName(base::StringPiece name, |
const ListValue* list_value; |
value.GetAsList(&list_value); |
BeginArrayWithCopiedName(name); |
- for (base::Value* base_value : *list_value) |
+ for (const auto& base_value : *list_value) |
AppendBaseValue(*base_value); |
EndArray(); |
} break; |
@@ -342,7 +342,7 @@ void TracedValue::AppendBaseValue(const base::Value& value) { |
const ListValue* list_value; |
value.GetAsList(&list_value); |
BeginArray(); |
- for (base::Value* base_value : *list_value) |
+ for (const auto& base_value : *list_value) |
AppendBaseValue(*base_value); |
EndArray(); |
} break; |