summaryrefslogtreecommitdiff
path: root/TAO/tests/QtTests/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/QtTests/server.cpp')
-rw-r--r--TAO/tests/QtTests/server.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/TAO/tests/QtTests/server.cpp b/TAO/tests/QtTests/server.cpp
index 28fef907bfc..99bd2ba6579 100644
--- a/TAO/tests/QtTests/server.cpp
+++ b/TAO/tests/QtTests/server.cpp
@@ -60,7 +60,7 @@ main (int argc, char *argv[])
try
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "");
+ CORBA::ORB_init (argc, argv);
CORBA::Object_var poa_object =
orb->resolve_initial_references ("RootPOA");
@@ -80,8 +80,13 @@ main (int argc, char *argv[])
// Instantiate the LCD_Display implementation class
LCD_Display_imp display_impl (orb.in ());
+ PortableServer::ObjectId_var id =
+ root_poa->activate_object (&display_impl);
+
+ CORBA::Object_var object = root_poa->id_to_reference (id.in ());
+
LCD_Display_var server =
- display_impl._this ();
+ LCD_Display::_narrow (object.in ());
// Create the LCD after the QVbox is created.
QVBox box;