diff options
Diffstat (limited to 'TAO/tests/ORT/ObjectReferenceFactory.cpp')
-rw-r--r-- | TAO/tests/ORT/ObjectReferenceFactory.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/TAO/tests/ORT/ObjectReferenceFactory.cpp b/TAO/tests/ORT/ObjectReferenceFactory.cpp index cee5cdf81fa..846a745b131 100644 --- a/TAO/tests/ORT/ObjectReferenceFactory.cpp +++ b/TAO/tests/ORT/ObjectReferenceFactory.cpp @@ -3,7 +3,6 @@ #include "ObjectReferenceFactory.h" #include "tao/debug.h" - ObjectReferenceFactory::ObjectReferenceFactory ( PortableInterceptor::ObjectReferenceFactory * old_orf) : old_orf_ (old_orf) @@ -12,6 +11,18 @@ ObjectReferenceFactory::ObjectReferenceFactory ( CORBA::add_ref (old_orf); } +::CORBA::ValueBase * +ObjectReferenceFactory::_copy_value (void) +{ + ::CORBA::ValueBase *ret_val= 0; + ACE_NEW_THROW_EX ( + ret_val, + ObjectReferenceFactory (old_orf_.inout ()), + ::CORBA::NO_MEMORY () + ); + return ret_val; +} + ObjectReferenceFactory::~ObjectReferenceFactory (void) { // No need to call CORBA::remove_ref() on this->old_orf_. It is a |