summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Reference.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-09-09 03:52:35 +0000
committerMarc Laukien <marc@zeroc.com>2001-09-09 03:52:35 +0000
commit479148a990da6e9aaaffd1bf94b242168db6f422 (patch)
tree45bf87df3b36d2d70eede413b5e0188c154825de /cpp/src/Ice/Reference.cpp
parentfixes (diff)
downloadice-479148a990da6e9aaaffd1bf94b242168db6f422.tar.bz2
ice-479148a990da6e9aaaffd1bf94b242168db6f422.tar.xz
ice-479148a990da6e9aaaffd1bf94b242168db6f422.zip
fixes
Diffstat (limited to 'cpp/src/Ice/Reference.cpp')
-rw-r--r--cpp/src/Ice/Reference.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/cpp/src/Ice/Reference.cpp b/cpp/src/Ice/Reference.cpp
index 349a5794bb1..8b6d86fe3ce 100644
--- a/cpp/src/Ice/Reference.cpp
+++ b/cpp/src/Ice/Reference.cpp
@@ -180,12 +180,16 @@ IceInternal::Reference::Reference(const InstancePtr& inst, const string& str) :
}
}
-IceInternal::Reference::Reference(Stream* s) :
+IceInternal::Reference::Reference(const string& ident, Stream* s) :
instance(s->instance()),
+ identity(ident),
mode(ModeTwoway),
secure(false)
{
- s->read(const_cast<string&>(identity));
+ //
+ // Don't read the identity here. Operations calling this
+ // constructor read the identity, and pass it as a parameter.
+ //
vector<EndpointPtr>::const_iterator p;
Ice::Int sz;
@@ -217,7 +221,10 @@ IceInternal::Reference::Reference(Stream* s) :
void
IceInternal::Reference::streamWrite(Stream* s) const
{
- s->write(identity);
+ //
+ // Don't write the identity here. Operations calling streamWrite
+ // write the identity.
+ //
vector<EndpointPtr>::const_iterator p;