Commit 30f8bc10 authored by Franziska Hinkelmann's avatar Franziska Hinkelmann Committed by Commit Bot

[cleanup] Simplify loop over map

Change-Id: Ibda6dc025e9a1584480154fba63ecf3c7b51394b
Reviewed-on: https://chromium-review.googlesource.com/897765Reviewed-by: 's avatarPeter Marshall <petermarshall@chromium.org>
Commit-Queue: Franziska Hinkelmann <franzih@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51068}
parent 02cf73cc
...@@ -524,9 +524,9 @@ void CodeMap::MoveCode(Address from, Address to) { ...@@ -524,9 +524,9 @@ void CodeMap::MoveCode(Address from, Address to) {
} }
void CodeMap::Print() { void CodeMap::Print() {
for (auto it = code_map_.begin(); it != code_map_.end(); ++it) { for (const auto& pair : code_map_) {
base::OS::Print("%p %5d %s\n", static_cast<void*>(it->first), base::OS::Print("%p %5d %s\n", static_cast<void*>(pair.first),
it->second.size, it->second.entry->name()); pair.second.size, pair.second.entry->name());
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment