diff options
author | Marc Laukien <marc@zeroc.com> | 2001-08-25 01:37:09 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-08-25 01:37:09 +0000 |
commit | a60f5311d60553dea75bffa5d3b38ec6b6eeee35 (patch) | |
tree | a4bbaa39b50f85a15b59b1a802a21a2c08a3d487 /cpp/src/Ice/Proxy.cpp | |
parent | ThreadPool fixes; Win fixes (diff) | |
download | ice-a60f5311d60553dea75bffa5d3b38ec6b6eeee35.tar.bz2 ice-a60f5311d60553dea75bffa5d3b38ec6b6eeee35.tar.xz ice-a60f5311d60553dea75bffa5d3b38ec6b6eeee35.zip |
fixes
Diffstat (limited to 'cpp/src/Ice/Proxy.cpp')
-rw-r--r-- | cpp/src/Ice/Proxy.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/cpp/src/Ice/Proxy.cpp b/cpp/src/Ice/Proxy.cpp index e818d04df6a..3b3ae6acaa5 100644 --- a/cpp/src/Ice/Proxy.cpp +++ b/cpp/src/Ice/Proxy.cpp @@ -151,6 +151,27 @@ IceProxy::Ice::Object::operator<(const Object& r) const return _reference->identity < r._reference->identity; } +std::string +IceProxy::Ice::Object::_getIdentity() const +{ + return _reference->identity; +} + +::Ice::ObjectPrx +IceProxy::Ice::Object::_newIdentity(const std::string& newIdentity) const +{ + if (newIdentity == _reference->identity) + { + return ObjectPrx(const_cast< ::IceProxy::Ice::Object*>(this)); + } + else + { + ObjectPrx proxy(new ::IceProxy::Ice::Object()); + proxy->setup(_reference->changeIdentity(newIdentity)); + return proxy; + } +} + ObjectPrx IceProxy::Ice::Object::_twoway() const { |