summaryrefslogtreecommitdiff
path: root/TAO/examples/Simulator/Event_Supplier/Event_Con.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Simulator/Event_Supplier/Event_Con.cpp')
-rw-r--r--TAO/examples/Simulator/Event_Supplier/Event_Con.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/TAO/examples/Simulator/Event_Supplier/Event_Con.cpp b/TAO/examples/Simulator/Event_Supplier/Event_Con.cpp
index 1004129d82c..2a760e659f3 100644
--- a/TAO/examples/Simulator/Event_Supplier/Event_Con.cpp
+++ b/TAO/examples/Simulator/Event_Supplier/Event_Con.cpp
@@ -355,19 +355,19 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
RtecEventChannelAdmin::EventChannel::_narrow (ec_obj.in() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (ec.ptr() == 0)
+ if (CORBA::is_nil (ec.in()))
ACE_ERROR_RETURN ((LM_ERROR,
"Not able to get the Event Service reference.\n"),
-1);
// Create consumer.
- Demo_Consumer *demo_consumer;
+ Demo_Consumer *demo_consumer = 0;
ACE_NEW_RETURN (demo_consumer,
Demo_Consumer (),
-1);
- if (demo_consumer->open_consumer (ec.ptr (),
+ if (demo_consumer->open_consumer (ec.in (),
"demo_consumer") == -1)
ACE_ERROR_RETURN ((LM_ERROR,
"Someone was feeling introverted.\n"),