summaryrefslogtreecommitdiff
path: root/TAO/tao/Profile.cpp
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2001-09-21 20:02:36 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2001-09-21 20:02:36 +0000
commit78021480cbd644c7df0818b71198a6a226252158 (patch)
treead071d86271a731547052f1f899bbc7367f05b3b /TAO/tao/Profile.cpp
parentcfc1d8d332daf3bd7e6021a4fabfd79985d125c8 (diff)
downloadATCD-78021480cbd644c7df0818b71198a6a226252158.tar.gz
ChangeLogTag:Fri Sep 21 12:36:36 2001 Ossama Othman <ossama@uci.edu>
Diffstat (limited to 'TAO/tao/Profile.cpp')
-rw-r--r--TAO/tao/Profile.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/TAO/tao/Profile.cpp b/TAO/tao/Profile.cpp
index a6b816f6855..9c55cc72178 100644
--- a/TAO/tao/Profile.cpp
+++ b/TAO/tao/Profile.cpp
@@ -40,7 +40,7 @@ TAO_Profile::add_tagged_component (const IOP::TaggedComponent &component,
void
TAO_Profile::policies (CORBA::PolicyList *policy_list,
- CORBA::Environment &)
+ CORBA::Environment &ACE_TRY_ENV)
{
#if (TAO_HAS_CORBA_MESSAGING == 1)
@@ -62,10 +62,12 @@ TAO_Profile::policies (CORBA::PolicyList *policy_list,
// This loop iterates through CORBA::PolicyList to convert
// each CORBA::Policy into a CORBA::PolicyValue
- for (size_t i = 0; i < policy_list->length (); i++)
+ for (size_t i = 0; i < policy_list->length (); ++i)
{
TAO_OutputCDR out_CDR;
- policy_value_seq[i].ptype = (*policy_list)[i]->policy_type ();
+ policy_value_seq[i].ptype =
+ (*policy_list)[i]->policy_type (ACE_TRY_ENV);
+ ACE_CHECK;
out_CDR << ACE_OutputCDR::from_boolean (TAO_ENCAP_BYTE_ORDER);
(*policy_list)[i]->_tao_encode (out_CDR);
@@ -84,8 +86,6 @@ TAO_Profile::policies (CORBA::PolicyList *policy_list,
ACE_OS::memcpy (buf, iterator->rd_ptr (), iterator->length ());
buf += iterator->length ();
}
-
-
}
TAO_OutputCDR out_cdr;