diff options
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/include/Ice/Proxy.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cpp/include/Ice/Proxy.h b/cpp/include/Ice/Proxy.h index 688171da5d3..4efa4013a15 100644 --- a/cpp/include/Ice/Proxy.h +++ b/cpp/include/Ice/Proxy.h @@ -1511,10 +1511,7 @@ checkedCastImpl(const ::Ice::ObjectPrxPtr& b, const ::Ice::Context* context) { typedef typename P::element_type T; - d = dynamic_cast<T*>(b.get()); - if(!d && (context == 0 ? - b->ice_isA(T::ice_staticId()) : - b->ice_isA(T::ice_staticId(), *context))) + if(context == 0 ? b->ice_isA(T::ice_staticId()) : b->ice_isA(T::ice_staticId(), *context)) { d = new T; d->__copyFrom(b); |