diff options
author | Marc Laukien <marc@zeroc.com> | 2001-09-09 03:52:35 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-09-09 03:52:35 +0000 |
commit | 479148a990da6e9aaaffd1bf94b242168db6f422 (patch) | |
tree | 45bf87df3b36d2d70eede413b5e0188c154825de /cpp/src/Ice/Reference.cpp | |
parent | fixes (diff) | |
download | ice-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.cpp | 13 |
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; |