summaryrefslogtreecommitdiff
path: root/ace/UNIX_Addr.i
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>1997-11-07 03:21:52 +0000
committerSteve Huston <shuston@riverace.com>1997-11-07 03:21:52 +0000
commitf1a7b878364b7c986e207dce3ffd808784d02971 (patch)
treef1ce04c7655a9c28f7233f12ad5dc253e5d32d8e /ace/UNIX_Addr.i
parentbb0829926c648280e121a81191b558b9319b5519 (diff)
downloadATCD-f1a7b878364b7c986e207dce3ffd808784d02971.tar.gz
Changed operators == and != to be non-virtual, and to take the 'sap' argument
as their own type (not ACE_Addr). Changed the implementations to use more of the type-specific data.
Diffstat (limited to 'ace/UNIX_Addr.i')
-rw-r--r--ace/UNIX_Addr.i11
1 files changed, 5 insertions, 6 deletions
diff --git a/ace/UNIX_Addr.i b/ace/UNIX_Addr.i
index f4bcfb6fad4..c07b43b493b 100644
--- a/ace/UNIX_Addr.i
+++ b/ace/UNIX_Addr.i
@@ -35,18 +35,17 @@ ACE_UNIX_Addr::addr_to_string (char s[], size_t len) const
// Compare two addresses for equality.
ACE_INLINE int
-ACE_UNIX_Addr::operator == (const ACE_Addr &sap) const
+ACE_UNIX_Addr::operator == (const ACE_UNIX_Addr &sap) const
{
- return this->ACE_Addr::operator == (sap)
- && ACE_OS::strncmp (this->unix_addr_.sun_path,
- ((const ACE_UNIX_Addr &) sap).unix_addr_.sun_path,
- sizeof this->unix_addr_.sun_path) == 0;
+ return ACE_OS::strncmp (this->unix_addr_.sun_path,
+ sap.unix_addr_.sun_path,
+ sizeof this->unix_addr_.sun_path) == 0;
}
// Compare two addresses for inequality.
ACE_INLINE int
-ACE_UNIX_Addr::operator != (const ACE_Addr &sap) const
+ACE_UNIX_Addr::operator != (const ACE_UNIX_Addr &sap) const
{
return !((*this) == sap); // This is lazy, of course... ;-)
}