diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2007-04-03 12:09:51 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2007-04-03 12:09:51 +0000 |
commit | d42ec15e8f182b333b7c93348fc510f1c8bb5018 (patch) | |
tree | 7162440e794bbf72f44ae6a267c85c1137aa2a71 | |
parent | b80a2f734cf5a2cddaa12b9d3652f8626690b0eb (diff) | |
download | ATCD-d42ec15e8f182b333b7c93348fc510f1c8bb5018.tar.gz |
ChangeLogTag: Tue Apr 3 12:09:43 UTC 2007 Chad Elliott <elliott_c@ociweb.com>
-rw-r--r-- | TAO/ChangeLog | 8 | ||||
-rw-r--r-- | TAO/tao/GIOP_Message_Version.h | 4 | ||||
-rw-r--r-- | TAO/tao/GIOP_Message_Version.inl | 5 |
3 files changed, 13 insertions, 4 deletions
diff --git a/TAO/ChangeLog b/TAO/ChangeLog index 012295e8a4c..ef43c65873c 100644 --- a/TAO/ChangeLog +++ b/TAO/ChangeLog @@ -1,3 +1,11 @@ +Tue Apr 3 12:09:43 UTC 2007 Chad Elliott <elliott_c@ociweb.com> + + * tao/GIOP_Message_Version.h: + * tao/GIOP_Message_Version.inl: + + Changed the equality and inequality operators to const (as they + should have originally been). + Tue Apr 3 11:56:17 UTC 2007 Chad Elliott <elliott_c@ociweb.com> * tests/Bug_2677_Regression/DllORB.cpp: diff --git a/TAO/tao/GIOP_Message_Version.h b/TAO/tao/GIOP_Message_Version.h index aa55edc8d0c..d00a707bbdb 100644 --- a/TAO/tao/GIOP_Message_Version.h +++ b/TAO/tao/GIOP_Message_Version.h @@ -61,8 +61,8 @@ public: TAO_GIOP_Message_Version &operator= (const TAO_GIOP_Message_Version &src); /// Equality operator - bool operator== (const TAO_GIOP_Message_Version &src); - bool operator!= (const TAO_GIOP_Message_Version &src); + bool operator== (const TAO_GIOP_Message_Version &src) const; + bool operator!= (const TAO_GIOP_Message_Version &src) const; }; TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/tao/GIOP_Message_Version.inl b/TAO/tao/GIOP_Message_Version.inl index 941389650c1..02defac6565 100644 --- a/TAO/tao/GIOP_Message_Version.inl +++ b/TAO/tao/GIOP_Message_Version.inl @@ -41,14 +41,15 @@ TAO_GIOP_Message_Version::set_version (CORBA::Octet maj, CORBA::Octet min) } ACE_INLINE bool -TAO_GIOP_Message_Version::operator== (const TAO_GIOP_Message_Version &src) +TAO_GIOP_Message_Version::operator== ( + const TAO_GIOP_Message_Version &src) const { return this->minor == src.minor && this->major == src.major; } ACE_INLINE bool TAO_GIOP_Message_Version::operator!= ( - const TAO_GIOP_Message_Version &src) + const TAO_GIOP_Message_Version &src) const { return !(*this == src); } |