diff options
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_valuetype')
20 files changed, 101 insertions, 101 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_ch.cpp index c84536d2103..e36744ab7c6 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_ch.cpp @@ -102,7 +102,7 @@ be_visitor_valuetype_any_op_ch::visit_valuetype (be_valuetype *node) *os << "\n\n#endif"; } - node->cli_hdr_any_op_gen (1); + node->cli_hdr_any_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp index 99b92890d4b..e12e0aea8cf 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp @@ -207,7 +207,7 @@ be_visitor_valuetype_any_op_cs::visit_valuetype (be_valuetype *node) *os << "\n\n#endif"; } - node->cli_stub_any_op_gen (1); + node->cli_stub_any_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/arglist.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/arglist.cpp index 16722cf0364..3047404a425 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/arglist.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/arglist.cpp @@ -79,7 +79,7 @@ be_visitor_obv_operation_arglist::visit_operation (be_operation *node) } else { - *os << "void)"; + *os << ")"; } be_visitor_context ctx = *this->ctx_; diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_ch.cpp index d2946a27aef..d25849117d9 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_ch.cpp @@ -87,7 +87,7 @@ be_visitor_valuetype_cdr_op_ch::visit_valuetype (be_valuetype *node) visitor.visit_valuetype (node); } - node->cli_hdr_cdr_op_gen (1); + node->cli_hdr_cdr_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/field_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/field_ch.cpp index 0fbfa14f7ea..772ff73a4b4 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/field_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/field_ch.cpp @@ -117,10 +117,10 @@ be_visitor_valuetype_field_ch::visit_array (be_array *node) // The get method. *os << pre_op () << "const _" << bt->local_name () << "_slice * " << ub->local_name () - << " (void) const" << post_op () << be_nl; + << " () const" << post_op () << be_nl; *os << pre_op () << "_" << bt->local_name () << "_slice * " << ub->local_name () - << " (void)" << post_op (); + << " ()" << post_op (); } else { @@ -131,11 +131,11 @@ be_visitor_valuetype_field_ch::visit_array (be_array *node) // The get method. *os << pre_op () << bt->name () << "_slice *" << ub->local_name () - << " (void)" << post_op () << be_nl; + << " ()" << post_op () << be_nl; // The get (read/write) method. *os << pre_op () << "const " << bt->name () << "_slice *" << ub->local_name () - << " (void) const" << post_op (); + << " () const" << post_op (); } return 0; @@ -195,7 +195,7 @@ be_visitor_valuetype_field_ch::visit_enum (be_enum *node) << bt->name () << ")" << post_op () << be_nl; // The get method. *os << pre_op () << bt->name () << " " << ub->local_name () - << " (void) const" << post_op (); + << " () const" << post_op (); return 0; } @@ -238,7 +238,7 @@ be_visitor_valuetype_field_ch::visit_interface (be_interface *node) // Get method. *os << pre_op () << "::" << bt->name () << "_ptr " << ub->local_name () - << " (void) const" << post_op (); + << " () const" << post_op (); return 0; } @@ -281,7 +281,7 @@ be_visitor_valuetype_field_ch::visit_interface_fwd (be_interface_fwd *node) // Get method. *os << pre_op () << bt->name () << "_ptr " << ub->local_name () - << " (void) const" << post_op (); + << " () const" << post_op (); return 0; } @@ -324,7 +324,7 @@ be_visitor_valuetype_field_ch::visit_valuebox (be_valuebox *node) // Get method. *os << pre_op () << bt->name () << " *" << ub->local_name () - << " (void) const" << post_op (); + << " () const" << post_op (); return 0; } @@ -367,7 +367,7 @@ be_visitor_valuetype_field_ch::visit_valuetype (be_valuetype *node) // Get method. *os << pre_op () << bt->name () << " *" << ub->local_name () - << " (void) const" << post_op (); + << " () const" << post_op (); return 0; } @@ -416,7 +416,7 @@ be_visitor_valuetype_field_ch::visit_valuetype_fwd (be_valuetype_fwd *node) // Get method. *os << pre_op () << bt->name () << " *" << ub->local_name () - << " (void) const" << post_op (); + << " () const" << post_op (); return 0; } @@ -469,7 +469,7 @@ be_visitor_valuetype_field_ch::visit_predefined_type (be_predefined_type *node) // Get method. *os << pre_op () << "::" << bt->name () << "_ptr " << ub->local_name () - << " (void) const" << post_op (); + << " () const" << post_op (); break; case AST_PredefinedType::PT_any: // Set method. @@ -478,11 +478,11 @@ be_visitor_valuetype_field_ch::visit_predefined_type (be_predefined_type *node) << post_op () << be_nl; // Get method (read-only). *os << pre_op () << "const ::" << bt->name () << " &" - << ub->local_name () << " (void) const" + << ub->local_name () << " () const" << post_op () << be_nl; // Get method (read/write). *os << pre_op () << "::" << bt->name () << " &" - << ub->local_name () << " (void)" + << ub->local_name () << " ()" << post_op (); break; case AST_PredefinedType::PT_void: @@ -495,7 +495,7 @@ be_visitor_valuetype_field_ch::visit_predefined_type (be_predefined_type *node) // Get method. *os << pre_op () << "::" << bt->name () << " " << ub->local_name () - << " (void) const" << post_op (); + << " () const" << post_op (); } return 0; @@ -577,11 +577,11 @@ be_visitor_valuetype_field_ch::visit_sequence (be_sequence *node) << post_op () << be_nl; // Read-only. *os << pre_op () << "const " << bt->name () << " &" - << ub->local_name () << " (void) const" + << ub->local_name () << " () const" << post_op () << be_nl; // Read/write. *os << pre_op () << bt->name () << " &" << ub->local_name () - << " (void)" + << " ()" << post_op (); return 0; @@ -621,7 +621,7 @@ be_visitor_valuetype_field_ch::visit_string (be_string *node) << post_op () << be_nl; // Get method. *os << pre_op () << "const char *" << ub->local_name () - << " (void) const" << post_op (); + << " () const" << post_op (); } else { @@ -636,7 +636,7 @@ be_visitor_valuetype_field_ch::visit_string (be_string *node) << post_op () << be_nl; // Get method. *os << pre_op() << "const ::CORBA::WChar *" << ub->local_name () - << " (void) const" << post_op(); + << " () const" << post_op(); } return 0; @@ -697,11 +697,11 @@ be_visitor_valuetype_field_ch::visit_structure (be_structure *node) << post_op () << be_nl; // Read-only. *os << pre_op () << "const " << bt->name () << " &"; - *os << ub->local_name () << " (void) const" + *os << ub->local_name () << " () const" << post_op () << be_nl // Read/write. << pre_op () << bt->name () << " &" << ub->local_name () - << " (void)" << post_op (); + << " ()" << post_op (); return 0; } @@ -782,11 +782,11 @@ be_visitor_valuetype_field_ch::visit_union (be_union *node) << post_op () << be_nl; // Read-only. *os << pre_op () << "const " << bt->name () << " &" - << ub->local_name () << " (void) const" + << ub->local_name () << " () const" << post_op () << be_nl; // Read/write. *os << pre_op () << bt->name () << " &" << ub->local_name () - << " (void)" << post_op (); + << " ()" << post_op (); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/field_ci.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/field_ci.cpp index 114f3c01e56..e765dc4fd1a 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/field_ci.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/field_ci.cpp @@ -17,7 +17,7 @@ be_visitor_valuetype_field_ci::be_visitor_valuetype_field_ci ( be_visitor_context *ctx ) : be_visitor_decl (ctx), - in_obv_space_ (0) + in_obv_space_ (false) { setenclosings (""); } diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/field_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/field_cs.cpp index 09cc71e4896..1e591d5837d 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/field_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/field_cs.cpp @@ -16,7 +16,7 @@ be_visitor_valuetype_field_cs::be_visitor_valuetype_field_cs ( be_visitor_context *ctx) : be_visitor_decl (ctx), - in_obv_space_ (0) + in_obv_space_ (false) { setenclosings (""); } @@ -162,7 +162,7 @@ be_visitor_valuetype_field_cs::visit_array (be_array *node) this->op_name (bu, os); - *os << "::" << ub->local_name () << " (void) const" << be_nl + *os << "::" << ub->local_name () << " () const" << be_nl << "{" << be_idt_nl; *os << "return this->" << bu->field_pd_prefix () << ub->local_name () @@ -175,7 +175,7 @@ be_visitor_valuetype_field_cs::visit_array (be_array *node) this->op_name (bu, os); - *os << "::" << ub->local_name () << " (void)" << be_nl + *os << "::" << ub->local_name () << " ()" << be_nl << "{" << be_idt_nl; *os << "return this->" << bu->field_pd_prefix () << ub->local_name () @@ -650,7 +650,7 @@ be_visitor_valuetype_field_cs::visit_predefined_type (be_predefined_type *node) os); *os << "::" << ub->local_name () - << " (void) const" << be_nl + << " () const" << be_nl << "{" << be_idt_nl << "return this->" << bu->field_pd_prefix () << ub->local_name () @@ -666,7 +666,7 @@ be_visitor_valuetype_field_cs::visit_predefined_type (be_predefined_type *node) this->op_name (bu, os); *os << "::" << ub->local_name () - << " (void) const" << be_nl + << " () const" << be_nl << "{" << be_idt_nl << "return this->" << bu->field_pd_prefix () << ub->local_name () @@ -680,7 +680,7 @@ be_visitor_valuetype_field_cs::visit_predefined_type (be_predefined_type *node) this->op_name (bu, os); *os << "::" << ub->local_name () - << " (void)" << be_nl + << " ()" << be_nl << "{" << be_idt_nl << "return this->" << bu->field_pd_prefix () << ub->local_name () @@ -698,7 +698,7 @@ be_visitor_valuetype_field_cs::visit_predefined_type (be_predefined_type *node) this->op_name (bu, os); *os << "::" << ub->local_name () - << " (void) const" << be_nl + << " () const" << be_nl << "{" << be_idt_nl << "return this->" << bu->field_pd_prefix () << ub->local_name () @@ -785,7 +785,7 @@ be_visitor_valuetype_field_cs::visit_sequence (be_sequence *node) os); *os << "::" << ub->local_name () - << " (void) const" << be_nl + << " () const" << be_nl << "{" << be_idt_nl << "return this->" << bu->field_pd_prefix () << ub->local_name () @@ -799,7 +799,7 @@ be_visitor_valuetype_field_cs::visit_sequence (be_sequence *node) this->op_name (bu, os); - *os << "::" << ub->local_name () << " (void)" << be_nl + *os << "::" << ub->local_name () << " ()" << be_nl << "{" << be_idt_nl << "return this->" << bu->field_pd_prefix () << ub->local_name () @@ -942,7 +942,7 @@ be_visitor_valuetype_field_cs::visit_string (be_string *node) os); *os << "::" << ub->local_name () - << " (void) const // get method" << be_nl + << " () const // get method" << be_nl << "{" << be_idt_nl << "return this->" << bu->field_pd_prefix () << ub->local_name () @@ -1026,7 +1026,7 @@ be_visitor_valuetype_field_cs::visit_structure (be_structure *node) this->op_name (bu, os); - *os << "::" << ub->local_name () << " (void) const" << be_nl + *os << "::" << ub->local_name () << " () const" << be_nl << "{" << be_idt_nl; *os << "return this->" << bu->field_pd_prefix () << ub->local_name () @@ -1040,7 +1040,7 @@ be_visitor_valuetype_field_cs::visit_structure (be_structure *node) this->op_name (bu, os); - *os << "::" << ub->local_name () << " (void)" << be_nl + *os << "::" << ub->local_name () << " ()" << be_nl << "{" << be_idt_nl; *os << "return this->" << bu->field_pd_prefix () << ub->local_name () @@ -1138,7 +1138,7 @@ be_visitor_valuetype_field_cs::visit_union (be_union *node) this->op_name (bu, os); - *os << "::" << ub->local_name () << " (void) const" << be_nl + *os << "::" << ub->local_name () << " () const" << be_nl << "{" << be_idt_nl << "return this->" << bu->field_pd_prefix () << ub->local_name () @@ -1152,7 +1152,7 @@ be_visitor_valuetype_field_cs::visit_union (be_union *node) this->op_name (bu, os); - *os << "::" << ub->local_name () << " (void)" << be_nl + *os << "::" << ub->local_name () << " ()" << be_nl << "{" << be_idt_nl << "return this->" << bu->field_pd_prefix () << ub->local_name () diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/marshal_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/marshal_cs.cpp index aa9426d846f..201b7a51ac1 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/marshal_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/marshal_cs.cpp @@ -219,7 +219,7 @@ be_visitor_valuetype_marshal_cs::visit_valuetype (be_valuetype *node) this->class_name (node, os); - *os << "::truncation_hook (void)" << be_nl + *os << "::truncation_hook ()" << be_nl << "{" << be_idt_nl << "this->require_truncation_ = true;" << be_uidt_nl << "}" << be_nl_2; diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype.cpp index 2c5d3dde82d..89ec6a82ac8 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype.cpp @@ -96,8 +96,8 @@ be_visitor_valuetype::visit_attribute (be_attribute *node) be_operation get_op (node->field_type (), AST_Operation::OP_noflags, node->name (), - 0, - 0); + false, + false); get_op.set_name ((UTL_IdList *) node->name ()->copy ()); @@ -138,8 +138,8 @@ be_visitor_valuetype::visit_attribute (be_attribute *node) be_operation set_op (&rt, AST_Operation::OP_noflags, node->name (), - 0, - 0); + false, + false); set_op.set_name ((UTL_IdList *) node->name ()->copy ()); set_op.be_add_argument (arg); @@ -842,7 +842,7 @@ be_visitor_valuetype::gen_init_defn (be_valuetype *node) // Generate the body. *os << "{" << be_nl << "public:" << be_idt_nl - << "virtual ~" << node->local_name () << "_init (void);" << be_nl; + << "virtual ~" << node->local_name () << "_init ();" << be_nl; *os << "virtual const char* tao_repository_id (void);\n" << be_nl; *os << "// create () goes here" << be_nl; @@ -880,11 +880,11 @@ be_visitor_valuetype::gen_init_impl (be_valuetype *node) node->local_name ()); // Destructor. - *os << fname << "::~" << lname << " (void)" << be_nl + *os << fname << "::~" << lname << " ()" << be_nl << "{" << be_nl << "}\n\n"; *os << "const char*" << be_nl - << fname << "::tao_repository_id (void)" << be_nl + << fname << "::tao_repository_id ()" << be_nl << "{" << be_idt_nl << "return " << node->local_name () << "::_tao_obv_static_repository_id ();" diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp index d772cc6a386..08e9c233fbc 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp @@ -176,8 +176,8 @@ be_visitor_valuetype_ch::visit_valuetype (be_valuetype *node) << node->local_name () << " ( ::CORBA::Exception *ex)" << be_idt_nl << ": exception (ex)" << be_uidt_nl << "{}" << be_nl_2 - << "virtual ~" << node->local_name () << " (void);" << be_nl - << "virtual ::CORBA::ValueBase *_copy_value (void);"; + << "virtual ~" << node->local_name () << " ();" << be_nl + << "virtual ::CORBA::ValueBase *_copy_value ();"; } *os << be_nl_2 @@ -190,18 +190,18 @@ be_visitor_valuetype_ch::visit_valuetype (be_valuetype *node) << node->local_name () << " *&new_object);" << be_uidt << be_uidt_nl << be_nl << "virtual const char* " - << "_tao_obv_repository_id (void) const;" + << "_tao_obv_repository_id () const;" << be_nl_2 << "virtual void " << "_tao_obv_truncatable_repo_ids (Repository_Id_List &) const;" << be_nl_2 << "static const char* " - << "_tao_obv_static_repository_id (void);"; + << "_tao_obv_static_repository_id ();"; if (be_global->tc_support ()) { *os << be_nl_2 - << "virtual ::CORBA::TypeCode_ptr _tao_type (void) const;"; + << "virtual ::CORBA::TypeCode_ptr _tao_type () const;"; } // Generate code for the valuetype definition. @@ -243,20 +243,20 @@ be_visitor_valuetype_ch::visit_valuetype (be_valuetype *node) if (node->n_supports () > 0) { *os << be_uidt_nl << be_nl << "public:" << be_idt_nl; - *os << be_nl << "virtual void _add_ref (void) = 0;" << be_nl; - *os << "virtual void _remove_ref (void) = 0;" << be_nl; - *os << "virtual ::CORBA::ValueBase *_tao_to_value (void);"; + *os << be_nl << "virtual void _add_ref () = 0;" << be_nl; + *os << "virtual void _remove_ref () = 0;" << be_nl; + *os << "virtual ::CORBA::ValueBase *_tao_to_value ();"; } // Generate the "protected" constructor so that users cannot // instantiate us. *os << be_uidt_nl << be_nl << "protected:" << be_idt_nl << node->local_name () - << " (void);" << be_nl; + << " ();" << be_nl; if (!is_an_amh_exception_holder) { - *os << "virtual ~" << node->local_name () << " (void);" + *os << "virtual ~" << node->local_name () << " ();" << be_nl_2; } @@ -307,7 +307,7 @@ be_visitor_valuetype_ch::visit_valuetype (be_valuetype *node) << "::CORBA::Boolean " << "_tao_unmarshal_state (TAO_InputCDR &);" << be_nl << "virtual void " - << "truncation_hook (void);" + << "truncation_hook ();" << be_uidt_nl << be_nl; *os << "private:" << be_idt_nl; diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ci.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ci.cpp index 7e2d503bde4..19f77f7a4be 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ci.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ci.cpp @@ -17,7 +17,7 @@ be_visitor_valuetype_ci::be_visitor_valuetype_ci (be_visitor_context *ctx) : be_visitor_valuetype (ctx), - opt_accessor_ (0) + opt_accessor_ (false) { } @@ -35,7 +35,7 @@ be_visitor_valuetype_ci::visit_valuetype (be_valuetype *node) if (node->opt_accessor ()) { - this->opt_accessor_ = 1; + this->opt_accessor_ = true; } TAO_OutStream *os = this->ctx_->stream (); @@ -44,7 +44,7 @@ be_visitor_valuetype_ci::visit_valuetype (be_valuetype *node) << "// " << __FILE__ << ":" << __LINE__ << be_nl_2; *os << "ACE_INLINE" << be_nl; - *os << node->name () << "::" << node->local_name () << " (void)" << be_nl; + *os << node->name () << "::" << node->local_name () << " ()" << be_nl; if (node->is_amh_excep_holder ()) { @@ -107,7 +107,7 @@ be_visitor_valuetype_ci::visit_field (be_field *node) { be_visitor_context ctx (*this->ctx_); be_visitor_valuetype_field_cs visitor (&ctx); - visitor.in_obv_space_ = 0; + visitor.in_obv_space_ = false; visitor.setenclosings ("ACE_INLINE "); if (visitor.visit_field (node) == -1) diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_cs.cpp index 983ae4985b3..f09a8cd5313 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_cs.cpp @@ -97,7 +97,7 @@ be_visitor_valuetype_cs::visit_valuetype (be_valuetype *node) // The _tao_obv_repository_id method. *os << "const char *" << be_nl << node->name () - << "::_tao_obv_repository_id (void) const" << be_nl + << "::_tao_obv_repository_id () const" << be_nl << "{" << be_idt_nl << "return this->_tao_obv_static_repository_id ();" << be_uidt_nl @@ -146,7 +146,7 @@ be_visitor_valuetype_cs::visit_valuetype (be_valuetype *node) { *os << "// TAO extension - the virtual _type method." << be_nl; *os << "::CORBA::TypeCode_ptr " << node->name () - << "::_tao_type (void) const" << be_nl; + << "::_tao_type () const" << be_nl; *os << "{" << be_idt_nl; *os << "return ::" << node->tc_name () << ";" << be_uidt_nl; *os << "}" << be_nl_2; @@ -161,7 +161,7 @@ be_visitor_valuetype_cs::visit_valuetype (be_valuetype *node) // virtual functions, including virtual destructors, wreaks havoc // with g++ >= 4.0 RTTI support when the // "-fvisibility-inlines-hidden" command line option is used. - *os << node->name () << "::~" << node->local_name () << " (void)" + *os << node->name () << "::~" << node->local_name () << " ()" << be_nl << "{}" << be_nl_2; @@ -243,7 +243,7 @@ be_visitor_valuetype_cs::visit_valuetype (be_valuetype *node) // The virtual _copy_value method. *os << "::CORBA::ValueBase *" << be_nl - << node->name () << "::_copy_value (void)" << be_nl + << node->name () << "::_copy_value ()" << be_nl << "{" << be_idt_nl << "::CORBA::ValueBase *ret_val = 0;" << be_nl << "ACE_NEW_THROW_EX (" << be_idt_nl @@ -323,7 +323,7 @@ be_visitor_valuetype_cs::visit_valuetype (be_valuetype *node) << node->local_name () << " *&new_object" << be_uidt_nl << ")" << be_uidt_nl << "{" << be_idt_nl - << "::CORBA::ValueBase *base = 0;" << be_nl + << "::CORBA::ValueBase *base {};" << be_nl << "::CORBA::Boolean is_indirected = false;" << be_nl << "::CORBA::Boolean is_null_object = false;" << be_nl << "::CORBA::Boolean const retval =" << be_idt_nl @@ -360,7 +360,7 @@ be_visitor_valuetype_cs::visit_valuetype (be_valuetype *node) { *os << be_nl_2 << "::CORBA::ValueBase *" << be_nl - << node->name () << "::_tao_to_value (void)" << be_nl + << node->name () << "::_tao_to_value ()" << be_nl << "{" << be_idt_nl << "return this;" << be_uidt_nl << "}"; diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_arglist_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_arglist_ch.cpp index 478f369c7cc..86bdaea0b8e 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_arglist_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_arglist_ch.cpp @@ -49,7 +49,7 @@ be_visitor_valuetype_init_arglist_ch::visit_factory (be_factory *node) } else { - os << "void)"; + os << ")"; } return 0; diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_ch.cpp index 883e31041dc..2f5c07dc02b 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_ch.cpp @@ -70,7 +70,7 @@ be_visitor_valuetype_init_ch::visit_valuetype (be_valuetype *node) { // Public constructor. os << be_nl - << node->local_name () << "_init (void);"; + << node->local_name () << "_init ();"; } if (this->visit_valuetype_scope (node) == -1) @@ -93,13 +93,13 @@ be_visitor_valuetype_init_ch::visit_valuetype (be_valuetype *node) // generate create_for_unmarshal os << be_nl_2 << "virtual ::CORBA::ValueBase *" << be_nl - << "create_for_unmarshal (void);"; + << "create_for_unmarshal ();"; if (node->supports_abstract ()) { os << be_nl_2 << "virtual ::CORBA::AbstractBase_ptr" << be_nl - << "create_for_unmarshal_abstract (void);" << be_uidt; + << "create_for_unmarshal_abstract ();" << be_uidt; } } @@ -109,20 +109,20 @@ be_visitor_valuetype_init_ch::visit_valuetype (be_valuetype *node) os << "// TAO-specific extensions" << be_uidt_nl << "public:" << be_idt_nl; - os << "virtual const char* tao_repository_id (void);"; + os << "virtual const char* tao_repository_id ();"; if (factory_style == be_valuetype::FS_ABSTRACT_FACTORY) { // Protected constructor. os << be_uidt_nl << be_nl << "protected:" << be_idt_nl - << node->local_name () << "_init (void);"; + << node->local_name () << "_init ();"; } // Protected virtual destructor. os << be_uidt_nl << be_nl << "protected:" << be_idt_nl - << "virtual ~" << node->local_name () << "_init (void);" + << "virtual ~" << node->local_name () << "_init ();" << be_uidt_nl << "};"; diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_cs.cpp index b253ae89b36..ed9631216f6 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_cs.cpp @@ -74,12 +74,12 @@ be_visitor_valuetype_init_cs::visit_valuetype (be_valuetype *node) // ctor *os << be_nl_2 - << fname << "::" << lname << " (void)" << be_nl + << fname << "::" << lname << " ()" << be_nl << "{" << be_nl << "}"; // dtor *os << be_nl_2 - << fname << "::~" << lname << " (void)" << be_nl + << fname << "::~" << lname << " ()" << be_nl << "{" << be_nl << "}"; // The _downcast method. @@ -94,7 +94,7 @@ be_visitor_valuetype_init_cs::visit_valuetype (be_valuetype *node) // tao_repository_id *os << be_nl_2 << "const char*" << be_nl - << fname << "::tao_repository_id (void)" << be_nl + << fname << "::tao_repository_id ()" << be_nl << "{" << be_idt_nl << "return ::" << node->full_name () << "::_tao_obv_static_repository_id ();" @@ -106,9 +106,9 @@ be_visitor_valuetype_init_cs::visit_valuetype (be_valuetype *node) // generate create_for_unmarshal() *os << be_nl_2 << "::CORBA::ValueBase *" << be_nl - << fname << "::create_for_unmarshal (void)" << be_nl + << fname << "::create_for_unmarshal ()" << be_nl << "{" << be_idt_nl - << "::CORBA::ValueBase *ret_val = 0;" << be_nl + << "::CORBA::ValueBase *ret_val = nullptr;" << be_nl << "ACE_NEW_THROW_EX (" << be_idt << be_idt_nl << "ret_val," << be_nl << "OBV_" << node->full_name () << "," << be_nl @@ -121,9 +121,9 @@ be_visitor_valuetype_init_cs::visit_valuetype (be_valuetype *node) { *os << be_nl_2 << "::CORBA::AbstractBase_ptr" << be_nl - << fname << "::create_for_unmarshal_abstract (void)" << be_nl + << fname << "::create_for_unmarshal_abstract ()" << be_nl << "{" << be_idt_nl - << "::CORBA::AbstractBase *ret_val = 0;" << be_nl + << "::CORBA::AbstractBase *ret_val = nullptr;" << be_nl << "ACE_NEW_THROW_EX (" << be_idt << be_idt_nl << "ret_val," << be_nl << "OBV_" << node->full_name () << "," << be_nl diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp index 22371e5e6d8..4f3c0688e53 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp @@ -145,8 +145,8 @@ be_visitor_valuetype_obv_ch::visit_valuetype (be_valuetype *node) *os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl << "// " << __FILE__ << ":" << __LINE__ ; - *os << be_nl_2 << "virtual void _add_ref (void);" << be_nl; - *os << "virtual void _remove_ref (void);"; + *os << be_nl_2 << "virtual void _add_ref ();" << be_nl; + *os << "virtual void _remove_ref ();"; } if (node->have_operation ()) @@ -166,7 +166,7 @@ be_visitor_valuetype_obv_ch::visit_valuetype (be_valuetype *node) *os << "OBV_"; } - *os << node->local_name () << " (void);"; + *os << node->local_name () << " ();"; // Initializing constructor. if (node->has_member ()) @@ -193,7 +193,7 @@ be_visitor_valuetype_obv_ch::visit_valuetype (be_valuetype *node) { *os << "OBV_"; } - *os << node->local_name () << " (void);"; + *os << node->local_name () << " ();"; // Virtual _copy_value() only provided in OBV_* class when // ::CORBA::DefaultValueRefCountBase has been included. @@ -205,7 +205,7 @@ be_visitor_valuetype_obv_ch::visit_valuetype (be_valuetype *node) if (this->obv_need_ref_counter (node)) { *os << be_uidt_nl << be_nl << "public:" << be_idt_nl - << "virtual ::CORBA::ValueBase *_copy_value (void);"; + << "virtual ::CORBA::ValueBase *_copy_value ();"; } // Map fields to private data. @@ -228,7 +228,7 @@ be_visitor_valuetype_obv_ch::visit_valuetype (be_valuetype *node) << "_tao_unmarshal_state (TAO_InputCDR &, TAO_ChunkInfo &);" << be_nl << "virtual void " - << "truncation_hook (void);" + << "truncation_hook ();" << be_uidt_nl << be_nl; *os << "private:" << be_idt; diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ci.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ci.cpp index e0b7151a6fe..05d34ef1a8a 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ci.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ci.cpp @@ -77,7 +77,7 @@ be_visitor_valuetype_obv_ci::visit_field (be_field *node) be_visitor_context new_ctx (*this->ctx_); be_visitor_valuetype_field_ci visitor (&new_ctx); - visitor.in_obv_space_ = 1; + visitor.in_obv_space_ = true; if (visitor.visit_field (node) == -1) { diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp index 5282c12a4bd..4ddab60b5af 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp @@ -51,7 +51,7 @@ be_visitor_valuetype_obv_cs::visit_valuetype (be_valuetype *node) *os << "OBV_"; } - *os << node->local_name () << " (void)" << be_nl; + *os << node->local_name () << " ()" << be_nl; *os << ": require_truncation_ (false)" << be_nl << "{}" << be_nl_2; @@ -86,7 +86,7 @@ be_visitor_valuetype_obv_cs::visit_valuetype (be_valuetype *node) { *os << "OBV_"; } - *os << node->local_name () << " (void)" << be_nl + *os << node->local_name () << " ()" << be_nl << "{}"; // Virtual _copy_value() only provided in OBV_* class when @@ -100,7 +100,7 @@ be_visitor_valuetype_obv_cs::visit_valuetype (be_valuetype *node) { *os << be_nl_2 << "::CORBA::ValueBase *" << be_nl - << node->full_obv_skel_name () << "::_copy_value (void)" << be_nl + << node->full_obv_skel_name () << "::_copy_value ()" << be_nl << "{" << be_idt_nl << "::CORBA::ValueBase *ret_val = 0;" << be_nl << "ACE_NEW_THROW_EX (" << be_idt_nl @@ -160,7 +160,7 @@ be_visitor_valuetype_obv_cs::visit_valuetype (be_valuetype *node) { *os << be_nl_2 << "void" << be_nl << node->full_obv_skel_name () - << "::_add_ref (void)" << be_nl + << "::_add_ref ()" << be_nl << "{" << be_idt_nl << "this->::CORBA::DefaultValueRefCountBase::_add_ref ();" << be_uidt_nl @@ -168,7 +168,7 @@ be_visitor_valuetype_obv_cs::visit_valuetype (be_valuetype *node) *os << be_nl << "void" << be_nl << node->full_obv_skel_name () - << "::_remove_ref (void)" << be_nl + << "::_remove_ref ()" << be_nl << "{" << be_idt_nl << "this->::CORBA::DefaultValueRefCountBase::_remove_ref ();" << be_uidt_nl @@ -190,7 +190,7 @@ be_visitor_valuetype_obv_cs::visit_field (be_field *node) { be_visitor_context ctx = (*this->ctx_); be_visitor_valuetype_field_cs visitor (&ctx); - visitor.in_obv_space_ = 1; + visitor.in_obv_space_ = true; if (visitor.visit_field (node) == -1) { diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_sh.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_sh.cpp index 6bf1a094e90..c7032dde502 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_sh.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_sh.cpp @@ -90,10 +90,10 @@ be_visitor_valuetype_sh::visit_valuetype (be_valuetype *node) *os << be_uidt << be_uidt_nl << "{" << be_nl << "protected:" << be_idt_nl - << class_name.c_str () << " (void);" << be_uidt_nl << be_nl + << class_name.c_str () << " ();" << be_uidt_nl << be_nl << "public:" << be_idt_nl; - *os << "virtual ~" << class_name.c_str () << " (void);" << be_nl << be_uidt_nl; + *os << "virtual ~" << class_name.c_str () << " ();" << be_nl << be_uidt_nl; // No copy constructor for locality constraint interface. *os << "private:" << be_idt_nl diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ss.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ss.cpp index 9ed8c1127a6..2b4f1096991 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ss.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ss.cpp @@ -73,7 +73,7 @@ be_visitor_valuetype_ss::visit_valuetype (be_valuetype *node) *os << full_skel_name << "::" << local_name_prefix << node_local_name - << " (void)" << be_nl + << " ()" << be_nl << "{}" << be_nl_2; // @@@ (JP) I'm commenting out the copy constructor for now. The @@ -112,7 +112,7 @@ be_visitor_valuetype_ss::visit_valuetype (be_valuetype *node) *os << full_skel_name << "::~" << local_name_prefix << node_local_name - << " (void)" << be_nl + << " ()" << be_nl << "{}"; return 0; |