summaryrefslogtreecommitdiff
path: root/TAO/tao/CurrentS.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/CurrentS.cpp')
-rw-r--r--TAO/tao/CurrentS.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/TAO/tao/CurrentS.cpp b/TAO/tao/CurrentS.cpp
index f661cc5a03e..6b31268b162 100644
--- a/TAO/tao/CurrentS.cpp
+++ b/TAO/tao/CurrentS.cpp
@@ -86,9 +86,5 @@ POA_CORBA::Current::_this (CORBA_Environment &ACE_TRY_ENV)
{
TAO_Stub *stub = this->_create_stub (ACE_TRY_ENV);
ACE_CHECK_RETURN (0);
- CORBA::Current *retval = CORBA_Current::_nil ();
- ACE_NEW_RETURN (retval,
- POA_CORBA::_tao_collocated_Current (this, stub),
- CORBA_Current::_nil ());
- return retval;
+ return new POA_CORBA::_tao_collocated_Current (this, stub);
}