summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/interceptor/AMDInterceptorI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/interceptor/AMDInterceptorI.cpp')
-rw-r--r--cpp/test/Ice/interceptor/AMDInterceptorI.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/cpp/test/Ice/interceptor/AMDInterceptorI.cpp b/cpp/test/Ice/interceptor/AMDInterceptorI.cpp
index eb4fec01954..25e98745940 100644
--- a/cpp/test/Ice/interceptor/AMDInterceptorI.cpp
+++ b/cpp/test/Ice/interceptor/AMDInterceptorI.cpp
@@ -84,11 +84,7 @@ void
AMDInterceptorI::setActualStatus(const IceUtil::Exception& e)
{
IceUtil::Mutex::Lock lock(_mutex);
-#ifdef ICE_CPP11_MAPPING
- _exception = e.ice_clone();
-#else
- _exception.reset(e.ice_clone());
-#endif
+ ICE_RESET_EXCEPTION(_exception, e.ice_clone());
_actualStatus = Ice::DispatchAsync;
}
@@ -121,11 +117,7 @@ AMDInterceptorI::clear()
InterceptorI::clear();
IceUtil::Mutex::Lock lock(_mutex);
_actualStatus = Ice::DispatchAsync;
-#ifdef ICE_CPP11_MAPPING
- _exception = nullptr;
-#else
- _exception.reset();
-#endif
+ ICE_RESET_EXCEPTION(_exception, ICE_NULLPTR);
}