diff options
author | fredk <fredk@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-02-05 00:22:16 +0000 |
---|---|---|
committer | fredk <fredk@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-02-05 00:22:16 +0000 |
commit | a4d9c132a5d6df4b33a0c06bfcf1ff5c46a56b1e (patch) | |
tree | bb18a9508449ca6cb041a753c0d17dc4de2c8fcb /TAO | |
parent | 4668618677a0cfa08f094fcadee58f7453d11977 (diff) | |
download | ATCD-a4d9c132a5d6df4b33a0c06bfcf1ff5c46a56b1e.tar.gz |
*** empty log message ***
Diffstat (limited to 'TAO')
-rw-r--r-- | TAO/orbsvcs/tests/ImplRepo/IR_Helper.cpp | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/TAO/orbsvcs/tests/ImplRepo/IR_Helper.cpp b/TAO/orbsvcs/tests/ImplRepo/IR_Helper.cpp index 39dcb10bbac..1a08977c5e4 100644 --- a/TAO/orbsvcs/tests/ImplRepo/IR_Helper.cpp +++ b/TAO/orbsvcs/tests/ImplRepo/IR_Helper.cpp @@ -199,15 +199,24 @@ IR_Helper::notify_shutdown (CORBA_Environment &TAO_IN_ENV) TAO_ENDTRY; } - void IR_Helper::change_object (CORBA::Object_ptr obj, CORBA_Environment &TAO_IN_ENV) { - IIOP_Object *iiop_obj = ACE_dynamic_cast (IIOP_Object *, obj->_stubobj ()); - IIOP_Object *implrepo_obj = ACE_dynamic_cast (IIOP_Object *, this->implrepo_->_stubobj ()); - - // @@ Only same host for now - - iiop_obj->profile.port = implrepo_obj->profile.port; + if ( obj + && obj->_stubobj () + && obj->_stubobj ()->profile_in_use () + && this->implrepo_ + && this->implrepo_->_stubobj () + && this->implrepo_->_stubobj ()->profile_in_use () ) + { + TAO_IIOP_Profile *implrepo_pfile = + ACE_dynamic_cast (TAO_IIOP_Profile *, + this->implrepo_->_stubobj ()->profile_in_use ()); + TAO_IIOP_Profile *iiop_pfile = + ACE_dynamic_cast (TAO_IIOP_Profile *, + obj->_stubobj ()->profile_in_use ()); + + // @@ Only same host for now + iiop_pfile->port (implrepo_pfile->port ()); + } } - |