summaryrefslogtreecommitdiffstats
path: root/net/base/address_list.cc
diff options
context:
space:
mode:
authorwtc@google.com <wtc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-07-28 23:45:23 +0000
committerwtc@google.com <wtc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-07-28 23:45:23 +0000
commit1b66f31cbe79793c038c5afe09bb24dd2f25b8ad (patch)
treed4b9c2c0b8662a1b94bb66b8c096ebde76cc54ff /net/base/address_list.cc
parent236ef33ebbb7aae61d5f36d8dc4570674819c810 (diff)
downloadchromium_src-1b66f31cbe79793c038c5afe09bb24dd2f25b8ad.zip
chromium_src-1b66f31cbe79793c038c5afe09bb24dd2f25b8ad.tar.gz
chromium_src-1b66f31cbe79793c038c5afe09bb24dd2f25b8ad.tar.bz2
Create a constructor to construct an AddressList::Data
object with a struct addrinfo*. Fix the comment for the port parameter of HostResolver::Resolve. Make some changes suggested by cpplint. R=darin git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/address_list.cc')
-rw-r--r--net/base/address_list.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/base/address_list.cc b/net/base/address_list.cc
index 4281a7e..f365fb6 100644
--- a/net/base/address_list.cc
+++ b/net/base/address_list.cc
@@ -35,8 +35,7 @@
namespace net {
void AddressList::Adopt(struct addrinfo* head) {
- data_ = new Data();
- data_->head = head;
+ data_ = new Data(head);
}
AddressList::Data::~Data() {