summaryrefslogtreecommitdiff
path: root/TAO/examples/Simulator
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2006-04-19 10:24:02 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2006-04-19 10:24:02 +0000
commit477288d05c88897a9811f546ca2b5c66e12cb80f (patch)
tree541fc2e72cd6f4977352d461d2094173fb4e9c41 /TAO/examples/Simulator
parentffb3a0eb1b420b865cdb0ca3330790327eda5c50 (diff)
downloadATCD-477288d05c88897a9811f546ca2b5c66e12cb80f.tar.gz
ChangeLogTag: Wed Apr 19 07:44:49 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/examples/Simulator')
-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 dafdaefc101..e14e834f16c 100644
--- a/TAO/examples/Simulator/Event_Supplier/Event_Con.cpp
+++ b/TAO/examples/Simulator/Event_Supplier/Event_Con.cpp
@@ -352,19 +352,19 @@ main (int argc, char *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"),