diff options
author | Steve Huston <shuston@riverace.com> | 1997-11-07 03:21:52 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 1997-11-07 03:21:52 +0000 |
commit | f1a7b878364b7c986e207dce3ffd808784d02971 (patch) | |
tree | f1ce04c7655a9c28f7233f12ad5dc253e5d32d8e /ace/FILE_Addr.i | |
parent | bb0829926c648280e121a81191b558b9319b5519 (diff) | |
download | ATCD-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/FILE_Addr.i')
-rw-r--r-- | ace/FILE_Addr.i | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ace/FILE_Addr.i b/ace/FILE_Addr.i index f364be3f719..b1f3aeb78c8 100644 --- a/ace/FILE_Addr.i +++ b/ace/FILE_Addr.i @@ -84,17 +84,15 @@ ACE_FILE_Addr::get_addr (void) const // Compare two addresses for equality. ACE_INLINE int -ACE_FILE_Addr::operator == (const ACE_Addr &sap) const +ACE_FILE_Addr::operator == (const ACE_FILE_Addr &sap) const { - return this->ACE_Addr::operator== (sap) - && ACE_OS::strcmp (this->filename_, - ((ACE_FILE_Addr &) sap).filename_) == 0; + return ACE_OS::strcmp (this->filename_, sap.filename_) == 0; } // Compare two addresses for inequality. ACE_INLINE int -ACE_FILE_Addr::operator != (const ACE_Addr &sap) const +ACE_FILE_Addr::operator != (const ACE_FILE_Addr &sap) const { return !((*this) == sap); // This is lazy, of course... ;-) } |