Chromium Code Reviews| Index: net/base/address_list.cc |
| diff --git a/net/base/address_list.cc b/net/base/address_list.cc |
| index 02a762bf76a4062ef6bdaeda50150b544e59e60b..78906fceac5332305f0204494c8dd262bf916da8 100644 |
| --- a/net/base/address_list.cc |
| +++ b/net/base/address_list.cc |
| @@ -20,7 +20,8 @@ base::Value* NetLogAddressListCallback(const AddressList* address_list, |
| base::ListValue* list = new base::ListValue(); |
| for (AddressList::const_iterator it = address_list->begin(); |
| - it != address_list->end(); ++it) { |
| + it != address_list->end(); |
|
mef
2014/10/10 20:38:16
I'm not sure about 3-line split in for loop.
|
| + ++it) { |
| list->Append(new base::StringValue(it->ToString())); |
| } |
| @@ -30,9 +31,11 @@ base::Value* NetLogAddressListCallback(const AddressList* address_list, |
| } // namespace |
| -AddressList::AddressList() {} |
| +AddressList::AddressList() { |
| +} |
| -AddressList::~AddressList() {} |
| +AddressList::~AddressList() { |
| +} |
| AddressList::AddressList(const IPEndPoint& endpoint) { |
| push_back(endpoint); |
| @@ -51,7 +54,8 @@ AddressList AddressList::CreateFromIPAddressList( |
| AddressList list; |
| list.set_canonical_name(canonical_name); |
| for (IPAddressList::const_iterator iter = addresses.begin(); |
| - iter != addresses.end(); ++iter) { |
| + iter != addresses.end(); |
| + ++iter) { |
| list.push_back(IPEndPoint(*iter, 0)); |
| } |
| return list; |