diff options
author | jtc <jtc@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2005-01-27 19:44:49 +0000 |
---|---|---|
committer | jtc <jtc@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2005-01-27 19:44:49 +0000 |
commit | eb17bf7f11e5f9df768e4951baf92da2566ddfd9 (patch) | |
tree | 7c5edd25e1ba9abeb35eefeab15cbecbcdcca9a0 /TAO/orbsvcs | |
parent | 0cc711b8c1613db64b11bba749b8840ded5431f8 (diff) | |
download | ATCD-eb17bf7f11e5f9df768e4951baf92da2566ddfd9.tar.gz |
ChangeLogTag: Thu Jan 27 11:39:00 2005 J.T. Conklin <jtc@acorntoolworks.com>
Diffstat (limited to 'TAO/orbsvcs')
245 files changed, 834 insertions, 834 deletions
diff --git a/TAO/orbsvcs/Event_Service/Event_Service.cpp b/TAO/orbsvcs/Event_Service/Event_Service.cpp index 221da0ab139..8c86a6eae4f 100644 --- a/TAO/orbsvcs/Event_Service/Event_Service.cpp +++ b/TAO/orbsvcs/Event_Service/Event_Service.cpp @@ -311,7 +311,7 @@ Event_Service::run (int argc, ACE_TCHAR* argv[]) { ACE_OS::fprintf (pidf, "%ld\n", - static_cast<long>(ACE_OS::getpid ())); + static_cast<long> (ACE_OS::getpid ())); ACE_OS::fclose (pidf); } } diff --git a/TAO/orbsvcs/FT_ReplicationManager/FT_FaultConsumer.cpp b/TAO/orbsvcs/FT_ReplicationManager/FT_FaultConsumer.cpp index 68e529f523b..41aa53029ed 100755 --- a/TAO/orbsvcs/FT_ReplicationManager/FT_FaultConsumer.cpp +++ b/TAO/orbsvcs/FT_ReplicationManager/FT_FaultConsumer.cpp @@ -234,7 +234,7 @@ void TAO::FT_FaultConsumer::push_structured_event ( ACE_TEXT ( "TAO::FT_FaultConsumer::push_structured_event: " "Received Fault notification(%d):\n"), - static_cast<unsigned int>(this->notifications_) + static_cast<unsigned int> (this->notifications_) )); } diff --git a/TAO/orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.cpp b/TAO/orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.cpp index de979378f0e..b8013340481 100644 --- a/TAO/orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.cpp +++ b/TAO/orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.cpp @@ -435,7 +435,7 @@ void TAO::FT_FaultDetectorFactory_i::remove_detector(CORBA::ULong id, TAO::Fault { ACE_ERROR (( LM_ERROR, "Remove detector %d mismatch.\n", - static_cast<int>(id) + static_cast<int> (id) )); } } @@ -443,8 +443,8 @@ void TAO::FT_FaultDetectorFactory_i::remove_detector(CORBA::ULong id, TAO::Fault { ACE_ERROR (( LM_ERROR, "Attempt to remove invalid detector %d. Limit %d.\n", - static_cast<int>(id), - static_cast<int>(this->detectors_.size()) + static_cast<int> (id), + static_cast<int> (this->detectors_.size()) )); } } @@ -566,7 +566,7 @@ CORBA::Object_ptr TAO::FT_FaultDetectorFactory_i::create_object ( if (::TAO::find (decoder, ::FT::FT_DOMAIN_ID, domain_id_string) ) { // NOTE the assumption that we can assign a char * to a domain id - domain_id = const_cast<char *>(domain_id_string); + domain_id = const_cast<char *> (domain_id_string); } else { @@ -597,7 +597,7 @@ CORBA::Object_ptr TAO::FT_FaultDetectorFactory_i::create_object ( const char * object_type_string; if (::TAO::find (decoder, ::FT::FT_TYPE_ID, object_type_string)) { - object_type = const_cast<char *>(object_type_string); + object_type = const_cast<char *> (object_type_string); } else { diff --git a/TAO/orbsvcs/Fault_Notifier/FT_Notifier_i.cpp b/TAO/orbsvcs/Fault_Notifier/FT_Notifier_i.cpp index 3c8eea5a088..fdf261d9ea8 100644 --- a/TAO/orbsvcs/Fault_Notifier/FT_Notifier_i.cpp +++ b/TAO/orbsvcs/Fault_Notifier/FT_Notifier_i.cpp @@ -685,7 +685,7 @@ void TAO::FT_FaultNotifier_i::disconnect_consumer ( { METHOD_ENTRY(TAO::FT_FaultNotifier_i::disconnect_consumer); - size_t index = static_cast<size_t>(connection); + size_t index = static_cast<size_t> (connection); if (index < this->proxy_infos_.size()) { ProxyInfo & info = this->proxy_infos_[index]; @@ -736,8 +736,8 @@ void TAO::FT_FaultNotifier_i::disconnect_consumer ( { ACE_ERROR((LM_ERROR, "FaultNotifier (%P|%t) quit on idle: connects %d, disconnects %d\n", - static_cast<unsigned int>(this->consumer_connects_), - static_cast<unsigned int>(this->consumer_disconnects_) + static_cast<unsigned int> (this->consumer_connects_), + static_cast<unsigned int> (this->consumer_disconnects_) )); this->poa_->deactivate_object (this->object_id_.in () ACE_ENV_ARG_PARAMETER); diff --git a/TAO/orbsvcs/IFR_Service/be_init.cpp b/TAO/orbsvcs/IFR_Service/be_init.cpp index b6dda7ac92e..017c1402ec3 100644 --- a/TAO/orbsvcs/IFR_Service/be_init.cpp +++ b/TAO/orbsvcs/IFR_Service/be_init.cpp @@ -31,7 +31,7 @@ BE_save_orb_args (int &argc, char *argv[]) // If the arg ends with either .idl or .pidl, we're done. - int len = static_cast<int>(tmp.length ()); + int len = static_cast<int> (tmp.length ()); int pos = tmp.find (".idl"); if (len - pos == 4) diff --git a/TAO/orbsvcs/IFR_Service/ifr_adding_visitor.cpp b/TAO/orbsvcs/IFR_Service/ifr_adding_visitor.cpp index e90b47551ae..9c1de0fad80 100644 --- a/TAO/orbsvcs/IFR_Service/ifr_adding_visitor.cpp +++ b/TAO/orbsvcs/IFR_Service/ifr_adding_visitor.cpp @@ -361,7 +361,7 @@ ifr_adding_visitor::visit_interface (AST_Interface *node) } } - CORBA::ULong n_parents = static_cast<CORBA::ULong>(node->n_inherits ()); + CORBA::ULong n_parents = static_cast<CORBA::ULong> (node->n_inherits ()); CORBA::InterfaceDefSeq bases (n_parents); bases.length (n_parents); @@ -739,15 +739,15 @@ ifr_adding_visitor::visit_valuetype (AST_ValueType *node) // Truncatable, abstract, custom. - extant_def->is_abstract (static_cast<CORBA::Boolean>(node->is_abstract ()) + extant_def->is_abstract (static_cast<CORBA::Boolean> (node->is_abstract ()) ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - extant_def->is_truncatable (static_cast<CORBA::Boolean>(node->truncatable ()) + extant_def->is_truncatable (static_cast<CORBA::Boolean> (node->truncatable ()) ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - extant_def->is_custom (static_cast<CORBA::Boolean>(node->custom ()) + extant_def->is_custom (static_cast<CORBA::Boolean> (node->custom ()) ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; @@ -868,7 +868,7 @@ ifr_adding_visitor::visit_valuetype_fwd (AST_ValueTypeFwd *node) CORBA::Container::_nil (); CORBA::Boolean abstract = - static_cast<CORBA::Boolean>(v->is_abstract ()); + static_cast<CORBA::Boolean> (v->is_abstract ()); if (be_global->ifr_scopes ().top (current_scope) == 0) { @@ -1436,15 +1436,15 @@ ifr_adding_visitor::visit_eventtype (AST_EventType *node) // Truncatable, abstract, custom. - extant_def->is_abstract (static_cast<CORBA::Boolean>(node->is_abstract ()) + extant_def->is_abstract (static_cast<CORBA::Boolean> (node->is_abstract ()) ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - extant_def->is_truncatable (static_cast<CORBA::Boolean>(node->truncatable ()) + extant_def->is_truncatable (static_cast<CORBA::Boolean> (node->truncatable ()) ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - extant_def->is_custom (static_cast<CORBA::Boolean>(node->custom ()) + extant_def->is_custom (static_cast<CORBA::Boolean> (node->custom ()) ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; @@ -1574,7 +1574,7 @@ ifr_adding_visitor::visit_eventtype_fwd (AST_EventTypeFwd *node) ACE_TRY_CHECK; CORBA::Boolean abstract = - static_cast<CORBA::Boolean>(v->is_abstract ()); + static_cast<CORBA::Boolean> (v->is_abstract ()); this->ir_current_ = ccm_scope->create_event ( @@ -1856,7 +1856,7 @@ ifr_adding_visitor::visit_enum (AST_Enum *node) if (CORBA::is_nil (prev_def.in ())) { CORBA::ULong member_count = - static_cast<CORBA::ULong>(node->member_count ()); + static_cast<CORBA::ULong> (node->member_count ()); CORBA::EnumMemberSeq members (member_count); members.length (member_count); @@ -2341,7 +2341,7 @@ ifr_adding_visitor::visit_string (AST_String *node) AST_Expression::AST_ExprValue *ev = ex->ev (); - CORBA::ULong bound = static_cast<CORBA::ULong>(ev->u.ulval); + CORBA::ULong bound = static_cast<CORBA::ULong> (ev->u.ulval); ACE_DECLARE_NEW_CORBA_ENV; ACE_TRY @@ -2698,10 +2698,10 @@ ifr_adding_visitor::load_any (AST_Expression::AST_ExprValue *ev, any <<= ev->u.usval; break; case AST_Expression::EV_long: - any <<= static_cast<CORBA::Long>(ev->u.lval); + any <<= static_cast<CORBA::Long> (ev->u.lval); break; case AST_Expression::EV_ulong: - any <<= static_cast<CORBA::ULong>(ev->u.ulval); + any <<= static_cast<CORBA::ULong> (ev->u.ulval); break; #if !defined (ACE_LACKS_LONGLONG_T) case AST_Expression::EV_longlong: @@ -2746,7 +2746,7 @@ ifr_adding_visitor::load_any (AST_Expression::AST_ExprValue *ev, for (size_t i = 0; i < len; ++i) { - wstr[i] = static_cast<CORBA::WChar>(str[i]); + wstr[i] = static_cast<CORBA::WChar> (str[i]); } wstr[len] = 0; @@ -2800,7 +2800,7 @@ int ifr_adding_visitor::create_interface_def (AST_Interface *node ACE_ENV_ARG_DECL) { - CORBA::ULong n_parents = static_cast<CORBA::ULong>(node->n_inherits ()); + CORBA::ULong n_parents = static_cast<CORBA::ULong> (node->n_inherits ()); AST_Interface **parents = node->inherits (); CORBA::Contained_var result; CORBA::AbstractInterfaceDefSeq abs_bases; @@ -3072,10 +3072,10 @@ ifr_adding_visitor::create_value_def (AST_ValueType *node node->repoID (), node->local_name ()->get_string (), node->version (), - static_cast<CORBA::Boolean>(node->custom ()), - static_cast<CORBA::Boolean>(node->is_abstract ()), + static_cast<CORBA::Boolean> (node->custom ()), + static_cast<CORBA::Boolean> (node->is_abstract ()), base_value.in (), - static_cast<CORBA::Boolean>(node->truncatable ()), + static_cast<CORBA::Boolean> (node->truncatable ()), abstract_base_values, supported_interfaces, initializers @@ -3457,10 +3457,10 @@ ifr_adding_visitor::create_event_def (AST_EventType *node node->repoID (), node->local_name ()->get_string (), node->version (), - static_cast<CORBA::Boolean>(node->custom ()), - static_cast<CORBA::Boolean>(node->is_abstract ()), + static_cast<CORBA::Boolean> (node->custom ()), + static_cast<CORBA::Boolean> (node->is_abstract ()), base_value.in (), - static_cast<CORBA::Boolean>(node->truncatable ()), + static_cast<CORBA::Boolean> (node->truncatable ()), abstract_base_values, supported_interfaces, initializers @@ -3844,7 +3844,7 @@ ifr_adding_visitor::fill_abstract_base_values (CORBA::ValueDefSeq &result, if (s_length > 0) { AST_Interface **list = node->inherits (); - CORBA::ULong u_length = static_cast<CORBA::ULong>(s_length); + CORBA::ULong u_length = static_cast<CORBA::ULong> (s_length); idl_bool first_abs = list[0]->is_abstract (); result.length (first_abs ? u_length : u_length - 1); @@ -3932,7 +3932,7 @@ ifr_adding_visitor::fill_interfaces (CORBA::InterfaceDefSeq &result, // existing entries, if any, from the repository. if (length > 0) { - CORBA::ULong u_length = static_cast<CORBA::ULong>(length); + CORBA::ULong u_length = static_cast<CORBA::ULong> (length); result.length (u_length); for (CORBA::ULong i = 0; i < u_length; ++i) @@ -3987,7 +3987,7 @@ ifr_adding_visitor::fill_initializers (CORBA::ExtInitializerSeq &result, for (CORBA::ULong i = 0; i < n_factories; ++i) { result[i].name = factories[i]->local_name ()->get_string (); - n_args = static_cast<CORBA::ULong>(factories[i]->argument_count ()); + n_args = static_cast<CORBA::ULong> (factories[i]->argument_count ()); result[i].members.length (n_args); // The factory should have nothing in its scope but args. @@ -4019,7 +4019,7 @@ ifr_adding_visitor::fill_initializers (CORBA::ExtInitializerSeq &result, } CORBA::ULong n_exceptions = - static_cast<CORBA::ULong>(factories[i]->n_exceptions ()); + static_cast<CORBA::ULong> (factories[i]->n_exceptions ()); result[i].exceptions.length (n_exceptions); index = 0; @@ -4100,7 +4100,7 @@ ifr_adding_visitor::fill_exceptions (CORBA::ExceptionDefSeq &result, return; } - result.length (static_cast<CORBA::ULong>(list->length ())); + result.length (static_cast<CORBA::ULong> (list->length ())); CORBA::ULong index = 0; AST_Decl *d = 0; CORBA::Contained_var holder; @@ -4133,7 +4133,7 @@ ifr_adding_visitor::fill_params (CORBA::ParDescriptionSeq &result, ACE_ENV_ARG_DECL) { AST_Argument *arg = 0; - CORBA::ULong n_args = static_cast<CORBA::ULong>(node->argument_count ()); + CORBA::ULong n_args = static_cast<CORBA::ULong> (node->argument_count ()); result.length (n_args); CORBA::ULong index = 0; CORBA::Contained_var holder; @@ -4230,7 +4230,7 @@ ifr_adding_visitor::visit_all_uses (AST_Component *node, local_name, tmp->impl->version (), interface_type.in (), - static_cast<CORBA::Boolean>(tmp->is_multiple) + static_cast<CORBA::Boolean> (tmp->is_multiple) ACE_ENV_ARG_PARAMETER); ACE_CHECK; } diff --git a/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_exception.cpp b/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_exception.cpp index 2b8b8ae0d58..be61ce0f0a9 100644 --- a/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_exception.cpp +++ b/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_exception.cpp @@ -42,7 +42,7 @@ ifr_adding_visitor_exception::visit_scope (UTL_Scope *node) AST_Exception *e = AST_Exception::narrow_from_scope (node); - CORBA::ULong nfields = static_cast<CORBA::ULong>(e->nfields ()); + CORBA::ULong nfields = static_cast<CORBA::ULong> (e->nfields ()); this->members_.length (nfields); @@ -333,7 +333,7 @@ ifr_adding_visitor_exception::visit_enum (AST_Enum *node) // If not, create a new entry. if (CORBA::is_nil (prev_def.in ())) { - CORBA::ULong member_count = static_cast<CORBA::ULong>(node->member_count ()); + CORBA::ULong member_count = static_cast<CORBA::ULong> (node->member_count ()); CORBA::EnumMemberSeq members (member_count); members.length (member_count); diff --git a/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_operation.cpp b/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_operation.cpp index 4a4ab2764e9..1a3972ea18c 100644 --- a/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_operation.cpp +++ b/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_operation.cpp @@ -52,7 +52,7 @@ ifr_adding_visitor_operation::visit_operation (AST_Operation *node) // will look up each parameter and add its repository entry to // our params_ member. - CORBA::ULong length = static_cast<CORBA::ULong>(node->argument_count ()); + CORBA::ULong length = static_cast<CORBA::ULong> (node->argument_count ()); this->params_.length (length); @@ -76,7 +76,7 @@ ifr_adding_visitor_operation::visit_operation (AST_Operation *node) if (excepts != 0) { - length = static_cast<CORBA::ULong>(excepts->length ()); + length = static_cast<CORBA::ULong> (excepts->length ()); } else { @@ -112,7 +112,7 @@ ifr_adding_visitor_operation::visit_operation (AST_Operation *node) if (ctx_list != 0) { - length = static_cast<CORBA::ULong>(ctx_list->length ()); + length = static_cast<CORBA::ULong> (ctx_list->length ()); } else { diff --git a/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_structure.cpp b/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_structure.cpp index d9dc6bac82d..b65ad0a9442 100644 --- a/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_structure.cpp +++ b/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_structure.cpp @@ -39,7 +39,7 @@ ifr_adding_visitor_structure::visit_scope (UTL_Scope *node) } AST_Structure *s = AST_Structure::narrow_from_scope (node); - CORBA::ULong nfields = static_cast<CORBA::ULong>(s->nfields ()); + CORBA::ULong nfields = static_cast<CORBA::ULong> (s->nfields ()); this->members_.length (nfields); AST_Field **f = 0; @@ -293,7 +293,7 @@ ifr_adding_visitor_structure::visit_enum (AST_Enum *node) // If not, create a new entry. if (CORBA::is_nil (prev_def.in ())) { - CORBA::ULong member_count = static_cast<CORBA::ULong>(node->member_count ()); + CORBA::ULong member_count = static_cast<CORBA::ULong> (node->member_count ()); CORBA::EnumMemberSeq members (member_count); members.length (member_count); diff --git a/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_union.cpp b/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_union.cpp index 21460b85e59..04d82d630f3 100644 --- a/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_union.cpp +++ b/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_union.cpp @@ -44,7 +44,7 @@ ifr_adding_visitor_union::visit_scope (UTL_Scope *node) AST_Union *u = AST_Union::narrow_from_scope (node); - CORBA::ULong nfields = static_cast<CORBA::ULong>(u->nfields ()); + CORBA::ULong nfields = static_cast<CORBA::ULong> (u->nfields ()); this->members_.length (nfields); @@ -304,7 +304,7 @@ ifr_adding_visitor_union::visit_enum (AST_Enum *node) // If not, create a new entry. if (CORBA::is_nil (prev_def.in ())) { - CORBA::ULong member_count = static_cast<CORBA::ULong>(node->member_count ()); + CORBA::ULong member_count = static_cast<CORBA::ULong> (node->member_count ()); CORBA::EnumMemberSeq members (member_count); members.length (member_count); diff --git a/TAO/orbsvcs/ImplRepo_Service/Forwarder.cpp b/TAO/orbsvcs/ImplRepo_Service/Forwarder.cpp index 4b1f43e465c..73d9ad0c420 100644 --- a/TAO/orbsvcs/ImplRepo_Service/Forwarder.cpp +++ b/TAO/orbsvcs/ImplRepo_Service/Forwarder.cpp @@ -98,7 +98,7 @@ ImR_Forwarder::preinvoke (const PortableServer::ObjectId &, CORBA::String_var key_str; // Unlike POA Current, this implementation cannot be cached. TAO_POA_Current* tao_current = - dynamic_cast<TAO_POA_Current*>(this->poa_current_var_.in ()); + dynamic_cast<TAO_POA_Current*> (this->poa_current_var_.in ()); ACE_ASSERT(tao_current != 0); TAO_POA_Current_Impl* impl = tao_current->implementation (); TAO::ObjectKey::encode_sequence_to_string (key_str.out(), impl->object_key ()); diff --git a/TAO/orbsvcs/ImplRepo_Service/Locator_Repository.cpp b/TAO/orbsvcs/ImplRepo_Service/Locator_Repository.cpp index 89d558e9203..07646142d8d 100644 --- a/TAO/orbsvcs/ImplRepo_Service/Locator_Repository.cpp +++ b/TAO/orbsvcs/ImplRepo_Service/Locator_Repository.cpp @@ -81,7 +81,7 @@ static void loadServersAsBinary(ACE_Configuration& config, Locator_Repository::S config.get_string_value (key, IOR, ior); config.get_integer_value(key, START_LIMIT, start_limit); - ImplementationRepository::ActivationMode amode = static_cast<ImplementationRepository::ActivationMode>(amodeint); + ImplementationRepository::ActivationMode amode = static_cast<ImplementationRepository::ActivationMode> (amodeint); ImplementationRepository::EnvironmentList env_vars = ImR_Utils::parseEnvList(envstr); diff --git a/TAO/orbsvcs/LoadBalancer/LoadManager.cpp b/TAO/orbsvcs/LoadBalancer/LoadManager.cpp index 0b8ad8bceb0..7685bc0ddb5 100644 --- a/TAO/orbsvcs/LoadBalancer/LoadManager.cpp +++ b/TAO/orbsvcs/LoadBalancer/LoadManager.cpp @@ -89,7 +89,7 @@ extern "C" void * TAO_LB_run_load_manager (void * orb_arg) { - CORBA::ORB_ptr orb = static_cast<CORBA::ORB_ptr>(orb_arg); + CORBA::ORB_ptr orb = static_cast<CORBA::ORB_ptr> (orb_arg); // Only the main thread should handle signals. // diff --git a/TAO/orbsvcs/LoadBalancer/LoadMonitor.cpp b/TAO/orbsvcs/LoadBalancer/LoadMonitor.cpp index 8d78fde82c2..b9ecae44513 100644 --- a/TAO/orbsvcs/LoadBalancer/LoadMonitor.cpp +++ b/TAO/orbsvcs/LoadBalancer/LoadMonitor.cpp @@ -111,7 +111,7 @@ extern "C" void * TAO_LB_run_load_monitor (void * orb_arg) { - CORBA::ORB_ptr orb = static_cast<CORBA::ORB_ptr>(orb_arg); + CORBA::ORB_ptr orb = static_cast<CORBA::ORB_ptr> (orb_arg); // Only the main thread should handle signals. // diff --git a/TAO/orbsvcs/Logging_Service/Basic_Logging_Service/Basic_Logging_Service.cpp b/TAO/orbsvcs/Logging_Service/Basic_Logging_Service/Basic_Logging_Service.cpp index 3070adf1f28..783b9024ebf 100644 --- a/TAO/orbsvcs/Logging_Service/Basic_Logging_Service/Basic_Logging_Service.cpp +++ b/TAO/orbsvcs/Logging_Service/Basic_Logging_Service/Basic_Logging_Service.cpp @@ -146,7 +146,7 @@ Basic_Logging_Service::startup (int argc, char *argv[] { ACE_OS::fprintf (pidf, "%ld\n", - static_cast<long>(ACE_OS::getpid ())); + static_cast<long> (ACE_OS::getpid ())); ACE_OS::fclose (pidf); } } diff --git a/TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.cpp b/TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.cpp index 80b1228f150..5aefec86a75 100644 --- a/TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.cpp +++ b/TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.cpp @@ -147,7 +147,7 @@ Event_Logging_Service::startup (int argc, char *argv[] { ACE_OS::fprintf (pidf, "%ld\n", - static_cast<long>(ACE_OS::getpid ())); + static_cast<long> (ACE_OS::getpid ())); ACE_OS::fclose (pidf); } } diff --git a/TAO/orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp b/TAO/orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp index 17c23f374ff..70d68573c51 100644 --- a/TAO/orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp +++ b/TAO/orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp @@ -174,7 +174,7 @@ Notify_Logging_Service::init (int argc, char *argv[] { ACE_OS::fprintf (pidf, "%ld\n", - static_cast<long>(ACE_OS::getpid ())); + static_cast<long> (ACE_OS::getpid ())); ACE_OS::fclose (pidf); } } diff --git a/TAO/orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.cpp b/TAO/orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.cpp index 52d0a29d174..e1008732b7a 100644 --- a/TAO/orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.cpp +++ b/TAO/orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.cpp @@ -234,7 +234,7 @@ RTEvent_Logging_Service::run (int argc, char* argv[]) { ACE_OS::fprintf (pidf, "%ld\n", - static_cast<long>(ACE_OS::getpid ())); + static_cast<long> (ACE_OS::getpid ())); ACE_OS::fclose (pidf); } } diff --git a/TAO/orbsvcs/PSS/PSDL_Datastore.cpp b/TAO/orbsvcs/PSS/PSDL_Datastore.cpp index 1c0a0704d2d..26124e12b8d 100644 --- a/TAO/orbsvcs/PSS/PSDL_Datastore.cpp +++ b/TAO/orbsvcs/PSS/PSDL_Datastore.cpp @@ -164,7 +164,7 @@ TAO_PSDL_Datastore::create_index (void) // memory-mapped file we know it's already initialized. if (this->allocator_->find (TAO_PERSISTENT_NAME_OBJ_MAP, name_obj_map) == 0) { - this->obj_ref_map_ = static_cast<NAME_OBJ_REF_MAP *>(name_obj_map); + this->obj_ref_map_ = static_cast<NAME_OBJ_REF_MAP *> (name_obj_map); } else { diff --git a/TAO/orbsvcs/PSS/PSDL_Interface_Visitor.cpp b/TAO/orbsvcs/PSS/PSDL_Interface_Visitor.cpp index 5b6b6968b1d..689a44642ae 100644 --- a/TAO/orbsvcs/PSS/PSDL_Interface_Visitor.cpp +++ b/TAO/orbsvcs/PSS/PSDL_Interface_Visitor.cpp @@ -1900,7 +1900,7 @@ TAO_PSDL_Interface_Visitor::gen_code_for_si (void) ps_si->nl (); *ps_si << "(ptrdiff_t,"; ps_si->nl (); *ps_si << "&" << this->interface_name_ << "::_tao_class_id))"; ps_si->nl (); - *ps_si << "retv = reinterpret_cast<void*>(this);"; + *ps_si << "retv = reinterpret_cast<void*> (this);"; ps_si->decr_indent (0); ps_si->nl (); @@ -1913,7 +1913,7 @@ TAO_PSDL_Interface_Visitor::gen_code_for_si (void) *ps_si << "retv = ACE_reinterpret_cast (void *,"; ps_si->incr_indent (0); ps_si->nl (); - *ps_si << "static_cast<CORBA::Object_ptr>(this));"; + *ps_si << "static_cast<CORBA::Object_ptr> (this));"; ps_si->decr_indent (0); ps_si->decr_indent (0); diff --git a/TAO/orbsvcs/PSS/PSDL_Struct_Visitor.cpp b/TAO/orbsvcs/PSS/PSDL_Struct_Visitor.cpp index 08866a6b92e..20d21d2d669 100644 --- a/TAO/orbsvcs/PSS/PSDL_Struct_Visitor.cpp +++ b/TAO/orbsvcs/PSS/PSDL_Struct_Visitor.cpp @@ -437,7 +437,7 @@ TAO_PSDL_Struct_Visitor::gen_code_for_si (void) ps_si->incr_indent (0); ps_si->nl (); *ps_si << "_tc_" << this->struct_name_ << ","; ps_si->nl (); *ps_si << "1,"; ps_si->nl (); - *ps_si << "static_cast<void *>(tmp),"; ps_si->nl (); + *ps_si << "static_cast<void *> (tmp),"; ps_si->nl (); *ps_si << this->struct_name_ << "::_tao_any_destructor"; ps_si->decr_indent (0); ps_si->nl (); diff --git a/TAO/orbsvcs/Scheduling_Service/Scheduling_Service.cpp b/TAO/orbsvcs/Scheduling_Service/Scheduling_Service.cpp index 962b1b64680..5f933987075 100644 --- a/TAO/orbsvcs/Scheduling_Service/Scheduling_Service.cpp +++ b/TAO/orbsvcs/Scheduling_Service/Scheduling_Service.cpp @@ -157,7 +157,7 @@ TAO_Scheduling_Service::init (int argc, ACE_TCHAR* argv[]) { ACE_OS::fprintf (pidf, ACE_LIB_TEXT("%ld\n"), - static_cast<long>(ACE_OS::getpid ())); + static_cast<long> (ACE_OS::getpid ())); ACE_OS::fclose (pidf); } } diff --git a/TAO/orbsvcs/examples/FaultTolerance/RolyPoly/ReplicaController.cpp b/TAO/orbsvcs/examples/FaultTolerance/RolyPoly/ReplicaController.cpp index 11669f43eff..ece15d8bcb8 100644 --- a/TAO/orbsvcs/examples/FaultTolerance/RolyPoly/ReplicaController.cpp +++ b/TAO/orbsvcs/examples/FaultTolerance/RolyPoly/ReplicaController.cpp @@ -444,7 +444,7 @@ namespace ACE_ENV_ARG_PARAMETER); ACE_CHECK; - TAO_InputCDR cdr (reinterpret_cast<const char*>(svc->context_data.get_buffer ()), + TAO_InputCDR cdr (reinterpret_cast<const char*> (svc->context_data.get_buffer ()), svc->context_data.length ()); CORBA::Boolean byte_order; @@ -455,7 +455,7 @@ namespace ACE_THROW (CORBA::BAD_CONTEXT ()); } - cdr.reset_byte_order (static_cast<int>(byte_order)); + cdr.reset_byte_order (static_cast<int> (byte_order)); // Funny, the following two lines should normally translate // just to one ctor call. But because we have to use this diff --git a/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.cpp b/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.cpp index bc789ded026..2cd91ec89cd 100644 --- a/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.cpp @@ -2866,7 +2866,7 @@ TAO_StreamEndPoint_A::multiconnect (AVStreams::streamQoS &stream_qos, result = this->mcast_entry_map_.find (mcast_key, entry); if (result == 0) { - mcast_addr = dynamic_cast<ACE_INET_Addr *>(entry->address ()); + mcast_addr = dynamic_cast<ACE_INET_Addr *> (entry->address ()); char str_addr [BUFSIZ]; result = mcast_addr->addr_to_string (str_addr, BUFSIZ); if (result < 0) @@ -3066,7 +3066,7 @@ TAO_StreamEndPoint_B::multiconnect (AVStreams::streamQoS &stream_qos, { TAO_FlowSpec_Entry *mcast_entry = 0; ACE_INET_Addr *mcast_addr; - mcast_addr = dynamic_cast<ACE_INET_Addr *>(forward_entry->address ()); + mcast_addr = dynamic_cast<ACE_INET_Addr *> (forward_entry->address ()); if (mcast_addr == 0) ACE_ERROR_RETURN ((LM_ERROR, "TAO_StreamEndPoint_B::multiconnect::Address missing in flowspec_entry\n"), 0); result = this->mcast_entry_map_.find (mcast_key, mcast_entry); @@ -5231,7 +5231,7 @@ TAO_Tokenizer::parse (const char *string, char delimiter) else { substring = new_string.substring (pos); - pos = static_cast<int>(new_string.length ()); + pos = static_cast<int> (new_string.length ()); } char *token = CORBA::string_dup (substring.c_str ()); result = this->token_array_.set (token, count); @@ -5281,7 +5281,7 @@ TAO_Tokenizer::token (void) int TAO_Tokenizer::num_tokens (void) { - return static_cast<int>(this->num_tokens_); + return static_cast<int> (this->num_tokens_); } const char * diff --git a/TAO/orbsvcs/orbsvcs/AV/AV_Core.cpp b/TAO/orbsvcs/orbsvcs/AV/AV_Core.cpp index 7a8b7b82606..05d7f1d7d6c 100644 --- a/TAO/orbsvcs/orbsvcs/AV/AV_Core.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/AV_Core.cpp @@ -411,7 +411,7 @@ TAO_AV_Core::init_forward_flows (TAO_Base_StreamEndPoint *endpoint, } } - AVStreams::flowSpec new_flowspec (static_cast<CORBA::ULong>(flow_spec_set.size ())); + AVStreams::flowSpec new_flowspec (static_cast<CORBA::ULong> (flow_spec_set.size ())); int i=0; TAO_AV_FlowSpecSetItor connect_end = address_flow_set.end (); TAO_AV_FlowSpecSetItor connect = address_flow_set.begin (); diff --git a/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.cpp b/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.cpp index f147a242045..afc93eb5ddc 100644 --- a/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.cpp @@ -556,7 +556,7 @@ TAO_AV_Child_Process <T_StreamEndpoint, T_VDev, T_MediaCtrl>::register_vdev (AC "%s:%s:%ld", "VDev", this->host_, - static_cast<long>(this->pid_)); + static_cast<long> (this->pid_)); if (TAO_debug_level > 0) ACE_DEBUG ((LM_DEBUG,"(%P|%t)%s\n",vdev_name)); // create the name @@ -791,7 +791,7 @@ TAO_AV_Child_Process_A<T_StreamEndpoint, T_VDev, T_MediaCtrl>::TAO_AV_Child_Proc "%s:%s:%ld", "Stream_Endpoint_A", this->host_, - static_cast<long>(this->pid_)); + static_cast<long> (this->pid_)); if (TAO_debug_level > 0) ACE_DEBUG ((LM_DEBUG,"(%P|%t)%s\n",stream_endpoint_name)); this->stream_endpoint_name_.length (1); @@ -817,7 +817,7 @@ TAO_AV_Child_Process_B<T_StreamEndpoint, T_VDev, T_MediaCtrl>::TAO_AV_Child_Proc "%s:%s:%ld", "Stream_Endpoint_B", this->host_, - static_cast<long>(this->pid_)); + static_cast<long> (this->pid_)); if (TAO_debug_level > 0) ACE_DEBUG ((LM_DEBUG,"(%P|%t)%s\n",stream_endpoint_name)); this->stream_endpoint_name_.length (1); diff --git a/TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.cpp b/TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.cpp index be4bbc397b2..997aed079b2 100644 --- a/TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.cpp @@ -199,7 +199,7 @@ TAO_FlowSpec_Entry::set_protocol (void) { if (TAO_debug_level > 0) ACE_DEBUG ((LM_DEBUG, "TAO_FlowSpec_Entry::set_protocol address is not 0\n")); - ACE_INET_Addr *inet_addr = dynamic_cast<ACE_INET_Addr*>(this->address_); + ACE_INET_Addr *inet_addr = dynamic_cast<ACE_INET_Addr*> (this->address_); char buf[BUFSIZ]; inet_addr->addr_to_string (buf,BUFSIZ); if (TAO_debug_level > 0) @@ -469,7 +469,7 @@ TAO_FlowSpec_Entry::get_local_addr_str (void) char [BUFSIZ], 0); - ACE_INET_Addr *inet_addr = dynamic_cast<ACE_INET_Addr *>(this->local_addr_); + ACE_INET_Addr *inet_addr = dynamic_cast<ACE_INET_Addr *> (this->local_addr_); inet_addr->addr_to_string (buf,BUFSIZ); ACE_CString cstring (buf, 0, 0); @@ -650,7 +650,7 @@ TAO_Forward_FlowSpec_Entry::entry_to_string (void) case TAO_AV_Core::TAO_AV_TCP: case TAO_AV_Core::TAO_AV_SCTP_SEQ: { - ACE_INET_Addr *inet_addr = dynamic_cast<ACE_INET_Addr*>(this->address_); + ACE_INET_Addr *inet_addr = dynamic_cast<ACE_INET_Addr*> (this->address_); inet_addr->addr_to_string (address,BUFSIZ); } break; @@ -699,7 +699,7 @@ TAO_Forward_FlowSpec_Entry::entry_to_string (void) case TAO_AV_Core::TAO_AV_TCP: case TAO_AV_Core::TAO_AV_SCTP_SEQ: { - ACE_INET_Addr *inet_addr = dynamic_cast<ACE_INET_Addr*>(this->address_); + ACE_INET_Addr *inet_addr = dynamic_cast<ACE_INET_Addr*> (this->address_); control_port = inet_addr->get_port_number() + 1; ACE_INET_Addr *inet_control_addr; ACE_NEW_RETURN (inet_control_addr, @@ -730,7 +730,7 @@ TAO_Forward_FlowSpec_Entry::entry_to_string (void) case TAO_AV_Core::TAO_AV_TCP: case TAO_AV_Core::TAO_AV_SCTP_SEQ: { - ACE_INET_Addr *inet_addr = dynamic_cast<ACE_INET_Addr*>(this->peer_addr_); + ACE_INET_Addr *inet_addr = dynamic_cast<ACE_INET_Addr*> (this->peer_addr_); inet_addr->addr_to_string (address,BUFSIZ); //inet_addr->get_host_name (address, BUFSIZ); @@ -777,7 +777,7 @@ TAO_Forward_FlowSpec_Entry::entry_to_string (void) case TAO_AV_Core::TAO_AV_TCP: case TAO_AV_Core::TAO_AV_SCTP_SEQ: { - ACE_INET_Addr *inet_addr = dynamic_cast<ACE_INET_Addr*>(this->control_address_); + ACE_INET_Addr *inet_addr = dynamic_cast<ACE_INET_Addr*> (this->control_address_); control_port = inet_addr->get_port_number(); } break; @@ -932,7 +932,7 @@ TAO_Reverse_FlowSpec_Entry::entry_to_string (void) case TAO_AV_Core::TAO_AV_SFP_UDP: case TAO_AV_Core::TAO_AV_USERDEFINED_UDP: { - ACE_INET_Addr *inet_addr = dynamic_cast<ACE_INET_Addr*>(this->address_); + ACE_INET_Addr *inet_addr = dynamic_cast<ACE_INET_Addr*> (this->address_); inet_addr->addr_to_string (address,BUFSIZ); } break; @@ -979,7 +979,7 @@ TAO_Reverse_FlowSpec_Entry::entry_to_string (void) case TAO_AV_Core::TAO_AV_TCP: case TAO_AV_Core::TAO_AV_SCTP_SEQ: { - ACE_INET_Addr *inet_addr = dynamic_cast<ACE_INET_Addr*>(this->control_address_); + ACE_INET_Addr *inet_addr = dynamic_cast<ACE_INET_Addr*> (this->control_address_); control_port = inet_addr->get_port_number(); } break; diff --git a/TAO/orbsvcs/orbsvcs/AV/MCast.cpp b/TAO/orbsvcs/orbsvcs/AV/MCast.cpp index 7ef539d2aac..02d46a85566 100644 --- a/TAO/orbsvcs/orbsvcs/AV/MCast.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/MCast.cpp @@ -117,7 +117,7 @@ TAO_AV_UDP_MCast_Transport::send (const ACE_Message_Block *mblk, ACE_Time_Value if (i->length () > 0) { iov[iovcnt].iov_base = i->rd_ptr (); - iov[iovcnt].iov_len = static_cast<u_long>(i->length ()); + iov[iovcnt].iov_len = static_cast<u_long> (i->length ()); iovcnt++; // The buffer is full make a OS call. @@ TODO this should diff --git a/TAO/orbsvcs/orbsvcs/AV/QoS_UDP.cpp b/TAO/orbsvcs/orbsvcs/AV/QoS_UDP.cpp index f166914d97f..4ede89d151f 100644 --- a/TAO/orbsvcs/orbsvcs/AV/QoS_UDP.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/QoS_UDP.cpp @@ -491,7 +491,7 @@ TAO_AV_UDP_QoS_Flow_Handler::set_remote_address (ACE_Addr *address) if (TAO_debug_level > 0) { char buf [BUFSIZ]; - ACE_INET_Addr *remote_addr = dynamic_cast<ACE_INET_Addr*>(address); + ACE_INET_Addr *remote_addr = dynamic_cast<ACE_INET_Addr*> (address); remote_addr->addr_to_string (buf, BUFSIZ); @@ -502,12 +502,12 @@ TAO_AV_UDP_QoS_Flow_Handler::set_remote_address (ACE_Addr *address) ACE_INET_Addr *inet_addr = - dynamic_cast<ACE_INET_Addr*>(address); + dynamic_cast<ACE_INET_Addr*> (address); this->peer_addr_ = *inet_addr; TAO_AV_UDP_QoS_Transport *transport = - dynamic_cast<TAO_AV_UDP_QoS_Transport*>(this->transport_); + dynamic_cast<TAO_AV_UDP_QoS_Transport*> (this->transport_); if (this->entry_->role () == TAO_FlowSpec_Entry::TAO_AV_PRODUCER) { @@ -624,7 +624,7 @@ TAO_AV_UDP_QoS_Transport::send (const ACE_Message_Block *mblk, if (i->length () > 0) { iov[iovcnt].iov_base = i->rd_ptr (); - iov[iovcnt].iov_len = static_cast<u_long>(i->length ()); + iov[iovcnt].iov_len = static_cast<u_long> (i->length ()); iovcnt++; // The buffer is full make a OS call. @@ TODO this should @@ -1174,7 +1174,7 @@ TAO_AV_UDP_QoS_Connector::connect (TAO_FlowSpec_Entry *entry, if (entry->get_peer_addr () != 0) { - local_addr = dynamic_cast<ACE_INET_Addr*>(entry->get_peer_addr ()); + local_addr = dynamic_cast<ACE_INET_Addr*> (entry->get_peer_addr ()); } else ACE_NEW_RETURN (local_addr, @@ -1194,7 +1194,7 @@ TAO_AV_UDP_QoS_Connector::connect (TAO_FlowSpec_Entry *entry, handler->flowspec_entry (this->entry_); handler->av_core (this->av_core_); - ACE_INET_Addr *inet_addr = dynamic_cast<ACE_INET_Addr*>(entry->address ()); + ACE_INET_Addr *inet_addr = dynamic_cast<ACE_INET_Addr*> (entry->address ()); ACE_QoS_Params qos_params; diff --git a/TAO/orbsvcs/orbsvcs/AV/RTCP.cpp b/TAO/orbsvcs/orbsvcs/AV/RTCP.cpp index cac59798968..1646221472d 100644 --- a/TAO/orbsvcs/orbsvcs/AV/RTCP.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/RTCP.cpp @@ -48,7 +48,7 @@ int TAO_AV_RTCP_Callback::receive_control_frame (ACE_Message_Block *data, const ACE_Addr &peer_address) { - int length = static_cast<int>(data->length ()); + int length = static_cast<int> (data->length ()); int more = length; char *buf_ptr = data->rd_ptr (); char first_rtcp_packet = 1; @@ -479,7 +479,7 @@ TAO_AV_RTCP_Object::handle_control_input (ACE_Message_Block *frame, int TAO_AV_RTCP_Object::handle_control_output (ACE_Message_Block *frame) { - TAO_AV_RTCP_Callback *cb = dynamic_cast<TAO_AV_RTCP_Callback*>(this->callback_); + TAO_AV_RTCP_Callback *cb = dynamic_cast<TAO_AV_RTCP_Callback*> (this->callback_); return cb->send_frame (frame); } @@ -487,7 +487,7 @@ TAO_AV_RTCP_Object::handle_control_output (ACE_Message_Block *frame) void TAO_AV_RTCP_Object::ts_offset (ACE_UINT32 ts_offset) { - TAO_AV_RTCP_Callback *cb = dynamic_cast<TAO_AV_RTCP_Callback*>(this->callback_); + TAO_AV_RTCP_Callback *cb = dynamic_cast<TAO_AV_RTCP_Callback*> (this->callback_); cb->ts_offset (ts_offset); } @@ -538,7 +538,7 @@ int TAO_AV_RTCP_Callback::send_report (int bye) { // get the RTCP control object in order to get the ssrc - TAO_AV_RTCP_Object *rtcp_prot_obj = dynamic_cast<TAO_AV_RTCP_Object*>(this->protocol_object_); + TAO_AV_RTCP_Object *rtcp_prot_obj = dynamic_cast<TAO_AV_RTCP_Object*> (this->protocol_object_); ACE_UINT32 my_ssrc = rtcp_prot_obj->ssrc (); RTCP_Packet *cp; @@ -781,7 +781,7 @@ TAO_AV_RTCP_Callback::receive_frame (ACE_Message_Block *frame, { RTCP_Channel_In *c; - RTP_Packet packet (frame->rd_ptr(), static_cast<int>(frame->length())); + RTP_Packet packet (frame->rd_ptr(), static_cast<int> (frame->length())); if (this->inputs_.find (packet.ssrc(), c) < 0) { @@ -800,7 +800,7 @@ TAO_AV_RTCP_Callback::receive_frame (ACE_Message_Block *frame, int TAO_AV_RTCP_Callback::send_frame (ACE_Message_Block *frame) { - RTP_Packet packet (frame->rd_ptr(), static_cast<int>(frame->length())); + RTP_Packet packet (frame->rd_ptr(), static_cast<int> (frame->length())); this->output_.updateStatistics (&packet); return 0; diff --git a/TAO/orbsvcs/orbsvcs/AV/RTCP_Channel.cpp b/TAO/orbsvcs/orbsvcs/AV/RTCP_Channel.cpp index 69193ec9685..45f1012972e 100644 --- a/TAO/orbsvcs/orbsvcs/AV/RTCP_Channel.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/RTCP_Channel.cpp @@ -20,7 +20,7 @@ RTCP_Channel_In::RTCP_Channel_In (ACE_UINT32 ssrc, no_data_counter_ (0), data_since_last_report_ (0) { - const ACE_INET_Addr *const_inet_addr = dynamic_cast<const ACE_INET_Addr*>(peer_addr); + const ACE_INET_Addr *const_inet_addr = dynamic_cast<const ACE_INET_Addr*> (peer_addr); ACE_INET_Addr *inet_addr; ACE_NEW (inet_addr, @@ -225,7 +225,7 @@ RTCP_Channel_In::recv_rtp_packet(ACE_Message_Block *mb, ACE_DEBUG ((LM_DEBUG, "RTCP_Channel_In::recv_rtp_packet - possible loop/collision detected")); - RTP_Packet data_packet(mb->rd_ptr (), static_cast<int>(mb->length ())); + RTP_Packet data_packet(mb->rd_ptr (), static_cast<int> (mb->length ())); // make sure the packet is valid if (data_packet.is_valid ()) diff --git a/TAO/orbsvcs/orbsvcs/AV/RTCP_Packet.cpp b/TAO/orbsvcs/orbsvcs/AV/RTCP_Packet.cpp index c47f98e4cc0..17683afab0e 100644 --- a/TAO/orbsvcs/orbsvcs/AV/RTCP_Packet.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/RTCP_Packet.cpp @@ -97,7 +97,7 @@ RTCP_BYE_Packet::RTCP_BYE_Packet(ACE_UINT32 *ssrc_list, { size_t text_length = ACE_OS::strlen(text); memcpy(this->reason_, text, text_length); - this->reason_length_ = static_cast<unsigned char>(text_length); + this->reason_length_ = static_cast<unsigned char> (text_length); } else this->reason_length_ = 0; diff --git a/TAO/orbsvcs/orbsvcs/AV/RTP.cpp b/TAO/orbsvcs/orbsvcs/AV/RTP.cpp index 3bfc756d0f7..b29f5bfb890 100644 --- a/TAO/orbsvcs/orbsvcs/AV/RTP.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/RTP.cpp @@ -349,7 +349,7 @@ TAO_AV_RTP_Object::handle_input (void) char *data_ptr; ACE_UINT16 length; RTP_Packet rtp_packet(this->frame_.rd_ptr (), - static_cast<int>(this->frame_.length ())); + static_cast<int> (this->frame_.length ())); rtp_packet.get_frame_info (&frame_info); rtp_packet.get_payload(&data_ptr, length); @@ -388,7 +388,7 @@ TAO_AV_RTP_Object::send_frame (ACE_Message_Block *frame, if (frame_info->ssrc != 0) this->ssrc_ = frame_info->ssrc; - TAO_AV_RTCP_Object *rtcp_prot_obj = dynamic_cast<TAO_AV_RTCP_Object*>(this->control_object_); + TAO_AV_RTCP_Object *rtcp_prot_obj = dynamic_cast<TAO_AV_RTCP_Object*> (this->control_object_); // set the ssrc on the control object so the RTCP traffic can be matched // to the RTP traffic rtcp_prot_obj->ssrc(this->ssrc_); @@ -476,7 +476,7 @@ TAO_AV_RTP_Object::send_frame (ACE_Message_Block *frame, if (result < 0) ACE_ERROR_RETURN ( (LM_ERROR,"TAO_AV_RTP::send_frame failed\n"),result); - TAO_AV_RTCP_Object *rtcp_prot_obj = dynamic_cast<TAO_AV_RTCP_Object*>(this->control_object_); + TAO_AV_RTCP_Object *rtcp_prot_obj = dynamic_cast<TAO_AV_RTCP_Object*> (this->control_object_); if (rtcp_prot_obj) rtcp_prot_obj->handle_control_output (&mb); @@ -510,7 +510,7 @@ TAO_AV_RTP_Object::send_frame (const iovec *iov, if (frame_info->ssrc != 0) this->ssrc_ = frame_info->ssrc; - TAO_AV_RTCP_Object *rtcp_prot_obj = dynamic_cast<TAO_AV_RTCP_Object*>(this->control_object_); + TAO_AV_RTCP_Object *rtcp_prot_obj = dynamic_cast<TAO_AV_RTCP_Object*> (this->control_object_); // set the ssrc on the control object so the RTCP traffic can be matched // to the RTP traffic rtcp_prot_obj->ssrc(this->ssrc_); @@ -667,7 +667,7 @@ TAO_AV_RTP_Object::set_policies (const TAO_AV_PolicyList &policy_list) case TAO_AV_PAYLOAD_TYPE_POLICY: { TAO_AV_Payload_Type_Policy *payload_policy = - static_cast<TAO_AV_Payload_Type_Policy *>(policy); + static_cast<TAO_AV_Payload_Type_Policy *> (policy); if (payload_policy == 0) ACE_ERROR_RETURN ( (LM_ERROR,"TAO_AV_RTP_Object::send_frame:Payload policy not defined\n"),-1); this->format_ = payload_policy->value (); @@ -676,7 +676,7 @@ TAO_AV_RTP_Object::set_policies (const TAO_AV_PolicyList &policy_list) case TAO_AV_SSRC_POLICY: { TAO_AV_SSRC_Policy *ssrc_policy = - static_cast<TAO_AV_SSRC_Policy *>(policy); + static_cast<TAO_AV_SSRC_Policy *> (policy); if (ssrc_policy == 0) ACE_ERROR_RETURN ( (LM_ERROR,"TAO_AV_RTP_Object::send_frame:SSRC policy not defined\n"),-1); this->ssrc_ = ssrc_policy->value ();; @@ -694,7 +694,7 @@ void TAO_AV_RTP_Object::control_object (TAO_AV_Protocol_Object *object) { this->control_object_ = object; - TAO_AV_RTCP_Object *rtcp_prot_obj = dynamic_cast<TAO_AV_RTCP_Object*>(this->control_object_); + TAO_AV_RTCP_Object *rtcp_prot_obj = dynamic_cast<TAO_AV_RTCP_Object*> (this->control_object_); rtcp_prot_obj->ssrc (this->ssrc_); rtcp_prot_obj->ts_offset (this->timestamp_offset_); } diff --git a/TAO/orbsvcs/orbsvcs/AV/SCTP_SEQ.cpp b/TAO/orbsvcs/orbsvcs/AV/SCTP_SEQ.cpp index b11a7c8767b..59a3ea87259 100644 --- a/TAO/orbsvcs/orbsvcs/AV/SCTP_SEQ.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/SCTP_SEQ.cpp @@ -76,7 +76,7 @@ TAO_AV_SCTP_SEQ_Transport::send (const ACE_Message_Block *mblk, ACE_Time_Value * if (i->length () > 0) { iov[iovcnt].iov_base = i->rd_ptr (); - iov[iovcnt].iov_len = static_cast<u_long>(i->length ()); + iov[iovcnt].iov_len = static_cast<u_long> (i->length ()); iovcnt++; // The buffer is full make a OS call. @@ TODO this should @@ -478,7 +478,7 @@ TAO_AV_SCTP_SEQ_Connector::connect (TAO_FlowSpec_Entry *entry, else this->flowname_ = entry->flowname (); ACE_Addr *remote_addr = entry->address (); - ACE_INET_Addr *inet_addr = dynamic_cast<ACE_INET_Addr *>(remote_addr); + ACE_INET_Addr *inet_addr = dynamic_cast<ACE_INET_Addr *> (remote_addr); TAO_AV_SCTP_SEQ_Flow_Handler *handler = 0; ACE_Multihomed_INET_Addr remote_multi_addr; @@ -492,7 +492,7 @@ TAO_AV_SCTP_SEQ_Connector::connect (TAO_FlowSpec_Entry *entry, ACE_INET_Addr *addr; if (entry->get_peer_addr () != 0) { - addr = dynamic_cast<ACE_INET_Addr *>(entry->get_peer_addr ()); + addr = dynamic_cast<ACE_INET_Addr *> (entry->get_peer_addr ()); } else { diff --git a/TAO/orbsvcs/orbsvcs/AV/TCP.cpp b/TAO/orbsvcs/orbsvcs/AV/TCP.cpp index 3bbea2b69d8..4ecdbe1e386 100644 --- a/TAO/orbsvcs/orbsvcs/AV/TCP.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/TCP.cpp @@ -67,7 +67,7 @@ TAO_AV_TCP_Transport::send (const ACE_Message_Block *mblk, ACE_Time_Value *) if (i->length () > 0) { iov[iovcnt].iov_base = i->rd_ptr (); - iov[iovcnt].iov_len = static_cast<u_long>(i->length ()); + iov[iovcnt].iov_len = static_cast<u_long> (i->length ()); iovcnt++; // The buffer is full make a OS call. @@ TODO this should @@ -416,7 +416,7 @@ TAO_AV_TCP_Connector::connect (TAO_FlowSpec_Entry *entry, else this->flowname_ = entry->flowname (); ACE_Addr *remote_addr = entry->address (); - ACE_INET_Addr *inet_addr = dynamic_cast<ACE_INET_Addr *>(remote_addr); + ACE_INET_Addr *inet_addr = dynamic_cast<ACE_INET_Addr *> (remote_addr); TAO_AV_TCP_Flow_Handler *handler; int result = this->connector_.connector_connect (handler, *inet_addr); diff --git a/TAO/orbsvcs/orbsvcs/AV/UDP.cpp b/TAO/orbsvcs/orbsvcs/AV/UDP.cpp index fd75358b520..c3ec44ba771 100644 --- a/TAO/orbsvcs/orbsvcs/AV/UDP.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/UDP.cpp @@ -61,9 +61,9 @@ TAO_AV_UDP_Flow_Handler::set_remote_address (ACE_Addr *address) if (TAO_debug_level > 0) ACE_DEBUG ((LM_DEBUG,"TAO_AV_UDP_Flow_Handler::set_remote_address\n")); - ACE_INET_Addr *inet_addr = dynamic_cast<ACE_INET_Addr*>(address); + ACE_INET_Addr *inet_addr = dynamic_cast<ACE_INET_Addr*> (address); this->peer_addr_ = *inet_addr; - TAO_AV_UDP_Transport *transport = dynamic_cast<TAO_AV_UDP_Transport*>(this->transport_); + TAO_AV_UDP_Transport *transport = dynamic_cast<TAO_AV_UDP_Transport*> (this->transport_); return transport->set_remote_address (*inet_addr); } @@ -222,7 +222,7 @@ TAO_AV_UDP_Transport::send (const ACE_Message_Block *mblk, ACE_Time_Value *) if (i->length () > 0) { iov[iovcnt].iov_base = i->rd_ptr (); - iov[iovcnt].iov_len = static_cast<u_long>(i->length ()); + iov[iovcnt].iov_len = static_cast<u_long> (i->length ()); iovcnt++; // The buffer is full make a OS call. @@ TODO this should @@ -440,7 +440,7 @@ TAO_AV_UDP_Acceptor::open_i (ACE_INET_Addr *inet_addr, { flow_handler = this->entry_->control_handler (); - local_addr = dynamic_cast<ACE_INET_Addr*>(this->entry_->get_local_control_addr ()); + local_addr = dynamic_cast<ACE_INET_Addr*> (this->entry_->get_local_control_addr ()); } else { @@ -607,13 +607,13 @@ TAO_AV_UDP_Connector::connect (TAO_FlowSpec_Entry *entry, if (flow_component == TAO_AV_Core::TAO_AV_CONTROL) { this->flowname_ = TAO_AV_Core::get_control_flowname (entry->flowname()); - inet_addr = dynamic_cast<ACE_INET_Addr*>(entry->control_address ()); + inet_addr = dynamic_cast<ACE_INET_Addr*> (entry->control_address ()); } else { this->flowname_ = entry->flowname (); - inet_addr = dynamic_cast<ACE_INET_Addr*>(entry->address ()); - control_inet_addr = dynamic_cast<ACE_INET_Addr*>(entry->control_address ()); + inet_addr = dynamic_cast<ACE_INET_Addr*> (entry->address ()); + control_inet_addr = dynamic_cast<ACE_INET_Addr*> (entry->control_address ()); } TAO_AV_Flow_Handler *flow_handler = 0; @@ -627,7 +627,7 @@ TAO_AV_UDP_Connector::connect (TAO_FlowSpec_Entry *entry, flow_handler = this->entry_->control_handler (); flow_handler->set_remote_address (inet_addr); - local_addr = dynamic_cast<ACE_INET_Addr*>(this->entry_->get_local_control_addr ()); + local_addr = dynamic_cast<ACE_INET_Addr*> (this->entry_->get_local_control_addr ()); } else { @@ -643,7 +643,7 @@ TAO_AV_UDP_Connector::connect (TAO_FlowSpec_Entry *entry, ACE_Addr *addr; if ((addr = entry->get_peer_addr ()) != 0) { - local_addr = dynamic_cast<ACE_INET_Addr*>(addr); + local_addr = dynamic_cast<ACE_INET_Addr*> (addr); char buf [BUFSIZ]; local_addr->addr_to_string (buf, BUFSIZ); } @@ -671,7 +671,7 @@ TAO_AV_UDP_Connector::connect (TAO_FlowSpec_Entry *entry, TAO_AV_Flow_Handler *control_flow_handler = 0; if (entry->is_multicast ()) - control_inet_addr = dynamic_cast<ACE_INET_Addr*>(entry->control_address ()) ; + control_inet_addr = dynamic_cast<ACE_INET_Addr*> (entry->control_address ()) ; else { @@ -693,7 +693,7 @@ TAO_AV_UDP_Connector::connect (TAO_FlowSpec_Entry *entry, ACE_INET_Addr ("0"), -1); else - control_inet_address_ = dynamic_cast<ACE_INET_Addr*>(entry->control_address ()); + control_inet_address_ = dynamic_cast<ACE_INET_Addr*> (entry->control_address ()); } TAO_AV_UDP_Connection_Setup::setup (control_flow_handler, diff --git a/TAO/orbsvcs/orbsvcs/AV/sfp.cpp b/TAO/orbsvcs/orbsvcs/AV/sfp.cpp index 022a6a13442..7c5cae1631e 100644 --- a/TAO/orbsvcs/orbsvcs/AV/sfp.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/sfp.cpp @@ -65,7 +65,7 @@ TAO_SFP_Base::TAO_SFP_Base (void) return; } - frame_header_len = static_cast<u_int>(output_cdr.total_length ()); + frame_header_len = static_cast<u_int> (output_cdr.total_length ()); // fill in the default fragment message fields. fragment.magic_number [0] = 'F'; fragment.magic_number [1] = 'R'; @@ -78,7 +78,7 @@ TAO_SFP_Base::TAO_SFP_Base (void) return; } - fragment_len = static_cast<u_int>(output_cdr.total_length ()); + fragment_len = static_cast<u_int> (output_cdr.total_length ()); // fill in the default Start message fields. start.magic_number [0] = '='; start.magic_number [1] = 'S'; @@ -94,7 +94,7 @@ TAO_SFP_Base::TAO_SFP_Base (void) return; } - start_len = static_cast<u_int>(output_cdr.total_length ()); + start_len = static_cast<u_int> (output_cdr.total_length ()); // fill in the default StartReply message fields. start_reply.magic_number [0] = '='; start_reply.magic_number [1] = 'S'; @@ -108,7 +108,7 @@ TAO_SFP_Base::TAO_SFP_Base (void) return; } - start_reply_len = static_cast<u_int>(output_cdr.total_length ()); + start_reply_len = static_cast<u_int> (output_cdr.total_length ()); // fill in the default Credit message fields. credit.magic_number [0] = '='; @@ -122,7 +122,7 @@ TAO_SFP_Base::TAO_SFP_Base (void) ACE_ERROR ((LM_ERROR, "TAO_SFP constructor\n")); return; } - credit_len = static_cast<u_int>(output_cdr.total_length ()); + credit_len = static_cast<u_int> (output_cdr.total_length ()); } int @@ -284,7 +284,7 @@ TAO_SFP_Base::read_frame (TAO_AV_Transport *transport, ACE_NEW_RETURN (new_node, TAO_SFP_Fragment_Node, 0); - new_node->fragment_info_.frag_sz = static_cast<CORBA::ULong>(data->length ()); + new_node->fragment_info_.frag_sz = static_cast<CORBA::ULong> (data->length ()); new_node->fragment_info_.frag_number = 0; if (state.frame_.source_ids.length () > 0) new_node->fragment_info_.source_id = state.frame_.source_ids [0]; @@ -596,11 +596,11 @@ TAO_SFP_Base::send_message (TAO_AV_Transport *transport, TAO_OutputCDR &stream, ACE_Message_Block *mb) { - CORBA::ULong total_len = static_cast<CORBA::ULong>(stream.total_length ()); + CORBA::ULong total_len = static_cast<CORBA::ULong> (stream.total_length ()); if (mb != 0) { for (ACE_Message_Block *temp = mb;temp != 0;temp = temp->cont ()) - total_len += static_cast<CORBA::ULong>(temp->length ()); + total_len += static_cast<CORBA::ULong> (temp->length ()); char *buf = (char *) stream.buffer (); size_t offset = TAO_SFP_MESSAGE_SIZE_OFFSET; @@ -617,7 +617,7 @@ TAO_SFP_Base::send_message (TAO_AV_Transport *transport, *ACE_reinterpret_cast (CORBA::ULong *, buf + offset) = total_len; else - ACE_CDR::swap_4 (reinterpret_cast<char *>(&total_len), + ACE_CDR::swap_4 (reinterpret_cast<char *> (&total_len), buf + offset); #endif /* ACE_ENABLE_SWAP_ON_WRITE */ } @@ -711,7 +711,7 @@ TAO_SFP_Base::read_start_message (TAO_AV_Transport *transport, char *buf = input.rd_ptr (); int n = transport->recv (buf, start_len); - if (n != static_cast<int>(start_len)) + if (n != static_cast<int> (start_len)) ACE_ERROR_RETURN ((LM_ERROR,"%p","TAO_SFP_Base::read_start\n"),0); else { @@ -731,7 +731,7 @@ TAO_SFP_Base::read_start_reply_message (TAO_AV_Transport *transport, char *buf = input.rd_ptr (); int n = transport->recv (buf, start_reply_len); - if (n != static_cast<int>(start_len)) + if (n != static_cast<int> (start_len)) ACE_ERROR_RETURN ((LM_ERROR,"%p","TAO_SFP_Base::read_start_reply_message"),0); else { @@ -750,7 +750,7 @@ TAO_SFP_Base::read_credit_message (TAO_AV_Transport *transport, char *buf = input.rd_ptr (); int n = transport->recv (buf, credit_len); - if (n != static_cast<int>(credit_len)) + if (n != static_cast<int> (credit_len)) ACE_ERROR_RETURN ((LM_ERROR,"%p","TAO_SFP_Base::read_credit_message"),0); else { @@ -769,7 +769,7 @@ TAO_SFP_Base::read_endofstream_message (TAO_AV_Transport *transport, char *buf = input.rd_ptr (); int n = transport->recv (buf, frame_header_len); - if (n != static_cast<int>(frame_header_len)) + if (n != static_cast<int> (frame_header_len)) ACE_ERROR_RETURN ((LM_ERROR,"%p","TAO_SFP_Base::read_endofstream_message"),0); else { @@ -789,7 +789,7 @@ TAO_SFP_Base::peek_frame_header (TAO_AV_Transport *transport, int n = transport->recv (buf, frame_header_len, MSG_PEEK); - if (n != static_cast<int>(frame_header_len)) + if (n != static_cast<int> (frame_header_len)) ACE_ERROR_RETURN ((LM_ERROR,"%p","TAO_SFP_Base::read_endofstream_message"),0); else { @@ -809,7 +809,7 @@ TAO_SFP_Base::peek_fragment_header (TAO_AV_Transport *transport, int n = transport->recv (buf, fragment_len, MSG_PEEK); - if (n != static_cast<int>(fragment_len)) + if (n != static_cast<int> (fragment_len)) ACE_ERROR_RETURN ((LM_ERROR,"%p","TAO_SFP_Base::read_endofstream_message"),0); else { @@ -946,7 +946,7 @@ TAO_SFP_Object::send_frame (ACE_Message_Block *frame, return 0; } size_t last_len,current_len; - int message_len = static_cast<int>(out_stream.total_length ()); + int message_len = static_cast<int> (out_stream.total_length ()); ACE_Message_Block *mb = frame; ACE_Message_Block *fragment_mb = this->get_fragment (mb, @@ -1096,7 +1096,7 @@ TAO_SFP_Object::set_policies (const TAO_AV_PolicyList& policies) case TAO_AV_SFP_CREDIT_POLICY: { TAO_AV_SFP_Credit_Policy *credit_policy = - reinterpret_cast<TAO_AV_SFP_Credit_Policy*>(policy); + reinterpret_cast<TAO_AV_SFP_Credit_Policy*> (policy); this->max_credit_ = credit_policy->value (); } default: diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.cpp index 3f0e426e45f..8ca9427e19e 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.cpp @@ -33,7 +33,7 @@ TAO_CEC_Dispatching_Task::svc (void) "EC (%P|%t) getq error in Dispatching Queue\n")); TAO_CEC_Dispatch_Command *command = - dynamic_cast<TAO_CEC_Dispatch_Command*>(mb); + dynamic_cast<TAO_CEC_Dispatch_Command*> (mb); if (command == 0) { diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.h index 8f6340c3c64..62f4884fe88 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.h +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.h @@ -105,7 +105,7 @@ public: { public: u_long operator() (PortableServer::ServantBase* const & ptr) const { - return reinterpret_cast<u_long>(ptr); + return reinterpret_cast<u_long> (ptr); } }; diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.i b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.i index 2a3b7fcb629..93aec091757 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.i +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.i @@ -160,7 +160,7 @@ TAO_CEC_TypedEventChannel::supported_interface (void) const ACE_INLINE CORBA::RepositoryId TAO_CEC_TypedEventChannel::base_interfaces (CORBA::ULong index) const { - return const_cast<char *>(this->base_interfaces_[index].in ()); + return const_cast<char *> (this->base_interfaces_[index].in ()); } ACE_INLINE CORBA::ULong diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Command.cpp b/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Command.cpp index f8d112d1068..96f57baac44 100644 --- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Command.cpp +++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Command.cpp @@ -19,7 +19,7 @@ TAO_ESF_Connected_Command<Target,Object>::execute (void* arg) if (arg != 0) { ACE_ENV_EMIT_CODE (CORBA::Environment &ACE_TRY_ENV = - *static_cast<CORBA::Environment*>(arg)); + *static_cast<CORBA::Environment*> (arg)); this->target_->connected_i (this->object_ ACE_ENV_ARG_PARAMETER); } @@ -41,7 +41,7 @@ TAO_ESF_Reconnected_Command<Target,Object>::execute (void* arg) if (arg != 0) { ACE_ENV_EMIT_CODE (CORBA::Environment &ACE_TRY_ENV = - *static_cast<CORBA::Environment*>(arg)); + *static_cast<CORBA::Environment*> (arg)); this->target_->reconnected_i (this->object_ ACE_ENV_ARG_PARAMETER); } @@ -62,7 +62,7 @@ TAO_ESF_Disconnected_Command<Target,Object>::execute (void* arg) if (arg != 0) { ACE_ENV_EMIT_CODE (CORBA::Environment &ACE_TRY_ENV = - *static_cast<CORBA::Environment*>(arg)); + *static_cast<CORBA::Environment*> (arg)); this->target_->disconnected_i (this->object_ ACE_ENV_ARG_PARAMETER); } @@ -83,7 +83,7 @@ TAO_ESF_Shutdown_Command<Target>::execute (void* arg) if (arg != 0) { ACE_ENV_EMIT_CODE (CORBA::Environment &ACE_TRY_ENV = - *static_cast<CORBA::Environment*>(arg)); + *static_cast<CORBA::Environment*> (arg)); this->target_->shutdown_i (ACE_ENV_SINGLE_ARG_PARAMETER); } else diff --git a/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint.i b/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint.i index 129518c2107..93f2187496c 100644 --- a/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint.i +++ b/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint.i @@ -82,7 +82,7 @@ TAO_ETCL_Union_Value::TAO_ETCL_Union_Value (int sign, string_ (0) { this->integer_ = - dynamic_cast<TAO_ETCL_Integer_Literal*>(integer); + dynamic_cast<TAO_ETCL_Integer_Literal*> (integer); } ACE_INLINE @@ -91,7 +91,7 @@ TAO_ETCL_Union_Value::TAO_ETCL_Union_Value (TAO_ETCL_Constraint *string) integer_ (0) { this->string_ = - dynamic_cast<TAO_ETCL_String_Literal*>(string); + dynamic_cast<TAO_ETCL_String_Literal*> (string); } ACE_INLINE int @@ -121,7 +121,7 @@ TAO_ETCL_Union_Pos::TAO_ETCL_Union_Pos (TAO_ETCL_Constraint *union_value, : component_ (component) { this->union_value_ = - dynamic_cast<TAO_ETCL_Union_Value*>(union_value); + dynamic_cast<TAO_ETCL_Union_Value*> (union_value); } ACE_INLINE TAO_ETCL_Union_Value * @@ -144,7 +144,7 @@ TAO_ETCL_Component_Pos::TAO_ETCL_Component_Pos (TAO_ETCL_Constraint *integer, : component_ (component) { this->integer_ = - dynamic_cast<TAO_ETCL_Integer_Literal*>(integer); + dynamic_cast<TAO_ETCL_Integer_Literal*> (integer); } ACE_INLINE TAO_ETCL_Integer_Literal * @@ -167,7 +167,7 @@ TAO_ETCL_Component_Assoc::TAO_ETCL_Component_Assoc (TAO_ETCL_Constraint *identif : component_ (component) { this->identifier_ = - dynamic_cast<TAO_ETCL_Identifier*>(identifier); + dynamic_cast<TAO_ETCL_Identifier*> (identifier); } ACE_INLINE TAO_ETCL_Identifier * @@ -190,7 +190,7 @@ TAO_ETCL_Component_Array::TAO_ETCL_Component_Array (TAO_ETCL_Constraint *integer : component_ (component) { this->integer_ = - dynamic_cast<TAO_ETCL_Integer_Literal*>(integer); + dynamic_cast<TAO_ETCL_Integer_Literal*> (integer); } ACE_INLINE TAO_ETCL_Integer_Literal * @@ -227,7 +227,7 @@ TAO_ETCL_Component::TAO_ETCL_Component (TAO_ETCL_Constraint *identifier, : component_ (component) { this->identifier_ = - dynamic_cast<TAO_ETCL_Identifier*>(identifier); + dynamic_cast<TAO_ETCL_Identifier*> (identifier); } ACE_INLINE TAO_ETCL_Identifier * diff --git a/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint.inl b/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint.inl index aa29e2d4a3c..d6414ef5131 100644 --- a/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint.inl +++ b/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint.inl @@ -33,7 +33,7 @@ TAO_ETCL_Union_Value::TAO_ETCL_Union_Value (int sign, string_ (0) { this->integer_ = - dynamic_cast<TAO_ETCL_Literal_Constraint*>(integer); + dynamic_cast<TAO_ETCL_Literal_Constraint*> (integer); } ACE_INLINE @@ -42,7 +42,7 @@ TAO_ETCL_Union_Value::TAO_ETCL_Union_Value (TAO_ETCL_Constraint *string) integer_ (0) { this->string_ = - dynamic_cast<TAO_ETCL_Literal_Constraint*>(string); + dynamic_cast<TAO_ETCL_Literal_Constraint*> (string); } ACE_INLINE int @@ -72,7 +72,7 @@ TAO_ETCL_Union_Pos::TAO_ETCL_Union_Pos (TAO_ETCL_Constraint *union_value, : component_ (component) { this->union_value_ = - dynamic_cast<TAO_ETCL_Union_Value*>(union_value); + dynamic_cast<TAO_ETCL_Union_Value*> (union_value); } ACE_INLINE TAO_ETCL_Union_Value * @@ -97,7 +97,7 @@ TAO_ETCL_Component_Pos::TAO_ETCL_Component_Pos ( : component_ (component) { this->integer_ = - dynamic_cast<TAO_ETCL_Literal_Constraint*>(integer); + dynamic_cast<TAO_ETCL_Literal_Constraint*> (integer); } ACE_INLINE TAO_ETCL_Literal_Constraint * @@ -122,7 +122,7 @@ TAO_ETCL_Component_Assoc::TAO_ETCL_Component_Assoc ( : component_ (component) { this->identifier_ = - dynamic_cast<TAO_ETCL_Identifier*>(identifier); + dynamic_cast<TAO_ETCL_Identifier*> (identifier); } ACE_INLINE TAO_ETCL_Identifier * @@ -147,7 +147,7 @@ TAO_ETCL_Component_Array::TAO_ETCL_Component_Array ( : component_ (component) { this->integer_ = - dynamic_cast<TAO_ETCL_Literal_Constraint*>(integer); + dynamic_cast<TAO_ETCL_Literal_Constraint*> (integer); } ACE_INLINE TAO_ETCL_Literal_Constraint * @@ -184,7 +184,7 @@ TAO_ETCL_Component::TAO_ETCL_Component (TAO_ETCL_Constraint *identifier, : component_ (component) { this->identifier_ = - dynamic_cast<TAO_ETCL_Identifier*>(identifier); + dynamic_cast<TAO_ETCL_Identifier*> (identifier); } ACE_INLINE TAO_ETCL_Identifier * diff --git a/TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp b/TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp index 05f96a10b3e..2ef2c864f4d 100644 --- a/TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.cpp @@ -67,18 +67,18 @@ ACE_ES_Dispatch_Request::make_copy (RtecEventComm::EventSet &dest) const // buffer, without owning it, thus it is not removed! // @@ TODO Check what happens in the collocated case. dest.replace (1, 1, - const_cast<RtecEventComm::Event*>(&this->single_event_.event ()), + const_cast<RtecEventComm::Event*> (&this->single_event_.event ()), 0); } else if (this->event_set_.size () == 1) { dest.replace (1, 1, - const_cast<RtecEventComm::Event*>(&this->event_set_[0].event ()), + const_cast<RtecEventComm::Event*> (&this->event_set_[0].event ()), 0); } else { - dest.length (static_cast<CORBA::ULong>(this->event_set_.size ())); + dest.length (static_cast<CORBA::ULong> (this->event_set_.size ())); int c = 0; for (CORBA::ULong i = 0; i < this->event_set_.size (); ++i) diff --git a/TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.i b/TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.i index 8605255f193..bc9c5d483b4 100644 --- a/TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.i +++ b/TAO/orbsvcs/orbsvcs/Event/Dispatching_Modules.i @@ -119,7 +119,7 @@ ACE_ES_Dispatch_Request::number_of_events (void) const if (this->use_single_event_) return 1; else - return static_cast<CORBA::ULong>(this->event_set_.size ()); + return static_cast<CORBA::ULong> (this->event_set_.size ()); } ACE_INLINE RtecScheduler::OS_Priority diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.cpp index 9ae881a2159..98a17c5dc68 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.cpp @@ -201,7 +201,7 @@ TAO_ECG_CDR_Message_Sender::send_fragment (const ACE_INET_Addr &addr, CORBA::ULong header[TAO_ECG_CDR_Message_Sender::ECG_HEADER_SIZE / sizeof(CORBA::ULong) + ACE_CDR::MAX_ALIGNMENT]; - char* buf = reinterpret_cast<char*>(header); + char* buf = reinterpret_cast<char*> (header); TAO_OutputCDR cdr (buf, sizeof(header)); cdr.write_boolean (TAO_ENCAP_BYTE_ORDER); // Insert some known values in the padding bytes, so we can smoke diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.cpp index 2fd81f81a60..1ac210bd588 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.cpp @@ -152,7 +152,7 @@ TAO_ECG_Mcast_Gateway::init (int argc, char* argv[]) { const char* opt = arg_shifter.get_current (); unsigned long tmp = ACE_OS::strtoul (opt, 0, 0) & 0xff; - this->ttl_value_ = static_cast<u_char>(tmp); + this->ttl_value_ = static_cast<u_char> (tmp); arg_shifter.consume_arg (); } } diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.i b/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.i index c4b865612f8..f4c39d5f7b2 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.i +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.i @@ -7,7 +7,7 @@ TAO_ECG_Mcast_Gateway::TAO_ECG_Mcast_Gateway (void) , address_server_type_ (TAO_ECG_DEFAULT_ADDRESS_SERVER) , address_server_arg_ ((const char *) TAO_ECG_DEFAULT_ADDRESS_SERVER_ARG) , ttl_value_ (TAO_ECG_DEFAULT_TTL) - , nic_ (static_cast<const char *>(TAO_ECG_DEFAULT_NIC)) + , nic_ (static_cast<const char *> (TAO_ECG_DEFAULT_NIC)) , ip_multicast_loop_ (TAO_ECG_DEFAULT_IP_MULTICAST_LOOP) , non_blocking_ (TAO_ECG_DEFAULT_NON_BLOCKING) , consumer_qos_ () @@ -21,7 +21,7 @@ TAO_ECG_Mcast_Gateway::Attributes::Attributes (void) , handler_type (TAO_ECG_DEFAULT_HANDLER) , service_type (TAO_ECG_DEFAULT_SERVICE) , ttl_value (TAO_ECG_DEFAULT_TTL) - , nic (static_cast<const char *>(TAO_ECG_DEFAULT_NIC)) + , nic (static_cast<const char *> (TAO_ECG_DEFAULT_NIC)) , ip_multicast_loop (TAO_ECG_DEFAULT_IP_MULTICAST_LOOP) , non_blocking (TAO_ECG_DEFAULT_NON_BLOCKING) { diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_And_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_And_Filter.cpp index 7c19c2b941b..ff3a295b1cc 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_And_Filter.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_And_Filter.cpp @@ -49,7 +49,7 @@ TAO_EC_And_Filter::end (void) const int TAO_EC_And_Filter::size (void) const { - return static_cast<CORBA::ULong>(this->n_); + return static_cast<CORBA::ULong> (this->n_); } int diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.cpp index 0a42696f672..30605712f32 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.cpp @@ -23,13 +23,13 @@ TAO_EC_Bitmask_Filter::~TAO_EC_Bitmask_Filter (void) TAO_EC_Filter::ChildrenIterator TAO_EC_Bitmask_Filter::begin (void) const { - return const_cast<TAO_EC_Filter**>(&this->child_); + return const_cast<TAO_EC_Filter**> (&this->child_); } TAO_EC_Filter::ChildrenIterator TAO_EC_Bitmask_Filter::end (void) const { - return const_cast<TAO_EC_Filter**>(&this->child_) + 1; + return const_cast<TAO_EC_Filter**> (&this->child_) + 1; } int diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.cpp index d2301294243..3890435084a 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.cpp @@ -73,7 +73,7 @@ TAO_EC_Conjunction_Filter::end (void) const int TAO_EC_Conjunction_Filter::size (void) const { - return static_cast<int>(this->n_); + return static_cast<int> (this->n_); } int diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.cpp index 82b5e8dd084..ffd6030faa8 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.cpp @@ -49,7 +49,7 @@ TAO_EC_Disjunction_Filter::end (void) const int TAO_EC_Disjunction_Filter::size (void) const { - return static_cast<int>(this->n_); + return static_cast<int> (this->n_); } int diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.cpp index 2e19a6da3f3..db1d0cef034 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.cpp @@ -17,7 +17,7 @@ ACE_RCSID (Event, int TAO_EC_Queue::is_full_i (void) { - return static_cast<size_t>(this->cur_count_) > this->high_water_mark_; + return static_cast<size_t> (this->cur_count_) > this->high_water_mark_; } // **************************************************************** @@ -39,7 +39,7 @@ TAO_EC_Dispatching_Task::svc (void) "EC (%P|%t) getq error in Dispatching Queue\n")); TAO_EC_Dispatch_Command *command = - dynamic_cast<TAO_EC_Dispatch_Command*>(mb); + dynamic_cast<TAO_EC_Dispatch_Command*> (mb); if (command == 0) { diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Group_Scheduling.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Group_Scheduling.cpp index 2be4f312eeb..4634f940e41 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Group_Scheduling.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Group_Scheduling.cpp @@ -26,7 +26,7 @@ TAO_EC_Group_Scheduling::schedule_event (const RtecEventComm::EventSet &event, { TAO_EC_QOS_Info event_info; // @@ yuck... - filter->push_scheduled_event (const_cast<RtecEventComm::EventSet&>(event), + filter->push_scheduled_event (const_cast<RtecEventComm::EventSet&> (event), event_info ACE_ENV_ARG_PARAMETER); } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.cpp index 97c3b4d1018..3657951b4af 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.cpp @@ -164,7 +164,7 @@ TAO_EC_Kokyu_Filter_Builder::build ( "can be established\n")); #endif TAO_EC_Kokyu_Filter* kokyu_filter = - dynamic_cast<TAO_EC_Kokyu_Filter*>(filter); + dynamic_cast<TAO_EC_Kokyu_Filter*> (filter); //add the dependency between the root in the filter hierarchy and //the final consumer @@ -316,7 +316,7 @@ TAO_EC_Kokyu_Filter_Builder::recursive_build ( // Convert the time to the proper units.... RtecScheduler::Period_t period = - static_cast<RtecScheduler::Period_t>(e.header.creation_time); + static_cast<RtecScheduler::Period_t> (e.header.creation_time); #if 1 //by VS original code replaced with this RtecScheduler::RT_Info* consumer_rt_info_ptr; diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.cpp index 13a83cfaa8a..48453663f23 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.cpp @@ -61,7 +61,7 @@ TAO_EC_Kokyu_Scheduling::schedule_event (const RtecEventComm::EventSet &event, { const RtecEventComm::Event& e = event[j]; RtecEventComm::Event* buffer = - const_cast<RtecEventComm::Event*>(&e); + const_cast<RtecEventComm::Event*> (&e); RtecEventComm::EventSet single_event (1, 1, buffer, 0); TAO_EC_QOS_Info qos_info; diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Negation_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Negation_Filter.cpp index 341b72bca78..de13c0f59a2 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Negation_Filter.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Negation_Filter.cpp @@ -19,13 +19,13 @@ TAO_EC_Negation_Filter::~TAO_EC_Negation_Filter (void) TAO_EC_Filter::ChildrenIterator TAO_EC_Negation_Filter::begin (void) const { - return const_cast<TAO_EC_Filter**>(&this->child_); + return const_cast<TAO_EC_Filter**> (&this->child_); } TAO_EC_Filter::ChildrenIterator TAO_EC_Negation_Filter::end (void) const { - return const_cast<TAO_EC_Filter**>(&this->child_) + 1; + return const_cast<TAO_EC_Filter**> (&this->child_) + 1; } int diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.cpp index 3d97f0b6893..5b032866004 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.cpp @@ -28,7 +28,7 @@ TAO_EC_Null_Scheduling::schedule_event (const RtecEventComm::EventSet &event, { const RtecEventComm::Event& e = event[j]; RtecEventComm::Event* buffer = - const_cast<RtecEventComm::Event*>(&e); + const_cast<RtecEventComm::Event*> (&e); RtecEventComm::EventSet single_event (1, 1, buffer, 0); TAO_EC_QOS_Info event_info; diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.cpp index d8758ccd1f7..a18a1cf8cfc 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.cpp @@ -147,7 +147,7 @@ TAO_EC_Basic_ObserverStrategy::create_observer_list ( RtecEventChannelAdmin::EventChannel::SYNCHRONIZATION_ERROR()); ACE_CHECK_RETURN (0); - int size = static_cast<int>(this->observers_.current_size ()); + int size = static_cast<int> (this->observers_.current_size ()); RtecEventChannelAdmin::Observer_var *tmp; ACE_NEW_RETURN (tmp, RtecEventChannelAdmin::Observer_var[size], @@ -288,7 +288,7 @@ TAO_EC_Basic_ObserverStrategy::fill_qos ( dep.length (ACE_static_cast (CORBA::ULong, headers.current_size () + 1)); dep[0].event.header.type = ACE_ES_DISJUNCTION_DESIGNATOR; - dep[0].event.header.source = static_cast<CORBA::ULong>(headers.current_size ()); + dep[0].event.header.source = static_cast<CORBA::ULong> (headers.current_size ()); dep[0].event.header.creation_time = ORBSVCS_Time::zero (); dep[0].rt_info = 0; @@ -311,7 +311,7 @@ TAO_EC_Basic_ObserverStrategy::fill_qos ( ACE_ENV_ARG_PARAMETER); ACE_CHECK; - qos.publications.length (static_cast<CORBA::ULong>(headers.current_size ())); + qos.publications.length (static_cast<CORBA::ULong> (headers.current_size ())); CORBA::ULong count = 0; for (HeadersIterator i = headers.begin (); i != headers.end (); ++i) diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.cpp index 54521467b64..ce5fd2843e5 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.cpp @@ -62,7 +62,7 @@ TAO_EC_Priority_Scheduling::schedule_event (const RtecEventComm::EventSet &event { const RtecEventComm::Event& e = event[j]; RtecEventComm::Event* buffer = - const_cast<RtecEventComm::Event*>(&e); + const_cast<RtecEventComm::Event*> (&e); RtecEventComm::EventSet single_event (1, 1, buffer, 0); TAO_EC_QOS_Info qos_info; diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.cpp index b8df32ca1c4..2b895dbbb6e 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.cpp @@ -273,7 +273,7 @@ TAO_EC_ProxyPushSupplier::push (const RtecEventComm::EventSet& event, RtecEventComm::PushConsumer_var consumer = RtecEventComm::PushConsumer::_duplicate (this->consumer_.in ()); - this->pre_dispatch_hook (const_cast<RtecEventComm::EventSet&>(event) + this->pre_dispatch_hook (const_cast<RtecEventComm::EventSet&> (event) ACE_ENV_ARG_PARAMETER); ACE_CHECK; diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.cpp index 6b4ea295950..984ca0f7a7d 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.cpp @@ -36,7 +36,7 @@ TAO_EC_Reactive_Timeout_Generator::schedule_timer ( const ACE_Time_Value& interval) { return this->reactor_->schedule_timer (&this->event_handler_, - static_cast<void*>(filter), + static_cast<void*> (filter), delta, interval); } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.cpp index 151a9e802b2..36f01b0c64d 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.cpp @@ -28,7 +28,7 @@ TAO_EC_Timeout_Adapter::handle_timeout (const ACE_Time_Value & /* tv */, // tv.sec (), tv.usec ())); TAO_EC_Timeout_Filter *filter = - ACE_static_cast(TAO_EC_Timeout_Filter*, const_cast<void*>(vp)); + ACE_static_cast(TAO_EC_Timeout_Filter*, const_cast<void*> (vp)); if (filter == 0) return 0; diff --git a/TAO/orbsvcs/orbsvcs/Event/Event_Channel.cpp b/TAO/orbsvcs/orbsvcs/Event/Event_Channel.cpp index 909efa94054..6fd353f5ebd 100644 --- a/TAO/orbsvcs/orbsvcs/Event/Event_Channel.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/Event_Channel.cpp @@ -273,7 +273,7 @@ public: { return ::new char[sizeof (Shutdown_Consumer)]; } void operator delete (void *buf) - { ::delete [] static_cast<char*>(buf); } + { ::delete [] static_cast<char*> (buf); } #endif /* 0 */ // The module that we report to. @@ -302,7 +302,7 @@ public: { return ::new char[sizeof (Shutdown_Channel)]; } void operator delete (void *buf) - { ::delete [] static_cast<char*>(buf); } + { ::delete [] static_cast<char*> (buf); } #endif ACE_EventChannel *channel_; @@ -410,7 +410,7 @@ ACE_Push_Supplier_Proxy::push (const RtecEventComm::EventSet &event // in another thread!). Other ORBs may do different things and // this may not work! RtecEventComm::EventSet& copy = - const_cast<RtecEventComm::EventSet&>(event); + const_cast<RtecEventComm::EventSet&> (event); this->time_stamp (copy); this->supplier_module_->push (this, copy ACE_ENV_ARG_PARAMETER); @@ -967,7 +967,7 @@ ACE_EventChannel::schedule_timer (RtecScheduler::handle_t rt_info, ORBSVCS_Time::TimeT_to_Time_Value (tv_interval, interval); return this->timer_module ()->schedule_timer (preemption_priority, - const_cast<ACE_Command_Base*>(act), + const_cast<ACE_Command_Base*> (act), tv_delta, tv_interval); } diff --git a/TAO/orbsvcs/orbsvcs/Event/Timer_Module.cpp b/TAO/orbsvcs/orbsvcs/Event/Timer_Module.cpp index 58d7aad00fb..e2aac6ebd2c 100644 --- a/TAO/orbsvcs/orbsvcs/Event/Timer_Module.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/Timer_Module.cpp @@ -78,7 +78,7 @@ TAO_EC_ST_Timer_Module::schedule_timer (RtecScheduler::Preemption_Priority_t, const ACE_Time_Value& interval) { return this->reactor_->schedule_timer (&this->timeout_handler_, - static_cast<void*>(act), + static_cast<void*> (act), delta, interval); } @@ -99,7 +99,7 @@ TAO_EC_ST_Timer_Module::cancel_timer (RtecScheduler::Preemption_Priority_t, } else act = ACE_reinterpret_cast (ACE_Command_Base *, - const_cast<void *>(vp)); + const_cast<void *> (vp)); return result; } @@ -214,7 +214,7 @@ TAO_EC_RPT_Timer_Module::schedule_timer (RtecScheduler::Preemption_Priority_t pr { ACE_Reactor& reactor = this->GetReactorTask (priority)->get_reactor (); return reactor.schedule_timer (&this->timeout_handler_, - static_cast<void*>(act), + static_cast<void*> (act), delta, interval); } @@ -236,7 +236,7 @@ TAO_EC_RPT_Timer_Module::cancel_timer (RtecScheduler::Preemption_Priority_t prio } else act = ACE_reinterpret_cast (ACE_Command_Base *, - const_cast<void *>(vp)); + const_cast<void *> (vp)); return result; } @@ -262,7 +262,7 @@ TAO_EC_Timeout_Handler::handle_timeout (const ACE_Time_Value &, const void *vp) { ACE_Command_Base *act = ACE_static_cast(ACE_Command_Base*, - const_cast<void*>(vp)); + const_cast<void*> (vp)); if (act == 0) ACE_ERROR_RETURN ((LM_ERROR, "ACE_ES_Priority_Timer::handle_timeout: " diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.cpp index 3d8838ef299..dfe0a842ff7 100644 --- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.cpp +++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.cpp @@ -205,14 +205,14 @@ namespace TAO // Grab the object group version // @@ NOTE: This involves an allocation and a dellocation. This is // really bad. - TAO_InputCDR cdr (reinterpret_cast<const char*>(tp->component_data.get_buffer ()), + TAO_InputCDR cdr (reinterpret_cast<const char*> (tp->component_data.get_buffer ()), tp->component_data.length ()); CORBA::Boolean byte_order; if ((cdr >> ACE_InputCDR::to_boolean (byte_order)) == 0) return; - cdr.reset_byte_order (static_cast<int>(byte_order)); + cdr.reset_byte_order (static_cast<int> (byte_order)); FT::TagFTGroupTaggedComponent gtc; @@ -233,7 +233,7 @@ namespace TAO //ACE_THROW (CORBA::MARSHAL ()); CORBA::ULong length = - static_cast<CORBA::ULong>(ocdr.total_length ()); + static_cast<CORBA::ULong> (ocdr.total_length ()); sc.context_data.length (length); CORBA::Octet *buf = sc.context_data.get_buffer (); @@ -322,7 +322,7 @@ namespace TAO // Make a *copy* of the CDR stream... CORBA::ULong length = - static_cast<CORBA::ULong>(ocdr.total_length ()); + static_cast<CORBA::ULong> (ocdr.total_length ()); sc.context_data.length (length); CORBA::Octet *buf = sc.context_data.get_buffer (); diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.cpp index e8b7ec2c2d8..ddadd6e6cca 100644 --- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.cpp +++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.cpp @@ -231,7 +231,7 @@ TAO_FT_IOGR_Property::set_primary ( cdr << ACE_OutputCDR::from_boolean (val); // Get the length of the CDR stream - CORBA::ULong length = static_cast<CORBA::ULong>(cdr.total_length ()); + CORBA::ULong length = static_cast<CORBA::ULong> (cdr.total_length ()); // Set the length tagged_components.component_data.length (length); @@ -288,7 +288,7 @@ TAO_FT_IOGR_Property::encode_properties ( cdr << this->ft_group_tagged_component_->object_group_ref_version; // Get the length of the CDR stream - CORBA::ULong length = static_cast<CORBA::ULong>(cdr.total_length ()); + CORBA::ULong length = static_cast<CORBA::ULong> (cdr.total_length ()); // Set the length tagged_components.component_data.length (length); @@ -375,7 +375,7 @@ TAO_FT_IOGR_Property::get_tagged_component ( // Look for the primary if (pfile_tagged.get_component (tc) == 1) { - TAO_InputCDR cdr (reinterpret_cast<const char*>(tc.component_data.get_buffer ()), + TAO_InputCDR cdr (reinterpret_cast<const char*> (tc.component_data.get_buffer ()), tc.component_data.length ()); CORBA::Boolean byte_order; @@ -383,7 +383,7 @@ TAO_FT_IOGR_Property::get_tagged_component ( ACE_THROW_RETURN (CORBA::MARSHAL (), 0); - cdr.reset_byte_order (static_cast<int>(byte_order)); + cdr.reset_byte_order (static_cast<int> (byte_order)); if ((cdr >> fgtc) == 1) return 1; diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.cpp index cb04764a6fb..2bcd5056f58 100644 --- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.cpp +++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.cpp @@ -64,7 +64,7 @@ TAO_FT_Invocation_Endpoint_Selector::select_primary ( { // Grab the forwarded list TAO_MProfile *prof_list = - const_cast<TAO_MProfile *>(r->stub ()->forward_profiles ()); + const_cast<TAO_MProfile *> (r->stub ()->forward_profiles ()); TAO_MProfile &basep = r->stub ()->base_profiles (); @@ -117,7 +117,7 @@ TAO_FT_Invocation_Endpoint_Selector::select_secondary ( { // Grab the forwarded list TAO_MProfile *prof_list = - const_cast<TAO_MProfile *>(r->stub ()->forward_profiles ()); + const_cast<TAO_MProfile *> (r->stub ()->forward_profiles ()); TAO_MProfile &basep = r->stub ()->base_profiles (); diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.cpp index fd4d9462073..792633f19a1 100644 --- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.cpp +++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.cpp @@ -131,7 +131,7 @@ namespace TAO ACE_THROW_SPEC ((CORBA::SystemException, PortableInterceptor::ForwardRequest)) { - TAO_InputCDR cdr (reinterpret_cast<const char*>(svc.context_data.get_buffer ()), + TAO_InputCDR cdr (reinterpret_cast<const char*> (svc.context_data.get_buffer ()), svc.context_data.length ()); CORBA::Boolean byte_order; @@ -139,7 +139,7 @@ namespace TAO if ((cdr >> ACE_InputCDR::to_boolean (byte_order)) == 0) return; - cdr.reset_byte_order (static_cast<int>(byte_order)); + cdr.reset_byte_order (static_cast<int> (byte_order)); FT::FTGroupVersionServiceContext fgvsc; diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.cpp index dbd0f8ba391..2ebf219502d 100644 --- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.cpp +++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.cpp @@ -85,10 +85,10 @@ TAO_FT_Service_Callbacks::is_profile_equivalent (const TAO_Profile *this_p, (that_comp.get_component (that_tc) == 1)) { - TAO_InputCDR this_cdr (reinterpret_cast<const char*>(this_tc.component_data.get_buffer ()), + TAO_InputCDR this_cdr (reinterpret_cast<const char*> (this_tc.component_data.get_buffer ()), this_tc.component_data.length ()); - TAO_InputCDR that_cdr (reinterpret_cast<const char*>(that_tc.component_data.get_buffer ()), + TAO_InputCDR that_cdr (reinterpret_cast<const char*> (that_tc.component_data.get_buffer ()), that_tc.component_data.length ()); CORBA::Boolean this_byte_order; @@ -101,8 +101,8 @@ TAO_FT_Service_Callbacks::is_profile_equivalent (const TAO_Profile *this_p, return 0; } - this_cdr.reset_byte_order (static_cast<int>(this_byte_order)); - that_cdr.reset_byte_order (static_cast<int>(that_byte_order)); + this_cdr.reset_byte_order (static_cast<int> (this_byte_order)); + that_cdr.reset_byte_order (static_cast<int> (that_byte_order)); FT::TagFTGroupTaggedComponent this_group_component; @@ -147,7 +147,7 @@ TAO_FT_Service_Callbacks::hash_ft (TAO_Profile *p, return 0; // extract the group component - TAO_InputCDR cdr (reinterpret_cast<const char*>(tc.component_data.get_buffer ()), + TAO_InputCDR cdr (reinterpret_cast<const char*> (tc.component_data.get_buffer ()), tc.component_data.length ()); CORBA::Boolean byte_order; @@ -156,7 +156,7 @@ TAO_FT_Service_Callbacks::hash_ft (TAO_Profile *p, return 0; } - cdr.reset_byte_order (static_cast<int>(byte_order)); + cdr.reset_byte_order (static_cast<int> (byte_order)); FT::TagFTGroupTaggedComponent group_component; diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.cpp index decffddd679..14cd1f6dbec 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.cpp @@ -123,7 +123,7 @@ FTRT_ClientORB_Interceptor::receive_reply ( const char * buf = - reinterpret_cast<const char *>(service_context->context_data.get_buffer ()); + reinterpret_cast<const char *> (service_context->context_data.get_buffer ()); TAO_InputCDR cdr (buf, service_context->context_data.length ()); diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ConnectionHandler_T.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ConnectionHandler_T.cpp index 71c6ee1169e..1ac36e19653 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ConnectionHandler_T.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ConnectionHandler_T.cpp @@ -10,7 +10,7 @@ int ConnectionAcceptHandler<ACE_PEER_STREAM_2>::open (void * acceptor) if (this->peer ().get_remote_addr (addr) == -1) return -1; - reactor_ = static_cast<ACE_Service_Object*>(acceptor)->reactor(); + reactor_ = static_cast<ACE_Service_Object*> (acceptor)->reactor(); if (reactor_->register_handler (this, ACE_Event_Handler::READ_MASK) == -1) diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.cpp index a6d1c784b87..c3fd2eae485 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.cpp @@ -58,14 +58,14 @@ void Dynamic_Bitset::set(Dynamic_Bitset::size_type bit, bool val) size_type bit_pos = bit%BITS_PER_BLOCK; block mask = 1 << bit_pos; if (val == false) - mask ^= static_cast<block>(-1); + mask ^= static_cast<block> (-1); buffer_[block_pos] |= mask; } void Dynamic_Bitset::flip() { size_type len = ceil(bit_size_,BITS_PER_BLOCK); - block mask = static_cast<block>(-1); + block mask = static_cast<block> (-1); for (size_type i = 0; i < len; ++i) buffer_[i] ^= mask; } @@ -76,7 +76,7 @@ void Dynamic_Bitset::resize(Dynamic_Bitset::size_type num_bits, bool value) if (len > this->buffer_size_) { Dynamic_Bitset tmp(num_bits); memcpy(tmp.buffer_, this->buffer_, this->buffer_size_*BYTES_PER_BLOCK); - block mask = static_cast<block>(-1); + block mask = static_cast<block> (-1); size_type block_pos = this->bit_size_/BITS_PER_BLOCK; size_type bit_pos = this->bit_size_%BITS_PER_BLOCK; @@ -92,7 +92,7 @@ void Dynamic_Bitset::resize(Dynamic_Bitset::size_type num_bits, bool value) for (size_type i = block_pos +1; i < len; ++i) { - mask = value ? static_cast<block>(-1) : 0; + mask = value ? static_cast<block> (-1) : 0; tmp.buffer_[i] = mask; } @@ -115,7 +115,7 @@ bool operator == (const Dynamic_Bitset& lhs, const Dynamic_Bitset& rhs) for (i = 0; i < block_pos; ++i) if (lhs.buffer_[i] != rhs.buffer_[i]) return false; - Dynamic_Bitset::block mask = static_cast<Dynamic_Bitset::block>(-1); + Dynamic_Bitset::block mask = static_cast<Dynamic_Bitset::block> (-1); mask >>= (Dynamic_Bitset::BITS_PER_BLOCK-bit_pos); return ((lhs.buffer_[i] ^ rhs.buffer_[i]) & mask ) == 0; } diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.cpp index 9a676edd992..c90f0cc338c 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.cpp @@ -245,7 +245,7 @@ TAO_FTEC_Event_Channel_Impl::~TAO_FTEC_Event_Channel_Impl() TAO_FTEC_Basic_Factory* TAO_FTEC_Event_Channel_Impl::factory() { - return static_cast<TAO_FTEC_Basic_Factory*>(TAO_EC_Event_Channel_Base::factory()); + return static_cast<TAO_FTEC_Basic_Factory*> (TAO_EC_Event_Channel_Base::factory()); } @@ -523,14 +523,14 @@ void TAO_FTEC_Event_Channel_Impl::set_update (const FTRT::State & s TAO_FTEC_ConsumerAdmin* TAO_FTEC_Event_Channel_Impl::consumer_admin (void) const { - return static_cast<TAO_FTEC_ConsumerAdmin*>(TAO_EC_Event_Channel_Base::consumer_admin()); + return static_cast<TAO_FTEC_ConsumerAdmin*> (TAO_EC_Event_Channel_Base::consumer_admin()); } /// Access the supplier admin implementation, useful for controlling /// the activation... TAO_FTEC_SupplierAdmin* TAO_FTEC_Event_Channel_Impl::supplier_admin (void) const { - return static_cast<TAO_FTEC_SupplierAdmin*>(TAO_EC_Event_Channel_Base::supplier_admin()); + return static_cast<TAO_FTEC_SupplierAdmin*> (TAO_EC_Event_Channel_Base::supplier_admin()); } @@ -541,7 +541,7 @@ TAO_FTEC_Event_Channel_Impl::find_proxy_push_supplier(const FtRtecEventChannelAd PortableServer::POA_var poa = consumer_poa(); const PortableServer::Servant servant = poa->id_to_servant( - reinterpret_cast<const PortableServer::ObjectId&>(id) + reinterpret_cast<const PortableServer::ObjectId&> (id) ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; POA_RtecEventChannelAdmin::ProxyPushSupplier_ptr obj = @@ -550,7 +550,7 @@ TAO_FTEC_Event_Channel_Impl::find_proxy_push_supplier(const FtRtecEventChannelAd servant->_downcast ("IDL:RtecEventChannelAdmin/ProxyPushSupplier:1.0") ); - return static_cast<TAO_FTEC_ProxyPushSupplier*>(obj); + return static_cast<TAO_FTEC_ProxyPushSupplier*> (obj); } ACE_CATCHALL { } @@ -565,7 +565,7 @@ TAO_FTEC_Event_Channel_Impl::find_proxy_push_consumer(const FtRtecEventChannelAd PortableServer::POA_var poa= supplier_poa(); const PortableServer::Servant servant = poa->id_to_servant( - reinterpret_cast<const PortableServer::ObjectId&>(id) + reinterpret_cast<const PortableServer::ObjectId&> (id) ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; @@ -575,7 +575,7 @@ TAO_FTEC_Event_Channel_Impl::find_proxy_push_consumer(const FtRtecEventChannelAd servant->_downcast ("IDL:RtecEventChannelAdmin/ProxyPushConsumer:1.0") ); - return static_cast<TAO_FTEC_ProxyPushConsumer*>(obj); + return static_cast<TAO_FTEC_ProxyPushConsumer*> (obj); } ACE_CATCHALL { } diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_Base.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_Base.cpp index 335ca029120..ee0957e8ad6 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_Base.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_Base.cpp @@ -22,7 +22,7 @@ void FT_ProxyAdmin_Base::activate(const FtRtecEventComm::ObjectId& oid ACE_ENV_ARG_DECL) { poa_->activate_object_with_id( - reinterpret_cast<const PortableServer::ObjectId&>(oid), + reinterpret_cast<const PortableServer::ObjectId&> (oid), servant_ ACE_ENV_ARG_PARAMETER); ACE_CHECK; diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_T.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_T.cpp index c066db2476a..c7c8f8ff460 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_T.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_T.cpp @@ -127,7 +127,7 @@ void FT_ProxyAdmin<EC_PROXY_ADMIN, Proxy, ProxyInterface, State>::set_state( typedef typename Proxy::Skeleton Skeleton; const PortableServer::Servant servant = poa_->id_to_servant( - reinterpret_cast<const PortableServer::ObjectId&>(proxy_state.object_id) + reinterpret_cast<const PortableServer::ObjectId&> (proxy_state.object_id) ACE_ENV_ARG_PARAMETER); ACE_CHECK; @@ -135,7 +135,7 @@ void FT_ProxyAdmin<EC_PROXY_ADMIN, Proxy, ProxyInterface, State>::set_state( servant->_downcast(proxy_ior->_interface_repository_id())); ACE_CHECK; - static_cast<Proxy*>(skeleton)->set_state(proxy_state + static_cast<Proxy*> (skeleton)->set_state(proxy_state ACE_ENV_ARG_PARAMETER); ACE_CHECK; } diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ForwardCtrlServerInterceptor.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ForwardCtrlServerInterceptor.cpp index 91a64b11bfc..0eb5c56343a 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ForwardCtrlServerInterceptor.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ForwardCtrlServerInterceptor.cpp @@ -137,7 +137,7 @@ void ForwardCtrlServerInterceptor::receive_request_service_contexts ( FT::ObjectGroupRefVersion get_ft_group_version(IOP::ServiceContext_var service_context ACE_ENV_ARG_DECL) { - Safe_InputCDR cdr (reinterpret_cast<const char*>(service_context->context_data.get_buffer ()), + Safe_InputCDR cdr (reinterpret_cast<const char*> (service_context->context_data.get_buffer ()), service_context->context_data.length ()); CORBA::Boolean byte_order; @@ -145,7 +145,7 @@ FT::ObjectGroupRefVersion get_ft_group_version(IOP::ServiceContext_var service_c if ((cdr >> ACE_InputCDR::to_boolean (byte_order)) == 0) ACE_THROW_RETURN (CORBA::BAD_PARAM (CORBA::OMGVMCID | 28, CORBA::COMPLETED_NO), 0); - cdr.reset_byte_order (static_cast<int>(byte_order)); + cdr.reset_byte_order (static_cast<int> (byte_order)); FT::FTGroupVersionServiceContext fgvsc; diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FtEventServiceInterceptor.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FtEventServiceInterceptor.cpp index 72262c01ce2..997e60bf4bb 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FtEventServiceInterceptor.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FtEventServiceInterceptor.cpp @@ -85,7 +85,7 @@ retrieve_ft_request_context( ACE_CHECK; const char * buf = - reinterpret_cast<const char *>(service_context->context_data.get_buffer ()); + reinterpret_cast<const char *> (service_context->context_data.get_buffer ()); Safe_InputCDR cdr (buf, service_context->context_data.length ()); @@ -95,7 +95,7 @@ retrieve_ft_request_context( if ((cdr >> ACE_InputCDR::to_boolean (byte_order)) == 0) ACE_THROW (CORBA::BAD_PARAM ()); - cdr.reset_byte_order (static_cast<int>(byte_order)); + cdr.reset_byte_order (static_cast<int> (byte_order)); if ((cdr >> ft_request_service_context) == 0) @@ -122,7 +122,7 @@ get_transaction_depth_context( ACE_ENDTRY; const char * buf = - reinterpret_cast<const char *>(service_context->context_data.get_buffer ()); + reinterpret_cast<const char *> (service_context->context_data.get_buffer ()); Safe_InputCDR cdr (buf, service_context->context_data.length ()); @@ -131,7 +131,7 @@ get_transaction_depth_context( if ((cdr >> ACE_InputCDR::to_boolean (byte_order)) == 0) ACE_THROW_RETURN (CORBA::BAD_PARAM (), -1); - cdr.reset_byte_order (static_cast<int>(byte_order)); + cdr.reset_byte_order (static_cast<int> (byte_order)); FTRT::TransactionDepth result; if ((cdr >> result) == 0) @@ -152,7 +152,7 @@ get_sequence_number_context( ACE_CHECK_RETURN(0); const char * buf = - reinterpret_cast<const char *>(service_context->context_data.get_buffer ()); + reinterpret_cast<const char *> (service_context->context_data.get_buffer ()); Safe_InputCDR cdr (buf, service_context->context_data.length ()); @@ -161,7 +161,7 @@ get_sequence_number_context( if ((cdr >> ACE_InputCDR::to_boolean (byte_order)) == 0) ACE_THROW_RETURN (CORBA::BAD_PARAM (), 0); - cdr.reset_byte_order (static_cast<int>(byte_order)); + cdr.reset_byte_order (static_cast<int> (byte_order)); if ((cdr >> result) == 0) ACE_THROW_RETURN (CORBA::BAD_PARAM (), 0); diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/IOGR_Maker.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/IOGR_Maker.cpp index 2a07ad3e7c7..e5390fc7e05 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/IOGR_Maker.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/IOGR_Maker.cpp @@ -191,14 +191,14 @@ IOGR_Maker::copy_ft_group_component(CORBA::Object_ptr ior) // @@ NOTE: This involves an allocation and a dellocation. This is // really bad. Safe_InputCDR cdr ( - reinterpret_cast<const char*>(tagged_components.component_data.get_buffer ()), + reinterpret_cast<const char*> (tagged_components.component_data.get_buffer ()), tagged_components.component_data.length ()); CORBA::Boolean byte_order; if ((cdr >> ACE_InputCDR::to_boolean (byte_order)) == 0) return false; - cdr.reset_byte_order (static_cast<int>(byte_order)); + cdr.reset_byte_order (static_cast<int> (byte_order)); return (cdr >> ft_tag_component_) != 0; } diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxyConsumerStateWorker.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxyConsumerStateWorker.cpp index 7869ab38378..5b2f764197e 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxyConsumerStateWorker.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxyConsumerStateWorker.cpp @@ -28,6 +28,6 @@ void ProxyConsumerStateWorker::work(TAO_EC_ProxyPushConsumer* object ACE_ENV_ARG_DECL_NOT_USED) { TAO_FTEC_ProxyPushConsumer* proxy = - static_cast<TAO_FTEC_ProxyPushConsumer*>(object); + static_cast<TAO_FTEC_ProxyPushConsumer*> (object); proxy->get_state(consumerStates_[index_++]); } diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxySupplierStateWorker.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxySupplierStateWorker.cpp index cb455699293..45b6c1f47d9 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxySupplierStateWorker.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxySupplierStateWorker.cpp @@ -30,6 +30,6 @@ void ProxySupplierStateWorker::work(TAO_EC_ProxyPushSupplier* object ACE_ENV_ARG_DECL_NOT_USED) { TAO_FTEC_ProxyPushSupplier* proxy = - static_cast<TAO_FTEC_ProxyPushSupplier*>(object); + static_cast<TAO_FTEC_ProxyPushSupplier*> (object); proxy->get_state(supplierStates_[index_++]); } diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/SCTP_Fault_Detector.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/SCTP_Fault_Detector.cpp index 1ea3bb13cbb..e7937363813 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/SCTP_Fault_Detector.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/SCTP_Fault_Detector.cpp @@ -54,7 +54,7 @@ SCTP_Connector::connect (ACE_SOCK_SEQPACK_Association &new_association, return -1; int result = ACE_OS::connect (new_association.get_handle (), - reinterpret_cast<sockaddr *>(remote_sap.get_addr ()), + reinterpret_cast<sockaddr *> (remote_sap.get_addr ()), remote_sap.get_size ()); return this->shared_connect_finish (new_association, diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.cpp index cdec4a28139..ad2fba0b0f3 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.cpp @@ -106,7 +106,7 @@ class Interceptor_Destoryer : public TAO_ORB_Core { public: inline static void execute(CORBA::ORB_ptr orb ACE_ENV_ARG_DECL) { - static_cast<Interceptor_Destoryer*>(orb->orb_core())->do_it(ACE_ENV_SINGLE_ARG_PARAMETER); + static_cast<Interceptor_Destoryer*> (orb->orb_core())->do_it(ACE_ENV_SINGLE_ARG_PARAMETER); } private: Interceptor_Destoryer(); diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/UUID.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/UUID.cpp index f7aeb4119f5..217f701283e 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/UUID.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/UUID.cpp @@ -66,7 +66,7 @@ UUID::from_string (const char *string_rep) return false; } - rep_.uuid[offset++] = static_cast<unsigned char>(r); + rep_.uuid[offset++] = static_cast<unsigned char> (r); string_rep += 2; } @@ -130,7 +130,7 @@ UUID::create (unsigned char *buffer) // Days in years static ACE_UINT64 SecondsToJan1970 = - (static_cast<ACE_UINT64>(365)*(1970-1583) // Days in years + (static_cast<ACE_UINT64> (365)*(1970-1583) // Days in years + (1970-1583)/4 // Leap days - 3 // Allow for 1700, 1800, 1900 not leap years + 31 // Days in December 1583 @@ -154,7 +154,7 @@ UUID::create (unsigned char *buffer) buffer[7] = (unsigned char) (((timestamp >> 56) & 0x0f) + 0x10); ACE_UINT16 clockSequence = static_cast< - ACE_UINT16>(ACE_OS::rand_r(seed) & 0x2ff); + ACE_UINT16> (ACE_OS::rand_r(seed) & 0x2ff); buffer[8] = (unsigned char) ((clockSequence >> 8) & 0x1f); buffer[9] = (unsigned char) (clockSequence & 0x1f); diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/activate_with_id.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/activate_with_id.h index daf8d6b7e78..be09a2870a5 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/activate_with_id.h +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/activate_with_id.h @@ -19,7 +19,7 @@ activate_object_with_id (T * &result, const FtRtecEventComm::ObjectId &oid ACE_ENV_ARG_DECL_WITH_DEFAULTS) { - const PortableServer::ObjectId& id = reinterpret_cast<const PortableServer::ObjectId&>(oid); + const PortableServer::ObjectId& id = reinterpret_cast<const PortableServer::ObjectId&> (oid); poa->activate_object_with_id(id, servant ACE_ENV_ARG_PARAMETER); diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp index 542bbda9773..a70fabe23a5 100644 --- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp +++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp @@ -283,8 +283,8 @@ TAO::HTIOP::Acceptor::open (TAO_ORB_Core *orb_core, return -1; if (major >=0 && minor >= 0) - this->version_.set_version (static_cast<CORBA::Octet>(major), - static_cast<CORBA::Octet>(minor)); + this->version_.set_version (static_cast<CORBA::Octet> (major), + static_cast<CORBA::Octet> (minor)); // Parse options if (this->parse_options (options) == -1) return -1; @@ -294,7 +294,7 @@ TAO::HTIOP::Acceptor::open (TAO_ORB_Core *orb_core, // @ Mostly the address is just a host:port but in case it is // host:port#token, remove the #token before this is processed // - priyanka - address = ACE_OS::strtok (const_cast<char *>(address), "#"); + address = ACE_OS::strtok (const_cast<char *> (address), "#"); // In the common scenario, Acceptor is in the server that is // outside the firewall. It means the address that is sent to @@ -324,7 +324,7 @@ TAO::HTIOP::Acceptor::open (TAO_ORB_Core *orb_core, // Now reset the port and set the host. if (addr.ACE_INET_Addr::set (addr.get_port_number (), - static_cast<ACE_UINT32>(INADDR_ANY), + static_cast<ACE_UINT32> (INADDR_ANY), 1) != 0) return -1; else @@ -422,8 +422,8 @@ TAO::HTIOP::Acceptor::open_default (TAO_ORB_Core *orb_core, } if (major >=0 && minor >= 0) - this->version_.set_version (static_cast<CORBA::Octet>(major), - static_cast<CORBA::Octet>(minor)); + this->version_.set_version (static_cast<CORBA::Octet> (major), + static_cast<CORBA::Octet> (minor)); // Parse options if (this->parse_options (options) == -1) @@ -464,7 +464,7 @@ TAO::HTIOP::Acceptor::open_default (TAO_ORB_Core *orb_core, ACE::HTBP::Addr addr; if (addr.ACE_INET_Addr::set (ACE_static_cast(u_short, 0), - static_cast<ACE_UINT32>(INADDR_ANY), + static_cast<ACE_UINT32> (INADDR_ANY), 1) != 0) return -1; @@ -674,7 +674,7 @@ TAO::HTIOP::Acceptor::probe_interfaces (TAO_ORB_Core *orb_core) // in the list of interfaces to query for a hostname, otherwise // exclude it from the list. if (if_cnt == lo_cnt) - this->endpoint_count_ = static_cast<CORBA::ULong>(if_cnt); + this->endpoint_count_ = static_cast<CORBA::ULong> (if_cnt); else this->endpoint_count_ = ACE_static_cast(CORBA::ULong, if_cnt - lo_cnt); @@ -748,7 +748,7 @@ TAO::HTIOP::Acceptor::object_key (IOP::TaggedProfile &profile, #if (TAO_NO_COPY_OCTET_SEQUENCES == 1) TAO_InputCDR cdr (profile.profile_data.mb ()); #else - TAO_InputCDR cdr (reinterpret_cast<char*>(profile.profile_data.get_buffer ()), + TAO_InputCDR cdr (reinterpret_cast<char*> (profile.profile_data.get_buffer ()), profile.profile_data.length ()); #endif /* TAO_NO_COPY_OCTET_SEQUENCES == 1 */ @@ -838,7 +838,7 @@ TAO::HTIOP::Acceptor::parse_options (const char *str) if (j < option_count - 1) end = options.find (option_delimiter, begin); else - end = static_cast<CORBA::ULong>(len) + end = static_cast<CORBA::ULong> (len) - begin; // Handle last endpoint differently if (end == begin) diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor_Impl.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor_Impl.cpp index 7d6b9cc530f..9b778293976 100644 --- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor_Impl.cpp +++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor_Impl.cpp @@ -133,7 +133,7 @@ TAO::HTIOP::Strategy_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::shared_open ( if (protocol_family == PF_INET6) { sockaddr_in6 local_inet6_addr; - ACE_OS::memset (reinterpret_cast<void *>(&local_inet6_addr), + ACE_OS::memset (reinterpret_cast<void *> (&local_inet6_addr), 0, sizeof local_inet6_addr); @@ -144,13 +144,13 @@ TAO::HTIOP::Strategy_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::shared_open ( local_inet6_addr.sin6_addr = in6addr_any; } else - local_inet6_addr = *reinterpret_cast<sockaddr_in6 *>(local_addr.get_addr ()); + local_inet6_addr = *reinterpret_cast<sockaddr_in6 *> (local_addr.get_addr ()); // We probably don't need a bind_port written here. // There are currently no supported OS's that define // ACE_LACKS_WILDCARD_BIND. if (ACE_OS::bind (this->get_handle (), - reinterpret_cast<sockaddr *>(&local_inet6_addr), + reinterpret_cast<sockaddr *> (&local_inet6_addr), sizeof local_inet6_addr) == -1) error = 1; } @@ -159,7 +159,7 @@ TAO::HTIOP::Strategy_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::shared_open ( if (protocol_family == PF_INET) { sockaddr_in local_inet_addr; - ACE_OS::memset (reinterpret_cast<void *>(&local_inet_addr), + ACE_OS::memset (reinterpret_cast<void *> (&local_inet_addr), 0, sizeof local_inet_addr); @@ -168,14 +168,14 @@ TAO::HTIOP::Strategy_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::shared_open ( local_inet_addr.sin_port = 0; } else - local_inet_addr = *reinterpret_cast<sockaddr_in *>(local_addr.get_addr ()); + local_inet_addr = *reinterpret_cast<sockaddr_in *> (local_addr.get_addr ()); if (local_inet_addr.sin_port == 0) { if (ACE::bind_port (this->get_handle ()) == -1) error = 1; } else if (ACE_OS::bind (this->get_handle (), - reinterpret_cast<sockaddr *>(&local_inet_addr), + reinterpret_cast<sockaddr *> (&local_inet_addr), sizeof local_inet_addr) == -1) error = 1; } diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector.cpp index 0b7549beec3..5061099ae04 100644 --- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector.cpp +++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector.cpp @@ -312,7 +312,7 @@ TAO::HTIOP::Connector::cancel_svc_handler ( TAO_Connection_Handler * svc_handler) { TAO::HTIOP::Connection_Handler* handler= - dynamic_cast<TAO::HTIOP::Connection_Handler*>(svc_handler); + dynamic_cast<TAO::HTIOP::Connection_Handler*> (svc_handler); if (handler) { diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.cpp index 48dc5a1d90d..e0351fd6a69 100644 --- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.cpp +++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.cpp @@ -192,7 +192,7 @@ CORBA::Boolean TAO::HTIOP::Endpoint::is_equivalent (const TAO_Endpoint *other_endpoint) { TAO_Endpoint *endpt = - const_cast<TAO_Endpoint *>(other_endpoint); + const_cast<TAO_Endpoint *> (other_endpoint); TAO::HTIOP::Endpoint *endpoint = ACE_dynamic_cast (TAO::HTIOP::Endpoint *, endpt); diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Profile.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Profile.cpp index eb299762625..3be8c9bbdbe 100644 --- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Profile.cpp +++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Profile.cpp @@ -303,7 +303,7 @@ TAO::HTIOP::Profile::to_string (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) 1 /* object key separator */ + ACE_OS::strlen (key.in ())); - char * buf = CORBA::string_alloc (static_cast<CORBA::ULong>(buflen)); + char * buf = CORBA::string_alloc (static_cast<CORBA::ULong> (buflen)); static const char digits [] = "0123456789"; @@ -396,7 +396,7 @@ TAO::HTIOP::Profile::encode_endpoints () IOP::TaggedComponent tagged_component; tagged_component.tag = TAO_TAG_ENDPOINTS; - tagged_component.component_data.length (static_cast<CORBA::ULong>(length)); + tagged_component.component_data.length (static_cast<CORBA::ULong> (length)); CORBA::Octet *buf = tagged_component.component_data.get_buffer (); @@ -428,7 +428,7 @@ TAO::HTIOP::Profile::decode_endpoints (void) const CORBA::Octet *buf = tagged_component.component_data.get_buffer (); - TAO_InputCDR in_cdr (reinterpret_cast<const char*>(buf), + TAO_InputCDR in_cdr (reinterpret_cast<const char*> (buf), tagged_component.component_data.length ()); // Extract the Byte Order. @@ -436,7 +436,7 @@ TAO::HTIOP::Profile::decode_endpoints (void) if ((in_cdr >> ACE_InputCDR::to_boolean (byte_order)) == 0) ACE_ERROR_RETURN ((LM_ERROR,"boolean byte_order extraction failed\n"), -1); - in_cdr.reset_byte_order (static_cast<int>(byte_order)); + in_cdr.reset_byte_order (static_cast<int> (byte_order)); // Extract endpoints sequence. HTIOPEndpointSequence endpoints; diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Transport.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Transport.cpp index 245bbc35fde..af17e0e9f4c 100644 --- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Transport.cpp +++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Transport.cpp @@ -284,7 +284,7 @@ TAO::HTIOP::Transport::tear_listen_point_list (TAO_InputCDR &cdr) if ((cdr >> ACE_InputCDR::to_boolean (byte_order)) == 0) return -1; - cdr.reset_byte_order (static_cast<int>(byte_order)); + cdr.reset_byte_order (static_cast<int> (byte_order)); ::HTIOP::ListenPointList listen_list; if ((cdr >> listen_list) == 0) diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ArrayDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ArrayDef_i.cpp index 00e5e821599..3df58af21ac 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/ArrayDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/ArrayDef_i.cpp @@ -108,7 +108,7 @@ TAO_ArrayDef_i::length_i (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) "length", length); - return static_cast<CORBA::ULong>(length); + return static_cast<CORBA::ULong> (length); } void diff --git a/TAO/orbsvcs/orbsvcs/IFRService/AttributeDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/AttributeDef_i.cpp index a3953fbb3b2..2bf08682433 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/AttributeDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/AttributeDef_i.cpp @@ -180,7 +180,7 @@ TAO_AttributeDef_i::mode_i (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) "mode", mode); - return static_cast<CORBA::AttributeMode>(mode); + return static_cast<CORBA::AttributeMode> (mode); } void @@ -283,7 +283,7 @@ TAO_AttributeDef_i::get_exceptions (ACE_ENV_SINGLE_ARG_DECL) } } - CORBA::ULong size = static_cast<CORBA::ULong>(path_queue.size ()); + CORBA::ULong size = static_cast<CORBA::ULong> (path_queue.size ()); CORBA::ExceptionDefSeq *get_ed_seq = 0; ACE_NEW_THROW_EX (get_ed_seq, @@ -360,7 +360,7 @@ TAO_AttributeDef_i::put_exceptions (ACE_ENV_SINGLE_ARG_DECL) } } - CORBA::ULong size = static_cast<CORBA::ULong>(path_queue.size ()); + CORBA::ULong size = static_cast<CORBA::ULong> (path_queue.size ()); CORBA::ExceptionDefSeq *put_ed_seq = 0; ACE_NEW_THROW_EX (put_ed_seq, diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ComponentDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ComponentDef_i.cpp index 16cc5a7406c..67229355fe1 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/ComponentDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/ComponentDef_i.cpp @@ -30,7 +30,7 @@ TAO_Port_Desc_Seq_Utils<CORBA::ComponentIR::UsesDescriptionSeq>::get_is_multiple "is_multiple", is_multiple); desc_seq[index].is_multiple = - static_cast<CORBA::Boolean>(is_multiple); + static_cast<CORBA::Boolean> (is_multiple); } // Specialization. diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ConstantDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ConstantDef_i.cpp index 0562d097470..a19ec7fb100 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/ConstantDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/ConstantDef_i.cpp @@ -202,7 +202,7 @@ TAO_ConstantDef_i::value_i (ACE_ENV_SINGLE_ARG_DECL) length ); - char *data = static_cast<char *>(ref); + char *data = static_cast<char *> (ref); ACE_Auto_Basic_Array_Ptr<char> safety (data); ACE_Message_Block mb (data, diff --git a/TAO/orbsvcs/orbsvcs/IFRService/Contained_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/Contained_i.cpp index 585480843f1..3f78e06ac22 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/Contained_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/Contained_i.cpp @@ -1142,7 +1142,7 @@ TAO_Contained_i::move_contents (CORBA::Container_ptr new_container "def_kind", kind); CORBA::DefinitionKind def_kind = - static_cast<CORBA::DefinitionKind>(kind); + static_cast<CORBA::DefinitionKind> (kind); TAO_Contained_i *impl = this->repo_->select_contained (def_kind); impl->section_key (defn_key); diff --git a/TAO/orbsvcs/orbsvcs/IFRService/Container_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/Container_i.cpp index 49f7c5484f7..495916a8679 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/Container_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/Container_i.cpp @@ -154,7 +154,7 @@ TAO_Container_i::destroy_i (ACE_ENV_SINGLE_ARG_DECL) "def_kind", kind); CORBA::DefinitionKind def_kind = - static_cast<CORBA::DefinitionKind>(kind); + static_cast<CORBA::DefinitionKind> (kind); TAO_Contained_i *impl = this->repo_->select_contained (def_kind); impl->section_key (defn_key); @@ -278,7 +278,7 @@ TAO_Container_i::lookup_i (const char *search_name "def_kind", kind); - def_kind = static_cast<CORBA::DefinitionKind>(kind); + def_kind = static_cast<CORBA::DefinitionKind> (kind); if (def_kind == CORBA::dk_Interface || def_kind == CORBA::dk_Value) @@ -477,7 +477,7 @@ TAO_Container_i::contents_i (CORBA::DefinitionKind limit_type, kind); CORBA::DefinitionKind def_kind = - static_cast<CORBA::DefinitionKind>(kind); + static_cast<CORBA::DefinitionKind> (kind); if (limit_type == CORBA::dk_all || limit_type == def_kind) @@ -525,7 +525,7 @@ TAO_Container_i::contents_i (CORBA::DefinitionKind limit_type, } } - CORBA::ULong size = static_cast<CORBA::ULong>(kind_queue.size ()); + CORBA::ULong size = static_cast<CORBA::ULong> (kind_queue.size ()); retval->length (size); for (CORBA::ULong j = 0; j < size; ++j) @@ -593,7 +593,7 @@ TAO_Container_i::lookup_name_i (const char *search_name, exclude_inherited ACE_ENV_ARG_PARAMETER); - CORBA::ULong size = static_cast<CORBA::ULong>(kind_queue.size ()); + CORBA::ULong size = static_cast<CORBA::ULong> (kind_queue.size ()); CORBA::ContainedSeq *holder; ACE_NEW_THROW_EX (holder, @@ -669,7 +669,7 @@ TAO_Container_i::describe_contents_i (CORBA::DefinitionKind limit_type, } else { - ret_len = length < static_cast<CORBA::ULong>(max_returned_objs) + ret_len = length < static_cast<CORBA::ULong> (max_returned_objs) ? length : max_returned_objs; } @@ -1951,7 +1951,7 @@ TAO_Container_i::lookup_name_recursive ( kind); CORBA::DefinitionKind def_kind = - static_cast<CORBA::DefinitionKind>(kind); + static_cast<CORBA::DefinitionKind> (kind); ACE_TString id; this->repo_->config ()->get_string_value (defn_key, @@ -2260,49 +2260,49 @@ TAO_Container_i::store_label (ACE_Configuration_Section_Key key, { CORBA::Char x; cdr.read_char (x); - result = static_cast<u_int>(x); + result = static_cast<u_int> (x); break; } case CORBA::tk_wchar: { CORBA::WChar x; cdr.read_wchar (x); - result = static_cast<u_int>(x); + result = static_cast<u_int> (x); break; } case CORBA::tk_boolean: { CORBA::Boolean x; cdr.read_boolean (x); - result = static_cast<u_int>(x); + result = static_cast<u_int> (x); break; } case CORBA::tk_short: { CORBA::Short x; cdr.read_short (x); - result = static_cast<u_int>(x); + result = static_cast<u_int> (x); break; } case CORBA::tk_ushort: { CORBA::UShort x; cdr.read_ushort (x); - result = static_cast<u_int>(x); + result = static_cast<u_int> (x); break; } case CORBA::tk_long: { CORBA::Long x; cdr.read_long (x); - result = static_cast<u_int>(x); + result = static_cast<u_int> (x); break; } case CORBA::tk_ulong: { CORBA::ULong x; cdr.read_ulong (x); - result = static_cast<u_int>(x); + result = static_cast<u_int> (x); break; } #if !defined (ACE_LACKS_LONGLONG_T) @@ -2311,7 +2311,7 @@ TAO_Container_i::store_label (ACE_Configuration_Section_Key key, CORBA::LongLong x; cdr.read_longlong (x); // We could lose data here. - result = static_cast<u_int>(x); + result = static_cast<u_int> (x); break; } #endif /* ACE_LACKS_LONGLONG_T */ @@ -2320,14 +2320,14 @@ TAO_Container_i::store_label (ACE_Configuration_Section_Key key, CORBA::ULongLong x; cdr.read_ulonglong (x); // We could lose data here. - result = static_cast<u_int>(x); + result = static_cast<u_int> (x); break; } case CORBA::tk_enum: { CORBA::ULong x; cdr.read_ulong (x); - result = static_cast<u_int>(x); + result = static_cast<u_int> (x); break; } default: @@ -2606,7 +2606,7 @@ TAO_Container_i::create_value_common ( TAO_IFR_Service_Utils::tmp_key_, "def_kind", kind); - def_kind = static_cast<CORBA::DefinitionKind>(kind); + def_kind = static_cast<CORBA::DefinitionKind> (kind); if (def_kind == CORBA::dk_Interface) { diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ExceptionDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ExceptionDef_i.cpp index 08ad8939df9..cff9ef2e6bb 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/ExceptionDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/ExceptionDef_i.cpp @@ -218,13 +218,13 @@ TAO_ExceptionDef_i::members_i (ACE_ENV_SINGLE_ARG_DECL) kind); CORBA::DefinitionKind def_kind = - static_cast<CORBA::DefinitionKind>(kind); + static_cast<CORBA::DefinitionKind> (kind); kind_queue.enqueue_tail (def_kind); } } - CORBA::ULong size = static_cast<CORBA::ULong>(kind_queue.size ()); + CORBA::ULong size = static_cast<CORBA::ULong> (kind_queue.size ()); CORBA::StructMemberSeq *members = 0; ACE_NEW_THROW_EX (members, diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ExtValueDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ExtValueDef_i.cpp index a8af266f294..b7f680b98a8 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/ExtValueDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/ExtValueDef_i.cpp @@ -248,11 +248,11 @@ TAO_ExtValueDef_i::describe_ext_value_i ( this->repo_->config ()->get_integer_value (this->section_key_, "is_abstract", val); - fv_desc->is_abstract = static_cast<CORBA::Boolean>(val); + fv_desc->is_abstract = static_cast<CORBA::Boolean> (val); this->repo_->config ()->get_integer_value (this->section_key_, "is_custom", val); - fv_desc->is_custom = static_cast<CORBA::Boolean>(val); + fv_desc->is_custom = static_cast<CORBA::Boolean> (val); this->repo_->config ()->get_string_value (this->section_key_, "container_id", holder); @@ -321,7 +321,7 @@ TAO_ExtValueDef_i::describe_ext_value_i ( this->repo_->config ()->get_integer_value (op_key, "mode", val); - fv_desc->operations[i].mode = static_cast<CORBA::OperationMode>(val); + fv_desc->operations[i].mode = static_cast<CORBA::OperationMode> (val); CORBA::TCKind kind = fv_desc->operations[i].result->kind (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); @@ -398,7 +398,7 @@ TAO_ExtValueDef_i::describe_ext_value_i ( "mode", val); fv_desc->operations[i].parameters[j].mode = - static_cast<CORBA::ParameterMode>(val); + static_cast<CORBA::ParameterMode> (val); } } @@ -505,7 +505,7 @@ TAO_ExtValueDef_i::describe_ext_value_i ( "mode", val); fv_desc->attributes[i].mode = - static_cast<CORBA::AttributeMode>(val); + static_cast<CORBA::AttributeMode> (val); this->repo_->config ()->get_string_value (attr_key, "type_path", holder); @@ -590,7 +590,7 @@ TAO_ExtValueDef_i::describe_ext_value_i ( "access", val); fv_desc->members[i].access = - static_cast<CORBA::Visibility>(val); + static_cast<CORBA::Visibility> (val); // Use type path for 'type' and 'type_def', @@ -728,7 +728,7 @@ TAO_ExtValueDef_i::describe_ext_value_i ( this->repo_->config ()->get_integer_value (this->section_key_, "is_truncatable", val); - fv_desc->is_truncatable = static_cast<CORBA::Boolean>(val); + fv_desc->is_truncatable = static_cast<CORBA::Boolean> (val); this->repo_->config ()->get_string_value (this->section_key_, "base_value", holder); diff --git a/TAO/orbsvcs/orbsvcs/IFRService/HomeDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/HomeDef_i.cpp index bfc3835aee2..f9d3c25e1a9 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/HomeDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/HomeDef_i.cpp @@ -910,7 +910,7 @@ TAO_HomeDef_i::fill_param_desc (ACE_Configuration_Section_Key &key, this->repo_->config ()->get_integer_value (param_key, "mode", val); - pd.mode = static_cast<CORBA::ParameterMode>(val); + pd.mode = static_cast<CORBA::ParameterMode> (val); } void diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils.cpp b/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils.cpp index 63fef42f507..504f63da55f 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils.cpp @@ -1165,7 +1165,7 @@ TAO_IFR_Service_Utils::fill_valuemember_seq ( repo->config ()->get_integer_value (member_key, "access", access); - vm_seq[i].access = static_cast<CORBA::Visibility>(access); + vm_seq[i].access = static_cast<CORBA::Visibility> (access); } } @@ -1209,7 +1209,7 @@ TAO_IFR_Service_Utils::path_to_def_kind (ACE_TString &path, repo->config ()->get_integer_value (TAO_IFR_Service_Utils::tmp_key_, "def_kind", kind); - return static_cast<CORBA::DefinitionKind>(kind); + return static_cast<CORBA::DefinitionKind> (kind); } CORBA::DefinitionKind diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IRObject_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/IRObject_i.cpp index 858401f5de6..f5d6b529406 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/IRObject_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/IRObject_i.cpp @@ -45,7 +45,7 @@ TAO_IRObject_i::update_key (ACE_ENV_SINGLE_ARG_DECL) ACE_THROW_SPEC ((CORBA::SystemException)) { TAO_POA_Current_Impl *pc_impl = - static_cast<TAO_POA_Current_Impl *>(TAO_TSS_RESOURCES::instance ()->poa_current_impl_); + static_cast<TAO_POA_Current_Impl *> (TAO_TSS_RESOURCES::instance ()->poa_current_impl_); PortableServer::ObjectId object_id; int status = TAO_POA::parse_ir_object_key (pc_impl->object_key (), diff --git a/TAO/orbsvcs/orbsvcs/IFRService/InterfaceAttrExtension_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/InterfaceAttrExtension_i.cpp index 78f5d055727..9fde706b170 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/InterfaceAttrExtension_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/InterfaceAttrExtension_i.cpp @@ -116,7 +116,7 @@ TAO_InterfaceAttrExtension_i::describe_ext_interface_i ( } } - CORBA::ULong size = static_cast<CORBA::ULong>(key_queue.size ()); + CORBA::ULong size = static_cast<CORBA::ULong> (key_queue.size ()); fifd->operations.length (size); for (i = 0; i < size; ++i) @@ -167,7 +167,7 @@ TAO_InterfaceAttrExtension_i::describe_ext_interface_i ( } } - size = static_cast<CORBA::ULong>(key_queue.size ()); + size = static_cast<CORBA::ULong> (key_queue.size ()); fifd->attributes.length (size); for (i = 0; i < size; ++i) diff --git a/TAO/orbsvcs/orbsvcs/IFRService/InterfaceDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/InterfaceDef_i.cpp index 48b6c6dfc4f..2ea6fd5cda3 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/InterfaceDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/InterfaceDef_i.cpp @@ -213,7 +213,7 @@ TAO_InterfaceDef_i::base_interfaces_i (ACE_ENV_SINGLE_ARG_DECL) this->base_interfaces_recursive (kind_queue, path_queue); - CORBA::ULong size = static_cast<CORBA::ULong>(kind_queue.size ()); + CORBA::ULong size = static_cast<CORBA::ULong> (kind_queue.size ()); CORBA::InterfaceDefSeq *seq = 0; ACE_NEW_THROW_EX (seq, @@ -489,7 +489,7 @@ TAO_InterfaceDef_i::describe_interface_i (ACE_ENV_SINGLE_ARG_DECL) } } - CORBA::ULong size = static_cast<CORBA::ULong>(key_queue.size ()); + CORBA::ULong size = static_cast<CORBA::ULong> (key_queue.size ()); fifd->operations.length (size); for (i = 0; i < size; ++i) @@ -540,7 +540,7 @@ TAO_InterfaceDef_i::describe_interface_i (ACE_ENV_SINGLE_ARG_DECL) } } - size = static_cast<CORBA::ULong>(key_queue.size ()); + size = static_cast<CORBA::ULong> (key_queue.size ()); fifd->attributes.length (size); for (i = 0; i < size; ++i) @@ -1105,7 +1105,7 @@ TAO_InterfaceDef_i::base_interfaces_recursive ( "def_kind", kind); - def_kind = static_cast<CORBA::DefinitionKind>(kind); + def_kind = static_cast<CORBA::DefinitionKind> (kind); kind_queue.enqueue_tail (def_kind); } diff --git a/TAO/orbsvcs/orbsvcs/IFRService/OperationDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/OperationDef_i.cpp index ddad4078e4a..588776f8672 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/OperationDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/OperationDef_i.cpp @@ -207,7 +207,7 @@ TAO_OperationDef_i::params_i (ACE_ENV_SINGLE_ARG_DECL) } } - CORBA::ULong size = static_cast<CORBA::ULong>(key_queue.size ()); + CORBA::ULong size = static_cast<CORBA::ULong> (key_queue.size ()); CORBA::ParDescriptionSeq *pd_seq = 0; ACE_NEW_THROW_EX (pd_seq, @@ -241,7 +241,7 @@ TAO_OperationDef_i::params_i (ACE_ENV_SINGLE_ARG_DECL) "mode", mode); - retval[i].mode = static_cast<CORBA::ParameterMode>(mode); + retval[i].mode = static_cast<CORBA::ParameterMode> (mode); ACE_TString type_path; this->repo_->config ()->get_string_value (key, @@ -356,7 +356,7 @@ TAO_OperationDef_i::mode_i (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) "mode", mode); - return static_cast<CORBA::OperationMode>(mode); + return static_cast<CORBA::OperationMode> (mode); } void @@ -431,7 +431,7 @@ TAO_OperationDef_i::contexts_i (ACE_ENV_SINGLE_ARG_DECL) } } - CORBA::ULong size = static_cast<CORBA::ULong>(context_queue.size ()); + CORBA::ULong size = static_cast<CORBA::ULong> (context_queue.size ()); CORBA::ContextIdSeq *ci_seq = 0; ACE_NEW_THROW_EX (ci_seq, @@ -541,7 +541,7 @@ TAO_OperationDef_i::exceptions_i (ACE_ENV_SINGLE_ARG_DECL ) } } - CORBA::ULong size = static_cast<CORBA::ULong>(path_queue.size ()); + CORBA::ULong size = static_cast<CORBA::ULong> (path_queue.size ()); CORBA::ExceptionDefSeq *ed_seq = 0; ACE_NEW_THROW_EX (ed_seq, @@ -680,7 +680,7 @@ TAO_OperationDef_i::make_description ( } } - CORBA::ULong size = static_cast<CORBA::ULong>(path_queue.size ()); + CORBA::ULong size = static_cast<CORBA::ULong> (path_queue.size ()); od.exceptions.length (size); diff --git a/TAO/orbsvcs/orbsvcs/IFRService/PrimitiveDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/PrimitiveDef_i.cpp index 7b04b4348c7..b7f83ae5605 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/PrimitiveDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/PrimitiveDef_i.cpp @@ -63,7 +63,7 @@ TAO_PrimitiveDef_i::type_i (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) "pkind", pkind); - switch (static_cast<CORBA::PrimitiveKind>(pkind)) + switch (static_cast<CORBA::PrimitiveKind> (pkind)) { case CORBA::pk_null: return CORBA::TypeCode::_duplicate (CORBA::_tc_null); @@ -135,6 +135,6 @@ TAO_PrimitiveDef_i::kind_i (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) "pkind", pkind); - return static_cast<CORBA::PrimitiveKind>(pkind); + return static_cast<CORBA::PrimitiveKind> (pkind); } diff --git a/TAO/orbsvcs/orbsvcs/IFRService/Repository_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/Repository_i.cpp index 986b5cc86c4..b2cb007fc14 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/Repository_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/Repository_i.cpp @@ -95,7 +95,7 @@ TAO_Repository_i::lookup_id_i (const char *search_id kind); CORBA::DefinitionKind def_kind = - static_cast<CORBA::DefinitionKind>(kind); + static_cast<CORBA::DefinitionKind> (kind); CORBA::Object_var obj = TAO_IFR_Service_Utils::create_objref (def_kind, @@ -666,7 +666,7 @@ TAO_Repository_i::create_sections (void) for (u_int i = 0; i < num_pkinds; ++i) { ACE_Configuration_Section_Key key; - CORBA::PrimitiveKind pkind = static_cast<CORBA::PrimitiveKind>(i); + CORBA::PrimitiveKind pkind = static_cast<CORBA::PrimitiveKind> (i); this->config_->open_section (this->pkinds_key_, this->pkind_to_string (pkind), @@ -908,7 +908,7 @@ TAO_Repository_i::select_container (CORBA::DefinitionKind def_kind) const case CORBA::dk_LocalInterface: return this->ExtLocalInterfaceDef_servant_->_tied_object (); case CORBA::dk_Repository: - return const_cast<TAO_Repository_i *>(this); + return const_cast<TAO_Repository_i *> (this); case CORBA::dk_Struct: return this->StructDef_servant_->_tied_object (); case CORBA::dk_Union: diff --git a/TAO/orbsvcs/orbsvcs/IFRService/SequenceDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/SequenceDef_i.cpp index 130c9882983..f10a81d8184 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/SequenceDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/SequenceDef_i.cpp @@ -110,7 +110,7 @@ TAO_SequenceDef_i::bound_i (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) "bound", bound); - return static_cast<CORBA::ULong>(bound); + return static_cast<CORBA::ULong> (bound); } void diff --git a/TAO/orbsvcs/orbsvcs/IFRService/StringDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/StringDef_i.cpp index 2d1003038d0..5b07e4d47f3 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/StringDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/StringDef_i.cpp @@ -97,7 +97,7 @@ TAO_StringDef_i::bound_i (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) "bound", retval); - return static_cast<CORBA::ULong>(retval); + return static_cast<CORBA::ULong> (retval); } void diff --git a/TAO/orbsvcs/orbsvcs/IFRService/StructDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/StructDef_i.cpp index c0362f74cd3..894d2c42c19 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/StructDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/StructDef_i.cpp @@ -180,13 +180,13 @@ TAO_StructDef_i::members_i (ACE_ENV_SINGLE_ARG_DECL) kind); CORBA::DefinitionKind def_kind = - static_cast<CORBA::DefinitionKind>(kind); + static_cast<CORBA::DefinitionKind> (kind); kind_queue.enqueue_tail (def_kind); } } - CORBA::ULong size = static_cast<CORBA::ULong>(kind_queue.size ()); + CORBA::ULong size = static_cast<CORBA::ULong> (kind_queue.size ()); CORBA::StructMemberSeq *members = 0; ACE_NEW_THROW_EX (members, diff --git a/TAO/orbsvcs/orbsvcs/IFRService/UnionDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/UnionDef_i.cpp index 7e60ae571de..760ac5f8a41 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/UnionDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/UnionDef_i.cpp @@ -270,7 +270,7 @@ TAO_UnionDef_i::members_i (ACE_ENV_SINGLE_ARG_DECL) } } - CORBA::ULong size = static_cast<CORBA::ULong>(key_queue.size ()); + CORBA::ULong size = static_cast<CORBA::ULong> (key_queue.size ()); CORBA::UnionMemberSeq *members = 0; ACE_NEW_THROW_EX (members, @@ -427,38 +427,38 @@ TAO_UnionDef_i::fetch_label (const ACE_Configuration_Section_Key member_key, switch (kind) { case CORBA::tk_char: - member.label <<= CORBA::Any::from_char (static_cast<CORBA::Char>(value)); + member.label <<= CORBA::Any::from_char (static_cast<CORBA::Char> (value)); break; case CORBA::tk_wchar: - member.label <<= CORBA::Any::from_wchar (static_cast<CORBA::WChar>(value)); + member.label <<= CORBA::Any::from_wchar (static_cast<CORBA::WChar> (value)); break; case CORBA::tk_boolean: - member.label <<= CORBA::Any::from_boolean (static_cast<CORBA::Boolean>(value)); + member.label <<= CORBA::Any::from_boolean (static_cast<CORBA::Boolean> (value)); break; case CORBA::tk_short: - member.label <<= static_cast<CORBA::Short>(value); + member.label <<= static_cast<CORBA::Short> (value); break; case CORBA::tk_ushort: - member.label <<= static_cast<CORBA::UShort>(value); + member.label <<= static_cast<CORBA::UShort> (value); break; case CORBA::tk_long: - member.label <<= static_cast<CORBA::Long>(value); + member.label <<= static_cast<CORBA::Long> (value); break; case CORBA::tk_ulong: - member.label <<= static_cast<CORBA::ULong>(value); + member.label <<= static_cast<CORBA::ULong> (value); break; #if !defined (ACE_LACKS_LONGLONG_T) case CORBA::tk_longlong: - member.label <<= static_cast<CORBA::LongLong>(value); + member.label <<= static_cast<CORBA::LongLong> (value); break; #endif /* ACE_LACKS_LONGLONG_T */ case CORBA::tk_ulonglong: - member.label <<= static_cast<CORBA::ULongLong>(value); + member.label <<= static_cast<CORBA::ULongLong> (value); break; case CORBA::tk_enum: { TAO_OutputCDR cdr; - cdr.write_ulong (static_cast<CORBA::ULong>(value)); + cdr.write_ulong (static_cast<CORBA::ULong> (value)); TAO::Unknown_IDL_Type *impl = 0; ACE_NEW (impl, TAO::Unknown_IDL_Type (tc.in (), diff --git a/TAO/orbsvcs/orbsvcs/IFRService/UsesDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/UsesDef_i.cpp index b20de22a5f7..f1899bea0d0 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/UsesDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/UsesDef_i.cpp @@ -175,7 +175,7 @@ TAO_UsesDef_i::is_multiple_i (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) this->repo_->config ()->get_integer_value (this->section_key_, "is_multiple", val); - return static_cast<CORBA::Boolean>(val); + return static_cast<CORBA::Boolean> (val); } void diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ValueDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ValueDef_i.cpp index a9c67a09dac..1fdb8eab6b5 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/ValueDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/ValueDef_i.cpp @@ -260,7 +260,7 @@ TAO_ValueDef_i::supported_interfaces_i ( "def_kind", kind ); - def_kind = static_cast<CORBA::DefinitionKind>(kind); + def_kind = static_cast<CORBA::DefinitionKind> (kind); if (def_kind == CORBA::dk_Interface) { @@ -685,7 +685,7 @@ TAO_ValueDef_i::is_abstract_i (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) this->repo_->config ()->get_integer_value (this->section_key_, "is_abstract", is_it); - return static_cast<CORBA::Boolean>(is_it); + return static_cast<CORBA::Boolean> (is_it); } void @@ -710,7 +710,7 @@ TAO_ValueDef_i::is_abstract_i (CORBA::Boolean is_abstract this->repo_->config ()->set_integer_value ( this->section_key_, "is_abstract", - static_cast<CORBA::ULong>(is_abstract)); + static_cast<CORBA::ULong> (is_abstract)); } CORBA::Boolean @@ -733,7 +733,7 @@ TAO_ValueDef_i::is_custom_i (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) this->repo_->config ()->get_integer_value (this->section_key_, "is_custom", is_it); - return static_cast<CORBA::Boolean>(is_it); + return static_cast<CORBA::Boolean> (is_it); } void @@ -758,7 +758,7 @@ TAO_ValueDef_i::is_custom_i (CORBA::Boolean is_custom this->repo_->config ()->set_integer_value ( this->section_key_, "is_custom", - static_cast<CORBA::ULong>(is_custom)); + static_cast<CORBA::ULong> (is_custom)); } CORBA::Boolean @@ -781,7 +781,7 @@ TAO_ValueDef_i::is_truncatable_i (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) this->repo_->config ()->get_integer_value (this->section_key_, "is_truncatable", is_it); - return static_cast<CORBA::Boolean>(is_it); + return static_cast<CORBA::Boolean> (is_it); } void @@ -806,7 +806,7 @@ TAO_ValueDef_i::is_truncatable_i (CORBA::Boolean is_truncatable this->repo_->config ()->set_integer_value ( this->section_key_, "is_truncatable", - static_cast<CORBA::ULong>(is_truncatable)); + static_cast<CORBA::ULong> (is_truncatable)); } CORBA::Boolean @@ -939,11 +939,11 @@ TAO_ValueDef_i::describe_value_i (ACE_ENV_SINGLE_ARG_DECL) this->repo_->config ()->get_integer_value (this->section_key_, "is_abstract", val); - fv_desc->is_abstract = static_cast<CORBA::Boolean>(val); + fv_desc->is_abstract = static_cast<CORBA::Boolean> (val); this->repo_->config ()->get_integer_value (this->section_key_, "is_custom", val); - fv_desc->is_custom = static_cast<CORBA::Boolean>(val); + fv_desc->is_custom = static_cast<CORBA::Boolean> (val); this->repo_->config ()->get_string_value (this->section_key_, "container_id", holder); @@ -1012,7 +1012,7 @@ TAO_ValueDef_i::describe_value_i (ACE_ENV_SINGLE_ARG_DECL) this->repo_->config ()->get_integer_value (op_key, "mode", val); - fv_desc->operations[i].mode = static_cast<CORBA::OperationMode>(val); + fv_desc->operations[i].mode = static_cast<CORBA::OperationMode> (val); CORBA::TCKind kind = fv_desc->operations[i].result->kind (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK_RETURN (0); @@ -1089,7 +1089,7 @@ TAO_ValueDef_i::describe_value_i (ACE_ENV_SINGLE_ARG_DECL) "mode", val); fv_desc->operations[i].parameters[j].mode = - static_cast<CORBA::ParameterMode>(val); + static_cast<CORBA::ParameterMode> (val); } } @@ -1198,7 +1198,7 @@ TAO_ValueDef_i::describe_value_i (ACE_ENV_SINGLE_ARG_DECL) "mode", val); fv_desc->attributes[i].mode = - static_cast<CORBA::AttributeMode>(val); + static_cast<CORBA::AttributeMode> (val); this->repo_->config ()->get_string_value (attr_key, "type_path", holder); @@ -1269,7 +1269,7 @@ TAO_ValueDef_i::describe_value_i (ACE_ENV_SINGLE_ARG_DECL) "access", val); fv_desc->members[i].access = - static_cast<CORBA::Visibility>(val); + static_cast<CORBA::Visibility> (val); // Use type path for 'type' and 'type_def', @@ -1389,7 +1389,7 @@ TAO_ValueDef_i::describe_value_i (ACE_ENV_SINGLE_ARG_DECL) this->repo_->config ()->get_integer_value (this->section_key_, "is_truncatable", val); - fv_desc->is_truncatable = static_cast<CORBA::Boolean>(val); + fv_desc->is_truncatable = static_cast<CORBA::Boolean> (val); this->repo_->config ()->get_string_value (this->section_key_, "base_value", holder); @@ -1811,11 +1811,11 @@ TAO_ValueDef_i::fill_value_description (CORBA::ValueDescription &desc CORBA::ULong tmp = this->is_abstract_i (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK; - desc.is_abstract = static_cast<CORBA::Boolean>(tmp); + desc.is_abstract = static_cast<CORBA::Boolean> (tmp); tmp = this->is_custom_i (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK; - desc.is_custom = static_cast<CORBA::Boolean>(tmp); + desc.is_custom = static_cast<CORBA::Boolean> (tmp); ACE_TString holder; this->repo_->config ()->get_string_value (this->section_key_, @@ -1842,7 +1842,7 @@ TAO_ValueDef_i::fill_value_description (CORBA::ValueDescription &desc tmp = this->is_truncatable_i (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK; - desc.is_truncatable = static_cast<CORBA::Boolean>(tmp); + desc.is_truncatable = static_cast<CORBA::Boolean> (tmp); this->repo_->config ()->get_string_value (this->section_key_, "base_value", diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ValueMemberDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ValueMemberDef_i.cpp index d778025fcec..4b83ad3dfb9 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/ValueMemberDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/ValueMemberDef_i.cpp @@ -76,7 +76,7 @@ TAO_ValueMemberDef_i::describe_i (ACE_ENV_SINGLE_ARG_DECL) this->repo_->config ()->get_integer_value (this->section_key_, "access", val); - vm.access = static_cast<CORBA::Visibility>(val); + vm.access = static_cast<CORBA::Visibility> (val); CORBA::Contained::Description *retval = 0; ACE_NEW_RETURN (retval, @@ -189,7 +189,7 @@ TAO_ValueMemberDef_i::access_i (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) this->repo_->config ()->get_integer_value (this->section_key_, "access", val); - return static_cast<CORBA::Visibility>(val); + return static_cast<CORBA::Visibility> (val); } void diff --git a/TAO/orbsvcs/orbsvcs/IFRService/WstringDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/WstringDef_i.cpp index c66577da9d6..6f744c87331 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/WstringDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/WstringDef_i.cpp @@ -97,7 +97,7 @@ TAO_WstringDef_i::bound_i (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) "bound", retval); - return static_cast<CORBA::ULong>(retval); + return static_cast<CORBA::ULong> (retval); } void diff --git a/TAO/orbsvcs/orbsvcs/IOR_Multicast.cpp b/TAO/orbsvcs/orbsvcs/IOR_Multicast.cpp index c95113c1aef..0e318cf9a82 100644 --- a/TAO/orbsvcs/orbsvcs/IOR_Multicast.cpp +++ b/TAO/orbsvcs/orbsvcs/IOR_Multicast.cpp @@ -83,7 +83,7 @@ TAO_IOR_Multicast::init (const char *ior, else { actual_mcast_addr = - CORBA::string_alloc (static_cast<CORBA::ULong>(ACE_OS::strlen (mcast_addr))); + CORBA::string_alloc (static_cast<CORBA::ULong> (ACE_OS::strlen (mcast_addr))); actual_mcast_addr = mcast_addr; } @@ -243,7 +243,7 @@ TAO_IOR_Multicast::handle_input (ACE_HANDLE) iovp[0].iov_len = sizeof (CORBA::Short); // The ior. - iovp[1].iov_base = const_cast<char*>(this->ior_.c_str ()); + iovp[1].iov_base = const_cast<char*> (this->ior_.c_str ()); iovp[1].iov_len = ACE_static_cast(u_long, this->ior_.length () + 1); ssize_t result = stream.sendv_n (iovp, cnt); diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.cpp index 65dbe000aeb..e3c8ec41e17 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.cpp @@ -28,7 +28,7 @@ TAO_LB_CPU_Load_Average_Monitor::TAO_LB_CPU_Load_Average_Monitor (const char * l { // Couldn't determine hostname. Use the current time // instead. - CORBA::ULong t = static_cast<CORBA::ULong>(ACE_OS::time ()); + CORBA::ULong t = static_cast<CORBA::ULong> (ACE_OS::time ()); // A 64 byte buffer is more than enough to contain the // string representation of a 32 bit unsigned integer. diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Utilization_Monitor.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Utilization_Monitor.cpp index 663a50e6f33..9b858d65645 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Utilization_Monitor.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Utilization_Monitor.cpp @@ -77,7 +77,7 @@ TAO_LB_CPU_Utilization_Monitor::TAO_LB_CPU_Utilization_Monitor (const char * loc { // Couldn't determine hostname. Use the current time // instead. - CORBA::ULong t = static_cast<CORBA::ULong>(ACE_OS::time ()); + CORBA::ULong t = static_cast<CORBA::ULong> (ACE_OS::time ()); // A 64 byte buffer is more than enough to contain the // string representation of a 32 bit unsigned integer. diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.cpp index d52a4ce3f93..c84794ebca0 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.cpp @@ -925,7 +925,7 @@ TAO_LB_LoadManager::init (ACE_Reactor * reactor, // using the same POA. const ACE_Time_Value tv = ACE_OS::gettimeofday (); const CORBA::Long time = - static_cast<CORBA::Long>(tv.msec ()); // Time in milliseconds. + static_cast<CORBA::Long> (tv.msec ()); // Time in milliseconds. char poa_name[] = "TAO_LB_LoadManager_POA - 0xZZZZZZZZ"; char * astr = diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Random.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Random.cpp index 6cb526de268..3068b517691 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Random.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Random.cpp @@ -16,7 +16,7 @@ static pthread_once_t tao_lb_once_control = PTHREAD_ONCE_INIT; extern "C" void tao_lb_random_init_routine (void) { - ACE_OS::srand (static_cast<unsigned int>(ACE_OS::time ())); + ACE_OS::srand (static_cast<unsigned int> (ACE_OS::time ())); } @@ -145,7 +145,7 @@ TAO_LB_Random::_tao_next_member ( // random as the higher order bits. // Prevent integer arithmetic overflow. - const CORBA::Float flen = static_cast<CORBA::Float>(len); + const CORBA::Float flen = static_cast<CORBA::Float> (len); const CORBA::ULong i = ACE_static_cast (CORBA::ULong, diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.cpp index 4fa50fdfd21..ca9e032d827 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.cpp @@ -62,7 +62,7 @@ TAO_LB_ServerRequestInterceptor::receive_request_service_contexts ( // standard interpretive marshaling via a CDR encapsulation // Codec for efficiency reasons. const char * buf = - reinterpret_cast<const char *>(service_context->context_data.get_buffer ()); + reinterpret_cast<const char *> (service_context->context_data.get_buffer ()); TAO_InputCDR cdr (buf, service_context->context_data.length ()); @@ -70,7 +70,7 @@ TAO_LB_ServerRequestInterceptor::receive_request_service_contexts ( if ((cdr >> ACE_InputCDR::to_boolean (byte_order)) == 0) ACE_THROW (CORBA::BAD_PARAM ()); - cdr.reset_byte_order (static_cast<int>(byte_order)); + cdr.reset_byte_order (static_cast<int> (byte_order)); CORBA::Object_var object_group; if (cdr >> object_group.out ()) diff --git a/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.cpp b/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.cpp index 46067b42acd..debb9bd168c 100644 --- a/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.cpp @@ -24,7 +24,7 @@ TAO_LogMgr_i::list_logs (ACE_ENV_SINGLE_ARG_DECL) DsLogAdmin::LogList* list; // Figure out the length of the list. - CORBA::ULong len = static_cast<CORBA::ULong>(hash_map_.current_size ()); + CORBA::ULong len = static_cast<CORBA::ULong> (hash_map_.current_size ()); // Allocate the list of <len> length. ACE_NEW_THROW_EX (list, @@ -90,7 +90,7 @@ TAO_LogMgr_i::list_logs_by_id (ACE_ENV_SINGLE_ARG_DECL) DsLogAdmin::LogIdList* list; // Figure out the length of the list. - CORBA::ULong len = static_cast<CORBA::ULong>(hash_map_.current_size ()); + CORBA::ULong len = static_cast<CORBA::ULong> (hash_map_.current_size ()); // Allocate the list of <len> length. ACE_NEW_THROW_EX (list, diff --git a/TAO/orbsvcs/orbsvcs/Log/Log_i.cpp b/TAO/orbsvcs/orbsvcs/Log/Log_i.cpp index 6e119b68436..fd5cfd052da 100644 --- a/TAO/orbsvcs/orbsvcs/Log/Log_i.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/Log_i.cpp @@ -601,7 +601,7 @@ TAO_Log_i::query_i (const char *constraint, // Create an iterator TAO_LogRecordStore::LOG_RECORD_HASH_MAP_ITER iter (store); - CORBA::ULong len = static_cast<CORBA::ULong>(store.current_size ()); + CORBA::ULong len = static_cast<CORBA::ULong> (store.current_size ()); // How many entries? @@ -756,7 +756,7 @@ TAO_Log_i::match_i (const char *constraint, // Create an iterator TAO_LogRecordStore::LOG_RECORD_STORE_ITER iter (store); - CORBA::ULong len = static_cast<CORBA::ULong>(store.current_size ()); + CORBA::ULong len = static_cast<CORBA::ULong> (store.current_size ()); // How many entries? // Iterate over and populate the list. @@ -1250,7 +1250,7 @@ TAO_Log_i::remove_old_records (ACE_ENV_SINGLE_ARG_DECL) static char out[256] = ""; double temp1 = - static_cast<double>(ACE_UINT64_DBLCAST_ADAPTER (p_time)); + static_cast<double> (ACE_UINT64_DBLCAST_ADAPTER (p_time)); ACE_OS::sprintf (out, "time > %.0f", temp1); @@ -1266,7 +1266,7 @@ TAO_Log_i::remove_old_records (ACE_ENV_SINGLE_ARG_DECL) // Create an iterator TAO_LogRecordStore::LOG_RECORD_STORE_ITER iter (store); - CORBA::ULong len = static_cast<CORBA::ULong>(store.current_size ()); + CORBA::ULong len = static_cast<CORBA::ULong> (store.current_size ()); // How many entries? // Iterate over and populate the list. diff --git a/TAO/orbsvcs/orbsvcs/Log/NotifyLog_i.cpp b/TAO/orbsvcs/orbsvcs/Log/NotifyLog_i.cpp index db54b247653..df5bda921c0 100644 --- a/TAO/orbsvcs/orbsvcs/Log/NotifyLog_i.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/NotifyLog_i.cpp @@ -59,8 +59,8 @@ TAO_NotifyLog_i::copy (DsLogAdmin::LogId &id ACE_ENV_ARG_DECL) CosNotification::AdminProperties* admin = get_admin (ACE_ENV_SINGLE_ARG_PARAMETER); DsNotifyLogAdmin::NotifyLog_var log = - notifyLogFactory->create (DsLogAdmin::halt, 0, thresholds_, static_cast<const CosNotification::QoSProperties>(*qos), - static_cast<const CosNotification::AdminProperties>(*admin), id); + notifyLogFactory->create (DsLogAdmin::halt, 0, thresholds_, static_cast<const CosNotification::QoSProperties> (*qos), + static_cast<const CosNotification::AdminProperties> (*admin), id); this->copy_attributes (log.in () ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (DsLogAdmin::Log::_nil ()); @@ -82,8 +82,8 @@ TAO_NotifyLog_i::copy_with_id (DsLogAdmin::LogId id ACE_ENV_ARG_DECL) CosNotification::AdminProperties* admin = get_admin (ACE_ENV_SINGLE_ARG_PARAMETER); DsNotifyLogAdmin::NotifyLog_var log = - notifyLogFactory->create_with_id (id, DsLogAdmin::halt, 0, thresholds_, static_cast<const CosNotification::QoSProperties>(*qos), - static_cast<const CosNotification::AdminProperties>(*admin)); + notifyLogFactory->create_with_id (id, DsLogAdmin::halt, 0, thresholds_, static_cast<const CosNotification::QoSProperties> (*qos), + static_cast<const CosNotification::AdminProperties> (*admin)); this->copy_attributes (log.in () ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (DsLogAdmin::Log::_nil ()); diff --git a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_Logger.cpp b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_Logger.cpp index 94f9dc1d363..2906191c6b3 100644 --- a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_Logger.cpp +++ b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_Logger.cpp @@ -824,16 +824,16 @@ TAO_Metrics_Logger::process_timeprobe_data (const Metrics::TimeprobeParameter_Se CORBA::Any any; util_data_.hrt_op_utilization = - static_cast<CORBA::Double>(ACE_UINT64_DBLCAST_ADAPTER (hrt_op_time)) - / static_cast<CORBA::Double>(ACE_UINT64_DBLCAST_ADAPTER (interval)); + static_cast<CORBA::Double> (ACE_UINT64_DBLCAST_ADAPTER (hrt_op_time)) + / static_cast<CORBA::Double> (ACE_UINT64_DBLCAST_ADAPTER (interval)); util_data_.srt_op_utilization = - static_cast<CORBA::Double>(ACE_UINT64_DBLCAST_ADAPTER (srt_op_time)) - / static_cast<CORBA::Double>(ACE_UINT64_DBLCAST_ADAPTER (interval)); + static_cast<CORBA::Double> (ACE_UINT64_DBLCAST_ADAPTER (srt_op_time)) + / static_cast<CORBA::Double> (ACE_UINT64_DBLCAST_ADAPTER (interval)); util_data_.queue_utilization = - static_cast<CORBA::Double>(ACE_UINT64_DBLCAST_ADAPTER (queue_time)) - / static_cast<CORBA::Double>(ACE_UINT64_DBLCAST_ADAPTER (interval)); + static_cast<CORBA::Double> (ACE_UINT64_DBLCAST_ADAPTER (queue_time)) + / static_cast<CORBA::Double> (ACE_UINT64_DBLCAST_ADAPTER (interval)); ACE_TRY_NEW_ENV { diff --git a/TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.cpp b/TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.cpp index 180d0ca7a7b..6caa0472771 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.cpp @@ -71,7 +71,7 @@ TAO_Hash_Naming_Context::get_context (const CosNaming::Name &name CORBA::ULong name_len = name.length (); CosNaming::Name comp_name (name.maximum (), name_len - 1, - const_cast<CosNaming::NameComponent*>(name.get_buffer ())); + const_cast<CosNaming::NameComponent*> (name.get_buffer ())); ACE_TRY { // Resolve the name. @@ -459,7 +459,7 @@ TAO_Hash_Naming_Context::resolve (const CosNaming::Name& n CosNaming::Name rest_of_name (n.maximum () - 1, n.length () - 1, - const_cast<CosNaming::NameComponent*>(n.get_buffer ()) + const_cast<CosNaming::NameComponent*> (n.get_buffer ()) + 1); // If there are any exceptions, they will propagate up. diff --git a/TAO/orbsvcs/orbsvcs/Naming/Naming_Server.cpp b/TAO/orbsvcs/orbsvcs/Naming/Naming_Server.cpp index a05f1dfaa3f..bb14c571b2b 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Naming_Server.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/Naming_Server.cpp @@ -417,7 +417,7 @@ TAO_Naming_Server::init_with_orb (int argc, { ACE_OS::fprintf (pidf, "%ld\n", - static_cast<long>(ACE_OS::getpid ())); + static_cast<long> (ACE_OS::getpid ())); ACE_OS::fclose (pidf); } } @@ -585,7 +585,7 @@ TAO_Naming_Server::init_new_naming (CORBA::ORB_ptr orb, ACE_OS::getenv ("NameServicePort"); if (port_number != 0) - port = static_cast<u_short>(ACE_OS::atoi (port_number)); + port = static_cast<u_short> (ACE_OS::atoi (port_number)); } // Port wasn't specified on the command-line or in environment - diff --git a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.cpp b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.cpp index ded104eb40c..6d2b4308065 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.cpp @@ -75,7 +75,7 @@ TAO_Persistent_Context_Index::bind (const char *poa_id, else { // Populate memory with data. - counter = reinterpret_cast<ACE_UINT32 *>(ptr); + counter = reinterpret_cast<ACE_UINT32 *> (ptr); *counter = 0; char * poa_id_ptr = ptr + counter_len; ACE_OS::strcpy (poa_id_ptr, poa_id); @@ -125,7 +125,7 @@ TAO_Persistent_Context_Index::~TAO_Persistent_Context_Index (void) { delete allocator_; ACE_OS::free (ACE_reinterpret_cast (void *, - const_cast<ACE_TCHAR *>(index_file_))); + const_cast<ACE_TCHAR *> (index_file_))); } ACE_Allocator* diff --git a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context.cpp b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context.cpp index b2fe1700d6e..97775258136 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context.cpp @@ -478,7 +478,7 @@ TAO_Persistent_Naming_Context::list (CORBA::ULong how_many, if (this->context_->current_size () > how_many) n = how_many; else - n = static_cast<CORBA::ULong>(this->context_->current_size ()); + n = static_cast<CORBA::ULong> (this->context_->current_size ()); // Use hash iterator to populate a BindingList with bindings. bl->length (n); diff --git a/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context.cpp b/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context.cpp index 09d2ab7e5da..688e13d51cd 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context.cpp @@ -259,7 +259,7 @@ void TAO_Storable_Naming_Context::Write(TAO_Storable_Base& wrtr) ACE_TRACE("Write"); TAO_NS_Persistence_Header header; - header.size (static_cast<unsigned int>(storable_context_->current_size())); + header.size (static_cast<unsigned int> (storable_context_->current_size())); header.destroyed (destroyed_); wrtr << header; @@ -1016,7 +1016,7 @@ TAO_Storable_Naming_Context::resolve (const CosNaming::Name& n CosNaming::Name rest_of_name (n.maximum () - 1, n.length () - 1, - const_cast<CosNaming::NameComponent*>(n.get_buffer ()) + 1); + const_cast<CosNaming::NameComponent*> (n.get_buffer ()) + 1); // If there are any exceptions, they will propagate up. return context->resolve (rest_of_name @@ -1372,7 +1372,7 @@ TAO_Storable_Naming_Context::list (CORBA::ULong how_many, if (this->context_->current_size () > how_many) n = how_many; else - n = static_cast<CORBA::ULong>(this->context_->current_size ()); + n = static_cast<CORBA::ULong> (this->context_->current_size ()); // Use the hash map iterator to populate <bl> with bindings. bl->length (n); diff --git a/TAO/orbsvcs/orbsvcs/Naming/Transient_Naming_Context.cpp b/TAO/orbsvcs/orbsvcs/Naming/Transient_Naming_Context.cpp index 1c3f72f3194..1a30740b27b 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Transient_Naming_Context.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/Transient_Naming_Context.cpp @@ -280,7 +280,7 @@ TAO_Transient_Naming_Context::list (CORBA::ULong how_many, if (this->context_->current_size () > how_many) n = how_many; else - n = static_cast<CORBA::ULong>(this->context_->current_size ()); + n = static_cast<CORBA::ULong> (this->context_->current_size ()); // Use the hash map iterator to populate <bl> with bindings. bl->length (n); diff --git a/TAO/orbsvcs/orbsvcs/Notify/Admin.cpp b/TAO/orbsvcs/orbsvcs/Notify/Admin.cpp index d27768422fc..b19dccf80b0 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Admin.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Admin.cpp @@ -42,7 +42,7 @@ TAO_Notify_Admin::~TAO_Notify_Admin () void TAO_Notify_Admin::init (TAO_Notify::Topology_Parent * parent ACE_ENV_ARG_DECL) { - this->ec_ = dynamic_cast<TAO_Notify_EventChannel *>(parent); + this->ec_ = dynamic_cast<TAO_Notify_EventChannel *> (parent); ACE_ASSERT (this->ec_ != 0); this->ec_->_incr_refcnt (); @@ -175,7 +175,7 @@ TAO_Notify_Admin::load_child (const ACE_CString &type, { if (DEBUG_LEVEL) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Admin reload subscription %d\n") - , static_cast<int>(id) + , static_cast<int> (id) )); // since we initialized our subscribed types to everything // in the constructor. we have to clear it out first. @@ -186,7 +186,7 @@ TAO_Notify_Admin::load_child (const ACE_CString &type, { if (DEBUG_LEVEL) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Admin reload filter_admin %d\n") - , static_cast<int>(id) + , static_cast<int> (id) )); result = & this->filter_admin_; } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Any/PushConsumer.cpp b/TAO/orbsvcs/orbsvcs/Notify/Any/PushConsumer.cpp index e1b730427c3..07701320013 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Any/PushConsumer.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Any/PushConsumer.cpp @@ -81,7 +81,7 @@ TAO_Notify_PushConsumer::get_ior (ACE_CString & iorstr) const { CORBA::String_var ior = orb->object_to_string(this->push_consumer_.in() ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - iorstr = static_cast<const char *>(ior.in ()); + iorstr = static_cast<const char *> (ior.in ()); result = true; } ACE_CATCHANY @@ -96,7 +96,7 @@ void TAO_Notify_PushConsumer::reconnect_from_consumer (TAO_Notify_Consumer* old_consumer ACE_ENV_ARG_DECL) { - TAO_Notify_PushConsumer* tmp = dynamic_cast<TAO_Notify_PushConsumer*>(old_consumer); + TAO_Notify_PushConsumer* tmp = dynamic_cast<TAO_Notify_PushConsumer*> (old_consumer); ACE_ASSERT(tmp != 0); this->init(tmp->push_consumer_.in() ACE_ENV_ARG_PARAMETER); ACE_CHECK; diff --git a/TAO/orbsvcs/orbsvcs/Notify/Any/PushSupplier.cpp b/TAO/orbsvcs/orbsvcs/Notify/Any/PushSupplier.cpp index 79b4c16f80e..e7fd70cd7af 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Any/PushSupplier.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Any/PushSupplier.cpp @@ -47,7 +47,7 @@ TAO_Notify_PushSupplier::get_ior (ACE_CString & iorstr) const { CORBA::String_var ior = orb->object_to_string(this->push_supplier_.in() ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - iorstr = static_cast<const char *>(ior.in ()); + iorstr = static_cast<const char *> (ior.in ()); result = true; } ACE_CATCHANY diff --git a/TAO/orbsvcs/orbsvcs/Notify/Buffering_Strategy.cpp b/TAO/orbsvcs/orbsvcs/Notify/Buffering_Strategy.cpp index 8a68f415e7a..83cef826e15 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Buffering_Strategy.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Buffering_Strategy.cpp @@ -67,7 +67,7 @@ TAO_Notify_Buffering_Strategy::update_qos_properties ( this->blocking_time_ = # if defined (ACE_CONFIG_WIN32_H) - ACE_Time_Value (static_cast<long>(blocking_timeout.value ())); + ACE_Time_Value (static_cast<long> (blocking_timeout.value ())); # else ACE_Time_Value (blocking_timeout.value () / 1); # endif /* ACE_CONFIG_WIN32_H */ @@ -194,7 +194,7 @@ TAO_Notify_Buffering_Strategy::dequeue (TAO_Notify_Method_Request_Queueable* &me if (this->msg_queue_.dequeue (mb) == -1) return -1; - method_request = dynamic_cast<TAO_Notify_Method_Request_Queueable*>(mb); + method_request = dynamic_cast<TAO_Notify_Method_Request_Queueable*> (mb); if (method_request == 0) return -1; diff --git a/TAO/orbsvcs/orbsvcs/Notify/Consumer.cpp b/TAO/orbsvcs/orbsvcs/Notify/Consumer.cpp index e5a3fa2f170..1b350eced06 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Consumer.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Consumer.cpp @@ -101,7 +101,7 @@ TAO_Notify_Consumer::enqueue_request ( if (DEBUG_LEVEL > 3) ACE_DEBUG ( (LM_DEBUG, ACE_TEXT ("Consumer %d: enqueue_request (%d) @%@.\n"), - static_cast<int>(this->proxy ()->id ()), + static_cast<int> (this->proxy ()->id ()), request->sequence (), request )); @@ -117,7 +117,7 @@ TAO_Notify_Consumer::enqueue_if_necessary (TAO_Notify_Method_Request_Event * req { if (DEBUG_LEVEL > 3)ACE_DEBUG ( (LM_DEBUG, ACE_TEXT ("Consumer %d: enqueuing another event. %d\n"), - static_cast<int>(this->proxy ()->id ()), + static_cast<int> (this->proxy ()->id ()), request->sequence () )); TAO_Notify_Event_var event_var; @@ -136,7 +136,7 @@ TAO_Notify_Consumer::enqueue_if_necessary (TAO_Notify_Method_Request_Event * req { if (DEBUG_LEVEL > 3) ACE_DEBUG ( (LM_DEBUG, ACE_TEXT ("Suspended Consumer %d enqueing event. %d\n"), - static_cast<int>(this->proxy ()->id ()), + static_cast<int> (this->proxy ()->id ()), request->sequence () )); TAO_Notify_Event_var event_var; @@ -177,7 +177,7 @@ TAO_Notify_Consumer::deliver (TAO_Notify_Method_Request_Event * request ACE_ENV_ { if (DEBUG_LEVEL > 1) ACE_DEBUG ( (LM_DEBUG, ACE_TEXT ("Consumer %d enqueing event %d due to failed dispatch.\n"), - static_cast<int>(this->proxy ()->id ()), + static_cast<int> (this->proxy ()->id ()), request->sequence ())); this->enqueue_request (request ACE_ENV_ARG_PARAMETER); ACE_CHECK; @@ -188,7 +188,7 @@ TAO_Notify_Consumer::deliver (TAO_Notify_Method_Request_Event * request ACE_ENV_ { if (DEBUG_LEVEL > 0) ACE_DEBUG ( (LM_DEBUG, ACE_TEXT ("(%P|%t) Consumer %d: Error during direct dispatch. Discarding event:%d.\n"), - static_cast<int>(this->proxy ()->id ()), + static_cast<int> (this->proxy ()->id ()), request->sequence () )); request->complete (); @@ -198,7 +198,7 @@ TAO_Notify_Consumer::deliver (TAO_Notify_Method_Request_Event * request ACE_ENV_ { if (DEBUG_LEVEL > 0) ACE_DEBUG ( (LM_DEBUG, ACE_TEXT ("(%P|%t) Consumer %d: Failed during direct dispatch :%d. Discarding event.\n"), - static_cast<int>(this->proxy ()->id ()), + static_cast<int> (this->proxy ()->id ()), request->sequence () )); request->complete (); @@ -231,7 +231,7 @@ TAO_Notify_Consumer::dispatch_request (TAO_Notify_Method_Request_Event * request ACE_TRY_CHECK; if (DEBUG_LEVEL > 8) ACE_DEBUG ( (LM_DEBUG, ACE_TEXT ("Consumer %d dispatched single event %d.\n"), - static_cast<int>(this->proxy ()->id ()), + static_cast<int> (this->proxy ()->id ()), request->sequence () )); } @@ -239,7 +239,7 @@ TAO_Notify_Consumer::dispatch_request (TAO_Notify_Method_Request_Event * request { if (DEBUG_LEVEL > 0) ACE_DEBUG ( (LM_ERROR, ACE_TEXT ("(%P|%t) TAO_Notify_Consumer %d::push (request) OBJECT_NOT_EXIST %s\n"), - static_cast<int>(this->proxy ()->id ()), + static_cast<int> (this->proxy ()->id ()), ex._info ().c_str () )); result = DISPATCH_FAIL; @@ -248,7 +248,7 @@ TAO_Notify_Consumer::dispatch_request (TAO_Notify_Method_Request_Event * request { if (DEBUG_LEVEL > 0) ACE_DEBUG ( (LM_ERROR, ACE_TEXT ("(%P|%t) TAO_Notify_Consumer %d::push (request) Transient (minor=%d) %s\n"), - static_cast<int>(this->proxy ()->id ()), + static_cast<int> (this->proxy ()->id ()), ex.minor (), ex._info ().c_str () )); @@ -287,7 +287,7 @@ TAO_Notify_Consumer::dispatch_request (TAO_Notify_Method_Request_Event * request { if (DEBUG_LEVEL > 0) ACE_DEBUG ( (LM_ERROR, ACE_TEXT ("(%P|%t) TAO_Notify_Consumer %d::push (request) SystemException %s\n"), - static_cast<int>(this->proxy ()->id ()), + static_cast<int> (this->proxy ()->id ()), ex._info ().c_str () )); result = DISPATCH_DISCARD; @@ -296,7 +296,7 @@ TAO_Notify_Consumer::dispatch_request (TAO_Notify_Method_Request_Event * request { ACE_ERROR ( (LM_ERROR, ACE_TEXT ("(%P|%t) TAO_Notify_Consumer %d::push (request) Caught unexpected exception pushing event to consumer.\n"), - static_cast<int>(this->proxy ()->id ()) + static_cast<int> (this->proxy ()->id ()) )); result = DISPATCH_DISCARD; } @@ -336,7 +336,7 @@ TAO_Notify_Consumer::dispatch_batch (const CosNotification::EventBatch& batch) { if (DEBUG_LEVEL > 0) ACE_DEBUG ( (LM_ERROR, ACE_TEXT ("(%P|%t) TAO_Notify_Consumer %d::dispatch_batch OBJECT_NOT_EXIST %s\n"), - static_cast<int>(this->proxy ()->id ()), + static_cast<int> (this->proxy ()->id ()), not_exist._info ().c_str () )); return DISPATCH_FAIL; @@ -345,7 +345,7 @@ TAO_Notify_Consumer::dispatch_batch (const CosNotification::EventBatch& batch) { if (DEBUG_LEVEL > 0) ACE_DEBUG ( (LM_ERROR, ACE_TEXT ("(%P|%t) TAO_Notify_Consumer %d::dispatch_batch SystemException %s\n"), - static_cast<int>(this->proxy ()->id ()), + static_cast<int> (this->proxy ()->id ()), ex._info ().c_str () )); // @@todo what to return here? @@ -355,7 +355,7 @@ TAO_Notify_Consumer::dispatch_batch (const CosNotification::EventBatch& batch) { ACE_ERROR ( (LM_ERROR, ACE_TEXT ("(%P|%t) Consumer %d: Caught unexpected exception pushing EventBatch to consumer.\n"), - static_cast<int>(this->proxy ()->id ()) + static_cast<int> (this->proxy ()->id ()) )); return DISPATCH_FAIL; } @@ -368,7 +368,7 @@ TAO_Notify_Consumer::dispatch_pending (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) { if (DEBUG_LEVEL > 5) ACE_DEBUG ( (LM_DEBUG, ACE_TEXT ("Consumer %d dispatching pending events. Queue size: %d\n"), - static_cast<int>(this->proxy ()->id ()), + static_cast<int> (this->proxy ()->id ()), this->pending_events_->size () )); @@ -413,7 +413,7 @@ TAO_Notify_Consumer::dispatch_from_queue (Request_Queue & requests, ACE_Guard <T { if (DEBUG_LEVEL > 0) ACE_DEBUG ( (LM_DEBUG, ACE_TEXT ("(%P|%t) Consumer %d: Will retry %d\n"), - static_cast<int>(this->proxy ()->id ()), + static_cast<int> (this->proxy ()->id ()), request->sequence () )); ace_mon.acquire (); @@ -425,7 +425,7 @@ TAO_Notify_Consumer::dispatch_from_queue (Request_Queue & requests, ACE_Guard <T { if (DEBUG_LEVEL > 0) ACE_DEBUG ( (LM_DEBUG, ACE_TEXT ("(%P|%t) Consumer %d: Error during dispatch. Discarding event:%d.\n"), - static_cast<int>(this->proxy ()->id ()), + static_cast<int> (this->proxy ()->id ()), request->sequence () )); request->complete (); @@ -437,7 +437,7 @@ TAO_Notify_Consumer::dispatch_from_queue (Request_Queue & requests, ACE_Guard <T { if (DEBUG_LEVEL > 0) ACE_DEBUG ( (LM_DEBUG, ACE_TEXT ("(%P|%t) Consumer %d: Failed. Discarding event %d.\n"), - static_cast<int>(this->proxy ()->id ()), + static_cast<int> (this->proxy ()->id ()), request->sequence () )); request->complete (); @@ -501,7 +501,7 @@ TAO_Notify_Consumer::schedule_timer (bool is_error) if (DEBUG_LEVEL > 5) ACE_DEBUG ( (LM_DEBUG, ACE_TEXT ("Consumer %d: scheduling pacing/retry for %dms.\n"), - static_cast<int>(this->proxy ()->id ()), + static_cast<int> (this->proxy ()->id ()), tv.msec ())); this->timer_id_ = this->timer_->schedule_timer ( @@ -512,7 +512,7 @@ TAO_Notify_Consumer::schedule_timer (bool is_error) { ACE_ERROR ( (LM_ERROR, ACE_TEXT ("TAO_Notify_Consumer %d::schedule_timer () Error scheduling timer.\n"), - static_cast<int>(this->proxy ()->id ()) + static_cast<int> (this->proxy ()->id ()) )); } } diff --git a/TAO/orbsvcs/orbsvcs/Notify/ConsumerAdmin.cpp b/TAO/orbsvcs/orbsvcs/Notify/ConsumerAdmin.cpp index 1ce75e3c3be..3c51bcf6f56 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/ConsumerAdmin.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/ConsumerAdmin.cpp @@ -105,7 +105,7 @@ TAO_Notify_ConsumerAdmin::load_child (const ACE_CString &type, { if (DEBUG_LEVEL) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Admin reload proxy %d\n") - , static_cast<int>(id) + , static_cast<int> (id) )); result = this->load_proxy(id, CosNotifyChannelAdmin::ANY_EVENT, attrs ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); @@ -114,7 +114,7 @@ TAO_Notify_ConsumerAdmin::load_child (const ACE_CString &type, { if (DEBUG_LEVEL) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Admin reload proxy %d\n") - , static_cast<int>(id) + , static_cast<int> (id) )); result = this->load_proxy(id, CosNotifyChannelAdmin::STRUCTURED_EVENT, attrs ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); @@ -123,7 +123,7 @@ TAO_Notify_ConsumerAdmin::load_child (const ACE_CString &type, { if (DEBUG_LEVEL) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Admin reload proxy %d\n") - , static_cast<int>(id) + , static_cast<int> (id) )); result = this->load_proxy(id, CosNotifyChannelAdmin::SEQUENCE_EVENT, attrs ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); @@ -133,7 +133,7 @@ TAO_Notify_ConsumerAdmin::load_child (const ACE_CString &type, { if (DEBUG_LEVEL) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Admin reload proxy %d\n") - , static_cast<int>(id) + , static_cast<int> (id) )); result = this->load_proxy(id, attrs ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); diff --git a/TAO/orbsvcs/orbsvcs/Notify/ETCL_Filter.cpp b/TAO/orbsvcs/orbsvcs/Notify/ETCL_Filter.cpp index 2e515098612..bab9645bb05 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/ETCL_Filter.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/ETCL_Filter.cpp @@ -268,7 +268,7 @@ TAO_Notify_ETCL_Filter::get_all_constraints (ACE_ENV_SINGLE_ARG_DECL) CORBA::INTERNAL ()); ACE_CHECK_RETURN (0); - CORBA::ULong current_size = static_cast<CORBA::ULong>(this->constraint_expr_list_.current_size ()); + CORBA::ULong current_size = static_cast<CORBA::ULong> (this->constraint_expr_list_.current_size ()); // Create the list that goes out. CosNotifyFilter::ConstraintInfoSeq *infoseq_ptr; @@ -293,7 +293,7 @@ TAO_Notify_ETCL_Filter::get_all_constraints (ACE_ENV_SINGLE_ARG_DECL) // copy of the string. It wouldn't unless we coax it to use // the correct assignment operator. infoseq[index].constraint_expression = - static_cast<const CosNotifyFilter::ConstraintExp>(entry->int_id_->constr_expr); + static_cast<const CosNotifyFilter::ConstraintExp> (entry->int_id_->constr_expr); infoseq[index].constraint_id = entry->ext_id_; } diff --git a/TAO/orbsvcs/orbsvcs/Notify/EventChannel.cpp b/TAO/orbsvcs/orbsvcs/Notify/EventChannel.cpp index e853be0561d..7606224d57f 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/EventChannel.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/EventChannel.cpp @@ -565,7 +565,7 @@ TAO_Notify_EventChannel::load_child (const ACE_CString &type, { if (DEBUG_LEVEL) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) EventChannel reload consumer_admin %d\n") - , static_cast<int>(id) + , static_cast<int> (id) )); // call special builder method to reload @@ -591,7 +591,7 @@ TAO_Notify_EventChannel::load_child (const ACE_CString &type, { if (DEBUG_LEVEL) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) EventChannel reload supplier_admin %d\n") - , static_cast<int>(id) + , static_cast<int> (id) )); TAO_Notify_Builder* bld = TAO_Notify_PROPERTIES::instance()->builder(); diff --git a/TAO/orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp b/TAO/orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp index 1f9917cc4a7..8613f38e5cd 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp @@ -371,7 +371,7 @@ TAO_Notify_EventChannelFactory::load_child (const ACE_CString& type, { if (DEBUG_LEVEL) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) EventChannelFactory reload channel %d\n") - , static_cast<int>(id) + , static_cast<int> (id) )); TAO_Notify_Builder* bld = TAO_Notify_PROPERTIES::instance()->builder(); diff --git a/TAO/orbsvcs/orbsvcs/Notify/EventTypeSeq.cpp b/TAO/orbsvcs/orbsvcs/Notify/EventTypeSeq.cpp index 3185392bc97..07583a19fa5 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/EventTypeSeq.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/EventTypeSeq.cpp @@ -38,7 +38,7 @@ TAO_Notify_EventTypeSeq::TAO_Notify_EventTypeSeq (const TAO_Notify_EventTypeSeq void TAO_Notify_EventTypeSeq::populate (CosNotification::EventTypeSeq& event_type_seq) const { - event_type_seq.length (static_cast<CORBA::ULong>(this->size ())); + event_type_seq.length (static_cast<CORBA::ULong> (this->size ())); inherited::CONST_ITERATOR iter (*this); @@ -60,7 +60,7 @@ TAO_Notify_EventTypeSeq::populate_no_special (CosNotification::EventTypeSeq& eve event_type_seq.length (ACE_static_cast (CORBA::ULong, this->size () - 1)); } else - event_type_seq.length (static_cast<CORBA::ULong>(this->size ())); + event_type_seq.length (static_cast<CORBA::ULong> (this->size ())); inherited::CONST_ITERATOR iter (*this); diff --git a/TAO/orbsvcs/orbsvcs/Notify/FilterAdmin.cpp b/TAO/orbsvcs/orbsvcs/Notify/FilterAdmin.cpp index aabeb60800a..2ed14807e59 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/FilterAdmin.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/FilterAdmin.cpp @@ -104,7 +104,7 @@ TAO_Notify_FilterAdmin::get_all_filters (ACE_ENV_SINGLE_ARG_DECL) CosNotifyFilter::FilterIDSeq_var list (list_ptr); - list->length (static_cast<CORBA::ULong>(len)); + list->length (static_cast<CORBA::ULong> (len)); FILTER_LIST::ITERATOR iter (this->filter_list_); FILTER_LIST::ENTRY *entry; diff --git a/TAO/orbsvcs/orbsvcs/Notify/Method_Request.inl b/TAO/orbsvcs/orbsvcs/Notify/Method_Request.inl index 9b59e277028..619cfbefa56 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Method_Request.inl +++ b/TAO/orbsvcs/orbsvcs/Notify/Method_Request.inl @@ -32,7 +32,7 @@ TAO_Notify_Method_Request_Queueable::init (const TAO_Notify_Event * event) ACE_Time_Value current = ACE_OS::gettimeofday () + # if defined (ACE_CONFIG_WIN32_H) ACE_Time_Value ( - static_cast<long>(timeout.value ())); + static_cast<long> (timeout.value ())); # else ACE_Time_Value (timeout.value () / 1); # endif /* ACE_CONFIG_WIN32_H */ diff --git a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.cpp b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.cpp index 7d40a625bdd..359160773ef 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.cpp @@ -126,7 +126,7 @@ TAO_Notify_Method_Request_Dispatch::unmarshal ( { id_path.push_back (id); char idbuf[20]; - ACE_OS::snprintf (idbuf, sizeof(idbuf)-1, "/%d", static_cast<int>(id)); + ACE_OS::snprintf (idbuf, sizeof(idbuf)-1, "/%d", static_cast<int> (id)); textpath += idbuf; } else diff --git a/TAO/orbsvcs/orbsvcs/Notify/Name_Value_Pair.cpp b/TAO/orbsvcs/orbsvcs/Notify/Name_Value_Pair.cpp index 8313c3a0cce..42b7d214a3c 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Name_Value_Pair.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Name_Value_Pair.cpp @@ -47,7 +47,7 @@ namespace TAO_Notify : name(p.name()) { char buf[64]; - long temp = static_cast<long>(p.value ()); + long temp = static_cast<long> (p.value ()); ACE_OS::sprintf (buf, "%ld", temp); value = buf; } @@ -149,7 +149,7 @@ namespace TAO_Notify const char * v; if (find(p.name (), v)) { - p.assign (static_cast<TimeBase::TimeT>(string_to_uint64(v))); + p.assign (static_cast<TimeBase::TimeT> (string_to_uint64(v))); } } @@ -174,7 +174,7 @@ namespace TAO_Notify const char * val; if (find(n, val)) { - v = static_cast<CORBA::Long>(ACE_OS::atoi(val)); + v = static_cast<CORBA::Long> (ACE_OS::atoi(val)); return true; } return false; diff --git a/TAO/orbsvcs/orbsvcs/Notify/Persistent_File_Allocator.cpp b/TAO/orbsvcs/orbsvcs/Notify/Persistent_File_Allocator.cpp index ed0b165a885..46be6b81b84 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Persistent_File_Allocator.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Persistent_File_Allocator.cpp @@ -164,7 +164,7 @@ Persistent_File_Allocator::allocate() } if (DEBUG_LEVEL > 0) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Persistent_File_Allocator::allocate: %d\n"), - static_cast<int>(block_number) + static_cast<int> (block_number) )); result = this->allocate_at(block_number); return result; @@ -177,7 +177,7 @@ Persistent_File_Allocator::allocate_at(size_t block_number) this->used(block_number); if (DEBUG_LEVEL > 0) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Persistent_File_Allocator::allocate at : %d\n"), - static_cast<int>(block_number) + static_cast<int> (block_number) )); ACE_NEW_RETURN(result, Persistent_Storage_Block( block_number, @@ -204,7 +204,7 @@ Persistent_File_Allocator::used(size_t block_number) ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->free_blocks_lock_); if (DEBUG_LEVEL > 0) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Persistent_File_Allocator::used: %d\n"), - static_cast<int>(block_number) + static_cast<int> (block_number) )); ACE_ASSERT (!this->free_blocks_.is_set (block_number)); this->free_blocks_.set_bit(block_number, true); @@ -215,7 +215,7 @@ Persistent_File_Allocator::free(size_t block_number) { if (DEBUG_LEVEL > 0) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Persistent_File_Allocator::free: %d\n"), - static_cast<int>(block_number) + static_cast<int> (block_number) )); ACE_ASSERT (this->free_blocks_.is_set (block_number)); this->free_block(block_number); @@ -272,7 +272,7 @@ Persistent_File_Allocator::write(Persistent_Storage_Block* psb) { if (DEBUG_LEVEL) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Copy PSB %d\n") - , static_cast<int>(psb->block_number ()) + , static_cast<int> (psb->block_number ()) )); ACE_NEW_RETURN(ourpsb, Persistent_Storage_Block(*psb), false); ourpsb->set_allocator_owns(true); @@ -280,7 +280,7 @@ Persistent_File_Allocator::write(Persistent_Storage_Block* psb) ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, this->queue_lock_, false); if (DEBUG_LEVEL) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Queueing PSB to write block %d\n") - , static_cast<int>(psb->block_number ()) + , static_cast<int> (psb->block_number ()) )); result = (0 == this->block_queue_.enqueue_tail(ourpsb)); this->wake_up_thread_.signal(); @@ -307,7 +307,7 @@ Persistent_File_Allocator::allocate_block(size_t& block_number) ACE_THR_FUNC_RETURN Persistent_File_Allocator::thr_func(void * arg) { - Persistent_File_Allocator* pfa = static_cast<Persistent_File_Allocator*>(arg); + Persistent_File_Allocator* pfa = static_cast<Persistent_File_Allocator*> (arg); pfa->run(); return 0; } diff --git a/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer.cpp b/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer.cpp index 3c0457cf5f6..8accd58946f 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer.cpp @@ -48,7 +48,7 @@ TAO_Notify_ProxyConsumer::init (TAO_Notify::Topology_Parent * topology_parent AC { TAO_Notify_Proxy::initialize (topology_parent ACE_ENV_ARG_PARAMETER); - this->supplier_admin_ = dynamic_cast<TAO_Notify_SupplierAdmin *>(topology_parent); + this->supplier_admin_ = dynamic_cast<TAO_Notify_SupplierAdmin *> (topology_parent); ACE_ASSERT(this->supplier_admin_ != 0); this->supplier_admin_->_incr_refcnt (); diff --git a/TAO/orbsvcs/orbsvcs/Notify/Random_File.cpp b/TAO/orbsvcs/orbsvcs/Notify/Random_File.cpp index 6ac8b3deeda..d51905fac35 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Random_File.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Random_File.cpp @@ -31,7 +31,7 @@ Random_File::block_size() const size_t Random_File::size() const { - Random_File * mutable_this = const_cast<Random_File *>(this); + Random_File * mutable_this = const_cast<Random_File *> (this); ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, mutable_this->lock_, 0); size_t original_pos = mutable_this->tell (); mutable_this->ACE_FILE::seek(0, SEEK_END); @@ -87,7 +87,7 @@ Random_File::write(const size_t block_number, void* buf, bool atomic) ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, this->lock_, false); if (DEBUG_LEVEL > 8) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Write block %d %c\n"), - static_cast<int>(block_number), + static_cast<int> (block_number), (atomic ? '*' : ' ') )); bool result = this->seek(block_number); @@ -122,7 +122,7 @@ Random_File::read(const size_t block_number, void* buf) ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, this->lock_, false); if (DEBUG_LEVEL > 8) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Read block %d\n"), - static_cast<int>(block_number) + static_cast<int> (block_number) )); bool result = this->seek(block_number); if (result) diff --git a/TAO/orbsvcs/orbsvcs/Notify/Reconnection_Registry.cpp b/TAO/orbsvcs/orbsvcs/Notify/Reconnection_Registry.cpp index 0133d3de2b4..c09a843aa74 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Reconnection_Registry.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Reconnection_Registry.cpp @@ -45,7 +45,7 @@ namespace TAO_Notify { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Reconnect registry: registering %d\n"), - static_cast<int>(next_id) + static_cast<int> (next_id) )); } TAO_Notify_Properties* properties = TAO_Notify_PROPERTIES::instance(); @@ -72,7 +72,7 @@ namespace TAO_Notify { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Reconnect registry: unregistering %d\n"), - static_cast<int>(id) + static_cast<int> (id) )); } if ( 0 != reconnection_registry_.unbind (id)) @@ -113,7 +113,7 @@ namespace TAO_Notify { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Reconnect registry: saving %d\n"), - static_cast<int>(entry->ext_id_) + static_cast<int> (entry->ext_id_) )); } cattrs.push_back(NVP(RECONNECT_ID, entry->ext_id_)); @@ -154,7 +154,7 @@ namespace TAO_Notify { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Reconnect registry: reloading %d\n"), - static_cast<int>(id) + static_cast<int> (id) )); } } @@ -193,7 +193,7 @@ namespace TAO_Notify { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Reconnection Registry: Sending reconnection to client %d\n"), - static_cast<int>(entry->ext_id_) + static_cast<int> (entry->ext_id_) )); } ACE_CString & ior = entry->int_id_; @@ -210,7 +210,7 @@ namespace TAO_Notify { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Reconnection Registry: Can't resolve reconnection client's IOR %d\n"), - static_cast<int>(entry->ext_id_) + static_cast<int> (entry->ext_id_) )); //throw this entry away but you've got an iterator so be careful diff --git a/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip.cpp b/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip.cpp index 7f5f35aa7f0..2b3885daa56 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip.cpp @@ -81,22 +81,22 @@ Routing_Slip::create (const TAO_Notify_Event_var& event ACE_ENV_ARG_DECL) ACE_TEXT (" enter_complete \t%d\n") ACE_TEXT (" enter_deleting \t%d\n") ACE_TEXT (" enter_terminal \t%d\n") - , static_cast<int>(count_enter_transient_) - , static_cast<int>(count_continue_transient_) - , static_cast<int>(count_enter_reloaded_) - , static_cast<int>(count_enter_new_) - , static_cast<int>(count_continue_new_) - , static_cast<int>(count_enter_complete_while_new_) - , static_cast<int>(count_enter_saving_) - , static_cast<int>(count_enter_saved_) - , static_cast<int>(count_enter_updating_) - , static_cast<int>(count_enter_changed_while_saving_) - , static_cast<int>(count_continue_changed_while_saving_) - , static_cast<int>(count_enter_changed_) - , static_cast<int>(count_continue_changed_) - , static_cast<int>(count_enter_complete_) - , static_cast<int>(count_enter_deleting_) - , static_cast<int>(count_enter_terminal_) + , static_cast<int> (count_enter_transient_) + , static_cast<int> (count_continue_transient_) + , static_cast<int> (count_enter_reloaded_) + , static_cast<int> (count_enter_new_) + , static_cast<int> (count_continue_new_) + , static_cast<int> (count_enter_complete_while_new_) + , static_cast<int> (count_enter_saving_) + , static_cast<int> (count_enter_saved_) + , static_cast<int> (count_enter_updating_) + , static_cast<int> (count_enter_changed_while_saving_) + , static_cast<int> (count_continue_changed_while_saving_) + , static_cast<int> (count_enter_changed_) + , static_cast<int> (count_continue_changed_) + , static_cast<int> (count_enter_complete_) + , static_cast<int> (count_enter_deleting_) + , static_cast<int> (count_enter_terminal_) )); } return result; @@ -241,9 +241,9 @@ Routing_Slip::route (TAO_Notify_ProxyConsumer* pc, bool reliable_channel ACE_ENV if (DEBUG_LEVEL > 8) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Routing Slip #%d: add Delivery_Request #%d: lookup, completed %d of %d\n"), this->sequence_, - static_cast<int>(request_id), - static_cast<int>(this->complete_requests_), - static_cast<int>(this->delivery_requests_.size ()) + static_cast<int> (request_id), + static_cast<int> (this->complete_requests_), + static_cast<int> (this->delivery_requests_.size ()) )); Delivery_Request_Ptr request (new Delivery_Request (this->this_ptr_, request_id)); @@ -292,10 +292,10 @@ Routing_Slip::forward (TAO_Notify_ProxySupplier* ps, bool filter) if (DEBUG_LEVEL > 8) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Routing Slip #%d: add Delivery_Request #%d: Forward %s; completed %d of %d\n"), this->sequence_, - static_cast<int>(request_id), + static_cast<int> (request_id), filter ? ACE_TEXT ("Filter") : ACE_TEXT ("No Filter"), - static_cast<int>(this->complete_requests_), - static_cast<int>(this->delivery_requests_.size ()) + static_cast<int> (this->complete_requests_), + static_cast<int> (this->delivery_requests_.size ()) )); Delivery_Request_Ptr request (new Delivery_Request (this->this_ptr_, request_id)); @@ -310,7 +310,7 @@ Routing_Slip::forward (TAO_Notify_ProxySupplier* ps, bool filter) "(%P|%t) Routing Slip #%d: dispatching Delivery_Request %d to " "proxy supplier %d\n", this->sequence_, - static_cast<int>(request_id), + static_cast<int> (request_id), ps->id())); ps->worker_task()->execute (method); } @@ -321,7 +321,7 @@ Routing_Slip::forward (TAO_Notify_ProxySupplier* ps, bool filter) "(%P|%t) Routing Slip #%d: not dispatching Delivery_Request %d to " "proxy supplier %d; already shut down\n", this->sequence_, - static_cast<int>(request_id), + static_cast<int> (request_id), ps->id())); } } @@ -344,10 +344,10 @@ Routing_Slip::dispatch ( if (DEBUG_LEVEL > 8) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Routing Slip #%d: add Delivery_Request #%d: Dispatch %s; completed %d of %d\n"), this->sequence_, - static_cast<int>(request_id), + static_cast<int> (request_id), filter ? ACE_TEXT ("Filter") : ACE_TEXT ("No Filter"), - static_cast<int>(this->complete_requests_), - static_cast<int>(this->delivery_requests_.size ()) + static_cast<int> (this->complete_requests_), + static_cast<int> (this->delivery_requests_.size ()) )); Delivery_Request_Ptr request (new Delivery_Request (this->this_ptr_, request_id)); @@ -361,7 +361,7 @@ Routing_Slip::dispatch ( "(%P|%t) Routing Slip #%d: dispatching Delivery_Request %d to " "proxy supplier %d\n", this->sequence_, - static_cast<int>(request_id), + static_cast<int> (request_id), ps->id())); ps->worker_task()->execute (method ACE_ENV_ARG_PARAMETER); ACE_CHECK; @@ -373,7 +373,7 @@ Routing_Slip::dispatch ( "(%P|%t) Routing Slip #%d: not dispatching Delivery_Request %d to " "proxy supplier %d; already shut down\n", this->sequence_, - static_cast<int>(request_id), + static_cast<int> (request_id), ps->id())); } } @@ -393,9 +393,9 @@ Routing_Slip::delivery_request_complete (size_t request_id) if (DEBUG_LEVEL > 8) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Routing Slip #%d: delivery_request_complete #%d: completed %d of %d\n"), this->sequence_, - static_cast<int>(request_id), - static_cast<int>(this->complete_requests_), - static_cast<int>(this->delivery_requests_.size ()) + static_cast<int> (request_id), + static_cast<int> (this->complete_requests_), + static_cast<int> (this->delivery_requests_.size ()) )); State state = this->state_; switch (state) @@ -439,7 +439,7 @@ Routing_Slip::delivery_request_complete (size_t request_id) { ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P|%t) Notification Service Routing Slip: Unexpected delivery_request_complete in state %d\n"), - static_cast<int>(this->state_) + static_cast<int> (this->state_) )); break; } @@ -495,7 +495,7 @@ Routing_Slip::at_front_of_persist_queue () ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P|%t) Routing Slip %d: Unexpected at_front_of_persist_queue in state %d\n"), this->sequence_, - static_cast<int>(this->state_) + static_cast<int> (this->state_) )); break; } @@ -556,7 +556,7 @@ Routing_Slip::persist_complete () { ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P|%t) Notification Service Routing Slip: Unexpected transition in state %d\n"), - static_cast<int>(this->state_) + static_cast<int> (this->state_) )); break; } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Persistence_Manager.cpp b/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Persistence_Manager.cpp index 5bd9c77132f..d4efa3ad4a0 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Persistence_Manager.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Persistence_Manager.cpp @@ -271,7 +271,7 @@ Routing_Slip_Persistence_Manager::remove() Routing_Slip_Persistence_Manager::Block_Header::Block_Header(Header_Type type) : serial_number (0) , next_overflow(0) - , header_type (static_cast<Block_Type>(type)) + , header_type (static_cast<Block_Type> (type)) , data_size(0) { } @@ -665,7 +665,7 @@ Routing_Slip_Persistence_Manager::reload_chain( mbptr = mbnew; // Deallocate the PSB's data and reallocate it to our wr_ptr()... psb->reassign_data(ACE_static_cast(unsigned char*, - static_cast<void*>(mbptr->wr_ptr())), true); + static_cast<void*> (mbptr->wr_ptr())), true); // ...read into the PSB (whose data is inside of the AMB)... this->allocator_->read(psb); allocated_blocks.push(psb->block_number()); diff --git a/TAO/orbsvcs/orbsvcs/Notify/Sequence/Batch_Buffering_Strategy.cpp b/TAO/orbsvcs/orbsvcs/Notify/Sequence/Batch_Buffering_Strategy.cpp index 09efa18a4a6..87c85962bdc 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Sequence/Batch_Buffering_Strategy.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Sequence/Batch_Buffering_Strategy.cpp @@ -74,7 +74,7 @@ TAO_Notify_Batch_Buffering_Strategy::dequeue_i (int max_deq_count, CosNotificati --this->global_queue_length_; - TAO_Notify_Method_Request_Event_Queueable* mre = dynamic_cast<TAO_Notify_Method_Request_Event_Queueable*>(mb); + TAO_Notify_Method_Request_Event_Queueable* mre = dynamic_cast<TAO_Notify_Method_Request_Event_Queueable*> (mb); mre->event ()->convert (event_batch[deq_count]); diff --git a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.cpp b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.cpp index 82473370c8d..28e43c87dba 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.cpp @@ -161,7 +161,7 @@ TAO_Notify_SequencePushConsumer::dispatch_from_queue (Request_Queue& requests, A { if (DEBUG_LEVEL > 0) ACE_DEBUG ( (LM_DEBUG, ACE_TEXT ("(%P|%t) Consumer %d: Will retry %d\n"), - static_cast<int>(this->proxy ()->id ()), + static_cast<int> (this->proxy ()->id ()), request->sequence () )); ace_mon.acquire (); @@ -226,7 +226,7 @@ TAO_Notify_SequencePushConsumer::get_ior (ACE_CString & iorstr) const { CORBA::String_var ior = orb->object_to_string (this->push_consumer_.in () ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - iorstr = static_cast<const char *>(ior.in ()); + iorstr = static_cast<const char *> (ior.in ()); result = true; } ACE_CATCHANY diff --git a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.cpp b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.cpp index 9c19742c46c..e394b2a8f37 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.cpp @@ -39,7 +39,7 @@ TAO_Notify_SequencePushSupplier::get_ior (ACE_CString & iorstr) const { CORBA::String_var ior = orb->object_to_string(this->push_supplier_.in() ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - iorstr = static_cast<const char *>(ior.in ()); + iorstr = static_cast<const char *> (ior.in ()); result = true; } ACE_CATCHANY diff --git a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.cpp b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.cpp index 4e3862bff6a..df093040c74 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.cpp @@ -78,7 +78,7 @@ TAO_Notify_StructuredPushConsumer::get_ior (ACE_CString & iorstr) const { CORBA::String_var ior = orb->object_to_string(this->push_consumer_.in() ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - iorstr = static_cast<const char *>(ior.in ()); + iorstr = static_cast<const char *> (ior.in ()); result = true; } ACE_CATCHANY diff --git a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.cpp b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.cpp index 23a663ba207..e93ce72b0bb 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.cpp @@ -39,7 +39,7 @@ TAO_Notify_StructuredPushSupplier::get_ior (ACE_CString & iorstr) const { CORBA::String_var ior = orb->object_to_string(this->push_supplier_.in() ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; - iorstr = static_cast<const char *>(ior.in ()); + iorstr = static_cast<const char *> (ior.in ()); result = true; } ACE_CATCHANY diff --git a/TAO/orbsvcs/orbsvcs/Notify/SupplierAdmin.cpp b/TAO/orbsvcs/orbsvcs/Notify/SupplierAdmin.cpp index a52351e2376..c0437f84ead 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/SupplierAdmin.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/SupplierAdmin.cpp @@ -99,7 +99,7 @@ TAO_Notify_SupplierAdmin::load_child (const ACE_CString &type, { if (DEBUG_LEVEL) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Admin reload proxy %d\n") - , static_cast<int>(id) + , static_cast<int> (id) )); result = this->load_proxy(id, CosNotifyChannelAdmin::ANY_EVENT, attrs ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); @@ -108,7 +108,7 @@ TAO_Notify_SupplierAdmin::load_child (const ACE_CString &type, { if (DEBUG_LEVEL) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Admin reload proxy %d\n") - , static_cast<int>(id) + , static_cast<int> (id) )); result = this->load_proxy(id, CosNotifyChannelAdmin::STRUCTURED_EVENT, attrs ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); @@ -117,7 +117,7 @@ TAO_Notify_SupplierAdmin::load_child (const ACE_CString &type, { if (DEBUG_LEVEL) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Admin reload proxy %d\n") - , static_cast<int>(id) + , static_cast<int> (id) )); result = this->load_proxy(id, CosNotifyChannelAdmin::SEQUENCE_EVENT, attrs ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); diff --git a/TAO/orbsvcs/orbsvcs/Notify/XML_Topology_Factory.cpp b/TAO/orbsvcs/orbsvcs/Notify/XML_Topology_Factory.cpp index 8c247c6570c..2c74dfedb33 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/XML_Topology_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/XML_Topology_Factory.cpp @@ -32,7 +32,7 @@ namespace TAO_Notify delete saver; saver = 0; } - return static_cast<Topology_Saver *>(saver); + return static_cast<Topology_Saver *> (saver); } // virtual @@ -47,7 +47,7 @@ namespace TAO_Notify delete loader; loader = 0; } - return static_cast<Topology_Loader *>(loader); + return static_cast<Topology_Loader *> (loader); } // virtual diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_FactoryRegistry.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_FactoryRegistry.cpp index ba9fde138ba..67f837498e8 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_FactoryRegistry.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_FactoryRegistry.cpp @@ -348,7 +348,7 @@ void TAO::PG_FactoryRegistry::register_factory ( ACE_ERROR(( LM_ERROR, "%s: Attempt to register duplicate location %s for role: %s\n" , this->identity_.c_str(), - static_cast<const char *>(info.the_location[0].id), + static_cast<const char *> (info.the_location[0].id), role)); ACE_THROW (PortableGroup::MemberAlreadyPresent() ); } @@ -367,7 +367,7 @@ void TAO::PG_FactoryRegistry::register_factory ( this->identity_.c_str(), ACE_static_cast(int,length + 1), role, - static_cast<const char *>(factory_info.the_location[0].id) + static_cast<const char *> (factory_info.the_location[0].id) )); METHOD_RETURN(TAO::PG_FactoryRegistry::register_factory); @@ -399,7 +399,7 @@ void TAO::PG_FactoryRegistry::unregister_factory ( "%s: Unregistering factory %s@%s\n", this->identity_.c_str(), role, - static_cast<const char *>(location[0].id) + static_cast<const char *> (location[0].id) )); if (length > 1) { @@ -548,9 +548,9 @@ void TAO::PG_FactoryRegistry::unregister_factory_by_location ( ACE_ERROR((LM_INFO, "%s: Unregister_factory_by_location: Removing: [%d] %s@%s\n", this->identity_.c_str(), - static_cast<int>(nInfo), + static_cast<int> (nInfo), role.c_str(), - static_cast<const char *>(location[0].id) + static_cast<const char *> (location[0].id) )); found = 1; if (length > 1) diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.cpp index 5299e0ca6ca..f0da337d804 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.cpp @@ -393,7 +393,7 @@ TAO_PG_GenericFactory::populate_object_group ( const PortableGroup::FactoryInfo &factory_info = factory_infos[j]; - if (j < static_cast<CORBA::ULong>(initial_number_members)) + if (j < static_cast<CORBA::ULong> (initial_number_members)) { PortableGroup::GenericFactory_ptr factory = factory_info.the_factory.in (); @@ -534,7 +534,7 @@ TAO_PG_GenericFactory::process_criteria ( // members or the desired number of initial members cannot // possibly be created. - if (factory_infos_count < static_cast<CORBA::ULong>(initial_number_members)) + if (factory_infos_count < static_cast<CORBA::ULong> (initial_number_members)) { unmet_criteria[uc].nam = name; unmet_criteria[uc++].val = value2; @@ -562,7 +562,7 @@ TAO_PG_GenericFactory::process_criteria ( if (membership_style == PortableGroup::MEMB_INF_CTRL) { if (minimum_number_members < initial_number_members - || static_cast<CORBA::ULong>(minimum_number_members) > factory_infos_count) + || static_cast<CORBA::ULong> (minimum_number_members) > factory_infos_count) { unmet_criteria[uc].nam = name; unmet_criteria[uc++].val = value3; @@ -635,11 +635,11 @@ TAO_PG_GenericFactory::check_minimum_number_members ( ACE_ENV_ARG_PARAMETER); ACE_CHECK; - if (count >= static_cast<CORBA::ULong>(minimum_number_members)) + if (count >= static_cast<CORBA::ULong> (minimum_number_members)) return; const CORBA::ULong gap = - static_cast<CORBA::ULong>(minimum_number_members) - count; + static_cast<CORBA::ULong> (minimum_number_members) - count; CORBA::ULong creation_count = 0; diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroupManager.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroupManager.cpp index 01c0714b326..39b65b8768b 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroupManager.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroupManager.cpp @@ -344,7 +344,7 @@ TAO_PG_ObjectGroupManager::locations_of_members ( TAO_PG_MemberInfo_Set & member_infos = group_entry->member_infos; - locations->length (static_cast<CORBA::ULong>(member_infos.size ())); + locations->length (static_cast<CORBA::ULong> (member_infos.size ())); CORBA::ULong loc = 0; TAO_PG_MemberInfo_Set::iterator end = member_infos.end (); @@ -376,7 +376,7 @@ TAO_PG_ObjectGroupManager::groups_at_location ( TAO_PG_ObjectGroup_Array * groups; if (this->location_map_.find (the_location, groups) == 0) { - CORBA::ULong len = static_cast<CORBA::ULong>(groups->size ()); + CORBA::ULong len = static_cast<CORBA::ULong> (groups->size ()); ogs->length (len); @@ -655,7 +655,7 @@ TAO_PG_ObjectGroupManager::member_count ( ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (0); - return static_cast<CORBA::ULong>(group_entry->member_infos.size ()); + return static_cast<CORBA::ULong> (group_entry->member_infos.size ()); } void diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.cpp index b51eb99c91e..825572e1f5c 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.cpp @@ -451,7 +451,7 @@ TAO::PG_Object_Group::increment_version (void) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("%T %n (%P|%t) - Setting IOGR version to %u\n"), - static_cast<unsigned>(this->tagged_component_.object_group_ref_version) + static_cast<unsigned> (this->tagged_component_.object_group_ref_version) )); } @@ -502,7 +502,7 @@ TAO::PG_Object_Group::distribute_iogr (ACE_ENV_SINGLE_ARG_DECL) "IOGR to %s member: %s@%s.\n", (info->is_primary_ ? "Primary" : "Backup"), this->role_.c_str (), - static_cast<const char *>(info->location_[0].id) + static_cast<const char *> (info->location_[0].id) )); } // dump_ior ("group", "iogr", this->tagged_component_.object_group_ref_version, iogr); @@ -825,8 +825,8 @@ TAO::PG_Object_Group::create_members (size_t count ACE_ENV_ARG_DECL) ACE_TEXT ("PG (%P|%t) Replica Factory ") ACE_TEXT ("@ %s refused create_object ") ACE_TEXT ("request for type %s\n"), - static_cast<const char *>(factory_info.the_location[0].id), - static_cast<const char *>(this->type_id_.in ()) + static_cast<const char *> (factory_info.the_location[0].id), + static_cast<const char *> (this->type_id_.in ()) )); } } diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group_Manipulator.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group_Manipulator.cpp index 233709b8387..a22ccfe961d 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group_Manipulator.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group_Manipulator.cpp @@ -50,7 +50,7 @@ PortableServer::ObjectId * TAO::PG_Object_Group_Manipulator::convert_ogid_to_oid char oid_str[11]; ACE_OS::snprintf (oid_str, sizeof(oid_str), "%lu", - static_cast<ACE_UINT32>(ogid)); + static_cast<ACE_UINT32> (ogid)); oid_str[sizeof(oid_str) - 1] = '\0'; return PortableServer::string_to_ObjectId (oid_str); diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Set.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Set.cpp index b96f55ce982..451313c3bf7 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Set.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Set.cpp @@ -73,13 +73,13 @@ TAO::PG_Property_Set::decode (const PortableGroup::Properties & property_set // @@ TODO: fix this const CosNaming::NameComponent & nc = nsName[0]; - this->set_property (static_cast<const char *>(nc.id), + this->set_property (static_cast<const char *> (nc.id), property.val ACE_ENV_ARG_PARAMETER); ACE_CHECK; #if 0 - ACE_CString name = static_cast<const char *>(nc.id); + ACE_CString name = static_cast<const char *> (nc.id); const PortableGroup::Value * value_copy; ACE_NEW_THROW_EX (value_copy, @@ -134,7 +134,7 @@ void TAO::PG_Property_Set::remove (const PortableGroup::Properties & property_se // note assumption one level name with no kind // @@ TODO: fix this const CosNaming::NameComponent & nc = nsName[0]; - ACE_CString name = static_cast<const char *>(nc.id); + ACE_CString name = static_cast<const char *> (nc.id); const PortableGroup::Value * deleted_value; if ( 0 == this->values_.unbind (name, deleted_value)) @@ -219,7 +219,7 @@ void TAO::PG_Property_Set::merge_properties (ValueMap & merged_values) const this->defaults_->merge_properties (merged_values); } // note AFICT ACE_Hash_Map does not support const iterators, hence the const cast. - ValueMap & mutable_values = const_cast<ValueMap &>(this->values_); + ValueMap & mutable_values = const_cast<ValueMap &> (this->values_); for (ValueMapIterator it = mutable_values.begin (); it != mutable_values.end (); ++it) diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Utils.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Utils.cpp index 10205457e26..a6a4e9e08b8 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Utils.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Utils.cpp @@ -37,7 +37,7 @@ namespace TAO return retval; // Get the length of the CDR stream - CORBA::ULong length = static_cast<CORBA::ULong>(cdr.total_length ()); + CORBA::ULong length = static_cast<CORBA::ULong> (cdr.total_length ()); // Set the length tagged_components.component_data.length (length); @@ -106,7 +106,7 @@ namespace TAO // Look for the primary if (pfile_tagged.get_component (tc) == 1) { - TAO_InputCDR cdr (reinterpret_cast<const char*>(tc.component_data.get_buffer ()), + TAO_InputCDR cdr (reinterpret_cast<const char*> (tc.component_data.get_buffer ()), tc.component_data.length ()); CORBA::Boolean byte_order; @@ -116,7 +116,7 @@ namespace TAO if (!cdr.good_bit ()) return 0; - cdr.reset_byte_order (static_cast<int>(byte_order)); + cdr.reset_byte_order (static_cast<int> (byte_order)); cdr >> tg; diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/POA_Hooks.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/POA_Hooks.cpp index 4a16291de70..fdde0eed0ce 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/POA_Hooks.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/POA_Hooks.cpp @@ -100,14 +100,14 @@ TAO_POA_Hooks::find_group_component_in_profile (const TAO_Profile* profile, const CORBA::Octet *buf = tagged_component.component_data.get_buffer (); - TAO_InputCDR in_cdr (reinterpret_cast<const char*>(buf), + TAO_InputCDR in_cdr (reinterpret_cast<const char*> (buf), tagged_component.component_data.length ()); // Extract the Byte Order. CORBA::Boolean byte_order; if ((in_cdr >> ACE_InputCDR::to_boolean (byte_order)) == 0) return -1; - in_cdr.reset_byte_order (static_cast<int>(byte_order)); + in_cdr.reset_byte_order (static_cast<int> (byte_order)); if ((in_cdr >> group) == 0) return -1; diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Acceptor_Registry.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Acceptor_Registry.cpp index 965456556af..a4928c25730 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Acceptor_Registry.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Acceptor_Registry.cpp @@ -99,7 +99,7 @@ TAO_PortableGroup_Acceptor_Registry::open_i (const TAO_Profile* profile, // Removed the constness of profile. We're not changing // anything, but need to call a nonconst function. - TAO_Profile* nc_profile = const_cast<TAO_Profile *>(profile); + TAO_Profile* nc_profile = const_cast<TAO_Profile *> (profile); nc_profile->endpoint ()->addr_to_string (buffer, MAX_ADDR_LENGTH); if (acceptor->open (&orb_core, @@ -178,7 +178,7 @@ TAO_PortableGroup_Acceptor_Registry::find (const TAO_Profile* profile, // Since the endpoint routine is nonconst, need to // cast away the constness even though we're not // changing anything. - TAO_Profile *nc_profile = const_cast<TAO_Profile *>(profile); + TAO_Profile *nc_profile = const_cast<TAO_Profile *> (profile); if (entry->endpoint->is_equivalent (nc_profile->endpoint ())) return 1; diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.cpp index d47674a04d7..9760e1c4e64 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.cpp @@ -121,7 +121,7 @@ TAO_Portable_Group_Map::dispatch (PortableGroup::TagGroupTaggedComponent* group_ // reset it so that the request demarshals correctly. TAO_InputCDR &tao_in = request.incoming (); ACE_Message_Block *msgblk = - const_cast<ACE_Message_Block *>(tao_in.start ()); + const_cast<ACE_Message_Block *> (tao_in.start ()); char *read_ptr = msgblk->rd_ptr (); // Iterate through the list of ObjectKeys. diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.cpp index a00899c560c..ea338982fbd 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.cpp @@ -105,8 +105,8 @@ TAO_UIPMC_Acceptor::open (TAO_ORB_Core *orb_core, return -1; if (major >=0 && minor >= 0) - this->version_.set_version (static_cast<CORBA::Octet>(major), - static_cast<CORBA::Octet>(minor)); + this->version_.set_version (static_cast<CORBA::Octet> (major), + static_cast<CORBA::Octet> (minor)); // Parse options if (this->parse_options (options) == -1) return -1; diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connector.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connector.cpp index 0a6ed6a5786..6118681e9c4 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connector.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connector.cpp @@ -108,7 +108,7 @@ TAO_UIPMC_Connector::set_validate_endpoint (TAO_Endpoint *endpoint) return -1; TAO_UIPMC_Endpoint *uipmc_endpoint = - dynamic_cast<TAO_UIPMC_Endpoint *>(endpoint ); + dynamic_cast<TAO_UIPMC_Endpoint *> (endpoint ); if (uipmc_endpoint == 0) return -1; @@ -142,7 +142,7 @@ TAO_UIPMC_Connector::make_connection (TAO::Profile_Transport_Resolver *, ACE_Time_Value *) { TAO_UIPMC_Endpoint *uipmc_endpoint = - dynamic_cast<TAO_UIPMC_Endpoint *>(desc.endpoint ()); + dynamic_cast<TAO_UIPMC_Endpoint *> (desc.endpoint ()); if (uipmc_endpoint == 0) return 0; diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.cpp index ae19e01043a..04ef32df9ce 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.cpp @@ -113,9 +113,9 @@ TAO_UIPMC_Endpoint::duplicate (void) CORBA::Boolean TAO_UIPMC_Endpoint::is_equivalent (const TAO_Endpoint *other_endpoint) { - TAO_Endpoint *endpt = const_cast<TAO_Endpoint *>(other_endpoint); + TAO_Endpoint *endpt = const_cast<TAO_Endpoint *> (other_endpoint); - TAO_UIPMC_Endpoint *endpoint = dynamic_cast<TAO_UIPMC_Endpoint *>(endpt); + TAO_UIPMC_Endpoint *endpoint = dynamic_cast<TAO_UIPMC_Endpoint *> (endpt); if (endpoint == 0) return 0; diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Message_Block_Data_Iterator.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Message_Block_Data_Iterator.cpp index bcc7fd908dd..0499d6ec6e4 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Message_Block_Data_Iterator.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Message_Block_Data_Iterator.cpp @@ -29,7 +29,7 @@ UIPMC_Message_Block_Data_Iterator::next_block (size_t max_length, if (current_iov_len <= max_length) { // Return the full data portion. - block.iov_len = static_cast<u_long>(current_iov_len); + block.iov_len = static_cast<u_long> (current_iov_len); block.iov_base = this->iov_[this->iov_index_].iov_base; // Go to the next block. @@ -41,14 +41,14 @@ UIPMC_Message_Block_Data_Iterator::next_block (size_t max_length, { // Let the caller use the first part of this // message block. - block.iov_len = static_cast<u_long>(max_length); + block.iov_len = static_cast<u_long> (max_length); block.iov_base = this->iov_[this->iov_index_].iov_base; // Break up the block. this->iov_len_left_ = current_iov_len - max_length; this->iov_ptr_ = ACE_reinterpret_cast (char *, - reinterpret_cast<char *>(block.iov_base) + reinterpret_cast<char *> (block.iov_base) + max_length); this->state_ = INTRA_BLOCK; @@ -61,7 +61,7 @@ UIPMC_Message_Block_Data_Iterator::next_block (size_t max_length, if (this->iov_len_left_ <= max_length) { // Return everything that's left in the block. - block.iov_len = static_cast<u_long>(this->iov_len_left_); + block.iov_len = static_cast<u_long> (this->iov_len_left_); block.iov_base = this->iov_ptr_; // Go to the next block. @@ -75,7 +75,7 @@ UIPMC_Message_Block_Data_Iterator::next_block (size_t max_length, else { // Split a little more off the block. - block.iov_len = static_cast<u_long>(this->iov_len_left_); + block.iov_len = static_cast<u_long> (this->iov_len_left_); block.iov_base = this->iov_ptr_; this->iov_len_left_ -= max_length; diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Profile.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Profile.cpp index 3a5dce97668..d0cb5df2ffc 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Profile.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Profile.cpp @@ -355,7 +355,7 @@ CORBA::Boolean TAO_UIPMC_Profile::do_is_equivalent (const TAO_Profile *other_profile) { const TAO_UIPMC_Profile *op = - dynamic_cast<const TAO_UIPMC_Profile *>(other_profile); + dynamic_cast<const TAO_UIPMC_Profile *> (other_profile); if (op == 0) return 0; @@ -411,7 +411,7 @@ TAO_UIPMC_Profile::to_string (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) 1 /* colon separator */ + 5 /* port number */); - char * buf = CORBA::string_alloc (static_cast<CORBA::ULong>(buflen)); + char * buf = CORBA::string_alloc (static_cast<CORBA::ULong> (buflen)); ACE_OS::sprintf (buf, "corbaloc:%s://1.0@%s:%d", @@ -443,7 +443,7 @@ TAO_UIPMC_Profile::create_tagged_profile (void) this->create_profile_body (encap); CORBA::ULong length = - 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 @@ -500,14 +500,14 @@ TAO_UIPMC_Profile::decode_endpoints (void) const CORBA::Octet *buf = tagged_component.component_data.get_buffer (); - TAO_InputCDR in_cdr (reinterpret_cast<const char*>(buf), + TAO_InputCDR in_cdr (reinterpret_cast<const char*> (buf), tagged_component.component_data.length ()); // Extract the Byte Order. CORBA::Boolean byte_order; if ((in_cdr >> ACE_InputCDR::to_boolean (byte_order)) == 0) return -1; - in_cdr.reset_byte_order (static_cast<int>(byte_order)); + in_cdr.reset_byte_order (static_cast<int> (byte_order)); // Extract endpoints sequence. TAO_UIPMCEndpointSequence endpoints; @@ -589,7 +589,7 @@ TAO_UIPMC_Profile::update_cached_group_component (void) IOP::TaggedComponent tagged_component; tagged_component.tag = IOP::TAG_GROUP; - tagged_component.component_data.length (static_cast<CORBA::ULong>(length)); + tagged_component.component_data.length (static_cast<CORBA::ULong> (length)); CORBA::Octet *buf = tagged_component.component_data.get_buffer (); @@ -673,7 +673,7 @@ TAO_UIPMC_Profile::extract_group_component (const IOP::TaggedProfile &profile, //#if (TAO_NO_COPY_OCTET_SEQUENCES == 1) // TAO_InputCDR cdr (profile.profile_data.mb ()); //#else - TAO_InputCDR cdr (reinterpret_cast<const char*>(profile.profile_data.get_buffer ()), + TAO_InputCDR cdr (reinterpret_cast<const char*> (profile.profile_data.get_buffer ()), profile.profile_data.length ()); //#endif /* TAO_NO_COPY_OCTET_SEQUENCES == 1 */ @@ -681,7 +681,7 @@ TAO_UIPMC_Profile::extract_group_component (const IOP::TaggedProfile &profile, CORBA::Boolean byte_order; if ((cdr >> ACE_InputCDR::to_boolean (byte_order)) == 0) return -1; - cdr.reset_byte_order (static_cast<int>(byte_order)); + cdr.reset_byte_order (static_cast<int> (byte_order)); // Read and verify major, minor versions, ignoring UIPMC profiles // whose versions we don't understand. @@ -730,13 +730,13 @@ TAO_UIPMC_Profile::extract_group_component (const IOP::TaggedProfile &profile, const CORBA::Octet *buf = tagged_component.component_data.get_buffer (); - TAO_InputCDR in_cdr (reinterpret_cast<const char*>(buf), + TAO_InputCDR in_cdr (reinterpret_cast<const char*> (buf), tagged_component.component_data.length ()); // Extract the Byte Order. if ((in_cdr >> ACE_InputCDR::to_boolean (byte_order)) == 0) return -1; - in_cdr.reset_byte_order (static_cast<int>(byte_order)); + in_cdr.reset_byte_order (static_cast<int> (byte_order)); if ((in_cdr >> group) == 0) return -1; diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport.cpp index b4fbc4769aa..b31c13cf66e 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport.cpp @@ -260,9 +260,9 @@ TAO_UIPMC_Transport::send (iovec *iov, int iovcnt, miop_hdr.write_ulong (num_fragments); // UniqueId - ptrdiff_t unique_id = reinterpret_cast<ptrdiff_t>(iov); + ptrdiff_t unique_id = reinterpret_cast<ptrdiff_t> (iov); this->write_unique_id (miop_hdr, - static_cast<unsigned long>(unique_id)); + static_cast<unsigned long> (unique_id)); // Send the buffers. current_fragment = &fragments[0]; @@ -387,15 +387,15 @@ TAO_UIPMC_Transport::recv (char *buf, #if !defined (ACE_DISABLE_SWAP_ON_READ) if (byte_order == ACE_CDR_BYTE_ORDER) { - id_length = *reinterpret_cast<ACE_CDR::ULong*>(&buf[MIOP_ID_LENGTH_OFFSET]); + id_length = *reinterpret_cast<ACE_CDR::ULong*> (&buf[MIOP_ID_LENGTH_OFFSET]); } else { ACE_CDR::swap_4 (&buf[MIOP_ID_LENGTH_OFFSET], - reinterpret_cast<char*>(&id_length)); + reinterpret_cast<char*> (&id_length)); } #else - id_length = *reinterpret_cast<ACE_CDR::ULong*>(&buf[MIOP_ID_LENGTH_OFFSET]); + id_length = *reinterpret_cast<ACE_CDR::ULong*> (&buf[MIOP_ID_LENGTH_OFFSET]); #endif /* ACE_DISABLE_SWAP_ON_READ */ // Make sure that the length field is legal. diff --git a/TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp b/TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp index d487144db8b..7774be75c22 100644 --- a/TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp +++ b/TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp @@ -696,7 +696,7 @@ CORBA::ULong TAO_PropertySet::get_number_of_properties (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) ACE_THROW_SPEC ((CORBA::SystemException)) { - return static_cast<CORBA::ULong>(this->hash_table_.current_size ()); + return static_cast<CORBA::ULong> (this->hash_table_.current_size ()); } // Returns all of the property names currently defined in the @@ -1738,7 +1738,7 @@ TAO_PropertyNamesIterator::next_n (CORBA::ULong how_many, if (this->iterator_.next (entry_ptr) == 0 || how_many == 0) return 0; - CORBA::ULong size = static_cast<CORBA::ULong>(this->iterator_.map ().current_size ()); + CORBA::ULong size = static_cast<CORBA::ULong> (this->iterator_.map ().current_size ()); CORBA::ULong len = 0; if (how_many <= size) @@ -1833,7 +1833,7 @@ TAO_PropertiesIterator::next_n (CORBA::ULong how_many, if (this->iterator_.next (entry_ptr) == 0 || how_many == 0) return 0; - CORBA::ULong size = static_cast<CORBA::ULong>(this->iterator_.map ().current_size ()); + CORBA::ULong size = static_cast<CORBA::ULong> (this->iterator_.map ().current_size ()); CORBA::ULong len; if (how_many <= size) diff --git a/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.i b/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.i index e90d0fbb99f..a8d071fc9fd 100644 --- a/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.i +++ b/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.i @@ -30,5 +30,5 @@ ACE_INLINE u_long TAO::CosSchedulingInvocation_Hash_key::operator () ( const COS_SCHEDULING_INVOCATION_KEY &key) const { - return static_cast<u_long>(key); + return static_cast<u_long> (key); } diff --git a/TAO/orbsvcs/orbsvcs/Runtime_Scheduler.cpp b/TAO/orbsvcs/orbsvcs/Runtime_Scheduler.cpp index c0dc1f088d7..57df6a30ee3 100644 --- a/TAO/orbsvcs/orbsvcs/Runtime_Scheduler.cpp +++ b/TAO/orbsvcs/orbsvcs/Runtime_Scheduler.cpp @@ -127,10 +127,10 @@ ACE_Runtime_Scheduler::set (RtecScheduler::handle_t handle, || rt_info_[handle - 1].cached_execution_time != cached_time || rt_info_[handle - 1].period != period || rt_info_[handle - 1].criticality != criticality - || rt_info_[handle - 1].importance != static_cast<CORBA::Long>(importance) + || rt_info_[handle - 1].importance != static_cast<CORBA::Long> (importance) || rt_info_[handle - 1].quantum != quantum || rt_info_[handle - 1].info_type != info_type - || rt_info_[handle - 1].threads != static_cast<CORBA::Long>(threads)) + || rt_info_[handle - 1].threads != static_cast<CORBA::Long> (threads)) ACE_ERROR ((LM_ERROR, "invalid data for RT_Info: %s\n", (const char*)rt_info_[handle - 1].entry_point)); diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.cpp index e3460912c20..9a1cb2190ac 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.cpp @@ -298,7 +298,7 @@ TAO::IIOP_SSL_Connector::cancel_svc_handler ( TAO_Connection_Handler * svc_handler) { IIOP_SSL_Connection_Handler* handler= - dynamic_cast<IIOP_SSL_Connection_Handler*>(svc_handler); + dynamic_cast<IIOP_SSL_Connection_Handler*> (svc_handler); if (handler) { diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.cpp index 4bb445347fd..30574272f8a 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.cpp @@ -844,7 +844,7 @@ TAO::SSLIOP::Connector::cancel_svc_handler ( TAO_Connection_Handler * svc_handler) { TAO::SSLIOP::Connection_Handler* handler= - dynamic_cast<TAO::SSLIOP::Connection_Handler*>(svc_handler); + dynamic_cast<TAO::SSLIOP::Connection_Handler*> (svc_handler); if (handler) { diff --git a/TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp b/TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp index 706d2fbc2ba..cc623085ad8 100644 --- a/TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp +++ b/TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp @@ -13,7 +13,7 @@ ACE_RCSID(Sched, Config_Scheduler, "$Id$") ACE_Config_Scheduler::ACE_Config_Scheduler (void) #if defined (TAO_USES_STRATEGY_SCHEDULER) - : scheduler_strategy_ (static_cast<RtecScheduler::Preemption_Priority_t>(TAO_MIN_CRITICAL_PRIORITY)) + : scheduler_strategy_ (static_cast<RtecScheduler::Preemption_Priority_t> (TAO_MIN_CRITICAL_PRIORITY)) , impl (new ACE_Strategy_Scheduler (scheduler_strategy_)) #else : impl (new Scheduler_Generic) @@ -267,7 +267,7 @@ void ACE_Config_Scheduler::compute_scheduling (CORBA::Long minimum_priority, const char *anomaly_severity_msg = "NONE"; CORBA::ULong anomaly_index = 0; CORBA::ULong anomaly_set_size = - static_cast<CORBA::ULong>(anomaly_set.size ()); + static_cast<CORBA::ULong> (anomaly_set.size ()); if (anomalies.ptr () == 0) { anomalies = @@ -384,7 +384,7 @@ void ACE_Config_Scheduler::compute_scheduling (CORBA::Long minimum_priority, } infos->length (impl->tasks ()); for (RtecScheduler::handle_t handle = 1; - handle <= static_cast<RtecScheduler::handle_t>(impl->tasks ()); + handle <= static_cast<RtecScheduler::handle_t> (impl->tasks ()); ++handle) { RtecScheduler::RT_Info* rt_info = 0; @@ -413,7 +413,7 @@ void ACE_Config_Scheduler::compute_scheduling (CORBA::Long minimum_priority, configs->length (impl->minimum_priority_queue () + 1); for (RtecScheduler::Preemption_Priority_t priority = 0; priority <= - static_cast<RtecScheduler::Preemption_Priority_t>(impl->minimum_priority_queue ()); + static_cast<RtecScheduler::Preemption_Priority_t> (impl->minimum_priority_queue ()); ++priority) { RtecScheduler::Config_Info* config_info = 0; diff --git a/TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp b/TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp index 4ea8c847d54..e4d23988e30 100644 --- a/TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp +++ b/TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp @@ -711,7 +711,7 @@ ACE_DynScheduler::schedule ( else { // save the total number of registered RT_Infos - tasks (static_cast<u_int>(rt_info_entries_.size ())); + tasks (static_cast<u_int> (rt_info_entries_.size ())); } // set up the task entry data structures @@ -1279,7 +1279,7 @@ ACE_DynScheduler::calculate_utilization_params (void) ACE_static_cast (double, ACE_UINT64_DBLCAST_ADAPTER (ordered_dispatch_entries_ [i]-> task_entry ().rt_info ()->worst_case_execution_time)) / - static_cast<double>(ordered_dispatch_entries_ [i]-> + static_cast<double> (ordered_dispatch_entries_ [i]-> task_entry ().effective_period ()); } } @@ -1317,7 +1317,7 @@ ACE_DynScheduler::status_t ACE_DynScheduler::setup_task_entries (void) { // store number of tasks, based on registrations - tasks (static_cast<u_int>(rt_info_entries_.size ())); + tasks (static_cast<u_int> (rt_info_entries_.size ())); // bail out if there are no tasks registered if (tasks () <= 0) @@ -1725,7 +1725,7 @@ ACE_DynScheduler::schedule_threads (ACE_Unbounded_Set<RtecScheduler::Scheduling_ ACE_DynScheduler::status_t ACE_DynScheduler::schedule_dispatches (ACE_Unbounded_Set<RtecScheduler::Scheduling_Anomaly *> &anomaly_set) { - dispatch_entry_count_ = static_cast<u_int>(dispatch_entries_->size ()); + dispatch_entry_count_ = static_cast<u_int> (dispatch_entries_->size ()); ACE_NEW_RETURN (ordered_dispatch_entries_, Dispatch_Entry * [dispatch_entry_count_], @@ -1870,10 +1870,10 @@ ACE_DynScheduler::create_timeline () // have to change when TimeBase.idl is finalized. const TimeBase::TimeT arrival = ordered_dispatch_entries_[i]->arrival () + - static_cast<ACE_UINT32>(current_frame_offset); + static_cast<ACE_UINT32> (current_frame_offset); const TimeBase::TimeT deadline= ordered_dispatch_entries_[i]->deadline () + - static_cast<ACE_UINT32>(current_frame_offset); + static_cast<ACE_UINT32> (current_frame_offset); ACE_NEW_RETURN ( new_dispatch_entry, @@ -2331,8 +2331,8 @@ ACE_DynScheduler::output_viewer_timeline (FILE *file) file, "%-11s %9f %9f %8u %8u %11u %11u\n", current_entry->dispatch_entry ().task_entry ().rt_info ()-> entry_point.in (), - static_cast<double>(ACE_UINT64_DBLCAST_ADAPTER(current_accumulated_execution)) / - static_cast<double>(ACE_UINT64_DBLCAST_ADAPTER(current_completion)), + static_cast<double> (ACE_UINT64_DBLCAST_ADAPTER(current_accumulated_execution)) / + static_cast<double> (ACE_UINT64_DBLCAST_ADAPTER(current_completion)), 0.0, ACE_U64_TO_U32 (current_entry->arrival ()), ACE_U64_TO_U32 (current_entry->deadline ()), diff --git a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.cpp b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.cpp index 8a6ae0189db..11449d2027e 100644 --- a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.cpp +++ b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.cpp @@ -209,7 +209,7 @@ TAO_RT_Info_Tuple::~TAO_RT_Info_Tuple () void TAO_RT_Info_Tuple::operator = (const RtecScheduler::RT_Info &info) { - static_cast<TAO_RT_Info_Ex>(*this) = info; + static_cast<TAO_RT_Info_Ex> (*this) = info; } @@ -955,7 +955,7 @@ TAO_Reconfig_Sched_Strategy_Base::comp_tuple_finish_times (const void *first, co // make Sun C++ 4.2 happy. TAO_RT_Info_Tuple **first_tuple = ACE_reinterpret_cast (TAO_RT_Info_Tuple **, - const_cast<void *>(first)); + const_cast<void *> (first)); //volatile_token is a TAO_Reconfig_Scheduler_Entry*, but we need to treat it as a void* void * first_entry = ACE_LONGLONG_TO_PTR (void *, @@ -963,7 +963,7 @@ TAO_Reconfig_Sched_Strategy_Base::comp_tuple_finish_times (const void *first, co TAO_RT_Info_Tuple **second_tuple = ACE_reinterpret_cast (TAO_RT_Info_Tuple **, - const_cast<void *>(second)); + const_cast<void *> (second)); //volatile_token is a TAO_Reconfig_Scheduler_Entry*, but we need to treat it as a void* void * second_entry = ACE_LONGLONG_TO_PTR (TAO_Reconfig_Scheduler_Entry *, @@ -1109,10 +1109,10 @@ TAO_MUF_FAIR_Reconfig_Sched_Strategy::total_priority_comp (const void *s, const // make Sun C++ 4.2 happy. TAO_Reconfig_Scheduler_Entry **first = ACE_reinterpret_cast (TAO_Reconfig_Scheduler_Entry **, - const_cast<void *>(s)); + const_cast<void *> (s)); TAO_Reconfig_Scheduler_Entry **second = ACE_reinterpret_cast (TAO_Reconfig_Scheduler_Entry **, - const_cast<void *>(t)); + const_cast<void *> (t)); // Check the converted pointers. if (first == 0 || *first == 0) @@ -1164,7 +1164,7 @@ TAO_MUF_FAIR_Reconfig_Sched_Strategy::total_admission_comp (const void *s, // make Sun C++ 4.2 happy. TAO_RT_Info_Tuple **first = ACE_reinterpret_cast (TAO_RT_Info_Tuple **, - const_cast<void *>(s)); + const_cast<void *> (s)); TAO_Reconfig_Scheduler_Entry * first_entry = ACE_LONGLONG_TO_PTR (TAO_Reconfig_Scheduler_Entry *, @@ -1172,7 +1172,7 @@ TAO_MUF_FAIR_Reconfig_Sched_Strategy::total_admission_comp (const void *s, TAO_RT_Info_Tuple **second = ACE_reinterpret_cast (TAO_RT_Info_Tuple **, - const_cast<void *>(t)); + const_cast<void *> (t)); TAO_Reconfig_Scheduler_Entry * second_entry = ACE_LONGLONG_TO_PTR (TAO_Reconfig_Scheduler_Entry *, @@ -1313,10 +1313,10 @@ TAO_RMS_FAIR_Reconfig_Sched_Strategy::total_priority_comp (const void *s, const // make Sun C++ 4.2 happy. TAO_Reconfig_Scheduler_Entry **first = ACE_reinterpret_cast (TAO_Reconfig_Scheduler_Entry **, - const_cast<void *>(s)); + const_cast<void *> (s)); TAO_Reconfig_Scheduler_Entry **second = ACE_reinterpret_cast (TAO_Reconfig_Scheduler_Entry **, - const_cast<void *>(t)); + const_cast<void *> (t)); // Check the converted pointers. if (first == 0 || *first == 0) @@ -1371,7 +1371,7 @@ TAO_RMS_FAIR_Reconfig_Sched_Strategy::total_admission_comp (const void *s, // make Sun C++ 4.2 happy. TAO_RT_Info_Tuple **first = ACE_reinterpret_cast (TAO_RT_Info_Tuple **, - const_cast<void *>(s)); + const_cast<void *> (s)); TAO_Reconfig_Scheduler_Entry * first_entry = ACE_LONGLONG_TO_PTR (TAO_Reconfig_Scheduler_Entry *, @@ -1379,7 +1379,7 @@ TAO_RMS_FAIR_Reconfig_Sched_Strategy::total_admission_comp (const void *s, TAO_RT_Info_Tuple **second = ACE_reinterpret_cast (TAO_RT_Info_Tuple **, - const_cast<void *>(t)); + const_cast<void *> (t)); TAO_Reconfig_Scheduler_Entry * second_entry = ACE_LONGLONG_TO_PTR (TAO_Reconfig_Scheduler_Entry *, @@ -1543,10 +1543,10 @@ TAO_RMS_MLF_Reconfig_Sched_Strategy::total_priority_comp (const void *s, const v // make Sun C++ 4.2 happy. TAO_Reconfig_Scheduler_Entry **first = ACE_reinterpret_cast (TAO_Reconfig_Scheduler_Entry **, - const_cast<void *>(s)); + const_cast<void *> (s)); TAO_Reconfig_Scheduler_Entry **second = ACE_reinterpret_cast (TAO_Reconfig_Scheduler_Entry **, - const_cast<void *>(t)); + const_cast<void *> (t)); // Check the converted pointers. if (first == 0 || *first == 0) @@ -1601,7 +1601,7 @@ TAO_RMS_MLF_Reconfig_Sched_Strategy::total_admission_comp (const void *s, // make Sun C++ 4.2 happy. TAO_RT_Info_Tuple **first = ACE_reinterpret_cast (TAO_RT_Info_Tuple **, - const_cast<void *>(s)); + const_cast<void *> (s)); TAO_Reconfig_Scheduler_Entry * first_entry = ACE_LONGLONG_TO_PTR (TAO_Reconfig_Scheduler_Entry *, @@ -1609,7 +1609,7 @@ TAO_RMS_MLF_Reconfig_Sched_Strategy::total_admission_comp (const void *s, TAO_RT_Info_Tuple **second = ACE_reinterpret_cast (TAO_RT_Info_Tuple **, - const_cast<void *>(t)); + const_cast<void *> (t)); TAO_Reconfig_Scheduler_Entry * second_entry = ACE_LONGLONG_TO_PTR (TAO_Reconfig_Scheduler_Entry *, diff --git a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils_T.cpp b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils_T.cpp index d4b767e78f4..a13c79c53d8 100644 --- a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils_T.cpp +++ b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils_T.cpp @@ -946,21 +946,21 @@ TAO_Tuple_Admission_Visitor<RECONFIG_SCHED_STRATEGY>::visit (TAO_RT_Info_Tuple & // Compute the current tuple's utilization. CORBA::Double delta_utilization = - (static_cast<CORBA::Double>(t.threads) + (static_cast<CORBA::Double> (t.threads) * ACE_static_cast (CORBA::Double, ACE_UINT64_DBLCAST_ADAPTER (entry-> aggregate_exec_time ()))) - / static_cast<CORBA::Double>(t.period); + / static_cast<CORBA::Double> (t.period); // Subtract the previous tuple's utilization (if any) for the entry. if (entry->current_admitted_tuple ()) { delta_utilization -= - (static_cast<CORBA::Double>(entry->current_admitted_tuple ()->threads) + (static_cast<CORBA::Double> (entry->current_admitted_tuple ()->threads) * ACE_static_cast (CORBA::Double, ACE_UINT64_DBLCAST_ADAPTER (entry-> aggregate_exec_time ()))) - / static_cast<CORBA::Double>(entry->current_admitted_tuple ()->period); + / static_cast<CORBA::Double> (entry->current_admitted_tuple ()->period); } if (RECONFIG_SCHED_STRATEGY::is_critical (t)) diff --git a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.cpp b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.cpp index b323dc764c5..cb2144fbd02 100644 --- a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.cpp +++ b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.cpp @@ -1572,7 +1572,7 @@ get_config_info_set (RtecScheduler::Config_Info_Set_out configs ++config_iter) { config_info = (*config_iter).int_id_; - configs[static_cast<CORBA::ULong>(config_info->preemption_priority)] = *config_info; + configs[static_cast<CORBA::ULong> (config_info->preemption_priority)] = *config_info; } return; @@ -1692,7 +1692,7 @@ get_config_infos (RtecScheduler::Config_Info_Set_out configs ++config_iter) { config_info = (*config_iter).int_id_; - configs[static_cast<CORBA::ULong>(config_info->preemption_priority)] = *config_info; + configs[static_cast<CORBA::ULong> (config_info->preemption_priority)] = *config_info; } } @@ -1814,7 +1814,7 @@ create_i (const char *entry_point, // Connect the entry to the RT_Info. new_rt_info->volatile_token = ACE_static_cast (CORBA::ULongLong, - reinterpret_cast<ptrdiff_t>(new_sched_entry)); + reinterpret_cast<ptrdiff_t> (new_sched_entry)); // With everything safely registered in the map and tree, just // update the next handle and info counter and return the new info. @@ -2509,10 +2509,10 @@ detect_cycles_i (ACE_ENV_SINGLE_ARG_DECL) // Sort the pointers to entries in order of descending forward // finish times, which produces a reverse topological ordering, // with callers ahead of called nodes. - ACE_OS::qsort (reinterpret_cast<void *>(entry_ptr_array_), + ACE_OS::qsort (reinterpret_cast<void *> (entry_ptr_array_), this->rt_info_count_, sizeof (TAO_Reconfig_Scheduler_Entry *), - reinterpret_cast<COMP_FUNC>(RECONFIG_SCHED_STRATEGY::comp_entry_finish_times)); + reinterpret_cast<COMP_FUNC> (RECONFIG_SCHED_STRATEGY::comp_entry_finish_times)); // Traverse entries in reverse topological order, // looking for strongly connected components (cycles). @@ -2571,10 +2571,10 @@ perform_admission_i (ACE_ENV_SINGLE_ARG_DECL) // Sort the pointers to original tuples in ascending admission // order, according to the scheduling strategy's admission policy. - ACE_OS::qsort (reinterpret_cast<void *>(tuple_ptr_array_), + ACE_OS::qsort (reinterpret_cast<void *> (tuple_ptr_array_), this->rt_info_tuple_count_, sizeof (TAO_RT_Info_Tuple *), - reinterpret_cast<COMP_FUNC>(RECONFIG_SCHED_STRATEGY::total_admission_comp)); + reinterpret_cast<COMP_FUNC> (RECONFIG_SCHED_STRATEGY::total_admission_comp)); // Traverse tuples in admission order, updating the associate tuple // for each thread delineator. @@ -2654,10 +2654,10 @@ propagate_criticalities_i (ACE_ENV_SINGLE_ARG_DECL) // Sort the pointers to original tuples in ascending admission // order, according to the scheduling strategy's admission policy. - ACE_OS::qsort (reinterpret_cast<void *>(tuple_ptr_array_), + ACE_OS::qsort (reinterpret_cast<void *> (tuple_ptr_array_), this->rt_info_tuple_count_, sizeof (TAO_RT_Info_Tuple *), - reinterpret_cast<COMP_FUNC>(RECONFIG_SCHED_STRATEGY::comp_tuple_finish_times )); + reinterpret_cast<COMP_FUNC> (RECONFIG_SCHED_STRATEGY::comp_tuple_finish_times )); // Traverse entries in topological (ascending forward DFS // finish time) order, propagating aggregate execution @@ -2758,10 +2758,10 @@ assign_priorities_i (ACE_ENV_SINGLE_ARG_DECL) // Sort the pointers to entries in descending order // of static priority and static subpriority, according // to our given scheduling strategy. - ACE_OS::qsort (reinterpret_cast<void *>(entry_ptr_array_), + ACE_OS::qsort (reinterpret_cast<void *> (entry_ptr_array_), this->rt_info_count_, sizeof (TAO_Reconfig_Scheduler_Entry *), - reinterpret_cast<COMP_FUNC>(RECONFIG_SCHED_STRATEGY::total_priority_comp)); + reinterpret_cast<COMP_FUNC> (RECONFIG_SCHED_STRATEGY::total_priority_comp)); #ifdef SCHEDULER_LOGGING ACE_DEBUG ((LM_DEBUG, "Scheduler::qsorted array is\n")); diff --git a/TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.cpp b/TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.cpp index 5a44a27eb68..5be44333377 100644 --- a/TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.cpp +++ b/TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.cpp @@ -228,7 +228,7 @@ Scheduler_Generic::schedule (ACE_Unbounded_Set<Scheduling_Anomaly *> status_t status = ACE_Scheduler::SUCCEEDED; // store number of tasks, based on registrations - tasks (static_cast<u_int>(task_entries_.size ())); + tasks (static_cast<u_int> (task_entries_.size ())); if (output_level () > 0) { diff --git a/TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.cpp b/TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.cpp index 39164b0afb7..49a3a9a9607 100644 --- a/TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.cpp +++ b/TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.cpp @@ -839,8 +839,8 @@ int ACE_MUF_Scheduler_Strategy::sort_function (void *arg1, void *arg2) { return ACE_MUF_Scheduler_Strategy::instance ()-> - sort_comp (** static_cast<Dispatch_Entry **>(arg1), - ** static_cast<Dispatch_Entry **>(arg2)); + sort_comp (** static_cast<Dispatch_Entry **> (arg1), + ** static_cast<Dispatch_Entry **> (arg2)); } @@ -975,8 +975,8 @@ int ACE_RMS_Scheduler_Strategy::sort_function (void *arg1, void *arg2) { return ACE_RMS_Scheduler_Strategy::instance ()-> - sort_comp (** static_cast<Dispatch_Entry **>(arg1), - ** static_cast<Dispatch_Entry **>(arg2)); + sort_comp (** static_cast<Dispatch_Entry **> (arg1), + ** static_cast<Dispatch_Entry **> (arg2)); } @@ -1119,8 +1119,8 @@ int ACE_MLF_Scheduler_Strategy::sort_function (void *arg1, void *arg2) { return ACE_MLF_Scheduler_Strategy::instance ()-> - sort_comp (** static_cast<Dispatch_Entry **>(arg1), - ** static_cast<Dispatch_Entry **>(arg2)); + sort_comp (** static_cast<Dispatch_Entry **> (arg1), + ** static_cast<Dispatch_Entry **> (arg2)); } @@ -1246,8 +1246,8 @@ int ACE_EDF_Scheduler_Strategy::sort_function (void *arg1, void *arg2) { return ACE_EDF_Scheduler_Strategy::instance ()-> - sort_comp (** static_cast<Dispatch_Entry **>(arg1), - ** static_cast<Dispatch_Entry **>(arg2)); + sort_comp (** static_cast<Dispatch_Entry **> (arg1), + ** static_cast<Dispatch_Entry **> (arg2)); } // = Provides the dispatching queue type for the given dispatch entry. @@ -1371,8 +1371,8 @@ int ACE_Criticality_Scheduler_Strategy::sort_function (void *arg1, void *arg2) { return ACE_Criticality_Scheduler_Strategy::instance ()-> - sort_comp (** static_cast<Dispatch_Entry **>(arg1), - ** static_cast<Dispatch_Entry **>(arg2)); + sort_comp (** static_cast<Dispatch_Entry **> (arg1), + ** static_cast<Dispatch_Entry **> (arg2)); } diff --git a/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.cpp b/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.cpp index 1604975f718..285c1bac0cd 100644 --- a/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.cpp +++ b/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.cpp @@ -140,7 +140,7 @@ TAO_Time_Service_Clerk::get_time (void) const ACE_Time_Value timeofday = ACE_OS::gettimeofday (); - return (CORBA::ULongLong) (static_cast<CORBA::ULongLong>(timeofday.sec ()) * + return (CORBA::ULongLong) (static_cast<CORBA::ULongLong> (timeofday.sec ()) * ACE_static_cast (ACE_UINT32, 10000000) + ACE_static_cast (CORBA::ULongLong, diff --git a/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.cpp b/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.cpp index 3f4ba9b3fcf..1d51e89d146 100644 --- a/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.cpp +++ b/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.cpp @@ -58,7 +58,7 @@ TAO_Time_Service_Server::universal_time (ACE_ENV_SINGLE_ARG_DECL) // Return the local time of the system as a UTO. ACE_NEW_THROW_EX (uto, TAO_UTO ((TAO_Time_Base_Offset + - static_cast<CORBA::ULongLong>(timeofday.sec ())) * + static_cast<CORBA::ULongLong> (timeofday.sec ())) * ACE_static_cast (ACE_UINT32, 10000000) + ACE_static_cast (CORBA::ULongLong, diff --git a/TAO/orbsvcs/orbsvcs/Time/Timer_Helper.cpp b/TAO/orbsvcs/orbsvcs/Time/Timer_Helper.cpp index 120b58eacb9..f8fb927c086 100644 --- a/TAO/orbsvcs/orbsvcs/Time/Timer_Helper.cpp +++ b/TAO/orbsvcs/orbsvcs/Time/Timer_Helper.cpp @@ -119,7 +119,7 @@ Timer_Helper::handle_timeout (const ACE_Time_Value &, ACE_OS::tzset (); long arg = ACE_OS::timezone () / 60; - CORBA::Short goodarg = static_cast<CORBA::Short>(arg); + CORBA::Short goodarg = static_cast<CORBA::Short> (arg); clerk_->time_displacement_factor (goodarg); // Set the inaccuracy. @@ -133,7 +133,7 @@ Timer_Helper::handle_timeout (const ACE_Time_Value &, // Record the current time in a timestamp to know when global // updation of time was done. clerk_->update_timestamp_ = - static_cast<CORBA::ULongLong>(timeofday.sec ()) * + static_cast<CORBA::ULongLong> (timeofday.sec ()) * ACE_static_cast (ACE_UINT32, 10000000) + ACE_static_cast (CORBA::ULongLong, diff --git a/TAO/orbsvcs/orbsvcs/Time_Utilities.i b/TAO/orbsvcs/orbsvcs/Time_Utilities.i index 8dee2f9abd1..d423bfd4c82 100644 --- a/TAO/orbsvcs/orbsvcs/Time_Utilities.i +++ b/TAO/orbsvcs/orbsvcs/Time_Utilities.i @@ -40,8 +40,8 @@ ORBSVCS_Time::Time_Value_to_TimeT (TimeBase::TimeT& lhs, const ACE_Time_Value& rhs) { ACE_hrtime_t t = - static_cast<ACE_hrtime_t>(rhs.sec ()) * ACE_U_ONE_SECOND_IN_NSECS + - static_cast<ACE_hrtime_t>(rhs.usec ()) * 1000u; + static_cast<ACE_hrtime_t> (rhs.sec ()) * ACE_U_ONE_SECOND_IN_NSECS + + static_cast<ACE_hrtime_t> (rhs.usec ()) * 1000u; ORBSVCS_Time::hrtime_to_TimeT (lhs, t); } diff --git a/TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.cpp b/TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.cpp index cf0ee7f749b..bd2222c96aa 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.cpp +++ b/TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.cpp @@ -167,7 +167,7 @@ order_offer (TAO_Constraint_Evaluator& evaluator, if (expr_type == TAO_FIRST || (expr_type == TAO_WITH - && ! static_cast<CORBA::Boolean>(pref_info.value_))) + && ! static_cast<CORBA::Boolean> (pref_info.value_))) this->offers_.enqueue_tail (pref_info); else this->offers_.enqueue_head (pref_info); diff --git a/TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.cpp b/TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.cpp index 2046dc94a48..87791a462fd 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.cpp +++ b/TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.cpp @@ -533,13 +533,13 @@ sequence_does_contain (CORBA::Any* sequence, case CORBA::tk_short: { CORBA::Long value = element; - return_value = ::TAO_find (*sequence, static_cast<CORBA::Short>(value)); + return_value = ::TAO_find (*sequence, static_cast<CORBA::Short> (value)); } break; case CORBA::tk_ushort: { CORBA::ULong value = element; - return_value = ::TAO_find (*sequence, static_cast<CORBA::UShort>(value)); + return_value = ::TAO_find (*sequence, static_cast<CORBA::UShort> (value)); } break; case CORBA::tk_long: @@ -557,7 +557,7 @@ sequence_does_contain (CORBA::Any* sequence, case CORBA::tk_float: { CORBA::Double value = element; - return_value = ::TAO_find (*sequence, static_cast<CORBA::Float>(value)); + return_value = ::TAO_find (*sequence, static_cast<CORBA::Float> (value)); } break; case CORBA::tk_double: diff --git a/TAO/orbsvcs/orbsvcs/Trader/Offer_Database.cpp b/TAO/orbsvcs/orbsvcs/Trader/Offer_Database.cpp index fcc3dba55fe..222c8f5cfa6 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Offer_Database.cpp +++ b/TAO/orbsvcs/orbsvcs/Trader/Offer_Database.cpp @@ -305,7 +305,7 @@ generate_offer_id (const char *service_type_name, CORBA::ULong id) // hold portions of id string. CosTrading::OfferId offer_id = - CORBA::string_alloc (static_cast<CORBA::ULong>(total_size)); + CORBA::string_alloc (static_cast<CORBA::ULong> (total_size)); char* return_value = 0; ACE_OS::sprintf (offer_id, "%016u%s", id, service_type_name); diff --git a/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.cpp b/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.cpp index 98616cc46a1..7ccc48ba2c9 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.cpp +++ b/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.cpp @@ -54,7 +54,7 @@ TAO_Query_Only_Offer_Iterator::max_left (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) ACE_THROW_SPEC((CORBA::SystemException, CosTrading::UnknownMaxLeft)) { - return static_cast<CORBA::ULong>(this->offers_.size ()); + return static_cast<CORBA::ULong> (this->offers_.size ()); } CORBA::Boolean @@ -65,7 +65,7 @@ TAO_Query_Only_Offer_Iterator::next_n (CORBA::ULong n, { offers = new CosTrading::OfferSeq; - CORBA::ULong sequence_size = static_cast<CORBA::ULong>(this->offers_.size ()); + CORBA::ULong sequence_size = static_cast<CORBA::ULong> (this->offers_.size ()); CORBA::ULong offers_in_sequence = (n < sequence_size) ? n : sequence_size; offers->length (offers_in_sequence); @@ -237,7 +237,7 @@ TAO_Offer_Id_Iterator::max_left (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) ACE_THROW_SPEC ((CORBA::SystemException, CosTrading::UnknownMaxLeft)) { - return static_cast<CORBA::ULong>(this->ids_.size ()); + return static_cast<CORBA::ULong> (this->ids_.size ()); } void @@ -266,7 +266,7 @@ TAO_Offer_Id_Iterator::next_n (CORBA::ULong n, ACE_THROW_SPEC ((CORBA::SystemException)) { // Calculate the number of Ids to be returned in this. - CORBA::ULong items_left = static_cast<CORBA::ULong>(this->ids_.size()); + CORBA::ULong items_left = static_cast<CORBA::ULong> (this->ids_.size()); int difference = items_left - n; CORBA::ULong returnable_items = (difference >= 0) ? n : items_left; CORBA::Boolean return_value = (CORBA::Boolean) (difference > 0); diff --git a/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators_T.cpp b/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators_T.cpp index cb7e6a850b3..2c3c2f1b5a9 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators_T.cpp +++ b/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators_T.cpp @@ -43,7 +43,7 @@ max_left (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) ACE_THROW_SPEC ((CORBA::SystemException, CosTrading::UnknownMaxLeft)) { - return static_cast<CORBA::ULong>(this->offer_ids_.size ()); + return static_cast<CORBA::ULong> (this->offer_ids_.size ()); } template <class MAP_LOCK_TYPE> CORBA::Boolean @@ -57,7 +57,7 @@ next_n (CORBA::ULong n, CORBA::ULong max_possible_offers_in_sequence = (n < this->offer_ids_.size ()) ? n : - static_cast<CORBA::ULong>(this->offer_ids_.size ()); + static_cast<CORBA::ULong> (this->offer_ids_.size ()); ACE_NEW_THROW_EX (offers, CosTrading::OfferSeq, diff --git a/TAO/orbsvcs/orbsvcs/Trader/Service_Type_Repository.cpp b/TAO/orbsvcs/orbsvcs/Trader/Service_Type_Repository.cpp index dbf0e06c817..689e7f4e6d8 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Service_Type_Repository.cpp +++ b/TAO/orbsvcs/orbsvcs/Trader/Service_Type_Repository.cpp @@ -200,7 +200,7 @@ list_types (const CosTradingRepos::ServiceTypeRepository::SpecifiedServiceTypes ACE_CHECK_RETURN (0); CORBA::ULong i = 0; - CORBA::ULong length = static_cast<CORBA::ULong>(this->type_map_.current_size ()); + CORBA::ULong length = static_cast<CORBA::ULong> (this->type_map_.current_size ()); CosTrading::ServiceTypeName *types = CosTradingRepos::ServiceTypeRepository::ServiceTypeNameSeq::allocbuf (length); @@ -405,7 +405,7 @@ fully_describe_type_i (const CosTradingRepos::ServiceTypeRepository::TypeStruct // Count the total number of properties. CORBA::ULong num_props = 0; - CORBA::ULong num_types = static_cast<CORBA::ULong>(service_type_queue.size ()); + CORBA::ULong num_types = static_cast<CORBA::ULong> (service_type_queue.size ()); TAO_String_Queue::ITERATOR iterator (service_type_queue); @@ -417,7 +417,7 @@ fully_describe_type_i (const CosTradingRepos::ServiceTypeRepository::TypeStruct Service_Type_Map::ENTRY *type_entry = 0; iterator.next (next_type_name); - TAO_String_Hash_Key hash_key (const_cast<const char *>(*next_type_name)); + TAO_String_Hash_Key hash_key (const_cast<const char *> (*next_type_name)); this->type_map_.find (hash_key, type_entry); @@ -448,7 +448,7 @@ fully_describe_type_i (const CosTradingRepos::ServiceTypeRepository::TypeStruct Service_Type_Map::ENTRY *type_entry = 0; iterator.next (next_type_name); - TAO_String_Hash_Key hash_key (const_cast<const char *>(*next_type_name)); + TAO_String_Hash_Key hash_key (const_cast<const char *> (*next_type_name)); this->type_map_.find (hash_key, type_entry); @@ -488,7 +488,7 @@ collect_inheritance_hierarchy (const CosTradingRepos::ServiceTypeRepository::Typ const char *type_name = type_struct.super_types[i]; - target.enqueue_tail (const_cast<char *>(type_name)); + target.enqueue_tail (const_cast<char *> (type_name)); this->collect_inheritance_hierarchy (next_type_struct, target); @@ -679,7 +679,7 @@ update_type_map (const char *name, /* CORBA::ULong pslength = props.length (); CosTradingRepos::ServiceTypeRepository::PropStructSeq* pstructs = - const_cast<CosTradingRepos::ServiceTypeRepository::PropStructSeq*>(&props); + const_cast<CosTradingRepos::ServiceTypeRepository::PropStructSeq*> (&props); CosTradingRepos::ServiceTypeRepository::PropStruct* psbuf = pstructs->get_buffer (1); type->type_struct_.props.replace (pslength, diff --git a/TAO/orbsvcs/orbsvcs/Trader/Trader.cpp b/TAO/orbsvcs/orbsvcs/Trader/Trader.cpp index a707b341600..de14b344a24 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Trader.cpp +++ b/TAO/orbsvcs/orbsvcs/Trader/Trader.cpp @@ -670,24 +670,24 @@ TAO_Trader_Factory::manufacture_trader (void) #endif /* ACE_HAS_THREADS */ TAO_TRADER* return_value = 0; - int components = static_cast<int>(TAO_Trader_Base::LOOKUP); + int components = static_cast<int> (TAO_Trader_Base::LOOKUP); if (this->conformance_ >= TAO_TRADER_SIMPLE) - components |= static_cast<int>(TAO_Trader_Base::REGISTER); + components |= static_cast<int> (TAO_Trader_Base::REGISTER); if (this->conformance_ >= TAO_TRADER_STANDALONE) - components |= static_cast<int>(TAO_Trader_Base::ADMIN); + components |= static_cast<int> (TAO_Trader_Base::ADMIN); if (this->conformance_ >= TAO_TRADER_LINKED) - components |= static_cast<int>(TAO_Trader_Base::LINK); + components |= static_cast<int> (TAO_Trader_Base::LINK); if (this->threadsafe_) ACE_NEW_RETURN (return_value, - MT_TRADER (static_cast<TAO_Trader_Base::Trader_Components>(components)), + MT_TRADER (static_cast<TAO_Trader_Base::Trader_Components> (components)), 0); else ACE_NEW_RETURN (return_value, - TRADER (static_cast<TAO_Trader_Base::Trader_Components>(components)), + TRADER (static_cast<TAO_Trader_Base::Trader_Components> (components)), 0); TAO_Import_Attributes_i &import_attributes = diff --git a/TAO/orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp b/TAO/orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp index b3b7fe85936..f4cdc7460c7 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp +++ b/TAO/orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp @@ -384,7 +384,7 @@ fill_receptacles (const char* /* type */, ACE_CHECK_RETURN (0); CORBA::ULong i = 0; - CORBA::ULong size = static_cast<CORBA::ULong>(pref_inter.num_offers ()); + CORBA::ULong size = static_cast<CORBA::ULong> (pref_inter.num_offers ()); CORBA::ULong offers_in_sequence = (how_many < size) ? how_many : size; CORBA::ULong offers_in_iterator = size - offers_in_sequence; @@ -957,11 +957,11 @@ _cxx_export (CORBA::Object_ptr reference, // No copying, no memory leaks. Violates the "in" parameter semantics // when this object is colocated with the client, however. // CosTrading::PropertySeq* hack_seq = - // const_cast<CosTrading::PropertySeq*>(&properties); + // const_cast<CosTrading::PropertySeq*> (&properties); // CosTrading::Property* pbuf = hack_seq->get_buffer (1); // CosTrading::PropertySeq* hack_seq = - // const_cast<CosTrading::PropertySeq*>(&properties); + // const_cast<CosTrading::PropertySeq*> (&properties); // CosTrading::Property* pbuf = hack_seq->get_buffer (0); // offer->properties.replace (plength, plength, pbuf, 0); // offer->properties._allocate_buffer (plength); @@ -1059,7 +1059,7 @@ modify (const char *id, TAO_Offer_Database<MAP_LOCK_TYPE> &offer_database = this->trader_.offer_database (); CosTrading::Offer* offer = offer_database. - lookup_offer (const_cast<CosTrading::OfferId>(id), type ACE_ENV_ARG_PARAMETER); + lookup_offer (const_cast<CosTrading::OfferId> (id), type ACE_ENV_ARG_PARAMETER); ACE_CHECK; if (offer != 0) @@ -1325,7 +1325,7 @@ TAO_Admin (TAO_Trader<TRADER_LOCK_TYPE,MAP_LOCK_TYPE> &trader) else { size_t time_value = ACE_OS::time (); - ACE_OS::srand (static_cast<u_int>(time_value)); + ACE_OS::srand (static_cast<u_int> (time_value)); this->stem_id_[0] = ACE_static_cast (CORBA::Octet, ACE_OS::rand () % 256); this->stem_id_[1] = ACE_static_cast (CORBA::Octet, ACE_OS::rand () % 256); @@ -1795,7 +1795,7 @@ TAO_Link<TRADER_LOCK_TYPE,MAP_LOCK_TYPE>::list_links (ACE_ENV_SINGLE_ARG_DECL_NO size_t size = this->links_.current_size (); CORBA::ULong i = 0; CosTrading::LinkName* link_seq = - CosTrading::LinkNameSeq::allocbuf (static_cast<CORBA::ULong>(size)); + CosTrading::LinkNameSeq::allocbuf (static_cast<CORBA::ULong> (size)); // Copy the link names into the buffer. for (ACE_TYPENAME Links::iterator links_iter (this->links_); diff --git a/TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.cpp b/TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.cpp index d4b11716ec0..a19e9fde8f3 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.cpp +++ b/TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.cpp @@ -156,7 +156,7 @@ TAO_Policy_Creator::fetch_next_policy (TAO_Policies::POLICY_TYPE pol_type) if (this->poltable_[i] == 0) { occupying_policy = - static_cast<TAO_Policies::POLICY_TYPE>(i); + static_cast<TAO_Policies::POLICY_TYPE> (i); break; } } @@ -1070,7 +1070,7 @@ TAO_Offer_Modifier (const char* type_name, for (i = 0; i < props_length; i++) { TAO_String_Hash_Key prop_name = - static_cast<const char*>(prop_seq[i].name); + static_cast<const char*> (prop_seq[i].name); this->props_.bind (prop_name, &prop_seq[i]); } } @@ -1102,7 +1102,7 @@ delete_properties (const CosTrading::PropertyNameSeq& deletes for (i = 0; i < length; i++) { - const char* dname = static_cast<const char*>(deletes[i]); + const char* dname = static_cast<const char*> (deletes[i]); if (! TAO_Trader_Base::is_valid_property_name (dname)) ACE_THROW (CosTrading::IllegalPropertyName (dname)); else @@ -1121,7 +1121,7 @@ delete_properties (const CosTrading::PropertyNameSeq& deletes for (i = 0; i < length; i++) { TAO_String_Hash_Key prop_name = - static_cast<const char *>(deletes[i]); + static_cast<const char *> (deletes[i]); this->props_.unbind (prop_name); } } @@ -1207,7 +1207,7 @@ TAO_Offer_Modifier::affect_change (const CosTrading::PropertySeq& modifies) TAO_String_Hash_Key prop_name = modifies[i].name.in (); CosTrading::Property* prop = - const_cast<CosTrading::Property*>(&modifies[i]); + const_cast<CosTrading::Property*> (&modifies[i]); if (this->props_.bind (prop_name, prop, entry) == 1) // We need to rebind here. entry->int_id_ = prop; @@ -1215,7 +1215,7 @@ TAO_Offer_Modifier::affect_change (const CosTrading::PropertySeq& modifies) CORBA::ULong num_modified = 0, original_length = this->offer_->properties.length (), - total_length = static_cast<CORBA::ULong>(this->props_.current_size ()); + total_length = static_cast<CORBA::ULong> (this->props_.current_size ()); // Scrap the existing property sequence and begin a new one CosTrading::PropertySeq prop_seq (total_length); @@ -1406,7 +1406,7 @@ CosTrading::PolicyNameSeq* TAO_Offer_Filter::limits_applied (void) { int i = 0; - CORBA::ULong size = static_cast<CORBA::ULong>(this->limits_.size ()); + CORBA::ULong size = static_cast<CORBA::ULong> (this->limits_.size ()); CosTrading::PolicyName* temp = CosTrading::PolicyNameSeq::allocbuf (size); @@ -1475,7 +1475,7 @@ TAO_Property_Filter::filter_offer (CosTrading::Offer* source, Prop_Queue prop_queue; CosTrading::PropertySeq& s_props = source->properties; CosTrading::PropertySeq& d_props = destination.properties; - CORBA::ULong length = static_cast<CORBA::ULong>(s_props.length ()), + CORBA::ULong length = static_cast<CORBA::ULong> (s_props.length ()), elem = 0; destination.reference = CORBA::Object::_duplicate (source->reference.in ()); @@ -1498,7 +1498,7 @@ TAO_Property_Filter::filter_offer (CosTrading::Offer* source, // Shove the matched properties into the destination property // sequence. - length = static_cast<CORBA::ULong>(prop_queue.size ()); + length = static_cast<CORBA::ULong> (prop_queue.size ()); d_props.length (length); for (Prop_Queue::ITERATOR prop_iter (prop_queue); ! prop_iter.done (); diff --git a/TAO/orbsvcs/orbsvcs/Trader/Trading_Loader.cpp b/TAO/orbsvcs/orbsvcs/Trader/Trading_Loader.cpp index 02574bac955..170b0f5d06f 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Trading_Loader.cpp +++ b/TAO/orbsvcs/orbsvcs/Trader/Trading_Loader.cpp @@ -56,7 +56,7 @@ TAO_Trading_Loader::TAO_Trading_Loader (void) ACE_OS::sprintf (trader_name, "%s_%ld", host_name, - static_cast<long>(ACE_OS::getpid ())); + static_cast<long> (ACE_OS::getpid ())); for (char *dot = 0; (dot = ACE_OS::strchr (trader_name, '.')) != 0; @@ -144,7 +144,7 @@ TAO_Trading_Loader::fini (void) ACE_DEBUG ((LM_DEBUG, "*** Removing link to %s.\n", - static_cast<const char *>(link_name_seq[i]))); + static_cast<const char *> (link_name_seq[i]))); our_link->remove_link (link_name_seq[i] ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; @@ -332,12 +332,12 @@ TAO_Trading_Loader::bootstrap_to_federation (ACE_ENV_SINGLE_ARG_DECL) i--) { // Avoid linking to ourselves. - if (ACE_OS::strcmp (static_cast<const char *>(link_name_seq[i]), + if (ACE_OS::strcmp (static_cast<const char *> (link_name_seq[i]), this->name_.in ()) != 0) { ACE_DEBUG ((LM_DEBUG, "*** Getting info for link %s.\n", - static_cast<const char *>(link_name_seq[i]))); + static_cast<const char *> (link_name_seq[i]))); CosTrading::Link::LinkInfo_var link_info = link_if->describe_link (link_name_seq[i] ACE_ENV_ARG_PARAMETER); diff --git a/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/CPU/client.cpp b/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/CPU/client.cpp index 6b7683b2ae2..b68487ba367 100644 --- a/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/CPU/client.cpp +++ b/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/CPU/client.cpp @@ -130,7 +130,7 @@ main (int argc, char *argv[]) const float usecs = 1.0 / rate * 1e6; - ACE_Time_Value tv (0, static_cast<const long>(usecs)); + ACE_Time_Value tv (0, static_cast<const long> (usecs)); // const timespec ts = tv; diff --git a/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/client.cpp b/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/client.cpp index f19e9d9e7cd..94221caa7bd 100644 --- a/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/client.cpp +++ b/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/client.cpp @@ -129,7 +129,7 @@ main (int argc, char *argv[]) // const float usecs = 1.0 / rate * 1e6; - // ACE_Time_Value tv (0, static_cast<const long>(usecs)); + // ACE_Time_Value tv (0, static_cast<const long> (usecs)); // const timespec ts = tv; diff --git a/TAO/orbsvcs/tests/AVStreams/Latency/ping.cpp b/TAO/orbsvcs/tests/AVStreams/Latency/ping.cpp index b25d5533195..f05a7b2221e 100644 --- a/TAO/orbsvcs/tests/AVStreams/Latency/ping.cpp +++ b/TAO/orbsvcs/tests/AVStreams/Latency/ping.cpp @@ -329,7 +329,7 @@ Pong_Send_Callback::send_response (ACE_hrtime_t stamp) ACE_hrtime_t buf[2]; - ACE_Message_Block mb (reinterpret_cast<char*>(buf), + ACE_Message_Block mb (reinterpret_cast<char*> (buf), sizeof(buf)); buf[0] = stamp; diff --git a/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.cpp b/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.cpp index 6bf4f212e4e..f691b066ae6 100644 --- a/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.cpp +++ b/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.cpp @@ -94,7 +94,7 @@ Driver::run (int argc, char* argv[]) if (pid != 0) { ACE_OS::fprintf (pid, "%ld\n", - static_cast<long>(ACE_OS::getpid ())); + static_cast<long> (ACE_OS::getpid ())); ACE_OS::fclose (pid); } } @@ -191,7 +191,7 @@ Driver::push_consumer (void* /* consumer_cookie */, ACE_ENV_ARG_DECL_NOT_USED) { // int ID = - // (reinterpret_cast<Test_Consumer**>(consumer_cookie) + // (reinterpret_cast<Test_Consumer**> (consumer_cookie) // - this->consumers_); // // ACE_DEBUG ((LM_DEBUG, "(%t) events received by consumer %d\n", ID)); diff --git a/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Supplier.cpp b/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Supplier.cpp index 51786ae99ef..d37de8a9a41 100644 --- a/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Supplier.cpp +++ b/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Supplier.cpp @@ -91,7 +91,7 @@ ECMS_Driver::run (int argc, char* argv[]) if (pid != 0) { ACE_OS::fprintf (pid, "%ld\n", - static_cast<long>(ACE_OS::getpid ())); + static_cast<long> (ACE_OS::getpid ())); ACE_OS::fclose (pid); } } @@ -251,7 +251,7 @@ ECMS_Driver::supplier_task (Test_Supplier *supplier, ACE_hrtime_t t = ACE_OS::gethrtime (); ORBSVCS_Time::hrtime_to_TimeT (event[0].header.creation_time, t); - if (i == static_cast<CORBA::Long>(this->event_count_) - 1) + if (i == static_cast<CORBA::Long> (this->event_count_) - 1) event[0].header.type = ACE_ES_EVENT_SHUTDOWN; else if (i % 2 == 0) event[0].header.type = this->event_a_; diff --git a/TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp b/TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp index 1f5c06fc106..8d4344eb8ee 100644 --- a/TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp +++ b/TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp @@ -131,7 +131,7 @@ ECM_Driver::run (int argc, char* argv[]) if (pid != 0) { ACE_OS::fprintf (pid, "%ld\n", - static_cast<long>(ACE_OS::getpid ())); + static_cast<long> (ACE_OS::getpid ())); ACE_OS::fclose (pid); } } @@ -443,7 +443,7 @@ ECM_Driver::parse_config_file (void) if (this->skip_blanks (cfg, "reading federation port number")) return -1; fscanf (cfg, "%d", &port); - CORBA::UShort mcast_port = static_cast<CORBA::UShort>(port); + CORBA::UShort mcast_port = static_cast<CORBA::UShort> (port); int ns, nc; if (this->skip_blanks (cfg, "reading supplier count")) diff --git a/TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.cpp b/TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.cpp index b1e4c6611c2..05fb541d728 100644 --- a/TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.cpp +++ b/TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.cpp @@ -234,7 +234,7 @@ Test_ECG::run (int argc, char* argv[]) if (pid != 0) { ACE_OS::fprintf (pid, "%ld\n", - static_cast<long>(ACE_OS::getpid ())); + static_cast<long> (ACE_OS::getpid ())); ACE_OS::fclose (pid); } } @@ -927,7 +927,7 @@ Test_ECG::push_consumer (void *consumer_cookie, ACE_ENV_ARG_DECL_NOT_USED) { int ID = - (reinterpret_cast<Test_Consumer**>(consumer_cookie) + (reinterpret_cast<Test_Consumer**> (consumer_cookie) - this->consumers_); // ACE_DEBUG ((LM_DEBUG, "(%P|%t) events received by consumer %d\n", ID)); diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer_Driver.cpp b/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer_Driver.cpp index d079c20cc86..609bf639245 100644 --- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer_Driver.cpp +++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer_Driver.cpp @@ -99,7 +99,7 @@ ECT_Consumer_Driver::run (int argc, char* argv[]) if (pid != 0) { ACE_OS::fprintf (pid, "%ld\n", - static_cast<long>(ACE_OS::getpid ())); + static_cast<long> (ACE_OS::getpid ())); ACE_OS::fclose (pid); } } @@ -225,7 +225,7 @@ ECT_Consumer_Driver::shutdown_consumer (void* ACE_ENV_ARG_DECL_NOT_USED) { // int ID = - // (reinterpret_cast<Test_Consumer**>(consumer_cookie) + // (reinterpret_cast<Test_Consumer**> (consumer_cookie) // - this->consumers_); // // ACE_DEBUG ((LM_DEBUG, "(%t) events received by consumer %d\n", ID)); diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier_Driver.cpp b/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier_Driver.cpp index b81cd2bf6ff..d2350ca9a04 100644 --- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier_Driver.cpp +++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier_Driver.cpp @@ -111,7 +111,7 @@ ECT_Supplier_Driver::run (int argc, char* argv[]) if (pid != 0) { ACE_OS::fprintf (pid, "%ld\n", - static_cast<long>(ACE_OS::getpid ())); + static_cast<long> (ACE_OS::getpid ())); ACE_OS::fclose (pid); } } diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp b/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp index 7f14abecb46..bfc6b680dbc 100644 --- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp +++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp @@ -148,7 +148,7 @@ ECT_Throughput::run (int argc, char* argv[]) if (pid != 0) { ACE_OS::fprintf (pid, "%ld\n", - static_cast<long>(ACE_OS::getpid ())); + static_cast<long> (ACE_OS::getpid ())); ACE_OS::fclose (pid); } } @@ -367,7 +367,7 @@ ECT_Throughput::shutdown_consumer (void* ACE_ENV_ARG_DECL_NOT_USED) { // int ID = - // (reinterpret_cast<Test_Consumer**>(consumer_cookie) + // (reinterpret_cast<Test_Consumer**> (consumer_cookie) // - this->consumers_); // // ACE_DEBUG ((LM_DEBUG, "(%t) events received by consumer %d\n", ID)); diff --git a/TAO/orbsvcs/tests/Event/lib/Driver.cpp b/TAO/orbsvcs/tests/Event/lib/Driver.cpp index 84b5375739a..4575366be4f 100644 --- a/TAO/orbsvcs/tests/Event/lib/Driver.cpp +++ b/TAO/orbsvcs/tests/Event/lib/Driver.cpp @@ -114,7 +114,7 @@ EC_Driver::run_init (int &argc, char* argv[] if (pid != 0) { ACE_OS::fprintf (pid, "%ld\n", - static_cast<long>(ACE_OS::getpid ())); + static_cast<long> (ACE_OS::getpid ())); ACE_OS::fclose (pid); } } @@ -1092,13 +1092,13 @@ EC_Driver::cleanup_ec (void) int EC_Driver::decode_consumer_cookie (void* cookie) const { - return static_cast<EC_Consumer**>(cookie) - this->consumers_; + return static_cast<EC_Consumer**> (cookie) - this->consumers_; } int EC_Driver::decode_supplier_cookie (void* cookie) const { - return static_cast<EC_Supplier**>(cookie) - this->suppliers_; + return static_cast<EC_Supplier**> (cookie) - this->suppliers_; } void diff --git a/TAO/orbsvcs/tests/FT_App/FT_Client.cpp b/TAO/orbsvcs/tests/FT_App/FT_Client.cpp index b02d481d39a..28ee993d21d 100644 --- a/TAO/orbsvcs/tests/FT_App/FT_Client.cpp +++ b/TAO/orbsvcs/tests/FT_App/FT_Client.cpp @@ -363,7 +363,7 @@ int FTClientMain::pass ( { ACE_OS::fprintf (stdout, "FT Client: ->die(%ld);\n", operand); } - this->replica_->die(static_cast<FT_TEST::TestReplica::Bane>(operand) ACE_ENV_ARG_PARAMETER); + this->replica_->die(static_cast<FT_TEST::TestReplica::Bane> (operand) ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (-1); echo = 0; break; @@ -429,7 +429,7 @@ int FTClientMain::pass ( } case 'v': { - this->verbose_ = static_cast<Verbosity>(operand); + this->verbose_ = static_cast<Verbosity> (operand); break; } case 'z': diff --git a/TAO/orbsvcs/tests/FT_App/FT_Creator.cpp b/TAO/orbsvcs/tests/FT_App/FT_Creator.cpp index 96ad01b3bd6..543c999a887 100644 --- a/TAO/orbsvcs/tests/FT_App/FT_Creator.cpp +++ b/TAO/orbsvcs/tests/FT_App/FT_Creator.cpp @@ -206,7 +206,7 @@ int FTAPP::FT_Creator::run (ACE_ENV_SINGLE_ARG_DECL) FILE * iogr_file = fopen (iogr_filename, "w"); if (iogr_file != 0) { - char const * siogr = static_cast<const char *>(iogr.in ()); + char const * siogr = static_cast<const char *> (iogr.in ()); fwrite (siogr, 1, strlen(siogr), iogr_file); fclose (iogr_file); } diff --git a/TAO/orbsvcs/tests/FT_App/FT_ReplicaFactory_i.cpp b/TAO/orbsvcs/tests/FT_App/FT_ReplicaFactory_i.cpp index 27b4ac4879a..5bc817e59d7 100644 --- a/TAO/orbsvcs/tests/FT_App/FT_ReplicaFactory_i.cpp +++ b/TAO/orbsvcs/tests/FT_App/FT_ReplicaFactory_i.cpp @@ -595,7 +595,7 @@ void FT_ReplicaFactory_i::remove_replica(CORBA::ULong id, FT_TestReplica_i * rep { ACE_ERROR (( LM_ERROR, "Remove replica %d mismatch.\n", - static_cast<int>(id) + static_cast<int> (id) )); } } @@ -603,8 +603,8 @@ void FT_ReplicaFactory_i::remove_replica(CORBA::ULong id, FT_TestReplica_i * rep { ACE_ERROR (( LM_ERROR, "Attempt to remove invalid replica %d. Limit %d.\n", - static_cast<int>(id), - static_cast<int>(this->replicas_.size()) + static_cast<int> (id), + static_cast<int> (this->replicas_.size()) )); } } @@ -681,7 +681,7 @@ CORBA::Object_ptr FT_ReplicaFactory_i::create_object ( (*factory_creation_id) <<= factory_id; ACE_ERROR ((LM_INFO, - "Created %s@%s#%d.\n", role, this->location_, static_cast<int>(factory_id) + "Created %s@%s#%d.\n", role, this->location_, static_cast<int> (factory_id) )); diff --git a/TAO/orbsvcs/tests/FT_App/FT_TestReplica_i.cpp b/TAO/orbsvcs/tests/FT_App/FT_TestReplica_i.cpp index 338bb917722..fd64c2fe496 100644 --- a/TAO/orbsvcs/tests/FT_App/FT_TestReplica_i.cpp +++ b/TAO/orbsvcs/tests/FT_App/FT_TestReplica_i.cpp @@ -43,7 +43,7 @@ namespace state[offset ] = ACE_static_cast (unsigned char, value >> 24); state[offset + 1] = ACE_static_cast (unsigned char, value >> 16); state[offset + 2] = ACE_static_cast (unsigned char, value >> 8); - state[offset + 3] = static_cast<unsigned char>(value ); + state[offset + 3] = static_cast<unsigned char> (value ); } /** @@ -421,7 +421,7 @@ int FT_TestReplica_i::idle (int & result ACE_ENV_ARG_DECL) "%s@%s#%d: Simulated fault WHILE_IDLE", this->name_.c_str(), this->factory_->location(), - static_cast<int>(this->factory_id_ ) + static_cast<int> (this->factory_id_ ) )); this->poa_->deactivate_object (this->object_id_.in () ACE_ENV_ARG_PARAMETER); diff --git a/TAO/orbsvcs/tests/FT_App/ReplicationManagerFaultConsumerAdapter.cpp b/TAO/orbsvcs/tests/FT_App/ReplicationManagerFaultConsumerAdapter.cpp index d6a2dd753f5..7b93fd77310 100755 --- a/TAO/orbsvcs/tests/FT_App/ReplicationManagerFaultConsumerAdapter.cpp +++ b/TAO/orbsvcs/tests/FT_App/ReplicationManagerFaultConsumerAdapter.cpp @@ -249,7 +249,7 @@ int ReplicationManagerFaultConsumerAdapter::init ( size_t replicaCount = this->replica_iors_.size(); ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Number of replicas being monitored: (%u)\n"), - static_cast<unsigned int>(replicaCount) + static_cast<unsigned int> (replicaCount) )); for (size_t nRep = 0; result == 0 && nRep < replicaCount; ++nRep) { diff --git a/TAO/orbsvcs/tests/FT_App/StubFaultConsumer.cpp b/TAO/orbsvcs/tests/FT_App/StubFaultConsumer.cpp index 4ef8d084d55..3712953a2aa 100644 --- a/TAO/orbsvcs/tests/FT_App/StubFaultConsumer.cpp +++ b/TAO/orbsvcs/tests/FT_App/StubFaultConsumer.cpp @@ -258,10 +258,10 @@ void StubFaultConsumer::push_structured_event( "FaultConsumer: Header EventType domain: %s\n" "FaultConsumer: Header EventType type: %s\n" "FaultConsumer: Header EventName: %s\n", - static_cast<unsigned int>(this->notifications_), - static_cast<const char *>(notification.header.fixed_header.event_type.domain_name), - static_cast<const char *>(notification.header.fixed_header.event_type.type_name), - static_cast<const char *>(notification.header.fixed_header.event_name) + static_cast<unsigned int> (this->notifications_), + static_cast<const char *> (notification.header.fixed_header.event_type.domain_name), + static_cast<const char *> (notification.header.fixed_header.event_type.type_name), + static_cast<const char *> (notification.header.fixed_header.event_name) )); const CosNotification::FilterableEventBody & filterable = notification.filterable_data; @@ -270,7 +270,7 @@ void StubFaultConsumer::push_structured_event( { const CosNotification::Property & property = filterable[nProp]; - const char * property_name = static_cast<const char *>(property.name); + const char * property_name = static_cast<const char *> (property.name); const char * value = "<unknown>"; if (property.value >>= value ) { diff --git a/TAO/orbsvcs/tests/FT_App/StubFaultNotifier.cpp b/TAO/orbsvcs/tests/FT_App/StubFaultNotifier.cpp index a90f6542f38..d59c37c9025 100644 --- a/TAO/orbsvcs/tests/FT_App/StubFaultNotifier.cpp +++ b/TAO/orbsvcs/tests/FT_App/StubFaultNotifier.cpp @@ -362,9 +362,9 @@ void StubFaultNotifier::push_structured_fault ( "FaultNotifier: Header EventType domain: %s\n" "FaultNotifier: Header EventType type: %s\n" "FaultNotifier: Header EventName: %s\n", - static_cast<const char *>(event.header.fixed_header.event_type.domain_name), - static_cast<const char *>(event.header.fixed_header.event_type.type_name), - static_cast<const char *>(event.header.fixed_header.event_name) + static_cast<const char *> (event.header.fixed_header.event_type.domain_name), + static_cast<const char *> (event.header.fixed_header.event_type.type_name), + static_cast<const char *> (event.header.fixed_header.event_name) )); const CosNotification::FilterableEventBody & filterable = event.filterable_data; @@ -374,7 +374,7 @@ void StubFaultNotifier::push_structured_fault ( const CosNotification::Property & property = filterable[nProp]; ACE_ERROR ((LM_ERROR, "FaultNotifier: Property Name: %s\n", - static_cast<const char *>(property.name) + static_cast<const char *> (property.name) )); //@@ we could stand to decode more--just for completeness } diff --git a/TAO/orbsvcs/tests/FT_App/TAO_Object_Group_Creator.cpp b/TAO/orbsvcs/tests/FT_App/TAO_Object_Group_Creator.cpp index ac2b80bc3c8..2ead6e7d91b 100644 --- a/TAO/orbsvcs/tests/FT_App/TAO_Object_Group_Creator.cpp +++ b/TAO/orbsvcs/tests/FT_App/TAO_Object_Group_Creator.cpp @@ -80,7 +80,7 @@ int TAO::Object_Group_Creator::init (CORBA::ORB_ptr orb ACE_ENV_ARG_DECL_NOT_USE CORBA::ULong count = this->detector_infos_->length (); ACE_DEBUG ( (LM_DEBUG, "%T %n (%P|%t)Object_Group_Creator: found %u factories for FaultDetectors\n", - static_cast<unsigned>(count) + static_cast<unsigned> (count) )); } else @@ -379,7 +379,7 @@ CORBA::Object_ptr TAO::Object_Group_Creator::create_group ( } else if (factory_creation_id >>= long_id) { - ulong_id = static_cast<CORBA::ULong>(long_id); + ulong_id = static_cast<CORBA::ULong> (long_id); } else { @@ -394,7 +394,7 @@ CORBA::Object_ptr TAO::Object_Group_Creator::create_group ( ACE_OS::snprintf (replica_ior_filename, sizeof (replica_ior_filename)-1, "%s_%s_%lu.ior", role, loc_name, - static_cast<unsigned long>(ulong_id)); + static_cast<unsigned long> (ulong_id)); replica_ior_filename[sizeof (replica_ior_filename)-1] = '\0'; ACE_ERROR ( (LM_INFO, diff --git a/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Server_Request_Interceptor.cpp b/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Server_Request_Interceptor.cpp index 95ba6a67ca2..e07dc2c309a 100644 --- a/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Server_Request_Interceptor.cpp +++ b/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Server_Request_Interceptor.cpp @@ -77,7 +77,7 @@ Server_Request_Interceptor::receive_request_service_contexts ( ACE_CHECK; // extract the group component - TAO_InputCDR cdr (reinterpret_cast<const char*>(svc->context_data.get_buffer ()), + TAO_InputCDR cdr (reinterpret_cast<const char*> (svc->context_data.get_buffer ()), svc->context_data.length ()); CORBA::Boolean byte_order; @@ -87,7 +87,7 @@ Server_Request_Interceptor::receive_request_service_contexts ( return; } - cdr.reset_byte_order (static_cast<int>(byte_order)); + cdr.reset_byte_order (static_cast<int> (byte_order)); FT::TagFTGroupTaggedComponent group_component; @@ -135,7 +135,7 @@ Server_Request_Interceptor::receive_request ( ACE_CHECK; // extract the group component - TAO_InputCDR cdr (reinterpret_cast<const char*>(svc->context_data.get_buffer ()), + TAO_InputCDR cdr (reinterpret_cast<const char*> (svc->context_data.get_buffer ()), svc->context_data.length ()); CORBA::Boolean byte_order; @@ -145,7 +145,7 @@ Server_Request_Interceptor::receive_request ( return; } - cdr.reset_byte_order (static_cast<int>(byte_order)); + cdr.reset_byte_order (static_cast<int> (byte_order)); FT::TagFTGroupTaggedComponent group_component; diff --git a/TAO/orbsvcs/tests/FtRtEvent/PushConsumer.cpp b/TAO/orbsvcs/tests/FtRtEvent/PushConsumer.cpp index bb03eff19a1..12e291c0f78 100644 --- a/TAO/orbsvcs/tests/FtRtEvent/PushConsumer.cpp +++ b/TAO/orbsvcs/tests/FtRtEvent/PushConsumer.cpp @@ -30,7 +30,7 @@ PushConsumer_impl::push (const RtecEventComm::EventSet & event TimeBase::TimeT elaps = time_val.sec () * 10000000 + time_val.usec ()* 10 - event[0].header.ec_send_time; event[0].data.any_value >>= x; - printf("Received data : %d, single trip time = %d usec\n", x, static_cast<int>(elaps/10)); + printf("Received data : %d, single trip time = %d usec\n", x, static_cast<int> (elaps/10)); } } diff --git a/TAO/orbsvcs/tests/HTIOP/AMI/Test_Output.cpp b/TAO/orbsvcs/tests/HTIOP/AMI/Test_Output.cpp index ad59a4520bb..dd30b2561f2 100644 --- a/TAO/orbsvcs/tests/HTIOP/AMI/Test_Output.cpp +++ b/TAO/orbsvcs/tests/HTIOP/AMI/Test_Output.cpp @@ -212,7 +212,7 @@ randomize (int array[], size_t size) size_t i; for (i = 0; i < size; i++) - array [i] = static_cast<int>(i); + array [i] = static_cast<int> (i); // See with a fixed number so that we can produce "repeatable" // random numbers. diff --git a/TAO/orbsvcs/tests/HTIOP/BiDirectional/Test_Output.cpp b/TAO/orbsvcs/tests/HTIOP/BiDirectional/Test_Output.cpp index ad59a4520bb..dd30b2561f2 100644 --- a/TAO/orbsvcs/tests/HTIOP/BiDirectional/Test_Output.cpp +++ b/TAO/orbsvcs/tests/HTIOP/BiDirectional/Test_Output.cpp @@ -212,7 +212,7 @@ randomize (int array[], size_t size) size_t i; for (i = 0; i < size; i++) - array [i] = static_cast<int>(i); + array [i] = static_cast<int> (i); // See with a fixed number so that we can produce "repeatable" // random numbers. diff --git a/TAO/orbsvcs/tests/HTIOP/Hello/Test_Output.cpp b/TAO/orbsvcs/tests/HTIOP/Hello/Test_Output.cpp index ad59a4520bb..dd30b2561f2 100644 --- a/TAO/orbsvcs/tests/HTIOP/Hello/Test_Output.cpp +++ b/TAO/orbsvcs/tests/HTIOP/Hello/Test_Output.cpp @@ -212,7 +212,7 @@ randomize (int array[], size_t size) size_t i; for (i = 0; i < size; i++) - array [i] = static_cast<int>(i); + array [i] = static_cast<int> (i); // See with a fixed number so that we can produce "repeatable" // random numbers. diff --git a/TAO/orbsvcs/tests/HTIOP/test_config.h b/TAO/orbsvcs/tests/HTIOP/test_config.h index c9d24c84e7d..52329a74561 100644 --- a/TAO/orbsvcs/tests/HTIOP/test_config.h +++ b/TAO/orbsvcs/tests/HTIOP/test_config.h @@ -292,7 +292,7 @@ randomize (int array[], size_t size) size_t i; for (i = 0; i < size; i++) - array [i] = static_cast<int>(i); + array [i] = static_cast<int> (i); // See with a fixed number so that we can produce "repeatable" // random numbers. diff --git a/TAO/orbsvcs/tests/ImplRepo/nestea_i.cpp b/TAO/orbsvcs/tests/ImplRepo/nestea_i.cpp index c7a57496f74..fd2b8d41330 100644 --- a/TAO/orbsvcs/tests/ImplRepo/nestea_i.cpp +++ b/TAO/orbsvcs/tests/ImplRepo/nestea_i.cpp @@ -59,7 +59,7 @@ Nestea_i::crush (CORBA::Long cans if (TAO_debug_level) ACE_DEBUG ((LM_DEBUG, "Nestea_i::crush %d cans\n", cans)); - if (static_cast<ACE_UINT32>(cans) > this->cans_) + if (static_cast<ACE_UINT32> (cans) > this->cans_) this->cans_ = 0; else this->cans_ -= cans; diff --git a/TAO/orbsvcs/tests/InterfaceRepo/IFR_Test/Admin_Client.cpp b/TAO/orbsvcs/tests/InterfaceRepo/IFR_Test/Admin_Client.cpp index 9074a1aafa8..a690008474e 100644 --- a/TAO/orbsvcs/tests/InterfaceRepo/IFR_Test/Admin_Client.cpp +++ b/TAO/orbsvcs/tests/InterfaceRepo/IFR_Test/Admin_Client.cpp @@ -3362,7 +3362,7 @@ Admin_Client::module_test (ACE_ENV_SINGLE_ARG_DECL) par_seq[i].type_def = CORBA::PrimitiveDef::_duplicate (p_long.in ()); par_seq[i].type = p_long->type (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK; - par_seq[i].mode = static_cast<CORBA::ParameterMode>(i); + par_seq[i].mode = static_cast<CORBA::ParameterMode> (i); con_seq[i] = contexts[i]; } diff --git a/TAO/orbsvcs/tests/Notify/Blocking/common.cpp b/TAO/orbsvcs/tests/Notify/Blocking/common.cpp index 6907535762a..03a201fe4ea 100644 --- a/TAO/orbsvcs/tests/Notify/Blocking/common.cpp +++ b/TAO/orbsvcs/tests/Notify/Blocking/common.cpp @@ -46,7 +46,7 @@ Any_String (const CORBA::Any& any) #else double temp = # if defined (ACE_CONFIG_WIN32_H) - ACE_static_cast(double, static_cast<CORBA::LongLong>(ull)); + ACE_static_cast(double, static_cast<CORBA::LongLong> (ull)); # else ull; # endif /* ACE_CONFIG_WIN32_H */ diff --git a/TAO/orbsvcs/tests/Notify/Discarding/common.cpp b/TAO/orbsvcs/tests/Notify/Discarding/common.cpp index 6907535762a..03a201fe4ea 100644 --- a/TAO/orbsvcs/tests/Notify/Discarding/common.cpp +++ b/TAO/orbsvcs/tests/Notify/Discarding/common.cpp @@ -46,7 +46,7 @@ Any_String (const CORBA::Any& any) #else double temp = # if defined (ACE_CONFIG_WIN32_H) - ACE_static_cast(double, static_cast<CORBA::LongLong>(ull)); + ACE_static_cast(double, static_cast<CORBA::LongLong> (ull)); # else ull; # endif /* ACE_CONFIG_WIN32_H */ diff --git a/TAO/orbsvcs/tests/Notify/Ordering/Notify_Sequence_Push_Consumer.cpp b/TAO/orbsvcs/tests/Notify/Ordering/Notify_Sequence_Push_Consumer.cpp index 4dc205ade55..fa8e6915799 100644 --- a/TAO/orbsvcs/tests/Notify/Ordering/Notify_Sequence_Push_Consumer.cpp +++ b/TAO/orbsvcs/tests/Notify/Ordering/Notify_Sequence_Push_Consumer.cpp @@ -101,14 +101,14 @@ Notify_Sequence_Push_Consumer::push_structured_events ( else { if (current > - static_cast<CORBA::Short>(previous)) + static_cast<CORBA::Short> (previous)) { this->done_ = 1; ACE_ERROR ((LM_ERROR, ACE_TEXT ("ERROR: Priority Ordering failed\n"))); } } - previous = static_cast<long>(current); + previous = static_cast<long> (current); } } else if (this->order_policy_ == CosNotification::DeadlineOrder) @@ -125,7 +125,7 @@ Notify_Sequence_Push_Consumer::push_structured_events ( else { if (current < - static_cast<TimeBase::TimeT>(previous)) + static_cast<TimeBase::TimeT> (previous)) { this->done_ = 1; ACE_ERROR ((LM_ERROR, @@ -133,7 +133,7 @@ Notify_Sequence_Push_Consumer::push_structured_events ( } } # if defined (ACE_CONFIG_WIN32_H) - previous = static_cast<long>(current); + previous = static_cast<long> (current); # else // Convert ACE_ULong_Long to 32-bit integer previous = (current / 1); @@ -164,14 +164,14 @@ Notify_Sequence_Push_Consumer::push_structured_events ( else { if (current < - static_cast<CORBA::ULong>(previous)) + static_cast<CORBA::ULong> (previous)) { this->done_ = 1; ACE_ERROR ((LM_ERROR, ACE_TEXT ("ERROR: FIFO Ordering failed.\n"))); } } - previous = static_cast<long>(current); + previous = static_cast<long> (current); } } } diff --git a/TAO/orbsvcs/tests/Notify/Ordering/Notify_Structured_Push_Consumer.cpp b/TAO/orbsvcs/tests/Notify/Ordering/Notify_Structured_Push_Consumer.cpp index 53c894b92b0..db220185da7 100644 --- a/TAO/orbsvcs/tests/Notify/Ordering/Notify_Structured_Push_Consumer.cpp +++ b/TAO/orbsvcs/tests/Notify/Ordering/Notify_Structured_Push_Consumer.cpp @@ -99,14 +99,14 @@ Notify_Structured_Push_Consumer::push_structured_event ( else { if (current > - static_cast<CORBA::Short>(previous)) + static_cast<CORBA::Short> (previous)) { this->done_ = 1; ACE_ERROR ((LM_ERROR, ACE_TEXT ("ERROR: Priority Ordering failed.\n"))); } } - previous = static_cast<long>(current); + previous = static_cast<long> (current); } } else if (this->order_policy_ == CosNotification::DeadlineOrder) @@ -123,7 +123,7 @@ Notify_Structured_Push_Consumer::push_structured_event ( else { if (current < - static_cast<TimeBase::TimeT>(previous)) + static_cast<TimeBase::TimeT> (previous)) { this->done_ = 1; ACE_ERROR ((LM_ERROR, @@ -131,7 +131,7 @@ Notify_Structured_Push_Consumer::push_structured_event ( } } # if defined (ACE_CONFIG_WIN32_H) - previous = static_cast<long>(current); + previous = static_cast<long> (current); # else // Convert ACE_ULong_Long to 32-bit integer previous = (current / 1); @@ -162,14 +162,14 @@ Notify_Structured_Push_Consumer::push_structured_event ( else { if (current < - static_cast<CORBA::ULong>(previous)) + static_cast<CORBA::ULong> (previous)) { this->done_ = 1; ACE_ERROR ((LM_ERROR, ACE_TEXT ("ERROR: FIFO Ordering failed.\n"))); } } - previous = static_cast<long>(current); + previous = static_cast<long> (current); } } } diff --git a/TAO/orbsvcs/tests/Notify/Ordering/common.cpp b/TAO/orbsvcs/tests/Notify/Ordering/common.cpp index 6907535762a..03a201fe4ea 100644 --- a/TAO/orbsvcs/tests/Notify/Ordering/common.cpp +++ b/TAO/orbsvcs/tests/Notify/Ordering/common.cpp @@ -46,7 +46,7 @@ Any_String (const CORBA::Any& any) #else double temp = # if defined (ACE_CONFIG_WIN32_H) - ACE_static_cast(double, static_cast<CORBA::LongLong>(ull)); + ACE_static_cast(double, static_cast<CORBA::LongLong> (ull)); # else ull; # endif /* ACE_CONFIG_WIN32_H */ diff --git a/TAO/orbsvcs/tests/Notify/PluggableTopology/main.cpp b/TAO/orbsvcs/tests/Notify/PluggableTopology/main.cpp index df6fb7158a2..3de985a3ad4 100644 --- a/TAO/orbsvcs/tests/Notify/PluggableTopology/main.cpp +++ b/TAO/orbsvcs/tests/Notify/PluggableTopology/main.cpp @@ -94,7 +94,7 @@ int main(int, char**) CNCA::ChannelID ecid; CNCA::EventChannel_var ec = ecf->create_channel(qos, admin, ecid); - printf("Created channel id=\"%ld\"\n", static_cast<long>(ecid)); + printf("Created channel id=\"%ld\"\n", static_cast<long> (ecid)); tearDown(); diff --git a/TAO/orbsvcs/tests/Notify/Reconnecting/Consumer.cpp b/TAO/orbsvcs/tests/Notify/Reconnecting/Consumer.cpp index ce464e1ec1a..4d1e3a8888c 100644 --- a/TAO/orbsvcs/tests/Notify/Reconnecting/Consumer.cpp +++ b/TAO/orbsvcs/tests/Notify/Reconnecting/Consumer.cpp @@ -90,7 +90,7 @@ StructuredPushConsumer_i::check_serial_number (CORBA::ULong seq) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Structured Consumer received event %d.\n"), - static_cast<int>(seq) + static_cast<int> (seq) )); } } @@ -102,7 +102,7 @@ StructuredPushConsumer_i::check_serial_number (CORBA::ULong seq) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Structured Consumer received correct event %d.\n"), - static_cast<int>(seq) + static_cast<int> (seq) )); } } @@ -112,8 +112,8 @@ StructuredPushConsumer_i::check_serial_number (CORBA::ULong seq) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Structured Consumer: service received event %d; Notify discarded %d*.\n"), - static_cast<int>(seq), - static_cast<int>(this->serial_number_) + static_cast<int> (seq), + static_cast<int> (this->serial_number_) )); } this->received_ += seq - this->serial_number_; @@ -123,8 +123,8 @@ StructuredPushConsumer_i::check_serial_number (CORBA::ULong seq) this->problem_ = true; ACE_DEBUG ((LM_ERROR, ACE_TEXT ("(%P|%t) Structured Consumer received notifications out of sequence. Expecting %d received %d.\n"), - static_cast<int>(this->serial_number_), - static_cast<int>(seq) + static_cast<int> (this->serial_number_), + static_cast<int> (seq) )); } this->serial_number_ = seq + 1; @@ -156,7 +156,7 @@ StructuredPushConsumer_i::push_structured_event ( this->may_discard_ = 1; ACE_DEBUG ((LM_ERROR, ACE_TEXT ("(%P|%t) Structured Consumer failing at event # %d.\n"), - static_cast<int>(this->received_) + static_cast<int> (this->received_) )); ACE_THROW (CORBA::UNKNOWN()); ACE_CHECK; @@ -185,7 +185,7 @@ StructuredPushConsumer_i::push_structured_event ( this->problem_ = true; ACE_DEBUG ((LM_ERROR, ACE_TEXT ("(%P|%t) Structured Consumer received wrong filterable data name.%s. Expecting serial_number\n"), - static_cast<const char *>(notification.filterable_data[0].name) + static_cast<const char *> (notification.filterable_data[0].name) )); } } @@ -313,7 +313,7 @@ SequencePushConsumer_i::check_serial_number (CORBA::ULong seq) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Sequence Consumer received event %d.\n"), - static_cast<int>(seq) + static_cast<int> (seq) )); } } @@ -325,7 +325,7 @@ SequencePushConsumer_i::check_serial_number (CORBA::ULong seq) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Sequence Consumer received correct event %d.\n"), - static_cast<int>(seq) + static_cast<int> (seq) )); } } @@ -335,8 +335,8 @@ SequencePushConsumer_i::check_serial_number (CORBA::ULong seq) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Sequence Consumer: service received event %d; Notify discarded %d*.\n"), - static_cast<int>(seq), - static_cast<int>(this->serial_number_) + static_cast<int> (seq), + static_cast<int> (this->serial_number_) )); } this->received_ += seq - this->serial_number_; @@ -346,8 +346,8 @@ SequencePushConsumer_i::check_serial_number (CORBA::ULong seq) this->problem_ = true; ACE_DEBUG ((LM_ERROR, ACE_TEXT ("(%P|%t) Sequence Consumer received notifications out of sequence. Expecting %d received %d.\n"), - static_cast<int>(this->serial_number_), - static_cast<int>(seq) + static_cast<int> (this->serial_number_), + static_cast<int> (seq) )); } this->serial_number_ = seq + 1; @@ -368,7 +368,7 @@ SequencePushConsumer_i::push_structured_events ( { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Sequence Consumer received batch of %d events.\n"), - static_cast<int>(batch_size) + static_cast<int> (batch_size) )); } for (size_t nevent = 0; nevent < batch_size; ++nevent) @@ -389,7 +389,7 @@ SequencePushConsumer_i::push_structured_events ( this->may_discard_ = batch_size; ACE_DEBUG ((LM_ERROR, ACE_TEXT ("(%P|%t) Sequence Consumer failing at event # %d. Expecting %d duplicates.\n"), - static_cast<int>(this->received_), + static_cast<int> (this->received_), ACE_static_cast (int, nevent + 1) )); ACE_THROW (CORBA::UNKNOWN()); @@ -420,7 +420,7 @@ SequencePushConsumer_i::push_structured_events ( this->problem_ = true; ACE_DEBUG ((LM_ERROR, ACE_TEXT ("(%P|%t) Sequence Consumer received wrong filterable data name.%s. Expecting serial_number\n"), - static_cast<const char *>(notification.filterable_data[0].name) + static_cast<const char *> (notification.filterable_data[0].name) )); } } @@ -536,7 +536,7 @@ AnyPushConsumer_i::check_serial_number (CORBA::ULong seq) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Any Consumer received event %d.\n"), - static_cast<int>(seq) + static_cast<int> (seq) )); } } @@ -548,7 +548,7 @@ AnyPushConsumer_i::check_serial_number (CORBA::ULong seq) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Any Consumer received correct event %d.\n"), - static_cast<int>(seq) + static_cast<int> (seq) )); } } @@ -558,8 +558,8 @@ AnyPushConsumer_i::check_serial_number (CORBA::ULong seq) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Any Consumer: service received event %d; Notify discarded %d*.\n"), - static_cast<int>(seq), - static_cast<int>(this->serial_number_) + static_cast<int> (seq), + static_cast<int> (this->serial_number_) )); } this->received_ += seq - this->serial_number_; @@ -569,8 +569,8 @@ AnyPushConsumer_i::check_serial_number (CORBA::ULong seq) this->problem_ = true; ACE_DEBUG ((LM_ERROR, ACE_TEXT ("(%P|%t) Any Consumer received notifications out of sequence. Expecting %d received %d.\n"), - static_cast<int>(this->serial_number_), - static_cast<int>(seq) + static_cast<int> (this->serial_number_), + static_cast<int> (seq) )); } this->serial_number_ = seq + 1; @@ -602,7 +602,7 @@ AnyPushConsumer_i::push ( this->may_discard_ = 1; ACE_DEBUG ((LM_ERROR, ACE_TEXT ("(%P|%t) Any Consumer failing at event # %d.\n"), - static_cast<int>(this->received_) + static_cast<int> (this->received_) )); ACE_THROW (CORBA::UNKNOWN()); ACE_CHECK; @@ -641,7 +641,7 @@ AnyPushConsumer_i::push ( this->problem_ = true; ACE_DEBUG ((LM_ERROR, ACE_TEXT ("(%P|%t) Any Consumer received wrong filterable data name in structured event: %s. Expecting serial_number\n"), - static_cast<const char *>(notification->filterable_data[0].name) + static_cast<const char *> (notification->filterable_data[0].name) )); } } @@ -979,8 +979,8 @@ int Consumer_Main::init (int argc, char *argv[] ACE_ENV_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P,%t) Consumer: Listening for %d structured events. Failing every %d events.\n"), - static_cast<int>(this->expect_), - static_cast<int>(this->fail_) + static_cast<int> (this->expect_), + static_cast<int> (this->fail_) )); } this->structured_push_consumer_.set_expectations (this->expect_, this->fail_, this->serial_number_, this->verbose_); @@ -994,8 +994,8 @@ int Consumer_Main::init (int argc, char *argv[] ACE_ENV_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P,%t) Consumer: Listening for %d sequence events. Failing every %d events.\n"), - static_cast<int>(this->expect_), - static_cast<int>(this->fail_) + static_cast<int> (this->expect_), + static_cast<int> (this->fail_) )); } this->sequence_push_consumer_.set_expectations (this->expect_, this->fail_, this->serial_number_, this->verbose_); @@ -1009,8 +1009,8 @@ int Consumer_Main::init (int argc, char *argv[] ACE_ENV_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P,%t) Consumer: Listening for %d CORBA::Any events. Failing every %d events.\n"), - static_cast<int>(this->expect_), - static_cast<int>(this->fail_) + static_cast<int> (this->expect_), + static_cast<int> (this->fail_) )); } this->any_push_consumer_.set_expectations (this->expect_, this->fail_, this->serial_number_, this->verbose_); @@ -1045,7 +1045,7 @@ Consumer_Main::save_ids() if (idf != 0) { int endflag = 12345; - int imode = static_cast<int>(this->mode_); + int imode = static_cast<int> (this->mode_); ACE_OS::fprintf (idf, "%d,%d,%d,%d,%d,%d,%d,\n", static_cast<int> (imode), @@ -1253,7 +1253,7 @@ Consumer_Main::init_event_channel (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Consumer: Reconnect to event channel %d\n"), - static_cast<int>(this->ec_id_) + static_cast<int> (this->ec_id_) )); } } @@ -1289,7 +1289,7 @@ Consumer_Main::init_event_channel (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Consumer: Connect to Existing event channel %d\n"), - static_cast<int>(this->ec_id_) + static_cast<int> (this->ec_id_) )); } // kill the channel filename so we don't overwrite the file @@ -1415,7 +1415,7 @@ Consumer_Main::init_consumer_admin (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Consumer: Reconnect to consumer admin %d\n"), - static_cast<int>(this->sa_id_) + static_cast<int> (this->sa_id_) )); } } @@ -1482,7 +1482,7 @@ Consumer_Main::init_consumer_admin (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Consumer: Create new consumer admin %d\n"), - static_cast<int>(this->sa_id_) + static_cast<int> (this->sa_id_) )); } } @@ -1491,7 +1491,7 @@ Consumer_Main::init_consumer_admin (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Consumer: connect to consumer admin failed %d\n"), - static_cast<int>(this->sa_id_) + static_cast<int> (this->sa_id_) )); } } @@ -1514,7 +1514,7 @@ Consumer_Main::init_structured_proxy_supplier (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Consumer: Reconnect to proxy supplier %d\n"), - static_cast<int>(this->structured_proxy_id_) + static_cast<int> (this->structured_proxy_id_) )); } } @@ -1536,7 +1536,7 @@ Consumer_Main::init_structured_proxy_supplier (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Consumer: Create new structured proxy %d\n"), - static_cast<int>(this->structured_proxy_id_) + static_cast<int> (this->structured_proxy_id_) )); } } @@ -1602,7 +1602,7 @@ Consumer_Main::init_sequence_proxy_supplier (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Consumer: Reconnect to proxy %d\n"), - static_cast<int>(this->sequence_proxy_id_) + static_cast<int> (this->sequence_proxy_id_) )); } } @@ -1632,7 +1632,7 @@ Consumer_Main::init_sequence_proxy_supplier (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Consumer: Create new sequence proxy %d\n"), - static_cast<int>(this->sequence_proxy_id_) + static_cast<int> (this->sequence_proxy_id_) )); } } @@ -1644,7 +1644,7 @@ Consumer_Main::init_sequence_proxy_supplier (ACE_ENV_SINGLE_ARG_DECL) { ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P|%t) Consumer: Received wrong type of push supplier proxy %d\n"), - static_cast<int>(this->sequence_proxy_id_) + static_cast<int> (this->sequence_proxy_id_) )); ACE_THROW (CORBA::BAD_PARAM()); @@ -1719,14 +1719,14 @@ Consumer_Main::init_any_proxy_supplier (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Consumer: Reconnect to proxy %d\n"), - static_cast<int>(this->any_proxy_id_) + static_cast<int> (this->any_proxy_id_) )); } else { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Consumer: Get proxy supplier %d returned nil\n"), - static_cast<int>(this->any_proxy_id_) + static_cast<int> (this->any_proxy_id_) )); } } @@ -1734,7 +1734,7 @@ Consumer_Main::init_any_proxy_supplier (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Consumer: Get proxy supplier %d threw exception\n"), - static_cast<int>(this->any_proxy_id_) + static_cast<int> (this->any_proxy_id_) )); ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, ACE_TEXT ("To wit:")); } @@ -1742,7 +1742,7 @@ Consumer_Main::init_any_proxy_supplier (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Consumer: Get proxy supplier %d threw exception\n"), - static_cast<int>(this->any_proxy_id_) + static_cast<int> (this->any_proxy_id_) )); } ACE_ENDTRY; @@ -1761,7 +1761,7 @@ Consumer_Main::init_any_proxy_supplier (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Consumer: Create new Any proxy %d\n"), - static_cast<int>(this->any_proxy_id_) + static_cast<int> (this->any_proxy_id_) )); } } @@ -1773,7 +1773,7 @@ Consumer_Main::init_any_proxy_supplier (ACE_ENV_SINGLE_ARG_DECL) { ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P|%t) Consumer: Received wrong type of push supplier proxy %d\n"), - static_cast<int>(this->any_proxy_id_) + static_cast<int> (this->any_proxy_id_) )); ACE_THROW (CORBA::BAD_PARAM()); } @@ -1836,7 +1836,7 @@ int Consumer_Main::fini (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) destroy admin %d\n"), - static_cast<int>(this->sa_id_) + static_cast<int> (this->sa_id_) )); } this->sa_->destroy(); diff --git a/TAO/orbsvcs/tests/Notify/Reconnecting/Supplier.cpp b/TAO/orbsvcs/tests/Notify/Reconnecting/Supplier.cpp index b088d328e51..ed7dd86dabf 100644 --- a/TAO/orbsvcs/tests/Notify/Reconnecting/Supplier.cpp +++ b/TAO/orbsvcs/tests/Notify/Reconnecting/Supplier.cpp @@ -449,7 +449,7 @@ Supplier_Main::save_ids() if (idf != 0) { int endflag = 12345; - int imode = static_cast<int>(this->mode_); + int imode = static_cast<int> (this->mode_); ACE_OS::fprintf (idf, "%d,%d,%d,%d,%d,%d,%d,\n", static_cast<int> (imode), @@ -643,7 +643,7 @@ Supplier_Main::init_event_channel (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Supplier: Reconnect to event channel %d\n"), - static_cast<int>(this->ec_id_) + static_cast<int> (this->ec_id_) )); } } @@ -679,7 +679,7 @@ Supplier_Main::init_event_channel (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Supplier: Connect to Existing event channel %d\n"), - static_cast<int>(this->ec_id_) + static_cast<int> (this->ec_id_) )); } // kill the channel filename so we don't overwrite the file @@ -777,7 +777,7 @@ Supplier_Main::init_supplier_admin (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Supplier: Reconnect to supplier admin %d\n"), - static_cast<int>(this->sa_id_) + static_cast<int> (this->sa_id_) )); } } @@ -826,7 +826,7 @@ Supplier_Main::init_supplier_admin (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Supplier: Create new supplier admin %d\n"), - static_cast<int>(this->sa_id_) + static_cast<int> (this->sa_id_) )); } } @@ -851,7 +851,7 @@ Supplier_Main::init_structured_proxy_consumer (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Supplier: Reconnect to proxy supplier %d\n"), - static_cast<int>(this->structured_proxy_id_) + static_cast<int> (this->structured_proxy_id_) )); } } @@ -873,7 +873,7 @@ Supplier_Main::init_structured_proxy_consumer (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Supplier: Create new proxy %d\n"), - static_cast<int>(this->structured_proxy_id_) + static_cast<int> (this->structured_proxy_id_) )); } } @@ -907,7 +907,7 @@ Supplier_Main::init_structured_proxy_consumer (ACE_ENV_SINGLE_ARG_DECL) { ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P|%t) Supplier: Received wrong type of push consumer proxy %d\n"), - static_cast<int>(this->structured_proxy_id_) + static_cast<int> (this->structured_proxy_id_) )); ACE_THROW (CORBA::UNKNOWN()); @@ -937,7 +937,7 @@ Supplier_Main::init_sequence_proxy_consumer (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Supplier: Reconnect to proxy %d\n"), - static_cast<int>(this->sequence_proxy_id_) + static_cast<int> (this->sequence_proxy_id_) )); } } @@ -959,7 +959,7 @@ Supplier_Main::init_sequence_proxy_consumer (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Supplier: Create new proxy %d\n"), - static_cast<int>(this->sequence_proxy_id_) + static_cast<int> (this->sequence_proxy_id_) )); } } @@ -971,7 +971,7 @@ Supplier_Main::init_sequence_proxy_consumer (ACE_ENV_SINGLE_ARG_DECL) { ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P|%t) Supplier: Received wrong type of push consumer proxy %d\n"), - static_cast<int>(this->sequence_proxy_id_) + static_cast<int> (this->sequence_proxy_id_) )); ACE_THROW (CORBA::UNKNOWN()); } @@ -995,7 +995,7 @@ Supplier_Main::init_sequence_proxy_consumer (ACE_ENV_SINGLE_ARG_DECL) { ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P|%t) Supplier: Received wrong type of push consumer proxy %d\n"), - static_cast<int>(this->sequence_proxy_id_) + static_cast<int> (this->sequence_proxy_id_) )); ACE_THROW (CORBA::UNKNOWN()); } @@ -1024,7 +1024,7 @@ Supplier_Main::init_any_proxy_consumer (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Supplier: Reconnect to proxy %d\n"), - static_cast<int>(this->any_proxy_id_) + static_cast<int> (this->any_proxy_id_) )); } } @@ -1046,7 +1046,7 @@ Supplier_Main::init_any_proxy_consumer (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Supplier: Create new proxy %d\n"), - static_cast<int>(this->any_proxy_id_) + static_cast<int> (this->any_proxy_id_) )); } } @@ -1058,7 +1058,7 @@ Supplier_Main::init_any_proxy_consumer (ACE_ENV_SINGLE_ARG_DECL) { ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P|%t) Supplier: Received wrong type of push consumer proxy %d\n"), - static_cast<int>(this->any_proxy_id_) + static_cast<int> (this->any_proxy_id_) )); ACE_THROW (CORBA::UNKNOWN()); } @@ -1082,7 +1082,7 @@ Supplier_Main::init_any_proxy_consumer (ACE_ENV_SINGLE_ARG_DECL) { ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P|%t) Supplier: Received wrong type of push consumer proxy %d\n"), - static_cast<int>(this->sequence_proxy_id_) + static_cast<int> (this->sequence_proxy_id_) )); ACE_THROW (CORBA::UNKNOWN()); } @@ -1137,7 +1137,7 @@ int Supplier_Main::fini (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) destroy admin %d\n"), - static_cast<int>(this->sa_id_) + static_cast<int> (this->sa_id_) )); } this->sa_->destroy(); @@ -1186,7 +1186,7 @@ void Supplier_Main::send_structured_event (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P,%t) Supplier push structured event %d\n"), - static_cast<int>(serial_number_) + static_cast<int> (serial_number_) )); } @@ -1236,7 +1236,7 @@ void Supplier_Main::send_sequence_event (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P,%t) Supplier push sequence events %d\n"), - static_cast<int>(this->serial_number_) + static_cast<int> (this->serial_number_) )); } @@ -1254,7 +1254,7 @@ void Supplier_Main::send_any_event (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P,%t) Supplier push any event %d\n"), - static_cast<int>(this->serial_number_) + static_cast<int> (this->serial_number_) )); } @@ -1284,7 +1284,7 @@ int Supplier_Main::run (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Supplier paused after %d events\n"), - static_cast<int>(this->pause_) + static_cast<int> (this->pause_) )); } reconnections = this->reconnection_callback_.reconnect_count (); @@ -1305,7 +1305,7 @@ int Supplier_Main::run (ACE_ENV_SINGLE_ARG_DECL) { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Supplier no longer paused. Next s# %d\n"), - static_cast<int>(this->serial_number_) + static_cast<int> (this->serial_number_) )); } paused = false; diff --git a/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/common.cpp b/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/common.cpp index 6907535762a..03a201fe4ea 100644 --- a/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/common.cpp +++ b/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/common.cpp @@ -46,7 +46,7 @@ Any_String (const CORBA::Any& any) #else double temp = # if defined (ACE_CONFIG_WIN32_H) - ACE_static_cast(double, static_cast<CORBA::LongLong>(ull)); + ACE_static_cast(double, static_cast<CORBA::LongLong> (ull)); # else ull; # endif /* ACE_CONFIG_WIN32_H */ diff --git a/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/common.cpp b/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/common.cpp index 6907535762a..03a201fe4ea 100644 --- a/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/common.cpp +++ b/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/common.cpp @@ -46,7 +46,7 @@ Any_String (const CORBA::Any& any) #else double temp = # if defined (ACE_CONFIG_WIN32_H) - ACE_static_cast(double, static_cast<CORBA::LongLong>(ull)); + ACE_static_cast(double, static_cast<CORBA::LongLong> (ull)); # else ull; # endif /* ACE_CONFIG_WIN32_H */ diff --git a/TAO/orbsvcs/tests/Notify/Structured_Multi_Filter/Notify_Push_Consumer.cpp b/TAO/orbsvcs/tests/Notify/Structured_Multi_Filter/Notify_Push_Consumer.cpp index 9d4752adb73..b70815141d3 100644 --- a/TAO/orbsvcs/tests/Notify/Structured_Multi_Filter/Notify_Push_Consumer.cpp +++ b/TAO/orbsvcs/tests/Notify/Structured_Multi_Filter/Notify_Push_Consumer.cpp @@ -122,7 +122,7 @@ Any_String (const CORBA::Any& any) #else double temp = # if defined (ACE_CONFIG_WIN32_H) - ACE_static_cast(double, static_cast<CORBA::LongLong>(ull)); + ACE_static_cast(double, static_cast<CORBA::LongLong> (ull)); # else ull; # endif /* ACE_CONFIG_WIN32_H */ diff --git a/TAO/orbsvcs/tests/Notify/performance-tests/Filter/common.cpp b/TAO/orbsvcs/tests/Notify/performance-tests/Filter/common.cpp index 6907535762a..03a201fe4ea 100644 --- a/TAO/orbsvcs/tests/Notify/performance-tests/Filter/common.cpp +++ b/TAO/orbsvcs/tests/Notify/performance-tests/Filter/common.cpp @@ -46,7 +46,7 @@ Any_String (const CORBA::Any& any) #else double temp = # if defined (ACE_CONFIG_WIN32_H) - ACE_static_cast(double, static_cast<CORBA::LongLong>(ull)); + ACE_static_cast(double, static_cast<CORBA::LongLong> (ull)); # else ull; # endif /* ACE_CONFIG_WIN32_H */ diff --git a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.cpp b/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.cpp index e978d7e1d8d..d4a8576c6cd 100644 --- a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.cpp +++ b/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.cpp @@ -393,15 +393,15 @@ main (int argc, char *argv[]) // initialize the RT_Info ACE_Scheduler_Factory::server ()-> set (config_infos[i].handle, - static_cast<RtecScheduler::Criticality_t>(config_infos[i].criticality), + static_cast<RtecScheduler::Criticality_t> (config_infos[i].criticality), config_infos[i].worst_case_execution_time, config_infos[i].typical_execution_time, config_infos[i].cached_execution_time, config_infos[i].period, - static_cast<RtecScheduler::Importance_t>(config_infos[i].importance), + static_cast<RtecScheduler::Importance_t> (config_infos[i].importance), config_infos[i].quantum, config_infos[i].threads, - static_cast<RtecScheduler::Info_Type_t>(config_infos[i].info_type) + static_cast<RtecScheduler::Info_Type_t> (config_infos[i].info_type) ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; diff --git a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Anomalies.cpp b/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Anomalies.cpp index 9f2d3e3b238..321cd6802c5 100644 --- a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Anomalies.cpp +++ b/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Anomalies.cpp @@ -244,15 +244,15 @@ main (int argc, char *argv[]) // initialize the RT_Info ACE_Scheduler_Factory::server ()-> set (config_infos[i].handle, - static_cast<RtecScheduler::Criticality_t>(config_infos[i].criticality), + static_cast<RtecScheduler::Criticality_t> (config_infos[i].criticality), config_infos[i].worst_case_execution_time, config_infos[i].typical_execution_time, config_infos[i].cached_execution_time, config_infos[i].period, - static_cast<RtecScheduler::Importance_t>(config_infos[i].importance), + static_cast<RtecScheduler::Importance_t> (config_infos[i].importance), config_infos[i].quantum, config_infos[i].threads, - static_cast<RtecScheduler::Info_Type_t>(config_infos[i].info_type) + static_cast<RtecScheduler::Info_Type_t> (config_infos[i].info_type) ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; } diff --git a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Runtime.cpp b/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Runtime.cpp index 00a17816045..12692c53c26 100644 --- a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Runtime.cpp +++ b/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Runtime.cpp @@ -93,9 +93,9 @@ main (int argc, char *argv[]) ACE_ASSERT (rt_info->period == infos [i].period); ACE_ASSERT (rt_info->criticality == - static_cast<RtecScheduler::Criticality_t>(infos [i].criticality)); + static_cast<RtecScheduler::Criticality_t> (infos [i].criticality)); ACE_ASSERT (rt_info->importance == - static_cast<RtecScheduler::Importance_t>(infos [i].importance)); + static_cast<RtecScheduler::Importance_t> (infos [i].importance)); ACE_ASSERT (rt_info->quantum == infos [i].quantum); ACE_ASSERT (rt_info->threads == @@ -107,20 +107,20 @@ main (int argc, char *argv[]) ACE_ASSERT (rt_info->preemption_priority == infos [i].preemption_priority); ACE_ASSERT (rt_info->info_type == - static_cast<RtecScheduler::Info_Type_t>(infos [i].info_type)); + static_cast<RtecScheduler::Info_Type_t> (infos [i].info_type)); // Make sure the values in the scheduler's internal RT_Info are OK. // Scheduler will generate messages if any values don't match. runtime_scheduler->set (infos [i].handle, - static_cast<RtecScheduler::Criticality_t>(infos [i].criticality), + static_cast<RtecScheduler::Criticality_t> (infos [i].criticality), infos [i].worst_case_execution_time, infos [i].typical_execution_time, infos [i].cached_execution_time, infos [i].period, - static_cast<RtecScheduler::Importance_t>(infos [i].importance), + static_cast<RtecScheduler::Importance_t> (infos [i].importance), infos [i].quantum, infos [i].threads, - static_cast<RtecScheduler::Info_Type_t>(infos [i].info_type) + static_cast<RtecScheduler::Info_Type_t> (infos [i].info_type) ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; diff --git a/TAO/orbsvcs/tests/Trading/Offer_Exporter.cpp b/TAO/orbsvcs/tests/Trading/Offer_Exporter.cpp index 3cddfe13ffc..69eaa9993f4 100644 --- a/TAO/orbsvcs/tests/Trading/Offer_Exporter.cpp +++ b/TAO/orbsvcs/tests/Trading/Offer_Exporter.cpp @@ -175,7 +175,7 @@ TAO_Offer_Exporter::export_offers_to_all (ACE_ENV_SINGLE_ARG_DECL) if (this->verbose_) { ACE_DEBUG ((LM_DEBUG, "Getting link information for %s\n", - static_cast<const char*>(link_name_seq[i]))); + static_cast<const char*> (link_name_seq[i]))); } CosTrading::Link::LinkInfo_var link_info = @@ -192,7 +192,7 @@ TAO_Offer_Exporter::export_offers_to_all (ACE_ENV_SINGLE_ARG_DECL) if (this->verbose_) { ACE_DEBUG ((LM_DEBUG, "Exporting offers to %s\n", - static_cast<const char*>(link_name_seq[i]))); + static_cast<const char*> (link_name_seq[i]))); } this->export_to (link_info->target_reg.in () ACE_ENV_ARG_PARAMETER); diff --git a/TAO/orbsvcs/tests/Trading/Offer_Importer.cpp b/TAO/orbsvcs/tests/Trading/Offer_Importer.cpp index 4dc8fbdacff..738d2acc719 100644 --- a/TAO/orbsvcs/tests/Trading/Offer_Importer.cpp +++ b/TAO/orbsvcs/tests/Trading/Offer_Importer.cpp @@ -110,7 +110,7 @@ TAO_Offer_Importer::perform_directed_queries (ACE_ENV_SINGLE_ARG_DECL) ACE_DEBUG ((LM_DEBUG, "*** Query through %s to destination %s.\n", ACE_static_cast (const char*, link_name_seq[0u]), - static_cast<const char*>(link_name_seq2[i]))); + static_cast<const char*> (link_name_seq2[i]))); trader_name[0] = CORBA::string_dup (link_name_seq[0u]); trader_name[1] = CORBA::string_dup (link_name_seq2[i]); @@ -212,7 +212,7 @@ TAO_Offer_Importer::perform_queries_with_policies ( { const char *policy_name = (*limits_applied_ptr)[j]; ACE_DEBUG ((LM_DEBUG, "%s\n", - static_cast<const char*>(policy_name))); + static_cast<const char*> (policy_name))); } } } diff --git a/TAO/orbsvcs/tests/Trading/Service_Type_Exporter.cpp b/TAO/orbsvcs/tests/Trading/Service_Type_Exporter.cpp index 3eefe5ade91..c70370c4512 100644 --- a/TAO/orbsvcs/tests/Trading/Service_Type_Exporter.cpp +++ b/TAO/orbsvcs/tests/Trading/Service_Type_Exporter.cpp @@ -112,13 +112,13 @@ TAO_Service_Type_Exporter::add_all_types_to_all (ACE_ENV_SINGLE_ARG_DECL) ACE_TRY { ACE_DEBUG ((LM_DEBUG, "Getting link information for %s\n", - static_cast<const char*>(link_name_seq[i]))); + static_cast<const char*> (link_name_seq[i]))); CosTrading::Link::LinkInfo_var link_info = link_if->describe_link (link_name_seq[i] ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK; ACE_DEBUG ((LM_DEBUG, "Adding service types to %s\n", - static_cast<const char*>(link_name_seq[i]))); + static_cast<const char*> (link_name_seq[i]))); CosTrading::TypeRepository_var remote_repos = link_info->target->type_repos (ACE_ENV_SINGLE_ARG_PARAMETER); @@ -224,7 +224,7 @@ TAO_Service_Type_Exporter::list_all_types (ACE_ENV_SINGLE_ARG_DECL) if (this->verbose_) { ACE_DEBUG ((LM_DEBUG, "type name: %s\n", - static_cast<const char *>(type_names[index]))); + static_cast<const char *> (type_names[index]))); } } } |