summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ObjectAdapterI.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-09-13 05:27:55 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-09-13 05:27:55 +0000
commit44c9513c931f3a688f40cc7c4e3fa2c4088b1dd6 (patch)
tree284902d3abcddd0e21df2b768b45f59a6024c3c4 /cpp/src/Ice/ObjectAdapterI.cpp
parentadded generated subdir. (diff)
downloadice-44c9513c931f3a688f40cc7c4e3fa2c4088b1dd6.tar.bz2
ice-44c9513c931f3a688f40cc7c4e3fa2c4088b1dd6.tar.xz
ice-44c9513c931f3a688f40cc7c4e3fa2c4088b1dd6.zip
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=460
Diffstat (limited to 'cpp/src/Ice/ObjectAdapterI.cpp')
-rw-r--r--cpp/src/Ice/ObjectAdapterI.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/cpp/src/Ice/ObjectAdapterI.cpp b/cpp/src/Ice/ObjectAdapterI.cpp
index ccd18813798..ec0d57cc1ac 100644
--- a/cpp/src/Ice/ObjectAdapterI.cpp
+++ b/cpp/src/Ice/ObjectAdapterI.cpp
@@ -479,7 +479,8 @@ Ice::ObjectAdapterI::createReverseProxy(const Identity& ident) const
// Create a reference and return a reverse proxy for this
// reference.
//
- ReferencePtr ref = _instance->referenceFactory()->create(ident, Context(), "", Reference::ModeTwoway, connections);
+ ReferencePtr ref = _instance->referenceFactory()->create(ident, _instance->getDefaultContext(), "",
+ Reference::ModeTwoway, connections);
return _instance->proxyFactory()->referenceToProxy(ref);
}
@@ -799,7 +800,7 @@ Ice::ObjectAdapterI::newProxy(const Identity& ident, const string& facet) const
//
// Create a reference with the adapter id.
//
- ReferencePtr ref = _instance->referenceFactory()->create(ident, Context(), facet,
+ ReferencePtr ref = _instance->referenceFactory()->create(ident, _instance->getDefaultContext(), facet,
Reference::ModeTwoway, false, _id,
0, _locatorInfo, true);
@@ -839,8 +840,8 @@ Ice::ObjectAdapterI::newDirectProxy(const Identity& ident, const string& facet)
//
// Create a reference and return a proxy for this reference.
//
- ReferencePtr ref = _instance->referenceFactory()->create(ident, Context(), facet, Reference::ModeTwoway,
- false, endpoints, 0, true);
+ ReferencePtr ref = _instance->referenceFactory()->create(ident, _instance->getDefaultContext(), facet,
+ Reference::ModeTwoway, false, endpoints, 0, true);
return _instance->proxyFactory()->referenceToProxy(ref);
}