diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-01-04 10:01:49 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-01-04 10:01:49 +0000 |
commit | ba7548803403ba375093a699b9962b88b6b330d5 (patch) | |
tree | 0168807a9581678c264df6311ce185a274f716cb /TAO/tao/Profile.cpp | |
parent | 173751d5d75fc69a6a46614b135f8ac65b97de31 (diff) | |
download | ATCD-ba7548803403ba375093a699b9962b88b6b330d5.tar.gz |
ChangeLogTag: Tue Jan 4 09:42:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tao/Profile.cpp')
-rw-r--r-- | TAO/tao/Profile.cpp | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/TAO/tao/Profile.cpp b/TAO/tao/Profile.cpp index bef8069d982..00580da8ced 100644 --- a/TAO/tao/Profile.cpp +++ b/TAO/tao/Profile.cpp @@ -289,7 +289,7 @@ TAO_Profile::create_tagged_profile (void) this->create_profile_body (encap); CORBA::ULong length = - ACE_static_cast(CORBA::ULong,encap.total_length ()); + static_cast <CORBA::ULong> (encap.total_length ()); #if (TAO_NO_COPY_OCTET_SEQUENCES == 1) // Place the message block in to the Sequence of Octets that we @@ -381,8 +381,7 @@ TAO_Profile::policies (CORBA::PolicyList *policy_list (*policy_list)[i]->_tao_encode (out_CDR); length = out_CDR.total_length (); - policy_value_seq[i].pvalue.length (ACE_static_cast (CORBA::ULong, - length)); + policy_value_seq[i].pvalue.length (static_cast <CORBA::ULong>(length)); buf = policy_value_seq[i].pvalue.get_buffer (); @@ -409,8 +408,7 @@ TAO_Profile::policies (CORBA::PolicyList *policy_list length = out_cdr.total_length (); - tagged_component.component_data.length (ACE_static_cast (CORBA::ULong, - length)); + tagged_component.component_data.length (static_cast <CORBA::ULong>(length)); buf = tagged_component.component_data.get_buffer (); for (const ACE_Message_Block *iterator = out_cdr.begin (); @@ -457,7 +455,7 @@ TAO_Profile::policies (ACE_ENV_SINGLE_ARG_DECL) const CORBA::Octet *buf = tagged_component.component_data.get_buffer (); - TAO_InputCDR in_cdr (ACE_reinterpret_cast (const char *, buf), + TAO_InputCDR in_cdr (reinterpret_cast <const char *> (buf), tagged_component.component_data.length ()); // Extract the Byte Order @@ -468,7 +466,7 @@ TAO_Profile::policies (ACE_ENV_SINGLE_ARG_DECL) return *(stub_->base_profiles ().policy_list_); } - in_cdr.reset_byte_order (ACE_static_cast(int, byte_order)); + in_cdr.reset_byte_order (static_cast <int> (byte_order)); // Now we take out the Messaging::PolicyValueSeq out from the // CDR. @@ -504,15 +502,14 @@ TAO_Profile::policies (ACE_ENV_SINGLE_ARG_DECL) buf = policy_value_seq[i].pvalue.get_buffer (); TAO_InputCDR in_cdr ( - ACE_reinterpret_cast (const char*, buf), + reinterpret_cast <const char*> (buf), policy_value_seq[i].pvalue.length ()); if (!(in_cdr >> ACE_InputCDR::to_boolean (byte_order))) ACE_TRY_THROW (CORBA::INV_OBJREF ()); - in_cdr.reset_byte_order (ACE_static_cast (int, - byte_order)); + in_cdr.reset_byte_order (static_cast <int> (byte_order)); policy->_tao_decode (in_cdr); (*pl)[i] = policy._retn (); @@ -845,7 +842,7 @@ CORBA::Boolean TAO_Unknown_Profile::do_is_equivalent (const TAO_Profile* other_profile) { const TAO_Unknown_Profile * op = - ACE_dynamic_cast (const TAO_Unknown_Profile *, other_profile); + dynamic_cast <const TAO_Unknown_Profile *> (other_profile); return (CORBA::Boolean) (op == 0 ? 0 : this->body_ == op->body_); } @@ -863,8 +860,8 @@ CORBA::ULong TAO_Unknown_Profile::hash (CORBA::ULong max ACE_ENV_ARG_DECL_NOT_USED) { - return (ACE::hash_pjw (ACE_reinterpret_cast (const char*, - this->body_.get_buffer ()), + return (ACE::hash_pjw (reinterpret_cast <const char*> + (this->body_.get_buffer ()), this->body_.length ()) % max); } |