diff options
author | fhunleth <fhunleth@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-06-19 17:34:02 +0000 |
---|---|---|
committer | fhunleth <fhunleth@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-06-19 17:34:02 +0000 |
commit | d0367980df91acef3af4d99b1db2b43c08fe7e38 (patch) | |
tree | b70403df1b128ba4a9b3787c355f46669827b127 /TAO/tao/Stub.cpp | |
parent | b7d6b9efe791a3ecb373a718534219af4202f918 (diff) | |
download | ATCD-d0367980df91acef3af4d99b1db2b43c08fe7e38.tar.gz |
ChangeLogTag:Tue Jun 19 12:25:09 2001 Frank Hunleth <fhunleth@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/Stub.cpp')
-rw-r--r-- | TAO/tao/Stub.cpp | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/TAO/tao/Stub.cpp b/TAO/tao/Stub.cpp index da78c35560f..2c308688fb5 100644 --- a/TAO/tao/Stub.cpp +++ b/TAO/tao/Stub.cpp @@ -668,21 +668,18 @@ TAO_Stub::sync_scope (void) #if (TAO_HAS_BUFFERING_CONSTRAINT_POLICY == 1) -TAO_Buffering_Constraint_Policy * +CORBA::Policy * TAO_Stub::buffering_constraint (void) { - TAO_Buffering_Constraint_Policy *result = 0; + CORBA::Policy *result = 0; // No need to lock, the stub only changes its policies at // construction time... if (this->policies_ != 0) { - CORBA::Policy_var policy = + result = this->policies_->get_cached_policy (TAO_CACHED_POLICY_BUFFERING_CONSTRAINT); - TAO::BufferingConstraintPolicy_var bcp = - TAO::BufferingConstraintPolicy::_narrow (policy.in()); - result = ACE_dynamic_cast (TAO_Buffering_Constraint_Policy *, bcp.in ()); } // No need to lock, the object is in TSS storage.... @@ -691,11 +688,8 @@ TAO_Stub::buffering_constraint (void) TAO_Policy_Current &policy_current = this->orb_core_->policy_current (); - CORBA::Policy_var policy = policy_current.get_cached_policy (TAO_CACHED_POLICY_BUFFERING_CONSTRAINT); - TAO::BufferingConstraintPolicy_var bcp = - TAO::BufferingConstraintPolicy::_narrow (policy.in()); - - result = ACE_dynamic_cast (TAO_Buffering_Constraint_Policy *, bcp.in ()); + result = + policy_current.get_cached_policy (TAO_CACHED_POLICY_BUFFERING_CONSTRAINT); } // @@ Must lock, but is is harder to implement than just modifying @@ -707,11 +701,8 @@ TAO_Stub::buffering_constraint (void) this->orb_core_->policy_manager (); if (policy_manager != 0) { - CORBA::Policy_var policy = policy_manager->get_cached_policy (TAO_CACHED_POLICY_BUFFERING_CONSTRAINT); - TAO::BufferingConstraintPolicy_var bcp = - TAO::BufferingConstraintPolicy::_narrow (policy.in()); - - result = ACE_dynamic_cast (TAO_Buffering_Constraint_Policy *, bcp.in ()); + result = + policy_manager->get_cached_policy (TAO_CACHED_POLICY_BUFFERING_CONSTRAINT); } } |