summaryrefslogtreecommitdiff
path: root/TAO/examples/OBV/Typed_Events/Client_i.cpp
diff options
context:
space:
mode:
authorjtc <jtc@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2005-01-28 15:36:15 +0000
committerjtc <jtc@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2005-01-28 15:36:15 +0000
commit8e2623740409f370574b2550fdaafd6ac2b74712 (patch)
treefd46d9924e4977b94da089e571649ee17cc7e8df /TAO/examples/OBV/Typed_Events/Client_i.cpp
parent61fdef70a89a372bbaf37b42cbe8de73a37e0ffe (diff)
downloadATCD-8e2623740409f370574b2550fdaafd6ac2b74712.tar.gz
ChangeLogTag: Fri Jan 28 07:18:10 2005 J.T. Conklin <jtc@acorntoolworks.com>
Diffstat (limited to 'TAO/examples/OBV/Typed_Events/Client_i.cpp')
-rw-r--r--TAO/examples/OBV/Typed_Events/Client_i.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/TAO/examples/OBV/Typed_Events/Client_i.cpp b/TAO/examples/OBV/Typed_Events/Client_i.cpp
index 9d977b2cb59..de35eb52028 100644
--- a/TAO/examples/OBV/Typed_Events/Client_i.cpp
+++ b/TAO/examples/OBV/Typed_Events/Client_i.cpp
@@ -40,8 +40,7 @@ Checkpoint_Client_i::run (const char *name,
ACE_DEBUG ((LM_DEBUG, "Send some random events:\n"));
CORBA::Float temperature = random_number (29, 34);
- Temperature_var t_e (ACE_static_cast(Temperature*,
- new Temperature_impl (temperature)));
+ Temperature_var t_e (static_cast<Temperature*> (new Temperature_impl (temperature)));
t_e->origin_id_ (KITCHEN);
t_e->do_print ();
checkpoint->put_event (t_e ACE_ENV_ARG_PARAMETER);
@@ -57,8 +56,7 @@ Checkpoint_Client_i::run (const char *name,
Point point = { random_number (0,4),
random_number (0,4),
random_number (0,4) };
- Position_var p_e (ACE_static_cast(Position*,
- new Position_impl (point)));
+ Position_var p_e (static_cast<Position*> (new Position_impl (point)));
p_e->origin_id_ (JONAS);
p_e->do_print ();
checkpoint->put_event (p_e ACE_ENV_ARG_PARAMETER);
@@ -68,8 +66,7 @@ Checkpoint_Client_i::run (const char *name,
int urgent = (random_number (0,2) > 1) ? 1 : 0;
const char *a_text = (random_number (0,2) > 1) ? "Coffee is cold."
: "I want pasta.";
- Log_Msg_var l_e (ACE_static_cast(Log_Msg*,
- new Log_Msg_impl (urgent, a_text)));
+ Log_Msg_var l_e (static_cast<Log_Msg*> (new Log_Msg_impl (urgent, a_text)));
l_e->origin_id_ (JONAS);
l_e->do_print ();
checkpoint->put_event (l_e ACE_ENV_ARG_PARAMETER);
@@ -119,7 +116,7 @@ Checkpoint_Client_i::~Checkpoint_Client_i (void)
CORBA::Float random_number (double min, double max)
{
double range = max - min;
- return ACE_static_cast (CORBA::Float, (min + (range * ACE_OS::rand () / (RAND_MAX + 1.0))));
+ return static_cast<CORBA::Float> ((min + (range * ACE_OS::rand () / (RAND_MAX + 1.0))));
}