diff options
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ch.cpp')
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ch.cpp | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ch.cpp index 6d64385f51c..56f8e7ee686 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ch.cpp @@ -20,7 +20,7 @@ be_visitor_valuebox_ch::be_visitor_valuebox_ch (be_visitor_context *ctx) { } -be_visitor_valuebox_ch::~be_visitor_valuebox_ch (void) +be_visitor_valuebox_ch::~be_visitor_valuebox_ch () { } @@ -72,17 +72,17 @@ be_visitor_valuebox_ch::visit_valuebox (be_valuebox *node) << "_downcast ( ::CORBA::ValueBase *);" << be_nl; // _copy_value method - *os << "::CORBA::ValueBase * _copy_value (void);" << be_nl_2; + *os << "::CORBA::ValueBase * _copy_value ();" << be_nl_2; // repository id methods *os << "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 &ids) const;" << be_nl_2 << "static const char* " - << "_tao_obv_static_repository_id (void);" << be_nl_2; + << "_tao_obv_static_repository_id ();" << be_nl_2; // unmarshal method *os << "static ::CORBA::Boolean _tao_unmarshal (" << be_idt << be_idt_nl @@ -92,7 +92,7 @@ be_visitor_valuebox_ch::visit_valuebox (be_valuebox *node) if (be_global->tc_support ()) { - *os << "virtual ::CORBA::TypeCode_ptr _tao_type (void) const;" + *os << "virtual ::CORBA::TypeCode_ptr _tao_type () const;" << be_nl_2; } @@ -117,7 +117,7 @@ be_visitor_valuebox_ch::visit_valuebox (be_valuebox *node) *os << be_uidt_nl << be_nl << "protected:" << be_idt_nl; - *os << "virtual ~" << node->local_name () << " (void);" << be_nl; + *os << "virtual ~" << node->local_name () << " ();" << be_nl; // Methods for marshalling and unmarshalling the value *os << "virtual ::CORBA::Boolean " @@ -183,9 +183,9 @@ be_visitor_valuebox_ch::visit_array (be_array *node) *os << "// Accessors and modifier" << be_nl; *os << "const " << node->full_name () << "_slice* " - << "_value (void) const;" << be_nl; + << "_value () const;" << be_nl; - *os << node->full_name () << "_slice* " << "_value (void);" << be_nl; + *os << node->full_name () << "_slice* " << "_value ();" << be_nl; *os << "void" << " _value (const " << node->full_name () << " val);" << be_nl_2; @@ -200,12 +200,12 @@ be_visitor_valuebox_ch::visit_array (be_array *node) // Explicit conversion functions *os << "const " << node->full_name () - << "_slice * _boxed_in (void) const;" + << "_slice * _boxed_in () const;" << be_nl; - *os << node->full_name () << "_slice * _boxed_inout (void);" << be_nl; + *os << node->full_name () << "_slice * _boxed_inout ();" << be_nl; - *os << node->full_name () << "_slice * _boxed_out (void);" << be_nl + *os << node->full_name () << "_slice * _boxed_out ();" << be_nl << be_nl; // Member variable of underlying type; @@ -270,7 +270,7 @@ be_visitor_valuebox_ch::visit_sequence (be_sequence *node) // generation for it. be_type *bt = dynamic_cast<be_type*> (node->base_type ()); - if (bt == 0) + if (bt == nullptr) { ACE_ERROR_RETURN ((LM_ERROR, "(%N:%l) be_visitor_valuebox_ch::" @@ -362,8 +362,8 @@ be_visitor_valuebox_ch::visit_sequence (be_sequence *node) } *os << "& operator[] ( ::CORBA::ULong index) const;" << be_nl_2 - << "::CORBA::ULong maximum (void) const;" << be_nl - << "::CORBA::ULong length (void) const;" << be_nl + << "::CORBA::ULong maximum () const;" << be_nl + << "::CORBA::ULong length () const;" << be_nl << "void length ( ::CORBA::ULong len);" << be_nl_2; // Member variable of underlying type; @@ -435,7 +435,7 @@ be_visitor_valuebox_ch::visit_string (be_string *node) // Accessor function takes no arguments and returns a const char * *os << "const " << node->full_name () - << " _value (void) const;" << be_nl_2; + << " _value () const;" << be_nl_2; *os << "// Modifiers" << be_nl; @@ -507,9 +507,9 @@ be_visitor_valuebox_ch::visit_structure (be_structure *node) // member. These functions have the same signatures as // acessor and modifier functions for union members. - AST_Decl *d = 0; - AST_Field *field = 0; - be_type *bt = 0; + AST_Decl *d = nullptr; + AST_Field *field = nullptr; + be_type *bt = nullptr; be_visitor_context ctx (*this->ctx_); for (UTL_ScopeActiveIterator si (node, UTL_Scope::IK_decls); @@ -518,7 +518,7 @@ be_visitor_valuebox_ch::visit_structure (be_structure *node) { d = si.item (); - if (d == 0 || (field = dynamic_cast<AST_Field*> (d)) == 0) + if (d == nullptr || (field = dynamic_cast<AST_Field*> (d)) == nullptr) { ACE_ERROR ((LM_ERROR, "(%N:%l) be_visitor_valuebox_ch::visit_structure -" @@ -608,9 +608,9 @@ be_visitor_valuebox_ch::visit_union (be_union *node) // Now generate the accessor and modifier functions for each union // member. - AST_Decl *d = 0; - AST_Field *field = 0; - be_type *bt = 0; + AST_Decl *d = nullptr; + AST_Field *field = nullptr; + be_type *bt = nullptr; be_visitor_context ctx (*this->ctx_); for (UTL_ScopeActiveIterator si (node, UTL_Scope::IK_decls); @@ -619,7 +619,7 @@ be_visitor_valuebox_ch::visit_union (be_union *node) { d = si.item (); - if (d == 0 || (field = dynamic_cast<AST_Field*> (d)) == 0) + if (d == nullptr || (field = dynamic_cast<AST_Field*> (d)) == nullptr) { ACE_ERROR ((LM_ERROR, "(%N:%l) be_visitor_valuebox_ch::visit_union -" @@ -725,7 +725,7 @@ be_visitor_valuebox_ch::emit_for_predef_enum (be_type *node, *os << "// Accessor and modifier" << be_nl; *os << node->full_name () << type_suffix - << " _value (void) const;" << be_nl; + << " _value () const;" << be_nl; *os << "void" << " _value (" << node->full_name () << type_suffix << " val);" << be_nl_2; @@ -741,7 +741,7 @@ be_visitor_valuebox_ch::emit_for_predef_enum (be_type *node, } void -be_visitor_valuebox_ch::emit_default_constructor (void) +be_visitor_valuebox_ch::emit_default_constructor () { TAO_OutStream *os = this->ctx_->stream (); @@ -751,7 +751,7 @@ be_visitor_valuebox_ch::emit_default_constructor (void) *os << be_nl_2 << "// Constructors" << be_nl; // Public default constructor - *os << vb_node->local_name () << " (void);" << be_nl; + *os << vb_node->local_name () << " ();" << be_nl; } void @@ -771,7 +771,7 @@ be_visitor_valuebox_ch::emit_constructor_one_arg (be_decl *node, } void -be_visitor_valuebox_ch::emit_copy_constructor (void) +be_visitor_valuebox_ch::emit_copy_constructor () { TAO_OutStream *os = this->ctx_->stream (); @@ -812,11 +812,11 @@ be_visitor_valuebox_ch::emit_boxed_access (be_decl *node, // Access to the boxed value for method signatures *os << const_prefix << node->full_name () << type_suffix << in_ref_modifier - << " _boxed_in (void) const;" << be_nl + << " _boxed_in () const;" << be_nl << node->full_name () << type_suffix << "&" - << " _boxed_inout (void);" << be_nl + << " _boxed_inout ();" << be_nl << node->full_name () << type_suffix << out_ref_modifier << "&" - << " _boxed_out (void);" << be_nl; + << " _boxed_out ();" << be_nl; } void @@ -827,11 +827,11 @@ be_visitor_valuebox_ch::emit_accessor_modifier (be_decl *node) *os << "// Accessors and modifier" << be_nl; // Public accessor method (const) - *os << "const " << node->full_name () << "& _value (void) const;" + *os << "const " << node->full_name () << "& _value () const;" << be_nl; // Public accessor method - *os << node->full_name () << "& _value (void);" << be_nl; + *os << node->full_name () << "& _value ();" << be_nl; // Public modifier method *os << "void" << " _value (const " << node->full_name () << "& val);" |