summaryrefslogtreecommitdiff
path: root/websvcs
diff options
context:
space:
mode:
authorbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-02-21 06:22:08 +0000
committerbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-02-21 06:22:08 +0000
commitbb5444134388ad5d7f47d35f7daf6cdaf50e4022 (patch)
treed7d8dca6f4e73def070b98342821993f2a3c2f12 /websvcs
parentdf0cc974955b908029871f81da970c3d8c65761e (diff)
downloadATCD-bb5444134388ad5d7f47d35f7daf6cdaf50e4022.tar.gz
Added hash function and fixed the copy of null addrs.
Diffstat (limited to 'websvcs')
-rw-r--r--websvcs/lib/URL_Addr.i8
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&