summaryrefslogtreecommitdiff
path: root/tao/AnyTypeCode/TypeCode_CDR_Extraction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tao/AnyTypeCode/TypeCode_CDR_Extraction.cpp')
-rw-r--r--tao/AnyTypeCode/TypeCode_CDR_Extraction.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tao/AnyTypeCode/TypeCode_CDR_Extraction.cpp b/tao/AnyTypeCode/TypeCode_CDR_Extraction.cpp
index 4d0e0086c15..af5b611128c 100644
--- a/tao/AnyTypeCode/TypeCode_CDR_Extraction.cpp
+++ b/tao/AnyTypeCode/TypeCode_CDR_Extraction.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "tao/AnyTypeCode/TypeCode_CDR_Extraction.h"
@@ -688,7 +689,7 @@ TAO::TypeCodeFactory::tc_union_factory (CORBA::TCKind /* kind */,
CORBA::ULongLong label;
if (!(cdr >> label))
return false;
-
+
typedef TypeCode::Case_T<CORBA::ULongLong,
CORBA::String_var,
CORBA::TypeCode_var> case_type;
@@ -1360,7 +1361,7 @@ namespace
TAO::TypeCodeFactory::TC_Info_List recursive_tc;
if (find_recursive_tc (id.in (), recursive_tc, infos))
{
- tc = recursive_tc[0].type;
+ tc = CORBA::TypeCode::_duplicate(recursive_tc[0].type);
}
else switch (kind)
{