summaryrefslogtreecommitdiff
path: root/TAO/tao/Any.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Any.cpp')
-rw-r--r--TAO/tao/Any.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/TAO/tao/Any.cpp b/TAO/tao/Any.cpp
index 8fb3017e08e..b1bc9961bce 100644
--- a/TAO/tao/Any.cpp
+++ b/TAO/tao/Any.cpp
@@ -548,6 +548,16 @@ TAO::Unknown_IDL_Type::assign_translator (CORBA::TCKind kind,
// ****************************************************************
+CORBA::Any_var::Any_var (const CORBA::Any_var &r)
+ : ptr_ (0)
+{
+ if (r.ptr_ != 0)
+ {
+ ACE_NEW (this->ptr_,
+ CORBA::Any (*r.ptr_));
+ }
+}
+
CORBA::Any_var &
CORBA::Any_var::operator= (CORBA::Any *p)
{