Commit 9d2bd87c authored by bnc's avatar bnc Committed by Commit bot

Use it=erase instead of old_it=it.

BUG=392576

Review URL: https://codereview.chromium.org/986413003

Cr-Commit-Position: refs/heads/master@{#319763}
parent 9685ef41
......@@ -53,10 +53,10 @@ void HttpServerPropertiesImpl::InitializeAlternateProtocolServers(
// Keep all the broken ones since those don't get persisted.
for (AlternateProtocolMap::iterator it = alternate_protocol_map_.begin();
it != alternate_protocol_map_.end();) {
AlternateProtocolMap::iterator old_it = it;
++it;
if (!old_it->second.is_broken) {
alternate_protocol_map_.Erase(old_it);
if (it->second.is_broken) {
++it;
} else {
it = alternate_protocol_map_.Erase(it);
}
}
......
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