diff options
Diffstat (limited to 'TAO/orbsvcs/tests/FT_App')
-rw-r--r-- | TAO/orbsvcs/tests/FT_App/FT_Client.cpp | 4 | ||||
-rw-r--r-- | TAO/orbsvcs/tests/FT_App/FT_Creator.cpp | 2 | ||||
-rw-r--r-- | TAO/orbsvcs/tests/FT_App/FT_ReplicaFactory_i.cpp | 8 | ||||
-rw-r--r-- | TAO/orbsvcs/tests/FT_App/FT_TestReplica_i.cpp | 4 | ||||
-rwxr-xr-x | TAO/orbsvcs/tests/FT_App/ReplicationManagerFaultConsumerAdapter.cpp | 2 | ||||
-rw-r--r-- | TAO/orbsvcs/tests/FT_App/StubFaultConsumer.cpp | 10 | ||||
-rw-r--r-- | TAO/orbsvcs/tests/FT_App/StubFaultNotifier.cpp | 8 | ||||
-rw-r--r-- | TAO/orbsvcs/tests/FT_App/TAO_Object_Group_Creator.cpp | 6 |
8 files changed, 22 insertions, 22 deletions
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, |