diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-02-26 15:37:26 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-02-26 15:37:26 +0000 |
commit | c0831c715b8f3e6e719e837a030f9bbf0572c6a4 (patch) | |
tree | 07781add2bbe0d0a19eae97f203c60d419210695 /TAO/examples/OBV/Typed_Events/Client_i.cpp | |
parent | 2a8241dbc82dd3c1740ae20c7d995028460f1565 (diff) | |
download | ATCD-c0831c715b8f3e6e719e837a030f9bbf0572c6a4.tar.gz |
ChangeLogTag:Mon Feb 26 09:32:24 2001 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/examples/OBV/Typed_Events/Client_i.cpp')
-rw-r--r-- | TAO/examples/OBV/Typed_Events/Client_i.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/TAO/examples/OBV/Typed_Events/Client_i.cpp b/TAO/examples/OBV/Typed_Events/Client_i.cpp index e1c078844fc..dfbb351025f 100644 --- a/TAO/examples/OBV/Typed_Events/Client_i.cpp +++ b/TAO/examples/OBV/Typed_Events/Client_i.cpp @@ -37,7 +37,8 @@ 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 (new Temperature_impl (temperature)); + Temperature_var t_e (ACE_static_cast(Temperature*, + new Temperature_impl (temperature))); t_e->origin_id_ (KITCHEN); t_e->do_print (); checkpoint->put_event (t_e, ACE_TRY_ENV); @@ -53,7 +54,8 @@ 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 (new Position_impl (point)); + Position_var p_e (ACE_static_cast(Position*, + new Position_impl (point))); p_e->origin_id_ (JONAS); p_e->do_print (); checkpoint->put_event (p_e, ACE_TRY_ENV); @@ -63,7 +65,8 @@ 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 (new Log_Msg_impl (urgent, a_text)); + Log_Msg_var l_e (ACE_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_TRY_ENV); |