Iterator to use size_t

This commit is contained in:
Brian R. Bondy 2016-04-27 14:43:50 -04:00 committed by Cheng Zhao
parent 8a2aebd03f
commit ff91aeb5d4
2 changed files with 2 additions and 2 deletions

View file

@ -144,7 +144,7 @@ struct Converter<net::HttpResponseHeaders*> {
net::HttpResponseHeaders* headers) { net::HttpResponseHeaders* headers) {
base::DictionaryValue response_headers; base::DictionaryValue response_headers;
if (headers) { if (headers) {
void* iter = nullptr; size_t iter = 0;
std::string key; std::string key;
std::string value; std::string value;
while (headers->EnumerateHeaderLines(&iter, &key, &value)) { while (headers->EnumerateHeaderLines(&iter, &key, &value)) {

View file

@ -100,7 +100,7 @@ void ToDictionary(base::DictionaryValue* details,
return; return;
scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue); scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue);
void* iter = nullptr; size_t iter = 0;
std::string key; std::string key;
std::string value; std::string value;
while (headers->EnumerateHeaderLines(&iter, &key, &value)) { while (headers->EnumerateHeaderLines(&iter, &key, &value)) {