mirror of
https://github.com/electron/electron.git
synced 2026-01-24 14:57:58 -05:00
Iterator to use size_t
This commit is contained in:
committed by
Cheng Zhao
parent
8a2aebd03f
commit
ff91aeb5d4
@@ -144,7 +144,7 @@ struct Converter<net::HttpResponseHeaders*> {
|
||||
net::HttpResponseHeaders* headers) {
|
||||
base::DictionaryValue response_headers;
|
||||
if (headers) {
|
||||
void* iter = nullptr;
|
||||
size_t iter = 0;
|
||||
std::string key;
|
||||
std::string value;
|
||||
while (headers->EnumerateHeaderLines(&iter, &key, &value)) {
|
||||
|
||||
@@ -100,7 +100,7 @@ void ToDictionary(base::DictionaryValue* details,
|
||||
return;
|
||||
|
||||
scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue);
|
||||
void* iter = nullptr;
|
||||
size_t iter = 0;
|
||||
std::string key;
|
||||
std::string value;
|
||||
while (headers->EnumerateHeaderLines(&iter, &key, &value)) {
|
||||
|
||||
Reference in New Issue
Block a user