summaryrefslogtreecommitdiff
path: root/TAO/tao/Synch_Invocation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Synch_Invocation.cpp')
-rw-r--r--TAO/tao/Synch_Invocation.cpp18
1 files changed, 5 insertions, 13 deletions
diff --git a/TAO/tao/Synch_Invocation.cpp b/TAO/tao/Synch_Invocation.cpp
index 6e1c38b22e9..ee073e085d3 100644
--- a/TAO/tao/Synch_Invocation.cpp
+++ b/TAO/tao/Synch_Invocation.cpp
@@ -75,7 +75,7 @@ namespace TAO
resolver,
detail,
response_expected)
- , retry_state_ (0)
+ , retry_state_ (nullptr)
{
}
@@ -90,7 +90,7 @@ namespace TAO
{
TAO::ORB_Countdown_Time countdown (max_wait_time);
- TAO_Synch_Reply_Dispatcher *rd_p = 0;
+ TAO_Synch_Reply_Dispatcher *rd_p = nullptr;
ACE_NEW_NORETURN (rd_p, TAO_Synch_Reply_Dispatcher (this->resolver_.stub ()->orb_core (),
this->details_.reply_service_info ()));
if (!rd_p)
@@ -398,7 +398,7 @@ namespace TAO
}
catch (const ::CORBA::Exception&)
{
- if (this->retry_state_ == 0 ||
+ if (this->retry_state_ == nullptr ||
!this->retry_state_->forward_on_exception_limit_used ())
{
this->resolver_.stub ()->reset_profiles ();
@@ -426,7 +426,7 @@ namespace TAO
TAO_InputCDR &cdr = rd.reply_cdr ();
// Set the translators
- this->resolver_.transport ()->assign_translators (&cdr, 0);
+ this->resolver_.transport ()->assign_translators (&cdr, nullptr);
// At this point it can be assumed that the GIOP/whatever protocol
// header and the reply header are already handled. Further it
@@ -580,11 +580,7 @@ namespace TAO
// We must manage the memory allocated
// by the call above to alloc().
-#if defined (ACE_HAS_CPP11)
std::unique_ptr<CORBA::Exception> safety (exception);
-#else
- auto_ptr<CORBA::Exception> safety (exception);
-#endif /* ACE_HAS_CPP11 */
exception->_raise ();
@@ -718,7 +714,7 @@ namespace TAO
CORBA::SystemException *ex = TAO::create_system_exception (type_id.in ());
- if (ex == 0)
+ if (ex == nullptr)
{
// @@ We should raise a CORBA::NO_MEMORY, but we ran out
// of memory already. We need a pre-allocated, TSS,
@@ -731,11 +727,7 @@ namespace TAO
// Without this, the call to create_system_exception() above
// causes a memory leak. On platforms without native exceptions,
// the CORBA::Environment class manages the memory.
-#if defined (ACE_HAS_CPP11)
std::unique_ptr<CORBA::SystemException> safety (ex);
-#else
- auto_ptr<CORBA::SystemException> safety (ex);
-#endif /* ACE_HAS_CPP11 */
ex->minor (minor);
ex->completed (CORBA::CompletionStatus (completion));