diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2007-01-24 15:46:24 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2007-01-24 15:46:24 +0000 |
commit | 88ba25c76c2f30daace25e21d782c332a1d299b4 (patch) | |
tree | 46da60267b525e64b0a369eb3ed807262c13962a /TAO/tao/PI_Server/ServerRequestDetails.cpp | |
parent | c801f87e59c00f72bdeb5ce7bd0d276674665bac (diff) | |
download | ATCD-88ba25c76c2f30daace25e21d782c332a1d299b4.tar.gz |
Wed Jan 24 15:46:12 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tao/PI_Server/ServerRequestDetails.cpp')
-rw-r--r-- | TAO/tao/PI_Server/ServerRequestDetails.cpp | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/TAO/tao/PI_Server/ServerRequestDetails.cpp b/TAO/tao/PI_Server/ServerRequestDetails.cpp index 166da908552..b416d2faef1 100644 --- a/TAO/tao/PI_Server/ServerRequestDetails.cpp +++ b/TAO/tao/PI_Server/ServerRequestDetails.cpp @@ -15,14 +15,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL namespace TAO { void - ServerRequestDetails::apply_policies ( - const CORBA::PolicyList &policies - ) + ServerRequestDetails::apply_policies (const CORBA::PolicyList &policies) { // Flag to check for duplicate ProcessingModePolicy objects in the list. bool processing_mode_applied = false; - const CORBA::ULong plen = policies.length (); + CORBA::ULong const plen = policies.length (); for (CORBA::ULong i = 0; i < plen; ++i) { @@ -35,7 +33,7 @@ namespace TAO } // Obtain the PolicyType from the current Policy object. - const CORBA::PolicyType policy_type = + CORBA::PolicyType const policy_type = policy->policy_type (); if (policy_type == PortableInterceptor::PROCESSING_MODE_POLICY_TYPE) @@ -44,7 +42,7 @@ namespace TAO { // This is the second time we have run into this policy type, // and that is not allowed. - throw ( ::CORBA::INV_POLICY ()); + throw ::CORBA::INV_POLICY (); } // Flip the flag to true in order to trap any dupes. @@ -53,17 +51,15 @@ namespace TAO // Narrow the Policy to the ProcessingModePolicy interface. PortableInterceptor::ProcessingModePolicy_var pm_policy = PortableInterceptor::ProcessingModePolicy::_narrow ( - policy.in () - ); + policy.in ()); // Save the value of the ProcessingModePolicy in our data member. - this->processing_mode_ = - pm_policy->processing_mode (); + this->processing_mode_ = pm_policy->processing_mode (); } else { // We don't support the current policy type. - throw ( ::CORBA::INV_POLICY ()); + throw ::CORBA::INV_POLICY (); } } } |