summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/facets/Server.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2004-04-07 00:13:35 +0000
committerMarc Laukien <marc@zeroc.com>2004-04-07 00:13:35 +0000
commitd702a6bd170669e2b959ae49b24224c72ab8f367 (patch)
tree0109385349191c72a45cb2c3860ace90f0702d18 /cpp/test/Ice/facets/Server.cpp
parentfacet changes (diff)
downloadice-d702a6bd170669e2b959ae49b24224c72ab8f367.tar.bz2
ice-d702a6bd170669e2b959ae49b24224c72ab8f367.tar.xz
ice-d702a6bd170669e2b959ae49b24224c72ab8f367.zip
facet changes
Diffstat (limited to 'cpp/test/Ice/facets/Server.cpp')
-rw-r--r--cpp/test/Ice/facets/Server.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/cpp/test/Ice/facets/Server.cpp b/cpp/test/Ice/facets/Server.cpp
index fd6f627dbb6..10f667da298 100644
--- a/cpp/test/Ice/facets/Server.cpp
+++ b/cpp/test/Ice/facets/Server.cpp
@@ -24,16 +24,15 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
Ice::ObjectPtr d = new DI;
adapter->add(d, Ice::stringToIdentity("d"));
- d->ice_addFacet(d, "facetABCD");
+ adapter->addFacet(d, Ice::stringToIdentity("d"), "facetABCD");
Ice::ObjectPtr f = new FI;
- d->ice_addFacet(f, "facetEF");
+ adapter->addFacet(f, Ice::stringToIdentity("d"), "facetEF");
Ice::ObjectPtr h = new HI(communicator);
- f->ice_addFacet(h, "facetGH");
+ adapter->addFacet(h, Ice::stringToIdentity("d"), "facetGH");
adapter->activate();
communicator->waitForShutdown();
- d->ice_removeAllFacets(); // Break cyclic dependencies
return EXIT_SUCCESS;
}