commit | 4c481a4245aebe6821914237249f11d03e687bf9 | [log] [tgz] |
---|---|---|
author | Andreas Gampe <agampe@google.com> | Thu Nov 03 08:21:59 2016 -0700 |
committer | Andreas Gampe <agampe@google.com> | Thu Nov 03 11:16:36 2016 -0700 |
tree | 87ef976688f64b28ba132c98c03e1bfef7e5fc94 | |
parent | 44fd235d1babc62725f09b042e629352f463199f [diff] [blame] |
ART: Make some variables references Avoid copying values. Bug: 32619234 Test: m Change-Id: I86bc206d6f6fccdf730c62c60317a7a4ae26c11b
diff --git a/runtime/gc/space/image_space.cc b/runtime/gc/space/image_space.cc index 118daac..0b602e9 100644 --- a/runtime/gc/space/image_space.cc +++ b/runtime/gc/space/image_space.cc
@@ -1606,7 +1606,7 @@ std::ostringstream oss; bool first = true; - for (auto msg : error_msgs) { + for (const auto& msg : error_msgs) { if (!first) { oss << "\n "; }