summaryrefslogtreecommitdiff
path: root/cppe/src/IceE/ReferenceFactory.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-09-07 05:40:22 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-09-07 05:40:22 +0000
commitc943fb0d16b7c9edcfbd20199126544bc65ddf7b (patch)
tree5017a9c8a031e1999a5b985d9d9d22189cb6de8b /cppe/src/IceE/ReferenceFactory.cpp
parentChanged version to 3.0.0. Fixed a few places where we could clean up (diff)
downloadice-c943fb0d16b7c9edcfbd20199126544bc65ddf7b.tar.bz2
ice-c943fb0d16b7c9edcfbd20199126544bc65ddf7b.tar.xz
ice-c943fb0d16b7c9edcfbd20199126544bc65ddf7b.zip
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=448
Diffstat (limited to 'cppe/src/IceE/ReferenceFactory.cpp')
-rw-r--r--cppe/src/IceE/ReferenceFactory.cpp18
1 files changed, 11 insertions, 7 deletions
diff --git a/cppe/src/IceE/ReferenceFactory.cpp b/cppe/src/IceE/ReferenceFactory.cpp
index 8be846b2f01..36282a05c26 100644
--- a/cppe/src/IceE/ReferenceFactory.cpp
+++ b/cppe/src/IceE/ReferenceFactory.cpp
@@ -77,9 +77,9 @@ IceInternal::ReferenceFactory::create(const Identity& ident,
// Create new reference
//
#ifdef ICEE_HAS_ROUTER
- return new DirectReference(_instance, ident, context, facet, mode, secure, endpoints, routerInfo);
+ return new DirectReference(_instance, _communicator, ident, context, facet, mode, secure, endpoints, routerInfo);
#else
- return new DirectReference(_instance, ident, context, facet, mode, secure, endpoints);
+ return new DirectReference(_instance, _communicator, ident, context, facet, mode, secure, endpoints);
#endif
}
@@ -113,9 +113,10 @@ IceInternal::ReferenceFactory::create(const Identity& ident,
// Create new reference
//
#ifdef ICEE_HAS_ROUTER
- return new IndirectReference(_instance, ident, context, facet, mode, secure, adapterId, routerInfo, locatorInfo);
+ return new IndirectReference(_instance, _communicator, ident, context, facet, mode, secure, adapterId, routerInfo,
+ locatorInfo);
#else
- return new IndirectReference(_instance, ident, context, facet, mode, secure, adapterId, locatorInfo);
+ return new IndirectReference(_instance, _communicator, ident, context, facet, mode, secure, adapterId, locatorInfo);
#endif
}
@@ -143,7 +144,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
@@ -667,8 +668,10 @@ IceInternal::ReferenceFactory::getDefaultLocator() const
#endif
-IceInternal::ReferenceFactory::ReferenceFactory(const InstancePtr& instance) :
- _instance(instance)
+IceInternal::ReferenceFactory::ReferenceFactory(const InstancePtr& instance,
+ const CommunicatorPtr& communicator) :
+ _instance(instance),
+ _communicator(communicator)
{
}
@@ -683,6 +686,7 @@ IceInternal::ReferenceFactory::destroy()
}
_instance = 0;
+ _communicator = 0;
#ifdef ICEE_HAS_ROUTER
_defaultRouter = 0;
#endif