diff options
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp')
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp index bde9bfa0731..df8603b9463 100644 --- a/TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp @@ -22,7 +22,7 @@ be_visitor_structure_any_op_ch::be_visitor_structure_any_op_ch ( { } -be_visitor_structure_any_op_ch::~be_visitor_structure_any_op_ch (void) +be_visitor_structure_any_op_ch::~be_visitor_structure_any_op_ch () { } @@ -41,7 +41,7 @@ be_visitor_structure_any_op_ch::visit_structure (be_structure *node) *os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl << "// " << __FILE__ << ":" << __LINE__ << be_nl_2; - be_module *module = 0; + be_module *module = nullptr; if (node->is_nested ()) { AST_Decl *d = node; @@ -51,7 +51,7 @@ be_visitor_structure_any_op_ch::visit_structure (be_structure *node) { if (nt == AST_Decl::NT_module) { - module = be_module::narrow_from_decl (d); + module = dynamic_cast<be_module*> (d); break; } else @@ -61,7 +61,7 @@ be_visitor_structure_any_op_ch::visit_structure (be_structure *node) } } - if (module != 0) + if (module != nullptr) { // Some compilers handle "any" operators in a namespace // corresponding to their module, others do not. @@ -95,7 +95,7 @@ be_visitor_structure_any_op_ch::visit_structure (be_structure *node) *os << be_global->core_versioning_end () << be_nl; - if (module != 0) + if (module != nullptr) { *os << "\n\n#endif"; } @@ -110,17 +110,17 @@ be_visitor_structure_any_op_ch::visit_structure (be_structure *node) -1); } - node->cli_hdr_any_op_gen (1); + node->cli_hdr_any_op_gen (true); return 0; } int be_visitor_structure_any_op_ch::visit_field (be_field *node) { - be_type *bt = 0; + be_type *bt = nullptr; // First generate the type information. - bt = be_type::narrow_from_decl (node->field_type ()); + bt = dynamic_cast<be_type*> (node->field_type ()); if (!bt) { |