summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs
diff options
context:
space:
mode:
authoralex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-15 16:51:14 +0000
committeralex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-15 16:51:14 +0000
commitd4e328ac1eac521a8086239f744b74958a6e5e0a (patch)
tree75a9f9d6d4e6558dae198ee1cdfd37fc184d7f98 /TAO/orbsvcs
parent20b8ce8d8280c3c5211c1cecd8bea2fb62adb568 (diff)
downloadATCD-d4e328ac1eac521a8086239f744b74958a6e5e0a.tar.gz
*** empty log message ***
Diffstat (limited to 'TAO/orbsvcs')
-rw-r--r--TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp32
1 files changed, 24 insertions, 8 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp b/TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp
index 789a0e46526..de7302804dd 100644
--- a/TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp
@@ -603,14 +603,28 @@ TAO_PropertySet::is_type_allowed (CORBA::TypeCode_ptr type)
return CORBA::B_TRUE;
// Check in the allowed_property_types sequence.
+ CORBA::Boolean ret_val = CORBA::B_FALSE;
for (size_t ti = 0;
ti < this->allowed_property_types_.length ();
ti++)
- if (this->allowed_property_types_[ti] == type)
- return CORBA::B_TRUE;
+ TAO_TRY
+ {
+ ret_val = ((const CORBA::TypeCode *)this->allowed_property_types_[ti])->equal (type,
+ TAO_TRY_ENV);
+ TAO_CHECK_ENV;
+
+ if (ret_val == CORBA::B_TRUE)
+ return CORBA::B_TRUE;
+ }
+ TAO_CATCHANY
+ {
+ TAO_TRY_ENV.print_exception ("TypeCode::equal");
+ return ret_val;
+ }
+ TAO_ENDTRY;
// Type not found.
- return CORBA::B_FALSE;
+ return ret_val;
}
// Tells whether this property is allowed in this property or no.
@@ -1118,20 +1132,22 @@ TAO_PropertySet::delete_all_properties (CORBA::Environment &_env)
TAO_TRY
{
// Get all the property names in a names' sequence.
- CosPropertyService::PropertyNames_var names;
- CosPropertyService::PropertyNamesIterator_var iter;
+ CosPropertyService::PropertyNames_ptr names_ptr = 0;
+ CosPropertyService::PropertyNames_out names (names_ptr);
+ CosPropertyService::PropertyNamesIterator_ptr iter_ptr = 0;
+ CosPropertyService::PropertyNamesIterator_out iter (iter_ptr);
CORBA::ULong size = this->get_number_of_properties (TAO_TRY_ENV);
TAO_CHECK_ENV;
this->get_all_property_names (size,
- names.out (),
- iter.out (),
+ names,
+ iter,
TAO_TRY_ENV);
TAO_CHECK_ENV;
// Delete all these properties.
- this->delete_properties (names.in (),
+ this->delete_properties (*names.ptr (),
TAO_TRY_ENV);
TAO_CHECK_ENV;