diff options
author | calabrese_p <calabrese_p@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2009-06-09 13:47:38 +0000 |
---|---|---|
committer | calabrese_p <calabrese_p@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2009-06-09 13:47:38 +0000 |
commit | 8a7b29780402fc3c39504429f742cb427cae7700 (patch) | |
tree | a08f31839a112a3abeacfb14f4cabc2f7171e961 /TAO/DevGuideExamples/AMH_AMI/inner_server.cpp | |
parent | f7a2a4b58ea58279c52cf8d2e3e23f3beaef95ab (diff) | |
download | ATCD-8a7b29780402fc3c39504429f742cb427cae7700.tar.gz |
Tue Jun 9 13:25:10 UTC 2009 Paul Calabrese <calabrese_p@ociweb.com>
Diffstat (limited to 'TAO/DevGuideExamples/AMH_AMI/inner_server.cpp')
-rw-r--r-- | TAO/DevGuideExamples/AMH_AMI/inner_server.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/TAO/DevGuideExamples/AMH_AMI/inner_server.cpp b/TAO/DevGuideExamples/AMH_AMI/inner_server.cpp index edcbcba9aef..9dc4446b5d2 100644 --- a/TAO/DevGuideExamples/AMH_AMI/inner_server.cpp +++ b/TAO/DevGuideExamples/AMH_AMI/inner_server.cpp @@ -42,11 +42,11 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) mgr->activate(); // Create a servant. - Inner_i servant(dont_crash); + PortableServer::Servant_var<Inner_i> servant = new Inner_i(dont_crash); // Register the servant with the RootPOA, obtain its object // reference, stringify it, and write it to a file. - PortableServer::ObjectId_var oid = poa->activate_object( &servant ); + PortableServer::ObjectId_var oid = poa->activate_object( servant.in() ); obj = poa->id_to_reference( oid.in() ); CORBA::String_var str = orb->object_to_string( obj.in() ); ACE_CString iorname ("inner.ior"); |