summaryrefslogtreecommitdiff
path: root/TAO/tao
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2020-10-28 11:25:16 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2020-10-28 11:25:16 +0100
commit55978a89a7f8f707df7937e65108db655ad749cd (patch)
treef5dc700b6bee4e848c54d290028c7182e465ffad /TAO/tao
parentb2f8f77f82ba9b35adb764b18bf89e23ce5b63de (diff)
downloadATCD-55978a89a7f8f707df7937e65108db655ad749cd.tar.gz
Layout and docu changes
Diffstat (limited to 'TAO/tao')
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/append.cpp3
-rw-r--r--TAO/tao/Compression/zlib/ZlibCompressor_Factory.cpp3
-rw-r--r--TAO/tao/Dynamic_TP/DTP_Task.cpp3
-rw-r--r--TAO/tao/Exception.h3
-rw-r--r--TAO/tao/IIOP_Profile.h3
-rw-r--r--TAO/tao/IORManipulation/IORManipulation.cpp3
-rw-r--r--TAO/tao/MProfile.cpp3
-rw-r--r--TAO/tao/Object.cpp3
-rw-r--r--TAO/tao/PI/Interceptor_List_T.cpp3
-rw-r--r--TAO/tao/PI_Server/ServerInterceptorAdapter.cpp5
-rw-r--r--TAO/tao/PortableServer/Active_Policy_Strategies.h3
-rw-r--r--TAO/tao/PortableServer/LifespanStrategyPersistent.cpp9
-rw-r--r--TAO/tao/PortableServer/Object_Adapter.cpp3
-rw-r--r--TAO/tao/PortableServer/POA_Cached_Policies.h6
-rw-r--r--TAO/tao/RTPortableServer/RT_POA.cpp3
-rw-r--r--TAO/tao/RTScheduling/Current.cpp49
-rw-r--r--TAO/tao/RTScheduling/Request_Interceptor.h4
-rw-r--r--TAO/tao/ServerRequestInterceptor_Adapter.h2
-rw-r--r--TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp3
20 files changed, 39 insertions, 81 deletions
diff --git a/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.cpp b/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.cpp
index 0f55940911a..f383c79659d 100644
--- a/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.cpp
+++ b/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.cpp
@@ -30,8 +30,7 @@ TAO::TypeCode::Case<StringType, TypeCodeType>::equal (CORBA::ULong index,
// Check case TypeCodes.
CORBA::TypeCode_ptr const lhs_tc = this->type ();
CORBA::TypeCode_var const rhs_tc =
- tc->member_type (index
- );
+ tc->member_type (index);
CORBA::Boolean const equal_members =
lhs_tc->equal (rhs_tc.in ());
@@ -54,8 +53,7 @@ TAO::TypeCode::Case<StringType, TypeCodeType>::equivalent (
// Check case TypeCodes.
CORBA::TypeCode_ptr const lhs_tc = this->type ();
CORBA::TypeCode_var const rhs_tc =
- tc->member_type (index
- );
+ tc->member_type (index);
CORBA::Boolean const equivalent_members =
lhs_tc->equivalent (rhs_tc.in ());
diff --git a/TAO/tao/AnyTypeCode/append.cpp b/TAO/tao/AnyTypeCode/append.cpp
index 2caccfeab7d..69d88d32aba 100644
--- a/TAO/tao/AnyTypeCode/append.cpp
+++ b/TAO/tao/AnyTypeCode/append.cpp
@@ -1185,8 +1185,7 @@ TAO_Marshal_Value::append (CORBA::TypeCode_ptr tc,
{
retval = this->append (param.in (),
src,
- dest
- );
+ dest);
}
if (retval == TAO::TRAVERSE_CONTINUE)
diff --git a/TAO/tao/Compression/zlib/ZlibCompressor_Factory.cpp b/TAO/tao/Compression/zlib/ZlibCompressor_Factory.cpp
index c687786d48b..213f37cb44e 100644
--- a/TAO/tao/Compression/zlib/ZlibCompressor_Factory.cpp
+++ b/TAO/tao/Compression/zlib/ZlibCompressor_Factory.cpp
@@ -20,8 +20,7 @@ Zlib_CompressorFactory::get_compressor (
// Ensure Compression range 0-9 and will also convert -1(default) to 9(max).
compression_level = ace_range( ::Compression::CompressionLevel(Z_NO_COMPRESSION), // Min value
::Compression::CompressionLevel(Z_BEST_COMPRESSION), // Max value
- compression_level // Argument value
- );
+ compression_level); // Argument value
::Compression::Compressor_ptr compressor = 0;
diff --git a/TAO/tao/Dynamic_TP/DTP_Task.cpp b/TAO/tao/Dynamic_TP/DTP_Task.cpp
index e587d7eb746..5dac916eede 100644
--- a/TAO/tao/Dynamic_TP/DTP_Task.cpp
+++ b/TAO/tao/Dynamic_TP/DTP_Task.cpp
@@ -153,8 +153,7 @@ TAO_DTP_Task::open (void* /* args */)
this->max_pool_threads_,
this->max_request_queue_depth_,
this->thread_stack_size_,
- this->thread_idle_time_.sec ())
- );
+ this->thread_idle_time_.sec ()));
}
// We can't activate 0 threads. Make sure this isn't the case.
diff --git a/TAO/tao/Exception.h b/TAO/tao/Exception.h
index 84a1be86263..3e20fd0b4e5 100644
--- a/TAO/tao/Exception.h
+++ b/TAO/tao/Exception.h
@@ -171,8 +171,7 @@ namespace CORBA
* ACE_NEW_RETURN (
* result,
* SomeException (*this),
- * 0
- * );
+ * 0);
* return result;
* }
* };
diff --git a/TAO/tao/IIOP_Profile.h b/TAO/tao/IIOP_Profile.h
index 9c72d78a0c7..a3c45dc3fca 100644
--- a/TAO/tao/IIOP_Profile.h
+++ b/TAO/tao/IIOP_Profile.h
@@ -131,8 +131,7 @@ protected:
/// Template methods. Please see Profile.h for the documentation.
virtual int decode_profile (TAO_InputCDR &cdr);
virtual int decode_endpoints (void);
- virtual void parse_string_i (const char *string
- );
+ virtual void parse_string_i (const char *string);
virtual void create_profile_body (TAO_OutputCDR &cdr) const;
virtual CORBA::Boolean do_is_equivalent (const TAO_Profile *other_profile);
diff --git a/TAO/tao/IORManipulation/IORManipulation.cpp b/TAO/tao/IORManipulation/IORManipulation.cpp
index 6c86e8fbea0..37b5284328f 100644
--- a/TAO/tao/IORManipulation/IORManipulation.cpp
+++ b/TAO/tao/IORManipulation/IORManipulation.cpp
@@ -165,8 +165,7 @@ TAO_IOR_Manipulation_impl::remove_profiles (
TAO_ORB_Core *orb_core = TAO_ORB_Core_instance ();
TAO_Stub *stub = orb_core->create_stub (id.in (), // give the id string
- Diff_Profiles
- );
+ Diff_Profiles);
// Make the stub memory allocation exception safe for the duration
// of this method.
diff --git a/TAO/tao/MProfile.cpp b/TAO/tao/MProfile.cpp
index cfadbaed48d..d0d59889b7a 100644
--- a/TAO/tao/MProfile.cpp
+++ b/TAO/tao/MProfile.cpp
@@ -305,8 +305,7 @@ TAO_MProfile::create_policy_list (void)
ACE_NEW_THROW_EX (this->policy_list_,
CORBA::PolicyList,
CORBA::NO_MEMORY (0,
- CORBA::COMPLETED_NO)
- );
+ CORBA::COMPLETED_NO));
}
void
diff --git a/TAO/tao/Object.cpp b/TAO/tao/Object.cpp
index 2aeede4233d..ccaf4269378 100644
--- a/TAO/tao/Object.cpp
+++ b/TAO/tao/Object.cpp
@@ -396,8 +396,7 @@ CORBA::Object::_create_request (CORBA::Context_ptr ctx,
result,
0,
request,
- req_flags
- );
+ req_flags);
}
#endif
diff --git a/TAO/tao/PI/Interceptor_List_T.cpp b/TAO/tao/PI/Interceptor_List_T.cpp
index 8e9cdd52325..249b6bc2a84 100644
--- a/TAO/tao/PI/Interceptor_List_T.cpp
+++ b/TAO/tao/PI/Interceptor_List_T.cpp
@@ -180,8 +180,7 @@ namespace TAO
0,
EINVAL
),
- CORBA::COMPLETED_NO
- );
+ CORBA::COMPLETED_NO);
}
}
diff --git a/TAO/tao/PI_Server/ServerInterceptorAdapter.cpp b/TAO/tao/PI_Server/ServerInterceptorAdapter.cpp
index d0cf73ac879..b2863450ee9 100644
--- a/TAO/tao/PI_Server/ServerInterceptorAdapter.cpp
+++ b/TAO/tao/PI_Server/ServerInterceptorAdapter.cpp
@@ -229,8 +229,7 @@ TAO::ServerRequestInterceptor_Adapter_Impl::receive_request (
size_t nargs,
TAO::Portable_Server::Servant_Upcall *servant_upcall,
CORBA::TypeCode_ptr const * exceptions,
- CORBA::ULong nexceptions
- )
+ CORBA::ULong nexceptions)
{
// This method implements an "intermediate" server side interception
// point. Interceptors are invoked in the same order they were
@@ -258,7 +257,7 @@ TAO::ServerRequestInterceptor_Adapter_Impl::receive_request (
try
{
- bool is_remote_request = !server_request.collocated ();
+ bool const is_remote_request = !server_request.collocated ();
for (size_t i = 0; i < server_request.interceptor_count (); ++i)
{
diff --git a/TAO/tao/PortableServer/Active_Policy_Strategies.h b/TAO/tao/PortableServer/Active_Policy_Strategies.h
index fd983213528..2e38ebd132e 100644
--- a/TAO/tao/PortableServer/Active_Policy_Strategies.h
+++ b/TAO/tao/PortableServer/Active_Policy_Strategies.h
@@ -53,8 +53,7 @@ namespace TAO
Active_Policy_Strategies (void);
void update (Cached_Policies &policies,
- TAO_Root_POA* poa
- );
+ TAO_Root_POA* poa);
void cleanup (void);
diff --git a/TAO/tao/PortableServer/LifespanStrategyPersistent.cpp b/TAO/tao/PortableServer/LifespanStrategyPersistent.cpp
index c20461a0a74..2ccf947ccf9 100644
--- a/TAO/tao/PortableServer/LifespanStrategyPersistent.cpp
+++ b/TAO/tao/PortableServer/LifespanStrategyPersistent.cpp
@@ -66,8 +66,7 @@ namespace TAO
// The user specified that the ImR should be used.
ImR_Client_Adapter *adapter =
ACE_Dynamic_Service<ImR_Client_Adapter>::instance (
- TAO_Root_POA::imr_client_adapter_name ()
- );
+ TAO_Root_POA::imr_client_adapter_name ());
#if !defined (TAO_AS_STATIC_LIBS)
// In case we build shared, try to load the ImR Client library, in a
@@ -109,8 +108,7 @@ namespace TAO
{
ImR_Client_Adapter *adapter =
ACE_Dynamic_Service<ImR_Client_Adapter>::instance (
- TAO_Root_POA::imr_client_adapter_name ()
- );
+ TAO_Root_POA::imr_client_adapter_name ());
if (adapter != 0)
{
@@ -154,8 +152,7 @@ namespace TAO
// The user specified that the ImR should be used.
ImR_Client_Adapter *adapter =
ACE_Dynamic_Service<ImR_Client_Adapter>::instance (
- TAO_Root_POA::imr_client_adapter_name ()
- );
+ TAO_Root_POA::imr_client_adapter_name ());
if (adapter == 0)
{
// couldn't load adapter, already reported error
diff --git a/TAO/tao/PortableServer/Object_Adapter.cpp b/TAO/tao/PortableServer/Object_Adapter.cpp
index 75454d77935..781a60c24b4 100644
--- a/TAO/tao/PortableServer/Object_Adapter.cpp
+++ b/TAO/tao/PortableServer/Object_Adapter.cpp
@@ -786,8 +786,7 @@ TAO_Object_Adapter::dispatch (TAO::ObjectKey &key,
0, // nargs
0, // servant_upcall
0, // exceptions
- 0 // nexceptions
- );
+ 0); // nexceptions
}
}
}
diff --git a/TAO/tao/PortableServer/POA_Cached_Policies.h b/TAO/tao/PortableServer/POA_Cached_Policies.h
index 93e502abd84..af484d586d1 100644
--- a/TAO/tao/PortableServer/POA_Cached_Policies.h
+++ b/TAO/tao/PortableServer/POA_Cached_Policies.h
@@ -60,8 +60,7 @@ namespace TAO
~Cached_Policies (void);
/// Update the cached policy values.
- void update (TAO_POA_Policy_Set &policy_set
- );
+ void update (TAO_POA_Policy_Set &policy_set);
/**
* @name Accessor methods to cached values.
@@ -116,8 +115,7 @@ namespace TAO
protected:
/// Helper method to update a particular policy.
- void update_policy (const CORBA::Policy_ptr policy
- );
+ void update_policy (const CORBA::Policy_ptr policy);
::PortableServer::ThreadPolicyValue thread_;
diff --git a/TAO/tao/RTPortableServer/RT_POA.cpp b/TAO/tao/RTPortableServer/RT_POA.cpp
index fff8a5119b9..7bb648c4e7f 100644
--- a/TAO/tao/RTPortableServer/RT_POA.cpp
+++ b/TAO/tao/RTPortableServer/RT_POA.cpp
@@ -285,8 +285,7 @@ TAO_RT_POA::key_to_stub_i (const TAO::ObjectKey &object_key,
type_id,
client_exposed_policies._retn (),
&filter,
- lanes[i]->resources ().acceptor_registry ()
- );
+ lanes[i]->resources ().acceptor_registry ());
}
ACE_ASSERT (0);
diff --git a/TAO/tao/RTScheduling/Current.cpp b/TAO/tao/RTScheduling/Current.cpp
index 0635fcc691b..53ea0dd8886 100644
--- a/TAO/tao/RTScheduling/Current.cpp
+++ b/TAO/tao/RTScheduling/Current.cpp
@@ -88,16 +88,14 @@ TAO_RTScheduler_Current::begin_scheduling_segment (
impl->begin_scheduling_segment (name,
sched_param,
- implicit_sched_param
- );
+ implicit_sched_param);
}
void
TAO_RTScheduler_Current::update_scheduling_segment (const char * name,
CORBA::Policy_ptr sched_param,
- CORBA::Policy_ptr implicit_sched_param
- )
+ CORBA::Policy_ptr implicit_sched_param)
{
TAO_RTScheduler_Current_i *impl = this->implementation ();
@@ -106,8 +104,7 @@ TAO_RTScheduler_Current::update_scheduling_segment (const char * name,
impl->update_scheduling_segment (name,
sched_param,
- implicit_sched_param
- );
+ implicit_sched_param);
}
void
@@ -123,8 +120,7 @@ TAO_RTScheduler_Current::end_scheduling_segment (const char * name)
return;
}
- impl->end_scheduling_segment (name
- );
+ impl->end_scheduling_segment (name);
}
RTScheduling::DistributableThread_ptr
@@ -162,8 +158,7 @@ TAO_RTScheduler_Current::spawn (RTScheduling::ThreadAction_ptr start,
sched_param,
implicit_sched_param,
stack_size,
- base_priority
- );
+ base_priority);
}
RTScheduling::Current::IdType *
@@ -301,8 +296,7 @@ TAO_RTScheduler_Current_i::TAO_RTScheduler_Current_i (
orb->object_ref_table ().resolve_initial_reference (
"RTScheduler");
- this->scheduler_ = RTScheduling::Scheduler::_narrow (scheduler_obj.in ()
- );
+ this->scheduler_ = RTScheduling::Scheduler::_narrow (scheduler_obj.in ());
}
TAO_RTScheduler_Current_i::~TAO_RTScheduler_Current_i (void)
@@ -335,8 +329,7 @@ TAO_RTScheduler_Current_i::begin_scheduling_segment(
this->scheduler_->begin_new_scheduling_segment (this->guid_,
name,
sched_param,
- implicit_sched_param
- );
+ implicit_sched_param);
if (CORBA::is_nil (this->dt_.in ()))
//Create new DT.
@@ -371,8 +364,7 @@ TAO_RTScheduler_Current_i::begin_scheduling_segment(
(this->guid_,
name,
sched_param,
- implicit_sched_param
- );
+ implicit_sched_param);
TAO_TSS_Resources *tss =
TAO_TSS_Resources::instance ();
@@ -413,8 +405,7 @@ TAO_RTScheduler_Current_i::update_scheduling_segment (const char * name,
this->scheduler_->update_scheduling_segment (this->guid_,
name,
sched_param,
- implicit_sched_param
- );
+ implicit_sched_param);
// Remember the new values.
this->name_ = CORBA::string_dup (name);
@@ -435,9 +426,7 @@ TAO_RTScheduler_Current_i::end_scheduling_segment (const char * name)
{
// Let the scheduler know that the DT is
// terminating.
- this->scheduler_->end_scheduling_segment(this->guid_,
- name
- );
+ this->scheduler_->end_scheduling_segment(this->guid_, name);
// Cleanup DT.
this->cleanup_DT ();
@@ -452,8 +441,7 @@ TAO_RTScheduler_Current_i::end_scheduling_segment (const char * name)
// scheduling segment.
this->scheduler_->end_nested_scheduling_segment (this->guid_,
name,
- this->previous_current_->sched_param_.in ()
- );
+ this->previous_current_->sched_param_.in ());
// Cleanup current.
this->cleanup_current ();
@@ -540,8 +528,7 @@ DTTask::activate_task (RTCORBA::Priority base_priority,
TAO_OBJID_PRIORITYMAPPINGMANAGER);
RTCORBA::PriorityMappingManager_var mapping_manager =
- RTCORBA::PriorityMappingManager::_narrow (object.in ()
- );
+ RTCORBA::PriorityMappingManager::_narrow (object.in ());
RTCORBA::PriorityMapping *pm =
mapping_manager->mapping ();
@@ -608,15 +595,12 @@ DTTask::svc (void)
this->current_->begin_scheduling_segment (this->name_.in (),
this->sched_param_.in (),
- this->implicit_sched_param_.in ()
- );
+ this->implicit_sched_param_.in ());
// Invoke entry point into new DT.
- this->start_->_cxx_do (this->data_
- );
+ this->start_->_cxx_do (this->data_);
- this->current_->end_scheduling_segment (this->name_.in ()
- );
+ this->current_->end_scheduling_segment (this->name_.in ());
}
catch (const ::CORBA::Exception& ex)
{
@@ -692,8 +676,7 @@ TAO_RTScheduler_Current_i::cancel_thread (void)
// Let the scheduler know that the thread has
// been cancelled.
- this->scheduler_->cancel (this->guid_
- );
+ this->scheduler_->cancel (this->guid_);
this->cleanup_DT ();
diff --git a/TAO/tao/RTScheduling/Request_Interceptor.h b/TAO/tao/RTScheduling/Request_Interceptor.h
index 5eaffea8a89..48bfe663054 100644
--- a/TAO/tao/RTScheduling/Request_Interceptor.h
+++ b/TAO/tao/RTScheduling/Request_Interceptor.h
@@ -20,7 +20,6 @@ class TAO_RTScheduler_Export Client_Interceptor:
public ::CORBA::LocalObject
{
public:
-
// Client_Interceptor (RTScheduling::Current_ptr current);
virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri);
@@ -37,14 +36,12 @@ public:
virtual void destroy (void);
static const IOP::ServiceId SchedulingInfo;
-
};
class TAO_RTScheduler_Export Server_Interceptor :
public PortableInterceptor::ServerRequestInterceptor,
public ::CORBA::LocalObject
{
-
public:
Server_Interceptor (TAO_RTScheduler_Current_ptr current);
@@ -66,7 +63,6 @@ public:
private:
TAO_RTScheduler_Current_var current_;
-
};
TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ServerRequestInterceptor_Adapter.h b/TAO/tao/ServerRequestInterceptor_Adapter.h
index 8377f130a47..9c2c354d595 100644
--- a/TAO/tao/ServerRequestInterceptor_Adapter.h
+++ b/TAO/tao/ServerRequestInterceptor_Adapter.h
@@ -91,7 +91,7 @@ namespace TAO
/// This method implements the "intermediate" server side
/// interception point if the above #ifdef is set to 1 and a
- /// starting intercetion point if it is not set to 1.
+ /// starting interception point if it is not set to 1.
///
/// @note This method should have been the "starting" interception
/// point according to the interceptor spec. This will be
diff --git a/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp b/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp
index 822dcde97a4..ee4e1641e7e 100644
--- a/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp
+++ b/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp
@@ -1209,8 +1209,7 @@ TAO_TypeCodeFactory_i::struct_except_tc_common (
CORBA::TypeCode_ptr const member_tc = members[index].type.in ();
CORBA::Boolean const valid_member =
- this->valid_content_type (member_tc
- );
+ this->valid_content_type (member_tc);
if (!valid_member)
{