summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/slicing/objects/AllTests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/slicing/objects/AllTests.cpp')
-rw-r--r--cpp/test/Ice/slicing/objects/AllTests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/test/Ice/slicing/objects/AllTests.cpp b/cpp/test/Ice/slicing/objects/AllTests.cpp
index 8c145c3606d..2399a8416ef 100644
--- a/cpp/test/Ice/slicing/objects/AllTests.cpp
+++ b/cpp/test/Ice/slicing/objects/AllTests.cpp
@@ -2875,7 +2875,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
// Register a factory in order to substitute our own subclass of PNode. This provides
// an easy way to determine how many unmarshaled instances currently exist.
//
- communicator->addValueFactory(new NodeFactoryI, PNode::ice_staticId());
+ communicator->getValueFactoryManager()->add(new NodeFactoryI, PNode::ice_staticId());
//
// Relay a graph through the server. This test uses a preserved class
@@ -2921,7 +2921,7 @@ allTests(const Ice::CommunicatorPtr& communicator)
// Register a factory in order to substitute our own subclass of Preserved. This provides
// an easy way to determine how many unmarshaled instances currently exist.
//
- communicator->addValueFactory(new PreservedFactoryI, Preserved::ice_staticId());
+ communicator->getValueFactoryManager()->add(new PreservedFactoryI, Preserved::ice_staticId());
//
// Obtain a preserved object from the server where the most-derived