diff options
author | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-02-21 06:22:08 +0000 |
---|---|---|
committer | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-02-21 06:22:08 +0000 |
commit | bb5444134388ad5d7f47d35f7daf6cdaf50e4022 (patch) | |
tree | d7d8dca6f4e73def070b98342821993f2a3c2f12 /websvcs | |
parent | df0cc974955b908029871f81da970c3d8c65761e (diff) | |
download | ATCD-bb5444134388ad5d7f47d35f7daf6cdaf50e4022.tar.gz |
Added hash function and fixed the copy of null addrs.
Diffstat (limited to 'websvcs')
-rw-r--r-- | websvcs/lib/URL_Addr.i | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/websvcs/lib/URL_Addr.i b/websvcs/lib/URL_Addr.i index f725ebe047f..6d4d03d300c 100644 --- a/websvcs/lib/URL_Addr.i +++ b/websvcs/lib/URL_Addr.i @@ -4,7 +4,7 @@ ACE_INLINE ACE_URL_Addr::ACE_URL_Addr (const ACE_URL_Addr& address) - : url_ (ACE_OS::strdup (address.url_)) + : url_ (address.url_ == 0 ? 0 : ACE_OS::strdup (address.url_)) { } @@ -30,6 +30,12 @@ ACE_URL_Addr::set_url (LPTSTR url) this->url_ = url; } +ACE_INLINE u_long +ACE_URL_Addr::hash (void) const +{ + return ACE::hash_pjw (this->url_); +} + // **************************************************************** ACE_INLINE ACE_HTTP_Addr& |