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

Unified Diff: net/quic/crypto/strike_register.cc

Issue 941933002: win vs2015: fix variable shadowing warnings in net/quic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config.cc ('k') | net/quic/quic_framer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/strike_register.cc
diff --git a/net/quic/crypto/strike_register.cc b/net/quic/crypto/strike_register.cc
index c36d3701ae48d10558f7b340232f1d0c201fbb37..702db7e9b46a22f467d56a23d7fbfcc23ea00c58 100644
--- a/net/quic/crypto/strike_register.cc
+++ b/net/quic/crypto/strike_register.cc
@@ -495,14 +495,14 @@ void StrikeRegister::ValidateTree(
CHECK_EQ(used_external_nodes->count(ext), 0u);
used_external_nodes->insert(ext);
const uint8* bytes = external_node(ext);
- for (vector<pair<unsigned, bool> >::const_iterator i = bits.begin();
- i != bits.end(); i++) {
- unsigned byte = i->first / 8;
+ for (vector<pair<unsigned, bool>>::const_iterator j = bits.begin();
+ j != bits.end(); j++) {
+ unsigned byte = j->first / 8;
DCHECK_LE(byte, 0xffu);
- unsigned bit = i->first % 8;
+ bit = j->first % 8;
ramant (doing other things) 2015/02/20 20:04:07 IMO, we should define a "unsigned bit_new = ..." a
scottmg 2015/02/20 20:30:51 Shoot, I didn't notice it might be used in the els
static const uint8 kMasks[8] =
{0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01};
- CHECK_EQ((bytes[byte] & kMasks[bit]) != 0, i->second);
+ CHECK_EQ((bytes[byte] & kMasks[bit]) != 0, j->second);
}
} else {
uint32 inter = i->child(child);
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config.cc ('k') | net/quic/quic_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698