diff options
author | Matthew Newhook <matthew@zeroc.com> | 2005-09-08 07:26:18 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2005-09-08 07:26:18 +0000 |
commit | 5b9b0d512c8d0ccc4c0e480b802fa841f38fd55c (patch) | |
tree | da30228a4ed4468ee10db027590ba9a10a3e4e5d /cppe/src/IceE/Proxy.cpp | |
parent | fix build problem. (diff) | |
download | ice-5b9b0d512c8d0ccc4c0e480b802fa841f38fd55c.tar.bz2 ice-5b9b0d512c8d0ccc4c0e480b802fa841f38fd55c.tar.xz ice-5b9b0d512c8d0ccc4c0e480b802fa841f38fd55c.zip |
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=460
Diffstat (limited to 'cppe/src/IceE/Proxy.cpp')
-rw-r--r-- | cppe/src/IceE/Proxy.cpp | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/cppe/src/IceE/Proxy.cpp b/cppe/src/IceE/Proxy.cpp index c10b7718c40..0b2dcf00706 100644 --- a/cppe/src/IceE/Proxy.cpp +++ b/cppe/src/IceE/Proxy.cpp @@ -358,31 +358,17 @@ IceProxy::Ice::Object::ice_getContext() const ObjectPrx IceProxy::Ice::Object::ice_newContext(const Context& newContext) const { - if(_reference->hasContext() && newContext == _reference->getContext()) - { - return ObjectPrx(const_cast< ::IceProxy::Ice::Object*>(this)); - } - else - { - ObjectPrx proxy(new ::IceProxy::Ice::Object()); - proxy->setup(_reference->changeContext(newContext)); - return proxy; - } + ObjectPrx proxy(new ::IceProxy::Ice::Object()); + proxy->setup(_reference->changeContext(newContext)); + return proxy; } ObjectPrx IceProxy::Ice::Object::ice_defaultContext() const { - if(!_reference->hasContext()) - { - return ObjectPrx(const_cast< ::IceProxy::Ice::Object*>(this)); - } - else - { - ObjectPrx proxy(new ::IceProxy::Ice::Object()); - proxy->setup(_reference->defaultContext()); - return proxy; - } + ObjectPrx proxy(new ::IceProxy::Ice::Object()); + proxy->setup(_reference->defaultContext()); + return proxy; } Identity |