diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2005-02-22 06:35:26 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2005-02-22 06:35:26 +0000 |
commit | 8d9ce2a8a153364e09f97382dd782ac010f6763c (patch) | |
tree | 93e8835b4bad3062d9b8804dbfc178f44c4c4efb | |
parent | 81b12928a65d902a647cca87f29db2bb37fb38a8 (diff) | |
download | ATCD-8d9ce2a8a153364e09f97382dd782ac010f6763c.tar.gz |
ChangeLogTag:Mon Feb 21 22:31:25 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-rw-r--r-- | TAO/ChangeLog | 11 | ||||
-rw-r--r-- | TAO/tao/UserException.cpp | 22 | ||||
-rw-r--r-- | TAO/tao/UserException.inl | 12 |
3 files changed, 22 insertions, 23 deletions
diff --git a/TAO/ChangeLog b/TAO/ChangeLog index f349c4996b2..057288df88e 100644 --- a/TAO/ChangeLog +++ b/TAO/ChangeLog @@ -1,3 +1,12 @@ +Mon Feb 21 22:31:25 2005 Ossama Othman <ossama@dre.vanderbilt.edu> + + * tao/UserException.cpp (_downcast): + * tao/UserException.inl (_downcast): + + Removed unnecessary/redundant repository ID check and inlined + these methods. The standard C++ dynamic_cast<> already performs + the required downcasting checks. Reduces footprint. + Mon Feb 21 22:13:13 2005 Ossama Othman <ossama@dre.vanderbilt.edu> * tao/DynamicInterface/Unknown_User_Exception.h (_downcast): @@ -8,7 +17,7 @@ Mon Feb 21 22:13:13 2005 Ossama Othman <ossama@dre.vanderbilt.edu> Removed unnecessary/redundant repository ID check. The standard C++ dynamic_cast<> already performs the required - downcasting checks. + downcasting checks. Reduces footprint. Mon Feb 21 13:09:43 2005 Ossama Othman <ossama@dre.vanderbilt.edu> diff --git a/TAO/tao/UserException.cpp b/TAO/tao/UserException.cpp index 579032232a9..bafd2d1f35d 100644 --- a/TAO/tao/UserException.cpp +++ b/TAO/tao/UserException.cpp @@ -43,28 +43,6 @@ CORBA::UserException::_is_a (char const * interface_id) const || this->Exception::_is_a (interface_id); } -CORBA::UserException* -CORBA::UserException::_downcast (CORBA::Exception* exception) -{ - if (exception->_is_a ("IDL:omg.org/CORBA/UserException:1.0")) - { - return dynamic_cast<CORBA::UserException *> (exception); - } - - return 0; -} - -const CORBA::UserException* -CORBA::UserException::_downcast (CORBA::Exception const * exception) -{ - if (exception->_is_a ("IDL:omg.org/CORBA/UserException:1.0")) - { - return dynamic_cast<const CORBA::UserException *> (exception); - } - - return 0; -} - ACE_CString CORBA::UserException::_info (void) const { diff --git a/TAO/tao/UserException.inl b/TAO/tao/UserException.inl index 509094f5757..4b3730615c8 100644 --- a/TAO/tao/UserException.inl +++ b/TAO/tao/UserException.inl @@ -7,3 +7,15 @@ CORBA::UserException::UserException (CORBA::UserException const & rhs) : CORBA::Exception (rhs) { } + +ACE_INLINE CORBA::UserException * +CORBA::UserException::_downcast (CORBA::Exception * exception) +{ + return dynamic_cast<CORBA::UserException *> (exception); +} + +ACE_INLINE const CORBA::UserException * +CORBA::UserException::_downcast (CORBA::Exception const * exception) +{ + return dynamic_cast<const CORBA::UserException *> (exception); +} |