diff options
-rw-r--r-- | TAO/TAO_IDL/be/be_codegen.cpp | 4 | ||||
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_enum/cdr_op_cs.cpp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/TAO/TAO_IDL/be/be_codegen.cpp b/TAO/TAO_IDL/be/be_codegen.cpp index 7460f0e21a7..609369bba6b 100644 --- a/TAO/TAO_IDL/be/be_codegen.cpp +++ b/TAO/TAO_IDL/be/be_codegen.cpp @@ -1997,6 +1997,10 @@ TAO_CodeGen::gen_typecode_includes (TAO_OutStream * stream) "tao/Alias_TypeCode.h"); this->gen_cond_file_include (idl_global->enum_seen_, + "tao/TypeCode_Non_Default_Case.h", + stream); + + this->gen_cond_file_include (idl_global->enum_seen_, "tao/Enum_TypeCode.h", stream); diff --git a/TAO/TAO_IDL/be/be_visitor_enum/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_enum/cdr_op_cs.cpp index 0f8eb99a172..744e28ed970 100644 --- a/TAO/TAO_IDL/be/be_visitor_enum/cdr_op_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_enum/cdr_op_cs.cpp @@ -65,7 +65,7 @@ be_visitor_enum_cdr_op_cs::visit_enum (be_enum *node) << be_nl << "if (_tao_success)" << be_idt_nl << "{" << be_idt_nl - << "enumerator = static_cast<" << node->name () + << "_tao_enumerator = static_cast<" << node->name () << "> (_tao_temp);" << be_uidt_nl << "}" << be_uidt_nl << be_nl << "return _tao_success;" << be_uidt_nl |