diff options
Diffstat (limited to 'TAO/tao/Strategies/DIOP_Profile.cpp')
-rw-r--r-- | TAO/tao/Strategies/DIOP_Profile.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/TAO/tao/Strategies/DIOP_Profile.cpp b/TAO/tao/Strategies/DIOP_Profile.cpp index 73cb6167905..12f9a071c8c 100644 --- a/TAO/tao/Strategies/DIOP_Profile.cpp +++ b/TAO/tao/Strategies/DIOP_Profile.cpp @@ -208,10 +208,12 @@ TAO_DIOP_Profile::parse_string_i (const char *ior this->endpoint_.host_ = CORBA::string_dup (tmp_host); } - TAO::ObjectKey &ok = ACE_const_cast (TAO::ObjectKey&, - this->ref_object_key_->object_key ()); + TAO::ObjectKey ok; TAO::ObjectKey::decode_string_to_sequence (ok, okd + 1); + + (void) this->orb_core ()->object_key_table ().bind (ok, + this->ref_object_key_); } CORBA::Boolean |