summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Outgoing.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/Outgoing.cpp')
-rw-r--r--cpp/src/Ice/Outgoing.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/Ice/Outgoing.cpp b/cpp/src/Ice/Outgoing.cpp
index 2974197d876..f48b4b0c4d8 100644
--- a/cpp/src/Ice/Outgoing.cpp
+++ b/cpp/src/Ice/Outgoing.cpp
@@ -20,12 +20,12 @@ using namespace IceInternal;
IceInternal::NonRepeatable::NonRepeatable(const NonRepeatable& ex)
{
- _ex = auto_ptr<LocalException>(ex.get()->_clone());
+ _ex = auto_ptr<LocalException>(dynamic_cast<LocalException*>(ex.get()->_clone()));
}
IceInternal::NonRepeatable::NonRepeatable(const ::Ice::LocalException& ex)
{
- _ex = auto_ptr<LocalException>(ex._clone());
+ _ex = auto_ptr<LocalException>(dynamic_cast<LocalException*>(ex._clone()));
}
const ::Ice::LocalException*
@@ -265,7 +265,7 @@ IceInternal::Outgoing::finished(const LocalException& ex)
if (_state == StateInProgress)
{
_state = StateLocalException;
- _exception = auto_ptr<LocalException>(ex._clone());
+ _exception = auto_ptr<LocalException>(dynamic_cast<LocalException*>(ex._clone()));
notify();
}
}