summaryrefslogtreecommitdiff
path: root/cppe/test/IceE/operations/Collocated.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cppe/test/IceE/operations/Collocated.cpp')
-rw-r--r--cppe/test/IceE/operations/Collocated.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/cppe/test/IceE/operations/Collocated.cpp b/cppe/test/IceE/operations/Collocated.cpp
index ea96564540a..d5ff91b6c5a 100644
--- a/cppe/test/IceE/operations/Collocated.cpp
+++ b/cppe/test/IceE/operations/Collocated.cpp
@@ -42,8 +42,9 @@ public:
setCommunicator(Ice::initializeWithProperties(argc, argv, properties));
Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("TestAdapter");
- Ice::ObjectPtr object = new MyDerivedClassI(adapter, Ice::stringToIdentity("test"));
- adapter->add(object, Ice::stringToIdentity("test"));
+ Ice::Identity id = Ice::stringToIdentity("test");
+ adapter->add(new MyDerivedClassI(adapter, id), id);
+ adapter->add(new TestCheckedCastI, Ice::stringToIdentity("context"));
adapter->activate();
Test::MyClassPrx allTests(const Ice::CommunicatorPtr&);