summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-09-07 01:58:50 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-09-07 01:58:50 +0000
commit6646b61525773a1fc3c11e6cb113fd8fa68f1d5a (patch)
tree352e14565283bf31ede81369776fc40bd66094f7 /cpp/src
parentBug 371: double close of file descriptor (diff)
downloadice-6646b61525773a1fc3c11e6cb113fd8fa68f1d5a.tar.bz2
ice-6646b61525773a1fc3c11e6cb113fd8fa68f1d5a.tar.xz
ice-6646b61525773a1fc3c11e6cb113fd8fa68f1d5a.zip
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=448
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Ice/ReferenceFactory.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/cpp/src/Ice/ReferenceFactory.cpp b/cpp/src/Ice/ReferenceFactory.cpp
index 8afcad3376e..cbfd96c3d61 100644
--- a/cpp/src/Ice/ReferenceFactory.cpp
+++ b/cpp/src/Ice/ReferenceFactory.cpp
@@ -72,7 +72,7 @@ IceInternal::ReferenceFactory::create(const Identity& ident,
//
// Create new reference
//
- return new DirectReference(_instance, ident, context, facet, mode, secure,
+ return new DirectReference(_instance, _communicator, ident, context, facet, mode, secure,
endpoints, routerInfo, collocationOptimization);
}
@@ -102,7 +102,7 @@ IceInternal::ReferenceFactory::create(const Identity& ident,
//
// Create new reference
//
- return new IndirectReference(_instance, ident, context, facet, mode, secure,
+ return new IndirectReference(_instance, _communicator, ident, context, facet, mode, secure,
adapterId, routerInfo, locatorInfo, collocationOptimization);
}
@@ -128,7 +128,7 @@ IceInternal::ReferenceFactory::create(const Identity& ident,
//
// Create new reference
//
- return new FixedReference(_instance, ident, context, facet, mode, fixedConnections);
+ return new FixedReference(_instance, _communicator, ident, context, facet, mode, fixedConnections);
}
ReferencePtr
@@ -604,8 +604,9 @@ IceInternal::ReferenceFactory::getDefaultLocator() const
return _defaultLocator;
}
-IceInternal::ReferenceFactory::ReferenceFactory(const InstancePtr& instance) :
- _instance(instance)
+IceInternal::ReferenceFactory::ReferenceFactory(const InstancePtr& instance, const CommunicatorPtr& communicator) :
+ _instance(instance),
+ _communicator(communicator)
{
}