From 477288d05c88897a9811f546ca2b5c66e12cb80f Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Wed, 19 Apr 2006 10:24:02 +0000 Subject: ChangeLogTag: Wed Apr 19 07:44:49 UTC 2006 Johnny Willemsen --- TAO/examples/Simulator/Event_Supplier/Event_Con.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'TAO/examples/Simulator') 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"), -- cgit v1.2.1