diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-24 17:37:41 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-24 17:37:41 +0000 |
commit | 678ff11e8a31e9c1f22e7ff53b92d627965b2277 (patch) | |
tree | 495037a506b4afd39ec72601a6c6d84b13004510 /TAO/tao/PolicyC.cpp | |
parent | 4c3aac442a7f4730d1c68aa9fae836361649df03 (diff) | |
download | ATCD-678ff11e8a31e9c1f22e7ff53b92d627965b2277.tar.gz |
ChangeLogTag:Thu Jun 24 12:20:36 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/PolicyC.cpp')
-rw-r--r-- | TAO/tao/PolicyC.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/TAO/tao/PolicyC.cpp b/TAO/tao/PolicyC.cpp index 836f5417911..bf769e7f3cd 100644 --- a/TAO/tao/PolicyC.cpp +++ b/TAO/tao/PolicyC.cpp @@ -166,12 +166,12 @@ CORBA_InvalidPolicies::CORBA_InvalidPolicies( CORBA_Policy_ptr CORBA_Policy::_narrow ( CORBA::Object_ptr obj, - CORBA::Environment &env + CORBA::Environment &ACE_TRY_ENV ) { if (CORBA::is_nil (obj)) return CORBA_Policy::_nil (); - if (!obj->_is_a ("IDL:omg.org/CORBA/Policy:1.0", env)) + if (!obj->_is_a ("IDL:omg.org/CORBA/Policy:1.0", ACE_TRY_ENV)) return CORBA_Policy::_nil (); TAO_Stub* stub = obj->_stubobj (); stub->_incr_refcnt (); @@ -354,14 +354,14 @@ void CORBA_Policy::destroy ( } #endif /* !TAO_HAS_LOCALITY_CONSTRAINT_POLICIES */ -CORBA::Boolean CORBA_Policy::_is_a (const CORBA::Char *value, CORBA::Environment &env) +CORBA::Boolean CORBA_Policy::_is_a (const CORBA::Char *value, CORBA::Environment &ACE_TRY_ENV) { if ( (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/Policy:1.0")) || - (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (env)))) + (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/Object:1.0"))) return 1; // success using local knowledge else - return this->CORBA_Object::_is_a (value, env); // remote call + return this->CORBA_Object::_is_a (value, ACE_TRY_ENV); // remote call } const char* CORBA_Policy::_interface_repository_id (void) const @@ -424,12 +424,12 @@ CORBA_PolicyTypeSeq::~CORBA_PolicyTypeSeq (void) CORBA::PolicyManager_ptr CORBA_PolicyManager::_narrow ( CORBA::Object_ptr obj, - CORBA::Environment &env + CORBA::Environment &ACE_TRY_ENV ) { if (CORBA::is_nil (obj)) return CORBA_PolicyManager::_nil (); - if (!obj->_is_a ("IDL:omg.org/CORBA/PolicyManager:1.0", env)) + if (!obj->_is_a ("IDL:omg.org/CORBA/PolicyManager:1.0", ACE_TRY_ENV)) return CORBA_PolicyManager::_nil (); TAO_Stub* stub = obj->_stubobj (); stub->_incr_refcnt (); @@ -487,14 +487,14 @@ void CORBA_PolicyManager::set_policy_overrides ( ACE_THROW (CORBA::MARSHAL ()); } -CORBA::Boolean CORBA_PolicyManager::_is_a (const CORBA::Char *value, CORBA::Environment &env) +CORBA::Boolean CORBA_PolicyManager::_is_a (const CORBA::Char *value, CORBA::Environment &ACE_TRY_ENV) { if ( (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/PolicyManager:1.0")) || - (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (env)))) + (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/Object:1.0"))) return 1; // success using local knowledge else - return this->CORBA_Object::_is_a (value, env); // remote call + return this->CORBA_Object::_is_a (value, ACE_TRY_ENV); // remote call } const char* CORBA_PolicyManager::_interface_repository_id (void) const @@ -507,12 +507,12 @@ const char* CORBA_PolicyManager::_interface_repository_id (void) const CORBA_PolicyCurrent_ptr CORBA_PolicyCurrent::_narrow ( CORBA::Object_ptr obj, - CORBA::Environment &env + CORBA::Environment &ACE_TRY_ENV ) { if (CORBA::is_nil (obj)) return CORBA_PolicyCurrent::_nil (); - if (!obj->_is_a ("IDL:omg.org/CORBA/PolicyCurrent:1.0", env)) + if (!obj->_is_a ("IDL:omg.org/CORBA/PolicyCurrent:1.0", ACE_TRY_ENV)) return CORBA_PolicyCurrent::_nil (); TAO_Stub* stub = obj->_stubobj (); stub->_incr_refcnt (); @@ -547,16 +547,16 @@ CORBA_PolicyCurrent_ptr CORBA_PolicyCurrent::_unchecked_narrow ( ); } -CORBA::Boolean CORBA_PolicyCurrent::_is_a (const CORBA::Char *value, CORBA::Environment &env) +CORBA::Boolean CORBA_PolicyCurrent::_is_a (const CORBA::Char *value, CORBA::Environment &ACE_TRY_ENV) { if ( (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/PolicyCurrent:1.0")) || (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/PolicyManager:1.0")) || (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/Current:1.0")) || - (!ACE_OS::strcmp ((char *)value, CORBA::_tc_Object->id (env)))) + (!ACE_OS::strcmp ((char *)value, "IDL:omg.org/CORBA/Object:1.0"))) return 1; // success using local knowledge else - return this->CORBA_Object::_is_a (value, env); // remote call + return this->CORBA_Object::_is_a (value, ACE_TRY_ENV); // remote call } const char* CORBA_PolicyCurrent::_interface_repository_id (void) const |