From baf36f2a83903362608aa244d8f1c3c4d0e35773 Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Sat, 11 Aug 2012 15:15:53 -0400 Subject: Fixed bug #ICE-4845 (ice_clone for IceUtil::Exception is now covariant) Small build fixes (VS warning, Python 3.x run.py) slice2cpp no longer generates ice_clone for interfaces --- cpp/src/Ice/Outgoing.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cpp/src/Ice/Outgoing.cpp') diff --git a/cpp/src/Ice/Outgoing.cpp b/cpp/src/Ice/Outgoing.cpp index e922fb30486..a136e2f3b38 100644 --- a/cpp/src/Ice/Outgoing.cpp +++ b/cpp/src/Ice/Outgoing.cpp @@ -25,13 +25,13 @@ using namespace IceInternal; IceInternal::LocalExceptionWrapper::LocalExceptionWrapper(const LocalException& ex, bool r) : _retry(r) { - _ex.reset(dynamic_cast(ex.ice_clone())); + _ex.reset(ex.ice_clone()); } IceInternal::LocalExceptionWrapper::LocalExceptionWrapper(const LocalExceptionWrapper& ex) : _retry(ex._retry) { - _ex.reset(dynamic_cast(ex.get()->ice_clone())); + _ex.reset(ex.get()->ice_clone()); } void @@ -511,7 +511,7 @@ IceInternal::Outgoing::finished(const LocalException& ex, bool sent) IceUtil::Monitor::Lock sync(_monitor); assert(_state <= StateInProgress); _state = StateFailed; - _exception.reset(dynamic_cast(ex.ice_clone())); + _exception.reset(ex.ice_clone()); _sent = sent; _monitor.notify(); } @@ -585,6 +585,6 @@ void IceInternal::BatchOutgoing::finished(const Ice::LocalException& ex, bool) { IceUtil::Monitor::Lock sync(_monitor); - _exception.reset(dynamic_cast(ex.ice_clone())); + _exception.reset(ex.ice_clone()); _monitor.notify(); } -- cgit v1.2.3