diff options
Diffstat (limited to 'TAO')
1621 files changed, 7881 insertions, 8209 deletions
diff --git a/TAO/TAO_IDL/ast/ast_constant.cpp b/TAO/TAO_IDL/ast/ast_constant.cpp index 52eab82cd74..9a92df4f4fc 100644 --- a/TAO/TAO_IDL/ast/ast_constant.cpp +++ b/TAO/TAO_IDL/ast/ast_constant.cpp @@ -135,7 +135,7 @@ AST_Constant::AST_Constant (AST_Expression::ExprType t, n), pd_constant_value (v), pd_et (t), - ifr_added_ (0) + ifr_added_ (false) { } @@ -148,7 +148,7 @@ AST_Constant::AST_Constant (AST_Expression::ExprType t, n), pd_constant_value (v), pd_et (t), - ifr_added_ (0) + ifr_added_ (false) { // Avoids a truncation warning on MSVC when assigning a decimal // literal to a float constant. Must also check that the input @@ -290,7 +290,7 @@ AST_Constant::enum_full_name () { UTL_Scope * const s = this->defined_in (); AST_Decl * const d = s->lookup_by_name (this->pd_constant_value->n (), - 1); + true); return (d ? (ScopeAsDecl (d->defined_in ()))->name () : nullptr); } else diff --git a/TAO/TAO_IDL/ast/ast_decl.cpp b/TAO/TAO_IDL/ast/ast_decl.cpp index 5ad0e4bb1c1..e2803ef69af 100644 --- a/TAO/TAO_IDL/ast/ast_decl.cpp +++ b/TAO/TAO_IDL/ast/ast_decl.cpp @@ -895,16 +895,16 @@ AST_Decl::is_child (AST_Decl *s) AST_Decl *d = ScopeAsDecl (this->defined_in ()); if (!d) { - return 0; + return false; } if (!ACE_OS::strcmp (d->full_name (), s->full_name ())) { - return 1; + return true; } } - return 0; // Not a child. + return false; // Not a child. } bool diff --git a/TAO/TAO_IDL/ast/ast_exception.cpp b/TAO/TAO_IDL/ast/ast_exception.cpp index f57812ca7eb..c7b023cbfb2 100644 --- a/TAO/TAO_IDL/ast/ast_exception.cpp +++ b/TAO/TAO_IDL/ast/ast_exception.cpp @@ -176,7 +176,7 @@ AST_Exception::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list) // Not in recursion. if (self_test) this->in_recursion_ = 0; - return 0; //this->in_recursion_; + return false; //this->in_recursion_; } // Dump this AST_Exception node to the ostream o. diff --git a/TAO/TAO_IDL/ast/ast_expression.cpp b/TAO/TAO_IDL/ast/ast_expression.cpp index 781a35d2a72..4471118069d 100644 --- a/TAO/TAO_IDL/ast/ast_expression.cpp +++ b/TAO/TAO_IDL/ast/ast_expression.cpp @@ -1604,9 +1604,9 @@ incompatible_types (AST_Expression::ExprType t1, case AST_Expression::EV_ulonglong: case AST_Expression::EV_octet: case AST_Expression::EV_bool: - return 0; + return false; default: - return 1; + return true; } case AST_Expression::EV_float: case AST_Expression::EV_double: @@ -1616,9 +1616,9 @@ incompatible_types (AST_Expression::ExprType t1, case AST_Expression::EV_float: case AST_Expression::EV_double: case AST_Expression::EV_longdouble: - return 0; + return false; default: - return 1; + return true; } case AST_Expression::EV_fixed: return t2 != AST_Expression::EV_fixed; @@ -1632,7 +1632,7 @@ incompatible_types (AST_Expression::ExprType t1, case AST_Expression::EV_void: case AST_Expression::EV_none: default: - return 0; + return false; } } @@ -2540,8 +2540,8 @@ AST_Expression::type_mismatch (AST_Expression::ExprType t) return incompatible_types (this->pd_ev->et, t); } - bool v1_mismatch = 0; - bool v2_mismatch = 0; + bool v1_mismatch = false; + bool v2_mismatch = false; if (this->pd_v1 != nullptr) { @@ -2567,7 +2567,7 @@ AST_Expression::check_and_coerce (AST_Expression::ExprType t, { AST_Decl *enum_val = idl_global->scopes ().top_non_null ()->lookup_by_name (this->pd_n, - 1); + true); if (enum_val != nullptr) { diff --git a/TAO/TAO_IDL/ast/ast_interface.cpp b/TAO/TAO_IDL/ast/ast_interface.cpp index 45558733013..0ded8e138f0 100644 --- a/TAO/TAO_IDL/ast/ast_interface.cpp +++ b/TAO/TAO_IDL/ast/ast_interface.cpp @@ -412,7 +412,7 @@ AST_Interface::fwd_redefinition_helper (AST_Interface *&i, void AST_Interface::redef_clash_populate_r (AST_Type *t) { - if (this->insert_non_dup (t, 0) == 0) + if (this->insert_non_dup (t, false) == 0) { return; } diff --git a/TAO/TAO_IDL/ast/ast_module.cpp b/TAO/TAO_IDL/ast/ast_module.cpp index 53645653611..feb4facbaa5 100644 --- a/TAO/TAO_IDL/ast/ast_module.cpp +++ b/TAO/TAO_IDL/ast/ast_module.cpp @@ -105,7 +105,7 @@ AST_Decl::NodeType const AST_Module::AST_Module (UTL_ScopedName *n, AST_Module *previous) : AST_Decl (AST_Decl::NT_module, n), UTL_Scope (AST_Decl::NT_module), - pd_has_nested_valuetype_ (0), + pd_has_nested_valuetype_ (false), previous_opening_ (previous), last_in_same_parent_scope_ (this), from_inst_ (nullptr), @@ -168,7 +168,7 @@ AST_Module::set_has_nested_valuetype () } } - this->pd_has_nested_valuetype_ = 1; + this->pd_has_nested_valuetype_ = true; } bool diff --git a/TAO/TAO_IDL/ast/ast_type.cpp b/TAO/TAO_IDL/ast/ast_type.cpp index 08c9d0059f9..282635fe6f9 100644 --- a/TAO/TAO_IDL/ast/ast_type.cpp +++ b/TAO/TAO_IDL/ast/ast_type.cpp @@ -81,10 +81,10 @@ AST_Type::AST_Type (AST_Decl::NodeType nt, : COMMON_Base (), AST_Decl (nt, n), - ifr_added_ (0), - ifr_fwd_added_ (0), + ifr_added_ (false), + ifr_fwd_added_ (false), size_type_ (AST_Type::SIZE_UNKNOWN), - has_constructor_ (0), + has_constructor_ (false), nested_type_name_ (nullptr), in_recursion_ (-1), recursing_in_legal_pk_ (false) @@ -140,7 +140,7 @@ bool AST_Type::in_recursion (ACE_Unbounded_Queue<AST_Type *> & /*list*/) { // By default we are not involved in recursion. - return 0; + return false; } bool diff --git a/TAO/TAO_IDL/ast/ast_union.cpp b/TAO/TAO_IDL/ast/ast_union.cpp index 34bb18159a8..08606bab3db 100644 --- a/TAO/TAO_IDL/ast/ast_union.cpp +++ b/TAO/TAO_IDL/ast/ast_union.cpp @@ -304,7 +304,7 @@ AST_Union::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list) // Not in recursion. if (self_test) this->in_recursion_ = 0; - return 0; + return false; } // Look up the default branch in union. @@ -686,7 +686,7 @@ AST_Union::compute_default_value () this->default_value_.u.wchar_val = 0; break; case AST_Expression::EV_bool: - this->default_value_.u.bool_val = 0; + this->default_value_.u.bool_val = false; break; case AST_Expression::EV_enum: this->default_value_.u.enum_val = 0; diff --git a/TAO/TAO_IDL/be/be_codegen.cpp b/TAO/TAO_IDL/be/be_codegen.cpp index 6b2859ef63a..876c01a32e2 100644 --- a/TAO/TAO_IDL/be/be_codegen.cpp +++ b/TAO/TAO_IDL/be/be_codegen.cpp @@ -378,7 +378,7 @@ TAO_CodeGen::start_client_stubs (const char *fname) // header file. *this->client_stubs_ << "\n\n#if !defined (__ACE_INLINE__)"; *this->client_stubs_ << "\n#include \"" - << be_global->be_get_client_inline_fname (1) + << be_global->be_get_client_inline_fname (true) << "\""; *this->client_stubs_ << "\n#endif /* !defined INLINE */"; } @@ -498,7 +498,7 @@ TAO_CodeGen::start_server_header (const char *fname) UTL_String idl_name_str (idl_name); char const * const server_hdr = - BE_GlobalData::be_get_server_hdr (&idl_name_str, 1); + BE_GlobalData::be_get_server_hdr (&idl_name_str, true); idl_name_str.destroy (); @@ -655,7 +655,7 @@ TAO_CodeGen::start_server_skeletons (const char *fname) // Generate the include statement for the server header. *this->server_skeletons_ << "\n#include \"" - << be_global->be_get_server_hdr_fname (1) + << be_global->be_get_server_hdr_fname (true) << "\""; this->gen_skel_src_includes (); @@ -956,7 +956,7 @@ TAO_CodeGen::start_anyop_source (const char *fname) // Generate the include statement for the client header. We just // need to put only the base names. Path info is not required. *this->anyop_source_ << "\n#include \"" - << be_global->be_get_anyop_header_fname (1) + << be_global->be_get_anyop_header_fname (true) << "\""; this->gen_typecode_includes (this->anyop_source_); @@ -1608,7 +1608,7 @@ TAO_CodeGen::start_implementation_header (const char *fname) "", "_H_"); - const char* server_hdr = BE_GlobalData::be_get_server_hdr_fname (1); + const char* server_hdr = BE_GlobalData::be_get_server_hdr_fname (true); *this->implementation_header_<< "#include \"" << server_hdr <<"\""; @@ -1695,7 +1695,7 @@ TAO_CodeGen::end_client_header () // Insert the code to include the inline file. *this->client_header_ << "#if defined (__ACE_INLINE__)\n"; *this->client_header_ << "#include \"" - << be_global->be_get_client_inline_fname (1) + << be_global->be_get_client_inline_fname (true) << "\"\n"; *this->client_header_ << "#endif /* defined INLINE */\n\n"; } @@ -1838,7 +1838,7 @@ TAO_CodeGen::end_server_template_header () << be_nl_2 << "#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)"; *this->server_template_header_ << be_nl << "#include \"" - << be_global->be_get_server_template_skeleton_fname (1) + << be_global->be_get_server_template_skeleton_fname (true) << "\""; *this->server_template_header_ << be_nl << "#endif /* defined REQUIRED SOURCE */"; @@ -1848,7 +1848,7 @@ TAO_CodeGen::end_server_template_header () << be_nl_2 << "#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)"; *this->server_template_header_ << be_nl << "#pragma implementation (\"" - << be_global->be_get_server_template_skeleton_fname (1) + << be_global->be_get_server_template_skeleton_fname (true) << "\")"; *this->server_template_header_ << be_nl << "#endif /* defined REQUIRED PRAGMA */"; @@ -2578,7 +2578,7 @@ TAO_CodeGen::gen_stub_hdr_includes () UTL_String idl_name_str = idl_name; char const * const anyop_hdr = - BE_GlobalData::be_get_anyop_header (&idl_name_str, 1); + BE_GlobalData::be_get_anyop_header (&idl_name_str, true); idl_name_str.destroy (); diff --git a/TAO/TAO_IDL/be/be_component.cpp b/TAO/TAO_IDL/be/be_component.cpp index 28b866663db..5262752f986 100644 --- a/TAO/TAO_IDL/be/be_component.cpp +++ b/TAO/TAO_IDL/be/be_component.cpp @@ -364,18 +364,12 @@ be_component::gen_is_a_ancestors (TAO_OutStream *os) while (ancestor != nullptr) { - *os << "std::strcmp (" << be_idt << be_idt_nl - << "value," << be_nl - << "\"" << ancestor->repoID () << "\"" << be_uidt_nl - << ") == 0 ||" << be_uidt_nl; + *os << "std::strcmp (value, \"" << ancestor->repoID () << "\") == 0 ||" << be_nl; ancestor = ancestor->base_component (); } - *os << "std::strcmp (" << be_idt << be_idt_nl - << "value," << be_nl - << "\"IDL:omg.org/Components/CCMObject:1.0\"" << be_uidt_nl - << ") == 0" << be_uidt << be_uidt_nl; + *os << "std::strcmp (value, \"IDL:omg.org/Components/CCMObject:1.0\") == 0" << be_nl; return 0; } diff --git a/TAO/TAO_IDL/be/be_eventtype.cpp b/TAO/TAO_IDL/be/be_eventtype.cpp index 8ca3b873ff4..6b84169bffc 100644 --- a/TAO/TAO_IDL/be/be_eventtype.cpp +++ b/TAO/TAO_IDL/be/be_eventtype.cpp @@ -27,7 +27,7 @@ be_eventtype::be_eventtype (UTL_ScopedName *n, bool abstract, bool truncatable, bool custom) - : COMMON_Base (0, + : COMMON_Base (false, abstract), AST_Decl (AST_Decl::NT_eventtype, n), @@ -39,7 +39,7 @@ be_eventtype::be_eventtype (UTL_ScopedName *n, n_inherits, inherits_flat, n_inherits_flat, - 0, + false, abstract), be_scope (AST_Decl::NT_eventtype), be_decl (AST_Decl::NT_eventtype, @@ -51,7 +51,7 @@ be_eventtype::be_eventtype (UTL_ScopedName *n, n_inherits, inherits_flat, n_inherits_flat, - 0, + false, abstract), AST_ValueType (n, inherits, diff --git a/TAO/TAO_IDL/be/be_factory.cpp b/TAO/TAO_IDL/be/be_factory.cpp index e1c1f936b2f..9aa2fb1d5e5 100644 --- a/TAO/TAO_IDL/be/be_factory.cpp +++ b/TAO/TAO_IDL/be/be_factory.cpp @@ -23,8 +23,8 @@ #include "global_extern.h" be_factory::be_factory (UTL_ScopedName *n) - : COMMON_Base (1, - 0), //@@ Always local, never abstract + : COMMON_Base (true, + false), //@@ Always local, never abstract AST_Decl (AST_Decl::NT_factory, n), UTL_Scope (AST_Decl::NT_factory), @@ -60,7 +60,7 @@ be_factory::be_add_argument (AST_Argument *arg) { this->add_to_scope (arg); this->add_to_referenced (arg, - 0, + false, nullptr); return arg; } diff --git a/TAO/TAO_IDL/be/be_finder.cpp b/TAO/TAO_IDL/be/be_finder.cpp index 229df018592..43416cfdf60 100644 --- a/TAO/TAO_IDL/be/be_finder.cpp +++ b/TAO/TAO_IDL/be/be_finder.cpp @@ -15,8 +15,8 @@ #include "be_visitor.h" be_finder::be_finder (UTL_ScopedName *n) - : COMMON_Base (1, - 0), //@@ Always local, never abstract + : COMMON_Base (true, + false), //@@ Always local, never abstract AST_Decl (AST_Decl::NT_finder, n), UTL_Scope (AST_Decl::NT_finder), diff --git a/TAO/TAO_IDL/be/be_global.cpp b/TAO/TAO_IDL/be/be_global.cpp index 7b93bf1e9ba..2aeaa3f633b 100644 --- a/TAO/TAO_IDL/be/be_global.cpp +++ b/TAO/TAO_IDL/be/be_global.cpp @@ -96,7 +96,7 @@ BE_GlobalData::BE_GlobalData () any_support_ (true), cdr_support_ (true), tc_support_ (true), - obv_opt_accessor_ (0), + obv_opt_accessor_ (false), gen_impl_files_ (false), gen_impl_debug_info_ (false), gen_copy_ctor_ (false), @@ -3420,7 +3420,7 @@ BE_GlobalData::parse_args (long &i, char **av) else if (av[i][2] == 't') { // Optimized typecode generation. - be_global->opt_tc (1); + be_global->opt_tc (true); } else if (av[i][2] == 'p') { @@ -3488,7 +3488,7 @@ BE_GlobalData::parse_args (long &i, char **av) size_t j; size_t k = i; // Generate implementation files. - be_global->gen_impl_files (1); + be_global->gen_impl_files (true); for (j = 0; j < options; ++j) { diff --git a/TAO/TAO_IDL/be/be_interface.cpp b/TAO/TAO_IDL/be/be_interface.cpp index 7cb827f423c..ba3b0ce5ff0 100644 --- a/TAO/TAO_IDL/be/be_interface.cpp +++ b/TAO/TAO_IDL/be/be_interface.cpp @@ -2309,10 +2309,7 @@ be_interface::is_a_helper (be_interface * /*derived*/, TAO_OutStream *os) { // Emit the comparison code. - *os << "std::strcmp (" << be_idt << be_idt_nl - << "value," << be_nl - << "\"" << bi->repoID () << "\"" << be_uidt_nl - << ") == 0 ||" << be_uidt_nl; + *os << "std::strcmp (value, \"" << bi->repoID () << "\") == 0 ||" << be_nl; return 0; } @@ -2756,34 +2753,25 @@ be_interface::gen_is_a_ancestors (TAO_OutStream *os) if (this->is_abstract () || this->has_mixed_parentage ()) { - *os << "std::strcmp (" << be_idt << be_idt_nl - << "value," << be_nl - << "\"IDL:omg.org/CORBA/AbstractBase:1.0\"" << be_uidt_nl - << ") == 0"; + *os << "std::strcmp (value, \"IDL:omg.org/CORBA/AbstractBase:1.0\") == 0"; } else if (this->is_local ()) { - *os << "std::strcmp (" << be_idt << be_idt_nl - << "value," << be_nl - << "\"IDL:omg.org/CORBA/LocalObject:1.0\"" << be_uidt_nl - << ") == 0"; + *os << "std::strcmp (value, \"IDL:omg.org/CORBA/LocalObject:1.0\") == 0"; } if (this->has_mixed_parentage () || this->is_local ()) { - *os << " ||" << be_uidt_nl; + *os << " ||" << be_nl; } else if (this->is_abstract ()) { - *os << be_uidt << be_uidt_nl; + *os << be_nl; } if (! this->is_abstract ()) { - *os << "std::strcmp (" << be_idt << be_idt_nl - << "value," << be_nl - << "\"IDL:omg.org/CORBA/Object:1.0\"" << be_uidt_nl - << ") == 0" << be_uidt << be_uidt_nl; + *os << "std::strcmp (value, \"IDL:omg.org/CORBA/Object:1.0\") == 0" << be_nl; } return 0; diff --git a/TAO/TAO_IDL/be/be_operation.cpp b/TAO/TAO_IDL/be/be_operation.cpp index 60fdf5067fd..012bc7bdd08 100644 --- a/TAO/TAO_IDL/be/be_operation.cpp +++ b/TAO/TAO_IDL/be/be_operation.cpp @@ -86,7 +86,7 @@ be_operation::be_add_argument (AST_Argument *arg) { this->add_to_scope (arg); this->add_to_referenced (arg, - 0, + false, nullptr); return arg; } diff --git a/TAO/TAO_IDL/be/be_util.cpp b/TAO/TAO_IDL/be/be_util.cpp index 980ab36b945..cc605a4e5c1 100644 --- a/TAO/TAO_IDL/be/be_util.cpp +++ b/TAO/TAO_IDL/be/be_util.cpp @@ -279,7 +279,7 @@ be_util::prep_be_arg (char *s) } else if (ACE_OS::strstr (arg, obv_opt_accessor) == arg) { - be_global->obv_opt_accessor (1); + be_global->obv_opt_accessor (true); } else if (ACE_OS::strstr (arg, ciao_container_type) == arg) { diff --git a/TAO/TAO_IDL/be/be_valuetype.cpp b/TAO/TAO_IDL/be/be_valuetype.cpp index d924ac798e0..02dcf8f8228 100644 --- a/TAO/TAO_IDL/be/be_valuetype.cpp +++ b/TAO/TAO_IDL/be/be_valuetype.cpp @@ -37,7 +37,7 @@ be_valuetype::be_valuetype (UTL_ScopedName *n, bool abstract, bool truncatable, bool custom) - : COMMON_Base (0, + : COMMON_Base (false, abstract), AST_Decl (AST_Decl::NT_valuetype, n), @@ -49,7 +49,7 @@ be_valuetype::be_valuetype (UTL_ScopedName *n, n_inherits, inherits_flat, n_inherits_flat, - 0, + false, abstract), be_scope (AST_Decl::NT_valuetype), be_decl (AST_Decl::NT_valuetype, @@ -61,7 +61,7 @@ be_valuetype::be_valuetype (UTL_ScopedName *n, n_inherits, inherits_flat, n_inherits_flat, - 0, + false, abstract), AST_ValueType (n, inherits, @@ -197,7 +197,7 @@ be_valuetype::determine_factory_style () // Check whether we have at least one operation or not. bool have_operation = this->have_operation (); - bool have_factory = 0; + bool have_factory = false; // Try only our own scope. if (this->nmembers () > 0) @@ -225,7 +225,7 @@ be_valuetype::determine_factory_style () if (node_type == AST_Decl::NT_factory) { - have_factory = 1; + have_factory = true; break; } diff --git a/TAO/TAO_IDL/be/be_visitor_any_extracted_type_decl.cpp b/TAO/TAO_IDL/be/be_visitor_any_extracted_type_decl.cpp index 727c236143c..e9bc800f9a7 100644 --- a/TAO/TAO_IDL/be/be_visitor_any_extracted_type_decl.cpp +++ b/TAO/TAO_IDL/be/be_visitor_any_extracted_type_decl.cpp @@ -59,7 +59,7 @@ int be_visitor_any_extracted_type_decl::visit_eventtype ( be_eventtype *node) { - os_ << node->full_name () << " * " << var_name_ << " = 0;"; + os_ << node->full_name () << " * " << var_name_ << " = nullptr;"; return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_arg_traits.cpp b/TAO/TAO_IDL/be/be_visitor_arg_traits.cpp index 67a02e82e40..c759000c029 100644 --- a/TAO/TAO_IDL/be/be_visitor_arg_traits.cpp +++ b/TAO/TAO_IDL/be/be_visitor_arg_traits.cpp @@ -1212,7 +1212,7 @@ be_visitor_arg_traits::generated (be_decl *node) const case TAO_CodeGen::TAO_ROOT_SH: return node->srv_arg_traits_gen (); default: - return 0; + return false; } } diff --git a/TAO/TAO_IDL/be/be_visitor_array/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_array/any_op_ch.cpp index 67a4d2d56bf..ed5cb8e796f 100644 --- a/TAO/TAO_IDL/be/be_visitor_array/any_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_array/any_op_ch.cpp @@ -45,6 +45,6 @@ be_visitor_array_any_op_ch::visit_array (be_array *node) *os << be_global->core_versioning_end () << be_nl; - 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_array/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_array/any_op_cs.cpp index 6f37294187f..cd6b9c256c3 100644 --- a/TAO/TAO_IDL/be/be_visitor_array/any_op_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_array/any_op_cs.cpp @@ -115,6 +115,6 @@ be_visitor_array_any_op_cs::visit_array (be_array *node) *os << be_global->core_versioning_end () << be_nl; - 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_array/array_ch.cpp b/TAO/TAO_IDL/be/be_visitor_array/array_ch.cpp index b499783f07a..bfcec987fbd 100644 --- a/TAO/TAO_IDL/be/be_visitor_array/array_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_array/array_ch.cpp @@ -306,7 +306,7 @@ int be_visitor_array_ch::visit_array (be_array *node) *os << storage_class.c_str() << node->nested_type_name (scope, "_slice", "_") << " *" << be_nl; *os << node->nested_type_name (scope, "_alloc", "_") - << " (void);" << be_nl_2; + << " ();" << be_nl_2; *os << storage_class.c_str() << "void" << be_nl << node->nested_type_name (scope, "_free", "_") << " (" << be_idt << be_idt_nl; diff --git a/TAO/TAO_IDL/be/be_visitor_array/array_ci.cpp b/TAO/TAO_IDL/be/be_visitor_array/array_ci.cpp index b8455fbae3f..eafc05c4e2d 100644 --- a/TAO/TAO_IDL/be/be_visitor_array/array_ci.cpp +++ b/TAO/TAO_IDL/be/be_visitor_array/array_ci.cpp @@ -341,7 +341,7 @@ int be_visitor_array_ci::visit_array (be_array *node) *os << be_nl_2 << "ACE_INLINE" << be_nl << fname << "_slice *" << be_nl - << "TAO::Array_Traits<" << fname << "_forany>::alloc (void)" + << "TAO::Array_Traits<" << fname << "_forany>::alloc ()" << be_idt << be_uidt_nl << "{" << be_idt_nl << "return " << fname << "_alloc ();" << be_uidt_nl diff --git a/TAO/TAO_IDL/be/be_visitor_array/array_cs.cpp b/TAO/TAO_IDL/be/be_visitor_array/array_cs.cpp index af82023fa96..df353da2a53 100644 --- a/TAO/TAO_IDL/be/be_visitor_array/array_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_array/array_cs.cpp @@ -111,7 +111,7 @@ int be_visitor_array_cs::visit_array (be_array *node) // alloc method. *os << fname << "_slice *" << be_nl; - *os << fname << "_alloc (void)" << be_nl; + *os << fname << "_alloc ()" << be_nl; *os << "{" << be_idt_nl; *os << fname << "_slice *retval = 0;" << be_nl; *os << "ACE_NEW_RETURN (retval, "; diff --git a/TAO/TAO_IDL/be/be_visitor_array/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_array/cdr_op_ch.cpp index 7d9a2616112..b65ee3bf8c8 100644 --- a/TAO/TAO_IDL/be/be_visitor_array/cdr_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_array/cdr_op_ch.cpp @@ -129,6 +129,6 @@ be_visitor_array_cdr_op_ch::visit_array (be_array *node) *os << be_global->core_versioning_end (); - 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_attr_return.cpp b/TAO/TAO_IDL/be/be_visitor_attr_return.cpp index 37873af1783..731e32bb18d 100644 --- a/TAO/TAO_IDL/be/be_visitor_attr_return.cpp +++ b/TAO/TAO_IDL/be/be_visitor_attr_return.cpp @@ -114,7 +114,7 @@ be_visitor_attr_return::visit_predefined_type ( << this->attr_name_string_.c_str () << ".in ());"; break; case AST_PredefinedType::PT_any: - os_ << "::CORBA::Any * retval = 0;" << be_nl + os_ << "::CORBA::Any * retval {};" << be_nl << "ACE_NEW_RETURN (" << be_idt_nl << "retval," << be_nl << "::CORBA::Any (" diff --git a/TAO/TAO_IDL/be/be_visitor_component/component_ami_rh_ex_base.cpp b/TAO/TAO_IDL/be/be_visitor_component/component_ami_rh_ex_base.cpp index 1e3ed1925fb..42d8ac9a8b6 100644 --- a/TAO/TAO_IDL/be/be_visitor_component/component_ami_rh_ex_base.cpp +++ b/TAO/TAO_IDL/be/be_visitor_component/component_ami_rh_ex_base.cpp @@ -153,7 +153,7 @@ be_visitor_component_ami_rh_ex_base::gen_attr_op ( } os_ << "set_" << node->local_name ()->get_string () - << " (void)" << (for_defn ? "" : ";"); + << " ()" << (for_defn ? "" : ";"); this->gen_op_body (); diff --git a/TAO/TAO_IDL/be/be_visitor_component/component_ami_rh_exh.cpp b/TAO/TAO_IDL/be/be_visitor_component/component_ami_rh_exh.cpp index d304a7360c7..55661cadbf5 100644 --- a/TAO/TAO_IDL/be/be_visitor_component/component_ami_rh_exh.cpp +++ b/TAO/TAO_IDL/be/be_visitor_component/component_ami_rh_exh.cpp @@ -38,8 +38,8 @@ be_visitor_component_ami_rh_exh::visit_uses (be_uses *node) << "public virtual ::CORBA::LocalObject" << be_uidt_nl << "{" << be_nl << "public:" << be_idt_nl - << this->class_name_ << " (void);" << be_nl - << "virtual ~" << this->class_name_ << " (void);"; + << this->class_name_ << " ();" << be_nl + << "virtual ~" << this->class_name_ << " ();"; /// This overload of traverse_inheritance_graph() used here /// doesn't automatically prime the queues. @@ -112,7 +112,7 @@ be_visitor_component_ami_rh_exh::visit_operation ( if (count == 0 && vrt) { - os_ << "void);"; + os_ << ");"; } else { diff --git a/TAO/TAO_IDL/be/be_visitor_component/component_ami_rh_exs.cpp b/TAO/TAO_IDL/be/be_visitor_component/component_ami_rh_exs.cpp index f881d964bf7..854c2c0f2c3 100644 --- a/TAO/TAO_IDL/be/be_visitor_component/component_ami_rh_exs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_component/component_ami_rh_exs.cpp @@ -35,13 +35,13 @@ be_visitor_component_ami_rh_exs::visit_uses (be_uses *node) os_ << be_nl_2 << this->class_name_ << "::" - << this->class_name_ << " (void)" << be_nl + << this->class_name_ << " ()" << be_nl << "{" << be_nl << "}"; os_ << be_nl_2 << this->class_name_ << "::~" - << this->class_name_ << " (void)" << be_nl + << this->class_name_ << " ()" << be_nl << "{" << be_nl << "}"; @@ -112,7 +112,7 @@ be_visitor_component_ami_rh_exs::visit_operation ( if (count == 0 && vrt) { - os_ << "void)"; + os_ << ")"; } else { diff --git a/TAO/TAO_IDL/be/be_visitor_component/context_svth.cpp b/TAO/TAO_IDL/be/be_visitor_component/context_svth.cpp index 40eafca117a..7ae81441c30 100644 --- a/TAO/TAO_IDL/be/be_visitor_component/context_svth.cpp +++ b/TAO/TAO_IDL/be/be_visitor_component/context_svth.cpp @@ -108,7 +108,7 @@ be_visitor_context_svth::visit_component (be_component *node) << "PortableServer::Servant sv," << be_nl << "const char *id);" << be_uidt << be_nl_2; - os_ << "virtual ~" << lname << "_Context_T (void);"; + os_ << "virtual ~" << lname << "_Context_T ();"; os_ << be_nl_2 << "/** @name Operations and members for " << lname @@ -161,12 +161,12 @@ be_visitor_context_svth::visit_uses (be_uses *node) { os_ << "::" << node_->full_name () << "::" << port_name << "Connections *" << be_nl - << "get_connections_" << port_name << " (void);"; + << "get_connections_" << port_name << " ();"; } else { os_ << "::" << obj_name << "_ptr" << be_nl - << "get_connection_" << port_name << " (void);"; + << "get_connection_" << port_name << " ();"; } os_ << be_nl << be_uidt_nl @@ -187,7 +187,7 @@ be_visitor_context_svth::visit_uses (be_uses *node) } else { - os_ << "void);"; + os_ << ");"; } os_ << be_uidt_nl << be_nl @@ -276,7 +276,7 @@ be_visitor_context_svth::visit_emits (be_emits *node) os_ << be_nl_2 << "virtual ::" << obj_name << "Consumer_ptr" << be_nl - << "disconnect_" << port_name << " (void);"; + << "disconnect_" << port_name << " ();"; os_ << be_uidt_nl << be_nl << "protected:" << be_idt_nl diff --git a/TAO/TAO_IDL/be/be_visitor_component/context_svts.cpp b/TAO/TAO_IDL/be/be_visitor_component/context_svts.cpp index a852dc0b99b..3b1355474cb 100644 --- a/TAO/TAO_IDL/be/be_visitor_component/context_svts.cpp +++ b/TAO/TAO_IDL/be/be_visitor_component/context_svts.cpp @@ -70,7 +70,7 @@ be_visitor_context_svts::visit_component (be_component *node) os_ << be_nl_2 << "template <typename CONTAINER_TYPE, typename BASE>" << be_nl << lname << "_Context_T<CONTAINER_TYPE, BASE>::~" - << lname << "_Context_T (void)" << be_nl + << lname << "_Context_T ()" << be_nl << "{" << be_nl << "}"; @@ -192,7 +192,7 @@ be_visitor_context_svts::visit_publishes (be_publishes *node) os_ << be_nl << be_nl - << "::Components::Cookie * retv = 0;" << be_nl + << "::Components::Cookie * retv {};" << be_nl << "ACE_NEW_THROW_EX (retv," << be_nl << " ::CIAO::Cookie_Impl (ptr)," << be_nl @@ -303,7 +303,7 @@ be_visitor_context_svts::visit_emits (be_emits *node) << "template <typename CONTAINER_TYPE, typename BASE>" << be_nl << "::" << fname << "Consumer_ptr" << be_nl << node_->local_name () << "_Context_T<CONTAINER_TYPE, BASE>::disconnect_" - << port_name << " (void)" << be_nl + << port_name << " ()" << be_nl << "{" << be_idt_nl << "::" << fname << "Consumer_var ciao_emits_" << port_name << " =" << be_idt_nl << "this->ciao_emits_" << port_name << "_consumer_._retn ();" << be_uidt_nl << be_nl @@ -329,7 +329,7 @@ be_visitor_context_svts::gen_uses_simplex (AST_Type *obj, << "template <typename CONTAINER_TYPE, typename BASE>" << be_nl << "::" << fname << "_ptr" << be_nl << node_->local_name () << "_Context_T<CONTAINER_TYPE, BASE>::get_connection_" - << port_name << " (void)" << be_nl + << port_name << " ()" << be_nl << "{" << be_idt_nl << "return ::" << fname << "::_duplicate (" << be_idt_nl << "this->ciao_uses_" << port_name << "_.in ());" @@ -361,7 +361,7 @@ be_visitor_context_svts::gen_uses_simplex (AST_Type *obj, << "template <typename CONTAINER_TYPE, typename BASE>" << be_nl << "::" << fname << "_ptr" << be_nl << node_->local_name () << "_Context_T<CONTAINER_TYPE, BASE>::disconnect_" - << port_name << " (void)" << be_nl + << port_name << " ()" << be_nl << "{" << be_idt_nl << "::" << fname << "_var ciao_uses_" << port_name << " =" << be_idt_nl << "this->ciao_uses_" << port_name << "_._retn ();" << be_uidt_nl << be_nl @@ -387,7 +387,7 @@ be_visitor_context_svts::gen_uses_multiplex ( << "::" << node_->full_name () << "::" << port_name << "Connections *" << be_nl << node_->local_name () << "_Context_T<CONTAINER_TYPE, BASE>::get_connections_" - << port_name << " (void)" << be_nl + << port_name << " ()" << be_nl << "{" << be_idt_nl; os_ << "ACE_GUARD_RETURN (TAO_SYNCH_MUTEX," << be_nl @@ -397,7 +397,7 @@ be_visitor_context_svts::gen_uses_multiplex ( << " 0);" << be_nl_2; os_ << "::" << node_->full_name () << "::" << port_name - << "Connections * tmp_retv = 0;" << be_nl + << "Connections * tmp_retv {};" << be_nl << "ACE_NEW_THROW_EX (tmp_retv," << be_nl << " ::" << node_->full_name () << "::" << port_name << "Connections (" << be_nl @@ -465,7 +465,7 @@ be_visitor_context_svts::gen_uses_multiplex ( << "}"; os_ << be_nl_2 - << "::Components::Cookie * ck = 0;" << be_nl + << "::Components::Cookie * ck {};" << be_nl << "ACE_NEW_THROW_EX (ck," << be_nl << " ::CIAO::Cookie_Impl (ptr)," << be_nl diff --git a/TAO/TAO_IDL/be/be_visitor_component/executor_exh.cpp b/TAO/TAO_IDL/be/be_visitor_component/executor_exh.cpp index 8d754378186..412debc236a 100644 --- a/TAO/TAO_IDL/be/be_visitor_component/executor_exh.cpp +++ b/TAO/TAO_IDL/be/be_visitor_component/executor_exh.cpp @@ -81,11 +81,11 @@ be_visitor_executor_exh::visit_component (be_component *node) << "public:" << be_idt_nl; os_ << "/// Constructor" << be_nl - << lname << "_exec_i (void);"; + << lname << "_exec_i ();"; os_ << be_nl << "/// Destructor" << be_nl - << "virtual ~" << lname << "_exec_i (void);"; + << "virtual ~" << lname << "_exec_i ();"; os_ << be_nl_2 << "/** @name Supported operations and attributes. */" << be_nl @@ -147,18 +147,18 @@ be_visitor_executor_exh::visit_component (be_component *node) { os_ << be_nl_2 << "/// Component state change method to configuration_complete state" << be_nl - << "virtual void configuration_complete (void);"; + << "virtual void configuration_complete ();"; os_ << be_nl_2 << "/// Component state change method to activated state" << be_nl - << "virtual void ccm_activate (void);" << be_nl_2 + << "virtual void ccm_activate ();" << be_nl_2 << "/// Component state change method to passivated state" << be_nl - << "virtual void ccm_passivate (void);"; + << "virtual void ccm_passivate ();"; } os_ << be_nl_2 << "/// Component state change method to removed state" << be_nl - << "virtual void ccm_remove (void);"; + << "virtual void ccm_remove ();"; os_ << be_nl << "//@}"; @@ -268,7 +268,7 @@ be_visitor_executor_exh::visit_component (be_component *node) os_ << be_nl_2 << "/// Get the ACE_Reactor" << be_nl << "/// @return non-owning pointer to reactor" << be_nl - << "ACE_Reactor* reactor (void);"; + << "ACE_Reactor* reactor ();"; } os_ << be_uidt_nl @@ -302,7 +302,7 @@ be_visitor_executor_exh::visit_provides (be_provides *node) << "/// @return existing instance of facet if one exists, else creates one" << be_nl << "virtual " << global << sname << "::CCM_" << lname << "_ptr" << be_nl - << "get_" << port_name << " (void);"; + << "get_" << port_name << " ();"; return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_component/executor_exs.cpp b/TAO/TAO_IDL/be/be_visitor_component/executor_exs.cpp index ad4f0abe99b..d2d93264f93 100644 --- a/TAO/TAO_IDL/be/be_visitor_component/executor_exs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_component/executor_exs.cpp @@ -72,7 +72,7 @@ be_visitor_executor_exs::visit_attribute (be_attribute *node) os_ << be_nl << this->node_->original_local_name () << "_exec_i::" << this->ctx_->port_prefix ().c_str () - << node->local_name () << " (void)" << be_nl + << node->local_name () << " ()" << be_nl << "{" << be_idt; be_visitor_attr_return ar_visitor (this->ctx_); @@ -152,7 +152,7 @@ be_visitor_executor_exs::visit_component (be_component *node) os_ << be_nl_2 << lname << "_exec_i::" << lname - << "_exec_i (void)"; + << "_exec_i ()"; /// The overload of traverse_inheritance_graph() used here /// doesn't automatically prime the queues. @@ -195,7 +195,7 @@ be_visitor_executor_exs::visit_component (be_component *node) os_ << be_nl_2 << lname << "_exec_i::~" << lname - << "_exec_i (void)" << be_nl + << "_exec_i ()" << be_nl << "{" << be_nl << "}"; @@ -206,9 +206,9 @@ be_visitor_executor_exs::visit_component (be_component *node) { os_ << be_nl << "ACE_Reactor*" << be_nl - << lname << "_exec_i::reactor (void)" << be_nl + << lname << "_exec_i::reactor ()" << be_nl << "{" << be_idt_nl - << "ACE_Reactor* reactor = 0;" << be_nl + << "ACE_Reactor* reactor {};" << be_nl << "::CORBA::Object_var ccm_object = " << be_idt_nl << "this->ciao_context_->get_CCM_object();" << be_uidt_nl << "if (! ::CORBA::is_nil (ccm_object.in ())) " << be_idt_nl @@ -297,7 +297,7 @@ be_visitor_executor_exs::visit_component (be_component *node) { os_ << be_nl_2 << "void" << be_nl - << lname << "_exec_i::configuration_complete (void)" + << lname << "_exec_i::configuration_complete ()" << be_nl << "{" << be_idt_nl << your_code_here_ << be_uidt_nl @@ -305,14 +305,14 @@ be_visitor_executor_exs::visit_component (be_component *node) os_ << be_nl_2 << "void" << be_nl - << lname << "_exec_i::ccm_activate (void)" << be_nl + << lname << "_exec_i::ccm_activate ()" << be_nl << "{" << be_idt_nl << your_code_here_ << be_uidt_nl << "}"; os_ << be_nl_2 << "void" << be_nl - << lname << "_exec_i::ccm_passivate (void)" << be_nl + << lname << "_exec_i::ccm_passivate ()" << be_nl << "{" << be_idt_nl << your_code_here_ << be_uidt_nl << "}"; @@ -320,7 +320,7 @@ be_visitor_executor_exs::visit_component (be_component *node) os_ << be_nl_2 << "void" << be_nl - << lname << "_exec_i::ccm_remove (void)" << be_nl + << lname << "_exec_i::ccm_remove ()" << be_nl << "{" << be_idt_nl << your_code_here_ << be_uidt_nl << "}"; @@ -352,12 +352,12 @@ be_visitor_executor_exs::visit_provides (be_provides *node) << global << sname << "::CCM_" << iname << "_ptr" << be_nl << node_->local_name () << "_exec_i::get_" - << port_name << " (void)" << be_nl + << port_name << " ()" << be_nl << "{" << be_idt_nl << "if ( ::CORBA::is_nil (this->ciao_" << port_name << "_.in ()))" << be_idt_nl << "{" << be_idt_nl - << lname << "_exec_i *tmp = 0;" << be_nl + << lname << "_exec_i *tmp {};" << be_nl << "ACE_NEW_RETURN (" << be_idt_nl << "tmp," << be_nl << lname << "_exec_i (" << be_idt_nl diff --git a/TAO/TAO_IDL/be/be_visitor_component/facet_exh.cpp b/TAO/TAO_IDL/be/be_visitor_component/facet_exh.cpp index 50a469d95ac..8ba4b0082f3 100644 --- a/TAO/TAO_IDL/be/be_visitor_component/facet_exh.cpp +++ b/TAO/TAO_IDL/be/be_visitor_component/facet_exh.cpp @@ -69,7 +69,7 @@ be_visitor_facet_exh::visit_provides (be_provides *node) << this->node_->local_name () << "_Context_ptr ctx);" << be_uidt_nl << "/// Destructor" << be_nl - << "virtual ~" << lname << "_exec_i (void);"; + << "virtual ~" << lname << "_exec_i ();"; if (impl->node_type () == AST_Decl::NT_interface) { diff --git a/TAO/TAO_IDL/be/be_visitor_component/facet_exs.cpp b/TAO/TAO_IDL/be/be_visitor_component/facet_exs.cpp index 019198e7639..1c401ba88db 100644 --- a/TAO/TAO_IDL/be/be_visitor_component/facet_exs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_component/facet_exs.cpp @@ -106,7 +106,7 @@ be_visitor_facet_exs::visit_provides (be_provides *node) os_ << be_nl_2 << lname << "_exec_i::~" << lname - << "_exec_i (void)" << be_nl + << "_exec_i ()" << be_nl << "{" << be_nl << "}"; diff --git a/TAO/TAO_IDL/be/be_visitor_component/servant_svh.cpp b/TAO/TAO_IDL/be/be_visitor_component/servant_svh.cpp index 69f694f1f3a..9fbd6a8de25 100644 --- a/TAO/TAO_IDL/be/be_visitor_component/servant_svh.cpp +++ b/TAO/TAO_IDL/be/be_visitor_component/servant_svh.cpp @@ -75,7 +75,7 @@ be_visitor_servant_svh::visit_component (be_component *node) os_ << be_nl << "virtual ~" << lname << "_Servant" - << " (void);" << be_nl; + << " ();" << be_nl; if (this->node_->has_rw_attributes ()) { @@ -166,13 +166,13 @@ be_visitor_servant_svh::visit_provides (be_provides *node) os_ << be_uidt_nl << be_nl << "public:" << be_idt_nl << "virtual ::" << obj_name << "_ptr" << be_nl - << "provide_" << port_name << " (void);"; + << "provide_" << port_name << " ();"; } os_ << be_uidt_nl << be_nl << "private:" << be_idt_nl << "void" << be_nl - << "setup_" << port_name << "_i (void);"; + << "setup_" << port_name << "_i ();"; if (!be_global->gen_lwccm ()) { @@ -207,12 +207,12 @@ be_visitor_servant_svh::visit_uses (be_uses *node) { os_ << "::" << node_->full_name () << "::" << port_name << "Connections *" << be_nl - << "get_connections_" << port_name << " (void);"; + << "get_connections_" << port_name << " ();"; } else { os_ << "::" << obj_name << "_ptr" << be_nl - << "get_connection_" << port_name << " (void);"; + << "get_connection_" << port_name << " ();"; } os_ << be_nl_2 @@ -232,7 +232,7 @@ be_visitor_servant_svh::visit_uses (be_uses *node) } else { - os_ << "void);"; + os_ << ");"; } return 0; @@ -276,7 +276,7 @@ be_visitor_servant_svh::visit_emits (be_emits *node) os_ << be_nl_2 << "virtual ::" << obj_name << "Consumer_ptr" << be_nl - << "disconnect_" << port_name << " (void);"; + << "disconnect_" << port_name << " ();"; } return 0; } @@ -329,7 +329,7 @@ be_visitor_servant_svh::visit_consumes (be_consumes *node) << "_Context_ptr c);" << be_uidt_nl << be_nl; os_ << "virtual ~" << ev_lname << "Consumer_" << port_name - << "_Servant (void);"; + << "_Servant ();"; os_ << be_nl_2 << "virtual void" << be_nl @@ -344,7 +344,7 @@ be_visitor_servant_svh::visit_consumes (be_consumes *node) os_ << be_nl_2 << "/// Get component implementation." << be_nl << "virtual ::CORBA::Object_ptr" << be_nl - << "_get_component (void);"; + << "_get_component ();"; os_ << be_uidt_nl << be_nl << "protected:" << be_idt_nl; @@ -364,14 +364,14 @@ be_visitor_servant_svh::visit_consumes (be_consumes *node) { os_ << be_nl_2 << "virtual ::" << obj_name << "Consumer_ptr" << be_nl - << "get_consumer_" << port_name << " (void);"; + << "get_consumer_" << port_name << " ();"; } os_ << be_uidt_nl << be_nl << "private:" << be_idt_nl; os_ << "void" << be_nl - << "setup_consumer_" << port_name << "_i (void);"; + << "setup_consumer_" << port_name << "_i ();"; os_ << be_uidt_nl << be_nl << "private:" << be_idt_nl; @@ -406,7 +406,7 @@ be_visitor_servant_svh::gen_non_type_specific () os_ << be_nl_2 << "virtual ::Components::ReceptacleDescriptions *" << be_nl - << "get_all_receptacles (void);"; + << "get_all_receptacles ();"; } AST_Decl::NodeType nt = this->node_->node_type (); @@ -420,7 +420,7 @@ be_visitor_servant_svh::gen_non_type_specific () os_ << be_nl_2 << "virtual ::Components::PublisherDescriptions *" << be_nl - << "get_all_publishers (void);"; + << "get_all_publishers ();"; } if (this->node_->n_emits () != 0UL) @@ -428,7 +428,7 @@ be_visitor_servant_svh::gen_non_type_specific () os_ << be_nl_2 << "virtual ::Components::EmitterDescriptions *" << be_nl - << "get_all_emitters (void);"; + << "get_all_emitters ();"; } } diff --git a/TAO/TAO_IDL/be/be_visitor_component/servant_svs.cpp b/TAO/TAO_IDL/be/be_visitor_component/servant_svs.cpp index 42d6631b98e..3f081adcfb4 100644 --- a/TAO/TAO_IDL/be/be_visitor_component/servant_svs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_component/servant_svs.cpp @@ -110,7 +110,7 @@ be_visitor_servant_svs::visit_component (be_component *node) os_ << be_nl_2 << lname << "_Servant::~" - << lname << "_Servant (void)" << be_nl + << lname << "_Servant ()" << be_nl << "{" << be_nl << "}"; @@ -285,7 +285,7 @@ be_visitor_servant_svs::visit_provides (be_provides *node) os_ << be_nl_2 << "::" << obj_name << "_ptr" << be_nl << node_->local_name () << "_Servant::provide_" - << port_name << " (void)" << be_nl + << port_name << " ()" << be_nl << "{" << be_idt_nl; os_ << "return" << be_idt_nl @@ -297,7 +297,7 @@ be_visitor_servant_svs::visit_provides (be_provides *node) os_ << be_nl_2 << "void" << be_nl << node_->local_name () << "_Servant::setup_" - << port_name << "_i (void)" << be_nl + << port_name << "_i ()" << be_nl << "{" << be_idt_nl << "ACE_CString obj_id (this->ins_name_);" << be_nl << "obj_id += \"_" << port_name << "\";" << be_nl_2 @@ -416,7 +416,7 @@ be_visitor_servant_svs::visit_uses (be_uses *node) os_ << be_nl << node_->local_name () << "_Servant::get_connection" << (is_multiple ? "s" : "") << "_" - << port_name << " (void)" << be_nl + << port_name << " ()" << be_nl << "{" << be_idt_nl << "return this->context_->get_connection" << (is_multiple ? "s" : "") << "_" @@ -486,7 +486,7 @@ be_visitor_servant_svs::visit_emits (be_emits *node) os_ << be_nl_2 << "::" << obj_name << "Consumer_ptr" << be_nl << node_->local_name () << "_Servant::disconnect_" - << port_name << " (void)" << be_nl + << port_name << " ()" << be_nl << "{" << be_idt_nl << "return this->context_->disconnect_" << port_name << " ();" << be_uidt_nl @@ -529,14 +529,14 @@ be_visitor_servant_svs::visit_consumes (be_consumes *node) os_ << be_nl_2 << comp_lname << "_Servant::" << lname << "Consumer_" << port_name << "_Servant::~" << lname << "Consumer_" - << port_name << "_Servant (void)" << be_nl + << port_name << "_Servant ()" << be_nl << "{" << be_nl << "}"; os_ << be_nl_2 << "::CORBA::Object_ptr" << be_nl << comp_lname << "_Servant::" << lname << "Consumer_" - << port_name << "_Servant::_get_component (void)" << be_nl + << port_name << "_Servant::_get_component ()" << be_nl << "{" << be_idt_nl; if (ACE_OS::strcmp (be_global->ciao_container_type (), "Session") == 0) @@ -585,7 +585,7 @@ be_visitor_servant_svs::visit_consumes (be_consumes *node) os_ << be_nl_2 << "::" << fname << "Consumer_ptr" << be_nl << node_->local_name () << "_Servant::get_consumer_" - << port_name << " (void)" << be_nl + << port_name << " ()" << be_nl << "{" << be_idt_nl << "return" << be_idt_nl << "::" << fname << "Consumer::_duplicate (" << be_idt_nl @@ -597,7 +597,7 @@ be_visitor_servant_svs::visit_consumes (be_consumes *node) os_ << be_nl_2 << "void" << be_nl << node_->local_name () << "_Servant::setup_consumer_" - << port_name << "_i (void)" << be_nl + << port_name << "_i ()" << be_nl << "{" << be_idt_nl << "ACE_CString obj_id (this->ins_name_);" << be_nl << "obj_id += \"_" << port_name << "\";" << be_nl_2 @@ -773,9 +773,9 @@ be_visitor_servant_svs::gen_publishes_top () os_ << be_nl_2 << "::Components::PublisherDescriptions *" << be_nl << node_->local_name () - << "_Servant::get_all_publishers (void)" << be_nl + << "_Servant::get_all_publishers ()" << be_nl << "{" << be_idt_nl - << "::Components::PublisherDescriptions *retval = 0;" + << "::Components::PublisherDescriptions *retval {};" << be_nl << "ACE_NEW_THROW_EX (retval," << be_nl << " ::Components::PublisherDescriptions," @@ -880,9 +880,9 @@ be_visitor_servant_svs::gen_uses_top () os_ << be_nl_2 << "::Components::ReceptacleDescriptions *" << be_nl << node_->local_name () - << "_Servant::get_all_receptacles (void)" << be_nl + << "_Servant::get_all_receptacles ()" << be_nl << "{" << be_idt_nl - << "::Components::ReceptacleDescriptions * retval = 0;" + << "::Components::ReceptacleDescriptions * retval {};" << be_nl << "ACE_NEW_THROW_EX (retval," << be_nl << " ::Components::ReceptacleDescriptions," @@ -1001,9 +1001,9 @@ be_visitor_servant_svs::gen_get_all_emitters () os_ << be_nl_2 << "::Components::EmitterDescriptions *" << be_nl << node_->local_name () - << "_Servant::get_all_emitters (void)" << be_nl + << "_Servant::get_all_emitters ()" << be_nl << "{" << be_idt_nl - << "::Components::EmitterDescriptions *retval = 0;" + << "::Components::EmitterDescriptions *retval {};" << be_nl << "ACE_NEW_THROW_EX (retval," << be_nl << " ::Components::EmitterDescriptions," diff --git a/TAO/TAO_IDL/be/be_visitor_component_scope.cpp b/TAO/TAO_IDL/be/be_visitor_component_scope.cpp index 9e0b92736c3..c7f28aeccf3 100644 --- a/TAO/TAO_IDL/be/be_visitor_component_scope.cpp +++ b/TAO/TAO_IDL/be/be_visitor_component_scope.cpp @@ -287,7 +287,7 @@ be_visitor_component_scope::gen_exec_entrypoint_decl () << "extern \"C\" " << export_macro_.c_str () << " ::Components::EnterpriseComponent_ptr" << be_nl << "create_" << node_->flat_name () - << "_Impl (void);"; + << "_Impl ();"; } void @@ -297,7 +297,7 @@ be_visitor_component_scope::gen_exec_entrypoint_defn () << "extern \"C\" " << export_macro_.c_str () << " ::Components::EnterpriseComponent_ptr" << be_nl << "create_" << node_->flat_name () - << "_Impl (void)" << be_nl + << "_Impl ()" << be_nl << "{" << be_idt_nl << "::Components::EnterpriseComponent_ptr retval =" << be_idt_nl diff --git a/TAO/TAO_IDL/be/be_visitor_connector/connector_ami_exh.cpp b/TAO/TAO_IDL/be/be_visitor_connector/connector_ami_exh.cpp index 2e9bc13474c..40230a812e4 100644 --- a/TAO/TAO_IDL/be/be_visitor_connector/connector_ami_exh.cpp +++ b/TAO/TAO_IDL/be/be_visitor_connector/connector_ami_exh.cpp @@ -83,6 +83,6 @@ be_visitor_connector_ami_exh::gen_entrypoint () << " ::Components::EnterpriseComponent_ptr" << be_nl << "create_" << ScopeAsDecl (this->node_->defined_in ())->flat_name () - << "_Impl (void);"; + << "_Impl ();"; } diff --git a/TAO/TAO_IDL/be/be_visitor_connector/connector_ami_exs.cpp b/TAO/TAO_IDL/be/be_visitor_connector/connector_ami_exs.cpp index a8b3d8a4477..8cbe4b5832c 100644 --- a/TAO/TAO_IDL/be/be_visitor_connector/connector_ami_exs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_connector/connector_ami_exs.cpp @@ -76,7 +76,7 @@ be_visitor_connector_ami_exs::gen_entrypoint () os_ << be_nl_2 << "extern \"C\" ::Components::EnterpriseComponent_ptr" << be_nl - << "create_" << s->flat_name () << "_Impl (void)" << be_nl + << "create_" << s->flat_name () << "_Impl ()" << be_nl << "{" << be_idt_nl << "::Components::EnterpriseComponent_ptr retval =" << be_idt_nl diff --git a/TAO/TAO_IDL/be/be_visitor_connector/connector_dds_exh.cpp b/TAO/TAO_IDL/be/be_visitor_connector/connector_dds_exh.cpp index bc6cbed0a46..03394c4b548 100644 --- a/TAO/TAO_IDL/be/be_visitor_connector/connector_dds_exh.cpp +++ b/TAO/TAO_IDL/be/be_visitor_connector/connector_dds_exh.cpp @@ -154,9 +154,9 @@ be_visitor_connector_dds_exh::visit_connector (be_connector *node) os_ << be_uidt << be_uidt << be_uidt_nl << "{" << be_nl << "public:" << be_idt_nl - << this->node_->local_name () << "_exec_i (void);" << be_nl + << this->node_->local_name () << "_exec_i ();" << be_nl << "virtual ~" << this->node_->local_name () - << "_exec_i (void);" << be_uidt_nl + << "_exec_i ();" << be_uidt_nl << "};"; this->gen_exec_entrypoint_decl (); diff --git a/TAO/TAO_IDL/be/be_visitor_connector/connector_dds_exs.cpp b/TAO/TAO_IDL/be/be_visitor_connector/connector_dds_exs.cpp index dd06f3341b9..d114738c868 100644 --- a/TAO/TAO_IDL/be/be_visitor_connector/connector_dds_exs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_connector/connector_dds_exs.cpp @@ -46,7 +46,7 @@ be_visitor_connector_dds_exs::visit_connector (be_connector *node) { os_ << be_nl << this->node_->local_name () << "_exec_i::" - << this->node_->local_name () << "_exec_i (void)" + << this->node_->local_name () << "_exec_i ()" << be_idt_nl << ": " << this->base_tname_ << "_Connector_T"; @@ -130,7 +130,7 @@ be_visitor_connector_dds_exs::visit_connector (be_connector *node) os_ << be_nl_2 << this->node_->local_name () << "_exec_i::~" - << this->node_->local_name () << "_exec_i (void)" << be_nl + << this->node_->local_name () << "_exec_i ()" << be_nl << "{" << be_nl << "}"; diff --git a/TAO/TAO_IDL/be/be_visitor_connector/executor_ami_exh.cpp b/TAO/TAO_IDL/be/be_visitor_connector/executor_ami_exh.cpp index 81ed0c13f74..bea0ef5deb2 100644 --- a/TAO/TAO_IDL/be/be_visitor_connector/executor_ami_exh.cpp +++ b/TAO/TAO_IDL/be/be_visitor_connector/executor_ami_exh.cpp @@ -43,9 +43,9 @@ be_visitor_executor_ami_exh::visit_connector (be_connector *node) << be_uidt << be_uidt_nl << "{" << be_nl << "public:" << be_idt_nl - << scope->local_name () << suffix << " (void);" << be_nl + << scope->local_name () << suffix << " ();" << be_nl << "virtual ~" << scope->local_name () << suffix - << " (void);"; + << " ();"; if (this->visit_scope (node) == -1) { @@ -65,11 +65,11 @@ be_visitor_executor_ami_exh::visit_connector (be_connector *node) << "::Components::" << be_global->ciao_container_type () << "Context_ptr ctx);" << be_nl_2 - << "virtual void configuration_complete (void);" + << "virtual void configuration_complete ();" << be_nl_2 - << "virtual void ccm_activate (void);" << be_nl - << "virtual void ccm_passivate (void);" << be_nl - << "virtual void ccm_remove (void);"; + << "virtual void ccm_activate ();" << be_nl + << "virtual void ccm_passivate ();" << be_nl + << "virtual void ccm_remove ();"; os_ << be_uidt_nl << be_nl << "private:" << be_idt_nl; @@ -116,7 +116,7 @@ be_visitor_executor_ami_exh::visit_provides (be_provides *node) AST_Decl *d = i.item (); os_ << d->local_name () << "_" - << node->local_name () << " (void);"; + << node->local_name () << " ();"; return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_connector/executor_ami_exs.cpp b/TAO/TAO_IDL/be/be_visitor_connector/executor_ami_exs.cpp index ae3d2f30984..68933967984 100644 --- a/TAO/TAO_IDL/be/be_visitor_connector/executor_ami_exs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_connector/executor_ami_exs.cpp @@ -35,7 +35,7 @@ be_visitor_executor_ami_exs::visit_connector (be_connector *node) os_ << be_nl_2 << class_name << "::" - << class_name << " (void)" << be_idt_nl; + << class_name << " ()" << be_idt_nl; /// The port is the only item in the connector's scope. UTL_ScopeActiveIterator j (node, UTL_Scope::IK_decls); @@ -75,7 +75,7 @@ be_visitor_executor_ami_exs::visit_connector (be_connector *node) os_ << be_nl_2 << class_name << "::~" - << class_name << " (void)" << be_nl + << class_name << " ()" << be_nl << "{" << be_idt_nl; for (int i = 0; i < port_nr; i ++) { @@ -115,7 +115,7 @@ be_visitor_executor_ami_exs::visit_connector (be_connector *node) os_ << be_nl_2 << "void" << be_nl - << class_name << "::configuration_complete (void)" << be_nl + << class_name << "::configuration_complete ()" << be_nl << "{" << be_idt_nl; for (int i = 0; i < port_nr; i ++) { @@ -125,13 +125,13 @@ be_visitor_executor_ami_exs::visit_connector (be_connector *node) os_ << be_nl_2 << "void" << be_nl - << class_name << "::ccm_activate (void)" << be_nl + << class_name << "::ccm_activate ()" << be_nl << "{" << be_nl << "}"; os_ << be_nl_2 << "void" << be_nl - << class_name << "::ccm_passivate (void)" << be_nl + << class_name << "::ccm_passivate ()" << be_nl << "{" << be_nl << "}"; @@ -142,7 +142,7 @@ be_visitor_executor_ami_exs::visit_connector (be_connector *node) os_ << be_nl_2 << "void" << be_nl - << class_name << "::ccm_remove (void)" << be_nl + << class_name << "::ccm_remove ()" << be_nl << "{" << be_idt_nl; for (int i = 0; i < port_nr; i ++) { @@ -179,7 +179,7 @@ be_visitor_executor_ami_exs::visit_provides (be_provides *node) const char *exec_ext = (ACE_OS::strstr (loc_name, "sync") ? "1" : "0"); os_ << d->local_name () << "_" - << node->local_name () << " (void)" << be_nl + << node->local_name () << " ()" << be_nl << "{" << be_idt_nl << "return " << smart_scope << scope->full_name () << "::CCM_" << t->local_name () << "::_duplicate (" diff --git a/TAO/TAO_IDL/be/be_visitor_connector/facet_ami_exh.cpp b/TAO/TAO_IDL/be/be_visitor_connector/facet_ami_exh.cpp index e4ed07fbbcb..c8cd22615a1 100644 --- a/TAO/TAO_IDL/be/be_visitor_connector/facet_ami_exh.cpp +++ b/TAO/TAO_IDL/be/be_visitor_connector/facet_ami_exh.cpp @@ -83,8 +83,8 @@ be_visitor_facet_ami_exh::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 ()); if (this->visit_operation (&get_op) == -1) @@ -120,8 +120,8 @@ be_visitor_facet_ami_exh::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); @@ -239,7 +239,7 @@ be_visitor_facet_ami_exh::gen_reply_handler_class () << this->iface_name_ << "ReplyHandler_ptr callback," << be_nl << "::PortableServer::POA_ptr poa);" << be_uidt_nl << be_nl - << "virtual ~" << this->iface_name_ << suffix << " (void);"; + << "virtual ~" << this->iface_name_ << suffix << " ();"; int const status = this->callback_iface_->traverse_inheritance_graph ( @@ -288,9 +288,9 @@ be_visitor_facet_ami_exh::gen_facet_executor_class () << be_uidt << be_uidt_nl << "{" << be_nl << "public:" << be_idt_nl - << iface_name << suffix << " (void);" << be_nl_2 + << iface_name << suffix << " ();" << be_nl_2 << "virtual ~" << iface_name << suffix - << " (void);"; + << " ();"; ACE_CString handler_str ( @@ -371,7 +371,7 @@ be_visitor_facet_ami_exh::gen_facet_executor_class () const char *smart_scope = (is_global ? "" : "::"); os_ << be_nl_2 - << "virtual ::CORBA::Object_ptr _get_component (void);"; + << "virtual ::CORBA::Object_ptr _get_component ();"; os_ << be_nl_2 << "virtual void _set_component (" << be_idt_nl diff --git a/TAO/TAO_IDL/be/be_visitor_connector/facet_ami_exs.cpp b/TAO/TAO_IDL/be/be_visitor_connector/facet_ami_exs.cpp index 7d865123259..176da224463 100644 --- a/TAO/TAO_IDL/be/be_visitor_connector/facet_ami_exs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_connector/facet_ami_exs.cpp @@ -74,8 +74,8 @@ be_visitor_facet_ami_exs::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 ()); if (this->visit_operation (&get_op) == -1) { @@ -111,8 +111,8 @@ be_visitor_facet_ami_exs::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); @@ -268,7 +268,7 @@ be_visitor_facet_ami_exs::gen_reply_handler_class () os_ << be_nl_2 << iface_name << suffix << "::~" - << iface_name << suffix << " (void)" << be_nl + << iface_name << suffix << " ()" << be_nl << "{" << be_nl << "}"; @@ -337,13 +337,13 @@ be_visitor_facet_ami_exs::gen_facet_executor_class () os_ << be_nl_2 << iface_name << suffix << "::" - << iface_name << suffix << " (void)" << be_nl + << iface_name << suffix << " ()" << be_nl << "{" << be_nl << "}"; os_ << be_nl_2 << iface_name << suffix << "::~" - << iface_name << suffix << " (void)" << be_nl + << iface_name << suffix << " ()" << be_nl << "{" << be_nl << "}"; @@ -421,7 +421,7 @@ be_visitor_facet_ami_exs::gen_facet_executor_class () os_ << be_nl_2 << "::CORBA::Object_ptr" << be_nl - << iface_name << "_exec_i::_get_component (void)" << be_nl + << iface_name << "_exec_i::_get_component ()" << be_nl << "{" << be_idt_nl << "return" << be_idt_nl << "::" << s->name () << smart_scope diff --git a/TAO/TAO_IDL/be/be_visitor_context.cpp b/TAO/TAO_IDL/be/be_visitor_context.cpp index d56235baa5f..15cc1cd7069 100644 --- a/TAO/TAO_IDL/be/be_visitor_context.cpp +++ b/TAO/TAO_IDL/be/be_visitor_context.cpp @@ -23,8 +23,8 @@ be_visitor_context::be_visitor_context () alias_ (nullptr), tdef_ (nullptr), attr_ (nullptr), - exception_ (0), - comma_ (0), + exception_ (false), + comma_ (false), interface_ (nullptr) { } @@ -85,8 +85,8 @@ be_visitor_context::reset () this->alias_ = nullptr; this->tdef_ = nullptr; this->attr_ = nullptr; - this->exception_ = 0; - this->comma_ = 0; + this->exception_ = false; + this->comma_ = false; this->interface_ = nullptr; this->template_args_ = nullptr; this->template_params_ = nullptr; diff --git a/TAO/TAO_IDL/be/be_visitor_enum/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_enum/any_op_ch.cpp index cf94a17602c..1a2c6dc7fd4 100644 --- a/TAO/TAO_IDL/be/be_visitor_enum/any_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_enum/any_op_ch.cpp @@ -95,6 +95,6 @@ be_visitor_enum_any_op_ch::visit_enum (be_enum *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_enum/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp index 401a69ae418..f6d8c7f5b35 100644 --- a/TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp @@ -171,6 +171,6 @@ be_visitor_enum_any_op_cs::visit_enum (be_enum *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_enum/enum_ch.cpp b/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp index d8c642eed23..32f9694a2ba 100644 --- a/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp @@ -38,7 +38,7 @@ be_visitor_enum_ch::visit_enum (be_enum *node) TAO_OutStream *os = this->ctx_->stream (); // Comma to be generated by the scope visitor. - this->ctx_->comma (1); + this->ctx_->comma (true); *os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl << "// " << __FILE__ << ":" << __LINE__ << be_nl_2; diff --git a/TAO/TAO_IDL/be/be_visitor_exception/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_exception/any_op_ch.cpp index 21e102f68b6..8d19cc74442 100644 --- a/TAO/TAO_IDL/be/be_visitor_exception/any_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_exception/any_op_ch.cpp @@ -106,7 +106,7 @@ be_visitor_exception_any_op_ch::visit_exception (be_exception *node) -1); } - 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_exception/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_exception/any_op_cs.cpp index 3bbd359fa5e..c38649bd11a 100644 --- a/TAO/TAO_IDL/be/be_visitor_exception/any_op_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_exception/any_op_cs.cpp @@ -258,7 +258,7 @@ be_visitor_exception_any_op_cs::visit_exception (be_exception *node) -1); } - 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_exception/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_ch.cpp index 7c8541de940..d190c985d5e 100644 --- a/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_ch.cpp @@ -67,6 +67,6 @@ be_visitor_exception_cdr_op_ch::visit_exception (be_exception *node) -1); } - 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_exception/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_cs.cpp index 65897a6192a..eb400f07815 100644 --- a/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_cs.cpp @@ -177,7 +177,7 @@ be_visitor_exception_cdr_op_cs::visit_exception (be_exception *node) *os << be_global->core_versioning_end () << be_nl; - node->cli_stub_cdr_op_gen (1); + node->cli_stub_cdr_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_exception/exception_ch.cpp b/TAO/TAO_IDL/be/be_visitor_exception/exception_ch.cpp index c29bd84da8f..ad0751a4dad 100644 --- a/TAO/TAO_IDL/be/be_visitor_exception/exception_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_exception/exception_ch.cpp @@ -58,10 +58,10 @@ int be_visitor_exception_ch::visit_exception (be_exception *node) // Constructors and destructor. *os << be_nl_2 - << node->local_name () << " (void);" << be_nl + << node->local_name () << " ();" << be_nl << node->local_name () << " (const " << node->local_name () << " &);" << be_nl - << "~" << node->local_name () << " (void);\n" << be_nl; + << "~" << node->local_name () << " () = default;\n" << be_nl; // Assignment operator. *os << node->local_name () << " &operator= (const " @@ -77,11 +77,11 @@ int be_visitor_exception_ch::visit_exception (be_exception *node) << "static const " << node->local_name () << " *_downcast ( ::CORBA::Exception const *);" << be_nl_2; - *os << "static ::CORBA::Exception *_alloc (void);" << be_nl_2; + *os << "static ::CORBA::Exception *_alloc ();" << be_nl_2; *os << "virtual ::CORBA::Exception *" - << "_tao_duplicate (void) const;\n" << be_nl - << "virtual void _raise (void) const;\n" << be_nl + << "_tao_duplicate () const;\n" << be_nl + << "virtual void _raise () const;\n" << be_nl << "virtual void _tao_encode (TAO_OutputCDR &cdr) const;" << be_nl << "virtual void _tao_decode (TAO_InputCDR &cdr);"; @@ -106,7 +106,7 @@ int be_visitor_exception_ch::visit_exception (be_exception *node) if (be_global->tc_support ()) { *os << be_nl_2 - << "virtual ::CORBA::TypeCode_ptr _tao_type (void) const;"; + << "virtual ::CORBA::TypeCode_ptr _tao_type () const;"; } *os << be_uidt_nl << "};"; @@ -126,6 +126,6 @@ int be_visitor_exception_ch::visit_exception (be_exception *node) } } - node->cli_hdr_gen (1); + node->cli_hdr_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp b/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp index d0d71d046c0..a25dc7fb3da 100644 --- a/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp @@ -99,7 +99,7 @@ int be_visitor_exception_cs::visit_exception (be_exception *node) // Default constructor. *os << node->name () << "::" << node->local_name () - << " (void)" << be_idt_nl; + << " ()" << be_idt_nl; *os << ": ::CORBA::UserException (" << be_idt << be_idt << be_idt_nl << "\"" << node->repoID () << "\"," << be_nl << "\"" << node->local_name () << "\")" << be_uidt @@ -107,12 +107,6 @@ int be_visitor_exception_cs::visit_exception (be_exception *node) *os << "{" << be_nl; *os << "}" << be_nl_2; - // Destructor. - *os << node->name () << "::~" << node->local_name () - << " (void)" << be_nl; - *os << "{" << be_nl; - *os << "}" << be_nl_2; - // Copy constructor. *os << node->name () << "::" << node->local_name () << " (const ::" << node->name () << " &_tao_excp)" << be_idt_nl; @@ -201,25 +195,25 @@ int be_visitor_exception_cs::visit_exception (be_exception *node) // Generate the _alloc method. *os << "::CORBA::Exception *" << node->name () - << "::_alloc (void)" << be_nl; + << "::_alloc ()" << be_nl; *os << "{" << be_idt_nl; - *os << "::CORBA::Exception *retval = 0;" << be_nl + *os << "::CORBA::Exception *retval {};" << be_nl << "ACE_NEW_RETURN (retval, ::" << node->name () - << ", 0);" << be_nl + << ", nullptr);" << be_nl << "return retval;" << be_uidt_nl; *os << "}" << be_nl_2; *os << "::CORBA::Exception *" << be_nl - << node->name () << "::_tao_duplicate (void) const" << be_nl + << node->name () << "::_tao_duplicate () const" << be_nl << "{" << be_idt_nl - << "::CORBA::Exception *result = 0;" << be_nl + << "::CORBA::Exception *result {};" << be_nl << "ACE_NEW_RETURN (result, " - << "::" << node->name () << " (*this), 0);" + << "::" << node->name () << " (*this), nullptr);" << be_nl << "return result;" << be_uidt_nl << "}" << be_nl_2; - *os << "void " << node->name () << "::_raise (void) const" << be_nl + *os << "void " << node->name () << "::_raise () const" << be_nl << "{" << be_idt_nl << "throw *this;" << be_uidt_nl << "}" << be_nl_2; @@ -277,7 +271,7 @@ int be_visitor_exception_cs::visit_exception (be_exception *node) { *os << "// TAO extension - the virtual _type method." << be_nl << "::CORBA::TypeCode_ptr " << node->name () - << "::_tao_type (void) const" << be_nl + << "::_tao_type () const" << be_nl << "{" << be_idt_nl << "TAO_AnyTypeCode_Adapter *adapter =" << be_idt_nl << "ACE_Dynamic_Service<TAO_AnyTypeCode_Adapter>::instance (" @@ -309,7 +303,7 @@ int be_visitor_exception_cs::visit_exception (be_exception *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 << "}"; diff --git a/TAO/TAO_IDL/be/be_visitor_home/home_exh.cpp b/TAO/TAO_IDL/be/be_visitor_home/home_exh.cpp index 167ec05bf43..c0953bcfbb7 100644 --- a/TAO/TAO_IDL/be/be_visitor_home/home_exh.cpp +++ b/TAO/TAO_IDL/be/be_visitor_home/home_exh.cpp @@ -119,11 +119,11 @@ be_visitor_home_exh::gen_exec_class () os_ << be_nl << "/// Constructor" << be_nl - << lname << "_exec_i (void);"; + << lname << "_exec_i ();"; os_ << be_nl_2 << "/// Destructor" << be_nl - << "virtual ~" << lname << "_exec_i (void);"; + << "virtual ~" << lname << "_exec_i ();"; be_home *h = node_; @@ -169,7 +169,7 @@ be_visitor_home_exh::gen_exec_class () << "/// Factory method"; os_ << be_nl - << "virtual ::Components::EnterpriseComponent_ptr create (void);"; + << "virtual ::Components::EnterpriseComponent_ptr create ();"; os_ << be_uidt_nl << "};"; @@ -185,7 +185,7 @@ be_visitor_home_exh::gen_entrypoint () << "extern \"C\" " << export_macro_.c_str () << " ::Components::HomeExecutorBase_ptr" << be_nl << "create_" << node_->flat_name () - << "_Impl (void);"; + << "_Impl ();"; } int diff --git a/TAO/TAO_IDL/be/be_visitor_home/home_exs.cpp b/TAO/TAO_IDL/be/be_visitor_home/home_exs.cpp index 860a76b1c1f..634b9cb3ae0 100644 --- a/TAO/TAO_IDL/be/be_visitor_home/home_exs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_home/home_exs.cpp @@ -126,12 +126,12 @@ be_visitor_home_exs::gen_exec_class () << comment_end_border_; os_ << be_nl_2 - << lname << "_exec_i::" << lname << "_exec_i (void)" << be_nl + << lname << "_exec_i::" << lname << "_exec_i ()" << be_nl << "{" << be_nl << "}"; os_ << be_nl_2 - << lname << "_exec_i::~" << lname << "_exec_i (void)" << be_nl + << lname << "_exec_i::~" << lname << "_exec_i ()" << be_nl << "{" << be_nl << "}"; @@ -188,7 +188,7 @@ be_visitor_home_exs::gen_exec_class () os_ << be_nl_2 << "::Components::EnterpriseComponent_ptr" << be_nl - << lname << "_exec_i::create (void)" << be_nl + << lname << "_exec_i::create ()" << be_nl << "{" << be_idt_nl << "::Components::EnterpriseComponent_ptr retval =" << be_idt_nl @@ -213,7 +213,7 @@ be_visitor_home_exs::gen_entrypoint () << "extern \"C\" " << export_macro_.c_str () << " ::Components::HomeExecutorBase_ptr" << be_nl << "create_" << node_->flat_name () - << "_Impl (void)" << be_nl + << "_Impl ()" << be_nl << "{" << be_idt_nl << "::Components::HomeExecutorBase_ptr retval =" << be_idt_nl << "::Components::HomeExecutorBase::_nil ();" diff --git a/TAO/TAO_IDL/be/be_visitor_home/home_svh.cpp b/TAO/TAO_IDL/be/be_visitor_home/home_svh.cpp index 0844ba3ad7e..dcf444cd61b 100644 --- a/TAO/TAO_IDL/be/be_visitor_home/home_svh.cpp +++ b/TAO/TAO_IDL/be/be_visitor_home/home_svh.cpp @@ -153,7 +153,7 @@ be_visitor_home_svh::gen_servant_class () << "_Container_ptr c);" << be_uidt; os_ << be_nl_2 - << "virtual ~" << lname << "_Servant (void);"; + << "virtual ~" << lname << "_Servant ();"; if (this->node_->has_rw_attributes ()) { diff --git a/TAO/TAO_IDL/be/be_visitor_home/home_svs.cpp b/TAO/TAO_IDL/be/be_visitor_home/home_svs.cpp index f84301b086b..805646d81b7 100644 --- a/TAO/TAO_IDL/be/be_visitor_home/home_svs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_home/home_svs.cpp @@ -235,7 +235,7 @@ be_visitor_home_svs::gen_servant_class () << "}"; os_ << be_nl_2 - << lname << "_Servant::~" << lname << "_Servant (void)" + << lname << "_Servant::~" << lname << "_Servant ()" << be_nl << "{" << be_nl << "}"; diff --git a/TAO/TAO_IDL/be/be_visitor_interface/amh_rh_sh.cpp b/TAO/TAO_IDL/be/be_visitor_interface/amh_rh_sh.cpp index d04f2fa09de..7dd6916b136 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/amh_rh_sh.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/amh_rh_sh.cpp @@ -72,8 +72,8 @@ be_visitor_amh_rh_interface_sh::visit_interface (be_interface *node) *os << be_nl << "{" << be_nl << "public:" << be_idt_nl - << rh_skel_class_name.c_str () << " (void);" << be_nl - << "virtual ~" << rh_skel_class_name.c_str () << " (void);"; + << rh_skel_class_name.c_str () << " ();" << be_nl + << "virtual ~" << rh_skel_class_name.c_str () << " ();"; // Generate code for elements in the scope (e.g., operations). if (this->visit_scope (node) == -1) diff --git a/TAO/TAO_IDL/be/be_visitor_interface/amh_rh_ss.cpp b/TAO/TAO_IDL/be/be_visitor_interface/amh_rh_ss.cpp index 801142ae7bc..c95bbdba3a1 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/amh_rh_ss.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/amh_rh_ss.cpp @@ -68,7 +68,7 @@ be_visitor_amh_rh_interface_ss::visit_interface (be_interface *node) << "// " << __FILE__ << ":" << __LINE__ << be_nl_2; *os << rh_skel_full_scope_name.c_str () - << "::" << rh_skel_class_name.c_str () << " (void)" << be_nl + << "::" << rh_skel_class_name.c_str () << " ()" << be_nl << ": TAO_AMH_Response_Handler ()," << be_idt_nl << "::" << node->full_name () << " ()" << be_uidt << be_uidt_nl << "{" << be_nl @@ -76,7 +76,7 @@ be_visitor_amh_rh_interface_ss::visit_interface (be_interface *node) *os << rh_skel_full_scope_name.c_str () << "::~" << rh_skel_class_name.c_str () - << " (void)" << be_nl; + << " ()" << be_nl; *os << "{" << be_nl; *os << "}"; diff --git a/TAO/TAO_IDL/be/be_visitor_interface/amh_sh.cpp b/TAO/TAO_IDL/be/be_visitor_interface/amh_sh.cpp index 86082b15c9d..74a665c0482 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/amh_sh.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/amh_sh.cpp @@ -107,7 +107,7 @@ be_visitor_amh_interface_sh::visit_interface (be_interface *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; // No copy constructor for locality constraint interface. @@ -128,7 +128,7 @@ be_visitor_amh_interface_sh::visit_interface (be_interface *node) // The _interface_repository_id method. *os << be_nl << "virtual const char* _interface_repository_id " - << "(void) const;"; + << "() const;"; if (this->visit_scope (node) == -1) { @@ -373,5 +373,5 @@ be_visitor_amh_interface_sh::this_method (be_interface *node) // interfaces is "special", because the returned type is not exactly // the type of the class, but the original class that "implied" the // AMH one. - *os << non_amh_name.c_str () << " *_this (void);\n" << be_uidt; + *os << non_amh_name.c_str () << " *_this ();\n" << be_uidt; } diff --git a/TAO/TAO_IDL/be/be_visitor_interface/amh_ss.cpp b/TAO/TAO_IDL/be/be_visitor_interface/amh_ss.cpp index d55894d85a2..e792b18f3c4 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/amh_ss.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/amh_ss.cpp @@ -66,12 +66,12 @@ be_visitor_amh_interface_ss::this_method (be_interface *node) *os << non_amh_name.c_str () << "*" << be_nl << full_skel_name - << "::_this (void)" << be_nl + << "::_this ()" << be_nl << "{" << be_idt_nl << "TAO_Stub *stub = this->_create_stub ();" << be_nl_2; *os << "TAO_Stub_Auto_Ptr safe_stub (stub);" << be_nl - << "::CORBA::Object_ptr tmp = CORBA::Object_ptr ();" << be_nl + << "::CORBA::Object_ptr tmp {};" << be_nl << be_nl << "::CORBA::Boolean _tao_opt_colloc =" << be_idt_nl << "stub->servant_orb_var ()->orb_core ()->" diff --git a/TAO/TAO_IDL/be/be_visitor_interface/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface/any_op_ch.cpp index 4fbc6485a02..b95446f3f0d 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/any_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/any_op_ch.cpp @@ -117,7 +117,7 @@ be_visitor_interface_any_op_ch::visit_interface (be_interface *node) } - 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_interface/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_interface/any_op_cs.cpp index 9d36bece90e..b65572712f8 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/any_op_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/any_op_cs.cpp @@ -251,7 +251,7 @@ be_visitor_interface_any_op_cs::visit_interface (be_interface *node) "codegen for scope failed\n"), -1); } - 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_interface/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_ch.cpp index 5be866512d4..2453440ca1f 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_ch.cpp @@ -74,7 +74,7 @@ be_visitor_interface_cdr_op_ch::visit_interface (be_interface *node) } this->ctx_->sub_state (TAO_CodeGen::TAO_SUB_STATE_UNKNOWN); - 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_interface/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_cs.cpp index 071bd2eab0d..a9ac02c8953 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_cs.cpp @@ -137,7 +137,7 @@ be_visitor_interface_cdr_op_cs::visit_interface (be_interface *node) *os << be_global->core_versioning_end () << be_nl; - node->cli_stub_cdr_op_gen (1); + node->cli_stub_cdr_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_interface/direct_proxy_impl_sh.cpp b/TAO/TAO_IDL/be/be_visitor_interface/direct_proxy_impl_sh.cpp index 431c1fb8b0c..ea9855ced65 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/direct_proxy_impl_sh.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/direct_proxy_impl_sh.cpp @@ -78,7 +78,7 @@ be_visitor_interface_direct_proxy_impl_sh::visit_interface ( << "{" << be_nl << "public:" << be_idt_nl; // Dtor - *os << "virtual ~" << node->direct_proxy_impl_name () << " (void);"; + *os << "virtual ~" << node->direct_proxy_impl_name () << " ();"; if (this->visit_scope (node) == -1) { diff --git a/TAO/TAO_IDL/be/be_visitor_interface/direct_proxy_impl_ss.cpp b/TAO/TAO_IDL/be/be_visitor_interface/direct_proxy_impl_ss.cpp index ec542b5ec27..50134bfb463 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/direct_proxy_impl_ss.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/direct_proxy_impl_ss.cpp @@ -29,7 +29,7 @@ be_visitor_interface_direct_proxy_impl_ss::visit_interface ( // Destructor Implementation *os << node->full_direct_proxy_impl_name () << "::~" - << node->direct_proxy_impl_name () << " (void)" + << node->direct_proxy_impl_name () << " ()" << be_nl << "{" << be_nl << "}" << be_nl_2; if (this->visit_scope (node) == -1) diff --git a/TAO/TAO_IDL/be/be_visitor_interface/facet_svth.cpp b/TAO/TAO_IDL/be/be_visitor_interface/facet_svth.cpp index 29dc80b456e..21130dd0ba5 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/facet_svth.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/facet_svth.cpp @@ -64,7 +64,7 @@ be_visitor_facet_svth::visit_interface (be_interface *node) << "typename EXEC::_ptr_type executor," << be_nl << "::Components::CCMContext_ptr ctx);" << be_uidt_nl << be_nl; - os_ << "virtual ~" << lname << "_Servant_T (void);"; + os_ << "virtual ~" << lname << "_Servant_T ();"; if (is_intf) { diff --git a/TAO/TAO_IDL/be/be_visitor_interface/facet_svts.cpp b/TAO/TAO_IDL/be/be_visitor_interface/facet_svts.cpp index f86cb614bf1..441df38fd93 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/facet_svts.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/facet_svts.cpp @@ -66,7 +66,7 @@ be_visitor_facet_svts::visit_interface (be_interface *node) os_ << be_nl_2 << "template <typename BASE, typename EXEC, typename CONTEXT>" << be_nl << lname << "_Servant_T<BASE, EXEC, CONTEXT>::~" - << lname << "_Servant_T (void)" << be_nl + << lname << "_Servant_T ()" << be_nl << "{" << be_nl << "}"; diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp index 58d33e95a11..102a7c67036 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp @@ -104,7 +104,7 @@ be_visitor_interface_ch::visit_interface (be_interface *node) } } - *os << "static " << node->local_name () << "_ptr _nil (void);"; + *os << "static " << node->local_name () << "_ptr _nil ();"; // Generate code for the interface definition by traversing thru the // elements of its scope. We depend on the front-end to have made sure @@ -142,7 +142,7 @@ be_visitor_interface_ch::visit_interface (be_interface *node) // we have to override _add_ref() to avoid ambiguity. if (node->has_mixed_parentage ()) { - *os << "virtual void _add_ref (void);" << be_nl_2; + *os << "virtual void _add_ref ();" << be_nl_2; } // The _is_a method @@ -151,13 +151,13 @@ be_visitor_interface_ch::visit_interface (be_interface *node) // The _interface_repository_id method. *os << "virtual const char* _interface_repository_id " - << "(void) const;"; + << "() const;"; if (be_global->gen_static_desc_operations ()) { - *os << be_nl << "static const char* _desc_repository_id (void);"; + *os << be_nl << "static const char* _desc_repository_id ();"; - *os << be_nl << "static const char* _desc_interface_name (void);"; + *os << be_nl << "static const char* _desc_interface_name ();"; } // The virtual marshal method, to prevent marshal of local interfaces. @@ -171,8 +171,8 @@ be_visitor_interface_ch::visit_interface (be_interface *node) *os << be_nl << "virtual CORBA::Boolean _tao_encode (TAO_OutputCDR &);" << be_nl << "virtual CORBA::Boolean _tao_decode (TAO_InputCDR &);" << be_nl - << "virtual TAO_Cached_Policy_Type _tao_cached_type (void) const;" << be_nl - << "virtual TAO_Policy_Scope _tao_scope (void) const;" << be_nl; + << "virtual TAO_Cached_Policy_Type _tao_cached_type () const;" << be_nl + << "virtual TAO_Policy_Scope _tao_scope () const;" << be_nl; } if (be_global->gen_ostream_operators ()) @@ -192,7 +192,7 @@ be_visitor_interface_ch::visit_interface (be_interface *node) if (! node->is_abstract ()) { *os << "// Concrete interface only." << be_nl - << node->local_name () << " (void);" + << node->local_name () << " ();" << be_nl_2; } } @@ -201,7 +201,7 @@ be_visitor_interface_ch::visit_interface (be_interface *node) { // Protected default constructor for abstract interfaces. *os << "// Abstract or local interface only." << be_nl - << node->local_name () << " (void);" << be_nl_2; + << node->local_name () << " ();" << be_nl_2; } if (node->is_abstract ()) @@ -228,8 +228,8 @@ be_visitor_interface_ch::visit_interface (be_interface *node) << node->local_name () << " (" << be_idt << be_idt_nl << "TAO_Stub *objref," << be_nl << "::CORBA::Boolean _tao_collocated = false," << be_nl - << "TAO_Abstract_ServantBase *servant = 0," << be_nl - << "TAO_ORB_Core *orb_core = 0);" + << "TAO_Abstract_ServantBase *servant = nullptr," << be_nl + << "TAO_ORB_Core *orb_core = nullptr);" << be_uidt << be_uidt; } @@ -243,7 +243,7 @@ be_visitor_interface_ch::visit_interface (be_interface *node) // Protected destructor. *os << be_nl_2 - << "virtual ~" << node->local_name () << " (void);"; + << "virtual ~" << node->local_name () << " ();"; // Private copy constructor and assignment operator. These are not // allowed, hence they are private. diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_ci.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_ci.cpp index fbd638a5d87..5129d1965d2 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/interface_ci.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_ci.cpp @@ -63,7 +63,7 @@ be_visitor_interface_ci::visit_interface (be_interface *node) *os << be_nl_2 << "ACE_INLINE" << be_nl << node->name () << "::" << node->local_name () - << " (void)" << be_nl + << " ()" << be_nl << "{}" << be_nl_2; *os << "ACE_INLINE" << be_nl diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp index a4068518afa..072a877ecad 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp @@ -83,7 +83,7 @@ be_visitor_interface_cs::visit_interface (be_interface *node) *os << be_nl_2 << node->name () << "_ptr" << be_nl - << "TAO::Objref_Traits<" << node->name () << ">::nil (void)" + << "TAO::Objref_Traits<" << node->name () << ">::nil ()" << be_nl << "{" << be_idt_nl << "return " << node->name () << "::_nil ();" << be_uidt_nl @@ -129,12 +129,12 @@ be_visitor_interface_cs::visit_interface (be_interface *node) << " return false;" << be_nl << "}" << be_nl << be_nl << "TAO_Cached_Policy_Type" << be_nl - << "CORBA::Policy::_tao_cached_type (void) const" << be_nl + << "CORBA::Policy::_tao_cached_type () const" << be_nl << "{" << be_nl << "return TAO_CACHED_POLICY_UNCACHED;" << be_nl << "}" << be_nl << be_nl << "TAO_Policy_Scope" << be_nl - << "CORBA::Policy::_tao_scope (void) const" << be_nl + << "CORBA::Policy::_tao_scope () const" << be_nl << "{" << be_nl << " return TAO_POLICY_DEFAULT_SCOPE;" << be_nl << "}" << be_nl; @@ -189,7 +189,7 @@ be_visitor_interface_cs::visit_interface (be_interface *node) { *os << be_nl_2 << node->name () << "::" << node->local_name () - << " (void)" << be_nl + << " ()" << be_nl << "{}"; } @@ -197,7 +197,7 @@ be_visitor_interface_cs::visit_interface (be_interface *node) { *os << be_nl_2 << node->name () << "::" << node->local_name () - << " (void)" << be_nl; + << " ()" << be_nl; *os << "{" << be_nl; @@ -206,7 +206,7 @@ be_visitor_interface_cs::visit_interface (be_interface *node) *os << be_nl_2 << node->name () << "::~" << node->local_name () - << " (void)" << be_nl; + << " ()" << be_nl; *os << "{" << be_nl << "}" << be_nl_2; bool gen_any_destructor = @@ -230,7 +230,7 @@ be_visitor_interface_cs::visit_interface (be_interface *node) if (node->has_mixed_parentage ()) { *os << "void" << be_nl - << node->name () << "::_add_ref (void)" << be_nl + << node->name () << "::_add_ref ()" << be_nl << "{" << be_idt_nl << "this->::CORBA::Object::_add_ref ();" << be_uidt_nl @@ -260,7 +260,7 @@ be_visitor_interface_cs::visit_interface (be_interface *node) // The _nil method *os << node->full_name () << "_ptr" << be_nl - << node->full_name () << "::_nil (void)" + << node->full_name () << "::_nil ()" << be_nl << "{" << be_idt_nl << "return nullptr;" << be_uidt_nl @@ -308,7 +308,7 @@ be_visitor_interface_cs::visit_interface (be_interface *node) -1); } - *os << ")" << be_nl + *os << ")" << be_uidt_nl << "{" << be_idt_nl << "return true; // success using local knowledge" << be_uidt_nl << "}" << be_uidt_nl @@ -328,7 +328,7 @@ be_visitor_interface_cs::visit_interface (be_interface *node) << "}" << be_nl_2; *os << "const char* " << node->full_name () - << "::_interface_repository_id (void) const" + << "::_interface_repository_id () const" << be_nl << "{" << be_idt_nl << "return \"" << node->repoID () @@ -338,7 +338,7 @@ be_visitor_interface_cs::visit_interface (be_interface *node) if (be_global->gen_static_desc_operations ()) { *os << be_nl_2 << "const char* " << node->full_name () - << "::_desc_repository_id (void)" + << "::_desc_repository_id ()" << be_nl << "{" << be_idt_nl << "return \"" << node->repoID () @@ -346,7 +346,7 @@ be_visitor_interface_cs::visit_interface (be_interface *node) << "}"; *os << be_nl_2 << "const char* " << node->full_name () - << "::_desc_interface_name (void)" + << "::_desc_interface_name ()" << be_nl << "{" << be_idt_nl << "return \"" << node->local_name() @@ -471,7 +471,7 @@ be_visitor_interface_cs::gen_xxx_narrow (const char *pre, } else { - *os << "return" << be_idt_nl; + *os << "return "; if (!node->is_abstract ()) { @@ -484,18 +484,17 @@ be_visitor_interface_cs::gen_xxx_narrow (const char *pre, << node->local_name () << ">::" << pre <<" ("; } - *os << be_idt << be_idt_nl - << "_tao_objref"; + *os << "_tao_objref"; if (ACE_OS::strcmp (pre, "narrow") == 0) { - *os << "," << be_nl + *os << ", " << "\"" << node->repoID () << "\""; } *os << ");"; - *os << be_uidt << be_uidt << be_uidt << be_uidt_nl + *os << be_uidt_nl << "}" << be_nl_2; } diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_ih.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_ih.cpp index 85b6c23811c..448c1ebf838 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/interface_ih.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_ih.cpp @@ -74,7 +74,7 @@ be_visitor_interface_ih::visit_interface (be_interface *node) << "public:" << be_idt_nl << "// Constructor" << be_nl << be_global->impl_class_prefix () << namebuf - << be_global->impl_class_suffix () << " (void);" << be_nl_2; + << be_global->impl_class_suffix () << " ();" << be_nl_2; if (be_global->gen_copy_ctor () && !node->is_local ()) { @@ -97,7 +97,7 @@ be_visitor_interface_ih::visit_interface (be_interface *node) *os << "// Destructor" << be_nl << "virtual " << "~" << be_global->impl_class_prefix () << namebuf - << be_global->impl_class_suffix () << " (void);"; + << be_global->impl_class_suffix () << " ();"; // Generate code for elements in the scope (e.g., operations). diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_is.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_is.cpp index 76e1e2b1781..0d7589dbbd4 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/interface_is.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_is.cpp @@ -46,7 +46,7 @@ be_visitor_interface_is::visit_interface (be_interface *node) << be_global->impl_class_suffix () <<"::" << be_global->impl_class_prefix () << node->flat_name () << be_global->impl_class_suffix () - << " (void)" << be_nl; + << " ()" << be_nl; *os << "{" << be_nl << "}" << be_nl_2; @@ -58,7 +58,7 @@ be_visitor_interface_is::visit_interface (be_interface *node) << be_global->impl_class_suffix () <<"::~" << be_global->impl_class_prefix () << node->flat_name () << be_global->impl_class_suffix () - << " (void)" << be_nl; + << " ()" << be_nl; *os << "{" <<be_nl; *os << "}" << be_nl_2; diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_sh.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_sh.cpp index 789b4497c5c..0dd4c94accc 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/interface_sh.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_sh.cpp @@ -101,7 +101,7 @@ be_visitor_interface_sh::visit_interface (be_interface *node) << "protected:" << be_idt_nl; // Default constructor. - *os << class_name.c_str () << " (void);" + *os << class_name.c_str () << " ();" << be_uidt_nl << be_nl << "public:" << be_idt_nl; @@ -117,7 +117,7 @@ be_visitor_interface_sh::visit_interface (be_interface *node) // Copy constructor and destructor. *os << class_name.c_str () << " (const " << class_name.c_str () << "& rhs);" << be_nl - << "virtual ~" << class_name.c_str () << " (void);" << be_nl_2; + << "virtual ~" << class_name.c_str () << " ();" << be_nl_2; // _is_a *os << "virtual ::CORBA::Boolean _is_a (const char* logical_type_id);" << be_nl_2; @@ -133,7 +133,7 @@ be_visitor_interface_sh::visit_interface (be_interface *node) // The _interface_repository_id method. *os << be_nl << "virtual const char* _interface_repository_id " - << "(void) const;"; + << "() const;"; // Generate code for elements in the scope (e.g., operations). if (this->visit_scope (node) == -1) @@ -263,7 +263,7 @@ be_visitor_interface_sh::this_method (be_interface *node) TAO_OutStream *os = this->ctx_->stream (); // Print out the _this() method. - *os << "::" << node->full_name () << " *_this (void);" + *os << "::" << node->full_name () << " *_this ();" << be_nl; } diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp index 9847a170dd7..81256400f5f 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp @@ -108,14 +108,14 @@ be_visitor_interface_ss::visit_interface (be_interface *node) *os << full_skel_name << "::" << local_name_prefix << node_local_name - << " (void)" << be_idt_nl; + << " ()" << be_idt_nl; *os << ": TAO_ServantBase ()" << be_uidt_nl; // Default constructor body. *os << "{" << be_idt_nl - << "this->optable_ = &tao_" << flat_name - << "_optable;" << be_uidt_nl + << "this->optable_ = std::addressof(tao_" << flat_name + << "_optable);" << be_uidt_nl << "}" << be_nl_2; // find if we are at the top scope or inside some module @@ -143,7 +143,7 @@ be_visitor_interface_ss::visit_interface (be_interface *node) *os << full_skel_name << "::~" << local_name_prefix << node_local_name - << " (void)" << be_nl; + << " ()" << be_nl; *os << "{" << be_nl; *os << "}" << be_nl; @@ -182,27 +182,20 @@ be_visitor_interface_ss::visit_interface (be_interface *node) -1); } - *os << "!std::strcmp (" << be_idt << be_idt_nl - << "value," << be_nl - << "\"IDL:omg.org/CORBA/Object:1.0\"" << be_uidt_nl - << ")"; + *os << "std::strcmp (value, \"IDL:omg.org/CORBA/Object:1.0\") == 0"; if (node->has_mixed_parentage ()) { - *os << " ||" << be_uidt_nl - << "!std::strcmp (" << be_idt << be_idt_nl - << "value," << be_nl - << "\"IDL:omg.org/CORBA/AbstractBase:1.0\"" - << be_uidt_nl - << ")"; + *os << " ||" << be_nl + << "std::strcmp (value, \"IDL:omg.org/CORBA/AbstractBase:1.0\") == 0"; } - *os << be_uidt << be_uidt_nl + *os << be_uidt_nl << ");" << be_uidt << be_uidt_nl << "}" << be_nl_2; *os << "const char* " << full_skel_name - << "::_interface_repository_id (void) const" + << "::_interface_repository_id () const" << be_nl; *os << "{" << be_idt_nl; *os << "return \"" << node->repoID () << "\";" << be_uidt_nl; @@ -374,7 +367,7 @@ be_visitor_interface_ss::this_method (be_interface *node) // The _this () operation. *os << node->full_name () << " *" << be_nl << node->full_skel_name () - << "::_this (void)" << be_nl + << "::_this ()" << be_nl << "{" << be_idt_nl << "TAO_Stub *stub = this->_create_stub ();" << be_nl_2 @@ -382,7 +375,7 @@ be_visitor_interface_ss::this_method (be_interface *node) /* Coverity whines about an unused return value from _nil() when initializing tmp. Just use zero instead. */ - *os << "::CORBA::Object_ptr tmp = CORBA::Object_ptr ();" + *os << "::CORBA::Object_ptr tmp {};" << be_nl_2; *os << "::CORBA::Boolean const _tao_opt_colloc =" diff --git a/TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_ch.cpp index 67307bd46ca..d403ce016d2 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_ch.cpp @@ -54,7 +54,7 @@ int be_visitor_interface_smart_proxy_ch::visit_interface (be_interface *node) << "// flexibility of having a different smart proxy per object "<<be_nl <<"// instead of per interface."<<be_nl<< be_nl << "virtual ~TAO_" << node->flat_name () - << "_Default_Proxy_Factory (void);" << be_nl_2 + << "_Default_Proxy_Factory ();" << be_nl_2 << "virtual "<< node->local_name () << "_ptr create_proxy (" << be_idt << be_idt_nl << node->local_name () @@ -73,16 +73,16 @@ int be_visitor_interface_smart_proxy_ch::visit_interface (be_interface *node) << "TAO_" << node->flat_name () << "_Default_Proxy_Factory *df,"<< be_nl << "bool one_shot_factory = true" << be_uidt_nl << ");" << be_uidt_nl << be_nl - << "void unregister_proxy_factory (void);" << be_nl_2 + << "void unregister_proxy_factory ();" << be_nl_2 << node->local_name () << "_ptr create_proxy (" << be_idt << be_idt_nl << node->local_name () << "_ptr proxy" << be_uidt_nl << ");" << be_uidt << be_uidt_nl << be_nl << "protected:" << be_idt_nl << "TAO_" << node->flat_name () - << "_Proxy_Factory_Adapter (void);" << be_nl + << "_Proxy_Factory_Adapter ();" << be_nl << "~TAO_" << node->flat_name () - << "_Proxy_Factory_Adapter (void);" << be_nl + << "_Proxy_Factory_Adapter ();" << be_nl << "TAO_" << node->flat_name () << "_Proxy_Factory_Adapter &operator= (" << be_idt << be_idt_nl << "const TAO_" << node->flat_name () @@ -138,19 +138,19 @@ int be_visitor_interface_smart_proxy_ch::visit_interface (be_interface *node) *os << "{" << be_nl << "public:" << be_idt_nl - << "TAO_"<< node->flat_name () << "_Smart_Proxy_Base (void);" + << "TAO_"<< node->flat_name () << "_Smart_Proxy_Base ();" << be_nl // Just to keep Old g++ complier (version: 2.7.2.3) happy it's // necesssary to declare and define the destructor explicitly. - << "~TAO_"<< node->flat_name () << "_Smart_Proxy_Base (void);" + << "~TAO_"<< node->flat_name () << "_Smart_Proxy_Base ();" << be_nl // This method will delegate this method to the <base_proxy_> // member of the smart proxy and so the smart proxy's (nil) // stubobj will not be returned. - << "virtual TAO_Stub *_stubobj (void) const;" + << "virtual TAO_Stub *_stubobj () const;" << be_nl // Another version of the above method.. -<< "virtual TAO_Stub *_stubobj (void);" +<< "virtual TAO_Stub *_stubobj ();" << be_uidt_nl; // Generate code for the interface definition by traversing thru the @@ -169,7 +169,7 @@ int be_visitor_interface_smart_proxy_ch::visit_interface (be_interface *node) *os << "protected:" << be_idt_nl << "::" << node->full_name () - << "_ptr get_proxy (void);" << be_nl + << "_ptr get_proxy ();" << be_nl << "::" << node->full_name () << "_var proxy_;" << be_uidt_nl << "};\n\n"; diff --git a/TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_cs.cpp b/TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_cs.cpp index 0018662095f..2379e9acf52 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_cs.cpp @@ -65,7 +65,7 @@ int be_visitor_interface_smart_proxy_cs::visit_interface (be_interface *node) *os << "TAO_"<< node->flat_name () << "_Default_Proxy_Factory::~"; *os <<"TAO_" - << node->flat_name () << "_Default_Proxy_Factory (void)" + << node->flat_name () << "_Default_Proxy_Factory ()" << be_nl << be_uidt << be_uidt << "{" << be_nl << "}"; @@ -98,7 +98,7 @@ int be_visitor_interface_smart_proxy_cs::visit_interface (be_interface *node) *os << "TAO_" << node->flat_name () << "_Proxy_Factory_Adapter::"; *os << "TAO_" - << node->flat_name () << "_Proxy_Factory_Adapter (void)" << be_idt_nl + << node->flat_name () << "_Proxy_Factory_Adapter ()" << be_idt_nl << ": proxy_factory_ (0)," << be_idt_nl << "one_shot_factory_ (false)," << be_nl << "disable_factory_ (false)" << be_uidt << be_uidt_nl @@ -116,7 +116,7 @@ int be_visitor_interface_smart_proxy_cs::visit_interface (be_interface *node) *os << "TAO_" << node->flat_name () << "_Proxy_Factory_Adapter::"; *os << "~TAO_" - << node->flat_name () << "_Proxy_Factory_Adapter (void)" << be_nl + << node->flat_name () << "_Proxy_Factory_Adapter ()" << be_nl << "{" << be_idt_nl << "// Making sure the factory which the adapter" << " has is destroyed with it." @@ -167,7 +167,7 @@ int be_visitor_interface_smart_proxy_cs::visit_interface (be_interface *node) *os << "::"; *os << "TAO_"<< node->flat_name () - << "_Proxy_Factory_Adapter::unregister_proxy_factory (void)" << be_nl + << "_Proxy_Factory_Adapter::unregister_proxy_factory ()" << be_nl << "{" << be_idt_nl << "ACE_MT (" << be_idt << be_idt_nl << "ACE_GUARD (" << be_idt << be_idt_nl @@ -236,7 +236,7 @@ int be_visitor_interface_smart_proxy_cs::visit_interface (be_interface *node) *os << "TAO_" << node->flat_name () << "_Smart_Proxy_Base::"; *os << "TAO_" - << node->flat_name () << "_Smart_Proxy_Base (void)" << be_uidt_nl + << node->flat_name () << "_Smart_Proxy_Base ()" << be_uidt_nl << "{" << be_nl << "}" << be_nl_2; @@ -249,7 +249,7 @@ int be_visitor_interface_smart_proxy_cs::visit_interface (be_interface *node) *os << "TAO_" << node->flat_name () << "_Smart_Proxy_Base::"; *os << "~TAO_" - << node->flat_name () << "_Smart_Proxy_Base (void)" <<be_nl + << node->flat_name () << "_Smart_Proxy_Base ()" <<be_nl << "{" << be_nl << "}\n\n"; @@ -263,7 +263,7 @@ int be_visitor_interface_smart_proxy_cs::visit_interface (be_interface *node) *os << "::"; *os << "TAO_" << node->flat_name () << "_Smart_Proxy_Base::"; - *os << "_stubobj (void) const"<<be_nl + *os << "_stubobj () const"<<be_nl << "{" << be_idt_nl << "return this->base_proxy_->_stubobj ();"<< be_uidt_nl << "}"<< be_nl_2; @@ -277,7 +277,7 @@ int be_visitor_interface_smart_proxy_cs::visit_interface (be_interface *node) if (node->is_nested ()) *os << "::"; *os << "TAO_" << node->flat_name () << "_Smart_Proxy_Base::"; - *os << "_stubobj (void)"<<be_nl + *os << "_stubobj ()"<<be_nl << "{" << be_idt_nl << "return this->base_proxy_->_stubobj ();"<< be_uidt_nl << "}" << be_nl_2; @@ -302,7 +302,7 @@ int be_visitor_interface_smart_proxy_cs::visit_interface (be_interface *node) *os << "::"; *os << "TAO_" << node->flat_name () << "_Smart_Proxy_Base::" - << "get_proxy (void)" << be_idt_nl + << "get_proxy ()" << be_idt_nl << be_uidt_nl; *os << "{" << be_idt_nl diff --git a/TAO/TAO_IDL/be/be_visitor_interface/tie_sh.cpp b/TAO/TAO_IDL/be/be_visitor_interface/tie_sh.cpp index 7a16a8ac9c0..85f7e25cbf1 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/tie_sh.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/tie_sh.cpp @@ -88,20 +88,20 @@ be_visitor_interface_tie_sh::visit_interface (be_interface *node) << "::CORBA::Boolean release = true);" << be_uidt << be_uidt_nl << "/// dtor" << be_nl - << "~" << tiename << " (void);" << be_nl + << "~" << tiename << " ();" << be_nl << "// TIE specific functions" << be_nl << "/// return the underlying object" << be_nl - << "T *_tied_object (void);" << be_nl + << "T *_tied_object ();" << be_nl << "/// set the underlying object" << be_nl << "void _tied_object (T &obj);" << be_nl << "/// set the underlying object and the ownership flag" << be_nl << "void _tied_object (T *obj, ::CORBA::Boolean release = true);" << be_nl << "/// do we own it" << be_nl - << "::CORBA::Boolean _is_owner (void);" << be_nl + << "::CORBA::Boolean _is_owner ();" << be_nl << "/// set the ownership" << be_nl_2 << "void _is_owner ( ::CORBA::Boolean b);" << be_nl << "// overridden ServantBase operations" << be_nl - << "PortableServer::POA_ptr _default_POA (void);"; + << "PortableServer::POA_ptr _default_POA ();"; int status = node->traverse_inheritance_graph ( diff --git a/TAO/TAO_IDL/be/be_visitor_interface/tie_ss.cpp b/TAO/TAO_IDL/be/be_visitor_interface/tie_ss.cpp index 40976c5b33b..2aefd8183b7 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/tie_ss.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/tie_ss.cpp @@ -111,7 +111,7 @@ be_visitor_interface_tie_ss::visit_interface (be_interface *node) << "{}" << be_nl_2; *os << "template <class T>" << be_nl - << fulltiename << "<T>::~" << localtiename << " (void)" << be_nl + << fulltiename << "<T>::~" << localtiename << " ()" << be_nl << "{" << be_idt_nl << "if (this->rel_)" << be_idt_nl << "{" << be_idt_nl @@ -120,7 +120,7 @@ be_visitor_interface_tie_ss::visit_interface (be_interface *node) << "}" << be_nl_2; *os << "template <class T> T *" << be_nl - << fulltiename << "<T>::_tied_object (void)" << be_nl + << fulltiename << "<T>::_tied_object ()" << be_nl << "{" << be_idt_nl << "return this->ptr_;" << be_uidt_nl << "}" << be_nl_2; @@ -149,7 +149,7 @@ be_visitor_interface_tie_ss::visit_interface (be_interface *node) << "}" << be_nl_2; *os << "template <class T> ::CORBA::Boolean" << be_nl - << fulltiename << "<T>::_is_owner (void)" << be_nl + << fulltiename << "<T>::_is_owner ()" << be_nl << "{" << be_idt_nl << "return this->rel_;" << be_uidt_nl << "}" << be_nl_2; diff --git a/TAO/TAO_IDL/be/be_visitor_interface_fwd/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface_fwd/any_op_ch.cpp index fcccf6da943..7136b8cce2e 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface_fwd/any_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface_fwd/any_op_ch.cpp @@ -106,6 +106,6 @@ be_visitor_interface_fwd_any_op_ch::visit_interface_fwd ( *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_interface_fwd/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface_fwd/cdr_op_ch.cpp index f6b68cab462..1af551c91c2 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface_fwd/cdr_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface_fwd/cdr_op_ch.cpp @@ -57,6 +57,6 @@ be_visitor_interface_fwd_cdr_op_ch::visit_interface_fwd (be_interface_fwd *node) *os << be_global->core_versioning_end () << be_nl; - 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_operation/ami_cs.cpp b/TAO/TAO_IDL/be/be_visitor_operation/ami_cs.cpp index de538be52bf..b073286e4d7 100644 --- a/TAO/TAO_IDL/be/be_visitor_operation/ami_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_operation/ami_cs.cpp @@ -136,7 +136,7 @@ be_visitor_operation_ami_cs::visit_operation (be_operation *node) // type is void. No need to generate argument list. *os << be_nl_2 - << "TAO::Argument ** _the_tao_operation_signature = 0;"; + << "TAO::Argument ** _the_tao_operation_signature {};"; nargs = 0; // Don't count the reply handler. } else diff --git a/TAO/TAO_IDL/be/be_visitor_operation/ami_handler_reply_stub_operation_cs.cpp b/TAO/TAO_IDL/be/be_visitor_operation/ami_handler_reply_stub_operation_cs.cpp index ede3ab5369e..8be04af15e1 100644 --- a/TAO/TAO_IDL/be/be_visitor_operation/ami_handler_reply_stub_operation_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_operation/ami_handler_reply_stub_operation_cs.cpp @@ -205,7 +205,7 @@ be_visitor_operation_ami_handler_reply_stub_operation_cs::visit_operation ( << "0);" << be_uidt << be_uidt_nl; - *os << "::Messaging::ExceptionHolder* exception_holder_ptr = 0;" << be_nl + *os << "::Messaging::ExceptionHolder* exception_holder_ptr {};" << be_nl << "ACE_NEW (" << be_idt << be_idt_nl << "exception_holder_ptr," << be_nl << "::TAO::ExceptionHolder (" << be_idt_nl diff --git a/TAO/TAO_IDL/be/be_visitor_operation/upcall_command_ss.cpp b/TAO/TAO_IDL/be/be_visitor_operation/upcall_command_ss.cpp index 8dfd3973eff..4827c027ba9 100644 --- a/TAO/TAO_IDL/be/be_visitor_operation/upcall_command_ss.cpp +++ b/TAO/TAO_IDL/be/be_visitor_operation/upcall_command_ss.cpp @@ -134,7 +134,7 @@ be_visitor_operation_upcall_command_ss::visit ( << "}" << be_nl_2; // Generate execute() method. - os << "virtual void execute (void)" << be_nl + os << "virtual void execute ()" << be_nl << "{" << be_idt_nl; if (!node->void_return_type ()) diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_ch.cpp index 8098e494498..0dd0d3522b7 100644 --- a/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_ch.cpp @@ -128,6 +128,6 @@ be_visitor_sequence_cdr_op_ch::visit_sequence (be_sequence *node) << node->flat_name () << "_H_ */"; } - 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_sequence/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_cs.cpp index 7589ff6fb06..e54fa0d0c03 100644 --- a/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_cs.cpp @@ -203,7 +203,7 @@ be_visitor_sequence_cdr_op_cs::visit_sequence (be_sequence *node) << "#endif /* _TAO_CDR_OP_" << node->flat_name () << "_CPP_ */"; - node->cli_stub_cdr_op_gen (1); + node->cli_stub_cdr_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp index 54f8899304a..dcd96d21466 100644 --- a/TAO/TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp @@ -195,7 +195,7 @@ int be_visitor_sequence_ch::visit_sequence (be_sequence *node) << "public:" << be_idt; *os << be_nl - << node->local_name () << " (void);"; + << node->local_name () << " ();"; if (node->unbounded ()) { @@ -245,16 +245,16 @@ int be_visitor_sequence_ch::visit_sequence (be_sequence *node) << node->local_name () << "& operator= (" << node->local_name () << " &&) = default;" << be_nl; - *os << "virtual ~" << node->local_name () << " (void);"; + *os << "virtual ~" << node->local_name () << " ();"; if (be_global->alt_mapping () && node->unbounded ()) { *os << be_nl_2 - << "virtual ::CORBA::ULong length (void) const;" + << "virtual ::CORBA::ULong length () const;" << be_nl << "virtual void length (::CORBA::ULong);" << be_nl_2 - << "virtual ::CORBA::ULong maximum (void) const;"; + << "virtual ::CORBA::ULong maximum () const;"; } *os << be_nl; diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/sequence_cs.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/sequence_cs.cpp index 38050ca3a6f..978866d68b5 100644 --- a/TAO/TAO_IDL/be/be_visitor_sequence/sequence_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_sequence/sequence_cs.cpp @@ -109,7 +109,7 @@ int be_visitor_sequence_cs::visit_sequence (be_sequence *node) // default constructor *os << be_nl_2 << node->name () << "::" << node->local_name () - << " (void)" << be_nl + << " ()" << be_nl << "{}"; // for unbounded sequences, we have a different set of constructors @@ -204,14 +204,14 @@ int be_visitor_sequence_cs::visit_sequence (be_sequence *node) // Destructor. *os << be_nl_2 << node->name () << "::~" << node->local_name () - << " (void)" << be_nl + << " ()" << be_nl << "{}"; if (be_global->alt_mapping () && node->unbounded ()) { *os << be_nl_2 << "::CORBA::ULong" << be_nl - << node->name () << "::length (void) const" << be_nl + << node->name () << "::length () const" << be_nl << "{" << be_idt_nl << "return this->size ();" << be_uidt_nl << "}"; @@ -226,7 +226,7 @@ int be_visitor_sequence_cs::visit_sequence (be_sequence *node) *os << be_nl_2 << "::CORBA::ULong" << be_nl - << node->name () << "::maximum (void) const" << be_nl + << node->name () << "::maximum () const" << be_nl << "{" << be_idt_nl << "return this->capacity ();" << be_uidt_nl << "}"; 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 53700954348..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 @@ -110,7 +110,7 @@ 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; } diff --git a/TAO/TAO_IDL/be/be_visitor_structure/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_structure/any_op_cs.cpp index 3471d0cd6dd..aa234e85fa4 100644 --- a/TAO/TAO_IDL/be/be_visitor_structure/any_op_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_structure/any_op_cs.cpp @@ -227,7 +227,7 @@ be_visitor_structure_any_op_cs::visit_structure (be_structure *node) -1); } - 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_traits.cpp b/TAO/TAO_IDL/be/be_visitor_traits.cpp index cfe93648ba0..ae8161b414b 100644 --- a/TAO/TAO_IDL/be/be_visitor_traits.cpp +++ b/TAO/TAO_IDL/be/be_visitor_traits.cpp @@ -132,7 +132,7 @@ be_visitor_traits::visit_interface (be_interface *node) << "::" << fname << "_ptr p);" << be_uidt << be_uidt_nl << "static void release (" << be_idt << be_idt_nl << "::" << fname << "_ptr p);" << be_uidt << be_uidt_nl - << "static ::" << fname << "_ptr nil (void);" << be_nl + << "static ::" << fname << "_ptr nil ();" << be_nl << "static ::CORBA::Boolean marshal (" << be_idt << be_idt_nl << "const ::" << fname << "_ptr p," << be_nl << "TAO_OutputCDR & cdr);" << be_uidt << be_uidt << be_uidt_nl @@ -454,7 +454,7 @@ be_visitor_traits::visit_array (be_array *node) << "const " << name << "_slice * _tao_from);" << be_uidt << be_uidt_nl - << "static " << name << "_slice * alloc (void);" + << "static " << name << "_slice * alloc ();" << be_nl << "static void zero (" << be_idt << be_idt_nl << name << "_slice * _tao_slice);" diff --git a/TAO/TAO_IDL/be/be_visitor_typedef/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_typedef/any_op_ch.cpp index 2f568927ad2..4d3811f2e0a 100644 --- a/TAO/TAO_IDL/be/be_visitor_typedef/any_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_typedef/any_op_ch.cpp @@ -125,7 +125,7 @@ be_visitor_typedef_any_op_ch::visit_typedef (be_typedef *node) this->ctx_->tdef (nullptr); // reset } - 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_typedef/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_typedef/cdr_op_ch.cpp index c57d759a548..0865d98dc57 100644 --- a/TAO/TAO_IDL/be/be_visitor_typedef/cdr_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_typedef/cdr_op_ch.cpp @@ -125,7 +125,7 @@ be_visitor_typedef_cdr_op_ch::visit_typedef (be_typedef *node) this->ctx_->tdef (nullptr); } - 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_typedef/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_typedef/cdr_op_cs.cpp index 1f43246e813..9045ff559a8 100644 --- a/TAO/TAO_IDL/be/be_visitor_typedef/cdr_op_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_typedef/cdr_op_cs.cpp @@ -121,7 +121,7 @@ be_visitor_typedef_cdr_op_cs::visit_typedef (be_typedef *node) this->ctx_->tdef (nullptr); // reset } - node->cli_stub_cdr_op_gen (1); + node->cli_stub_cdr_op_gen (true); return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_typedef/typedef_ch.cpp b/TAO/TAO_IDL/be/be_visitor_typedef/typedef_ch.cpp index 4fcba8bffc1..11ece6e78d2 100644 --- a/TAO/TAO_IDL/be/be_visitor_typedef/typedef_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_typedef/typedef_ch.cpp @@ -230,7 +230,7 @@ be_visitor_typedef_ch::visit_array (be_array *node) *os << be_nl << "ACE_INLINE " << static_decl << be_nl << td_name << "_slice *" << be_nl - << td_name << "_alloc (void);" << be_nl; + << td_name << "_alloc ();" << be_nl; // _dup *os << be_nl << "ACE_INLINE " << static_decl << be_nl diff --git a/TAO/TAO_IDL/be/be_visitor_typedef/typedef_ci.cpp b/TAO/TAO_IDL/be/be_visitor_typedef/typedef_ci.cpp index 971d9fb24f4..c305d181e52 100644 --- a/TAO/TAO_IDL/be/be_visitor_typedef/typedef_ci.cpp +++ b/TAO/TAO_IDL/be/be_visitor_typedef/typedef_ci.cpp @@ -170,7 +170,7 @@ be_visitor_typedef_ci::visit_array (be_array *node) *os << be_nl << "ACE_INLINE" << be_nl << tdef->name () << "_slice *" << be_nl; - *os << tdef->name () << "_alloc (void)" << be_nl; + *os << tdef->name () << "_alloc ()" << be_nl; *os << "{" << be_idt_nl; *os << "return " << bt->name () << "_alloc ();" << be_uidt_nl; *os << "}" << be_nl_2; diff --git a/TAO/TAO_IDL/be/be_visitor_union/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union/any_op_ch.cpp index 96c2289b6c6..b8b2a3eedc9 100644 --- a/TAO/TAO_IDL/be/be_visitor_union/any_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_union/any_op_ch.cpp @@ -131,7 +131,7 @@ be_visitor_union_any_op_ch::visit_union (be_union *node) -1); } - 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_union/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp index 5df518c35d3..d0c95024982 100644 --- a/TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp @@ -247,7 +247,7 @@ be_visitor_union_any_op_cs::visit_union (be_union *node) -1); } - 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_union/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union/cdr_op_ch.cpp index a4b2a4e1bad..142279b0dbf 100644 --- a/TAO/TAO_IDL/be/be_visitor_union/cdr_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_union/cdr_op_ch.cpp @@ -91,6 +91,6 @@ be_visitor_union_cdr_op_ch::visit_union (be_union *node) -1); } - 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_union/discriminant_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union/discriminant_ch.cpp index 5869e229fd5..9f4f09196be 100644 --- a/TAO/TAO_IDL/be/be_visitor_union/discriminant_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_union/discriminant_ch.cpp @@ -70,7 +70,7 @@ be_visitor_union_discriminant_ch::visit_enum (be_enum *node) *os << be_nl_2 << "void _d (" << bt->nested_type_name (bu) << ");" << be_nl; // The get method. - *os << bt->nested_type_name (bu) << " _d (void) const;"; + *os << bt->nested_type_name (bu) << " _d () const;"; return 0; } @@ -103,7 +103,7 @@ be_visitor_union_discriminant_ch::visit_predefined_type (be_predefined_type *os << be_nl_2 << "void _d ( " << bt->nested_type_name (bu) << ");" << be_nl; // The get method. - *os << bt->nested_type_name (bu) << " _d (void) const;"; + *os << bt->nested_type_name (bu) << " _d () const;"; return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_union/discriminant_ci.cpp b/TAO/TAO_IDL/be/be_visitor_union/discriminant_ci.cpp index d15699f32ad..ce1b7ca49e6 100644 --- a/TAO/TAO_IDL/be/be_visitor_union/discriminant_ci.cpp +++ b/TAO/TAO_IDL/be/be_visitor_union/discriminant_ci.cpp @@ -100,7 +100,7 @@ be_visitor_union_discriminant_ci::visit_enum (be_enum *node) *os << "// Accessor to get the discriminant." << be_nl << "ACE_INLINE" << be_nl << bt->name () << be_nl - << bu->name () << "::_d (void) const" << be_nl + << bu->name () << "::_d () const" << be_nl << "{" << be_idt_nl << "return this->disc_;" << be_uidt_nl << "}"; @@ -210,7 +210,7 @@ be_visitor_union_discriminant_ci::visit_predefined_type ( *os << "// Accessor to get the discriminant." << be_nl << "ACE_INLINE" << be_nl << "::" << bt->name () << be_nl - << bu->name () << "::_d (void) const" << be_nl + << bu->name () << "::_d () const" << be_nl << "{" << be_idt_nl << "return this->disc_;" << be_uidt_nl << "}"; diff --git a/TAO/TAO_IDL/be/be_visitor_union/union_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union/union_ch.cpp index 1add0b5e828..3943c07a55f 100644 --- a/TAO/TAO_IDL/be/be_visitor_union/union_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_union/union_ch.cpp @@ -49,11 +49,11 @@ int be_visitor_union_ch::visit_union (be_union *node) << "public:" << be_idt_nl // Generate default and copy constructors. - << node->local_name () << " (void);" << be_nl + << node->local_name () << " ();" << be_nl << node->local_name () << " (const " << node->local_name () << " &);" << be_nl // Generate destructor. - << "~" << node->local_name () << " (void);"; + << "~" << node->local_name () << " ();"; // Generate assignment operator. *os << be_nl_2 @@ -123,7 +123,7 @@ int be_visitor_union_ch::visit_union (be_union *node) // Only if all cases are not covered AND there is no explicit // default, we get the _default () method. *os << be_nl_2 - << "void _default (void);"; + << "void _default ();"; } *os << be_uidt_nl; @@ -154,7 +154,7 @@ int be_visitor_union_ch::visit_union (be_union *node) // The reset method (TAO extension). *os << be_nl_2 << "/// TAO extension - frees any allocated storage." << be_nl; - *os << "void _reset (void);"; + *os << "void _reset ();"; *os << be_uidt_nl << "};"; diff --git a/TAO/TAO_IDL/be/be_visitor_union/union_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union/union_cs.cpp index f04a3b23e88..5cfcba36781 100644 --- a/TAO/TAO_IDL/be/be_visitor_union/union_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_union/union_cs.cpp @@ -77,7 +77,7 @@ int be_visitor_union_cs::visit_union (be_union *node) // Generate the copy constructor and the assignment operator here. *os << be_nl_2 - << node->name () << "::" << node->local_name () << " (void)" << be_nl + << node->name () << "::" << node->local_name () << " ()" << be_nl << "{" << be_idt_nl << "ACE_OS::memset (&this->u_, 0, sizeof (this->u_));" << be_nl; @@ -189,7 +189,7 @@ int be_visitor_union_cs::visit_union (be_union *node) *os << be_uidt_nl << "}" << be_nl_2; *os << node->name () << "::~" << node->local_name () - << " (void)" << be_nl + << " ()" << be_nl << "{" << be_idt_nl << "// Finalize." << be_nl << "this->_reset ();" << be_uidt_nl @@ -267,7 +267,7 @@ int be_visitor_union_cs::visit_union (be_union *node) this->ctx_->state (TAO_CodeGen::TAO_UNION_PUBLIC_RESET_CS); *os << "/// Reset method to reset old values of a union." << be_nl; - *os << "void " << node->name () << "::_reset (void)" << be_nl; + *os << "void " << node->name () << "::_reset ()" << be_nl; *os << "{" << be_idt_nl; if (!boolDisc) diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/public_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/public_ch.cpp index 5f7aa44601e..566027008ec 100644 --- a/TAO/TAO_IDL/be/be_visitor_union_branch/public_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_union_branch/public_ch.cpp @@ -118,7 +118,7 @@ be_visitor_union_branch_public_ch::visit_array (be_array *node) << "_" << bt->local_name () << ");" << be_nl; // The get method. *os << "_" << bt->local_name () << "_slice * " << ub->local_name () - << " (void) const; // get method"; + << " () const; // get method"; } else { @@ -133,7 +133,7 @@ be_visitor_union_branch_public_ch::visit_array (be_array *node) << be_nl; // The get method. *os << bt->nested_type_name (bu, "_slice *") << " " << ub->local_name () - << " (void) const;"; + << " () const;"; } return 0; @@ -196,7 +196,7 @@ be_visitor_union_branch_public_ch::visit_enum (be_enum *node) << be_nl; // the get method. *os << bt->nested_type_name (bu) << " " << ub->local_name () - << " (void) const;"; + << " () const;"; return 0; } @@ -239,7 +239,7 @@ be_visitor_union_branch_public_ch::visit_interface (be_interface *node) << ");" << be_nl; // Get method. *os << bt->nested_type_name (bu, "_ptr") << " " << ub->local_name () - << " (void) const;"; + << " () const;"; return 0; } @@ -282,7 +282,7 @@ be_visitor_union_branch_public_ch::visit_interface_fwd (be_interface_fwd *node) << ");" << be_nl; // Get method. *os << bt->nested_type_name (bu, "_ptr") << " " << ub->local_name () - << " (void) const;"; + << " () const;"; return 0; } @@ -325,7 +325,7 @@ be_visitor_union_branch_public_ch::visit_valuebox (be_valuebox *node) << ");" << be_nl; // Get method. *os << bt->nested_type_name (bu, "*") << " " << ub->local_name () - << " (void) const;"; + << " () const;"; return 0; } @@ -368,7 +368,7 @@ be_visitor_union_branch_public_ch::visit_valuetype (be_valuetype *node) << ");" << be_nl; // Get method. *os << bt->nested_type_name (bu, "*") << " " << ub->local_name () - << " (void) const;"; + << " () const;"; return 0; } @@ -411,7 +411,7 @@ be_visitor_union_branch_public_ch::visit_valuetype_fwd (be_valuetype_fwd *node) << ")" << be_nl; // Get method. *os << bt->nested_type_name (bu, "*") << " " << ub->local_name () - << " (void) const;"; + << " () const;"; return 0; } @@ -457,23 +457,23 @@ be_visitor_union_branch_public_ch::visit_predefined_type (be_predefined_type *no << "void " << ub->local_name () << " (const " << bt->nested_type_name (bu, "_ptr") << ");" << be_nl; *os << bt->nested_type_name (bu, "_ptr") << " " - << ub->local_name () << " (void) const;"; + << ub->local_name () << " () const;"; break; case AST_PredefinedType::PT_value: *os << be_nl_2 << "void " << ub->local_name () << " ( " << bt->nested_type_name (bu, " *") << ");" << be_nl; *os << bt->nested_type_name (bu, " *") << " " - << ub->local_name () << " (void) const;"; + << ub->local_name () << " () const;"; break; case AST_PredefinedType::PT_any: *os << be_nl_2 << "void " << ub->local_name () << " (const " << bt->nested_type_name (bu) << " &);" << be_nl; *os << "const " << bt->nested_type_name (bu) << " &" - << ub->local_name () << " (void) const;" << be_nl; + << ub->local_name () << " () const;" << be_nl; *os << bt->nested_type_name (bu) << " &" - << ub->local_name () << " (void);"; + << ub->local_name () << " ();"; break; case AST_PredefinedType::PT_void: break; @@ -482,7 +482,7 @@ be_visitor_union_branch_public_ch::visit_predefined_type (be_predefined_type *no << "void " << ub->local_name () << " ( " << bt->nested_type_name (bu) << ");" << be_nl; *os << bt->nested_type_name (bu) << " " - << ub->local_name () << " (void) const;"; + << ub->local_name () << " () const;"; } return 0; @@ -551,10 +551,10 @@ be_visitor_union_branch_public_ch::visit_sequence (be_sequence *node) << "void " << ub->local_name () << " (const " << bt->nested_type_name (bu) << " &);" << be_nl; *os << "const " << bt->nested_type_name (bu) << " &" - << ub->local_name () << " (void) const;" + << ub->local_name () << " () const;" << be_nl; *os << bt->nested_type_name (bu) << " &" << ub->local_name () - << " (void);"; + << " ();"; return 0; } @@ -589,7 +589,7 @@ be_visitor_union_branch_public_ch::visit_string (be_string *node) *os << "void " << ub->local_name () << " (const ::CORBA::String_var&);" << be_nl; *os << "const char *" << ub->local_name () - << " (void) const;"; + << " () const;"; } else { @@ -600,7 +600,7 @@ be_visitor_union_branch_public_ch::visit_string (be_string *node) *os << "void " << ub->local_name () << " (const ::CORBA::WString_var&);" << be_nl; *os << "const ::CORBA::WChar *" << ub->local_name () - << " (void) const;"; + << " () const;"; } return 0; @@ -659,10 +659,10 @@ be_visitor_union_branch_public_ch::visit_structure (be_structure *node) << "void " << ub->local_name () << " (const " << bt->nested_type_name (bu) << " &);" << be_nl << "const " << bt->nested_type_name (bu) << " &" - << ub->local_name () << " (void) const;" + << ub->local_name () << " () const;" << be_nl << bt->nested_type_name (bu) << " &" << ub->local_name () - << " (void);"; + << " ();"; return 0; } @@ -752,10 +752,10 @@ be_visitor_union_branch_public_ch::visit_union (be_union *node) << "void " << ub->local_name () << " (const " << bt->nested_type_name (bu) << " &);" << be_nl << "const " << bt->nested_type_name (bu) << " &" - << ub->local_name () << " (void) const;" + << ub->local_name () << " () const;" << be_nl << bt->nested_type_name (bu) << " &" << ub->local_name () - << " (void);"; + << " ();"; return 0; } diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/public_ci.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/public_ci.cpp index 9b50f8363e2..add0becee4e 100644 --- a/TAO/TAO_IDL/be/be_visitor_union_branch/public_ci.cpp +++ b/TAO/TAO_IDL/be/be_visitor_union_branch/public_ci.cpp @@ -186,7 +186,7 @@ be_visitor_union_branch_public_ci::visit_array (be_array *node) *os << "/// Retrieve the member." << be_nl << "ACE_INLINE" << be_nl << fname << "_slice *" << be_nl - << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl + << bu->name () << "::" << ub->local_name () << " () const" << be_nl << "{" << be_idt_nl << "return this->u_." << ub->local_name () << "_;" << be_uidt_nl << "}"; @@ -257,7 +257,7 @@ be_visitor_union_branch_public_ci::visit_enum (be_enum *node) *os << "/// Retrieve the member." << be_nl << "ACE_INLINE" << be_nl << bt->name () << be_nl - << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl + << bu->name () << "::" << ub->local_name () << " () const" << be_nl << "{" << be_idt_nl << "return this->u_." << ub->local_name () << "_;" << be_uidt_nl << "}"; @@ -347,7 +347,7 @@ be_visitor_union_branch_public_ci::visit_interface (be_interface *node) *os << "/// Retrieve the member." << be_nl << "ACE_INLINE" << be_nl << bt->name () << "_ptr" << be_nl - << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl + << bu->name () << "::" << ub->local_name () << " () const" << be_nl << "{" << be_idt_nl << "return this->u_." << ub->local_name () << "_->in ();" << be_uidt_nl << "}"; @@ -437,7 +437,7 @@ be_visitor_union_branch_public_ci::visit_interface_fwd (be_interface_fwd *node) *os << "/// Retrieve the member." << be_nl << "ACE_INLINE" << be_nl << bt->name () << "_ptr" << be_nl - << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl + << bu->name () << "::" << ub->local_name () << " () const" << be_nl << "{" << be_idt_nl << "return this->u_." << ub->local_name () << "_->in ();" << be_uidt_nl << "}"; @@ -532,7 +532,7 @@ be_visitor_union_branch_public_ci::emit_valuetype_common (be_type *node) *os << "/// Retrieve the member." << be_nl << "ACE_INLINE" << be_nl << bt->name () << "*" << be_nl - << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl + << bu->name () << "::" << ub->local_name () << " () const" << be_nl << "{" << be_idt_nl << "return this->u_." << ub->local_name () << "_->in ();" << be_uidt_nl << "}"; @@ -681,7 +681,7 @@ be_visitor_union_branch_public_ci::visit_predefined_type ( << "ACE_INLINE" << be_nl << "::" << bt->name () << "_ptr" << be_nl << bu->name () << "::" << ub->local_name () - << " (void) const" << be_nl + << " () const" << be_nl << "{" << be_idt_nl; *os << "return this->u_." << ub->local_name () << "_->in ();" << be_uidt_nl; @@ -694,7 +694,7 @@ be_visitor_union_branch_public_ci::visit_predefined_type ( << "ACE_INLINE" << be_nl << "::" << bt->name () << "_ptr" << be_nl << bu->name () << "::" << ub->local_name () - << " (void) const" << be_nl + << " () const" << be_nl << "{" << be_idt_nl; *os << "return this->u_." << ub->local_name () << "_;" << be_uidt_nl; @@ -707,7 +707,7 @@ be_visitor_union_branch_public_ci::visit_predefined_type ( << "ACE_INLINE" << be_nl << "::" << bt->name () << " *" << be_nl << bu->name () << "::" << ub->local_name () - << " (void) const" << be_nl + << " () const" << be_nl << "{" << be_idt_nl; *os << "return this->u_." << ub->local_name () << "_;" << be_uidt_nl; @@ -720,7 +720,7 @@ be_visitor_union_branch_public_ci::visit_predefined_type ( << "ACE_INLINE" << be_nl << "const ::" << bt->name () << " &" << be_nl << bu->name () << "::" << ub->local_name () - << " (void) const" << be_nl + << " () const" << be_nl << "{" << be_idt_nl << "return *this->u_." << ub->local_name () << "_;" << be_uidt_nl << "}" << be_nl_2; @@ -730,7 +730,7 @@ be_visitor_union_branch_public_ci::visit_predefined_type ( << "ACE_INLINE" << be_nl << "::" << bt->name () << " &" << be_nl << bu->name () << "::" << ub->local_name () - << " (void)" << be_nl + << " ()" << be_nl << "{" << be_idt_nl << "return *this->u_." << ub->local_name () << "_;" << be_uidt_nl << "}"; @@ -743,7 +743,7 @@ be_visitor_union_branch_public_ci::visit_predefined_type ( << "ACE_INLINE" << be_nl << "::" << bt->name () << be_nl << bu->name () << "::" << ub->local_name () - << " (void) const" << be_nl + << " () const" << be_nl << "{" << be_idt_nl << "return this->u_." << ub->local_name () << "_;" << be_uidt_nl << "}"; @@ -819,7 +819,7 @@ be_visitor_union_branch_public_ci::visit_sequence (be_sequence *node) *os << "/// Readonly get method." << be_nl << "ACE_INLINE" << be_nl << "const " << bt->name () << " &" << be_nl - << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl + << bu->name () << "::" << ub->local_name () << " () const" << be_nl << "{" << be_idt_nl << "return *this->u_." << ub->local_name () << "_;" << be_uidt_nl << "}" << be_nl_2; @@ -828,7 +828,7 @@ be_visitor_union_branch_public_ci::visit_sequence (be_sequence *node) *os << "/// Read/write get method." << be_nl << "ACE_INLINE" << be_nl << bt->name () << " &" << be_nl - << bu->name () << "::" << ub->local_name () << " (void)" << be_nl + << bu->name () << "::" << ub->local_name () << " ()" << be_nl << "{" << be_idt_nl << "return *this->u_." << ub->local_name () << "_;" << be_uidt_nl << "}"; @@ -999,7 +999,7 @@ be_visitor_union_branch_public_ci::visit_string (be_string *node) } *os << bu->name () << "::" << ub->local_name () - << " (void) const // get method" << be_nl + << " () const // get method" << be_nl << "{" << be_idt_nl << "return this->u_." << ub->local_name () << "_;" << be_uidt_nl << "}"; @@ -1106,7 +1106,7 @@ be_visitor_union_branch_public_ci::visit_structure (be_structure *node) *os << "// Readonly get method." << be_nl << "ACE_INLINE" << be_nl << "const " << bt->name () << " &" << be_nl - << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl + << bu->name () << "::" << ub->local_name () << " () const" << be_nl << "{" << be_idt_nl; if (bt->size_type () == be_type::VARIABLE @@ -1125,7 +1125,7 @@ be_visitor_union_branch_public_ci::visit_structure (be_structure *node) *os << "// Read/write get method." << be_nl << "ACE_INLINE" << be_nl << bt->name () << " &" << be_nl - << bu->name () << "::" << ub->local_name () << " (void)" << be_nl + << bu->name () << "::" << ub->local_name () << " ()" << be_nl << "{" << be_idt_nl; if (bt->size_type () == be_type::VARIABLE @@ -1263,7 +1263,7 @@ be_visitor_union_branch_public_ci::visit_union (be_union *node) *os << "// Readonly get method." << be_nl << "ACE_INLINE" << be_nl << "const " << bt->name () << " &" << be_nl - << bu->name () << "::" << ub->local_name () << " (void) const" << be_nl + << bu->name () << "::" << ub->local_name () << " () const" << be_nl << "{" << be_idt_nl << "return *this->u_." << ub->local_name () << "_;" << be_uidt_nl << "}" << be_nl_2; @@ -1272,7 +1272,7 @@ be_visitor_union_branch_public_ci::visit_union (be_union *node) *os << "// Read/write get method." << be_nl << "ACE_INLINE" << be_nl << bt->name () << " &" << be_nl - << bu->name () << "::" << ub->local_name () << " (void)" << be_nl + << bu->name () << "::" << ub->local_name () << " ()" << be_nl << "{" << be_idt_nl << "return *this->u_." << ub->local_name () << "_;" << be_uidt_nl << "}"; diff --git a/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp index 71fd4646168..7d17a24f206 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp @@ -102,6 +102,6 @@ be_visitor_valuebox_any_op_ch::visit_valuebox (be_valuebox *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_valuebox/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp index 6487b9870ab..082faf2daf5 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp @@ -189,6 +189,6 @@ be_visitor_valuebox_any_op_cs::visit_valuebox (be_valuebox *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_valuebox/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/cdr_op_ch.cpp index ddf8989d506..30afffb23ee 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuebox/cdr_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuebox/cdr_op_ch.cpp @@ -50,6 +50,6 @@ be_visitor_valuebox_cdr_op_ch::visit_valuebox (be_valuebox *node) *os << be_global->core_versioning_end () << be_nl; - 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_valuebox/field_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/field_ch.cpp index 87e72160172..fa546645e9b 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuebox/field_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuebox/field_ch.cpp @@ -128,7 +128,7 @@ be_visitor_valuebox_field_ch::visit_array (be_array *node) *os << "void " << field->local_name () << " (" << fname << ");" << be_nl; *os << "const " << fname << "_slice *" << field->local_name () - << " (void) const;" << be_nl; + << " () const;" << be_nl; return 0; } @@ -520,5 +520,5 @@ be_visitor_valuebox_field_ch::emit_member_get (be_decl *field, TAO_OutStream *os = this->ctx_->stream (); *os << const_prefix << field_type->name () << type_suffix << " " - << field->local_name () << " (void) " << const_method << ";" << be_nl; + << field->local_name () << " () " << const_method << ";" << be_nl; } diff --git a/TAO/TAO_IDL/be/be_visitor_valuebox/field_ci.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/field_ci.cpp index 61b5e2ebf0e..31bbb25ea69 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuebox/field_ci.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuebox/field_ci.cpp @@ -138,7 +138,7 @@ be_visitor_valuebox_field_ci::visit_array (be_array *node) *os << "ACE_INLINE const " << fname << "_slice *" << be_nl << vb_node_->name () << "::" << field->local_name () - << " (void) const" << be_nl + << " () const" << be_nl << "{" << be_idt_nl << "return this->_pd_value->" << field->local_name () << ";" << be_uidt_nl @@ -589,7 +589,7 @@ be_visitor_valuebox_field_ci::emit_member_get (be_decl *field, *os << "ACE_INLINE " << const_prefix << field_type->name () << type_suffix << be_nl << vb_node_->name () << "::" << field->local_name () - << " (void) " << const_method << be_nl + << " () " << const_method << be_nl << "{" << be_idt_nl << "return this->_pd_value->" << field->local_name () << access_modifier << ";" << be_uidt_nl diff --git a/TAO/TAO_IDL/be/be_visitor_valuebox/union_member_ci.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/union_member_ci.cpp index fe77c0de8c5..562a4fa0dea 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuebox/union_member_ci.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuebox/union_member_ci.cpp @@ -135,7 +135,7 @@ be_visitor_valuebox_union_member_ci::visit_array (be_array *node) *os << "ACE_INLINE const " << fname << "_slice *" << be_nl << vb_node_->name () << "::" << field->local_name () - << " (void) const" << be_nl + << " () const" << be_nl << "{" << be_idt_nl << "return this->_pd_value->" << field->local_name () << " ();" << be_uidt_nl @@ -544,7 +544,7 @@ be_visitor_valuebox_union_member_ci::emit_member_get ( *os << "ACE_INLINE " << const_prefix << field_type->name () << type_suffix << be_nl << vb_node_->name () << "::" << field->local_name () - << " (void) " << const_method << be_nl + << " () " << const_method << be_nl << "{" << be_idt_nl << "return this->_pd_value->" << field->local_name () << " ();" << be_uidt_nl 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 ecda2bb3291..56f8e7ee686 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ch.cpp @@ -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; @@ -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; @@ -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; @@ -751,7 +751,7 @@ be_visitor_valuebox_ch::emit_default_constructor () *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 @@ -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);" diff --git a/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp index 221a666a0b2..1e1f560c15c 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp @@ -73,7 +73,7 @@ be_visitor_valuebox_ci::visit_array (be_array *node) // Public default constructor *os << "ACE_INLINE" << be_nl - << vb_node->name () << "::" << vb_node->local_name () << " (void)" + << vb_node->name () << "::" << vb_node->local_name () << " ()" << be_nl << "{" << be_idt_nl << "this->_pd_value = " << node->full_name () << "_alloc ();" << be_uidt_nl << "}" << be_nl_2; @@ -111,13 +111,13 @@ be_visitor_valuebox_ci::visit_array (be_array *node) // Public accessor and modifier methods *os << "ACE_INLINE const " << node->full_name () << "_slice*" << be_nl - << vb_node->name () << "::_value (void) const" << be_nl + << vb_node->name () << "::_value () const" << be_nl << "{" << be_idt_nl << "return this->_pd_value.in ();" << be_uidt_nl << "}" << be_nl_2; *os << "ACE_INLINE " << node->full_name () << "_slice*" << be_nl - << vb_node->name () << "::_value (void)" << be_nl + << vb_node->name () << "::_value ()" << be_nl << "{" << be_idt_nl << "return this->_pd_value.inout ();" << be_uidt_nl << "}" << be_nl_2; @@ -146,19 +146,19 @@ be_visitor_valuebox_ci::visit_array (be_array *node) // Explicit conversion functions *os << "ACE_INLINE const " << node->full_name () << "_slice *" << be_nl - << vb_node->name () << "::_boxed_in (void) const" << be_nl + << vb_node->name () << "::_boxed_in () const" << be_nl << "{" << be_idt_nl << "return this->_pd_value.in ();" << be_uidt_nl << "}" << be_nl_2; *os << "ACE_INLINE " << node->full_name () << "_slice *" << be_nl - << vb_node->name () << "::_boxed_inout (void)" << be_nl + << vb_node->name () << "::_boxed_inout ()" << be_nl << "{" << be_idt_nl << "return this->_pd_value.inout ();" << be_uidt_nl << "}" << be_nl_2; *os << "ACE_INLINE " << node->full_name () << "_slice *" << be_nl - << vb_node->name () << "::_boxed_out (void)" << be_nl + << vb_node->name () << "::_boxed_out ()" << be_nl << "{" << be_idt_nl << "return this->_pd_value.out ();" << be_uidt_nl << "}" << be_nl_2; @@ -228,14 +228,14 @@ be_visitor_valuebox_ci::visit_sequence (be_sequence *node) // Generate maximum() accessor *os << "ACE_INLINE ::CORBA::ULong" << be_nl - << vb_node->name () << "::maximum (void) const" << be_nl + << vb_node->name () << "::maximum () const" << be_nl << "{" << be_idt_nl << "return this->_pd_value->maximum ();" << be_uidt_nl << "}" << be_nl_2; // Generate length() accessor *os << "ACE_INLINE ::CORBA::ULong" << be_nl - << vb_node->name () << "::length (void) const" << be_nl + << vb_node->name () << "::length () const" << be_nl << "{" << be_idt_nl << "return this->_pd_value->length ();" << be_uidt_nl << "}" << be_nl_2; @@ -325,7 +325,7 @@ be_visitor_valuebox_ci::visit_string (be_string *node) // Accessor function takes no arguments and returns a const char * *os << "ACE_INLINE const " << node->full_name () << be_nl - << vb_node->name () << "::_value (void) const" << be_nl + << vb_node->name () << "::_value () const" << be_nl << "{" << be_idt_nl << "return this->_pd_value.in ();" << be_uidt_nl << "}" << be_nl_2; @@ -356,19 +356,19 @@ be_visitor_valuebox_ci::visit_string (be_string *node) // Access to the boxed value for method signatures *os << "ACE_INLINE const " << node->full_name () << be_nl - << vb_node->name () << "::_boxed_in (void) const" << be_nl + << vb_node->name () << "::_boxed_in () const" << be_nl << "{" << be_idt_nl << "return this->_pd_value.in ();" << be_uidt_nl << "}" << be_nl_2; *os << "ACE_INLINE " << node->full_name () << "&" << be_nl - << vb_node->name () << "::_boxed_inout (void)" << be_nl + << vb_node->name () << "::_boxed_inout ()" << be_nl << "{" << be_idt_nl << "return this->_pd_value.inout ();" << be_uidt_nl << "}" << be_nl_2; *os << "ACE_INLINE " << node->full_name () << "&" << be_nl - << vb_node->name () << "::_boxed_out (void)" << be_nl + << vb_node->name () << "::_boxed_out ()" << be_nl << "{" << be_idt_nl << "return this->_pd_value.out ();" << be_uidt_nl << "}" << be_nl_2; @@ -555,7 +555,7 @@ be_visitor_valuebox_ci::visit_union (be_union *node) << "}" << be_nl_2; *os << "ACE_INLINE " << bt->nested_type_name (node) << be_nl - << vb_node->name () << "::_d (void) const" << be_nl + << vb_node->name () << "::_d () const" << be_nl << "{" << be_idt_nl << "return this->_pd_value->_d ();" << be_uidt_nl << "}" << be_nl_2; @@ -596,7 +596,7 @@ be_visitor_valuebox_ci::emit_for_predef_enum (be_type *node, // Public accessor method *os << "ACE_INLINE " << node->full_name () << type_suffix << be_nl - << vb_node->name () << "::_value (void) const" << be_nl + << vb_node->name () << "::_value () const" << be_nl << "{" << be_idt_nl << "return this->_pd_value;" << be_uidt_nl << "}" << be_nl_2; @@ -612,19 +612,19 @@ be_visitor_valuebox_ci::emit_for_predef_enum (be_type *node, // Explicit conversion functions *os << "ACE_INLINE " << node->full_name () << type_suffix << be_nl - << vb_node->name () << "::_boxed_in (void) const" << be_nl + << vb_node->name () << "::_boxed_in () const" << be_nl << "{" << be_idt_nl << "return this->_pd_value;" << be_uidt_nl << "}" << be_nl_2; *os << "ACE_INLINE " << node->full_name () << type_suffix << "&" << be_nl - << vb_node->name () << "::_boxed_inout (void)" << be_nl + << vb_node->name () << "::_boxed_inout ()" << be_nl << "{" << be_idt_nl << "return this->_pd_value;" << be_uidt_nl << "}" << be_nl_2; *os << "ACE_INLINE " << node->full_name () << type_suffix << "&" << be_nl - << vb_node->name () << "::_boxed_out (void)" << be_nl + << vb_node->name () << "::_boxed_out ()" << be_nl << "{" << be_idt_nl << "return this->_pd_value;" << be_uidt_nl << "}" << be_nl_2; @@ -645,7 +645,7 @@ be_visitor_valuebox_ci::emit_default_constructor () // Public default constructor *os << "ACE_INLINE" << be_nl; *os << vb_node->name () << "::" << vb_node->local_name () - << " (void)" << be_nl; + << " ()" << be_nl; *os << "{}" << be_nl_2; } @@ -661,7 +661,7 @@ be_visitor_valuebox_ci::emit_default_constructor_alloc (be_decl *node) // Public default constructor *os << "ACE_INLINE" << be_nl - << vb_node->name () << "::" << vb_node->local_name () << " (void)" + << vb_node->name () << "::" << vb_node->local_name () << " ()" << be_nl << "{" << be_idt_nl << node->full_name () << "* p = 0;" << be_nl << "ACE_NEW (" << be_idt_nl @@ -809,14 +809,14 @@ be_visitor_valuebox_ci::emit_accessor_modifier (be_decl *node) // Public accessor method (const) *os << "ACE_INLINE const " << node->full_name () << " &" << be_nl - << vb_node->name () << "::_value (void) const" << be_nl + << vb_node->name () << "::_value () const" << be_nl << "{" << be_idt_nl << "return this->_pd_value.in ();" << be_uidt_nl << "}" << be_nl_2; // Public accessor method *os << "ACE_INLINE " << node->full_name () << " &" << be_nl - << vb_node->name () << "::_value (void)" << be_nl + << vb_node->name () << "::_value ()" << be_nl << "{" << be_idt_nl << "return this->_pd_value.inout ();" << be_uidt_nl << "}" << be_nl_2; @@ -845,20 +845,20 @@ be_visitor_valuebox_ci::emit_boxed_access (be_decl *node, // Access to the boxed value for method signatures *os << "ACE_INLINE const " << node->full_name () << " &" << be_nl - << vb_node->name () << "::_boxed_in (void) const" << be_nl + << vb_node->name () << "::_boxed_in () const" << be_nl << "{" << be_idt_nl << "return this->_pd_value.in ();" << be_uidt_nl << "}" << be_nl_2; *os << "ACE_INLINE " << node->full_name () << "&" << be_nl - << vb_node->name () << "::_boxed_inout (void)" << be_nl + << vb_node->name () << "::_boxed_inout ()" << be_nl << "{" << be_idt_nl << "return this->_pd_value.inout ();" << be_uidt_nl << "}" << be_nl_2; *os << "ACE_INLINE " << node->full_name () << out_ref_modifier << "&" << be_nl - << vb_node->name () << "::_boxed_out (void)" << be_nl + << vb_node->name () << "::_boxed_out ()" << be_nl << "{" << be_idt_nl << "return this->_pd_value.out ();" << be_uidt_nl << "}" << be_nl_2; diff --git a/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_cs.cpp index a576e4e3322..97ee366b542 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_cs.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_cs.cpp @@ -94,7 +94,7 @@ be_visitor_valuebox_cs::visit_valuebox (be_valuebox *node) // _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 *result = 0;" << be_nl << "ACE_NEW_RETURN (" << be_idt_nl @@ -106,7 +106,7 @@ be_visitor_valuebox_cs::visit_valuebox (be_valuebox *node) // The _tao_obv_repository_id method. *os << "const char *" << be_nl - << node->name () << "::_tao_obv_repository_id (void) const" + << node->name () << "::_tao_obv_repository_id () const" << be_nl << "{" << be_idt_nl << "return this->_tao_obv_static_repository_id ();" << be_uidt_nl << "}" << be_nl_2; @@ -155,7 +155,7 @@ be_visitor_valuebox_cs::visit_valuebox (be_valuebox *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; @@ -729,7 +729,7 @@ be_visitor_valuebox_cs::emit_destructor () be_decl * const vb_node = this->ctx_->node (); // Protected destructor - os << vb_node->name () << "::~" << vb_node->local_name () << " (void)" + os << vb_node->name () << "::~" << vb_node->local_name () << " ()" << be_nl << "{" << be_nl << "}" << be_nl_2; } 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; diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp index d20531abd8e..f2debe24349 100644 --- a/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp @@ -115,7 +115,7 @@ be_visitor_valuetype_fwd_any_op_ch::visit_valuetype_fwd ( *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_include/be_argument.h b/TAO/TAO_IDL/be_include/be_argument.h index d51ffece6c6..cc5c2ef4bef 100644 --- a/TAO/TAO_IDL/be_include/be_argument.h +++ b/TAO/TAO_IDL/be_include/be_argument.h @@ -32,7 +32,7 @@ public: virtual int accept (be_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); }; #endif diff --git a/TAO/TAO_IDL/be_include/be_array.h b/TAO/TAO_IDL/be_include/be_array.h index 75082a5c844..d021e5125be 100644 --- a/TAO/TAO_IDL/be_include/be_array.h +++ b/TAO/TAO_IDL/be_include/be_array.h @@ -31,7 +31,7 @@ public: bool local, bool abstract); - ~be_array (void); + ~be_array (); /// Generate dimensions. If slice == 1, generate dimensions for the slice /// definition. @@ -50,13 +50,13 @@ public: virtual int accept (be_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); protected: /// Create a name for us. - virtual int create_name (void); + virtual int create_name (); - virtual void compute_tc_name (void); + virtual void compute_tc_name (); }; #endif diff --git a/TAO/TAO_IDL/be_include/be_attribute.h b/TAO/TAO_IDL/be_include/be_attribute.h index fbbcae1ad5a..40f1ccf330a 100644 --- a/TAO/TAO_IDL/be_include/be_attribute.h +++ b/TAO/TAO_IDL/be_include/be_attribute.h @@ -31,13 +31,13 @@ public: bool abstract); // Non-virtual override of frontend method. - be_type *field_type (void) const; + be_type *field_type () const; // Visiting. virtual int accept (be_visitor *visitor); /// Cleanup. - virtual void destroy (void); + virtual void destroy (); /// Sets the original attribute from which this one was created, /// applies only to implied IDL. diff --git a/TAO/TAO_IDL/be_include/be_codegen.h b/TAO/TAO_IDL/be_include/be_codegen.h index abfa4b7cb1d..1369ca69e02 100644 --- a/TAO/TAO_IDL/be_include/be_codegen.h +++ b/TAO/TAO_IDL/be_include/be_codegen.h @@ -198,10 +198,10 @@ public: }; /// Constructor - TAO_CodeGen (void); + TAO_CodeGen (); /// Destructor - ~TAO_CodeGen (void); + ~TAO_CodeGen (); /// Set the client header stream. int start_client_header (const char *fname); @@ -249,16 +249,16 @@ public: /// Generate code at the end such as the <<= and >>= operators along /// with the ending #endif statement. - int end_client_header (void); + int end_client_header (); /// Generate necessary code at end of client inline file. - void end_client_inline (void); + void end_client_inline (); /// Generate necessary code at end of client stub file. - void end_client_stubs (void); + void end_client_stubs (); /// Put a last #endif in the server header. - int end_server_header (void); + int end_server_header (); /// Put a last #endif in the server header. int end_implementation_header (const char *fname); @@ -267,102 +267,102 @@ public: int end_implementation_skeleton (const char *fname); /// Put a last #endif in the server template header. - int end_server_template_header (void); + int end_server_template_header (); /// Put a last #endif in the server skeletons. - int end_server_template_skeletons (void); + int end_server_template_skeletons (); /// Put a last #endif in the server skeletons. - int end_server_skeletons (void); + int end_server_skeletons (); /// Put a last #endif in the anyop header. - int end_anyop_header (void); + int end_anyop_header (); /// Make sure we end with a newline. - int end_anyop_source (void); - - int end_ciao_svnt_header (void); - int end_ciao_svnt_source (void); - int end_ciao_svnt_template_header (void); - int end_ciao_svnt_template_source (void); - int end_ciao_exec_header (void); - int end_ciao_exec_source (void); - int end_ciao_exec_idl (void); - int end_ciao_conn_header (void); - int end_ciao_conn_source (void); - int end_ciao_ami_conn_idl (void); + int end_anyop_source (); + + int end_ciao_svnt_header (); + int end_ciao_svnt_source (); + int end_ciao_svnt_template_header (); + int end_ciao_svnt_template_source (); + int end_ciao_exec_header (); + int end_ciao_exec_source (); + int end_ciao_exec_idl (); + int end_ciao_conn_header (); + int end_ciao_conn_source (); + int end_ciao_ami_conn_idl (); /// Get the client header stream. - TAO_OutStream *client_header (void); + TAO_OutStream *client_header (); /// Get the client stubs stream. - TAO_OutStream *client_stubs (void); + TAO_OutStream *client_stubs (); /// Get the client inline stream. - TAO_OutStream *client_inline (void); + TAO_OutStream *client_inline (); /// get the server header stream. - TAO_OutStream *server_header (void); + TAO_OutStream *server_header (); /// Get the implementation header stream. - TAO_OutStream *implementation_header (void); + TAO_OutStream *implementation_header (); /// Get the implementation skeleton stream. - TAO_OutStream *implementation_skeleton (void); + TAO_OutStream *implementation_skeleton (); /// Get the server header template stream. - TAO_OutStream *server_template_header (void); + TAO_OutStream *server_template_header (); /// Get the server skeletons stream. - TAO_OutStream *server_skeletons (void); + TAO_OutStream *server_skeletons (); /// Get the server template skeletons stream. - TAO_OutStream *server_template_skeletons (void); + TAO_OutStream *server_template_skeletons (); /// Get the server template inline stream. - TAO_OutStream *server_template_inline (void); + TAO_OutStream *server_template_inline (); /// Get the anyop header stream. - TAO_OutStream *anyop_header (void); + TAO_OutStream *anyop_header (); /// Get the anyop source stream. - TAO_OutStream *anyop_source (void); + TAO_OutStream *anyop_source (); /// Get the CIAO servant header stream. - TAO_OutStream *ciao_svnt_header (void); + TAO_OutStream *ciao_svnt_header (); /// Get the CIAO servant source stream. - TAO_OutStream *ciao_svnt_source (void); + TAO_OutStream *ciao_svnt_source (); /// Get the CIAO template servant header stream. - TAO_OutStream *ciao_svnt_template_header (void); + TAO_OutStream *ciao_svnt_template_header (); /// Get the CIAO template servant source stream. - TAO_OutStream *ciao_svnt_template_source (void); + TAO_OutStream *ciao_svnt_template_source (); /// Get the CIAO executor impl header stream. - TAO_OutStream *ciao_exec_header (void); + TAO_OutStream *ciao_exec_header (); /// Get the CIAO executor impl source stream. - TAO_OutStream *ciao_exec_source (void); + TAO_OutStream *ciao_exec_source (); /// Get the CIAO executor IDL source stream. - TAO_OutStream *ciao_exec_idl (void); + TAO_OutStream *ciao_exec_idl (); /// Get the CIAO connector impl header stream. - TAO_OutStream *ciao_conn_header (void); + TAO_OutStream *ciao_conn_header (); /// Get the CIAO connector impl source stream. - TAO_OutStream *ciao_conn_source (void); + TAO_OutStream *ciao_conn_source (); /// Get the CIAO AMI connector IDL stream. - TAO_OutStream *ciao_ami_conn_idl (void); + TAO_OutStream *ciao_ami_conn_idl (); /// Set the gperf input file stream. void gperf_input_stream (TAO_OutStream *gperf_input); /// Retrieve the gperf input stream being used. - TAO_OutStream *gperf_input_stream (void); + TAO_OutStream *gperf_input_stream (); /// Set the gperf input file name. void gperf_input_filename (char *filename); @@ -373,7 +373,7 @@ public: * program. This is needed coz I do ACE_OS::open on this when I need * ACE_HANDLE for the file instead FILE*. */ - char *gperf_input_filename (void); + char *gperf_input_filename (); /// Convert input string to all one case. const char *upcase (const char *str); @@ -383,7 +383,7 @@ public: void gen_ident_string (TAO_OutStream *stream) const; /// Generates the export files selected on the command line. - void gen_export_files (void); + void gen_export_files (); /// Generate file include, with optional empty comment to /// short-circuit DOxygen. @@ -392,7 +392,7 @@ public: bool add_comment = false); /// Cleanup. - void destroy (void); + void destroy (); private: void gen_ifndef_string (const char *fname, @@ -401,13 +401,13 @@ private: const char *suffix); /// Utility methods for generating file includes. - void gen_stub_hdr_includes (void); - void gen_stub_src_includes (void); - void gen_skel_hdr_includes (void); - void gen_skel_src_includes (void); - void gen_seq_file_includes (void); + void gen_stub_hdr_includes (); + void gen_stub_src_includes (); + void gen_skel_hdr_includes (); + void gen_skel_src_includes (); + void gen_seq_file_includes (); void gen_any_file_includes (TAO_OutStream * stream) ; - void gen_var_file_includes (void); + void gen_var_file_includes (); void gen_stub_arg_file_includes (TAO_OutStream * stream); void gen_skel_arg_file_includes (TAO_OutStream * stream); void gen_cond_file_include (bool condition_green, @@ -419,12 +419,12 @@ private: void gen_svnt_hdr_includes (TAO_OutStream *stream); void gen_svnt_src_includes (TAO_OutStream *stream); void gen_svnt_tmpl_hdr_includes (TAO_OutStream *stream); - void gen_exec_hdr_includes (void); - void gen_exec_src_includes (void); - void gen_exec_idl_includes (void); - void gen_conn_hdr_includes (void); - void gen_conn_src_includes (void); - void gen_ami_conn_idl_includes (void); + void gen_exec_hdr_includes (); + void gen_exec_src_includes (); + void gen_exec_idl_includes (); + void gen_conn_hdr_includes (); + void gen_conn_src_includes (); + void gen_ami_conn_idl_includes (); bool is_system_file (const char * idl_name) const; diff --git a/TAO/TAO_IDL/be_include/be_component.h b/TAO/TAO_IDL/be_include/be_component.h index 94e7ec69dac..09766163811 100644 --- a/TAO/TAO_IDL/be_include/be_component.h +++ b/TAO/TAO_IDL/be_include/be_component.h @@ -33,17 +33,17 @@ public: AST_Interface **supports_flat, long n_supports_flat); - ~be_component (void); + ~be_component (); /// Override of the AST method to eliminate narrowing of /// the return value. Non-virtual. - be_component *base_component (void) const; + be_component *base_component () const; /// Catch BE-specific members before delegating to the base class. virtual void redefine (AST_Interface *from); /// Cleanup function. - virtual void destroy (void); + virtual void destroy (); /// Visiting. virtual int accept (be_visitor *visitor); @@ -53,14 +53,14 @@ public: AST_Structure *be_add_structure (AST_Structure *t); AST_Typedef *be_add_typedef (AST_Typedef *t); - ACE_CDR::ULong n_provides (void) const; - ACE_CDR::ULong n_remote_provides (void) const; - ACE_CDR::ULong n_uses (void) const; - ACE_CDR::ULong n_remote_uses (void) const; - bool has_uses_multiple (void) const; - ACE_CDR::ULong n_publishes (void) const; - ACE_CDR::ULong n_consumes (void) const; - ACE_CDR::ULong n_emits (void) const; + ACE_CDR::ULong n_provides () const; + ACE_CDR::ULong n_remote_provides () const; + ACE_CDR::ULong n_uses () const; + ACE_CDR::ULong n_remote_uses () const; + bool has_uses_multiple () const; + ACE_CDR::ULong n_publishes () const; + ACE_CDR::ULong n_consumes () const; + ACE_CDR::ULong n_emits () const; /// Update the has_* members. void scan (UTL_Scope *s); diff --git a/TAO/TAO_IDL/be_include/be_component_fwd.h b/TAO/TAO_IDL/be_include/be_component_fwd.h index 7ba68aee0ae..01ef8cc5c6c 100644 --- a/TAO/TAO_IDL/be_include/be_component_fwd.h +++ b/TAO/TAO_IDL/be_include/be_component_fwd.h @@ -29,10 +29,10 @@ public: be_component_fwd (AST_Interface *dummy, UTL_ScopedName *n); - virtual ~be_component_fwd (void); + virtual ~be_component_fwd (); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int accept (be_visitor* visitor); diff --git a/TAO/TAO_IDL/be_include/be_connector.h b/TAO/TAO_IDL/be_include/be_connector.h index 00d945e6708..da35bc73d82 100644 --- a/TAO/TAO_IDL/be_include/be_connector.h +++ b/TAO/TAO_IDL/be_include/be_connector.h @@ -13,19 +13,19 @@ public: be_connector (UTL_ScopedName *n, AST_Connector *base_connector); - virtual ~be_connector (void); + virtual ~be_connector (); /// Cleanup function. - virtual void destroy (void); + virtual void destroy (); /// Visiting. virtual int accept (be_visitor *visitor); - bool dds_connector (void); - bool ami_connector (void); + bool dds_connector (); + bool ami_connector (); private: - void check_ancestors (void); + void check_ancestors (); private: bool dds_connector_; diff --git a/TAO/TAO_IDL/be_include/be_constant.h b/TAO/TAO_IDL/be_include/be_constant.h index 6b460d8289e..27f307b3813 100644 --- a/TAO/TAO_IDL/be_include/be_constant.h +++ b/TAO/TAO_IDL/be_include/be_constant.h @@ -32,7 +32,7 @@ public: virtual int accept (be_visitor *visitor); //Cleanup. - virtual void destroy (void); + virtual void destroy (); }; #endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_consumes.h b/TAO/TAO_IDL/be_include/be_consumes.h index a71dd3ea407..941d0381a08 100644 --- a/TAO/TAO_IDL/be_include/be_consumes.h +++ b/TAO/TAO_IDL/be_include/be_consumes.h @@ -16,16 +16,16 @@ public: be_consumes (UTL_ScopedName *n, AST_Type *consumes_type); - virtual ~be_consumes (void); + virtual ~be_consumes (); // Non-virtual override of frontend method. - be_eventtype *consumes_type (void) const; + be_eventtype *consumes_type () const; // Visiting. virtual int accept (be_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); }; #endif // BE_CONSUMES_H diff --git a/TAO/TAO_IDL/be_include/be_decl.h b/TAO/TAO_IDL/be_include/be_decl.h index abf5b388052..1ae61b79451 100644 --- a/TAO/TAO_IDL/be_include/be_decl.h +++ b/TAO/TAO_IDL/be_include/be_decl.h @@ -34,7 +34,7 @@ public: be_decl (AST_Decl::NodeType type, UTL_ScopedName *n); - ~be_decl (void); + ~be_decl (); // Methods used by the interface type strategy. /// Both the arguments should be non-null!!!. Applies prefix and @@ -52,63 +52,63 @@ public: // End of Methods use by the interface type strategy. /// Return the scope created by this node (if one exists). - virtual be_scope *scope (void); + virtual be_scope *scope (); // Visiting virtual int accept (be_visitor *visitor); /// Cleanup function. - virtual void destroy (void); + virtual void destroy (); /// Temporarily set this node's is_local_ flag. void set_local (bool val); // Boolean methods to test if code was already generated. - bool cli_hdr_gen (void); - bool cli_stub_gen (void); - bool cli_inline_gen (void); - bool srv_hdr_gen (void); - bool impl_hdr_gen (void); - bool srv_skel_gen (void); - bool impl_skel_gen (void); - bool srv_inline_gen (void); - bool tie_skel_gen (void); - bool cli_hdr_any_op_gen (void); - bool cli_stub_any_op_gen (void); - bool cli_hdr_cdr_op_gen (void); - bool cli_stub_cdr_op_gen (void); - bool cli_inline_cdr_op_gen (void); - bool cli_inline_cdr_decl_gen (void); - bool cli_traits_gen (void); - bool cli_arg_traits_gen (void); - bool srv_arg_traits_gen (void); - bool srv_sarg_traits_gen (void); - bool cli_pragma_inst_gen (void); - bool cli_inarg_tmpl_class_gen (void); - bool cli_inarg_pragma_inst_gen (void); - bool cli_inoutarg_tmpl_class_gen (void); - bool cli_inoutarg_pragma_inst_gen (void); - bool cli_outarg_tmpl_class_gen (void); - bool cli_outarg_pragma_inst_gen (void); - bool cli_retarg_tmpl_class_gen (void); - bool cli_retarg_pragma_inst_gen (void); - bool srv_tmpl_class_gen (void); - bool srv_pragma_inst_gen (void); - bool srv_inarg_tmpl_class_gen (void); - bool srv_inarg_pragma_inst_gen (void); - bool srv_inoutarg_tmpl_class_gen (void); - bool srv_inoutarg_pragma_inst_gen (void); - bool srv_outarg_tmpl_class_gen (void); - bool srv_outarg_pragma_inst_gen (void); - bool srv_retarg_tmpl_class_gen (void); - bool srv_retarg_pragma_inst_gen (void); - bool ccm_pre_proc_gen (void); - bool ex_idl_facet_gen (void); - bool svnt_hdr_facet_gen (void); - bool svnt_src_facet_gen (void); - bool exec_hdr_facet_gen (void); - bool exec_src_facet_gen (void); - bool ami4ccm_ex_idl_gen (void); + bool cli_hdr_gen (); + bool cli_stub_gen (); + bool cli_inline_gen (); + bool srv_hdr_gen (); + bool impl_hdr_gen (); + bool srv_skel_gen (); + bool impl_skel_gen (); + bool srv_inline_gen (); + bool tie_skel_gen (); + bool cli_hdr_any_op_gen (); + bool cli_stub_any_op_gen (); + bool cli_hdr_cdr_op_gen (); + bool cli_stub_cdr_op_gen (); + bool cli_inline_cdr_op_gen (); + bool cli_inline_cdr_decl_gen (); + bool cli_traits_gen (); + bool cli_arg_traits_gen (); + bool srv_arg_traits_gen (); + bool srv_sarg_traits_gen (); + bool cli_pragma_inst_gen (); + bool cli_inarg_tmpl_class_gen (); + bool cli_inarg_pragma_inst_gen (); + bool cli_inoutarg_tmpl_class_gen (); + bool cli_inoutarg_pragma_inst_gen (); + bool cli_outarg_tmpl_class_gen (); + bool cli_outarg_pragma_inst_gen (); + bool cli_retarg_tmpl_class_gen (); + bool cli_retarg_pragma_inst_gen (); + bool srv_tmpl_class_gen (); + bool srv_pragma_inst_gen (); + bool srv_inarg_tmpl_class_gen (); + bool srv_inarg_pragma_inst_gen (); + bool srv_inoutarg_tmpl_class_gen (); + bool srv_inoutarg_pragma_inst_gen (); + bool srv_outarg_tmpl_class_gen (); + bool srv_outarg_pragma_inst_gen (); + bool srv_retarg_tmpl_class_gen (); + bool srv_retarg_pragma_inst_gen (); + bool ccm_pre_proc_gen (); + bool ex_idl_facet_gen (); + bool svnt_hdr_facet_gen (); + bool svnt_src_facet_gen (); + bool exec_hdr_facet_gen (); + bool exec_src_facet_gen (); + bool ami4ccm_ex_idl_gen (); // Set the flag indicating that code generation is done. void cli_hdr_gen (bool); diff --git a/TAO/TAO_IDL/be_include/be_emits.h b/TAO/TAO_IDL/be_include/be_emits.h index 2faf72315b8..813b0aa303a 100644 --- a/TAO/TAO_IDL/be_include/be_emits.h +++ b/TAO/TAO_IDL/be_include/be_emits.h @@ -16,16 +16,16 @@ public: be_emits (UTL_ScopedName *n, AST_Type *emits_type); - virtual ~be_emits (void); + virtual ~be_emits (); // Non-virtual override of frontend method. - be_eventtype *emits_type (void) const; + be_eventtype *emits_type () const; // Visiting. virtual int accept (be_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); }; #endif // BE_EMITS_H diff --git a/TAO/TAO_IDL/be_include/be_enum.h b/TAO/TAO_IDL/be_include/be_enum.h index 0631f7d88d5..5154d85f2a1 100644 --- a/TAO/TAO_IDL/be_include/be_enum.h +++ b/TAO/TAO_IDL/be_include/be_enum.h @@ -35,7 +35,7 @@ public: bool use_underscore); /// Cleanup method. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int accept (be_visitor *visitor); diff --git a/TAO/TAO_IDL/be_include/be_enum_val.h b/TAO/TAO_IDL/be_include/be_enum_val.h index 82c194333a1..78959570fea 100644 --- a/TAO/TAO_IDL/be_include/be_enum_val.h +++ b/TAO/TAO_IDL/be_include/be_enum_val.h @@ -31,7 +31,7 @@ public: virtual int accept (be_visitor *visitor); //Cleanup. - virtual void destroy (void); + virtual void destroy (); }; #endif diff --git a/TAO/TAO_IDL/be_include/be_eventtype.h b/TAO/TAO_IDL/be_include/be_eventtype.h index a8817c1ee3b..7b5e5fcfc39 100644 --- a/TAO/TAO_IDL/be_include/be_eventtype.h +++ b/TAO/TAO_IDL/be_include/be_eventtype.h @@ -37,13 +37,13 @@ public: bool truncatable, bool custom); - ~be_eventtype (void); + ~be_eventtype (); // Visiting. virtual int accept (be_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); }; #endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_eventtype_fwd.h b/TAO/TAO_IDL/be_include/be_eventtype_fwd.h index f56dd68a3f9..3ee3c770bc1 100644 --- a/TAO/TAO_IDL/be_include/be_eventtype_fwd.h +++ b/TAO/TAO_IDL/be_include/be_eventtype_fwd.h @@ -29,13 +29,13 @@ public: be_eventtype_fwd (AST_Interface *dummy, UTL_ScopedName *n); - virtual ~be_eventtype_fwd (void); + virtual ~be_eventtype_fwd (); // Visiting. virtual int accept (be_visitor* visitor); // Cleanup - virtual void destroy (void); + virtual void destroy (); }; #endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_exception.h b/TAO/TAO_IDL/be_include/be_exception.h index 47a829b15ee..39d42cea0d7 100644 --- a/TAO/TAO_IDL/be_include/be_exception.h +++ b/TAO/TAO_IDL/be_include/be_exception.h @@ -16,7 +16,7 @@ public: bool abstract); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int accept (be_visitor *visitor); diff --git a/TAO/TAO_IDL/be_include/be_extended_port.h b/TAO/TAO_IDL/be_include/be_extended_port.h index bb918ad5855..992549a47ae 100644 --- a/TAO/TAO_IDL/be_include/be_extended_port.h +++ b/TAO/TAO_IDL/be_include/be_extended_port.h @@ -32,11 +32,11 @@ public: UTL_ScopedName *n, AST_PortType *porttype_ref); - virtual ~be_extended_port (void); + virtual ~be_extended_port (); - be_porttype *port_type (void) const; + be_porttype *port_type () const; - virtual void destroy (void); + virtual void destroy (); virtual int accept (be_visitor *visitor); }; diff --git a/TAO/TAO_IDL/be_include/be_extern.h b/TAO/TAO_IDL/be_include/be_extern.h index b6bb946bb8e..444fb4674ce 100644 --- a/TAO/TAO_IDL/be_include/be_extern.h +++ b/TAO/TAO_IDL/be_include/be_extern.h @@ -73,9 +73,9 @@ extern TAO_IDL_BE_Export BE_GlobalData *be_global; extern TAO_IDL_BE_Export int BE_init (int &, ACE_TCHAR*[]); extern TAO_IDL_BE_Export void BE_post_init (char *[], long); -extern TAO_IDL_BE_Export void BE_version (void); -extern TAO_IDL_BE_Export void BE_produce (void); -extern TAO_IDL_BE_Export void BE_cleanup (void); -extern TAO_IDL_BE_Export void BE_abort (void); +extern TAO_IDL_BE_Export void BE_version (); +extern TAO_IDL_BE_Export void BE_produce (); +extern TAO_IDL_BE_Export void BE_cleanup (); +extern TAO_IDL_BE_Export void BE_abort (); #endif // _BE_EXTERN_BE_EXTERN_HH diff --git a/TAO/TAO_IDL/be_include/be_factory.h b/TAO/TAO_IDL/be_include/be_factory.h index fcea3e23ecc..5b9c3b4ac58 100644 --- a/TAO/TAO_IDL/be_include/be_factory.h +++ b/TAO/TAO_IDL/be_include/be_factory.h @@ -30,10 +30,10 @@ class be_factory : public virtual AST_Factory, public: be_factory (UTL_ScopedName *n); - ~be_factory (void); + ~be_factory (); /// Cleanup method. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int accept (be_visitor *visitor); diff --git a/TAO/TAO_IDL/be_include/be_field.h b/TAO/TAO_IDL/be_include/be_field.h index 523c5db704a..0f61138f6d0 100644 --- a/TAO/TAO_IDL/be_include/be_field.h +++ b/TAO/TAO_IDL/be_include/be_field.h @@ -29,7 +29,7 @@ public: Visibility vis = vis_NA); // Non-virtual override of frontend method. - be_type *field_type (void) const; + be_type *field_type () const; // Generate debugging ostream operator for members. void gen_member_ostream_operator (TAO_OutStream *os, @@ -38,14 +38,14 @@ public: bool accessor = false); // Accessors for the member. - bool port_name_prefixed (void) const; + bool port_name_prefixed () const; void port_name_prefixed (bool val); // Visiting. virtual int accept (be_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); private: // If the name of a provides or uses node has already been diff --git a/TAO/TAO_IDL/be_include/be_finder.h b/TAO/TAO_IDL/be_include/be_finder.h index 65fc54c8a44..d6f7208aec6 100644 --- a/TAO/TAO_IDL/be_include/be_finder.h +++ b/TAO/TAO_IDL/be_include/be_finder.h @@ -24,10 +24,10 @@ class be_finder : public virtual AST_Finder, public: be_finder (UTL_ScopedName *n); - ~be_finder (void); + ~be_finder (); /// Cleanup method. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int accept (be_visitor *visitor); diff --git a/TAO/TAO_IDL/be_include/be_global.h b/TAO/TAO_IDL/be_include/be_global.h index 5a7a97ad9b9..01dfa862b74 100644 --- a/TAO/TAO_IDL/be_include/be_global.h +++ b/TAO/TAO_IDL/be_include/be_global.h @@ -55,14 +55,14 @@ public: COREDX }; - BE_GlobalData (void); - ~BE_GlobalData (void); + BE_GlobalData (); + ~BE_GlobalData (); // To switch between changing or non-changing standard include // files (e.g. tao/corba.h) so that #include statements can be // generated with ""s or <>s respectively. void changing_standard_include_files (size_t changing); - size_t changing_standard_include_files (void); + size_t changing_standard_include_files (); // Helper functions that generate the file names for the C++ mapping // generated code. @@ -72,7 +72,7 @@ public: static const char *be_get_client_hdr_fname ( bool base_name_only = false); - static const char *be_get_client_stub_fname (void); + static const char *be_get_client_stub_fname (); static const char *be_get_client_inline_fname ( bool base_name_only = false); @@ -89,9 +89,9 @@ public: static const char *be_get_server_template_hdr_fname ( bool base_name_only = false); - static const char *be_get_server_skeleton_fname (void); + static const char *be_get_server_skeleton_fname (); - static const char *be_get_implementation_skeleton_fname (void); + static const char *be_get_implementation_skeleton_fname (); static const char *be_get_server_template_skeleton_fname ( bool base_name_only = false); @@ -250,14 +250,14 @@ public: /// Returns the macro name for exporting server side classes in Win32 /// DLL. - const char* skel_export_macro (void) const; + const char* skel_export_macro () const; /// Set the macro name for export server side classes in Win32 DLL. void skel_export_macro (const char* s); /// Returns the name of the include file that contains the server /// side export macro definition. - const char* skel_export_include (void) const; + const char* skel_export_include () const; /// Set the name of the include file that contains the server side /// export macro definition. @@ -265,7 +265,7 @@ public: /// Returns the name of the include file that will be generated for the /// server side export macro definition. - const char* skel_export_file (void) const; + const char* skel_export_file () const; /// Set the name of the include file that the will be generated for server /// side export macro definition. @@ -273,14 +273,14 @@ public: /// Returns the macro name for exporting client side classes in Win32 /// DLL. - const char* stub_export_macro (void) const; + const char* stub_export_macro () const; /// Set the macro name for export client side classes in Win32 DLL. void stub_export_macro (const char* s); /// Returns the name of the include file that contains the client /// side export macro definition. - const char* stub_export_include (void) const; + const char* stub_export_include () const; /// Set the name of the include file that contains the client side /// export macro definition. @@ -288,7 +288,7 @@ public: /// Returns the name of the include file will be generated for the client /// side export macro definition. - const char* stub_export_file (void) const; + const char* stub_export_file () const; /// Set the name of the include file that will be generated for the client /// side export macro definition. @@ -296,14 +296,14 @@ public: /// Returns the macro name for exporting *A.h file classes in Win32 /// DLL. - const char* anyop_export_macro (void) const; + const char* anyop_export_macro () const; /// Set the macro name for export *A.h file classes in Win32 DLL. void anyop_export_macro (const char* s); /// Returns the name of the include file that contains the *A.h /// file export macro definition. - const char* anyop_export_include (void) const; + const char* anyop_export_include () const; /// Set the name of the include file that contains the *A.h file /// export macro definition. @@ -311,14 +311,14 @@ public: /// Returns the macro name for exporting exec impl classes in Win32 /// DLL. - const char* exec_export_macro (void) const; + const char* exec_export_macro () const; /// Set the macro name for export exec impl classes in Win32 DLL. void exec_export_macro (const char* s); /// Returns the name of the include file that contains the exec /// impl export macro definition. - const char* exec_export_include (void) const; + const char* exec_export_include () const; /// Set the name of the include file that contains the exec impl /// export macro definition. @@ -326,14 +326,14 @@ public: /// Returns the macro name for exporting CIAO svnt classes in Win32 /// DLL. - const char* svnt_export_macro (void) const; + const char* svnt_export_macro () const; /// Set the macro name for export CIAO svnt classes in Win32 DLL. void svnt_export_macro (const char* s); /// Returns the name of the include file that contains the CIAO /// svnt export macro definition. - const char* svnt_export_include (void) const; + const char* svnt_export_include () const; /// Set the name of the include file that contains the CIAO svnt /// export macro definition. @@ -341,7 +341,7 @@ public: /// Returns the macro name for exporting CIAO connector /// classes in Win32 DLL. - const char* conn_export_macro (void) const; + const char* conn_export_macro () const; /// Set the macro name for export CIAO connector /// classes in Win32 DLL. @@ -349,7 +349,7 @@ public: /// Returns the name of the include file that contains the CIAO /// connector export macro definition. - const char* conn_export_include (void) const; + const char* conn_export_include () const; /// Set the name of the include file that contains the CIAO /// connector export macro definition. @@ -357,7 +357,7 @@ public: /// Returns the name of the include file to be used for precompiled /// header support. - const char* pch_include (void) const; + const char* pch_include () const; /// Set the name of the include file to be used for precompiled /// header support. @@ -365,7 +365,7 @@ public: /// Returns the name of the include file to be put at the top of /// every header file. - const char* pre_include (void) const; + const char* pre_include () const; /// Set the name of the include file to be put at the top of every /// header file. @@ -373,21 +373,21 @@ public: /// Returns the name of the include file to be put at the bottom of /// every header file. - const char* post_include (void) const; + const char* post_include () const; /// Set the name of the include file to be put at the bottom of every /// header file. void post_include (const char* s); /// Returns the guard that is placed in the client header file - const char* include_guard (void) const; + const char* include_guard () const; /// Set the guard that is placed in the client header file void include_guard (const char* s); /// Returns the name of the include file that is used instead of the own /// generated client header file - const char* safe_include (void) const; + const char* safe_include () const; /// set the name of the include file that is used instead of the own /// generated client header file @@ -395,7 +395,7 @@ public: /// Returns the name of the include file that should on get /// generated in the client header file - const char* unique_include (void) const; + const char* unique_include () const; /// Set the name of the include file that should on get /// generated in the client header file @@ -403,7 +403,7 @@ public: /// Returns the name of the include file that should be used as /// stripped_filename - const char* stripped_filename (void) const; + const char* stripped_filename () const; /// Set the name of the include file that should be used as stripped_filename void stripped_filename (const char* s); @@ -412,27 +412,27 @@ public: void versioning_begin (const char* s); /// Get text that opens a "versioned" namespace. - const char * versioning_begin (void) const; + const char * versioning_begin () const; /// Set include file for "versioned" namespace. void versioning_include (const char* s); /// Get include file for "versioned" namespace. - const char * versioning_include (void) const; + const char * versioning_include () const; /// Get text that opens a "versioned" namespace for core TAO/orbsvcs /// related code. - const char * core_versioning_begin (void) const; + const char * core_versioning_begin () const; /// Set text that closes a "versioned" namespace. void versioning_end (const char* s); /// Get text that closes a "versioned" namespace. - const char * versioning_end (void) const; + const char * versioning_end () const; /// Get text that closes a "versioned" namespace for core TAO/orbsvcs /// related code. - const char * core_versioning_end (void) const; + const char * core_versioning_end () const; // = Set and get methods for different file name endings. @@ -440,25 +440,25 @@ public: void client_hdr_ending (const char* s); /// Get the client_hdr_ending. - const char* client_hdr_ending (void) const; + const char* client_hdr_ending () const; /// Set the client_inline_ending. void client_inline_ending (const char* s); /// Get the client_inline_ending. - const char* client_inline_ending (void) const; + const char* client_inline_ending () const; /// Set the client_stub_ending. void client_stub_ending (const char* s); /// Get the client_stub_ending. - const char* client_stub_ending (void) const; + const char* client_stub_ending () const; /// Set the server_hdr_ending. void server_hdr_ending (const char* s); /// Get the server_hdr_ending. - const char* server_hdr_ending (void) const; + const char* server_hdr_ending () const; /// Set the implementation_hdr_ending. void implementation_hdr_ending (const char* s); @@ -473,121 +473,121 @@ public: void implementation_skel_ending (const char* s); /// Get the implementation_hdr_ending. - const char* implementation_hdr_ending (void) const; + const char* implementation_hdr_ending () const; ///Get implementation class prefix - const char* impl_class_prefix (void) const; + const char* impl_class_prefix () const; ///Get implementation class suffix - const char* impl_class_suffix (void) const; + const char* impl_class_suffix () const; /// Get the implementation_skel_ending. - const char* implementation_skel_ending (void) const; + const char* implementation_skel_ending () const; /// Set the server_template_hdr_ending. void server_template_hdr_ending (const char* s); /// Get the server_template_hdr_ending. - const char* server_template_hdr_ending (void) const; + const char* server_template_hdr_ending () const; /// Set the server_skeleton_ending. void server_skeleton_ending (const char* s); /// Get the server_skeleton_ending. - const char* server_skeleton_ending (void) const; + const char* server_skeleton_ending () const; /// Set the server_template_skeleton_ending. void server_template_skeleton_ending (const char* s); /// Get the server_template_skeleton_ending. - const char* server_template_skeleton_ending (void) const; + const char* server_template_skeleton_ending () const; /// Set the anyop_header_ending. void anyop_header_ending (const char* s); /// Get the anyop_header_ending. - const char* anyop_header_ending (void) const; + const char* anyop_header_ending () const; /// Set the anyop_source_ending. void anyop_source_ending (const char* s); /// Get the anyop_source_ending. - const char* anyop_source_ending (void) const; + const char* anyop_source_ending () const; /// Similar to above, but for CIAO servant and executor /// impl and executor IDL files, if generated. void ciao_svnt_header_template_ending (const char* s); - const char* ciao_svnt_header_template_ending (void) const; + const char* ciao_svnt_header_template_ending () const; void ciao_svnt_source_template_ending (const char* s); - const char* ciao_svnt_source_template_ending (void) const; + const char* ciao_svnt_source_template_ending () const; void ciao_svnt_header_ending (const char* s); - const char* ciao_svnt_header_ending (void) const; + const char* ciao_svnt_header_ending () const; void ciao_svnt_source_ending (const char* s); - const char* ciao_svnt_source_ending (void) const; + const char* ciao_svnt_source_ending () const; void ciao_exec_header_ending (const char* s); - const char* ciao_exec_header_ending (void) const; + const char* ciao_exec_header_ending () const; void ciao_exec_source_ending (const char* s); - const char* ciao_exec_source_ending (void) const; + const char* ciao_exec_source_ending () const; void ciao_exec_stub_header_ending (const char* s); - const char* ciao_exec_stub_header_ending (void) const; + const char* ciao_exec_stub_header_ending () const; void ciao_exec_idl_ending (const char* s); - const char* ciao_exec_idl_ending (void) const; + const char* ciao_exec_idl_ending () const; void ciao_conn_header_ending (const char* s); - const char* ciao_conn_header_ending (void) const; + const char* ciao_conn_header_ending () const; void ciao_conn_source_ending (const char* s); - const char* ciao_conn_source_ending (void) const; + const char* ciao_conn_source_ending () const; /// For generating TypeSupport header file includes. void dds_typesupport_hdr_ending (const char* s); - const char* dds_typesupport_hdr_ending (void) const; + const char* dds_typesupport_hdr_ending () const; /// For optionally generating CIAO AMI connector IDL file. void ciao_ami_conn_idl_ending (const char* s); - const char* ciao_ami_conn_idl_ending (void) const; + const char* ciao_ami_conn_idl_ending () const; /// For optionally generating CIAO AMI reply handler /// impl header file. void ciao_ami_conn_impl_hdr_ending (const char* s); - const char* ciao_ami_conn_impl_hdr_ending (void) const; + const char* ciao_ami_conn_impl_hdr_ending () const; /// For optionally generating CIAO AMI reply handler /// impl source file. void ciao_ami_conn_impl_src_ending (const char* s); - const char* ciao_ami_conn_impl_src_ending (void) const; + const char* ciao_ami_conn_impl_src_ending () const; /// For optionally controlling the container type, default is Session void ciao_container_type (const char* s); - const char* ciao_container_type (void) const; + const char* ciao_container_type () const; /// Set the clonable_in_args. void use_clonable_in_args (bool clonable); /// Get the clonable_in_args setting. - bool use_clonable_in_args (void) const; + bool use_clonable_in_args () const; /// Get the gen_seq_template_export_ member. - bool gen_template_export (void) const; + bool gen_template_export () const; /// Set the gen_seq_template_export_ member. void gen_template_export (bool val); /// Get the gen_ostream_operators_ member. - bool gen_ostream_operators (void) const; + bool gen_ostream_operators () const; /// Set the gen_ostream_operators_ member. void gen_ostream_operators (bool val); /// Get the gen_static_desc_operations_ member. - bool gen_static_desc_operations (void) const; + bool gen_static_desc_operations () const; /// Set the gen_static_desc_operations_ member. void gen_static_desc_operations (bool val); @@ -605,7 +605,7 @@ public: * to be kept. Default is current directory from which the * <tao_idl> is called. */ - const char* output_dir (void) const; + const char* output_dir () const; /// Set the path for all *C.* file includes. /// Default is local directory or $TAO_ROOT/tao. @@ -613,7 +613,7 @@ public: /// Get the path for all *C.* file includes. /// Default is local directory or $TAO_ROOT/tao. - const char* stub_include_dir (void) const; + const char* stub_include_dir () const; /// Set the directory where all the *S.* files are /// to be kept. Default is output_dir_. @@ -621,7 +621,7 @@ public: /// Get the directory where all the *S.* files are /// to be kept. Default is output_dir_. - const char* skel_output_dir (void) const; + const char* skel_output_dir () const; /// Set the directory where all the *A.* files are /// to be kept. Default is output_dir_. @@ -629,7 +629,7 @@ public: /// Get the directory where all the *A.* files are /// to be kept. Default is output_dir_. - const char* anyop_output_dir (void) const; + const char* anyop_output_dir () const; /// Set the directory where all the *exec.* files are /// to be kept. Default is output_dir_. @@ -637,10 +637,10 @@ public: /// Get the directory where all the *exec.* files are /// to be kept. Default is output_dir_. - const char* exec_output_dir (void) const; + const char* exec_output_dir () const; ///Get the flag for not overwriting already existing exec files. - bool overwrite_not_exec (void) const; + bool overwrite_not_exec () const; ///Set the flag for not overwriting already existing exec files. void overwrite_not_exec (bool val); @@ -649,138 +649,138 @@ public: void any_support (bool); /// Check Any support. - bool any_support (void) const; + bool any_support () const; /// Set cdr support. void cdr_support (bool); /// Check cdr support. - bool cdr_support (void) const; + bool cdr_support () const; /// Set TypeCode support. void tc_support (bool); /// Check TypeCode support - bool tc_support (void) const; + bool tc_support () const; /// Set optimized valuetype member accessor generation. void obv_opt_accessor (bool); /// Check optimized valuetype member accessor generation. - bool obv_opt_accessor (void) const; + bool obv_opt_accessor () const; /// Set generation of implementation files. void gen_impl_files (bool); /// Check if we want to generate implementation files. - bool gen_impl_files (void) const; + bool gen_impl_files () const; /// Set generation of source file and line number for implementation files. void gen_impl_debug_info (bool); /// Check generation of source file and line number implementation files. - bool gen_impl_debug_info (void) const; + bool gen_impl_debug_info () const; /// Set generation of copy constructor. void gen_copy_ctor (bool); /// Check if we want to generate the copy constructor. - bool gen_copy_ctor (void) const; + bool gen_copy_ctor () const; /// Set the generation of the assignment operator. void gen_assign_op (bool); /// Check if we want to generate the assignment operator. - bool gen_assign_op (void) const; + bool gen_assign_op () const; /// Set whether we want to generate Thru_POA collocation stubs. void gen_thru_poa_collocation (bool); /// Check if we want to generate Thru_POA collocation stubs. - bool gen_thru_poa_collocation (void) const; + bool gen_thru_poa_collocation () const; /// Set whether we want to generate Direct collocation stubs. void gen_direct_collocation (bool); /// Check if we want to generate Direct collocation stubs. - bool gen_direct_collocation (void) const; + bool gen_direct_collocation () const; /// Set whether we want to generate for CORBA/e void gen_corba_e (bool); /// Check if we want to generate for CORBA/e - bool gen_corba_e (void) const; + bool gen_corba_e () const; /// Set whether we want to generate for Minimum CORBA void gen_minimum_corba (bool); /// Check if we want to generate for Minimum CORBA - bool gen_minimum_corba (void) const; + bool gen_minimum_corba () const; /// Set whether we want to generate for noeventCCM void gen_noeventccm (bool); /// Check if we want to generate for noeventCCM - bool gen_noeventccm (void) const; + bool gen_noeventccm () const; /// Set whether we want to generate for LwCCM void gen_lwccm (bool); /// Check if we want to generate for LwCCM - bool gen_lwccm (void) const; + bool gen_lwccm () const; /// Set optimized typecodes. void opt_tc (bool); /// Check if TypeCodes are optimized. - bool opt_tc (void) const; + bool opt_tc () const; /// To enable or disable AMI4CCM call back feature void ami4ccm_call_back (bool value); /// Return the flag. - bool ami4ccm_call_back (void) const; + bool ami4ccm_call_back () const; /// To enable or disable AMI call back feature of the Messaging /// specification in the generated code. void ami_call_back (bool value); /// Return the flag. - bool ami_call_back (void) const; + bool ami_call_back () const; /// To enable or disable AMH in the generated code. void gen_amh_classes (bool value); /// Return the flag. - bool gen_amh_classes (void) const; + bool gen_amh_classes () const; /// Set the generation of tie classes and files. void gen_tie_classes (bool value); /// Return the flag. - bool gen_tie_classes (void) const; + bool gen_tie_classes () const; /// To enable or disable AMI call back feature of the Messaging /// specification in the generated code. void gen_smart_proxies (bool value); /// Return the flag. - bool gen_smart_proxies (void) const; + bool gen_smart_proxies () const; /// Set the flag. void gen_inline_constants (bool value); /// Return the flag. - bool gen_inline_constants (void) const; + bool gen_inline_constants () const; /// Set the flag. void gen_orb_h_include (bool value); /// Return the flag. - bool gen_orb_h_include (void) const; + bool gen_orb_h_include () const; /// Generate an empty anyop header (A.h) - bool gen_empty_anyop_header (void) const; + bool gen_empty_anyop_header () const; /// Generate an empty anyop header (A.h) void gen_empty_anyop_header (bool value); @@ -790,144 +790,144 @@ public: /// Return the enumerated value for the lookup strategy. Default is /// perfect hashing. - LOOKUP_STRATEGY lookup_strategy (void) const; + LOOKUP_STRATEGY lookup_strategy () const; /// Set the DDS implementation. void dds_impl (char const * const val); /// Return the enumerated value for the DDS implementation. /// Default is NDDS. - DDS_IMPL dds_impl (void) const; + DDS_IMPL dds_impl () const; /// Cleanup function. - void destroy (void); + void destroy (); /// Used in the generation of extern function declarations so we /// can use non-defined interfaces as members and parameters. ACE_Unbounded_Queue<be_interface_fwd *> non_defined_interfaces; /// Accessor for the member, sets it on the first call. - AST_PredefinedType *void_type (void); + AST_PredefinedType *void_type (); /// Accessor for the member, sets it on the first call. - be_interface *ccmobject (void); + be_interface *ccmobject (); /// Accessor for the member, sets it on the first call. - be_module *messaging (void); + be_module *messaging (); /// Accessor for the member, sets it on the first call. - be_valuetype *messaging_exceptionholder (void); + be_valuetype *messaging_exceptionholder (); /// Accessor for the member, sets it on the first call. - be_interface *messaging_replyhandler (void); + be_interface *messaging_replyhandler (); /// Accessors for the member. - bool gen_anyop_files (void) const; + bool gen_anyop_files () const; void gen_anyop_files (bool val); /// Accessors for the member gen_skel_files_. - bool gen_skel_files (void) const; + bool gen_skel_files () const; void gen_skel_files (bool val); /// Accessors for the member gen_svnt_cpp_files_. - bool gen_svnt_cpp_files (void) const; + bool gen_svnt_cpp_files () const; void gen_svnt_cpp_files (bool val); /// Accessors for the member gen_svnt_t_files_. - bool gen_svnt_t_files (void) const; + bool gen_svnt_t_files () const; void gen_svnt_t_files (bool val); /// Accessors for the member gen_client_inline_. - bool gen_client_inline (void) const; + bool gen_client_inline () const; void gen_client_inline (bool val); /// Accessors for the member gen_client_stub_. - bool gen_client_stub (void) const; + bool gen_client_stub () const; void gen_client_stub (bool val); /// Accessors for the member gen_client_header_. - bool gen_client_header (void) const; + bool gen_client_header () const; void gen_client_header (bool val); /// Accessors for the member gen_server_skeleton_. - bool gen_server_skeleton (void) const; + bool gen_server_skeleton () const; void gen_server_skeleton (bool val); /// Accessors for the member gen_server_header_. - bool gen_server_header (void) const; + bool gen_server_header () const; void gen_server_header (bool val); /// Accessors for the member gen_local_iface_anyops_. - bool gen_local_iface_anyops (void) const; + bool gen_local_iface_anyops () const; void gen_local_iface_anyops (bool val); /// Accessors for the member gen_custom_ending_. - bool gen_custom_ending (void) const; + bool gen_custom_ending () const; void gen_custom_ending (bool val); /// Accessors for the member gen_unique_guards_. - bool gen_unique_guards (void) const; + bool gen_unique_guards () const; void gen_unique_guards (bool val); /// Accessors for the corresponding members. - bool gen_ciao_svnt (void) const; + bool gen_ciao_svnt () const; void gen_ciao_svnt (bool val); - bool gen_ciao_exec_idl (void) const; + bool gen_ciao_exec_idl () const; void gen_ciao_exec_idl (bool val); - bool gen_ciao_exec_impl (void) const; + bool gen_ciao_exec_impl () const; void gen_ciao_exec_impl (bool val); - bool gen_ciao_exec_reactor_impl (void) const; + bool gen_ciao_exec_reactor_impl () const; void gen_ciao_exec_reactor_impl (bool val); - bool gen_ciao_conn_impl (void) const; + bool gen_ciao_conn_impl () const; void gen_ciao_conn_impl (bool val); - bool gen_dds_typesupport_idl (void) const; + bool gen_dds_typesupport_idl () const; void gen_dds_typesupport_idl (bool val); - bool gen_ciao_valuefactory_reg (void) const; + bool gen_ciao_valuefactory_reg () const; void gen_ciao_valuefactory_reg (bool val); - bool gen_stub_export_hdr_file (void) const; + bool gen_stub_export_hdr_file () const; void gen_stub_export_hdr_file (bool val); - bool gen_skel_export_hdr_file (void) const; + bool gen_skel_export_hdr_file () const; void gen_skel_export_hdr_file (bool val); - bool gen_svnt_export_hdr_file (void) const; + bool gen_svnt_export_hdr_file () const; void gen_svnt_export_hdr_file (bool val); - bool gen_exec_export_hdr_file (void) const; + bool gen_exec_export_hdr_file () const; void gen_exec_export_hdr_file (bool val); - bool gen_conn_export_hdr_file (void) const; + bool gen_conn_export_hdr_file () const; void gen_conn_export_hdr_file (bool val); - bool alt_mapping (void) const; + bool alt_mapping () const; void alt_mapping (bool val); - bool in_facet_servant (void) const; + bool in_facet_servant () const; void in_facet_servant (bool val); - bool gen_arg_traits (void) const; + bool gen_arg_traits () const; void gen_arg_traits (bool val); - bool gen_anytypecode_adapter (void) const; + bool gen_anytypecode_adapter () const; void gen_anytypecode_adapter (bool val); bool no_fixed_err () const; void no_fixed_err (bool val); - unsigned long tab_size (void) const; + unsigned long tab_size () const; void tab_size (unsigned long val); /// Command line passed to ACE_Process::spawn. Different /// implementations in IDL and IFR backends. - ACE_CString spawn_options (void); + ACE_CString spawn_options (); /** * Parse an argument that the frontend did not recognize. diff --git a/TAO/TAO_IDL/be_include/be_helper.h b/TAO/TAO_IDL/be_include/be_helper.h index 3f6fef60936..1acdf87dbc5 100644 --- a/TAO/TAO_IDL/be_include/be_helper.h +++ b/TAO/TAO_IDL/be_include/be_helper.h @@ -28,12 +28,12 @@ class AST_Expression; // and use the current indentation for the succeeding line struct TAO_NL { - TAO_NL (void); + TAO_NL (); }; struct TAO_NL_2 { - TAO_NL_2 (void); + TAO_NL_2 (); }; /** @@ -123,9 +123,9 @@ public: CIAO_AMI_RH_IMPL_SRC }; - TAO_OutStream (void); + TAO_OutStream (); - virtual ~TAO_OutStream (void); + virtual ~TAO_OutStream (); /// Open the underlying low-level handle for output. int open (const char *fname, @@ -135,10 +135,10 @@ public: void stream_type (TAO_OutStream::STREAM_TYPE); /// Return the stream type - TAO_OutStream::STREAM_TYPE stream_type (void); + TAO_OutStream::STREAM_TYPE stream_type (); /// Return the underlying lowlevel file pointer. - FILE *&file (void); + FILE *&file (); /// Increment the indentation level and by default actually indent the output /// accordingly @@ -149,13 +149,13 @@ public: int decr_indent (unsigned short flag = 1); /// Reset indentation level to 0 - int reset (void); + int reset (); /// Indent starting next line - int indent (void); + int indent (); /// Put a newline and indent on the next line - int nl (void); + int nl (); /// "printf" style variable argument print int print (const char *format, ...) @@ -167,7 +167,7 @@ public: bool add_stream_type_suffix = true); /// Generate an endif statement - int gen_endif (void); + int gen_endif (); // =overloaded operators // Avoid duplication for the underlying type of size_t diff --git a/TAO/TAO_IDL/be_include/be_home.h b/TAO/TAO_IDL/be_include/be_home.h index 1161da68920..7f4156fdfe4 100644 --- a/TAO/TAO_IDL/be_include/be_home.h +++ b/TAO/TAO_IDL/be_include/be_home.h @@ -35,12 +35,12 @@ public: AST_Interface **supports_flat, long n_supports_flat); - virtual ~be_home (void); + virtual ~be_home (); void scan (UTL_Scope *s); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int accept (be_visitor* visitor); diff --git a/TAO/TAO_IDL/be_include/be_interface.h b/TAO/TAO_IDL/be_include/be_interface.h index 999486b78dd..55b5bb39736 100644 --- a/TAO/TAO_IDL/be_include/be_interface.h +++ b/TAO/TAO_IDL/be_include/be_interface.h @@ -50,15 +50,15 @@ public: bool abstract); /// Destructor. - ~be_interface (void); + ~be_interface (); // Methods, which access the strategy. /// Return the local name. - const char *local_name (void); + const char *local_name (); /// Retrieve the fully scoped skel class name. - const char *full_skel_name (void); + const char *full_skel_name (); /// Retrieve the fully qualified collocated class name. const char *full_coll_name (int); @@ -67,21 +67,21 @@ public: const char *local_coll_name (int); /// retrieve the name of the direct proxy implementation. - virtual const char *direct_proxy_impl_name (void); + virtual const char *direct_proxy_impl_name (); /// retrieve the fully qualified name of the direct proxy /// implementation. - virtual const char *full_direct_proxy_impl_name (void); + virtual const char *full_direct_proxy_impl_name (); /// Return the client scope that encloses the interface. - virtual const char *client_enclosing_scope (void); + virtual const char *client_enclosing_scope (); /// Return the "flattened" scope that encloses /// the interface. - virtual const char *flat_client_enclosing_scope (void); + virtual const char *flat_client_enclosing_scope (); /// Return the server scope that encloses the interface. - virtual const char *server_enclosing_scope (void); + virtual const char *server_enclosing_scope (); /// Retrieve skeleton name. const char *relative_skel_name (const char *skel_name); @@ -107,7 +107,7 @@ public: /// Generate the declarations used by the template _var, _out /// classes for interfaces, and by sequence template classes. - void gen_var_out_seq_decls (void); + void gen_var_out_seq_decls (); // Each interface (to fix names "T") also defines two help classes, // the "collocated" class inherits from T, but delegates on the @@ -148,19 +148,19 @@ public: * 0 => no * 1 => yes */ - int in_mult_inheritance (void); + int in_mult_inheritance (); /// Set a new value. void in_mult_inheritance (int mi); /// Applies to interfaces, components, and homes. - bool has_rw_attributes (void) const; + bool has_rw_attributes () const; /// Pass along BE-specific member values when redefining a fwd decl. virtual void redefine (AST_Interface *from); /// Cleanup function. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int accept (be_visitor *visitor); @@ -237,10 +237,10 @@ public: /// Returns the original interface from which this one was created, /// applies only to implied IDL - be_interface *original_interface (void); + be_interface *original_interface (); /// Is EventConsumerBase our parent? - bool is_event_consumer (void); + bool is_event_consumer (); /** * Common code for facet generation, whether we are @@ -252,14 +252,14 @@ public: /// Used with ami4ccm. int gen_ami4ccm_idl (TAO_OutStream *os); - bool is_ami_rh (void) const; + bool is_ami_rh () const; void is_ami_rh (bool val); - bool is_ami4ccm_rh (void) const; + bool is_ami4ccm_rh () const; void is_ami4ccm_rh (bool val); /// Accessors for the member. - bool dds_connector_traits_done (void) const; + bool dds_connector_traits_done () const; void dds_connector_traits_done (bool val); /// Generate the "public virtual" entries in the stub header. @@ -427,7 +427,7 @@ public: /** * This is a no-op, simply put here to keep compilers happy. */ - virtual ~TAO_IDL_Inheritance_Hierarchy_Worker (void); + virtual ~TAO_IDL_Inheritance_Hierarchy_Worker (); /// Define the method invoked during the inheritance traversal /** diff --git a/TAO/TAO_IDL/be_include/be_interface_fwd.h b/TAO/TAO_IDL/be_include/be_interface_fwd.h index 683af1090b0..29271083e30 100644 --- a/TAO/TAO_IDL/be_include/be_interface_fwd.h +++ b/TAO/TAO_IDL/be_include/be_interface_fwd.h @@ -33,7 +33,7 @@ public: be_interface_fwd (AST_Interface *dummy, UTL_ScopedName *n); - virtual ~be_interface_fwd (void); + virtual ~be_interface_fwd (); /// Mutator overrides for be_type members. If we have been /// defined, we want the full definition to be set as well. @@ -41,7 +41,7 @@ public: virtual void seen_in_operation (bool val); /// Cleanup function. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int accept (be_visitor* visitor); diff --git a/TAO/TAO_IDL/be_include/be_mirror_port.h b/TAO/TAO_IDL/be_include/be_mirror_port.h index 1fb3e445b58..aa2737c7e29 100644 --- a/TAO/TAO_IDL/be_include/be_mirror_port.h +++ b/TAO/TAO_IDL/be_include/be_mirror_port.h @@ -31,9 +31,9 @@ public: UTL_ScopedName *n, AST_PortType *porttype_ref); - virtual ~be_mirror_port (void); + virtual ~be_mirror_port (); - virtual void destroy (void); + virtual void destroy (); virtual int accept (be_visitor *visitor); }; diff --git a/TAO/TAO_IDL/be_include/be_module.h b/TAO/TAO_IDL/be_include/be_module.h index 620ffdb5e45..9fe8eb3118b 100644 --- a/TAO/TAO_IDL/be_include/be_module.h +++ b/TAO/TAO_IDL/be_include/be_module.h @@ -28,7 +28,7 @@ public: be_module (UTL_ScopedName *n, AST_Module *previous = 0); /// Cleanup method. - virtual void destroy (void); + virtual void destroy (); // Visiting virtual int accept (be_visitor *visitor); diff --git a/TAO/TAO_IDL/be_include/be_native.h b/TAO/TAO_IDL/be_include/be_native.h index 341e7eccb4a..1a39721737a 100644 --- a/TAO/TAO_IDL/be_include/be_native.h +++ b/TAO/TAO_IDL/be_include/be_native.h @@ -30,16 +30,16 @@ class be_native : public virtual AST_Native, public: be_native (UTL_ScopedName *n); - virtual ~be_native (void) {} + virtual ~be_native () {} /// Generate the typecode description. - virtual int gen_typecode (void); + virtual int gen_typecode (); /// Return typecode size. - virtual long tc_size (void); + virtual long tc_size (); /// Cleanup. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int accept (be_visitor *visitor); diff --git a/TAO/TAO_IDL/be_include/be_null_return_emitter.h b/TAO/TAO_IDL/be_include/be_null_return_emitter.h index 9bfc930ea6f..56fd4e89cff 100644 --- a/TAO/TAO_IDL/be_include/be_null_return_emitter.h +++ b/TAO/TAO_IDL/be_include/be_null_return_emitter.h @@ -23,7 +23,7 @@ class be_null_return_emitter { public: be_null_return_emitter (be_visitor_context *ctx); - ~be_null_return_emitter (void); + ~be_null_return_emitter (); int emit (be_type *node); diff --git a/TAO/TAO_IDL/be_include/be_operation.h b/TAO/TAO_IDL/be_include/be_operation.h index 8e08f3350df..3ecd2965573 100644 --- a/TAO/TAO_IDL/be_include/be_operation.h +++ b/TAO/TAO_IDL/be_include/be_operation.h @@ -35,10 +35,10 @@ public: bool local, bool abstract); - ~be_operation (void); + ~be_operation (); /// Cleanup method. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int accept (be_visitor *visitor); @@ -49,13 +49,13 @@ public: /// Insert an exception at the head of the list. int be_insert_exception (AST_Exception *ex); - bool is_sendc_ami (void) const; + bool is_sendc_ami () const; void is_sendc_ami (bool val); - bool is_excep_ami (void) const; + bool is_excep_ami () const; void is_excep_ami (bool val); - bool is_attr_op (void) const; + bool is_attr_op () const; void is_attr_op (bool val); protected: diff --git a/TAO/TAO_IDL/be_include/be_param_holder.h b/TAO/TAO_IDL/be_include/be_param_holder.h index 64a39d8f9ff..2eecadb9e4a 100644 --- a/TAO/TAO_IDL/be_include/be_param_holder.h +++ b/TAO/TAO_IDL/be_include/be_param_holder.h @@ -26,10 +26,10 @@ public: be_param_holder (UTL_ScopedName *parameter_name, FE_Utils::T_Param_Info *info); - virtual ~be_param_holder (void); + virtual ~be_param_holder (); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int accept (be_visitor *visitor); diff --git a/TAO/TAO_IDL/be_include/be_porttype.h b/TAO/TAO_IDL/be_include/be_porttype.h index c6a9b607a04..4a0464e3083 100644 --- a/TAO/TAO_IDL/be_include/be_porttype.h +++ b/TAO/TAO_IDL/be_include/be_porttype.h @@ -31,9 +31,9 @@ class be_porttype : public virtual AST_PortType, public: be_porttype (UTL_ScopedName *n); - virtual ~be_porttype (void); + virtual ~be_porttype (); - virtual void destroy (void); + virtual void destroy (); virtual int accept (be_visitor *visitor); }; diff --git a/TAO/TAO_IDL/be_include/be_predefined_type.h b/TAO/TAO_IDL/be_include/be_predefined_type.h index 13dc307c4f5..026095fd4e6 100644 --- a/TAO/TAO_IDL/be_include/be_predefined_type.h +++ b/TAO/TAO_IDL/be_include/be_predefined_type.h @@ -37,11 +37,11 @@ public: virtual int accept (be_visitor* visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); protected: /// Overridden method. - virtual void compute_tc_name (void); + virtual void compute_tc_name (); // Compute and return the value. @@ -50,7 +50,7 @@ protected: * prefix, but the default compute_repoID() uses the #pragma's to * obtain prefixes. */ - virtual void compute_repoID (void); + virtual void compute_repoID (); }; #endif diff --git a/TAO/TAO_IDL/be_include/be_provides.h b/TAO/TAO_IDL/be_include/be_provides.h index 085659a1a5c..0f73ab08577 100644 --- a/TAO/TAO_IDL/be_include/be_provides.h +++ b/TAO/TAO_IDL/be_include/be_provides.h @@ -17,16 +17,16 @@ public: be_provides (UTL_ScopedName *n, AST_Type *provides_type); - virtual ~be_provides (void); + virtual ~be_provides (); // Non-virtual override of frontend method. - be_type *provides_type (void) const; + be_type *provides_type () const; // Visiting. virtual int accept (be_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); }; #endif // BE_PROVIDES_H diff --git a/TAO/TAO_IDL/be_include/be_publishes.h b/TAO/TAO_IDL/be_include/be_publishes.h index 56082dbb30b..7a68c3fe304 100644 --- a/TAO/TAO_IDL/be_include/be_publishes.h +++ b/TAO/TAO_IDL/be_include/be_publishes.h @@ -16,16 +16,16 @@ public: be_publishes (UTL_ScopedName *n, AST_Type *publishes_type); - virtual ~be_publishes (void); + virtual ~be_publishes (); // Non-virtual override of frontend method. - be_eventtype *publishes_type (void) const; + be_eventtype *publishes_type () const; // Visiting. virtual int accept (be_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); }; #endif // BE_PUBLISHES_H diff --git a/TAO/TAO_IDL/be_include/be_root.h b/TAO/TAO_IDL/be_include/be_root.h index 67e6e22076f..44a6ac9118c 100644 --- a/TAO/TAO_IDL/be_include/be_root.h +++ b/TAO/TAO_IDL/be_include/be_root.h @@ -28,10 +28,10 @@ class be_root : public virtual AST_Root, public: be_root (UTL_ScopedName *n); - virtual ~be_root (void); + virtual ~be_root (); /// Cleanup method. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int accept (be_visitor *visitor); diff --git a/TAO/TAO_IDL/be_include/be_scope.h b/TAO/TAO_IDL/be_include/be_scope.h index db945b89d05..6eab19ad9e0 100644 --- a/TAO/TAO_IDL/be_include/be_scope.h +++ b/TAO/TAO_IDL/be_include/be_scope.h @@ -33,13 +33,13 @@ class be_scope : public virtual UTL_Scope { public: /// Default constructor. - be_scope (void); + be_scope (); /// Constructor that sets the node type. be_scope (AST_Decl::NodeType nt); /// Destructor. - virtual ~be_scope (void); + virtual ~be_scope (); /// To access the protected base class method fe_add_field. AST_Field *be_add_field (AST_Field *f); @@ -51,13 +51,13 @@ public: virtual void comma (unsigned short set); /// Get the comma producing state. - int comma (void) const; + int comma () const; /// Return the be_decl node corresponding to this scope node. - virtual be_decl *decl (void); + virtual be_decl *decl (); /// Recursively clean up scope members. - virtual void destroy (void); + virtual void destroy (); /// Visiting. virtual int accept (be_visitor *visitor); diff --git a/TAO/TAO_IDL/be_include/be_sequence.h b/TAO/TAO_IDL/be_include/be_sequence.h index d7ccb6bd417..6d2deb80317 100644 --- a/TAO/TAO_IDL/be_include/be_sequence.h +++ b/TAO/TAO_IDL/be_include/be_sequence.h @@ -54,33 +54,33 @@ public: bool abstract); // Non-virtual override of frontend method. - be_type *base_type (void) const; + be_type *base_type () const; /// Create a name for ourselves. If we are typedefed, then we get the name of /// the typedef node, else we generate a name for ourselves. virtual int create_name (be_typedef *node); /// Return the managed type. - virtual MANAGED_TYPE managed_type (void); + virtual MANAGED_TYPE managed_type (); // Scope management functions. virtual AST_Sequence *fe_add_sequence (AST_Sequence *); /// Overridden method on the be_scope class. - virtual be_decl *decl (void); + virtual be_decl *decl (); /// Overridden from class be_type. virtual void gen_ostream_operator (TAO_OutStream *os, bool use_underscore); /// Cleanup method. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int accept (be_visitor *visitor); /// Report the instance name for instantiation. - const char *instance_name (void); + const char *instance_name (); /// Common code for generating the name and parameters of our /// template sequence base class. @@ -89,16 +89,16 @@ public: AST_Decl *elem_scope); /// Accessors for the member. - be_field *field_node (void) const; + be_field *field_node () const; void field_node (be_field *node); /// Helper to create_name, also used by the traits visitor. - virtual char *gen_name (void); + virtual char *gen_name (); protected: /// Computes the fully scoped typecode name. - virtual void compute_tc_name (void); + virtual void compute_tc_name (); private: const char *smart_fwd_helper_name (AST_Decl *elem_scope, diff --git a/TAO/TAO_IDL/be_include/be_string.h b/TAO/TAO_IDL/be_include/be_string.h index 828482b47cc..0535b0596a4 100644 --- a/TAO/TAO_IDL/be_include/be_string.h +++ b/TAO/TAO_IDL/be_include/be_string.h @@ -39,11 +39,11 @@ public: virtual int accept (be_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); protected: /// Overridden method to compute typecode name. - virtual void compute_tc_name (void); + virtual void compute_tc_name (); }; #endif diff --git a/TAO/TAO_IDL/be_include/be_structure.h b/TAO/TAO_IDL/be_include/be_structure.h index fafbbc102d9..cb3014abab6 100644 --- a/TAO/TAO_IDL/be_include/be_structure.h +++ b/TAO/TAO_IDL/be_include/be_structure.h @@ -44,7 +44,7 @@ public: bool use_underscore); /// Cleanup method. - virtual void destroy (void); + virtual void destroy (); /// Visiting. virtual int accept (be_visitor *visitor); diff --git a/TAO/TAO_IDL/be_include/be_structure_fwd.h b/TAO/TAO_IDL/be_include/be_structure_fwd.h index 1660b62f4da..25a5ed2f5a5 100644 --- a/TAO/TAO_IDL/be_include/be_structure_fwd.h +++ b/TAO/TAO_IDL/be_include/be_structure_fwd.h @@ -32,10 +32,10 @@ public: be_structure_fwd (AST_Structure *dummy, UTL_ScopedName *n); - virtual ~be_structure_fwd (void); + virtual ~be_structure_fwd (); /// Cleanup function. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int accept (be_visitor* visitor); diff --git a/TAO/TAO_IDL/be_include/be_template_module.h b/TAO/TAO_IDL/be_include/be_template_module.h index 266fa5e8054..7ca8bb91071 100644 --- a/TAO/TAO_IDL/be_include/be_template_module.h +++ b/TAO/TAO_IDL/be_include/be_template_module.h @@ -32,9 +32,9 @@ public: UTL_ScopedName *n, FE_Utils::T_PARAMLIST_INFO *template_params); - virtual ~be_template_module (void); + virtual ~be_template_module (); - virtual void destroy (void); + virtual void destroy (); virtual int accept (be_visitor *visitor); }; diff --git a/TAO/TAO_IDL/be_include/be_template_module_inst.h b/TAO/TAO_IDL/be_include/be_template_module_inst.h index 688eeb9f6b4..2d5c917761f 100644 --- a/TAO/TAO_IDL/be_include/be_template_module_inst.h +++ b/TAO/TAO_IDL/be_include/be_template_module_inst.h @@ -14,10 +14,10 @@ public: AST_Template_Module *ref, FE_Utils::T_ARGLIST *template_args); - virtual ~be_template_module_inst (void); + virtual ~be_template_module_inst (); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int accept (be_visitor *visitor); diff --git a/TAO/TAO_IDL/be_include/be_template_module_ref.h b/TAO/TAO_IDL/be_include/be_template_module_ref.h index 0c7ca861f38..202d2a86b74 100644 --- a/TAO/TAO_IDL/be_include/be_template_module_ref.h +++ b/TAO/TAO_IDL/be_include/be_template_module_ref.h @@ -15,10 +15,10 @@ public: AST_Template_Module *ref, UTL_StrList *param_refs); - virtual ~be_template_module_ref (void); + virtual ~be_template_module_ref (); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int accept (be_visitor *visitor); diff --git a/TAO/TAO_IDL/be_include/be_type.h b/TAO/TAO_IDL/be_include/be_type.h index 66fedcba55d..e70c6e2c9fc 100644 --- a/TAO/TAO_IDL/be_include/be_type.h +++ b/TAO/TAO_IDL/be_include/be_type.h @@ -28,14 +28,14 @@ public: be_type (AST_Decl::NodeType nt, UTL_ScopedName *n); - virtual ~be_type (void); + virtual ~be_type (); /** * Return the typecode name. When both, the prefix and the suffix * are non null, it computes and returns a tc name. Else, it also * stores the result in a member variable. */ - UTL_ScopedName *tc_name (void); + UTL_ScopedName *tc_name (); /// Type name of a node used when generating declarations for smart /// proxies. @@ -44,7 +44,7 @@ public: const char *prefix = 0); /// Compute the value of the member. - void gen_fwd_helper_name (void); + void gen_fwd_helper_name (); /// No-op, overridden in derived classes. virtual void gen_ostream_operator (TAO_OutStream *os, @@ -57,7 +57,7 @@ public: bool accessor = false); /// Accessor to the member. - const char *fwd_helper_name (void) const; + const char *fwd_helper_name () const; void fwd_helper_name (const char *name); /// Generate _var and _out typedefs for structs and unions. @@ -67,11 +67,11 @@ public: void gen_stub_decls (TAO_OutStream *os); /// Accessors for the member. - bool seen_in_sequence (void) const; + bool seen_in_sequence () const; virtual void seen_in_sequence (bool val); /// Accessors for the member. - bool seen_in_operation (void) const; + bool seen_in_operation () const; virtual void seen_in_operation (bool val); /** @@ -80,17 +80,17 @@ public: * recursive simply using "base_type->node_type()" will not work, so * the most "unaliased" type is needed. */ - virtual AST_Decl::NodeType base_node_type (void) const; + virtual AST_Decl::NodeType base_node_type () const; /// Clean up allocated members. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int accept (be_visitor* visitor); protected: /// Computes the fully scoped typecode name. - virtual void compute_tc_name (void); + virtual void compute_tc_name (); /// Typecode name. UTL_ScopedName *tc_name_; diff --git a/TAO/TAO_IDL/be_include/be_typedef.h b/TAO/TAO_IDL/be_include/be_typedef.h index d05f7707a36..b1f3bfb5708 100644 --- a/TAO/TAO_IDL/be_include/be_typedef.h +++ b/TAO/TAO_IDL/be_include/be_typedef.h @@ -31,16 +31,16 @@ public: /// Overrides for be_type members. If we have been /// defined, we want the underlying type to be set as well. virtual void seen_in_sequence (bool val); - virtual bool seen_in_operation (void) const; + virtual bool seen_in_operation () const; virtual void seen_in_operation (bool val); /// Return the most primitive base type by traversing the chain of typedefed /// base types. - be_type *primitive_base_type (void); + be_type *primitive_base_type (); /// Return the most "unaliased" type node for the base type (see /// be_type.h). - virtual AST_Decl::NodeType base_node_type (void) const; + virtual AST_Decl::NodeType base_node_type () const; /// Overridden from class be_type. virtual void gen_member_ostream_operator (TAO_OutStream *os, @@ -49,7 +49,7 @@ public: bool accessor = false); /// Cleanup function. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int accept (be_visitor *visitor); diff --git a/TAO/TAO_IDL/be_include/be_union.h b/TAO/TAO_IDL/be_include/be_union.h index 92083e831d4..2ffb8c2a4e0 100644 --- a/TAO/TAO_IDL/be_include/be_union.h +++ b/TAO/TAO_IDL/be_include/be_union.h @@ -35,28 +35,28 @@ public: virtual void redefine (AST_Structure *from); /// Do we have at least one member with multiple case labels? - virtual bool has_duplicate_case_labels (void); + virtual bool has_duplicate_case_labels (); /// Overridden from class be_type. virtual void gen_ostream_operator (TAO_OutStream *os, bool use_underscore); /// Cleanup function. - virtual void destroy (void); + virtual void destroy (); /// Visiting. virtual int accept (be_visitor *visitor); /// Decides whether a default switch case label in the generated copy /// constructor, assignment operator, etc. is needed. - bool gen_empty_default_label (void); + bool gen_empty_default_label (); /// Just a way to get at fe_add_union_branch() from the backend. AST_UnionBranch *be_add_union_branch (AST_UnionBranch *b); /// Returns total number of labels, useful when the union has /// multiple case labels. - ACE_UINT64 nlabels (void); + ACE_UINT64 nlabels (); }; #endif diff --git a/TAO/TAO_IDL/be_include/be_union_branch.h b/TAO/TAO_IDL/be_include/be_union_branch.h index 9c61769b2bd..e00a9419804 100644 --- a/TAO/TAO_IDL/be_include/be_union_branch.h +++ b/TAO/TAO_IDL/be_include/be_union_branch.h @@ -43,7 +43,7 @@ public: virtual int accept (be_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); }; #endif diff --git a/TAO/TAO_IDL/be_include/be_union_fwd.h b/TAO/TAO_IDL/be_include/be_union_fwd.h index b9e9c73f542..76b5673dcc0 100644 --- a/TAO/TAO_IDL/be_include/be_union_fwd.h +++ b/TAO/TAO_IDL/be_include/be_union_fwd.h @@ -31,10 +31,10 @@ public: be_union_fwd (AST_Union *dummy, UTL_ScopedName *n); - virtual ~be_union_fwd (void); + virtual ~be_union_fwd (); /// Cleanup function. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int accept (be_visitor* visitor); diff --git a/TAO/TAO_IDL/be_include/be_union_label.h b/TAO/TAO_IDL/be_include/be_union_label.h index 413a821b302..0d9416f464c 100644 --- a/TAO/TAO_IDL/be_include/be_union_label.h +++ b/TAO/TAO_IDL/be_include/be_union_label.h @@ -15,7 +15,7 @@ public: virtual int accept (be_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); }; #endif diff --git a/TAO/TAO_IDL/be_include/be_uses.h b/TAO/TAO_IDL/be_include/be_uses.h index 80cf76f975a..873b0c57f36 100644 --- a/TAO/TAO_IDL/be_include/be_uses.h +++ b/TAO/TAO_IDL/be_include/be_uses.h @@ -17,16 +17,16 @@ public: AST_Type *uses_type, bool is_multiple); - virtual ~be_uses (void); + virtual ~be_uses (); // Non-virtual override of frontend method. - be_type *uses_type (void) const; + be_type *uses_type () const; // Visiting. virtual int accept (be_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); void original_uses (be_uses *original_uses); // Sets the original uses from which this one was created, diff --git a/TAO/TAO_IDL/be_include/be_util.h b/TAO/TAO_IDL/be_include/be_util.h index ab65c5cafcd..159ae016118 100644 --- a/TAO/TAO_IDL/be_include/be_util.h +++ b/TAO/TAO_IDL/be_include/be_util.h @@ -48,15 +48,15 @@ public: /// Checks made after parsing args. static TAO_IDL_BE_Export void - arg_post_proc (void); + arg_post_proc (); /// Display usage of BE-specific options. static TAO_IDL_BE_Export void - usage (void); + usage (); /// Create an AST node generator. static TAO_IDL_BE_Export AST_Generator * - generator_init (void); + generator_init (); /// Called from various places. static const char * @@ -67,7 +67,7 @@ public: /// Called from various places. static bool - overwrite_ciao_exec_files (void); + overwrite_ciao_exec_files (); // Called by each node upon construction. static void set_arg_seen_bit (be_type *); diff --git a/TAO/TAO_IDL/be_include/be_valuebox.h b/TAO/TAO_IDL/be_include/be_valuebox.h index 6a1e4292f48..9ae4448823d 100644 --- a/TAO/TAO_IDL/be_include/be_valuebox.h +++ b/TAO/TAO_IDL/be_include/be_valuebox.h @@ -30,7 +30,7 @@ public: virtual int accept (be_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); }; #endif /* TAO_BE_VALUEBOX_H */ diff --git a/TAO/TAO_IDL/be_include/be_valuetype.h b/TAO/TAO_IDL/be_include/be_valuetype.h index 5dc0e9e5e47..38c8a990ba7 100644 --- a/TAO/TAO_IDL/be_include/be_valuetype.h +++ b/TAO/TAO_IDL/be_include/be_valuetype.h @@ -41,12 +41,12 @@ public: bool truncatable, bool custom); - ~be_valuetype (void); + ~be_valuetype (); virtual void redefine (AST_Interface *from); /// Should generate optimized form? - bool opt_accessor (void); + bool opt_accessor (); /// Generate the helper functions definition. virtual int gen_helper_header (char *local_name = 0, @@ -66,17 +66,17 @@ public: /// Generate the declarations used by the template _var, _out /// classes for valuetypes, and by sequence template classes. - void gen_var_out_seq_decls (void); + void gen_var_out_seq_decls (); /// Retrieve the fully scoped skel class name. - const char *full_obv_skel_name (void); + const char *full_obv_skel_name (); - const char *field_pd_prefix (void); + const char *field_pd_prefix (); - const char *field_pd_postfix (void); + const char *field_pd_postfix (); // For building the name for private data fields. - be_valuetype *statefull_inherit (void); + be_valuetype *statefull_inherit (); /// Load the insert queue with all the interfaces we support, and /// call the generic version of traverse_inheritance_graph(). @@ -95,16 +95,16 @@ public: ); /// Do we support at least one abstract interface? - bool supports_abstract (void) const; + bool supports_abstract () const; // Visiting. virtual int accept (be_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); /// Compute the fully scoped skel class name. - void compute_fullobvskelname (void); + void compute_fullobvskelname (); /// Compute the count of private/public/all data members. ACE_CDR::ULong data_members_count ( @@ -118,7 +118,7 @@ public: TAO_OutStream *os); /// Accessor to the member. - const char *fwd_helper_name (void) const; + const char *fwd_helper_name () const; // There are three possible situations. // (1) If there is no initializers but at least one operation. @@ -141,24 +141,24 @@ public: }; /// Determine what kind of factory needed. - FactoryStyle determine_factory_style (void); + FactoryStyle determine_factory_style (); /// Recurse down the inheritance tree to determine /// if valuetype has at least one operation/attribute. - bool have_operation (void); + bool have_operation (); /// Check if VT supports an interface with at least 1 operation. static bool have_supported_op (be_interface *node); /// Use the above enum and methods to determine this after the /// node's scope is visited but before code generation. - virtual bool will_have_factory (void); + virtual bool will_have_factory (); /// Decides whether to generate the initializing contstructor or not. - bool has_member (void); + bool has_member (); /// Accessors for the member - bool is_amh_excep_holder (void) const; + bool is_amh_excep_holder () const; void is_amh_excep_holder (bool val); private: diff --git a/TAO/TAO_IDL/be_include/be_valuetype_fwd.h b/TAO/TAO_IDL/be_include/be_valuetype_fwd.h index b72174d3a4e..4c0063ce7e9 100644 --- a/TAO/TAO_IDL/be_include/be_valuetype_fwd.h +++ b/TAO/TAO_IDL/be_include/be_valuetype_fwd.h @@ -31,13 +31,13 @@ public: be_valuetype_fwd (AST_Interface *dummy, UTL_ScopedName *n); - virtual ~be_valuetype_fwd (void); + virtual ~be_valuetype_fwd (); // Visiting. virtual int accept (be_visitor* visitor); // Cleanup - virtual void destroy (void); + virtual void destroy (); }; #endif // if !defined diff --git a/TAO/TAO_IDL/be_include/be_visitor.h b/TAO/TAO_IDL/be_include/be_visitor.h index e6ec9470ee7..ca89ed5f9c8 100644 --- a/TAO/TAO_IDL/be_include/be_visitor.h +++ b/TAO/TAO_IDL/be_include/be_visitor.h @@ -85,7 +85,7 @@ class TAO_OutStream; class be_visitor { public: - virtual ~be_visitor (void); + virtual ~be_visitor (); virtual int visit_decl (be_decl *d); virtual int visit_scope (be_scope *node); @@ -142,7 +142,7 @@ public: protected: // Not abstract but we want to force subclassing anyway. - be_visitor (void); + be_visitor (); }; #endif // TAO_BE_VISITOR_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_amh_pre_proc.h b/TAO/TAO_IDL/be_include/be_visitor_amh_pre_proc.h index 0bee5dc3f84..14f2b23ff33 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_amh_pre_proc.h +++ b/TAO/TAO_IDL/be_include/be_visitor_amh_pre_proc.h @@ -37,7 +37,7 @@ private: public: be_visitor_amh_pre_proc (be_visitor_context *ctx); - virtual ~be_visitor_amh_pre_proc (void); + virtual ~be_visitor_amh_pre_proc (); virtual int visit_root (be_root *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_ami_pre_proc.h b/TAO/TAO_IDL/be_include/be_visitor_ami_pre_proc.h index d1706c12e24..a2f9f2ff70a 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_ami_pre_proc.h +++ b/TAO/TAO_IDL/be_include/be_visitor_ami_pre_proc.h @@ -41,7 +41,7 @@ private: public: be_visitor_ami_pre_proc (be_visitor_context *ctx); - virtual ~be_visitor_ami_pre_proc (void); + virtual ~be_visitor_ami_pre_proc (); virtual int visit_root (be_root *node); @@ -94,7 +94,7 @@ private: long &n_parents); /// Generate an *A.idl file for AMI4CCM. - int generate_ami4ccm_idl (void); + int generate_ami4ccm_idl (); }; #endif // TAO_BE_VISITOR_AMI_PRE_PROC_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_any_extracted_type_decl.h b/TAO/TAO_IDL/be_include/be_visitor_any_extracted_type_decl.h index deec0954961..395dae51fd6 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_any_extracted_type_decl.h +++ b/TAO/TAO_IDL/be_include/be_visitor_any_extracted_type_decl.h @@ -29,7 +29,7 @@ class be_visitor_any_extracted_type_decl : public be_visitor_decl { public: be_visitor_any_extracted_type_decl (be_visitor_context *ctx); - virtual ~be_visitor_any_extracted_type_decl (void); + virtual ~be_visitor_any_extracted_type_decl (); virtual int visit_array (be_array *); virtual int visit_component (be_component *); diff --git a/TAO/TAO_IDL/be_include/be_visitor_arg_traits.h b/TAO/TAO_IDL/be_include/be_visitor_arg_traits.h index a9cb4413182..761859541eb 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_arg_traits.h +++ b/TAO/TAO_IDL/be_include/be_visitor_arg_traits.h @@ -24,7 +24,7 @@ public: be_visitor_arg_traits (const char *S, be_visitor_context *ctx); - virtual ~be_visitor_arg_traits (void); + virtual ~be_visitor_arg_traits (); virtual int visit_root (be_root *node); virtual int visit_module (be_module *node); @@ -58,7 +58,7 @@ private: void generated (be_decl *node, bool val); - const char *insert_policy (void); + const char *insert_policy (); private: char *S_; diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/arglist.h b/TAO/TAO_IDL/be_include/be_visitor_argument/arglist.h index 50bdba259e6..e1ae99ec493 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/arglist.h +++ b/TAO/TAO_IDL/be_include/be_visitor_argument/arglist.h @@ -35,7 +35,7 @@ public: be_visitor_args_arglist (be_visitor_context *ctx); /// destructor - virtual ~be_visitor_args_arglist (void); + virtual ~be_visitor_args_arglist (); /// visit the argument node virtual int visit_argument (be_argument *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/argument.h b/TAO/TAO_IDL/be_include/be_visitor_argument/argument.h index 0985975fce0..2f320a41943 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/argument.h +++ b/TAO/TAO_IDL/be_include/be_visitor_argument/argument.h @@ -36,7 +36,7 @@ public: be_visitor_args (be_visitor_context *ctx); /// destructor - virtual ~be_visitor_args (void); + virtual ~be_visitor_args (); //= helper /// helper that produces either a nested name for @@ -45,7 +45,7 @@ public: const char *suffix = 0); /// return the direction of the argument node - virtual AST_Argument::Direction direction (void); + virtual AST_Argument::Direction direction (); /// must be overridden by derived classes virtual int visit_argument (be_argument *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/invoke_cs.h b/TAO/TAO_IDL/be_include/be_visitor_argument/invoke_cs.h index 49a1a650456..023e96be6c2 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/invoke_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_argument/invoke_cs.h @@ -32,7 +32,7 @@ public: be_visitor_args_invoke_cs (be_visitor_context *ctx); /// destructor - virtual ~be_visitor_args_invoke_cs (void); + virtual ~be_visitor_args_invoke_cs (); /// visit the argument node virtual int visit_argument (be_argument *node); @@ -93,7 +93,7 @@ public: virtual int visit_home (be_home *node); private: - int emit_common (void); + int emit_common (); int emit_common2 (be_type *node); }; diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/marshal_ss.h b/TAO/TAO_IDL/be_include/be_visitor_argument/marshal_ss.h index c7cd4332015..05e7225bd3b 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/marshal_ss.h +++ b/TAO/TAO_IDL/be_include/be_visitor_argument/marshal_ss.h @@ -32,7 +32,7 @@ public: be_visitor_args_marshal_ss (be_visitor_context *ctx); /// destructor - virtual ~be_visitor_args_marshal_ss (void); + virtual ~be_visitor_args_marshal_ss (); /// visit the argument node virtual int visit_argument (be_argument *node); @@ -94,7 +94,7 @@ public: virtual int visit_home (be_home *node); private: - int emit_common (void); + int emit_common (); int emit_common2 (be_type *node); }; diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/upcall_ss.h b/TAO/TAO_IDL/be_include/be_visitor_argument/upcall_ss.h index 6a91ca39d3d..42b8d547675 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/upcall_ss.h +++ b/TAO/TAO_IDL/be_include/be_visitor_argument/upcall_ss.h @@ -32,7 +32,7 @@ public: be_visitor_args_upcall_ss (be_visitor_context *ctx); /// destructor - virtual ~be_visitor_args_upcall_ss (void); + virtual ~be_visitor_args_upcall_ss (); /// visit the argument node virtual int visit_argument (be_argument *node); @@ -91,7 +91,7 @@ public: virtual int visit_eventtype_fwd (be_eventtype_fwd *node); private: - int emit_common (void); + int emit_common (); int emit_common2 (be_type *node); }; diff --git a/TAO/TAO_IDL/be_include/be_visitor_argument/vardecl_ss.h b/TAO/TAO_IDL/be_include/be_visitor_argument/vardecl_ss.h index 6fee17d07a4..0fc6fd6c3a0 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_argument/vardecl_ss.h +++ b/TAO/TAO_IDL/be_include/be_visitor_argument/vardecl_ss.h @@ -32,7 +32,7 @@ public: be_visitor_args_vardecl_ss (be_visitor_context *ctx); /// destructor - virtual ~be_visitor_args_vardecl_ss (void); + virtual ~be_visitor_args_vardecl_ss (); /// visit the argument node virtual int visit_argument (be_argument *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_array/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_array/any_op_ch.h index 5fd66b6c4ea..b6463d0753f 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_array/any_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_array/any_op_ch.h @@ -34,7 +34,7 @@ public: be_visitor_array_any_op_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_array_any_op_ch (void); + ~be_visitor_array_any_op_ch (); /// visit array virtual int visit_array (be_array *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_array/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_array/any_op_cs.h index 85040aae980..776a873402e 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_array/any_op_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_array/any_op_cs.h @@ -34,7 +34,7 @@ public: be_visitor_array_any_op_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_array_any_op_cs (void); + ~be_visitor_array_any_op_cs (); /// visit array virtual int visit_array (be_array *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_array/array.h b/TAO/TAO_IDL/be_include/be_visitor_array/array.h index 42fa8a82bc4..b44e9e6a4a2 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_array/array.h +++ b/TAO/TAO_IDL/be_include/be_visitor_array/array.h @@ -31,7 +31,7 @@ public: be_visitor_array (be_visitor_context *ctx); /// destructor - ~be_visitor_array (void); + ~be_visitor_array (); /// visit the array node virtual int visit_array (be_array *); diff --git a/TAO/TAO_IDL/be_include/be_visitor_array/array_ch.h b/TAO/TAO_IDL/be_include/be_visitor_array/array_ch.h index 88742879048..4f0d219a1e6 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_array/array_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_array/array_ch.h @@ -31,7 +31,7 @@ public: be_visitor_array_ch (be_visitor_context *ctx); /// destructor - virtual ~be_visitor_array_ch (void); + virtual ~be_visitor_array_ch (); /// visit the array node virtual int visit_array (be_array *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_array/array_ci.h b/TAO/TAO_IDL/be_include/be_visitor_array/array_ci.h index b4b1afeacc6..67ff101da07 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_array/array_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_array/array_ci.h @@ -31,7 +31,7 @@ public: be_visitor_array_ci (be_visitor_context *ctx); /// destructor - virtual ~be_visitor_array_ci (void); + virtual ~be_visitor_array_ci (); /// visit the array node virtual int visit_array (be_array *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_array/array_cs.h b/TAO/TAO_IDL/be_include/be_visitor_array/array_cs.h index 81be7e8326b..43f734b8916 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_array/array_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_array/array_cs.h @@ -31,7 +31,7 @@ public: be_visitor_array_cs (be_visitor_context *ctx); /// destructor - virtual ~be_visitor_array_cs (void); + virtual ~be_visitor_array_cs (); /// visit the array node virtual int visit_array (be_array *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_array/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_array/cdr_op_ch.h index 78e3f4614e0..fbcfc930785 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_array/cdr_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_array/cdr_op_ch.h @@ -34,7 +34,7 @@ public: be_visitor_array_cdr_op_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_array_cdr_op_ch (void); + ~be_visitor_array_cdr_op_ch (); /// visit array virtual int visit_array (be_array *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_array/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_array/cdr_op_cs.h index 73ea075826d..e7d71720731 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_array/cdr_op_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_array/cdr_op_cs.h @@ -38,7 +38,7 @@ public: be_visitor_array_cdr_op_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_array_cdr_op_cs (void); + ~be_visitor_array_cdr_op_cs (); /// visit array virtual int visit_array (be_array *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_attr_assign.h b/TAO/TAO_IDL/be_include/be_visitor_attr_assign.h index 2366290a19b..a3d6a8c23e0 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_attr_assign.h +++ b/TAO/TAO_IDL/be_include/be_visitor_attr_assign.h @@ -28,7 +28,7 @@ class be_visitor_attr_assign : public be_visitor_decl { public: be_visitor_attr_assign (be_visitor_context *ctx); - virtual ~be_visitor_attr_assign (void); + virtual ~be_visitor_attr_assign (); virtual int visit_array (be_array *); virtual int visit_component (be_component *); diff --git a/TAO/TAO_IDL/be_include/be_visitor_attr_init.h b/TAO/TAO_IDL/be_include/be_visitor_attr_init.h index 19400767577..25b6bbdfdfb 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_attr_init.h +++ b/TAO/TAO_IDL/be_include/be_visitor_attr_init.h @@ -30,7 +30,7 @@ class be_visitor_attr_init : public be_visitor_decl { public: be_visitor_attr_init (be_visitor_context *ctx); - virtual ~be_visitor_attr_init (void); + virtual ~be_visitor_attr_init (); virtual int visit_array (be_array *); virtual int visit_component (be_component *); diff --git a/TAO/TAO_IDL/be_include/be_visitor_attr_return.h b/TAO/TAO_IDL/be_include/be_visitor_attr_return.h index 32bc38e5b80..b29dad5b384 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_attr_return.h +++ b/TAO/TAO_IDL/be_include/be_visitor_attr_return.h @@ -28,7 +28,7 @@ class be_visitor_attr_return : public be_visitor_decl { public: be_visitor_attr_return (be_visitor_context *ctx); - virtual ~be_visitor_attr_return (void); + virtual ~be_visitor_attr_return (); virtual int visit_array (be_array *); virtual int visit_component (be_component *); diff --git a/TAO/TAO_IDL/be_include/be_visitor_attr_setarg_type.h b/TAO/TAO_IDL/be_include/be_visitor_attr_setarg_type.h index 097d0f51695..e3acaf6a237 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_attr_setarg_type.h +++ b/TAO/TAO_IDL/be_include/be_visitor_attr_setarg_type.h @@ -28,7 +28,7 @@ class be_visitor_attr_setarg_type : public be_visitor_decl { public: be_visitor_attr_setarg_type (be_visitor_context *ctx); - virtual ~be_visitor_attr_setarg_type (void); + virtual ~be_visitor_attr_setarg_type (); virtual int visit_array (be_array *); virtual int visit_component (be_component *); diff --git a/TAO/TAO_IDL/be_include/be_visitor_attribute/attribute.h b/TAO/TAO_IDL/be_include/be_visitor_attribute/attribute.h index d4345eb8312..61269d1923e 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_attribute/attribute.h +++ b/TAO/TAO_IDL/be_include/be_visitor_attribute/attribute.h @@ -33,7 +33,7 @@ public: be_visitor_attribute (be_visitor_context *ctx); /// destructor - ~be_visitor_attribute (void); + ~be_visitor_attribute (); /// visit attribute. We provide code for this method in the derived class virtual int visit_attribute (be_attribute *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_attribute/ccm_init.h b/TAO/TAO_IDL/be_include/be_visitor_attribute/ccm_init.h index cdc80407df6..faf5717dc9f 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_attribute/ccm_init.h +++ b/TAO/TAO_IDL/be_include/be_visitor_attribute/ccm_init.h @@ -21,7 +21,7 @@ class be_visitor_attribute_ccm_init { public: be_visitor_attribute_ccm_init (be_visitor_context *ctx); - ~be_visitor_attribute_ccm_init (void); + ~be_visitor_attribute_ccm_init (); virtual int visit_attribute (be_attribute *node); @@ -41,10 +41,10 @@ public: virtual int visit_valuetype (be_valuetype *node); private: - void emit_init_block (void); + void emit_init_block (); void emit_error (const char *); - void open_if_block (void); - void close_if_block (void); + void open_if_block (); + void close_if_block (); private: be_attribute *attr_; diff --git a/TAO/TAO_IDL/be_include/be_visitor_attribute/set_from_extracted.h b/TAO/TAO_IDL/be_include/be_visitor_attribute/set_from_extracted.h index 3f8c1451e37..dbf36935d64 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_attribute/set_from_extracted.h +++ b/TAO/TAO_IDL/be_include/be_visitor_attribute/set_from_extracted.h @@ -23,7 +23,7 @@ class be_visitor_attribute_set_from_extracted { public: be_visitor_attribute_set_from_extracted (be_visitor_context *ctx); - virtual ~be_visitor_attribute_set_from_extracted (void); + virtual ~be_visitor_attribute_set_from_extracted (); virtual int visit_array (be_array *); virtual int visit_component (be_component *); diff --git a/TAO/TAO_IDL/be_include/be_visitor_ccm_pre_proc.h b/TAO/TAO_IDL/be_include/be_visitor_ccm_pre_proc.h index e90a16bae17..16574898820 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_ccm_pre_proc.h +++ b/TAO/TAO_IDL/be_include/be_visitor_ccm_pre_proc.h @@ -36,7 +36,7 @@ class be_visitor_ccm_pre_proc : public be_visitor_component_scope public: be_visitor_ccm_pre_proc (be_visitor_context *ctx); - virtual ~be_visitor_ccm_pre_proc (void); + virtual ~be_visitor_ccm_pre_proc (); virtual int visit_root (be_root *node); virtual int visit_module (be_module *node); @@ -83,8 +83,8 @@ protected: // Utility functions to create and destroy the various things // needed by operations generated from CCM-related declarations. - int lookup_cookie (void); - int lookup_exceptions (void); + int lookup_cookie (); + int lookup_exceptions (); int lookup_one_exception (const char *name, be_exception *&result); @@ -130,7 +130,7 @@ protected: private: /// Generate a sendc_* receptacle for AMI4CCM. - int generate_ami4ccm_uses (void); + int generate_ami4ccm_uses (); }; #endif // TAO_BE_VISITOR_CCM_PRE_PROC_H diff --git a/TAO/TAO_IDL/be_include/be_visitor_component/component.h b/TAO/TAO_IDL/be_include/be_visitor_component/component.h index fc6a2ae7d11..5e3975cb5ac 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component/component.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component/component.h @@ -28,7 +28,7 @@ class be_visitor_component : public be_visitor_interface public: be_visitor_component (be_visitor_context *ctx); - ~be_visitor_component (void); + ~be_visitor_component (); /// This is the only type of declaration a component may contain. virtual int visit_attribute (be_attribute *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_component/component_ami_rh_ex_base.h b/TAO/TAO_IDL/be_include/be_visitor_component/component_ami_rh_ex_base.h index 78fb8a14329..829b63ccccb 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component/component_ami_rh_ex_base.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component/component_ami_rh_ex_base.h @@ -27,16 +27,16 @@ class be_visitor_component_ami_rh_ex_base // public: be_visitor_component_ami_rh_ex_base (be_visitor_context *ctx); - ~be_visitor_component_ami_rh_ex_base (void); + ~be_visitor_component_ami_rh_ex_base (); virtual int post_process (be_decl *node); protected: - void init (void); + void init (); void gen_excep_op (const char *prefix, be_decl *node, bool for_defn); - virtual void gen_op_body (void); + virtual void gen_op_body (); int gen_attr_op (be_attribute *node, bool for_defn); protected: diff --git a/TAO/TAO_IDL/be_include/be_visitor_component/component_ami_rh_exh.h b/TAO/TAO_IDL/be_include/be_visitor_component/component_ami_rh_exh.h index 37efdb86745..2ac3bf00095 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component/component_ami_rh_exh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component/component_ami_rh_exh.h @@ -31,7 +31,7 @@ class be_visitor_component_ami_rh_exh { public: be_visitor_component_ami_rh_exh (be_visitor_context *ctx); - ~be_visitor_component_ami_rh_exh (void); + ~be_visitor_component_ami_rh_exh (); virtual int visit_uses (be_uses *node); virtual int visit_attribute (be_attribute *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_component/component_ami_rh_exs.h b/TAO/TAO_IDL/be_include/be_visitor_component/component_ami_rh_exs.h index 739153e57e0..73abcca2ec0 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component/component_ami_rh_exs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component/component_ami_rh_exs.h @@ -26,7 +26,7 @@ class be_visitor_component_ami_rh_exs { public: be_visitor_component_ami_rh_exs (be_visitor_context *ctx); - ~be_visitor_component_ami_rh_exs (void); + ~be_visitor_component_ami_rh_exs (); virtual int visit_uses (be_uses *node); virtual int visit_operation (be_operation *node); @@ -34,7 +34,7 @@ public: virtual int visit_argument (be_argument *node); private: - virtual void gen_op_body (void); + virtual void gen_op_body (); private: const char *your_code_here_; diff --git a/TAO/TAO_IDL/be_include/be_visitor_component/component_ex_idl.h b/TAO/TAO_IDL/be_include/be_visitor_component/component_ex_idl.h index 5dd4a88f38a..77b70d453b1 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component/component_ex_idl.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component/component_ex_idl.h @@ -26,7 +26,7 @@ class be_visitor_component_ex_idl : public be_visitor_decl public: be_visitor_component_ex_idl (be_visitor_context *ctx); - ~be_visitor_component_ex_idl (void); + ~be_visitor_component_ex_idl (); virtual int visit_component (be_component *node); virtual int visit_connector (be_connector *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_component/component_exh.h b/TAO/TAO_IDL/be_include/be_visitor_component/component_exh.h index 2021bc1e6ff..61c3b1f1485 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component/component_exh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component/component_exh.h @@ -24,7 +24,7 @@ class be_visitor_component_exh public: be_visitor_component_exh (be_visitor_context *ctx); - ~be_visitor_component_exh (void); + ~be_visitor_component_exh (); virtual int visit_component (be_component *node); }; diff --git a/TAO/TAO_IDL/be_include/be_visitor_component/component_exs.h b/TAO/TAO_IDL/be_include/be_visitor_component/component_exs.h index fe7c1a0fb13..41a29abe673 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component/component_exs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component/component_exs.h @@ -24,7 +24,7 @@ class be_visitor_component_exs public: be_visitor_component_exs (be_visitor_context *ctx); - ~be_visitor_component_exs (void); + ~be_visitor_component_exs (); virtual int visit_component (be_component *node); }; diff --git a/TAO/TAO_IDL/be_include/be_visitor_component/component_svh.h b/TAO/TAO_IDL/be_include/be_visitor_component/component_svh.h index 45afd4bc706..f81b2d6028c 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component/component_svh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component/component_svh.h @@ -25,7 +25,7 @@ class be_visitor_component_svh : public be_visitor_component public: be_visitor_component_svh (be_visitor_context *ctx); - ~be_visitor_component_svh (void); + ~be_visitor_component_svh (); virtual int visit_component (be_component *node); virtual int visit_connector (be_connector *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_component/component_svs.h b/TAO/TAO_IDL/be_include/be_visitor_component/component_svs.h index 0777596da3f..931064ae3f6 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component/component_svs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component/component_svs.h @@ -26,7 +26,7 @@ class be_visitor_component_svs : public be_visitor_component public: be_visitor_component_svs (be_visitor_context *ctx); - ~be_visitor_component_svs (void); + ~be_visitor_component_svs (); virtual int visit_component (be_component *node); virtual int visit_connector (be_connector *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_component/component_svth.h b/TAO/TAO_IDL/be_include/be_visitor_component/component_svth.h index c0ddc17c692..fb020ceb515 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component/component_svth.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component/component_svth.h @@ -25,7 +25,7 @@ class be_visitor_component_svth : public be_visitor_component public: be_visitor_component_svth (be_visitor_context *ctx); - ~be_visitor_component_svth (void); + ~be_visitor_component_svth (); virtual int visit_component (be_component *node); virtual int visit_connector (be_connector *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_component/component_svts.h b/TAO/TAO_IDL/be_include/be_visitor_component/component_svts.h index 0ece376fd87..778463cbb16 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component/component_svts.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component/component_svts.h @@ -26,7 +26,7 @@ class be_visitor_component_svts : public be_visitor_component public: be_visitor_component_svts (be_visitor_context *ctx); - ~be_visitor_component_svts (void); + ~be_visitor_component_svts (); virtual int visit_component (be_component *node); virtual int visit_connector (be_connector *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_component/context_ex_idl.h b/TAO/TAO_IDL/be_include/be_visitor_component/context_ex_idl.h index e4231f9943b..a534f6d12d9 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component/context_ex_idl.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component/context_ex_idl.h @@ -23,7 +23,7 @@ class be_visitor_context_ex_idl public: be_visitor_context_ex_idl (be_visitor_context *ctx); - ~be_visitor_context_ex_idl (void); + ~be_visitor_context_ex_idl (); virtual int visit_component (be_component *node); virtual int visit_connector (be_connector *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_component/context_svth.h b/TAO/TAO_IDL/be_include/be_visitor_component/context_svth.h index b3156428bb8..0b6f076c0e9 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component/context_svth.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component/context_svth.h @@ -27,7 +27,7 @@ class be_visitor_context_svth : public be_visitor_component_scope public: be_visitor_context_svth (be_visitor_context *ctx); - ~be_visitor_context_svth (void); + ~be_visitor_context_svth (); virtual int visit_component (be_component *node); virtual int visit_connector (be_connector *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_component/context_svts.h b/TAO/TAO_IDL/be_include/be_visitor_component/context_svts.h index 6feac150d01..853502b3bb2 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component/context_svts.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component/context_svts.h @@ -27,7 +27,7 @@ class be_visitor_context_svts : public be_visitor_component_scope public: be_visitor_context_svts (be_visitor_context *ctx); - ~be_visitor_context_svts (void); + ~be_visitor_context_svts (); virtual int visit_component (be_component *node); virtual int visit_connector (be_connector *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_component/executor_ex_idl.h b/TAO/TAO_IDL/be_include/be_visitor_component/executor_ex_idl.h index c10c1d73d01..e23af8df907 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component/executor_ex_idl.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component/executor_ex_idl.h @@ -22,7 +22,7 @@ class be_visitor_executor_ex_idl public: be_visitor_executor_ex_idl (be_visitor_context *ctx); - ~be_visitor_executor_ex_idl (void); + ~be_visitor_executor_ex_idl (); virtual int visit_component (be_component *node); virtual int visit_connector (be_connector *node); @@ -39,7 +39,7 @@ public: virtual int visit_consumes (be_consumes *node); private: - void gen_supported (void); + void gen_supported (); void gen_exception_list (UTL_ExceptList *exceptions, const char *prefix = "", bool closed = true); diff --git a/TAO/TAO_IDL/be_include/be_visitor_component/executor_exh.h b/TAO/TAO_IDL/be_include/be_visitor_component/executor_exh.h index 84ee7523a66..1cd0a6e29d6 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component/executor_exh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component/executor_exh.h @@ -23,7 +23,7 @@ class be_visitor_executor_exh public: be_visitor_executor_exh (be_visitor_context *ctx); - ~be_visitor_executor_exh (void); + ~be_visitor_executor_exh (); virtual int visit_attribute (be_attribute *node); virtual int visit_component (be_component *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_component/executor_exs.h b/TAO/TAO_IDL/be_include/be_visitor_component/executor_exs.h index a0298e2e982..114f5683ca8 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component/executor_exs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component/executor_exs.h @@ -23,7 +23,7 @@ class be_visitor_executor_exs public: be_visitor_executor_exs (be_visitor_context *ctx); - ~be_visitor_executor_exs (void); + ~be_visitor_executor_exs (); virtual int visit_operation (be_operation *node); virtual int visit_attribute (be_attribute *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_component/executor_exs_attr_init.h b/TAO/TAO_IDL/be_include/be_visitor_component/executor_exs_attr_init.h index 03bb5bd5045..4f0f18e75fe 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component/executor_exs_attr_init.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component/executor_exs_attr_init.h @@ -24,13 +24,13 @@ class be_visitor_executor_exs_attr_init { public: be_visitor_executor_exs_attr_init (be_visitor_context *ctx); - ~be_visitor_executor_exs_attr_init (void); + ~be_visitor_executor_exs_attr_init (); virtual int visit_attribute (be_attribute *node); virtual int pre_process (be_decl *); - bool attr_generated (void) const; + bool attr_generated () const; private: bool semicolon_generated_; diff --git a/TAO/TAO_IDL/be_include/be_visitor_component/executor_private_exh.h b/TAO/TAO_IDL/be_include/be_visitor_component/executor_private_exh.h index da954b17b92..0db0f40a4db 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component/executor_private_exh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component/executor_private_exh.h @@ -24,7 +24,7 @@ class be_visitor_executor_private_exh public: be_visitor_executor_private_exh (be_visitor_context *ctx); - ~be_visitor_executor_private_exh (void); + ~be_visitor_executor_private_exh (); virtual int visit_provides (be_provides *node); virtual int visit_attribute (be_attribute *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_component/facet_exh.h b/TAO/TAO_IDL/be_include/be_visitor_component/facet_exh.h index 8a436a2f141..35ff340d2ea 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component/facet_exh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component/facet_exh.h @@ -22,7 +22,7 @@ class be_visitor_facet_exh public: be_visitor_facet_exh (be_visitor_context *ctx); - ~be_visitor_facet_exh (void); + ~be_visitor_facet_exh (); virtual int visit_provides (be_provides *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_component/facet_exs.h b/TAO/TAO_IDL/be_include/be_visitor_component/facet_exs.h index 54c1a9aaf2f..19afab63fd4 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component/facet_exs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component/facet_exs.h @@ -23,7 +23,7 @@ class be_visitor_facet_exs public: be_visitor_facet_exs (be_visitor_context *ctx); - ~be_visitor_facet_exs (void); + ~be_visitor_facet_exs (); virtual int visit_operation (be_operation *node); virtual int visit_attribute (be_attribute *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_component/servant_svh.h b/TAO/TAO_IDL/be_include/be_visitor_component/servant_svh.h index f30c73b57ef..b9f017e416f 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component/servant_svh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component/servant_svh.h @@ -27,7 +27,7 @@ class be_visitor_servant_svh : public be_visitor_component_scope public: be_visitor_servant_svh (be_visitor_context *ctx); - ~be_visitor_servant_svh (void); + ~be_visitor_servant_svh (); virtual int visit_component (be_component *node); virtual int visit_connector (be_connector *node); @@ -40,7 +40,7 @@ public: private: /// Base class overrides and CIAO-specific code. - void gen_non_type_specific (void); + void gen_non_type_specific (); }; #endif /* _BE_COMPONENT_SERVANT_SVH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_component/servant_svs.h b/TAO/TAO_IDL/be_include/be_visitor_component/servant_svs.h index 659ef708fb6..f9cac557f89 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component/servant_svs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component/servant_svs.h @@ -24,7 +24,7 @@ class be_visitor_servant_svs public: be_visitor_servant_svs (be_visitor_context *ctx); - ~be_visitor_servant_svs (void); + ~be_visitor_servant_svs (); virtual int visit_component (be_component *node); virtual int visit_connector (be_connector *node); @@ -37,15 +37,15 @@ public: virtual int visit_consumes (be_consumes *node); private: - void gen_provides_top (void); - void gen_uses_top (void); - void gen_publishes_top (void); - void gen_emits_top (void); + void gen_provides_top (); + void gen_uses_top (); + void gen_publishes_top (); + void gen_emits_top (); /// This method gets generated (unless we are /// generating the LwCCM profile) whether the /// comonent has any emitters or not. - void gen_get_all_emitters (void); + void gen_get_all_emitters (); private: be_interface *op_scope_; @@ -59,7 +59,7 @@ class be_visitor_obv_factory_reg public: be_visitor_obv_factory_reg (be_visitor_context *ctx); - ~be_visitor_obv_factory_reg (void); + ~be_visitor_obv_factory_reg (); virtual int visit_publishes (be_publishes *node); virtual int visit_emits (be_emits *node); @@ -76,7 +76,7 @@ class be_visitor_attr_set : public be_visitor_component_scope public: be_visitor_attr_set (be_visitor_context *ctx); - ~be_visitor_attr_set (void); + ~be_visitor_attr_set (); virtual int visit_attribute (be_attribute *node); @@ -94,7 +94,7 @@ class be_visitor_facet_executor_block public: be_visitor_facet_executor_block (be_visitor_context *ctx); - ~be_visitor_facet_executor_block (void); + ~be_visitor_facet_executor_block (); virtual int visit_provides (be_provides *node); }; @@ -107,7 +107,7 @@ class be_visitor_connect_block public: be_visitor_connect_block (be_visitor_context *ctx); - ~be_visitor_connect_block (void); + ~be_visitor_connect_block (); virtual int visit_uses (be_uses *node); }; @@ -120,7 +120,7 @@ class be_visitor_disconnect_block public: be_visitor_disconnect_block (be_visitor_context *ctx); - ~be_visitor_disconnect_block (void); + ~be_visitor_disconnect_block (); virtual int visit_uses (be_uses *node); }; @@ -134,7 +134,7 @@ public: be_visitor_receptacle_desc (be_visitor_context *ctx, be_component *node); - ~be_visitor_receptacle_desc (void); + ~be_visitor_receptacle_desc (); virtual int visit_uses (be_uses *node); @@ -151,7 +151,7 @@ class be_visitor_subscribe_block public: be_visitor_subscribe_block (be_visitor_context *ctx); - ~be_visitor_subscribe_block (void); + ~be_visitor_subscribe_block (); virtual int visit_publishes (be_publishes *node); }; @@ -164,7 +164,7 @@ class be_visitor_unsubscribe_block public: be_visitor_unsubscribe_block (be_visitor_context *ctx); - ~be_visitor_unsubscribe_block (void); + ~be_visitor_unsubscribe_block (); virtual int visit_publishes (be_publishes *node); }; @@ -177,7 +177,7 @@ class be_visitor_event_source_desc public: be_visitor_event_source_desc (be_visitor_context *ctx); - ~be_visitor_event_source_desc (void); + ~be_visitor_event_source_desc (); virtual int visit_publishes (be_publishes *node); @@ -193,7 +193,7 @@ class be_visitor_connect_consumer_block public: be_visitor_connect_consumer_block (be_visitor_context *ctx); - ~be_visitor_connect_consumer_block (void); + ~be_visitor_connect_consumer_block (); virtual int visit_emits (be_emits *node); }; @@ -206,7 +206,7 @@ class be_visitor_disconnect_consumer_block public: be_visitor_disconnect_consumer_block (be_visitor_context *ctx); - ~be_visitor_disconnect_consumer_block (void); + ~be_visitor_disconnect_consumer_block (); virtual int visit_emits (be_emits *node); }; @@ -219,7 +219,7 @@ class be_visitor_emitter_desc public: be_visitor_emitter_desc (be_visitor_context *ctx); - ~be_visitor_emitter_desc (void); + ~be_visitor_emitter_desc (); virtual int visit_emits (be_emits *node); @@ -235,7 +235,7 @@ class be_visitor_populate_port_tables public: be_visitor_populate_port_tables (be_visitor_context *ctx); - ~be_visitor_populate_port_tables (void); + ~be_visitor_populate_port_tables (); virtual int visit_provides (be_provides *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_component_fwd/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_component_fwd/any_op_ch.h index afc73f9840b..7aa27cfb24a 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component_fwd/any_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component_fwd/any_op_ch.h @@ -30,7 +30,7 @@ public: be_visitor_component_fwd_any_op_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_component_fwd_any_op_ch (void); + ~be_visitor_component_fwd_any_op_ch (); /// visit component_fwd virtual int visit_component_fwd (be_component_fwd *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_component_fwd/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_component_fwd/cdr_op_ch.h index 85d1bb87ed8..69b53aaefe0 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component_fwd/cdr_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component_fwd/cdr_op_ch.h @@ -32,7 +32,7 @@ public: be_visitor_component_fwd_cdr_op_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_component_fwd_cdr_op_ch (void); + ~be_visitor_component_fwd_cdr_op_ch (); /// visit forward declared component. virtual int visit_component_fwd (be_component_fwd *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_component_fwd/component_fwd_ch.h b/TAO/TAO_IDL/be_include/be_visitor_component_fwd/component_fwd_ch.h index f5c9d15989c..1d7ef30f688 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component_fwd/component_fwd_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component_fwd/component_fwd_ch.h @@ -28,7 +28,7 @@ public: be_visitor_component_fwd_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_component_fwd_ch (void); + ~be_visitor_component_fwd_ch (); /// visit interface_fwd. virtual int visit_component_fwd (be_component_fwd *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_component_scope.h b/TAO/TAO_IDL/be_include/be_visitor_component_scope.h index 476efb13582..a41c1e25a8f 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_component_scope.h +++ b/TAO/TAO_IDL/be_include/be_visitor_component_scope.h @@ -30,7 +30,7 @@ class be_visitor_component_scope : public be_visitor_scope protected: be_visitor_component_scope (be_visitor_context *ctx); - virtual ~be_visitor_component_scope (void); + virtual ~be_visitor_component_scope (); public: virtual int visit_extended_port (be_extended_port *node); @@ -52,10 +52,10 @@ public: void node (be_component *c); protected: - void gen_svnt_entrypoint_decl (void); - void gen_svnt_entrypoint_defn (void); - void gen_exec_entrypoint_decl (void); - void gen_exec_entrypoint_defn (void); + void gen_svnt_entrypoint_decl (); + void gen_svnt_entrypoint_defn (); + void gen_exec_entrypoint_decl (); + void gen_exec_entrypoint_defn (); protected: be_component *node_; diff --git a/TAO/TAO_IDL/be_include/be_visitor_connector/connector_ami_exh.h b/TAO/TAO_IDL/be_include/be_visitor_connector/connector_ami_exh.h index 7602b12b8d1..1e2ed19a3b2 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_connector/connector_ami_exh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_connector/connector_ami_exh.h @@ -31,12 +31,12 @@ class be_visitor_connector_ami_exh public: be_visitor_connector_ami_exh (be_visitor_context *ctx); - ~be_visitor_connector_ami_exh (void); + ~be_visitor_connector_ami_exh (); virtual int visit_connector (be_connector *node); private: - void gen_entrypoint (void); + void gen_entrypoint (); }; #endif /* _BE_CONNECTOR_CONNECTOR_AMI_EXH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_connector/connector_ami_exs.h b/TAO/TAO_IDL/be_include/be_visitor_connector/connector_ami_exs.h index f7da2c466ae..c83d58cdca7 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_connector/connector_ami_exs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_connector/connector_ami_exs.h @@ -32,12 +32,12 @@ class be_visitor_connector_ami_exs public: be_visitor_connector_ami_exs (be_visitor_context *ctx); - ~be_visitor_connector_ami_exs (void); + ~be_visitor_connector_ami_exs (); virtual int visit_connector (be_connector *node); private: - void gen_entrypoint (void); + void gen_entrypoint (); }; #endif /* _BE_CONNECTOR_CONNECTOR_AMI_EXS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_connector/connector_dds_ex_base.h b/TAO/TAO_IDL/be_include/be_visitor_connector/connector_dds_ex_base.h index a59c934d354..f26f839bbb8 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_connector/connector_dds_ex_base.h +++ b/TAO/TAO_IDL/be_include/be_visitor_connector/connector_dds_ex_base.h @@ -31,7 +31,7 @@ class be_visitor_connector_dds_ex_base public: be_visitor_connector_dds_ex_base (be_visitor_context *ctx); - ~be_visitor_connector_dds_ex_base (void); + ~be_visitor_connector_dds_ex_base (); protected: bool begin (be_connector *node); @@ -53,7 +53,7 @@ protected: private: void process_template_args (AST_Connector *node); - void match_template_args (void); + void match_template_args (); }; #endif /* _BE_CONNECTOR_CONNECTOR_DDS_EX_BASE_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_connector/connector_dds_exh.h b/TAO/TAO_IDL/be_include/be_visitor_connector/connector_dds_exh.h index 292a965fb15..b1ea70cbc72 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_connector/connector_dds_exh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_connector/connector_dds_exh.h @@ -31,7 +31,7 @@ class be_visitor_connector_dds_exh public: be_visitor_connector_dds_exh (be_visitor_context *ctx); - ~be_visitor_connector_dds_exh (void); + ~be_visitor_connector_dds_exh (); virtual int visit_connector (be_connector *node); @@ -47,7 +47,7 @@ private: /// Generate application-specific instantiations of /// middleware templates containing traits constructs. void gen_dds_traits (AST_Decl *datatype); - void gen_connector_traits (void); + void gen_connector_traits (); /// Common code triggered by provides and uses ports. void gen_interface_connector_trait (be_interface *iface, diff --git a/TAO/TAO_IDL/be_include/be_visitor_connector/connector_dds_exs.h b/TAO/TAO_IDL/be_include/be_visitor_connector/connector_dds_exs.h index 6b96a075509..78d220fa63d 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_connector/connector_dds_exs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_connector/connector_dds_exs.h @@ -29,7 +29,7 @@ class be_visitor_connector_dds_exs public: be_visitor_connector_dds_exs (be_visitor_context *ctx); - ~be_visitor_connector_dds_exs (void); + ~be_visitor_connector_dds_exs (); virtual int visit_connector (be_connector *node); }; diff --git a/TAO/TAO_IDL/be_include/be_visitor_connector/executor_ami_exh.h b/TAO/TAO_IDL/be_include/be_visitor_connector/executor_ami_exh.h index 7790f43bd33..fa00e192e4b 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_connector/executor_ami_exh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_connector/executor_ami_exh.h @@ -29,7 +29,7 @@ class be_visitor_executor_ami_exh public: be_visitor_executor_ami_exh (be_visitor_context *ctx); - ~be_visitor_executor_ami_exh (void); + ~be_visitor_executor_ami_exh (); virtual int visit_connector (be_connector *node); virtual int visit_provides (be_provides *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_connector/executor_ami_exs.h b/TAO/TAO_IDL/be_include/be_visitor_connector/executor_ami_exs.h index 481e06f9eda..f831e4d8169 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_connector/executor_ami_exs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_connector/executor_ami_exs.h @@ -29,7 +29,7 @@ class be_visitor_executor_ami_exs public: be_visitor_executor_ami_exs (be_visitor_context *ctx); - ~be_visitor_executor_ami_exs (void); + ~be_visitor_executor_ami_exs (); virtual int visit_connector (be_connector *node); virtual int visit_provides (be_provides *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_connector/facet_ami_exh.h b/TAO/TAO_IDL/be_include/be_visitor_connector/facet_ami_exh.h index 94b8e8a0dd0..67445f55335 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_connector/facet_ami_exh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_connector/facet_ami_exh.h @@ -28,7 +28,7 @@ class be_visitor_facet_ami_exh public: be_visitor_facet_ami_exh (be_visitor_context *ctx); - ~be_visitor_facet_ami_exh (void); + ~be_visitor_facet_ami_exh (); virtual int visit_component (be_component *node); virtual int visit_provides (be_provides *node); @@ -49,8 +49,8 @@ protected: bool sync_; private: - int gen_reply_handler_class (void); - int gen_facet_executor_class (void); + int gen_reply_handler_class (); + int gen_facet_executor_class (); }; //============================================================== diff --git a/TAO/TAO_IDL/be_include/be_visitor_connector/facet_ami_exs.h b/TAO/TAO_IDL/be_include/be_visitor_connector/facet_ami_exs.h index cf98aa0efcd..d102e3ed6ab 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_connector/facet_ami_exs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_connector/facet_ami_exs.h @@ -28,7 +28,7 @@ class be_visitor_facet_ami_exs public: be_visitor_facet_ami_exs (be_visitor_context *ctx); - ~be_visitor_facet_ami_exs (void); + ~be_visitor_facet_ami_exs (); virtual int visit_component (be_component *node); virtual int visit_provides (be_provides *node); @@ -39,9 +39,9 @@ public: virtual int post_process (be_decl *node); private: - void init (void); - int gen_reply_handler_class (void); - int gen_facet_executor_class (void); + void init (); + int gen_reply_handler_class (); + int gen_facet_executor_class (); int gen_reply_hander_op (be_operation *node); int gen_facet_executor_op (be_operation *node); int gen_facet_executor_sync_op (be_operation *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_constant/constant_ch.h b/TAO/TAO_IDL/be_include/be_visitor_constant/constant_ch.h index f5575874d3a..49dab12db86 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_constant/constant_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_constant/constant_ch.h @@ -28,7 +28,7 @@ public: be_visitor_constant_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_constant_ch (void); + ~be_visitor_constant_ch (); /// visit constant. virtual int visit_constant (be_constant *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_constant/constant_cs.h b/TAO/TAO_IDL/be_include/be_visitor_constant/constant_cs.h index 342286a8510..4979beab82e 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_constant/constant_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_constant/constant_cs.h @@ -28,7 +28,7 @@ public: be_visitor_constant_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_constant_cs (void); + ~be_visitor_constant_cs (); /// visit constant virtual int visit_constant (be_constant *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_context.h b/TAO/TAO_IDL/be_include/be_visitor_context.h index 0951b14fbda..4fe7d901355 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_context.h +++ b/TAO/TAO_IDL/be_include/be_visitor_context.h @@ -40,13 +40,13 @@ class be_visitor_context : public ast_visitor_context { public: /// default constructor - be_visitor_context (void); + be_visitor_context (); /// default constructor be_visitor_context (const be_visitor_context &ctx); /// destructor - ~be_visitor_context (void); + ~be_visitor_context (); /// assignment operator be_visitor_context &operator= (const be_visitor_context &ctx); @@ -54,67 +54,67 @@ public: // =helpers /// reset the context - void reset (void); + void reset (); /// set the output stream void stream (TAO_OutStream *os); /// get the stream - TAO_OutStream *stream (void); + TAO_OutStream *stream (); /// set the scope void scope (be_scope *scope); /// get the scope in which code will be generated - be_scope *scope (void); + be_scope *scope (); /// current node being visited void node (be_decl *node); /// node being visited - be_decl *node (void); + be_decl *node (); /// code generation state void state (TAO_CodeGen::CG_STATE); /// return the code generation state - TAO_CodeGen::CG_STATE state (void); + TAO_CodeGen::CG_STATE state (); /// code generation state void sub_state (TAO_CodeGen::CG_SUB_STATE); /// return the code generation state - TAO_CodeGen::CG_SUB_STATE sub_state (void); + TAO_CodeGen::CG_SUB_STATE sub_state (); /// set the alias node (if any) void alias (be_typedef *node); /// return the aliased node (if any) - be_typedef *alias (void); + be_typedef *alias (); /// set the typedef node (if any) void tdef (be_typedef *node); /// return the typedef node (if any) - be_typedef *tdef (void); + be_typedef *tdef (); /// set the attribute node if any void attribute (be_attribute *attr); /// get the attribute node - be_attribute *attribute (void); + be_attribute *attribute (); /// is it the special ctor for exceptions? void exception (bool); /// is it the special ctor for exceptions? - bool exception (void); + bool exception (); /// scope supoorts generation of comma after each element void comma (bool); /// are we supposed to generate a comma? - bool comma (void); + bool comma (); /** * In some cases we need to generate the objects of one interface as @@ -123,17 +123,17 @@ public: * *generating* code, as opposed to the interfaces where the methods * or structures are defined. */ - be_interface *interface (void) const; + be_interface *interface () const; void interface (be_interface *); /// Accessor for the member. - ACE_CString &port_prefix (void); + ACE_CString &port_prefix (); /// return the export macro currently in force - const char *export_macro (void) const; + const char *export_macro () const; /// if anyop export macro is empty, check stub. - const char *non_null_export_macro (void) const; + const char *non_null_export_macro () const; private: /// code generation state diff --git a/TAO/TAO_IDL/be_include/be_visitor_dds_ts_idl.h b/TAO/TAO_IDL/be_include/be_visitor_dds_ts_idl.h index ca41373b041..03184b0fb39 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_dds_ts_idl.h +++ b/TAO/TAO_IDL/be_include/be_visitor_dds_ts_idl.h @@ -29,7 +29,7 @@ class be_visitor_dds_ts_idl : public be_visitor_scope public: be_visitor_dds_ts_idl (be_visitor_context *ctx); - ~be_visitor_dds_ts_idl (void); + ~be_visitor_dds_ts_idl (); virtual int visit_root (be_root *node); virtual int visit_module (be_module *node); @@ -46,8 +46,8 @@ private: void gen_datareader (be_type *node); /// Manage streams and files. - int init_file (void); - void fini_file (void); + int init_file (); + void fini_file (); private: TAO_OutStream *os_ptr_; diff --git a/TAO/TAO_IDL/be_include/be_visitor_decl.h b/TAO/TAO_IDL/be_include/be_visitor_decl.h index 266e0376fae..cde8ecb37ef 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_decl.h +++ b/TAO/TAO_IDL/be_include/be_visitor_decl.h @@ -29,9 +29,9 @@ class be_visitor_decl : public be_visitor public: be_visitor_decl (be_visitor_context *ctx); - ~be_visitor_decl (void); + ~be_visitor_decl (); - be_visitor_context *ctx (void); + be_visitor_context *ctx (); protected: /// Any context information required by the visitor. diff --git a/TAO/TAO_IDL/be_include/be_visitor_enum/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_enum/any_op_ch.h index 610382298d1..a5d46ffa8a7 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_enum/any_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_enum/any_op_ch.h @@ -30,7 +30,7 @@ public: be_visitor_enum_any_op_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_enum_any_op_ch (void); + ~be_visitor_enum_any_op_ch (); /// visit enum virtual int visit_enum (be_enum *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_enum/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_enum/any_op_cs.h index 7f813cbfb5b..4fd3d8f6e4b 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_enum/any_op_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_enum/any_op_cs.h @@ -30,7 +30,7 @@ public: be_visitor_enum_any_op_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_enum_any_op_cs (void); + ~be_visitor_enum_any_op_cs (); /// visit enum virtual int visit_enum (be_enum *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_ch.h index bc2240a1b91..07e4f1b9609 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_ch.h @@ -30,7 +30,7 @@ public: be_visitor_enum_cdr_op_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_enum_cdr_op_ch (void); + ~be_visitor_enum_cdr_op_ch (); /// visit enum virtual int visit_enum (be_enum *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_cs.h index adcba1de635..c7a39686789 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_cs.h @@ -30,7 +30,7 @@ public: be_visitor_enum_cdr_op_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_enum_cdr_op_cs (void); + ~be_visitor_enum_cdr_op_cs (); /// visit enum virtual int visit_enum (be_enum *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_enum/enum_ch.h b/TAO/TAO_IDL/be_include/be_visitor_enum/enum_ch.h index e353754e3d1..c1514b5f712 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_enum/enum_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_enum/enum_ch.h @@ -28,7 +28,7 @@ public: be_visitor_enum_ch (be_visitor_context *ctx); /// deenumor - ~be_visitor_enum_ch (void); + ~be_visitor_enum_ch (); /// visit enum. virtual int visit_enum (be_enum *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_enum/enum_cs.h b/TAO/TAO_IDL/be_include/be_visitor_enum/enum_cs.h index d77ed23332b..dcb06a90627 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_enum/enum_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_enum/enum_cs.h @@ -28,7 +28,7 @@ public: be_visitor_enum_cs (be_visitor_context *ctx); /// deenumor - ~be_visitor_enum_cs (void); + ~be_visitor_enum_cs (); /// visit enum and generate the typecode virtual int visit_enum (be_enum *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_exception/any_op_ch.h index 262455138f7..e49da61f6f9 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/any_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_exception/any_op_ch.h @@ -27,7 +27,7 @@ class be_visitor_exception_any_op_ch : public be_visitor_scope public: be_visitor_exception_any_op_ch (be_visitor_context *ctx); - ~be_visitor_exception_any_op_ch (void); + ~be_visitor_exception_any_op_ch (); virtual int visit_exception (be_exception *node); virtual int visit_field (be_field *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_exception/any_op_cs.h index d188a3115e5..4a252adef3d 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/any_op_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_exception/any_op_cs.h @@ -27,7 +27,7 @@ class be_visitor_exception_any_op_cs : public be_visitor_scope public: be_visitor_exception_any_op_cs (be_visitor_context *ctx); - ~be_visitor_exception_any_op_cs (void); + ~be_visitor_exception_any_op_cs (); virtual int visit_exception (be_exception *node); virtual int visit_field (be_field *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_ch.h index d8b357042af..462beb7214b 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_ch.h @@ -28,7 +28,7 @@ class be_visitor_exception_cdr_op_ch : public be_visitor_exception public: be_visitor_exception_cdr_op_ch (be_visitor_context *ctx); - ~be_visitor_exception_cdr_op_ch (void); + ~be_visitor_exception_cdr_op_ch (); virtual int visit_exception (be_exception *node); }; diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_cs.h index b579bf99e2d..ed86886f347 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_cs.h @@ -28,7 +28,7 @@ class be_visitor_exception_cdr_op_cs : public be_visitor_exception public: be_visitor_exception_cdr_op_cs (be_visitor_context *ctx); - ~be_visitor_exception_cdr_op_cs (void); + ~be_visitor_exception_cdr_op_cs (); virtual int visit_exception (be_exception *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/ctor.h b/TAO/TAO_IDL/be_include/be_visitor_exception/ctor.h index ea9600d63d0..e7f10cd0346 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/ctor.h +++ b/TAO/TAO_IDL/be_include/be_visitor_exception/ctor.h @@ -24,7 +24,7 @@ class be_visitor_exception_ctor : public be_visitor_scope { public: be_visitor_exception_ctor (be_visitor_context *ctx); - ~be_visitor_exception_ctor (void); + ~be_visitor_exception_ctor (); virtual int post_process (be_decl *); diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/ctor_assign.h b/TAO/TAO_IDL/be_include/be_visitor_exception/ctor_assign.h index 53c633473d6..17e7f4914a4 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/ctor_assign.h +++ b/TAO/TAO_IDL/be_include/be_visitor_exception/ctor_assign.h @@ -24,7 +24,7 @@ class be_visitor_exception_ctor_assign : public be_visitor_scope { public: be_visitor_exception_ctor_assign (be_visitor_context *ctx); - ~be_visitor_exception_ctor_assign (void); + ~be_visitor_exception_ctor_assign (); virtual int visit_exception (be_exception *node); virtual int visit_field (be_field *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/exception.h b/TAO/TAO_IDL/be_include/be_visitor_exception/exception.h index ee30eaa1aba..22c13ddfa7b 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/exception.h +++ b/TAO/TAO_IDL/be_include/be_visitor_exception/exception.h @@ -25,7 +25,7 @@ class be_visitor_exception : public be_visitor_scope { public: be_visitor_exception (be_visitor_context *ctx); - ~be_visitor_exception (void); + ~be_visitor_exception (); virtual int visit_exception (be_exception *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ch.h b/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ch.h index 5bda48fbaec..063bb0a90ee 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ch.h @@ -25,7 +25,7 @@ class be_visitor_exception_ch : public be_visitor_exception { public: be_visitor_exception_ch (be_visitor_context *ctx); - ~be_visitor_exception_ch (void); + ~be_visitor_exception_ch (); virtual int visit_exception (be_exception *node); }; diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ci.h b/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ci.h index b73dfa93fff..a07e9017cd3 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_exception/exception_ci.h @@ -25,7 +25,7 @@ class be_visitor_exception_ci : public be_visitor_exception { public: be_visitor_exception_ci (be_visitor_context *ctx); - ~be_visitor_exception_ci (void); + ~be_visitor_exception_ci (); virtual int visit_exception (be_exception *node); }; diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/exception_cs.h b/TAO/TAO_IDL/be_include/be_visitor_exception/exception_cs.h index 3bd79bb082f..97a5b221517 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_exception/exception_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_exception/exception_cs.h @@ -25,7 +25,7 @@ class be_visitor_exception_cs : public be_visitor_exception { public: be_visitor_exception_cs (be_visitor_context *ctx); - ~be_visitor_exception_cs (void); + ~be_visitor_exception_cs (); virtual int visit_exception (be_exception *node); }; diff --git a/TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_ch.h index edcfb760650..04fb0dc86fe 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_ch.h @@ -25,7 +25,7 @@ class be_visitor_field_cdr_op_ch : public be_visitor_decl { public: be_visitor_field_cdr_op_ch (be_visitor_context *ctx); - ~be_visitor_field_cdr_op_ch (void); + ~be_visitor_field_cdr_op_ch (); virtual int visit_field (be_field *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_cs.h index 37a6ffd93eb..ee844d8c9dd 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_cs.h @@ -24,7 +24,7 @@ class be_visitor_field_cdr_op_cs : public be_visitor_decl { public: be_visitor_field_cdr_op_cs (be_visitor_context *ctx); - ~be_visitor_field_cdr_op_cs (void); + ~be_visitor_field_cdr_op_cs (); /// visit the field node virtual int visit_field (be_field *node); @@ -52,7 +52,7 @@ public: virtual int visit_union_fwd (be_union_fwd *node); private: - int emit_valuetype_common (void); + int emit_valuetype_common (); }; /** diff --git a/TAO/TAO_IDL/be_include/be_visitor_field/field_ch.h b/TAO/TAO_IDL/be_include/be_visitor_field/field_ch.h index 3078353f8a9..2145b282203 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_field/field_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_field/field_ch.h @@ -24,7 +24,7 @@ class be_visitor_field_ch : public be_visitor_decl { public: be_visitor_field_ch (be_visitor_context *ctx); - ~be_visitor_field_ch (void); + ~be_visitor_field_ch (); virtual int visit_field (be_field *node); virtual int visit_array (be_array *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_field/field_ci.h b/TAO/TAO_IDL/be_include/be_visitor_field/field_ci.h index a32d5d3b165..dd22e9f1682 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_field/field_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_field/field_ci.h @@ -25,7 +25,7 @@ class be_visitor_field_ci : public be_visitor_decl { public: be_visitor_field_ci (be_visitor_context *ctx); - ~be_visitor_field_ci (void); + ~be_visitor_field_ci (); virtual int visit_field (be_field *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_field/field_cs.h b/TAO/TAO_IDL/be_include/be_visitor_field/field_cs.h index 4c3768040dd..533b0a28dcd 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_field/field_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_field/field_cs.h @@ -25,7 +25,7 @@ class be_visitor_field_cs : public be_visitor_decl { public: be_visitor_field_cs (be_visitor_context *ctx); - ~be_visitor_field_cs (void); + ~be_visitor_field_cs (); virtual int visit_field (be_field *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_home/home_ex_idl.h b/TAO/TAO_IDL/be_include/be_visitor_home/home_ex_idl.h index 67793591bf4..cf49e324489 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_home/home_ex_idl.h +++ b/TAO/TAO_IDL/be_include/be_visitor_home/home_ex_idl.h @@ -27,7 +27,7 @@ class be_visitor_home_ex_idl : public be_visitor_scope public: be_visitor_home_ex_idl (be_visitor_context *ctx); - ~be_visitor_home_ex_idl (void); + ~be_visitor_home_ex_idl (); virtual int visit_home (be_home *node); @@ -42,24 +42,24 @@ public: virtual int visit_string (be_string *node); private: - void gen_implicit (void); - void gen_explicit (void); - void gen_derived (void); + void gen_implicit (); + void gen_explicit (); + void gen_derived (); - void gen_supported (void); + void gen_supported (); void gen_exception_list (UTL_ExceptList *exceptions, const char *prefix = "", bool init_op = false); - void gen_home_executor (void); + void gen_home_executor (); /// The CCM preproc visitor changed the scoped name and the /// defined_in() for the home's members to the implied /// *Explicit interface, which isn't a problem unless /// they include exceptions raised by a contained operation. /// factory or finder. So we restore the members just in case. - void restore_scope (void); + void restore_scope (); private: be_home *node_; diff --git a/TAO/TAO_IDL/be_include/be_visitor_home/home_exh.h b/TAO/TAO_IDL/be_include/be_visitor_home/home_exh.h index e5d1f190b25..4ac2060e25f 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_home/home_exh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_home/home_exh.h @@ -27,7 +27,7 @@ class be_visitor_home_exh : public be_visitor_scope public: be_visitor_home_exh (be_visitor_context *ctx); - ~be_visitor_home_exh (void); + ~be_visitor_home_exh (); virtual int visit_home (be_home *node); virtual int visit_operation (be_operation *node); @@ -41,9 +41,9 @@ public: TAO_OutStream *); private: - int gen_exec_class (void); + int gen_exec_class (); - void gen_entrypoint (void); + void gen_entrypoint (); private: be_home *node_; diff --git a/TAO/TAO_IDL/be_include/be_visitor_home/home_exs.h b/TAO/TAO_IDL/be_include/be_visitor_home/home_exs.h index 5dd74ec96e7..a5bc812e282 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_home/home_exs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_home/home_exs.h @@ -27,7 +27,7 @@ class be_visitor_home_exs : public be_visitor_scope public: be_visitor_home_exs (be_visitor_context *ctx); - ~be_visitor_home_exs (void); + ~be_visitor_home_exs (); virtual int visit_home (be_home *node); virtual int visit_operation (be_operation *node); @@ -35,9 +35,9 @@ public: virtual int visit_factory (be_factory *node); private: - int gen_exec_class (void); + int gen_exec_class (); - void gen_entrypoint (void); + void gen_entrypoint (); private: be_home *node_; diff --git a/TAO/TAO_IDL/be_include/be_visitor_home/home_svh.h b/TAO/TAO_IDL/be_include/be_visitor_home/home_svh.h index 2bedc2de3bc..4feaa55bdc1 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_home/home_svh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_home/home_svh.h @@ -26,7 +26,7 @@ class be_visitor_home_svh : public be_visitor_scope public: be_visitor_home_svh (be_visitor_context *ctx); - ~be_visitor_home_svh (void); + ~be_visitor_home_svh (); virtual int visit_home (be_home *node); virtual int visit_operation (be_operation *node); @@ -35,9 +35,9 @@ public: virtual int visit_finder (be_finder *node); private: - int gen_servant_class (void); + int gen_servant_class (); - void gen_entrypoint (void); + void gen_entrypoint (); /// Helper method passed to traverse_inheritance_graph(), /// collects supported operations and attributes. diff --git a/TAO/TAO_IDL/be_include/be_visitor_home/home_svs.h b/TAO/TAO_IDL/be_include/be_visitor_home/home_svs.h index 8709485991d..8da752963f6 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_home/home_svs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_home/home_svs.h @@ -26,7 +26,7 @@ class be_visitor_home_svs : public be_visitor_scope public: be_visitor_home_svs (be_visitor_context *ctx); - ~be_visitor_home_svs (void); + ~be_visitor_home_svs (); virtual int visit_home (be_home *node); virtual int visit_operation (be_operation *node); @@ -36,9 +36,9 @@ public: virtual int visit_finder (be_finder *node); private: - int gen_servant_class (void); + int gen_servant_class (); - void gen_entrypoint (void); + void gen_entrypoint (); private: be_home *node_; @@ -69,7 +69,7 @@ class be_visitor_home_attr_set : public be_visitor_decl public: be_visitor_home_attr_set (be_visitor_context *ctx); - ~be_visitor_home_attr_set (void); + ~be_visitor_home_attr_set (); virtual int visit_home (be_home *node); virtual int visit_attribute (be_attribute *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/amh_ch.h b/TAO/TAO_IDL/be_include/be_visitor_interface/amh_ch.h index 3571db50638..6fbaa310ad3 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/amh_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/amh_ch.h @@ -30,7 +30,7 @@ public: be_visitor_amh_interface_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_amh_interface_ch (void); + ~be_visitor_amh_interface_ch (); /// set the right context and make a visitor virtual int visit_interface (be_interface *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/amh_rh_sh.h b/TAO/TAO_IDL/be_include/be_visitor_interface/amh_rh_sh.h index 49a7b0b011a..f0b65056463 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/amh_rh_sh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/amh_rh_sh.h @@ -15,11 +15,11 @@ class be_visitor_amh_rh_interface_sh : public be_visitor_interface_sh { public: - be_visitor_amh_rh_interface_sh (void); + be_visitor_amh_rh_interface_sh (); be_visitor_amh_rh_interface_sh (be_visitor_context *ctx); - ~be_visitor_amh_rh_interface_sh (void); + ~be_visitor_amh_rh_interface_sh (); virtual int visit_interface (be_interface *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/amh_rh_ss.h b/TAO/TAO_IDL/be_include/be_visitor_interface/amh_rh_ss.h index efb6bfe1e69..bdb2fe50e54 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/amh_rh_ss.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/amh_rh_ss.h @@ -22,7 +22,7 @@ public: int visit_operation (be_operation *node); - ~be_visitor_amh_rh_interface_ss (void); + ~be_visitor_amh_rh_interface_ss (); }; #endif /* AMH_RH_INTERFACE_SS_H */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/amh_sh.h b/TAO/TAO_IDL/be_include/be_visitor_interface/amh_sh.h index 733c8f1de0d..9af9fd2202c 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/amh_sh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/amh_sh.h @@ -15,7 +15,7 @@ class be_visitor_amh_interface_sh : public be_visitor_interface_sh { public: be_visitor_amh_interface_sh (be_visitor_context *ctx); - ~be_visitor_amh_interface_sh (void); + ~be_visitor_amh_interface_sh (); int visit_interface (be_interface *node); int visit_operation (be_operation *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/amh_ss.h b/TAO/TAO_IDL/be_include/be_visitor_interface/amh_ss.h index 238db0bb5b6..c0b9beac332 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/amh_ss.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/amh_ss.h @@ -23,7 +23,7 @@ public: int visit_operation (be_operation *node); int visit_attribute (be_attribute *node); - ~be_visitor_amh_interface_ss (void); + ~be_visitor_amh_interface_ss (); protected: virtual void this_method (be_interface *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/ami4ccm_conn_ex_idl.h b/TAO/TAO_IDL/be_include/be_visitor_interface/ami4ccm_conn_ex_idl.h index db2bb9bde6e..a7a2d9fe2c5 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/ami4ccm_conn_ex_idl.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/ami4ccm_conn_ex_idl.h @@ -26,7 +26,7 @@ class be_visitor_ami4ccm_conn_ex_idl : public be_visitor_scope public: be_visitor_ami4ccm_conn_ex_idl (be_visitor_context *ctx); - ~be_visitor_ami4ccm_conn_ex_idl (void); + ~be_visitor_ami4ccm_conn_ex_idl (); virtual int visit_interface (be_interface *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/ami4ccm_rh_ex_idl.h b/TAO/TAO_IDL/be_include/be_visitor_interface/ami4ccm_rh_ex_idl.h index c3a7693c802..636e9e73e88 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/ami4ccm_rh_ex_idl.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/ami4ccm_rh_ex_idl.h @@ -26,7 +26,7 @@ class be_visitor_ami4ccm_rh_ex_idl : public be_visitor_scope public: be_visitor_ami4ccm_rh_ex_idl (be_visitor_context *ctx); - ~be_visitor_ami4ccm_rh_ex_idl (void); + ~be_visitor_ami4ccm_rh_ex_idl (); virtual int visit_interface (be_interface *node); virtual int visit_operation (be_operation *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/ami4ccm_sendc_ex_idl.h b/TAO/TAO_IDL/be_include/be_visitor_interface/ami4ccm_sendc_ex_idl.h index ccc9102d7a2..b26192722ba 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/ami4ccm_sendc_ex_idl.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/ami4ccm_sendc_ex_idl.h @@ -26,7 +26,7 @@ class be_visitor_ami4ccm_sendc_ex_idl : public be_visitor_scope public: be_visitor_ami4ccm_sendc_ex_idl (be_visitor_context *ctx); - ~be_visitor_ami4ccm_sendc_ex_idl (void); + ~be_visitor_ami4ccm_sendc_ex_idl (); virtual int visit_interface (be_interface *node); virtual int visit_operation (be_operation *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_interface/any_op_ch.h index cf1eee4b14a..14423fd2e60 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/any_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/any_op_ch.h @@ -26,7 +26,7 @@ class be_visitor_interface_any_op_ch : public be_visitor_interface public: be_visitor_interface_any_op_ch (be_visitor_context *ctx); - ~be_visitor_interface_any_op_ch (void); + ~be_visitor_interface_any_op_ch (); virtual int visit_interface (be_interface *node); virtual int visit_component (be_component *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_interface/any_op_cs.h index 7409ce3a65d..47ba221489f 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/any_op_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/any_op_cs.h @@ -26,7 +26,7 @@ class be_visitor_interface_any_op_cs : public be_visitor_interface public: be_visitor_interface_any_op_cs (be_visitor_context *ctx); - ~be_visitor_interface_any_op_cs (void); + ~be_visitor_interface_any_op_cs (); virtual int visit_interface (be_interface *node); virtual int visit_component (be_component *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_ch.h index 00a49c87100..478b6d191f9 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_ch.h @@ -28,7 +28,7 @@ class be_visitor_interface_cdr_op_ch : public be_visitor_interface public: be_visitor_interface_cdr_op_ch (be_visitor_context *ctx); - ~be_visitor_interface_cdr_op_ch (void); + ~be_visitor_interface_cdr_op_ch (); virtual int visit_interface (be_interface *node); virtual int visit_component (be_component *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_cs.h index e95dd50c04a..79f212abee7 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_cs.h @@ -28,7 +28,7 @@ class be_visitor_interface_cdr_op_cs : public be_visitor_interface public: be_visitor_interface_cdr_op_cs (be_visitor_context *ctx); - ~be_visitor_interface_cdr_op_cs (void); + ~be_visitor_interface_cdr_op_cs (); virtual int visit_interface (be_interface *node); virtual int visit_component (be_component *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/direct_proxy_impl_sh.h b/TAO/TAO_IDL/be_include/be_visitor_interface/direct_proxy_impl_sh.h index 6f8ab960b6b..1b10d9ab9d4 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/direct_proxy_impl_sh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/direct_proxy_impl_sh.h @@ -27,7 +27,7 @@ public: // -- Ctor/Dtor Decl. -- be_visitor_interface_direct_proxy_impl_sh (be_visitor_context *ctx); - virtual ~be_visitor_interface_direct_proxy_impl_sh (void); + virtual ~be_visitor_interface_direct_proxy_impl_sh (); /// visit an interface virtual int visit_interface (be_interface *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/direct_proxy_impl_ss.h b/TAO/TAO_IDL/be_include/be_visitor_interface/direct_proxy_impl_ss.h index 1d298c1a2e5..cf818e8a44b 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/direct_proxy_impl_ss.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/direct_proxy_impl_ss.h @@ -26,7 +26,7 @@ public: // -- Ctor/Dtor Decl. -- be_visitor_interface_direct_proxy_impl_ss (be_visitor_context *ctx); - virtual ~be_visitor_interface_direct_proxy_impl_ss (void); + virtual ~be_visitor_interface_direct_proxy_impl_ss (); /// visit an interface virtual int visit_interface (be_interface *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/facet_svth.h b/TAO/TAO_IDL/be_include/be_visitor_interface/facet_svth.h index 679951ebead..b3f0d0ae183 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/facet_svth.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/facet_svth.h @@ -27,7 +27,7 @@ class be_visitor_facet_svth : public be_visitor_interface public: be_visitor_facet_svth (be_visitor_context *ctx); - ~be_visitor_facet_svth (void); + ~be_visitor_facet_svth (); virtual int visit_interface (be_interface *node); }; diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/facet_svts.h b/TAO/TAO_IDL/be_include/be_visitor_interface/facet_svts.h index 7e8f26614d6..4fe718c369c 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/facet_svts.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/facet_svts.h @@ -27,7 +27,7 @@ class be_visitor_facet_svts : public be_visitor_interface public: be_visitor_facet_svts (be_visitor_context *ctx); - ~be_visitor_facet_svts (void); + ~be_visitor_facet_svts (); virtual int visit_interface (be_interface *node); }; diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface.h index 86e324fd121..00587d6fd9a 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/interface.h @@ -45,7 +45,7 @@ class be_visitor_interface : public be_visitor_scope { public: be_visitor_interface (be_visitor_context *ctx); - ~be_visitor_interface (void); + ~be_visitor_interface (); virtual int visit_interface (be_interface *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ch.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ch.h index 8a6b8323cea..a6d0bf77c9d 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ch.h @@ -27,7 +27,7 @@ class be_visitor_interface_ch : public be_visitor_interface { public: be_visitor_interface_ch (be_visitor_context *ctx); - ~be_visitor_interface_ch (void); + ~be_visitor_interface_ch (); virtual int visit_interface (be_interface *node); virtual int visit_component (be_component *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ci.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ci.h index 41b274c36ce..375a538c424 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ci.h @@ -24,7 +24,7 @@ class be_visitor_interface_ci : public be_visitor_interface { public: be_visitor_interface_ci (be_visitor_context *ctx); - ~be_visitor_interface_ci (void); + ~be_visitor_interface_ci (); virtual int visit_interface (be_interface *node); virtual int visit_component (be_component *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_cs.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_cs.h index b3830240020..c78de386e5e 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_cs.h @@ -24,7 +24,7 @@ class be_visitor_interface_cs : public be_visitor_interface { public: be_visitor_interface_cs (be_visitor_context *ctx); - ~be_visitor_interface_cs (void); + ~be_visitor_interface_cs (); virtual int visit_interface (be_interface *node); virtual int visit_component (be_component *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ex_idl.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ex_idl.h index 6f6983ae890..b72b4f957d2 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ex_idl.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ex_idl.h @@ -28,7 +28,7 @@ class be_visitor_interface_ex_idl : public be_visitor_interface public: be_visitor_interface_ex_idl (be_visitor_context *ctx); - ~be_visitor_interface_ex_idl (void); + ~be_visitor_interface_ex_idl (); virtual int visit_interface (be_interface *node); }; diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ih.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ih.h index d88faa13f2e..8b861ab6198 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ih.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ih.h @@ -29,7 +29,7 @@ public: be_visitor_interface_ih (be_visitor_context *ctx); /// destructor - ~be_visitor_interface_ih (void); + ~be_visitor_interface_ih (); /// set the right context and make a visitor virtual int visit_interface (be_interface *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_is.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_is.h index d4a54bd4945..85d6e612542 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_is.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_is.h @@ -28,7 +28,7 @@ public: be_visitor_interface_is (be_visitor_context *ctx); /// destructor - ~be_visitor_interface_is (void); + ~be_visitor_interface_is (); /// set the right context and make a visitor virtual int visit_interface (be_interface *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_sh.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_sh.h index 9cded98fca5..2ef902215e7 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_sh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_sh.h @@ -24,7 +24,7 @@ class be_visitor_interface_sh : public be_visitor_interface { public: be_visitor_interface_sh (be_visitor_context *ctx); - ~be_visitor_interface_sh (void); + ~be_visitor_interface_sh (); virtual int visit_interface (be_interface *node); virtual int visit_component (be_component *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ss.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ss.h index a859d496e89..d5caf5496ff 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ss.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_ss.h @@ -27,7 +27,7 @@ class be_visitor_interface_ss : public be_visitor_interface { public: be_visitor_interface_ss (be_visitor_context *ctx); - ~be_visitor_interface_ss (void); + ~be_visitor_interface_ss (); virtual int visit_interface (be_interface *node); virtual int visit_component (be_component *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_svth.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_svth.h index 28e95dc4ca6..b62e1ebd3d4 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_svth.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_svth.h @@ -28,7 +28,7 @@ class be_visitor_interface_svth : public be_visitor_interface public: be_visitor_interface_svth (be_visitor_context *ctx); - ~be_visitor_interface_svth (void); + ~be_visitor_interface_svth (); virtual int visit_interface (be_interface *node); virtual int visit_operation (be_operation *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_svts.h b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_svts.h index d4dd4ea012c..16a5d734390 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/interface_svts.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/interface_svts.h @@ -28,7 +28,7 @@ class be_visitor_interface_svts : public be_visitor_interface public: be_visitor_interface_svts (be_visitor_context *ctx); - ~be_visitor_interface_svts (void); + ~be_visitor_interface_svts (); virtual int visit_interface (be_interface *node); virtual int visit_operation (be_operation *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/smart_proxy_ch.h b/TAO/TAO_IDL/be_include/be_visitor_interface/smart_proxy_ch.h index f5f553ba0d4..dd15ff9eb80 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/smart_proxy_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/smart_proxy_ch.h @@ -28,7 +28,7 @@ public: be_visitor_interface_smart_proxy_ch (be_visitor_context *ctx); /// destructor - virtual ~be_visitor_interface_smart_proxy_ch (void); + virtual ~be_visitor_interface_smart_proxy_ch (); /// visit an interface virtual int visit_interface (be_interface *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/smart_proxy_cs.h b/TAO/TAO_IDL/be_include/be_visitor_interface/smart_proxy_cs.h index 61ee835793d..d407b35f477 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/smart_proxy_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/smart_proxy_cs.h @@ -27,7 +27,7 @@ public: be_visitor_interface_smart_proxy_cs (be_visitor_context *ctx); /// destructor - virtual ~be_visitor_interface_smart_proxy_cs (void); + virtual ~be_visitor_interface_smart_proxy_cs (); /// visit interface virtual int visit_interface (be_interface *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/tie_sh.h b/TAO/TAO_IDL/be_include/be_visitor_interface/tie_sh.h index a9e1162a554..159874fa2c2 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/tie_sh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/tie_sh.h @@ -28,7 +28,7 @@ public: be_visitor_interface_tie_sh (be_visitor_context *ctx); /// destructor - ~be_visitor_interface_tie_sh (void); + ~be_visitor_interface_tie_sh (); /// set the right context and make a visitor virtual int visit_interface (be_interface *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface/tie_ss.h b/TAO/TAO_IDL/be_include/be_visitor_interface/tie_ss.h index 40c11251da1..f5055a655d6 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface/tie_ss.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface/tie_ss.h @@ -29,7 +29,7 @@ public: be_visitor_interface_tie_ss (be_visitor_context *ctx); /// destructor - ~be_visitor_interface_tie_ss (void); + ~be_visitor_interface_tie_ss (); /// set the right context and make a visitor virtual int visit_interface (be_interface *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/any_op_ch.h index a0f374c208e..65986f49535 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/any_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/any_op_ch.h @@ -30,7 +30,7 @@ public: be_visitor_interface_fwd_any_op_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_interface_fwd_any_op_ch (void); + ~be_visitor_interface_fwd_any_op_ch (); /// visit interface_fwd virtual int visit_interface_fwd (be_interface_fwd *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/cdr_op_ch.h index eda0f278a6a..950f3d6914e 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/cdr_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/cdr_op_ch.h @@ -32,7 +32,7 @@ public: be_visitor_interface_fwd_cdr_op_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_interface_fwd_cdr_op_ch (void); + ~be_visitor_interface_fwd_cdr_op_ch (); /// visit forward declared interface virtual int visit_interface_fwd (be_interface_fwd *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/interface_fwd_ch.h b/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/interface_fwd_ch.h index f40ecff308d..33aff8865c0 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/interface_fwd_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_interface_fwd/interface_fwd_ch.h @@ -28,7 +28,7 @@ public: be_visitor_interface_fwd_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_interface_fwd_ch (void); + ~be_visitor_interface_fwd_ch (); /// visit interface_fwd. virtual int visit_interface_fwd (be_interface_fwd *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_member_type_decl.h b/TAO/TAO_IDL/be_include/be_visitor_member_type_decl.h index 12835445a5a..45b2ea985fe 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_member_type_decl.h +++ b/TAO/TAO_IDL/be_include/be_visitor_member_type_decl.h @@ -28,7 +28,7 @@ class be_visitor_member_type_decl : public be_visitor_decl { public: be_visitor_member_type_decl (be_visitor_context *ctx); - virtual ~be_visitor_member_type_decl (void); + virtual ~be_visitor_member_type_decl (); virtual int visit_array (be_array *); virtual int visit_component (be_component *); diff --git a/TAO/TAO_IDL/be_include/be_visitor_module/any_op.h b/TAO/TAO_IDL/be_include/be_visitor_module/any_op.h index 1ed876190fc..e18ae92a0f8 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_module/any_op.h +++ b/TAO/TAO_IDL/be_include/be_visitor_module/any_op.h @@ -32,7 +32,7 @@ public: be_visitor_module_any_op (be_visitor_context *ctx); /// destructor - ~be_visitor_module_any_op (void); + ~be_visitor_module_any_op (); /// visit module virtual int visit_module (be_module *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_module/cdr_op.h b/TAO/TAO_IDL/be_include/be_visitor_module/cdr_op.h index 31913a72908..c78e389a3b2 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_module/cdr_op.h +++ b/TAO/TAO_IDL/be_include/be_visitor_module/cdr_op.h @@ -32,7 +32,7 @@ public: be_visitor_module_cdr_op (be_visitor_context *ctx); /// destructor - ~be_visitor_module_cdr_op (void); + ~be_visitor_module_cdr_op (); /// visit module virtual int visit_module (be_module *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_module/module.h b/TAO/TAO_IDL/be_include/be_visitor_module/module.h index edaebc17183..64c12a08c6d 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_module/module.h +++ b/TAO/TAO_IDL/be_include/be_visitor_module/module.h @@ -28,7 +28,7 @@ class be_visitor_module : public be_visitor_scope public: be_visitor_module (be_visitor_context *ctx); - ~be_visitor_module (void); + ~be_visitor_module (); virtual int visit_constant (be_constant *node); virtual int visit_enum (be_enum *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_module/module_ch.h b/TAO/TAO_IDL/be_include/be_visitor_module/module_ch.h index 74e4ed0243f..8fca169d567 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_module/module_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_module/module_ch.h @@ -29,7 +29,7 @@ public: be_visitor_module_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_module_ch (void); + ~be_visitor_module_ch (); /// visit module. We provide code for this method in the derived class virtual int visit_module (be_module *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_module/module_ih.h b/TAO/TAO_IDL/be_include/be_visitor_module/module_ih.h index e6ce39f1690..afa981dab01 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_module/module_ih.h +++ b/TAO/TAO_IDL/be_include/be_visitor_module/module_ih.h @@ -30,7 +30,7 @@ public: be_visitor_module_ih (be_visitor_context *ctx); /// destructor - ~be_visitor_module_ih (void); + ~be_visitor_module_ih (); /// visit module. We provide code for this method in the derived class virtual int visit_module (be_module *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_module/module_sh.h b/TAO/TAO_IDL/be_include/be_visitor_module/module_sh.h index d6fa27007f7..1598f322820 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_module/module_sh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_module/module_sh.h @@ -29,7 +29,7 @@ public: be_visitor_module_sh (be_visitor_context *ctx); /// destructor - ~be_visitor_module_sh (void); + ~be_visitor_module_sh (); /// visit module. We provide code for this method in the derived class virtual int visit_module (be_module *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_native/native_ch.h b/TAO/TAO_IDL/be_include/be_visitor_native/native_ch.h index 9dd04c79fd0..3e2e37c3562 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_native/native_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_native/native_ch.h @@ -28,7 +28,7 @@ public: be_visitor_native_ch (be_visitor_context *ctx); /// deenumor - ~be_visitor_native_ch (void); + ~be_visitor_native_ch (); /// visit native. virtual int visit_native (be_native *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_null_return_value.h b/TAO/TAO_IDL/be_include/be_visitor_null_return_value.h index cdc71d47ccc..bc8322ceea4 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_null_return_value.h +++ b/TAO/TAO_IDL/be_include/be_visitor_null_return_value.h @@ -30,7 +30,7 @@ class be_visitor_null_return_value : public be_visitor_decl { public: be_visitor_null_return_value (be_visitor_context *ctx); - virtual ~be_visitor_null_return_value (void); + virtual ~be_visitor_null_return_value (); virtual int visit_array (be_array *); virtual int visit_component (be_component *); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/amh_rh_sh.h b/TAO/TAO_IDL/be_include/be_visitor_operation/amh_rh_sh.h index 8c6cd8d2999..a3bb7bd730d 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/amh_rh_sh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/amh_rh_sh.h @@ -25,7 +25,7 @@ class be_visitor_amh_rh_operation_sh : public be_visitor_operation public: be_visitor_amh_rh_operation_sh (be_visitor_context *ctx); - ~be_visitor_amh_rh_operation_sh (void); + ~be_visitor_amh_rh_operation_sh (); int visit_operation (be_operation *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/amh_rh_ss.h b/TAO/TAO_IDL/be_include/be_visitor_operation/amh_rh_ss.h index 1beb3814d9d..059e5ca2f3b 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/amh_rh_ss.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/amh_rh_ss.h @@ -25,7 +25,7 @@ class be_visitor_amh_rh_operation_ss : public be_visitor_operation public: be_visitor_amh_rh_operation_ss (be_visitor_context *ctx); - ~be_visitor_amh_rh_operation_ss (void); + ~be_visitor_amh_rh_operation_ss (); int visit_operation (be_operation *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/amh_sh.h b/TAO/TAO_IDL/be_include/be_visitor_operation/amh_sh.h index 31a72611e45..966574ab1f9 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/amh_sh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/amh_sh.h @@ -21,7 +21,7 @@ class be_visitor_amh_operation_sh : public be_visitor_operation { public: be_visitor_amh_operation_sh (be_visitor_context *ctx); - ~be_visitor_amh_operation_sh (void); + ~be_visitor_amh_operation_sh (); virtual int visit_operation (be_operation *node); virtual int visit_attribute (be_attribute *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/amh_ss.h b/TAO/TAO_IDL/be_include/be_visitor_operation/amh_ss.h index 82024d5b74f..fa8dc6b614d 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/amh_ss.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/amh_ss.h @@ -22,7 +22,7 @@ class be_visitor_amh_operation_ss : public be_visitor_operation public: be_visitor_amh_operation_ss (be_visitor_context *ctx); - ~be_visitor_amh_operation_ss (void); + ~be_visitor_amh_operation_ss (); virtual int visit_operation (be_operation *node); virtual int visit_attribute (be_attribute *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/ami_cs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/ami_cs.h index bc30ee7fce3..64a1b557ce5 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/ami_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/ami_cs.h @@ -31,7 +31,7 @@ public: be_visitor_operation_ami_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_operation_ami_cs (void); + ~be_visitor_operation_ami_cs (); /// visit operation. virtual int visit_operation (be_operation *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/ami_handler_reply_stub_operation_cs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/ami_handler_reply_stub_operation_cs.h index 9f598031e3e..b222f25eec9 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/ami_handler_reply_stub_operation_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/ami_handler_reply_stub_operation_cs.h @@ -33,7 +33,7 @@ public: be_visitor_operation_ami_handler_reply_stub_operation_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_operation_ami_handler_reply_stub_operation_cs (void); + ~be_visitor_operation_ami_handler_reply_stub_operation_cs (); /// visit operation. virtual int visit_operation (be_operation *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/arglist.h b/TAO/TAO_IDL/be_include/be_visitor_operation/arglist.h index ef1721f9765..a95c034822a 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/arglist.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/arglist.h @@ -30,7 +30,7 @@ class be_visitor_operation_arglist : public be_visitor_operation public: be_visitor_operation_arglist (be_visitor_context *ctx); - ~be_visitor_operation_arglist (void); + ~be_visitor_operation_arglist (); virtual int visit_operation (be_operation *node); virtual int visit_factory (be_factory *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/argument.h b/TAO/TAO_IDL/be_include/be_visitor_operation/argument.h index ea31a1aaf4e..6ddf98cfad4 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/argument.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/argument.h @@ -33,7 +33,7 @@ public: be_visitor_operation_argument (be_visitor_context *ctx); /// destructor - ~be_visitor_operation_argument (void); + ~be_visitor_operation_argument (); /// stuff to o/p after each element of the scope is handled virtual int post_process (be_decl *); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/argument_invoke.h b/TAO/TAO_IDL/be_include/be_visitor_operation/argument_invoke.h index 4828c66a4b1..46c5f0334d9 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/argument_invoke.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/argument_invoke.h @@ -35,7 +35,7 @@ public: be_visitor_operation_argument_invoke (be_visitor_context *ctx); /// destructor - ~be_visitor_operation_argument_invoke (void); + ~be_visitor_operation_argument_invoke (); /// stuff to o/p before each element of the scope is handled virtual int pre_process (be_decl *bd); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/argument_marshal.h b/TAO/TAO_IDL/be_include/be_visitor_operation/argument_marshal.h index 7e26cff6ce6..b0441621613 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/argument_marshal.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/argument_marshal.h @@ -31,7 +31,7 @@ public: be_visitor_operation_argument_marshal (be_visitor_context *ctx); /// destructor - ~be_visitor_operation_argument_marshal (void); + ~be_visitor_operation_argument_marshal (); /// stuff to o/p before each element of the scope is handled virtual int pre_process (be_decl *bd); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/direct_proxy_impl_ss.h b/TAO/TAO_IDL/be_include/be_visitor_operation/direct_proxy_impl_ss.h index ce17f859cc0..8a4a37e743b 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/direct_proxy_impl_ss.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/direct_proxy_impl_ss.h @@ -28,7 +28,7 @@ public: be_visitor_operation_direct_proxy_impl_ss (be_visitor_context *ctx); /// destructor - ~be_visitor_operation_direct_proxy_impl_ss (void); + ~be_visitor_operation_direct_proxy_impl_ss (); /// visit operation node. virtual int visit_operation (be_operation *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/exceptlist_cs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/exceptlist_cs.h index c2f52642839..c2ef44f481f 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/exceptlist_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/exceptlist_cs.h @@ -33,7 +33,7 @@ public: be_visitor_operation_exceptlist_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_operation_exceptlist_cs (void); + ~be_visitor_operation_exceptlist_cs (); /// visit the operation int visit_operation (be_operation *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/exceptlist_ss.h b/TAO/TAO_IDL/be_include/be_visitor_operation/exceptlist_ss.h index 5052fd237f3..09a5a3eeb52 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/exceptlist_ss.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/exceptlist_ss.h @@ -36,7 +36,7 @@ public: be_visitor_operation_exceptlist_ss (be_visitor_context * ctx); /// destructor - ~be_visitor_operation_exceptlist_ss (void); + ~be_visitor_operation_exceptlist_ss (); /// visit the operation int visit_operation (be_operation * node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/operation.h b/TAO/TAO_IDL/be_include/be_visitor_operation/operation.h index a69ca530064..b41e2adfe36 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/operation.h @@ -32,7 +32,7 @@ public: be_visitor_operation (be_visitor_context *ctx); /// destructor - ~be_visitor_operation (void); + ~be_visitor_operation (); // =helper diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ch.h b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ch.h index 3fd32942e60..79620cd71b6 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ch.h @@ -31,7 +31,7 @@ public: be_visitor_operation_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_operation_ch (void); + ~be_visitor_operation_ch (); /// visit operation. virtual int visit_operation (be_operation *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_cs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_cs.h index 67fb65ef842..843fc3c11b4 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_cs.h @@ -31,7 +31,7 @@ public: be_visitor_operation_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_operation_cs (void); + ~be_visitor_operation_cs (); /// visit operation. virtual int visit_operation (be_operation *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_exs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_exs.h index 1a6e95c51bb..8d89781c20d 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_exs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_exs.h @@ -30,7 +30,7 @@ class be_visitor_operation_exs : public be_visitor_scope public: be_visitor_operation_exs (be_visitor_context *ctx); - ~be_visitor_operation_exs (void); + ~be_visitor_operation_exs (); virtual int visit_operation (be_operation *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ih.h b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ih.h index 752a4fd774a..11b4cd84301 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ih.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ih.h @@ -31,7 +31,7 @@ public: be_visitor_operation_ih (be_visitor_context *ctx); /// destructor - ~be_visitor_operation_ih (void); + ~be_visitor_operation_ih (); /// visit operation. We provide code for this method in the derived class virtual int visit_operation (be_operation *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_is.h b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_is.h index 870fcd1bb81..b03de3f23b4 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_is.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_is.h @@ -31,7 +31,7 @@ public: be_visitor_operation_is (be_visitor_context *ctx); /// destructor - ~be_visitor_operation_is (void); + ~be_visitor_operation_is (); /// visit operation. We provide code for this method in the derived class virtual int visit_operation (be_operation *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_sh.h b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_sh.h index 7841f3a9066..2a081ad3c90 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_sh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_sh.h @@ -31,7 +31,7 @@ public: be_visitor_operation_sh (be_visitor_context *ctx); /// destructor - ~be_visitor_operation_sh (void); + ~be_visitor_operation_sh (); /// visit operation. virtual int visit_operation (be_operation *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ss.h b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ss.h index e12a2a59669..80b971a25d0 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ss.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_ss.h @@ -32,7 +32,7 @@ public: be_visitor_operation_ss (be_visitor_context *ctx); /// destructor - ~be_visitor_operation_ss (void); + ~be_visitor_operation_ss (); /// visit operation. We provide code for this method in the derived class virtual int visit_operation (be_operation *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_svs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_svs.h index 391bcfdf7d2..f739aaa5cc5 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation_svs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/operation_svs.h @@ -31,7 +31,7 @@ class be_visitor_operation_svs : public be_visitor_scope public: be_visitor_operation_svs (be_visitor_context *ctx); - ~be_visitor_operation_svs (void); + ~be_visitor_operation_svs (); virtual int visit_operation (be_operation *node); virtual int visit_argument (be_argument *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/proxy_impl_xh.h b/TAO/TAO_IDL/be_include/be_visitor_operation/proxy_impl_xh.h index fd0555d206d..4c64e341371 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/proxy_impl_xh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/proxy_impl_xh.h @@ -28,7 +28,7 @@ public: be_visitor_operation_proxy_impl_xh (be_visitor_context *ctx); /// destructor - ~be_visitor_operation_proxy_impl_xh (void); + ~be_visitor_operation_proxy_impl_xh (); /// visit operation. virtual int visit_operation (be_operation *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype.h b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype.h index 92138e2f332..e63c7c48cea 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype.h @@ -32,7 +32,7 @@ public: be_visitor_operation_rettype (be_visitor_context *ctx); /// destructor - ~be_visitor_operation_rettype (void); + ~be_visitor_operation_rettype (); /// visit an array node int visit_array (be_array *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_return_cs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_return_cs.h index 9462881b33c..25f367e66cb 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_return_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/rettype_return_cs.h @@ -33,7 +33,7 @@ public: be_visitor_operation_rettype_return_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_operation_rettype_return_cs (void); + ~be_visitor_operation_rettype_return_cs (); /// visit an array node int visit_array (be_array *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/smart_proxy_ch.h b/TAO/TAO_IDL/be_include/be_visitor_operation/smart_proxy_ch.h index 7111c0d3a56..5967764955f 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/smart_proxy_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/smart_proxy_ch.h @@ -33,7 +33,7 @@ public: be_visitor_operation_smart_proxy_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_operation_smart_proxy_ch (void); + ~be_visitor_operation_smart_proxy_ch (); /// visit operation node. virtual int visit_operation (be_operation *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/smart_proxy_cs.h b/TAO/TAO_IDL/be_include/be_visitor_operation/smart_proxy_cs.h index ae9032ad443..040bd528088 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/smart_proxy_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/smart_proxy_cs.h @@ -30,7 +30,7 @@ public: be_visitor_operation_smart_proxy_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_operation_smart_proxy_cs (void); + ~be_visitor_operation_smart_proxy_cs (); /// visit operation. virtual int visit_operation (be_operation *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/tie_sh.h b/TAO/TAO_IDL/be_include/be_visitor_operation/tie_sh.h index a843454511b..d850c05d9eb 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/tie_sh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/tie_sh.h @@ -32,7 +32,7 @@ public: be_visitor_operation_tie_sh (be_visitor_context *ctx); /// destructor - ~be_visitor_operation_tie_sh (void); + ~be_visitor_operation_tie_sh (); /// set the right context and make a visitor virtual int visit_operation (be_operation *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/tie_ss.h b/TAO/TAO_IDL/be_include/be_visitor_operation/tie_ss.h index ad8831d311e..21c8b5e315d 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/tie_ss.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/tie_ss.h @@ -31,7 +31,7 @@ public: be_visitor_operation_tie_ss (be_visitor_context *ctx); /// destructor - ~be_visitor_operation_tie_ss (void); + ~be_visitor_operation_tie_ss (); /// set the right context and make a visitor virtual int visit_operation (be_operation *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/upcall_command_ss.h b/TAO/TAO_IDL/be_include/be_visitor_operation/upcall_command_ss.h index 10d6e7306ae..b35c5df1a10 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_operation/upcall_command_ss.h +++ b/TAO/TAO_IDL/be_include/be_visitor_operation/upcall_command_ss.h @@ -23,7 +23,7 @@ public: be_visitor_operation_upcall_command_ss (be_visitor_context * ctx); /// destructor - ~be_visitor_operation_upcall_command_ss (void); + ~be_visitor_operation_upcall_command_ss (); /// Same as visit_operation() but override full_skel_name and /// upcall_command_name. diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/any_op.h b/TAO/TAO_IDL/be_include/be_visitor_root/any_op.h index 31647f6923a..1012aec6909 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/any_op.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/any_op.h @@ -28,7 +28,7 @@ class be_visitor_root_any_op : public be_visitor_root public: be_visitor_root_any_op (be_visitor_context *ctx); - ~be_visitor_root_any_op (void); + ~be_visitor_root_any_op (); virtual int visit_root (be_root *node); }; diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/cdr_op.h b/TAO/TAO_IDL/be_include/be_visitor_root/cdr_op.h index 7dc9c68f544..646d97abc3f 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/cdr_op.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/cdr_op.h @@ -28,7 +28,7 @@ class be_visitor_root_cdr_op : public be_visitor_root public: be_visitor_root_cdr_op (be_visitor_context *ctx); - ~be_visitor_root_cdr_op (void); + ~be_visitor_root_cdr_op (); virtual int visit_root (be_root *node); }; diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root.h b/TAO/TAO_IDL/be_include/be_visitor_root/root.h index cee348218ef..3322d73e1e3 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/root.h @@ -27,7 +27,7 @@ class be_visitor_root : public be_visitor_module public: be_visitor_root (be_visitor_context *ctx); - ~be_visitor_root (void); + ~be_visitor_root (); /// This is the only method that differs from that of the /// be_visitor_module bass class. diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_ch.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_ch.h index 501646291bc..3cf7f0ee1de 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/root_ch.h @@ -28,21 +28,21 @@ class be_visitor_root_ch : public be_visitor_root public: be_visitor_root_ch (be_visitor_context *ctx); - ~be_visitor_root_ch (void); + ~be_visitor_root_ch (); virtual int visit_root (be_root *node); private: /// Open file and initialize stream. - int init (void); + int init (); /// Encapsulating various bits of code generation peculiar /// to the client header file, done either before or after /// the main scope traversal. int gen_arg_traits (be_root *node); - void gen_fwd_decls (void); - void gen_ref_counting_overrides (void); - void gen_static_corba_overrides (void); + void gen_fwd_decls (); + void gen_ref_counting_overrides (); + void gen_static_corba_overrides (); int gen_obv_decls (be_root *node); int gen_object_traits (be_root *node); int gen_template_exports (be_root *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_ci.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_ci.h index d27a02b264c..7522d4f48a2 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/root_ci.h @@ -28,13 +28,13 @@ class be_visitor_root_ci : public be_visitor_root public: be_visitor_root_ci (be_visitor_context *ctx); - ~be_visitor_root_ci (void); + ~be_visitor_root_ci (); virtual int visit_root (be_root *node); private: /// Open file and initialize stream. - int init (void); + int init (); /// Generate OBV definitions in the client inline /// file, done after the main scope traversal. diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_cnh.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_cnh.h index e3934f27152..0861de99d08 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_cnh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/root_cnh.h @@ -28,13 +28,13 @@ class be_visitor_root_cnh : public be_visitor_root public: be_visitor_root_cnh (be_visitor_context *ctx); - ~be_visitor_root_cnh (void); + ~be_visitor_root_cnh (); virtual int visit_root (be_root *node); private: /// Open file and initialize stream. - int init (void); + int init (); }; #endif /* _BE_VISITOR_ROOT_ROOT_CNH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_cns.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_cns.h index aba97d8ca8d..0624821cd89 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_cns.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/root_cns.h @@ -28,12 +28,12 @@ class be_visitor_root_cns : public be_visitor_root public: be_visitor_root_cns (be_visitor_context *ctx); - ~be_visitor_root_cns (void); + ~be_visitor_root_cns (); virtual int visit_root (be_root *node); /// Open file and initialize stream. - int init (void); + int init (); }; #endif /* _BE_VISITOR_ROOT_ROOT_CNS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_cs.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_cs.h index 7b1d425ab19..46d255a924e 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/root_cs.h @@ -28,13 +28,13 @@ class be_visitor_root_cs : public be_visitor_root public: be_visitor_root_cs (be_visitor_context *ctx); - ~be_visitor_root_cs (void); + ~be_visitor_root_cs (); virtual int visit_root (be_root *node); private: /// Open file and initialize stream. - int init (void); + int init (); /// Encapsulating various bits of code generation peculiar /// to the client source file, done either before or after diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_ex_idl.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_ex_idl.h index 9f48060c23b..854795b07df 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_ex_idl.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/root_ex_idl.h @@ -28,13 +28,13 @@ class be_visitor_root_ex_idl : public be_visitor_root public: be_visitor_root_ex_idl (be_visitor_context *ctx); - ~be_visitor_root_ex_idl (void); + ~be_visitor_root_ex_idl (); virtual int visit_root (be_root *node); private: /// Open file and initialize stream. - int init (void); + int init (); }; #endif /* _BE_VISITOR_ROOT_ROOT_EX_IDL_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_exh.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_exh.h index f265526a375..c2fb5fcf70e 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_exh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/root_exh.h @@ -28,13 +28,13 @@ class be_visitor_root_exh : public be_visitor_root public: be_visitor_root_exh (be_visitor_context *ctx); - ~be_visitor_root_exh (void); + ~be_visitor_root_exh (); virtual int visit_root (be_root *node); private: /// Open file and initialize stream. - int init (void); + int init (); }; #endif /* _BE_VISITOR_ROOT_ROOT_EXH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_exs.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_exs.h index 10a24929673..4172a031627 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_exs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/root_exs.h @@ -28,13 +28,13 @@ class be_visitor_root_exs : public be_visitor_root public: be_visitor_root_exs (be_visitor_context *ctx); - ~be_visitor_root_exs (void); + ~be_visitor_root_exs (); virtual int visit_root (be_root *node); private: /// Open file and initialize stream. - int init (void); + int init (); }; #endif /* _BE_VISITOR_ROOT_ROOT_EXS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_ih.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_ih.h index 7af2ca6939f..d8a37fa55bb 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_ih.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/root_ih.h @@ -26,13 +26,13 @@ class be_visitor_root_ih : public be_visitor_root public: be_visitor_root_ih (be_visitor_context *ctx); - ~be_visitor_root_ih (void); + ~be_visitor_root_ih (); virtual int visit_root (be_root *node); private: /// Open file and initialize stream. - int init (void); + int init (); }; #endif /* _BE_VISITOR_ROOT_ROOT_IH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_is.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_is.h index 1228c06cea4..c41805268fc 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_is.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/root_is.h @@ -26,13 +26,13 @@ class be_visitor_root_is : public be_visitor_root public: be_visitor_root_is (be_visitor_context *ctx); - ~be_visitor_root_is (void); + ~be_visitor_root_is (); virtual int visit_root (be_root *node); private: /// Open file and initialize stream. - int init (void); + int init (); }; #endif /* _BE_VISITOR_ROOT_ROOT_IS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_sh.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_sh.h index eb69d3f11cb..db27baf64c1 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_sh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/root_sh.h @@ -27,13 +27,13 @@ class be_visitor_root_sh : public be_visitor_root public: be_visitor_root_sh (be_visitor_context *ctx); - ~be_visitor_root_sh (void); + ~be_visitor_root_sh (); virtual int visit_root (be_root *node); private: /// Open file and initialize stream. - int init (void); + int init (); /// Generate arg template trait specializations in /// the skeleton header file, done before the main diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_ss.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_ss.h index f8ba08c106e..28d4c19288f 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_ss.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/root_ss.h @@ -27,13 +27,13 @@ class be_visitor_root_ss : public be_visitor_root public: be_visitor_root_ss (be_visitor_context *ctx); - ~be_visitor_root_ss (void); + ~be_visitor_root_ss (); virtual int visit_root (be_root *node); private: /// Open file and initialize stream. - int init (void); + int init (); }; #endif /* _BE_VISITOR_ROOT_ROOT_SS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_sth.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_sth.h index 2884d9459e9..7b22bac8e50 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_sth.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/root_sth.h @@ -28,7 +28,7 @@ class be_visitor_root_sth : public be_visitor_root public: be_visitor_root_sth (be_visitor_context *ctx); - ~be_visitor_root_sth (void); + ~be_visitor_root_sth (); virtual int visit_root (be_root *node); @@ -40,7 +40,7 @@ public: private: /// Open file and initialize stream. - int init (void); + int init (); }; #endif /* _BE_VISITOR_ROOT_ROOT_STH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_svh.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_svh.h index 8d1a21e2e96..1e56d0acec9 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_svh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/root_svh.h @@ -28,13 +28,13 @@ class be_visitor_root_svh : public be_visitor_root public: be_visitor_root_svh (be_visitor_context *ctx); - ~be_visitor_root_svh (void); + ~be_visitor_root_svh (); virtual int visit_root (be_root *node); private: /// Open file and initialize stream. - int init (void); + int init (); }; #endif /* _BE_VISITOR_ROOT_ROOT_SVH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_svs.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_svs.h index 6d8202b0c5d..d9baf73eded 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_svs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/root_svs.h @@ -28,13 +28,13 @@ class be_visitor_root_svs : public be_visitor_root public: be_visitor_root_svs (be_visitor_context *ctx); - ~be_visitor_root_svs (void); + ~be_visitor_root_svs (); virtual int visit_root (be_root *node); private: /// Set the right context and make a visitor. - int init (void); + int init (); }; #endif /* _BE_VISITOR_ROOT_ROOT_SVS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_svth.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_svth.h index 59abaf33ff5..9d557cb3c22 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_svth.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/root_svth.h @@ -28,13 +28,13 @@ class be_visitor_root_svth : public be_visitor_root public: be_visitor_root_svth (be_visitor_context *ctx); - ~be_visitor_root_svth (void); + ~be_visitor_root_svth (); virtual int visit_root (be_root *node); private: /// Open file and initialize stream. - int init (void); + int init (); }; #endif /* _BE_VISITOR_ROOT_ROOT_SVTH_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_root/root_svts.h b/TAO/TAO_IDL/be_include/be_visitor_root/root_svts.h index 4b669c2118e..9dd2151e95e 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_root/root_svts.h +++ b/TAO/TAO_IDL/be_include/be_visitor_root/root_svts.h @@ -28,13 +28,13 @@ class be_visitor_root_svts : public be_visitor_root public: be_visitor_root_svts (be_visitor_context *ctx); - ~be_visitor_root_svts (void); + ~be_visitor_root_svts (); virtual int visit_root (be_root *node); private: /// Set the right context and make a visitor. - int init (void); + int init (); }; #endif /* _BE_VISITOR_ROOT_ROOT_SVTS_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_scope.h b/TAO/TAO_IDL/be_include/be_visitor_scope.h index 7c3b819b27b..2d6bce24001 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_scope.h +++ b/TAO/TAO_IDL/be_include/be_visitor_scope.h @@ -31,7 +31,7 @@ public: be_visitor_scope (be_visitor_context *ctx); /// destructor - ~be_visitor_scope (void); + ~be_visitor_scope (); /// visit scope int visit_scope (be_scope *node); @@ -44,7 +44,7 @@ public: virtual int pre_process (be_decl *); /// return the element number that is being processed - virtual int elem_number (void); + virtual int elem_number (); /// get the successor to elem virtual int next_elem (be_decl *elem, be_decl *&); diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/any_op_ch.h index 4cc76d38678..c1df47e39d3 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/any_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_sequence/any_op_ch.h @@ -32,7 +32,7 @@ public: be_visitor_sequence_any_op_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_sequence_any_op_ch (void); + ~be_visitor_sequence_any_op_ch (); /// visit sequence virtual int visit_sequence (be_sequence *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/any_op_cs.h index b96fa97cadb..916eaea173b 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/any_op_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_sequence/any_op_cs.h @@ -32,7 +32,7 @@ public: be_visitor_sequence_any_op_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_sequence_any_op_cs (void); + ~be_visitor_sequence_any_op_cs (); /// visit sequence virtual int visit_sequence (be_sequence *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/buffer_type.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/buffer_type.h index 10249ffc920..e43be03ecb5 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/buffer_type.h +++ b/TAO/TAO_IDL/be_include/be_visitor_sequence/buffer_type.h @@ -31,7 +31,7 @@ public: be_visitor_sequence_buffer_type (be_visitor_context *ctx); /// destructor - ~be_visitor_sequence_buffer_type (void); + ~be_visitor_sequence_buffer_type (); // = Visitor methods. virtual int visit_predefined_type (be_predefined_type *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_ch.h index adec609812e..7d6ee5e5b29 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_ch.h @@ -32,7 +32,7 @@ public: be_visitor_sequence_cdr_op_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_sequence_cdr_op_ch (void); + ~be_visitor_sequence_cdr_op_ch (); /// visit sequence virtual int visit_sequence (be_sequence *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_cs.h index 261e6a92479..530d6f85398 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_cs.h @@ -34,7 +34,7 @@ public: be_visitor_sequence_cdr_op_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_sequence_cdr_op_cs (void); + ~be_visitor_sequence_cdr_op_cs (); /// visit sequence virtual int visit_sequence (be_sequence *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_base.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_base.h index 3b6df9024ec..47313216b25 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_base.h +++ b/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_base.h @@ -36,7 +36,7 @@ public: be_visitor_sequence_base (be_visitor_context *ctx); /// destructor - ~be_visitor_sequence_base (void); + ~be_visitor_sequence_base (); // = Visitor methods. virtual int visit_predefined_type (be_predefined_type *node); @@ -80,7 +80,7 @@ public: be_sequence *node ); ///Dtor - ~be_visitor_sequence_base_template_args (void); + ~be_visitor_sequence_base_template_args (); //= Visit methods virtual int visit_interface (be_interface *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_ch.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_ch.h index 7c110967ce2..e4b106f3858 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_ch.h @@ -31,7 +31,7 @@ public: be_visitor_sequence_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_sequence_ch (void); + ~be_visitor_sequence_ch (); /// visit sequence node. virtual int visit_sequence (be_sequence *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_cs.h b/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_cs.h index c4b85929655..d6a6ba09009 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_cs.h @@ -32,7 +32,7 @@ public: be_visitor_sequence_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_sequence_cs (void); + ~be_visitor_sequence_cs (); /// visit sequence node virtual int visit_sequence (be_sequence *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_structure/any_op_ch.h index ee0e57fdd13..c7d3270ab32 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/any_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_structure/any_op_ch.h @@ -32,7 +32,7 @@ public: be_visitor_structure_any_op_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_structure_any_op_ch (void); + ~be_visitor_structure_any_op_ch (); /// visit structure virtual int visit_structure (be_structure *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_structure/any_op_cs.h index 8a007981986..72d670410f6 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/any_op_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_structure/any_op_cs.h @@ -32,7 +32,7 @@ public: be_visitor_structure_any_op_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_structure_any_op_cs (void); + ~be_visitor_structure_any_op_cs (); /// visit structure virtual int visit_structure (be_structure *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_ch.h index 3b93c14968b..a5d002c62e4 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_ch.h @@ -32,7 +32,7 @@ public: be_visitor_structure_cdr_op_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_structure_cdr_op_ch (void); + ~be_visitor_structure_cdr_op_ch (); /// visit structure virtual int visit_structure (be_structure *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_cs.h index 5b84cf62295..f307404d16a 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_cs.h @@ -32,7 +32,7 @@ public: be_visitor_structure_cdr_op_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_structure_cdr_op_cs (void); + ~be_visitor_structure_cdr_op_cs (); /// visit structure virtual int visit_structure (be_structure *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure/structure.h b/TAO/TAO_IDL/be_include/be_visitor_structure/structure.h index 70054836d98..afc9cffa36e 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/structure.h +++ b/TAO/TAO_IDL/be_include/be_visitor_structure/structure.h @@ -29,7 +29,7 @@ public: be_visitor_structure (be_visitor_context *ctx); /// destructureor - ~be_visitor_structure (void); + ~be_visitor_structure (); /// visit structure. We provide code for this method in the derived class virtual int visit_structure (be_structure *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure/structure_ch.h b/TAO/TAO_IDL/be_include/be_visitor_structure/structure_ch.h index 69f68c18def..bd08ad67e00 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/structure_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_structure/structure_ch.h @@ -29,7 +29,7 @@ public: be_visitor_structure_ch (be_visitor_context *ctx); /// destructureor - ~be_visitor_structure_ch (void); + ~be_visitor_structure_ch (); /// visit structure. We provide code for this method in the derived class virtual int visit_structure (be_structure *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure/structure_ci.h b/TAO/TAO_IDL/be_include/be_visitor_structure/structure_ci.h index d3a9cd4e9b2..b31296115ab 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/structure_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_structure/structure_ci.h @@ -29,7 +29,7 @@ public: be_visitor_structure_ci (be_visitor_context *ctx); /// destructureor - ~be_visitor_structure_ci (void); + ~be_visitor_structure_ci (); /// visit structure. We provide code for this method in the derived class virtual int visit_structure (be_structure *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure/structure_cs.h b/TAO/TAO_IDL/be_include/be_visitor_structure/structure_cs.h index 27238db835d..bc37fa3e55b 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_structure/structure_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_structure/structure_cs.h @@ -29,7 +29,7 @@ public: be_visitor_structure_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_structure_cs (void); + ~be_visitor_structure_cs (); /// visit structure. virtual int visit_structure (be_structure *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_structure_fwd/structure_fwd_ch.h b/TAO/TAO_IDL/be_include/be_visitor_structure_fwd/structure_fwd_ch.h index c01c8b17417..8325735282f 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_structure_fwd/structure_fwd_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_structure_fwd/structure_fwd_ch.h @@ -25,7 +25,7 @@ class be_visitor_structure_fwd_ch : public be_visitor_decl public: be_visitor_structure_fwd_ch (be_visitor_context *ctx); - ~be_visitor_structure_fwd_ch (void); + ~be_visitor_structure_fwd_ch (); virtual int visit_structure_fwd (be_structure_fwd *node); }; diff --git a/TAO/TAO_IDL/be_include/be_visitor_template_export.h b/TAO/TAO_IDL/be_include/be_visitor_template_export.h index 6283dcf7382..a77fdd98b12 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_template_export.h +++ b/TAO/TAO_IDL/be_include/be_visitor_template_export.h @@ -34,7 +34,7 @@ class be_visitor_template_export : public be_visitor_scope public: be_visitor_template_export (be_visitor_context *ctx); - virtual ~be_visitor_template_export (void); + virtual ~be_visitor_template_export (); virtual int visit_root (be_root *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_traits.h b/TAO/TAO_IDL/be_include/be_visitor_traits.h index a5d1b3f4094..accc2411db1 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_traits.h +++ b/TAO/TAO_IDL/be_include/be_visitor_traits.h @@ -25,7 +25,7 @@ class be_visitor_traits : public be_visitor_scope public: be_visitor_traits (be_visitor_context *ctx); - virtual ~be_visitor_traits (void); + virtual ~be_visitor_traits (); virtual int visit_root (be_root *node); virtual int visit_module (be_module *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_decl.h b/TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_decl.h index a50ef718edf..6f6ae5b285b 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_decl.h +++ b/TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_decl.h @@ -26,7 +26,7 @@ class be_visitor_typecode_decl : public be_visitor_decl public: be_visitor_typecode_decl (be_visitor_context *ctx); - ~be_visitor_typecode_decl (void); + ~be_visitor_typecode_decl (); /// visit a generic be_type node. virtual int visit_type (be_type *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_defn.h b/TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_defn.h index b2f551067ad..242f3b0c74e 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_defn.h +++ b/TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_defn.h @@ -35,7 +35,7 @@ class be_visitor_typecode_defn : public be_visitor_scope { public: be_visitor_typecode_defn (be_visitor_context *ctx); - ~be_visitor_typecode_defn (void); + ~be_visitor_typecode_defn (); virtual int visit_array (be_array *node); virtual int visit_interface (be_interface *node); @@ -95,8 +95,8 @@ protected: * Utility methods to generate enclosing namespaces for * typecodes of bounded (w)strings, sequences and arrays. */ - void gen_begin_NS_for_anon (void); - void gen_end_NS_for_anon (void); + void gen_begin_NS_for_anon (); + void gen_end_NS_for_anon (); protected: diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_typedef/any_op_ch.h index d56e828a938..b56dc448931 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/any_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_typedef/any_op_ch.h @@ -33,7 +33,7 @@ public: be_visitor_typedef_any_op_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_typedef_any_op_ch (void); + ~be_visitor_typedef_any_op_ch (); /// visit typedef virtual int visit_typedef (be_typedef *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_typedef/any_op_cs.h index b9893f50635..aa4b7381f82 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/any_op_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_typedef/any_op_cs.h @@ -33,7 +33,7 @@ public: be_visitor_typedef_any_op_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_typedef_any_op_cs (void); + ~be_visitor_typedef_any_op_cs (); /// visit typedef virtual int visit_typedef (be_typedef *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_ch.h index 08db072de62..087b3da6db2 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_ch.h @@ -32,7 +32,7 @@ public: be_visitor_typedef_cdr_op_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_typedef_cdr_op_ch (void); + ~be_visitor_typedef_cdr_op_ch (); /// visit typedef virtual int visit_typedef (be_typedef *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_cs.h index 1c782481af2..10fc1214464 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_cs.h @@ -32,7 +32,7 @@ public: be_visitor_typedef_cdr_op_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_typedef_cdr_op_cs (void); + ~be_visitor_typedef_cdr_op_cs (); /// visit typedef virtual int visit_typedef (be_typedef *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef.h b/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef.h index 2de5434f6c0..d287c2a4061 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef.h +++ b/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef.h @@ -30,7 +30,7 @@ public: be_visitor_typedef (be_visitor_context *ctx); /// destructor - ~be_visitor_typedef (void); + ~be_visitor_typedef (); /// must be overridden virtual int visit_typedef (be_typedef *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ch.h b/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ch.h index ad27eb3dd52..8e88c8a599c 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ch.h @@ -30,7 +30,7 @@ public: be_visitor_typedef_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_typedef_ch (void); + ~be_visitor_typedef_ch (); /// visit typedef. We provide code for this method in the derived class virtual int visit_typedef (be_typedef *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ci.h b/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ci.h index 849f1ba2cbe..4580a68e7a0 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ci.h @@ -30,7 +30,7 @@ public: be_visitor_typedef_ci (be_visitor_context *ctx); /// destructor - ~be_visitor_typedef_ci (void); + ~be_visitor_typedef_ci (); /// visit typedef. We provide code for this method in the derived class virtual int visit_typedef (be_typedef *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_cs.h b/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_cs.h index ae814c4ff69..83afa8278fd 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_cs.h @@ -30,7 +30,7 @@ public: be_visitor_typedef_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_typedef_cs (void); + ~be_visitor_typedef_cs (); /// visit typedef. We provide code for this method in the derived class virtual int visit_typedef (be_typedef *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_union/any_op_ch.h index ff66c35eb52..3426539cbde 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union/any_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union/any_op_ch.h @@ -30,7 +30,7 @@ class be_visitor_union_any_op_ch : public be_visitor_union public: be_visitor_union_any_op_ch (be_visitor_context *ctx); - ~be_visitor_union_any_op_ch (void); + ~be_visitor_union_any_op_ch (); virtual int visit_union (be_union *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union/any_op_cs.h index 7c8bd1f0757..c8983f61874 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union/any_op_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union/any_op_cs.h @@ -30,7 +30,7 @@ class be_visitor_union_any_op_cs : public be_visitor_union public: be_visitor_union_any_op_cs (be_visitor_context *ctx); - ~be_visitor_union_any_op_cs (void); + ~be_visitor_union_any_op_cs (); virtual int visit_union (be_union *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_ch.h index f3a4c952259..1ce2eca9e79 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_ch.h @@ -32,7 +32,7 @@ public: be_visitor_union_cdr_op_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_union_cdr_op_ch (void); + ~be_visitor_union_cdr_op_ch (); /// visit union virtual int visit_union (be_union *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_cs.h index 9ce9d00c75e..ecfbe0ef1a7 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_cs.h @@ -32,7 +32,7 @@ public: be_visitor_union_cdr_op_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_union_cdr_op_cs (void); + ~be_visitor_union_cdr_op_cs (); /// visit union virtual int visit_union (be_union *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ch.h b/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ch.h index 26a1c20e3ac..4264f931d36 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ch.h @@ -31,7 +31,7 @@ public: be_visitor_union_discriminant_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_union_discriminant_ch (void); + ~be_visitor_union_discriminant_ch (); /// visit an enum virtual int visit_enum (be_enum *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ci.h b/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ci.h index 4397b39bfa5..eeb7f291462 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ci.h @@ -31,7 +31,7 @@ public: be_visitor_union_discriminant_ci (be_visitor_context *ctx); /// destructor - ~be_visitor_union_discriminant_ci (void); + ~be_visitor_union_discriminant_ci (); /// visit an enum virtual int visit_enum (be_enum *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_cs.h index 3391c92ed24..037f3e95ada 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union/discriminant_cs.h @@ -31,7 +31,7 @@ public: be_visitor_union_discriminant_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_union_discriminant_cs (void); + ~be_visitor_union_discriminant_cs (); /// visit an enum. Required to generate the typecode for an enum definition /// appearing side the union diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/union.h b/TAO/TAO_IDL/be_include/be_visitor_union/union.h index c854e6e2e73..390655bc5f3 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union/union.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union/union.h @@ -29,7 +29,7 @@ public: be_visitor_union (be_visitor_context *ctx); /// destructor - ~be_visitor_union (void); + ~be_visitor_union (); /// visit union. We provide code for this method in the derived class virtual int visit_union (be_union *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/union_ch.h b/TAO/TAO_IDL/be_include/be_visitor_union/union_ch.h index 13cb7108fb3..a70a7905448 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union/union_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union/union_ch.h @@ -29,7 +29,7 @@ public: be_visitor_union_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_union_ch (void); + ~be_visitor_union_ch (); /// visit union. We provide code for this method in the derived class virtual int visit_union (be_union *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/union_ci.h b/TAO/TAO_IDL/be_include/be_visitor_union/union_ci.h index 2ec0e177681..c94dda604c1 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union/union_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union/union_ci.h @@ -29,7 +29,7 @@ public: be_visitor_union_ci (be_visitor_context *ctx); /// destructor - ~be_visitor_union_ci (void); + ~be_visitor_union_ci (); /// visit union. We provide code for this method in the derived class virtual int visit_union (be_union *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/union_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union/union_cs.h index 1ef3e1056dc..e7de0e48a79 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union/union_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union/union_cs.h @@ -29,7 +29,7 @@ public: be_visitor_union_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_union_cs (void); + ~be_visitor_union_cs (); /// visit union. We provide code for this method in the derived class virtual int visit_union (be_union *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_ch.h index cedb2782d5a..af566f93483 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_ch.h @@ -28,7 +28,7 @@ public: be_visitor_union_branch_cdr_op_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_union_branch_cdr_op_ch (void); + ~be_visitor_union_branch_cdr_op_ch (); /// visit the union_branch node virtual int visit_union_branch (be_union_branch *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_cs.h index 20aa8847d06..6834916b463 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_cs.h @@ -28,7 +28,7 @@ public: be_visitor_union_branch_cdr_op_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_union_branch_cdr_op_cs (void); + ~be_visitor_union_branch_cdr_op_cs (); /// visit the union_branch node virtual int visit_union_branch (be_union_branch *node); @@ -50,7 +50,7 @@ public: virtual int visit_union (be_union *node); /// extra code generation for an explicit default case - virtual int explicit_default (void); + virtual int explicit_default (); private: int emit_valuetype_common (be_type *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/private_ch.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/private_ch.h index 85845146063..b2a2272f31d 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/private_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union_branch/private_ch.h @@ -28,7 +28,7 @@ class be_visitor_union_branch_private_ch : public be_visitor_decl { public: be_visitor_union_branch_private_ch (be_visitor_context *ctx); - ~be_visitor_union_branch_private_ch (void); + ~be_visitor_union_branch_private_ch (); virtual int visit_union_branch (be_union_branch *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_assign_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_assign_cs.h index 79d3801b9f2..4159df97ac9 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_assign_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_assign_cs.h @@ -28,7 +28,7 @@ class be_visitor_union_branch_public_assign_cs { public: be_visitor_union_branch_public_assign_cs (be_visitor_context *ctx); - ~be_visitor_union_branch_public_assign_cs (void); + ~be_visitor_union_branch_public_assign_cs (); virtual int visit_union_branch (be_union_branch *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_ch.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_ch.h index 9cbd194ff40..c8d55b282e0 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_ch.h @@ -29,7 +29,7 @@ class be_visitor_union_branch_public_ch : public be_visitor_decl { public: be_visitor_union_branch_public_ch (be_visitor_context *ctx); - ~be_visitor_union_branch_public_ch (void); + ~be_visitor_union_branch_public_ch (); virtual int visit_union_branch (be_union_branch *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_ci.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_ci.h index 496c5c2e748..4667b8f4801 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_ci.h @@ -27,7 +27,7 @@ class be_visitor_union_branch_public_ci : public be_visitor_decl { public: be_visitor_union_branch_public_ci (be_visitor_context *ctx); - ~be_visitor_union_branch_public_ci (void); + ~be_visitor_union_branch_public_ci (); virtual int visit_union_branch (be_union_branch *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_constructor_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_constructor_cs.h index c30d1d0955a..2490a42ea32 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_constructor_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_constructor_cs.h @@ -25,7 +25,7 @@ class be_visitor_union_branch_public_constructor_cs : public be_visitor_decl { public: be_visitor_union_branch_public_constructor_cs (be_visitor_context *ctx); - ~be_visitor_union_branch_public_constructor_cs (void); + ~be_visitor_union_branch_public_constructor_cs (); virtual int visit_union_branch (be_union_branch *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_cs.h index 99fa4686efa..805d29f620c 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_cs.h @@ -28,7 +28,7 @@ class be_visitor_union_branch_public_cs : public be_visitor_decl { public: be_visitor_union_branch_public_cs (be_visitor_context *ctx); - ~be_visitor_union_branch_public_cs (void); + ~be_visitor_union_branch_public_cs (); virtual int visit_union_branch (be_union_branch *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_reset_cs.h b/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_reset_cs.h index 64cea01a6f5..763de71c464 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_reset_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union_branch/public_reset_cs.h @@ -27,7 +27,7 @@ class be_visitor_union_branch_public_reset_cs : public be_visitor_decl { public: be_visitor_union_branch_public_reset_cs (be_visitor_context *ctx); - ~be_visitor_union_branch_public_reset_cs (void); + ~be_visitor_union_branch_public_reset_cs (); virtual int visit_union_branch (be_union_branch *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_union_fwd/union_fwd_ch.h b/TAO/TAO_IDL/be_include/be_visitor_union_fwd/union_fwd_ch.h index 2d68892a6d2..96c3e7a7f5c 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_union_fwd/union_fwd_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_union_fwd/union_fwd_ch.h @@ -25,7 +25,7 @@ class be_visitor_union_fwd_ch : public be_visitor_decl public: be_visitor_union_fwd_ch (be_visitor_context *ctx); - ~be_visitor_union_fwd_ch (void); + ~be_visitor_union_fwd_ch (); virtual int visit_union_fwd (be_union_fwd *node); }; diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuebox/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_valuebox/any_op_ch.h index 23bf51ed796..080cc5ae17b 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuebox/any_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuebox/any_op_ch.h @@ -30,7 +30,7 @@ public: be_visitor_valuebox_any_op_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_valuebox_any_op_ch (void); + ~be_visitor_valuebox_any_op_ch (); /// visit valuebox virtual int visit_valuebox (be_valuebox *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuebox/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_valuebox/any_op_cs.h index f218e2a22ad..cd90d608340 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuebox/any_op_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuebox/any_op_cs.h @@ -30,7 +30,7 @@ public: be_visitor_valuebox_any_op_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_valuebox_any_op_cs (void); + ~be_visitor_valuebox_any_op_cs (); /// visit valuebox virtual int visit_valuebox (be_valuebox *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuebox/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_valuebox/cdr_op_ch.h index aec6458437e..8b0036312bb 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuebox/cdr_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuebox/cdr_op_ch.h @@ -31,7 +31,7 @@ public: be_visitor_valuebox_cdr_op_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_valuebox_cdr_op_ch (void); + ~be_visitor_valuebox_cdr_op_ch (); /// visit valuebox virtual int visit_valuebox (be_valuebox *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuebox/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_valuebox/cdr_op_cs.h index c3b5a917306..37bf0fadb88 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuebox/cdr_op_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuebox/cdr_op_cs.h @@ -31,7 +31,7 @@ public: be_visitor_valuebox_cdr_op_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_valuebox_cdr_op_cs (void); + ~be_visitor_valuebox_cdr_op_cs (); /// visit valuebox virtual int visit_valuebox (be_valuebox *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuebox/field_ch.h b/TAO/TAO_IDL/be_include/be_visitor_valuebox/field_ch.h index 38b0b3b0b31..34fefe71189 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuebox/field_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuebox/field_ch.h @@ -36,7 +36,7 @@ public: be_visitor_valuebox_field_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_valuebox_field_ch (void); + ~be_visitor_valuebox_field_ch (); /// visit the union_branch node virtual int visit_field (be_field *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuebox/field_ci.h b/TAO/TAO_IDL/be_include/be_visitor_valuebox/field_ci.h index d4670541979..809f453fbd7 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuebox/field_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuebox/field_ci.h @@ -31,7 +31,7 @@ public: be_visitor_valuebox_field_ci (be_visitor_context *ctx); /// destructor - ~be_visitor_valuebox_field_ci (void); + ~be_visitor_valuebox_field_ci (); /// visit the field node virtual int visit_field (be_field *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuebox/union_member_ci.h b/TAO/TAO_IDL/be_include/be_visitor_valuebox/union_member_ci.h index fab13fc5d84..896e8b55351 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuebox/union_member_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuebox/union_member_ci.h @@ -31,7 +31,7 @@ public: be_visitor_valuebox_union_member_ci (be_visitor_context *ctx); /// destructor - ~be_visitor_valuebox_union_member_ci (void); + ~be_visitor_valuebox_union_member_ci (); /// visit the field node virtual int visit_union_member (be_union_branch *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox.h b/TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox.h index b3709563f2f..1b2323c35fa 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox.h @@ -28,7 +28,7 @@ public: be_visitor_valuebox (be_visitor_context *ctx); /// destructor - ~be_visitor_valuebox (void); + ~be_visitor_valuebox (); /// visit attribute. We provide code for this method in the derived class virtual int visit_valuebox (be_valuebox *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox_ch.h b/TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox_ch.h index 118a9668d65..a51de1e2bf3 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox_ch.h @@ -29,7 +29,7 @@ public: be_visitor_valuebox_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_valuebox_ch (void); + ~be_visitor_valuebox_ch (); /// visit valuebox. virtual int visit_valuebox (be_valuebox *node); @@ -66,14 +66,14 @@ private: const char * type_suffix, bool is_any); - void emit_default_constructor (void); + void emit_default_constructor (); void emit_constructor_one_arg (be_decl *node, const char * type_suffix, const char * const_prefix, const char * ref_modifier); - void emit_copy_constructor (void); + void emit_copy_constructor (); void emit_assignment (be_decl *node, const char * type_suffix, diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox_ci.h b/TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox_ci.h index 49dfaa4068d..9648cd6d43f 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox_ci.h @@ -29,7 +29,7 @@ public: be_visitor_valuebox_ci (be_visitor_context *ctx); /// destructor - ~be_visitor_valuebox_ci (void); + ~be_visitor_valuebox_ci (); /// visit valuebox. virtual int visit_valuebox (be_valuebox *node); @@ -66,7 +66,7 @@ private: const char * type_suffix, bool is_any); - void emit_default_constructor (void); + void emit_default_constructor (); void emit_default_constructor_alloc (be_decl *node); @@ -75,7 +75,7 @@ private: void emit_constructor_one_arg_alloc (be_decl *node); - void emit_copy_constructor (void); + void emit_copy_constructor (); void emit_copy_constructor_alloc (be_decl *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox_cs.h b/TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox_cs.h index e796c1609f9..04f7d3c99f7 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox_cs.h @@ -29,7 +29,7 @@ public: be_visitor_valuebox_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_valuebox_cs (void); + ~be_visitor_valuebox_cs (); /// visit valuebox. virtual int visit_valuebox (be_valuebox *node); @@ -64,7 +64,7 @@ public: private: /// Generate virtual destructor. - void emit_destructor (void); + void emit_destructor (); int emit_for_predef_enum (char const * marshal_arg); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/any_op_ch.h index f5cc50396c7..8e3bb6945de 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/any_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/any_op_ch.h @@ -30,7 +30,7 @@ public: be_visitor_valuetype_any_op_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype_any_op_ch (void); + ~be_visitor_valuetype_any_op_ch (); virtual int visit_valuetype (be_valuetype *node); virtual int visit_eventtype (be_eventtype *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/any_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/any_op_cs.h index 93f11d5405e..59592143bf3 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/any_op_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/any_op_cs.h @@ -30,7 +30,7 @@ public: be_visitor_valuetype_any_op_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype_any_op_cs (void); + ~be_visitor_valuetype_any_op_cs (); virtual int visit_valuetype (be_valuetype *node); virtual int visit_eventtype (be_eventtype *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/arglist.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/arglist.h index d2e366c65ab..72e09aa5740 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/arglist.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/arglist.h @@ -30,7 +30,7 @@ public: be_visitor_obv_operation_arglist (be_visitor_context *ctx); /// destructor - ~be_visitor_obv_operation_arglist (void); + ~be_visitor_obv_operation_arglist (); /// special arglist generation for amh_exceptionholders bool is_amh_exception_holder (be_operation *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/cdr_op_ch.h index c4348820b8b..524ff9818ce 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/cdr_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/cdr_op_ch.h @@ -31,7 +31,7 @@ public: be_visitor_valuetype_cdr_op_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype_cdr_op_ch (void); + ~be_visitor_valuetype_cdr_op_ch (); virtual int visit_valuetype (be_valuetype *node); virtual int visit_eventtype (be_eventtype *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/cdr_op_cs.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/cdr_op_cs.h index dfa3e35af76..8edf6514674 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/cdr_op_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/cdr_op_cs.h @@ -31,7 +31,7 @@ public: be_visitor_valuetype_cdr_op_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype_cdr_op_cs (void); + ~be_visitor_valuetype_cdr_op_cs (); virtual int visit_valuetype (be_valuetype *node); virtual int visit_eventtype (be_eventtype *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_cdr_ch.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_cdr_ch.h index ad2c3f30bb8..a3f1302dac6 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_cdr_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_cdr_ch.h @@ -29,7 +29,7 @@ public: be_visitor_valuetype_field_cdr_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype_field_cdr_ch (void); + ~be_visitor_valuetype_field_cdr_ch (); /// visit the field node virtual int visit_field (be_field *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_cdr_cs.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_cdr_cs.h index 1af6277b317..c85bb564e38 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_cdr_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_cdr_cs.h @@ -29,7 +29,7 @@ public: be_visitor_valuetype_field_cdr_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype_field_cdr_cs (void); + ~be_visitor_valuetype_field_cdr_cs (); /// visit the field node virtual int visit_field (be_field *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_ch.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_ch.h index 1d84862b461..cfe51a9af28 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_ch.h @@ -30,7 +30,7 @@ public: be_visitor_valuetype_field_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype_field_ch (void); + ~be_visitor_valuetype_field_ch (); /// visit the field node virtual int visit_field (be_field *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_ci.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_ci.h index 6a8153cac77..461bd00d1b8 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_ci.h @@ -31,7 +31,7 @@ public: be_visitor_valuetype_field_ci (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype_field_ci (void); + ~be_visitor_valuetype_field_ci (); /// visit the field node virtual int visit_field (be_field *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_cs.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_cs.h index 856acd77c00..4680215ca15 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_cs.h @@ -31,7 +31,7 @@ public: be_visitor_valuetype_field_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype_field_cs (void); + ~be_visitor_valuetype_field_cs (); /// visit the field node virtual int visit_field (be_field *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/marshal_ch.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/marshal_ch.h index 4908c95737e..4363664d7db 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/marshal_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/marshal_ch.h @@ -31,7 +31,7 @@ public: be_visitor_valuetype_marshal_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype_marshal_ch (void); + ~be_visitor_valuetype_marshal_ch (); virtual int visit_valuetype (be_valuetype *node); virtual int visit_eventtype (be_eventtype *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/marshal_cs.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/marshal_cs.h index c6024fa7087..8e23ed10fbe 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/marshal_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/marshal_cs.h @@ -31,7 +31,7 @@ public: be_visitor_valuetype_marshal_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype_marshal_cs (void); + ~be_visitor_valuetype_marshal_cs (); virtual int visit_valuetype (be_valuetype *node); virtual int visit_eventtype (be_eventtype *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/obv_module.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/obv_module.h index b25cce5d72f..60bbde6b4e2 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/obv_module.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/obv_module.h @@ -31,7 +31,7 @@ public: be_visitor_obv_module (be_visitor_context *ctx); /// destructor - ~be_visitor_obv_module (void); + ~be_visitor_obv_module (); virtual int visit_module (be_module *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype.h index 6e5e5677ac8..fe09e70ad43 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype.h @@ -32,7 +32,7 @@ public: be_visitor_valuetype (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype (void); + ~be_visitor_valuetype (); public: /// visit the scope of the valuetype node diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_ch.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_ch.h index 8affb65795e..290ea60d68d 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_ch.h @@ -32,7 +32,7 @@ public: be_visitor_valuetype_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype_ch (void); + ~be_visitor_valuetype_ch (); virtual int visit_valuetype (be_valuetype *node); virtual int visit_eventtype (be_eventtype *node); @@ -40,8 +40,8 @@ public: virtual int visit_operation (be_operation *node); virtual int visit_field (be_field *node); - void begin_public (void); - void begin_private (void); + void begin_public (); + void begin_private (); /// Helper method passed to the template method to generate code for /// the operations of the parents of supported interfaces. diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_ci.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_ci.h index a0c02219945..47f4bd861b6 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_ci.h @@ -28,7 +28,7 @@ public: be_visitor_valuetype_ci (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype_ci (void); + ~be_visitor_valuetype_ci (); virtual int visit_valuetype (be_valuetype *node); virtual int visit_eventtype (be_eventtype *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_cs.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_cs.h index df723ab6b93..44e785a5013 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_cs.h @@ -26,7 +26,7 @@ class be_visitor_valuetype_cs : public be_visitor_valuetype public: be_visitor_valuetype_cs (be_visitor_context *ctx); - ~be_visitor_valuetype_cs (void); + ~be_visitor_valuetype_cs (); virtual int visit_valuetype (be_valuetype *node); virtual int visit_eventtype (be_eventtype *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_init.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_init.h index fae38511a86..9157b6c534c 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_init.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_init.h @@ -30,12 +30,12 @@ public: be_visitor_valuetype_init (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype_init (void); + ~be_visitor_valuetype_init (); public: - void begin_public (void); - void begin_private (void); + void begin_public (); + void begin_private (); }; #endif /* _BE_VALUETYPE_VALUETYPE_INIT_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_init_arglist_ch.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_init_arglist_ch.h index b9fc5cd7511..2aea1d11f76 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_init_arglist_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_init_arglist_ch.h @@ -29,7 +29,7 @@ public: be_visitor_valuetype_init_arglist_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype_init_arglist_ch (void); + ~be_visitor_valuetype_init_arglist_ch (); /// visit factory construct virtual int visit_factory (be_factory *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_init_ch.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_init_ch.h index 2d0ad7cff51..74c73677e06 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_init_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_init_ch.h @@ -31,7 +31,7 @@ public: be_visitor_valuetype_init_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype_init_ch (void); + ~be_visitor_valuetype_init_ch (); virtual int visit_valuetype (be_valuetype *node); virtual int visit_eventtype (be_eventtype *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_init_ci.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_init_ci.h index 93860a85d62..29c2cff6601 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_init_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_init_ci.h @@ -31,7 +31,7 @@ public: be_visitor_valuetype_init_ci (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype_init_ci (void); + ~be_visitor_valuetype_init_ci (); }; #endif /* _BE_VALUETYPE_VALUETYPE_INIT_CI_H_ */ diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_init_cs.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_init_cs.h index fdc1e72a47b..674284dda70 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_init_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_init_cs.h @@ -31,7 +31,7 @@ public: be_visitor_valuetype_init_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype_init_cs (void); + ~be_visitor_valuetype_init_cs (); virtual int visit_valuetype (be_valuetype *node); virtual int visit_eventtype (be_eventtype *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_ch.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_ch.h index 19b66bd1533..5fa1dd5cce6 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_ch.h @@ -34,7 +34,7 @@ public: be_visitor_valuetype_obv_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype_obv_ch (void); + ~be_visitor_valuetype_obv_ch (); virtual int visit_valuetype (be_valuetype *node); virtual int visit_eventtype (be_eventtype *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_ci.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_ci.h index fcd6bb5dbc7..232a30cb445 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_ci.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_ci.h @@ -34,7 +34,7 @@ public: be_visitor_valuetype_obv_ci (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype_obv_ci (void); + ~be_visitor_valuetype_obv_ci (); virtual int visit_valuetype (be_valuetype *node); virtual int visit_eventtype (be_eventtype *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_cs.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_cs.h index 29e984c2758..f05ac4cd831 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_cs.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_cs.h @@ -30,7 +30,7 @@ public: be_visitor_valuetype_obv_cs (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype_obv_cs (void); + ~be_visitor_valuetype_obv_cs (); virtual int visit_valuetype (be_valuetype *node); virtual int visit_eventtype (be_eventtype *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_sh.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_sh.h index a51a01244fc..fb1d2e30603 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_sh.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_sh.h @@ -28,7 +28,7 @@ public: be_visitor_valuetype_sh (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype_sh (void); + ~be_visitor_valuetype_sh (); virtual int visit_valuetype (be_valuetype *node); virtual int visit_eventtype (be_eventtype *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_ss.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_ss.h index 0c844fae670..b28f0f8f191 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_ss.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_ss.h @@ -29,7 +29,7 @@ public: be_visitor_valuetype_ss (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype_ss (void); + ~be_visitor_valuetype_ss (); virtual int visit_valuetype (be_valuetype *node); virtual int visit_eventtype (be_eventtype *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd/any_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd/any_op_ch.h index 4df1ecf1d02..1bb2b44360f 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd/any_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd/any_op_ch.h @@ -30,7 +30,7 @@ public: be_visitor_valuetype_fwd_any_op_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype_fwd_any_op_ch (void); + ~be_visitor_valuetype_fwd_any_op_ch (); virtual int visit_valuetype_fwd (be_valuetype_fwd *node); virtual int visit_eventtype_fwd (be_eventtype_fwd *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd/cdr_op_ch.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd/cdr_op_ch.h index 8835cc726de..0a3761bf5f2 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd/cdr_op_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd/cdr_op_ch.h @@ -33,7 +33,7 @@ public: be_visitor_valuetype_fwd_cdr_op_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype_fwd_cdr_op_ch (void); + ~be_visitor_valuetype_fwd_cdr_op_ch (); virtual int visit_valuetype_fwd (be_valuetype_fwd *node); virtual int visit_eventtype_fwd (be_eventtype_fwd *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd/valuetype_fwd_ch.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd/valuetype_fwd_ch.h index b19b47a1eb2..1b86d70af06 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd/valuetype_fwd_ch.h +++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd/valuetype_fwd_ch.h @@ -28,7 +28,7 @@ public: be_visitor_valuetype_fwd_ch (be_visitor_context *ctx); /// destructor - ~be_visitor_valuetype_fwd_ch (void); + ~be_visitor_valuetype_fwd_ch (); virtual int visit_valuetype_fwd (be_valuetype_fwd *node); virtual int visit_eventtype_fwd (be_eventtype_fwd *node); diff --git a/TAO/TAO_IDL/be_include/be_visitor_xplicit_pre_proc.h b/TAO/TAO_IDL/be_include/be_visitor_xplicit_pre_proc.h index 0bcf140d4e8..4050b455279 100644 --- a/TAO/TAO_IDL/be_include/be_visitor_xplicit_pre_proc.h +++ b/TAO/TAO_IDL/be_include/be_visitor_xplicit_pre_proc.h @@ -28,7 +28,7 @@ class be_visitor_xplicit_pre_proc : public be_visitor_ccm_pre_proc public: be_visitor_xplicit_pre_proc (be_visitor_context *ctx); - virtual ~be_visitor_xplicit_pre_proc (void); + virtual ~be_visitor_xplicit_pre_proc (); virtual int visit_home (be_home *node); @@ -61,7 +61,7 @@ public: virtual int visit_predefined_type (be_predefined_type *node); // Member accessor - be_interface *xplicit (void) const; + be_interface *xplicit () const; private: void check_and_store (AST_Decl *node); diff --git a/TAO/TAO_IDL/driver/drv_preproc.cpp b/TAO/TAO_IDL/driver/drv_preproc.cpp index 0df91e8788a..3e02a5c4ac1 100644 --- a/TAO/TAO_IDL/driver/drv_preproc.cpp +++ b/TAO/TAO_IDL/driver/drv_preproc.cpp @@ -1211,7 +1211,7 @@ DRV_pre_proc (const char *myfile) // is often not enough. We determine // the required space and arg nr // dynamically here. - ACE_Process_Options cpp_options (1, // Inherit environment. + ACE_Process_Options cpp_options (true, // Inherit environment. DRV_cpp_calc_total_argsize (), 16 * 1024, 512, diff --git a/TAO/TAO_IDL/fe/fe_utils.cpp b/TAO/TAO_IDL/fe/fe_utils.cpp index 330dadec876..0279f5a5e0a 100644 --- a/TAO/TAO_IDL/fe/fe_utils.cpp +++ b/TAO/TAO_IDL/fe/fe_utils.cpp @@ -267,7 +267,7 @@ FE_Utils::create_uses_multiple_stuff (AST_Component *c, idl_global->scopes ().push (c); AST_Structure *connection = - idl_global->gen ()->create_structure (&sn, 0, 0); + idl_global->gen ()->create_structure (&sn, false, false); struct_id.destroy (); @@ -329,8 +329,8 @@ FE_Utils::create_uses_multiple_stuff (AST_Component *c, idl_global->gen ()->create_sequence (bound_expr, connection, nullptr, - 0, - 0); + false, + false); ACE_CString seq_string (struct_name); seq_string += 's'; @@ -340,8 +340,8 @@ FE_Utils::create_uses_multiple_stuff (AST_Component *c, AST_Typedef *connections = idl_global->gen ()->create_typedef (sequence, &seq_name, - 0, - 0); + false, + false); seq_id.destroy (); (void) c->fe_add_typedef (connections); diff --git a/TAO/TAO_IDL/fe/idl.tab.cpp b/TAO/TAO_IDL/fe/idl.tab.cpp index 3bebb62ba5e..f87f408f96f 100644 --- a/TAO/TAO_IDL/fe/idl.tab.cpp +++ b/TAO/TAO_IDL/fe/idl.tab.cpp @@ -4486,8 +4486,8 @@ yyreduce: if (s != nullptr) { f = idl_global->gen ()->create_interface_fwd (&n, - 0, - 0); + false, + false); (void) s->fe_add_interface_fwd (f); } @@ -4516,8 +4516,8 @@ yyreduce: if (s != nullptr) { f = idl_global->gen ()->create_interface_fwd (&n, - 1, - 0); + true, + false); (void) s->fe_add_interface_fwd (f); } @@ -4546,8 +4546,8 @@ yyreduce: if (s != nullptr) { f = idl_global->gen ()->create_interface_fwd (&n, - 0, - 1); + false, + true); (void) s->fe_add_interface_fwd (f); } @@ -7253,8 +7253,8 @@ yyreduce: &sn, array_dims->length (), array_dims, - 0, - 0 + false, + false ); array->base_type_annotations (*base_type_annotations); sn.destroy (); @@ -10772,7 +10772,7 @@ yyerrlab: yyerrorlab: /* Pacify compilers when the user code never invokes YYERROR and the label yyerrorlab therefore never appears in user code. */ - if (0) + if (false) YYERROR; /* Do not reclaim the symbols of the rule whose action triggered diff --git a/TAO/TAO_IDL/fe/idl.tab.hpp b/TAO/TAO_IDL/fe/idl.tab.hpp index fbe1e9b75cc..354e713e626 100644 --- a/TAO/TAO_IDL/fe/idl.tab.hpp +++ b/TAO/TAO_IDL/fe/idl.tab.hpp @@ -203,6 +203,6 @@ typedef union YYSTYPE YYSTYPE; extern YYSTYPE tao_yylval; -int tao_yyparse (void); +int tao_yyparse (); #endif /* !YY_TAO_YY_FE_IDL_TAB_HPP_INCLUDED */ diff --git a/TAO/TAO_IDL/fe/idl.yy.cpp b/TAO/TAO_IDL/fe/idl.yy.cpp index cb9debd488f..c919be1d965 100644 --- a/TAO/TAO_IDL/fe/idl.yy.cpp +++ b/TAO/TAO_IDL/fe/idl.yy.cpp @@ -1524,7 +1524,7 @@ YY_DECL #line 1528 "fe/idl.yy.cpp" - while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */ + while ( /*CONSTCOND*/true ) /* loops until end-of-file is reached */ { yy_cp = (yy_c_buf_p); @@ -4195,7 +4195,7 @@ idl_valid_version (char *s) // Nothing preceding decimal point. if (*s == '.') { - return 0; + return false; } char *minor = ACE_OS::strchr (s, '.'); @@ -4204,13 +4204,13 @@ idl_valid_version (char *s) if (minor == nullptr) { // No decimal point. - return 0; + return false; } if (*(minor + 1) == '\0') { // Nothing following decimal point. - return 0; + return false; } char *tmp = minor + 1; @@ -4219,7 +4219,7 @@ idl_valid_version (char *s) { if (!isdigit (tmp[i])) { - return 0; + return false; } } @@ -4229,7 +4229,7 @@ idl_valid_version (char *s) { if (!isdigit (s[i])) { - return 0; + return false; } } @@ -4237,10 +4237,10 @@ idl_valid_version (char *s) if (ACE_OS::atoi (minor + 1) > ACE_UINT16_MAX || ACE_OS::atoi (s) > ACE_UINT16_MAX) { - return 0; + return false; } - return 1; + return true; } static AST_Decl * diff --git a/TAO/TAO_IDL/include/ast_argument.h b/TAO/TAO_IDL/include/ast_argument.h index 1666dd12548..6f90a060c00 100644 --- a/TAO/TAO_IDL/include/ast_argument.h +++ b/TAO/TAO_IDL/include/ast_argument.h @@ -87,10 +87,10 @@ public: AST_Type *ft, UTL_ScopedName *n); - virtual ~AST_Argument (void); + virtual ~AST_Argument (); // Data Accessors. - Direction direction (void); + Direction direction (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); @@ -99,7 +99,7 @@ public: virtual int ast_accept (ast_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); static AST_Decl::NodeType const NT; diff --git a/TAO/TAO_IDL/include/ast_array.h b/TAO/TAO_IDL/include/ast_array.h index 6fac7521260..b82000a4a50 100644 --- a/TAO/TAO_IDL/include/ast_array.h +++ b/TAO/TAO_IDL/include/ast_array.h @@ -77,7 +77,6 @@ class ast_visitor; // Representation of array declaration: // An array is a combination of a list of dimensions and a base type. - class TAO_IDL_FE_Export AST_Array : public virtual AST_ConcreteType { public: @@ -87,26 +86,26 @@ public: bool local, bool abstract); - virtual ~AST_Array (void); + virtual ~AST_Array (); // Data Accessors. - ACE_CDR::ULong n_dims (void); + ACE_CDR::ULong n_dims (); - AST_Expression **dims (void); + AST_Expression **dims (); void set_dims (AST_Expression **, ACE_CDR::ULong); - AST_Type *base_type (void) const; + AST_Type *base_type () const; void set_base_type (AST_Type *nbt); // Recursively called on valuetype to check for legal use as // a primary key. Overridden for valuetype, struct, sequence, // union, array, typedef, and interface. - virtual bool legal_for_primary_key (void) const; + virtual bool legal_for_primary_key () const; // Cleanup. - virtual void destroy (void); + virtual void destroy (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); @@ -125,7 +124,7 @@ public: ///} protected: - virtual int compute_size_type (void); + virtual int compute_size_type (); // Compute the size type if it is unknown. private: diff --git a/TAO/TAO_IDL/include/ast_attribute.h b/TAO/TAO_IDL/include/ast_attribute.h index e1d813fd9cf..b8be84250cc 100644 --- a/TAO/TAO_IDL/include/ast_attribute.h +++ b/TAO/TAO_IDL/include/ast_attribute.h @@ -81,13 +81,13 @@ public: bool local, bool abstract); - virtual ~AST_Attribute (void); + virtual ~AST_Attribute (); // Data Accessors. - bool readonly (void) const; - UTL_ExceptList *get_get_exceptions (void) const; - UTL_ExceptList *get_set_exceptions (void) const; + bool readonly () const; + UTL_ExceptList *get_get_exceptions () const; + UTL_ExceptList *get_set_exceptions () const; // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); @@ -96,7 +96,7 @@ public: virtual int ast_accept (ast_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); // Methods to add exceptions directly, used when copying node. UTL_ExceptList *be_add_get_exceptions (UTL_ExceptList *t); @@ -119,7 +119,7 @@ private: // Scope Management Protocol. - friend int tao_yyparse (void); + friend int tao_yyparse (); virtual UTL_NameList *fe_add_get_exceptions (UTL_NameList *e); virtual UTL_NameList *fe_add_set_exceptions (UTL_NameList *e); }; diff --git a/TAO/TAO_IDL/include/ast_component.h b/TAO/TAO_IDL/include/ast_component.h index fe962cab9ac..7d45a7b455b 100644 --- a/TAO/TAO_IDL/include/ast_component.h +++ b/TAO/TAO_IDL/include/ast_component.h @@ -24,7 +24,7 @@ public: AST_Interface **supports_flat, long n_supports_flat); - virtual ~AST_Component (void); + virtual ~AST_Component (); // This also calls the base class version. virtual void redefine (AST_Interface *from); @@ -39,11 +39,11 @@ public: // Accessors. - AST_Component *base_component (void) const; + AST_Component *base_component () const; - AST_Type **supports (void) const; + AST_Type **supports () const; - long n_supports (void) const; + long n_supports () const; // Override for component of UTL_Scope method. virtual AST_Decl *special_lookup (UTL_ScopedName *e, @@ -51,7 +51,7 @@ public: AST_Decl *&final_parent_decl); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // Allows adding an uses to a later point // The port i is inserted after port ix, if diff --git a/TAO/TAO_IDL/include/ast_component_fwd.h b/TAO/TAO_IDL/include/ast_component_fwd.h index 528b1da6753..61b721beff6 100644 --- a/TAO/TAO_IDL/include/ast_component_fwd.h +++ b/TAO/TAO_IDL/include/ast_component_fwd.h @@ -12,10 +12,10 @@ public: AST_ComponentFwd (AST_Interface *dummy, UTL_ScopedName *n); - virtual ~AST_ComponentFwd (void); + virtual ~AST_ComponentFwd (); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &); @@ -24,7 +24,7 @@ public: virtual int ast_accept (ast_visitor *visitor); // Is this decl a forward declared type (Yes) - virtual bool is_fwd (void); + virtual bool is_fwd (); static AST_Decl::NodeType const NT; }; diff --git a/TAO/TAO_IDL/include/ast_concrete_type.h b/TAO/TAO_IDL/include/ast_concrete_type.h index 79caca0859a..3d15bc1ba7b 100644 --- a/TAO/TAO_IDL/include/ast_concrete_type.h +++ b/TAO/TAO_IDL/include/ast_concrete_type.h @@ -77,10 +77,10 @@ public: AST_ConcreteType (AST_Decl::NodeType nt, UTL_ScopedName *n); - virtual ~AST_ConcreteType (void); + virtual ~AST_ConcreteType (); // Cleanup. - virtual void destroy (void); + virtual void destroy (); virtual bool annotatable () const { return true; } }; diff --git a/TAO/TAO_IDL/include/ast_connector.h b/TAO/TAO_IDL/include/ast_connector.h index 54d08ce7e26..d1748e5853e 100644 --- a/TAO/TAO_IDL/include/ast_connector.h +++ b/TAO/TAO_IDL/include/ast_connector.h @@ -9,17 +9,17 @@ class TAO_IDL_FE_Export AST_Connector : public virtual AST_Component { public: - AST_Connector (void); + AST_Connector (); AST_Connector (UTL_ScopedName *n, AST_Connector *base_connector); - virtual ~AST_Connector (void); + virtual ~AST_Connector (); - AST_Connector *base_connector (void) const; + AST_Connector *base_connector () const; // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &); diff --git a/TAO/TAO_IDL/include/ast_constant.h b/TAO/TAO_IDL/include/ast_constant.h index f0961ab11be..b974e63a842 100644 --- a/TAO/TAO_IDL/include/ast_constant.h +++ b/TAO/TAO_IDL/include/ast_constant.h @@ -92,23 +92,23 @@ public: AST_Expression *ev, UTL_ScopedName *n); - virtual ~AST_Constant (void); + virtual ~AST_Constant (); // Data Accessors. - AST_Expression *constant_value (void); - AST_Expression::ExprType et (void); + AST_Expression *constant_value (); + AST_Expression::ExprType et (); // Accessors for the private member. - bool ifr_added (void); + bool ifr_added (); void ifr_added (bool val); - const char *exprtype_to_string (void); + const char *exprtype_to_string (); // Returns the appropriate type. static const char *exprtype_to_string (AST_Expression::ExprType et); // For use with ORBs without the CORBA namespace. - UTL_ScopedName *enum_full_name (void); + UTL_ScopedName *enum_full_name (); // If our type is enum, we have to generate the scoped name. // AST Dumping. @@ -118,7 +118,7 @@ public: virtual int ast_accept (ast_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); static AST_Decl::NodeType const NT; diff --git a/TAO/TAO_IDL/include/ast_consumes.h b/TAO/TAO_IDL/include/ast_consumes.h index 22c84fc62e3..9060876b5c3 100644 --- a/TAO/TAO_IDL/include/ast_consumes.h +++ b/TAO/TAO_IDL/include/ast_consumes.h @@ -12,10 +12,10 @@ public: AST_Consumes (UTL_ScopedName *n, AST_Type *consumes_type); - virtual ~AST_Consumes (void); + virtual ~AST_Consumes (); // Data Accessor. - AST_Type *consumes_type (void) const; + AST_Type *consumes_type () const; // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); @@ -24,7 +24,7 @@ public: virtual int ast_accept (ast_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); static AST_Decl::NodeType const NT; }; diff --git a/TAO/TAO_IDL/include/ast_decl.h b/TAO/TAO_IDL/include/ast_decl.h index a617dc4023b..c018be50aba 100644 --- a/TAO/TAO_IDL/include/ast_decl.h +++ b/TAO/TAO_IDL/include/ast_decl.h @@ -93,17 +93,17 @@ protected: COMMON_Base (bool local = false, bool abstract = false); - virtual ~COMMON_Base (void); + virtual ~COMMON_Base (); public: // A no-op, overridden in the child classes. - virtual void destroy (void); + virtual void destroy (); // Accessor needs to get overridden for a few types. - virtual bool is_local (void); + virtual bool is_local (); void is_local (bool val); - bool is_abstract (void) const; + bool is_abstract () const; void is_abstract (bool val); protected: @@ -195,10 +195,10 @@ public: UTL_ScopedName *name, AST_Decl *other); - virtual ~AST_Decl (void); + virtual ~AST_Decl (); // Cleanup method. - virtual void destroy (void); + virtual void destroy (); // If this decl has been found, some types need to be // moved onto their true definitions etc. Defaults to @@ -206,28 +206,28 @@ public: virtual AST_Decl *adjust_found (bool ignore_fwd, bool full_def_only); // Is this decl a forward declared type (default false) - virtual bool is_fwd (void); + virtual bool is_fwd (); // Data Accessors. - bool imported (void); + bool imported (); void set_imported (bool is_it); - bool in_main_file (void); + bool in_main_file (); void set_in_main_file (bool is_it); - UTL_Scope *defined_in (void); + UTL_Scope *defined_in (); void set_defined_in (UTL_Scope *); - NodeType node_type (void); + NodeType node_type (); - long line (void); + long line (); void set_line (long l); - ACE_CString & file_name (void); + ACE_CString & file_name (); void set_file_name (ACE_CString s); - UTL_ScopedName *name (void); + UTL_ScopedName *name (); UTL_ScopedName *compute_name (const char *prefix, const char *suffix); @@ -236,36 +236,36 @@ public: void set_name (UTL_ScopedName *n); - Identifier *local_name (void); + Identifier *local_name (); void local_name (Identifier *id); Identifier *compute_local_name (const char *prefix, const char *sufix); // Apply prefix and suffix to the local name and return. - virtual const char *full_name (void); + virtual const char *full_name (); // Return the stringified full name. - virtual const char *flat_name (void); + virtual const char *flat_name (); // Return the flattened full scoped name. - const char *repoID (void); + const char *repoID (); void repoID (char *value); // Accessors for the repository ID. - const char *prefix (void); + const char *prefix (); void prefix (const char *value); // Accessors for the repository ID prefix. - const char *version (void); + const char *version (); void version (char *value); // Accessors for the version_ member. - bool anonymous (void) const; + bool anonymous () const; void anonymous (bool val); // Accessors for the anonymous_ member. - bool typeid_set (void) const; + bool typeid_set () const; void typeid_set (bool val); // Accessors for the typeid_set_ member. @@ -280,12 +280,12 @@ public: // prefix to the all the reserved keywords. But when we invoke the // operation remotely, we should be sending only the name with out // "_cxx_" prefix. - Identifier *original_local_name (void); + Identifier *original_local_name (); void original_local_name (Identifier *); // To be overridden by the subclasses interface, struct, union, and // the corresponding forward declaration classes. - virtual bool is_defined (void); + virtual bool is_defined (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); @@ -301,18 +301,18 @@ public: // Return TRUE if "this" is a child of "s". bool is_child (AST_Decl *s); - bool is_nested (void); + bool is_nested (); // Determines if we are inside of a nested scope or not. - UTL_ScopedName *last_referenced_as (void) const; + UTL_ScopedName *last_referenced_as () const; void last_referenced_as (UTL_ScopedName *n); // Accessors for the prefix_scope_ member. - UTL_Scope *prefix_scope (void); + UTL_Scope *prefix_scope (); void prefix_scope (UTL_Scope *s); // Useful for GIOP to know if a wstring is being marshaled. - virtual int contains_wstring (void); + virtual int contains_wstring (); void contains_wstring (int val); // Additional checks when we think we have caught an IDL @@ -321,7 +321,7 @@ public: bool masking_checks (AST_Decl *mod); // Accessors for the member. - bool in_tmpl_mod_not_aliased (void) const; + bool in_tmpl_mod_not_aliased () const; void in_tmpl_mod_not_aliased (bool val); /// Set and get annotations for this IDL element @@ -405,13 +405,13 @@ protected: void dump_i (ACE_OSTREAM_TYPE &o, const char *s) const ; - void compute_repoID (void); + void compute_repoID (); // Computes the repoID. - void compute_full_name (void); + void compute_full_name (); // Computes the stringified scoped name. - void compute_flat_name (void); + void compute_flat_name (); // Compute the flattened fully scoped name. const char *node_type_to_string (NodeType nt); diff --git a/TAO/TAO_IDL/include/ast_emits.h b/TAO/TAO_IDL/include/ast_emits.h index c19e620dafb..423a5f8a76a 100644 --- a/TAO/TAO_IDL/include/ast_emits.h +++ b/TAO/TAO_IDL/include/ast_emits.h @@ -12,10 +12,10 @@ public: AST_Emits (UTL_ScopedName *n, AST_Type *emits_type); - virtual ~AST_Emits (void); + virtual ~AST_Emits (); // Data Accessor. - AST_Type *emits_type (void) const; + AST_Type *emits_type () const; // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); @@ -24,7 +24,7 @@ public: virtual int ast_accept (ast_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); static AST_Decl::NodeType const NT; }; diff --git a/TAO/TAO_IDL/include/ast_enum.h b/TAO/TAO_IDL/include/ast_enum.h index dc580f08ab2..32b18f78a4c 100644 --- a/TAO/TAO_IDL/include/ast_enum.h +++ b/TAO/TAO_IDL/include/ast_enum.h @@ -80,7 +80,7 @@ public: bool local, bool abstract); - virtual ~AST_Enum (void); + virtual ~AST_Enum (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &); @@ -89,16 +89,16 @@ public: AST_EnumVal *lookup_by_value (const AST_Expression *v); // Get value to be assigned to next enumerator. - unsigned long next_enum_val (void); + unsigned long next_enum_val (); // Return the count of members - virtual int member_count (void); + virtual int member_count (); // Convert a numeric value to the enum's string name for it. UTL_ScopedName *value_to_name (const unsigned long v); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int ast_accept (ast_visitor *visitor); @@ -108,7 +108,7 @@ public: virtual bool annotatable () const { return true; } private: - friend int tao_yyparse (void); + friend int tao_yyparse (); unsigned long pd_enum_counter; // Value for next enumerator. @@ -116,7 +116,7 @@ private: int member_count_; // Number of members. - int compute_member_count (void); + int compute_member_count (); // Count the number of members. virtual AST_EnumVal *fe_add_enum_val (AST_EnumVal *v); diff --git a/TAO/TAO_IDL/include/ast_enum_val.h b/TAO/TAO_IDL/include/ast_enum_val.h index fcfa695315d..f1667000d0b 100644 --- a/TAO/TAO_IDL/include/ast_enum_val.h +++ b/TAO/TAO_IDL/include/ast_enum_val.h @@ -78,7 +78,7 @@ public: AST_EnumVal (ACE_CDR::ULong v, UTL_ScopedName *n); - virtual ~AST_EnumVal (void); + virtual ~AST_EnumVal (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &); diff --git a/TAO/TAO_IDL/include/ast_eventtype.h b/TAO/TAO_IDL/include/ast_eventtype.h index 10fb255cde7..f7243863e8c 100644 --- a/TAO/TAO_IDL/include/ast_eventtype.h +++ b/TAO/TAO_IDL/include/ast_eventtype.h @@ -20,10 +20,10 @@ public: bool truncatable, bool custom); - virtual ~AST_EventType (void); + virtual ~AST_EventType (); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); diff --git a/TAO/TAO_IDL/include/ast_eventtype_fwd.h b/TAO/TAO_IDL/include/ast_eventtype_fwd.h index 0913ae4e2e0..c859663a582 100644 --- a/TAO/TAO_IDL/include/ast_eventtype_fwd.h +++ b/TAO/TAO_IDL/include/ast_eventtype_fwd.h @@ -12,10 +12,10 @@ public: AST_EventTypeFwd (AST_Interface *dummy, UTL_ScopedName *n); - virtual ~AST_EventTypeFwd (void); + virtual ~AST_EventTypeFwd (); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &); diff --git a/TAO/TAO_IDL/include/ast_exception.h b/TAO/TAO_IDL/include/ast_exception.h index ebcb56fd145..76556795479 100644 --- a/TAO/TAO_IDL/include/ast_exception.h +++ b/TAO/TAO_IDL/include/ast_exception.h @@ -83,7 +83,7 @@ public: bool local, bool abstract); - virtual ~AST_Exception (void); + virtual ~AST_Exception (); virtual bool in_recursion (ACE_Unbounded_Queue<AST_Type *> &list); // Check if we or the parameter node is in recursion. @@ -95,7 +95,7 @@ public: virtual int ast_accept (ast_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); static AST_Decl::NodeType const NT; }; diff --git a/TAO/TAO_IDL/include/ast_expression.h b/TAO/TAO_IDL/include/ast_expression.h index ec2dfc4eb22..9a975bf9502 100644 --- a/TAO/TAO_IDL/include/ast_expression.h +++ b/TAO/TAO_IDL/include/ast_expression.h @@ -161,7 +161,7 @@ public: // Structure to describe value of constant expression and its type. struct AST_ExprValue { - AST_ExprValue (void); + AST_ExprValue (); union { @@ -232,30 +232,30 @@ public: AST_Expression (const ACE_CDR::Fixed &f); // Destructor. - virtual ~AST_Expression (void); + virtual ~AST_Expression (); // Data Accessors. - UTL_Scope *defined_in (void); + UTL_Scope *defined_in (); void set_defined_in (UTL_Scope *d); - long line (void); + long line (); void set_line (long l); - UTL_String *file_name (void); + UTL_String *file_name (); void set_file_name (UTL_String *f); - ExprComb ec (void); + ExprComb ec (); - AST_ExprValue *ev (void); + AST_ExprValue *ev (); void set_ev (AST_ExprValue *new_ev); - AST_Expression *v1 (void); + AST_Expression *v1 (); void set_v1 (AST_Expression *e); - AST_Expression *v2 (void); + AST_Expression *v2 (); void set_v2 (AST_Expression *e); - UTL_ScopedName *n (void); + UTL_ScopedName *n (); void set_n (UTL_ScopedName *new_n); // AST Dumping. @@ -265,7 +265,7 @@ public: virtual int ast_accept (ast_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); // Other operations. @@ -286,10 +286,10 @@ public: long compare (AST_Expression *vc); // Accessor for the member. - AST_Decl *get_tdef (void) const; + AST_Decl *get_tdef () const; // Accessor for the member. - AST_Param_Holder *param_holder (void) const; + AST_Param_Holder *param_holder () const; static const char *exprtype_to_string (ExprType t); @@ -345,7 +345,7 @@ private: // Non-zero if we were created from a reference template param. // Fill out the lineno, filename and definition scope details. - void fill_definition_details (void); + void fill_definition_details (); // Internal evaluation. virtual AST_ExprValue *eval_internal (EvalKind ek); diff --git a/TAO/TAO_IDL/include/ast_extended_port.h b/TAO/TAO_IDL/include/ast_extended_port.h index 8e467d4977f..dd0fb686581 100644 --- a/TAO/TAO_IDL/include/ast_extended_port.h +++ b/TAO/TAO_IDL/include/ast_extended_port.h @@ -13,12 +13,12 @@ public: UTL_ScopedName *n, AST_PortType *porttype_ref); - virtual ~AST_Extended_Port (void); + virtual ~AST_Extended_Port (); - AST_PortType *port_type (void) const; + AST_PortType *port_type () const; // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); diff --git a/TAO/TAO_IDL/include/ast_extern.h b/TAO/TAO_IDL/include/ast_extern.h index c2c9e0f00af..480182b2467 100644 --- a/TAO/TAO_IDL/include/ast_extern.h +++ b/TAO/TAO_IDL/include/ast_extern.h @@ -79,7 +79,7 @@ class AST_Decl; // type the full definition was also seen. extern void AST_record_fwd_decl (AST_Type *i); -extern TAO_IDL_FE_Export void AST_check_fwd_decls (void); +extern TAO_IDL_FE_Export void AST_check_fwd_decls (); extern bool AST_illegal_recursive_type (AST_Decl *t); extern bool AST_illegal_interface_recursion (AST_Decl *t); diff --git a/TAO/TAO_IDL/include/ast_factory.h b/TAO/TAO_IDL/include/ast_factory.h index c84ef84ca9e..d83aeacfd84 100644 --- a/TAO/TAO_IDL/include/ast_factory.h +++ b/TAO/TAO_IDL/include/ast_factory.h @@ -81,18 +81,18 @@ class TAO_IDL_FE_Export AST_Factory : public virtual AST_Decl, public: AST_Factory (UTL_ScopedName *n); - virtual ~AST_Factory (void); + virtual ~AST_Factory (); - UTL_ExceptList *exceptions (void); + UTL_ExceptList *exceptions (); // Return exception list. - int n_exceptions (void); + int n_exceptions (); // Return exception count. - virtual int argument_count (void); + virtual int argument_count (); // Return the count of members. - virtual int has_native (void); + virtual int has_native (); // Any of the arguments or the return value is a <native> type. // This is important because in that case no code should be // generated for the stubs. @@ -101,7 +101,7 @@ public: virtual void dump (ACE_OSTREAM_TYPE &o); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int ast_accept (ast_visitor *visitor); @@ -129,12 +129,12 @@ protected: private: // Operations. - int compute_argument_attr (void); + int compute_argument_attr (); // Count the number of arguments. // Scope Management Protocol. - friend int tao_yyparse (void); + friend int tao_yyparse (); virtual AST_Argument *fe_add_argument (AST_Argument *a); virtual UTL_NameList *fe_add_exceptions (UTL_NameList *e); }; diff --git a/TAO/TAO_IDL/include/ast_field.h b/TAO/TAO_IDL/include/ast_field.h index 68d8fe39754..2949a69b97e 100644 --- a/TAO/TAO_IDL/include/ast_field.h +++ b/TAO/TAO_IDL/include/ast_field.h @@ -109,10 +109,10 @@ public: UTL_ScopedName *name, AST_Field *other); - virtual ~AST_Field (void); + virtual ~AST_Field (); // Data Accessors. - AST_Type *field_type (void) const; + AST_Type *field_type () const; /// Get and Set Visibility ///{ @@ -121,12 +121,12 @@ public: ///} // Are we or do we contain a wstring? - virtual int contains_wstring (void); + virtual int contains_wstring (); // Determine this bit of state after we have // be added to our aggregate type and before // we are destroyed. - void set_recursive_flag (void); + void set_recursive_flag (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); @@ -135,7 +135,7 @@ public: virtual int ast_accept (ast_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); static AST_Decl::NodeType const NT; diff --git a/TAO/TAO_IDL/include/ast_finder.h b/TAO/TAO_IDL/include/ast_finder.h index 25d6dabd511..f66e44d910f 100644 --- a/TAO/TAO_IDL/include/ast_finder.h +++ b/TAO/TAO_IDL/include/ast_finder.h @@ -12,13 +12,13 @@ public: AST_Finder (UTL_ScopedName *n); - virtual ~AST_Finder (void); + virtual ~AST_Finder (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int ast_accept (ast_visitor *visitor); diff --git a/TAO/TAO_IDL/include/ast_generator.h b/TAO/TAO_IDL/include/ast_generator.h index d4fd9fbac16..36c34f517d4 100644 --- a/TAO/TAO_IDL/include/ast_generator.h +++ b/TAO/TAO_IDL/include/ast_generator.h @@ -103,9 +103,9 @@ class AST_Annotation_Member; class TAO_IDL_FE_Export AST_Generator { public: - AST_Generator (void) {} + AST_Generator () {} - virtual ~AST_Generator (void) {} + virtual ~AST_Generator () {} // Operations. diff --git a/TAO/TAO_IDL/include/ast_home.h b/TAO/TAO_IDL/include/ast_home.h index 728b3af6a55..045c1357e8b 100644 --- a/TAO/TAO_IDL/include/ast_home.h +++ b/TAO/TAO_IDL/include/ast_home.h @@ -20,7 +20,7 @@ public: AST_Interface **supports_flat, long n_supports_flat); - virtual ~AST_Home (void); + virtual ~AST_Home (); // Extend lookup to the base home. virtual AST_Decl *look_in_inherited (UTL_ScopedName *e, @@ -37,20 +37,20 @@ public: // Accessors. - AST_Home *base_home (void) const; + AST_Home *base_home () const; - AST_Type **supports (void) const; + AST_Type **supports () const; - long n_supports (void) const; + long n_supports () const; - AST_Component *managed_component (void) const; + AST_Component *managed_component () const; - AST_Type *primary_key (void) const; + AST_Type *primary_key () const; void transfer_scope_elements (AST_Interface *dst); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); @@ -63,7 +63,7 @@ public: private: // Scope Management Protocol. - friend int tao_yyparse (void); + friend int tao_yyparse (); friend class ast_visitor_tmpl_module_inst; virtual AST_Factory *fe_add_factory (AST_Factory *f); diff --git a/TAO/TAO_IDL/include/ast_interface.h b/TAO/TAO_IDL/include/ast_interface.h index ebb57be4b30..a5fe7b023f5 100644 --- a/TAO/TAO_IDL/include/ast_interface.h +++ b/TAO/TAO_IDL/include/ast_interface.h @@ -85,7 +85,7 @@ public: bool local, bool abstract); - virtual ~AST_Interface (void); + virtual ~AST_Interface (); // This serves for interfaces, value types, components, and eventtypes. static void fwd_redefinition_helper (AST_Interface *&i, @@ -94,16 +94,16 @@ public: // Overridden for valuetypes, components, and eventtypes. virtual void redefine (AST_Interface *from); - AST_Type **inherits (void) const; + AST_Type **inherits () const; - long n_inherits (void) const; + long n_inherits () const; - AST_Interface **inherits_flat (void) const; + AST_Interface **inherits_flat () const; - long n_inherits_flat (void) const; + long n_inherits_flat () const; - ACE_Unbounded_Queue<AST_Type *> &get_insert_queue (void); - ACE_Unbounded_Queue<AST_Type *> &get_del_queue (void); + ACE_Unbounded_Queue<AST_Type *> &get_insert_queue (); + ACE_Unbounded_Queue<AST_Type *> &get_del_queue (); AST_Operation *be_add_operation (AST_Operation *); @@ -113,18 +113,18 @@ public: // Is this interface defined? This predicate returns FALSE when an // interface was forward declared but not defined yet, and TRUE in // all other cases. - bool is_defined (void); + bool is_defined (); // Check if we have redefined any of our parents' operations or attributes, // and check if there is such a clash among the parents - bool redef_clash (void); + bool redef_clash (); // Accessors for the member. - bool home_equiv (void) const; + bool home_equiv () const; void home_equiv (bool val); // Accessors for the member. - AST_InterfaceFwd *fwd_decl (void) const; + AST_InterfaceFwd *fwd_decl () const; void fwd_decl (AST_InterfaceFwd *node); // Look through inherited interfaces. @@ -135,29 +135,29 @@ public: bool full_def_only = false); /// Do we have both abstract and concrete parents? - int has_mixed_parentage (void); + int has_mixed_parentage (); /// Compute whether or not we have both abstract and concrete parents, /// and make a list of the abstract parents, if any. - void analyze_parentage (void); + void analyze_parentage (); // Recursively called on valuetype to check for legal use as // a primary key. Overridden for valuetype, struct, sequence, // union, array, typedef, and interface. - virtual bool legal_for_primary_key (void) const; + virtual bool legal_for_primary_key () const; virtual AST_Decl *special_lookup (UTL_ScopedName *e, bool full_def_only, AST_Decl *&final_parent_decl); /// Accessors for the members. - AST_Interface *ami_handler (void) const; + AST_Interface *ami_handler () const; void ami_handler (AST_Interface *handler); - AST_Interface *ami4ccm_uses (void) const; + AST_Interface *ami4ccm_uses () const; void ami4ccm_uses (AST_Interface *implied); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); diff --git a/TAO/TAO_IDL/include/ast_interface_fwd.h b/TAO/TAO_IDL/include/ast_interface_fwd.h index f0427fedd5c..101b39fd6d6 100644 --- a/TAO/TAO_IDL/include/ast_interface_fwd.h +++ b/TAO/TAO_IDL/include/ast_interface_fwd.h @@ -77,9 +77,9 @@ public: AST_InterfaceFwd (AST_Interface *dummy, UTL_ScopedName *n); - virtual ~AST_InterfaceFwd (void); + virtual ~AST_InterfaceFwd (); - AST_Interface *full_definition (void); + AST_Interface *full_definition (); /** * Sets the full definition. If there is an existing dummy definition, it @@ -87,7 +87,7 @@ public: */ void set_full_definition (AST_Interface *nfd); - virtual bool is_defined (void); + virtual bool is_defined (); void set_as_defined (); /** @@ -98,14 +98,14 @@ public: */ void disown_full_definition (); - virtual bool is_local (void); - virtual bool is_valuetype (void); - virtual bool is_abstract_valuetype (void); + virtual bool is_local (); + virtual bool is_valuetype (); + virtual bool is_abstract_valuetype (); - bool full_def_seen (void); + bool full_def_seen (); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &); @@ -114,7 +114,7 @@ public: virtual int ast_accept (ast_visitor *visitor); // Is this decl a forward declared type (Yes) - virtual bool is_fwd (void); + virtual bool is_fwd (); // We don't actually want the forward declaration, // but want to return the full definition member, diff --git a/TAO/TAO_IDL/include/ast_mirror_port.h b/TAO/TAO_IDL/include/ast_mirror_port.h index dee54323979..3195c88da4a 100644 --- a/TAO/TAO_IDL/include/ast_mirror_port.h +++ b/TAO/TAO_IDL/include/ast_mirror_port.h @@ -12,10 +12,10 @@ public: UTL_ScopedName *n, AST_PortType *porttype_ref); - virtual ~AST_Mirror_Port (void); + virtual ~AST_Mirror_Port (); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); diff --git a/TAO/TAO_IDL/include/ast_module.h b/TAO/TAO_IDL/include/ast_module.h index 07da023f2f3..d697dcb785e 100644 --- a/TAO/TAO_IDL/include/ast_module.h +++ b/TAO/TAO_IDL/include/ast_module.h @@ -87,17 +87,17 @@ public: AST_Module (UTL_ScopedName *n, AST_Module *prev = 0); // Destructor. - virtual ~AST_Module (void); + virtual ~AST_Module (); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); // Involved in OBV_ namespace generation. - void set_has_nested_valuetype (void); - bool has_nested_valuetype (void); + void set_has_nested_valuetype (); + bool has_nested_valuetype (); // Allows adding an interface at a later point. // The interface i is inserted after interface ix, if @@ -131,11 +131,11 @@ public: virtual int ast_accept (ast_visitor *visitor); // Accessors for the member. - AST_Template_Module_Inst *from_inst (void) const; + AST_Template_Module_Inst *from_inst () const; void from_inst (AST_Template_Module_Inst *node); // Accessors for the member. - AST_Template_Module_Ref *from_ref (void) const; + AST_Template_Module_Ref *from_ref () const; void from_ref (AST_Template_Module_Ref *node); // Override that looks in previous openings. @@ -234,7 +234,7 @@ public: // (called by AST_Root::destroy on the CORBA module containing // the basic types, since it isn't destroyed between processing // multiple IDL files. - void reset_last_in_same_parent_scope (void); + void reset_last_in_same_parent_scope (); virtual bool annotatable () const { return true; } diff --git a/TAO/TAO_IDL/include/ast_native.h b/TAO/TAO_IDL/include/ast_native.h index 389f61f593f..2a56f19a152 100644 --- a/TAO/TAO_IDL/include/ast_native.h +++ b/TAO/TAO_IDL/include/ast_native.h @@ -15,10 +15,10 @@ class TAO_IDL_FE_Export AST_Native : public virtual AST_Exception public: AST_Native (UTL_ScopedName *n); - virtual ~AST_Native (void); + virtual ~AST_Native (); // Cleanup. - virtual void destroy (void); + virtual void destroy (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); diff --git a/TAO/TAO_IDL/include/ast_operation.h b/TAO/TAO_IDL/include/ast_operation.h index 3c8d277cb60..008fcc4616f 100644 --- a/TAO/TAO_IDL/include/ast_operation.h +++ b/TAO/TAO_IDL/include/ast_operation.h @@ -90,28 +90,28 @@ public: bool local, bool abstract); - virtual ~AST_Operation (void); + virtual ~AST_Operation (); // Data Accessors. - AST_Type *return_type (void); + AST_Type *return_type (); - Flags flags (void); + Flags flags (); - UTL_StrList *context (void); + UTL_StrList *context (); - UTL_ExceptList *exceptions (void); + UTL_ExceptList *exceptions (); // Public operations. - bool void_return_type (void); + bool void_return_type (); /// Returns 1 if the operation has a void return type. /// Return the number of arguments - virtual int argument_count (void); + virtual int argument_count (); /// Return the flag indicating a request sends argument data - virtual bool has_in_arguments (void); + virtual bool has_in_arguments (); /// Count the number of arguments of a certain type. /** @@ -125,7 +125,7 @@ public: */ int count_arguments_with_direction (int direction_mask); - virtual int has_native (void); + virtual int has_native (); // Any of the arguments or the return value is a <native> type. // This is important because in that case no code should be // generated for the stubs. @@ -134,7 +134,7 @@ public: virtual void dump (ACE_OSTREAM_TYPE &o); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int ast_accept (ast_visitor *visitor); @@ -172,12 +172,12 @@ protected: // Operations. - int compute_argument_attr (void); + int compute_argument_attr (); // Count the number of arguments. // Scope Management Protocol. - friend int tao_yyparse (void); + friend int tao_yyparse (); virtual AST_Argument *fe_add_argument (AST_Argument *a); virtual UTL_StrList *fe_add_context (UTL_StrList *c); virtual UTL_NameList *fe_add_exceptions (UTL_NameList *e); diff --git a/TAO/TAO_IDL/include/ast_param_holder.h b/TAO/TAO_IDL/include/ast_param_holder.h index abd5ad403b1..17f4d66f41b 100644 --- a/TAO/TAO_IDL/include/ast_param_holder.h +++ b/TAO/TAO_IDL/include/ast_param_holder.h @@ -13,15 +13,15 @@ public: AST_Param_Holder (UTL_ScopedName *parameter_name, FE_Utils::T_Param_Info *info); - virtual ~AST_Param_Holder (void); + virtual ~AST_Param_Holder (); - FE_Utils::T_Param_Info const *info (void) const; + FE_Utils::T_Param_Info const *info () const; // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int ast_accept (ast_visitor *visitor); diff --git a/TAO/TAO_IDL/include/ast_porttype.h b/TAO/TAO_IDL/include/ast_porttype.h index aa98a84ee2a..20b0e92ea26 100644 --- a/TAO/TAO_IDL/include/ast_porttype.h +++ b/TAO/TAO_IDL/include/ast_porttype.h @@ -18,10 +18,10 @@ class TAO_IDL_FE_Export AST_PortType public: AST_PortType (UTL_ScopedName *n); - virtual ~AST_PortType (void); + virtual ~AST_PortType (); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); diff --git a/TAO/TAO_IDL/include/ast_predefined_type.h b/TAO/TAO_IDL/include/ast_predefined_type.h index 7e621aa8088..3969936f4ce 100644 --- a/TAO/TAO_IDL/include/ast_predefined_type.h +++ b/TAO/TAO_IDL/include/ast_predefined_type.h @@ -100,10 +100,10 @@ public: AST_PredefinedType (PredefinedType t, UTL_ScopedName *n); - virtual ~AST_PredefinedType (void); + virtual ~AST_PredefinedType (); // Data Accessors. - PredefinedType pt (void); + PredefinedType pt (); // AST Dumping virtual void dump (ACE_OSTREAM_TYPE &o); @@ -112,12 +112,12 @@ public: virtual int ast_accept (ast_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); static AST_Decl::NodeType const NT; protected: - virtual int compute_size_type (void); + virtual int compute_size_type (); // Compute the size type if it is unknown. private: diff --git a/TAO/TAO_IDL/include/ast_provides.h b/TAO/TAO_IDL/include/ast_provides.h index bb01a45d6b1..3d5b3f5c52b 100644 --- a/TAO/TAO_IDL/include/ast_provides.h +++ b/TAO/TAO_IDL/include/ast_provides.h @@ -10,10 +10,10 @@ public: AST_Provides (UTL_ScopedName *n, AST_Type *provides_type); - virtual ~AST_Provides (void); + virtual ~AST_Provides (); // Data Accessor. - AST_Type *provides_type (void) const; + AST_Type *provides_type () const; // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); @@ -22,7 +22,7 @@ public: virtual int ast_accept (ast_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); static AST_Decl::NodeType const NT; }; diff --git a/TAO/TAO_IDL/include/ast_publishes.h b/TAO/TAO_IDL/include/ast_publishes.h index b1ac2051e36..96295e30067 100644 --- a/TAO/TAO_IDL/include/ast_publishes.h +++ b/TAO/TAO_IDL/include/ast_publishes.h @@ -12,10 +12,10 @@ public: AST_Publishes (UTL_ScopedName *n, AST_Type *publishes_type); - virtual ~AST_Publishes (void); + virtual ~AST_Publishes (); // Data Accessor. - AST_Type *publishes_type (void) const; + AST_Type *publishes_type () const; // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); @@ -24,7 +24,7 @@ public: virtual int ast_accept (ast_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); static AST_Decl::NodeType const NT; }; diff --git a/TAO/TAO_IDL/include/ast_root.h b/TAO/TAO_IDL/include/ast_root.h index e3750e20934..8c3b50d01f1 100644 --- a/TAO/TAO_IDL/include/ast_root.h +++ b/TAO/TAO_IDL/include/ast_root.h @@ -75,9 +75,9 @@ class TAO_IDL_FE_Export AST_Root : public virtual AST_Module public: AST_Root (UTL_ScopedName *n); - virtual ~AST_Root (void); + virtual ~AST_Root (); - virtual unsigned long nmembers (void); + virtual unsigned long nmembers (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); @@ -89,13 +89,13 @@ public: virtual void destroy (); // Final cleanup. - void fini (void); + void fini (); static AST_Decl::NodeType const NT; private: friend class FE_Declarator; - friend int tao_yyparse (void); + friend int tao_yyparse (); // Add protocol. diff --git a/TAO/TAO_IDL/include/ast_sequence.h b/TAO/TAO_IDL/include/ast_sequence.h index e165bd03ed6..d1f1d94abda 100644 --- a/TAO/TAO_IDL/include/ast_sequence.h +++ b/TAO/TAO_IDL/include/ast_sequence.h @@ -81,30 +81,30 @@ public: bool local, bool abstract); - virtual ~AST_Sequence (void); + virtual ~AST_Sequence (); virtual bool in_recursion (ACE_Unbounded_Queue<AST_Type *> &list); // Are we or the node represented by node involved in recursion. // Data Accessors. - AST_Expression *max_size (void); + AST_Expression *max_size (); - AST_Type *base_type (void) const; + AST_Type *base_type () const; - virtual bool unbounded (void) const; + virtual bool unbounded () const; // Is this sequence bounded or not. // Recursively called on valuetype to check for legal use as // a primary key. Overridden for valuetype, struct, sequence, // union, array, typedef, and interface. - virtual bool legal_for_primary_key (void) const; + virtual bool legal_for_primary_key () const; // Is the element type a forward declared struct or union // that hasn't yet been fully defined? - virtual bool is_defined (void); + virtual bool is_defined (); // Cleanup method. - virtual void destroy (void); + virtual void destroy (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); diff --git a/TAO/TAO_IDL/include/ast_string.h b/TAO/TAO_IDL/include/ast_string.h index 75ea44326e1..71ad8c1e935 100644 --- a/TAO/TAO_IDL/include/ast_string.h +++ b/TAO/TAO_IDL/include/ast_string.h @@ -82,11 +82,11 @@ public: AST_Expression *max_size, long wide = 1); - virtual ~AST_String (void); + virtual ~AST_String (); // Data Accessors. - AST_Expression *max_size (void); - long width (void); + AST_Expression *max_size (); + long width (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); @@ -95,7 +95,7 @@ public: virtual int ast_accept (ast_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); static AST_Decl::NodeType const NT; diff --git a/TAO/TAO_IDL/include/ast_structure.h b/TAO/TAO_IDL/include/ast_structure.h index 48d4341e6a4..15eb9c2dd65 100644 --- a/TAO/TAO_IDL/include/ast_structure.h +++ b/TAO/TAO_IDL/include/ast_structure.h @@ -94,7 +94,7 @@ public: bool local, bool abstract); - virtual ~AST_Structure (void); + virtual ~AST_Structure (); // This serves for both structs and unions. static void fwd_redefinition_helper (AST_Structure *&i, @@ -103,50 +103,50 @@ public: // Overridden for unions. virtual void redefine (AST_Structure *from); - virtual int member_count (void); + virtual int member_count (); // Return the count of members. - virtual ACE_CDR::ULong nfields (void) const; + virtual ACE_CDR::ULong nfields () const; // Return the count of actual fields. virtual int field (AST_Field **&result, ACE_CDR::ULong slot) const; // Get an individual field node. - virtual bool is_local (void); + virtual bool is_local (); // Overwrite the is_local method. virtual bool in_recursion (ACE_Unbounded_Queue<AST_Type *> &list); // Are we or the node represented by node involved in recursion. - virtual int contains_wstring (void); + virtual int contains_wstring (); // Do we contain a wstring at some nesting level? // Is this struct or union defined? This predicate returns FALSE when a // forward declaration is not defined yet, and TRUE in // all other cases. - virtual bool is_defined (void); + virtual bool is_defined (); // Recursively called on valuetype to check for legal use as // a primary key. Overridden for valuetype, struct, sequence, // union, array, typedef, and interface. - virtual bool legal_for_primary_key (void) const; + virtual bool legal_for_primary_key () const; // Accessors for the member. - AST_StructureFwd *fwd_decl (void) const; + AST_StructureFwd *fwd_decl () const; void fwd_decl (AST_StructureFwd *node); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int ast_accept (ast_visitor *visitor); // Accessor for the member. - ACE_Unbounded_Queue<AST_Field *> &fields (void); + ACE_Unbounded_Queue<AST_Field *> &fields (); static AST_Decl::NodeType const NT; @@ -161,7 +161,7 @@ public: ///} protected: - friend int tao_yyparse (void); + friend int tao_yyparse (); // Scope Management Protocol. virtual AST_Union *fe_add_union (AST_Union *u); @@ -172,7 +172,7 @@ protected: virtual AST_EnumVal *fe_add_enum_val (AST_EnumVal *v); - virtual int compute_size_type (void); + virtual int compute_size_type (); // Compute the size type if it is unknown. ACE_Unbounded_Queue<AST_Field *> fields_; @@ -181,7 +181,7 @@ protected: // the struct. private: - int compute_member_count (void); + int compute_member_count (); // Count the number of members. int member_count_; diff --git a/TAO/TAO_IDL/include/ast_structure_fwd.h b/TAO/TAO_IDL/include/ast_structure_fwd.h index 0e610192ea7..f459c558505 100644 --- a/TAO/TAO_IDL/include/ast_structure_fwd.h +++ b/TAO/TAO_IDL/include/ast_structure_fwd.h @@ -13,16 +13,16 @@ public: AST_StructureFwd (AST_Structure *full_defn, UTL_ScopedName *n); - virtual ~AST_StructureFwd (void); + virtual ~AST_StructureFwd (); - AST_Structure *full_definition (void); + AST_Structure *full_definition (); void set_full_definition (AST_Structure *nfd); - virtual bool is_defined (void); - void set_as_defined (void); + virtual bool is_defined (); + void set_as_defined (); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &); @@ -31,7 +31,7 @@ public: virtual int ast_accept (ast_visitor *visitor); // Is this decl a forward declared type (Yes) - virtual bool is_fwd (void); + virtual bool is_fwd (); // We don't actually want the forward declaration, // but want to return the full definition member, diff --git a/TAO/TAO_IDL/include/ast_template_module.h b/TAO/TAO_IDL/include/ast_template_module.h index 2908afed679..5f1e5d4e8f2 100644 --- a/TAO/TAO_IDL/include/ast_template_module.h +++ b/TAO/TAO_IDL/include/ast_template_module.h @@ -15,10 +15,10 @@ public: AST_Template_Module (UTL_ScopedName *n, FE_Utils::T_PARAMLIST_INFO *template_params); - virtual ~AST_Template_Module (void); + virtual ~AST_Template_Module (); FE_Utils::T_PARAMLIST_INFO * - template_params (void) const; + template_params () const; // Checks for errors in the template args of an instantiation. bool match_arg_names (FE_Utils::T_ARGLIST *args); @@ -30,7 +30,7 @@ public: virtual void dump (ACE_OSTREAM_TYPE &o); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int ast_accept (ast_visitor *visitor); diff --git a/TAO/TAO_IDL/include/ast_template_module_inst.h b/TAO/TAO_IDL/include/ast_template_module_inst.h index 5adb0e898f2..d56fc150dc1 100644 --- a/TAO/TAO_IDL/include/ast_template_module_inst.h +++ b/TAO/TAO_IDL/include/ast_template_module_inst.h @@ -15,18 +15,18 @@ public: AST_Template_Module *ref, FE_Utils::T_ARGLIST *template_args); - virtual ~AST_Template_Module_Inst (void); + virtual ~AST_Template_Module_Inst (); - AST_Template_Module *ref (void) const; + AST_Template_Module *ref () const; FE_Utils::T_ARGLIST const * - template_args (void) const; + template_args () const; // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int ast_accept (ast_visitor *visitor); diff --git a/TAO/TAO_IDL/include/ast_template_module_ref.h b/TAO/TAO_IDL/include/ast_template_module_ref.h index 30a5b0ee81b..7273bc0e381 100644 --- a/TAO/TAO_IDL/include/ast_template_module_ref.h +++ b/TAO/TAO_IDL/include/ast_template_module_ref.h @@ -15,17 +15,17 @@ public: AST_Template_Module *ref, UTL_StrList *param_refs); - virtual ~AST_Template_Module_Ref (void); + virtual ~AST_Template_Module_Ref (); - AST_Template_Module *ref (void) const; + AST_Template_Module *ref () const; - UTL_StrList *param_refs (void) const; + UTL_StrList *param_refs () const; // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int ast_accept (ast_visitor *visitor); @@ -39,7 +39,7 @@ public: virtual AST_Decl *adjust_found (bool ignore_fwd, bool full_def_only); /// Accessors for the member. - bool processed (void) const; + bool processed () const; void processed (bool val); static AST_Decl::NodeType const NT; diff --git a/TAO/TAO_IDL/include/ast_type.h b/TAO/TAO_IDL/include/ast_type.h index 9b10b6a2821..5cda580cf1c 100644 --- a/TAO/TAO_IDL/include/ast_type.h +++ b/TAO/TAO_IDL/include/ast_type.h @@ -90,7 +90,7 @@ public: AST_Type (AST_Decl::NodeType nt, UTL_ScopedName *n); - virtual ~AST_Type (void); + virtual ~AST_Type (); virtual bool in_recursion (ACE_Unbounded_Queue<AST_Type *> &list); // Determine if we are involved in some kind of limited recursion. @@ -101,21 +101,21 @@ public: virtual void size_type (SIZE_TYPE); // Set the size type. - virtual SIZE_TYPE size_type (void); + virtual SIZE_TYPE size_type (); // Return our size type. // Accessors/mutators for the private members. - bool has_constructor (void); + bool has_constructor (); // Accessor for protected member. void has_constructor (bool value); // Mutator for protected member. - bool ifr_added (void); + bool ifr_added (); void ifr_added (bool val); - bool ifr_fwd_added (void); + bool ifr_fwd_added (); void ifr_fwd_added (bool val); const char *nested_type_name (AST_Decl *d, @@ -123,10 +123,10 @@ public: const char *prefix = 0); // Type name of a node used when generating declarations. - AST_Type *unaliased_type (void); + AST_Type *unaliased_type (); // Utility function to make sure we are using the unaliased type. - virtual bool legal_for_primary_key (void) const; + virtual bool legal_for_primary_key () const; // Recursively called on valuetype to check for legal use as // a primary key. Overridden for valuetype, struct, sequence, // union, array, typedef, and interface. @@ -135,10 +135,10 @@ public: virtual int ast_accept (ast_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); protected: - virtual int compute_size_type (void); + virtual int compute_size_type (); // Determine our size type and set it if it is unknown. const char *nested_name (const char *local_name, diff --git a/TAO/TAO_IDL/include/ast_typedef.h b/TAO/TAO_IDL/include/ast_typedef.h index cd3d776165c..b1181cb18e8 100644 --- a/TAO/TAO_IDL/include/ast_typedef.h +++ b/TAO/TAO_IDL/include/ast_typedef.h @@ -81,24 +81,24 @@ public: bool local, bool abstract); - virtual ~AST_Typedef (void); + virtual ~AST_Typedef (); - AST_Type *primitive_base_type (void) const; + AST_Type *primitive_base_type () const; // Return the most primitive base type by traversing the chain of typedefed // base types. // Data Accessors. - AST_Type *base_type (void) const; + AST_Type *base_type () const; - virtual bool legal_for_primary_key (void) const; + virtual bool legal_for_primary_key () const; // Recursively called on valuetype to check for legal use as // a primary key. Overridden for valuetype, struct, sequence, // union, array, typedef, and interface. - virtual bool is_local (void); + virtual bool is_local (); // Override the base class method. - bool owns_base_type (void) const; + bool owns_base_type () const; void owns_base_type (bool val); // Sometimes this has to be accessed or managed from outside. @@ -109,7 +109,7 @@ public: virtual int ast_accept (ast_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); static AST_Decl::NodeType const NT; @@ -121,7 +121,7 @@ public: virtual AST_Annotation_Appls &annotations (); protected: - virtual int compute_size_type (void); + virtual int compute_size_type (); // Compute the size type if it is unknown. /** diff --git a/TAO/TAO_IDL/include/ast_union.h b/TAO/TAO_IDL/include/ast_union.h index 4815d0736d8..dafa8e704de 100644 --- a/TAO/TAO_IDL/include/ast_union.h +++ b/TAO/TAO_IDL/include/ast_union.h @@ -84,7 +84,7 @@ public: bool local, bool abstract); - virtual ~AST_Union (void); + virtual ~AST_Union (); // This also calls the base class version. virtual void redefine (AST_Structure *from); @@ -94,9 +94,9 @@ public: // Data Accessors. - AST_ConcreteType *disc_type (void); + AST_ConcreteType *disc_type (); - AST_Expression::ExprType udisc_type (void); + AST_Expression::ExprType udisc_type (); struct DefaultValue { @@ -123,7 +123,7 @@ public: int default_value (DefaultValue &); // Get the default value. - virtual int default_index (void); + virtual int default_index (); // Return the default index used. // AST Dumping. @@ -143,7 +143,7 @@ public: ///} protected: - virtual int compute_size_type (void); + virtual int compute_size_type (); // Compute the size type if it is unknown. virtual AST_UnionBranch *fe_add_union_branch (AST_UnionBranch *b); @@ -165,7 +165,7 @@ private: AST_UnionBranch *lookup_branch (AST_UnionBranch *branch); // Look up the branch with the "default" label. - AST_UnionBranch *lookup_default (void); + AST_UnionBranch *lookup_default (); // Look up a branch given a branch with a label. This is used to // check for duplicate labels. @@ -175,7 +175,7 @@ private: // check for duplicate enum labels. AST_UnionBranch *lookup_enum (AST_UnionBranch *b); - friend int tao_yyparse (void); + friend int tao_yyparse (); friend class ast_visitor_tmpl_module_inst; // Scope Management Protocol. @@ -188,10 +188,10 @@ private: virtual AST_EnumVal *fe_add_enum_val (AST_EnumVal *v); - virtual int compute_default_value (void); + virtual int compute_default_value (); // Compute the default value (if any). - int compute_default_index (void); + int compute_default_index (); // Count the default index. DefaultValue default_value_; diff --git a/TAO/TAO_IDL/include/ast_union_branch.h b/TAO/TAO_IDL/include/ast_union_branch.h index e1427765f7c..988b06811da 100644 --- a/TAO/TAO_IDL/include/ast_union_branch.h +++ b/TAO/TAO_IDL/include/ast_union_branch.h @@ -84,13 +84,13 @@ public: AST_Type *ft, UTL_ScopedName *n); - virtual ~AST_UnionBranch (void); + virtual ~AST_UnionBranch (); - UTL_LabelList *labels (void) const; + UTL_LabelList *labels () const; AST_UnionLabel *label (unsigned long index = 0); - unsigned long label_list_length (void); + unsigned long label_list_length (); // Called if our labels are enum values - adds them to the // enclosing scope's name_referenced list. @@ -110,7 +110,7 @@ public: virtual int ast_accept (ast_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); static AST_Decl::NodeType const NT; diff --git a/TAO/TAO_IDL/include/ast_union_fwd.h b/TAO/TAO_IDL/include/ast_union_fwd.h index 65dc9013a93..14a6121d7e3 100644 --- a/TAO/TAO_IDL/include/ast_union_fwd.h +++ b/TAO/TAO_IDL/include/ast_union_fwd.h @@ -14,10 +14,10 @@ public: AST_UnionFwd (AST_Union *dummy, UTL_ScopedName *n); - virtual ~AST_UnionFwd (void); + virtual ~AST_UnionFwd (); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &); diff --git a/TAO/TAO_IDL/include/ast_union_label.h b/TAO/TAO_IDL/include/ast_union_label.h index 87f66e08704..28c5e0275f2 100644 --- a/TAO/TAO_IDL/include/ast_union_label.h +++ b/TAO/TAO_IDL/include/ast_union_label.h @@ -87,11 +87,11 @@ public: AST_UnionLabel (UnionLabel lk, AST_Expression *lv); - virtual ~AST_UnionLabel (void); + virtual ~AST_UnionLabel (); - UnionLabel label_kind (void); + UnionLabel label_kind (); - AST_Expression *label_val (void); + AST_Expression *label_val (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); @@ -100,7 +100,7 @@ public: virtual int ast_accept (ast_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); private: // Data. diff --git a/TAO/TAO_IDL/include/ast_uses.h b/TAO/TAO_IDL/include/ast_uses.h index f34d66d4ec5..9da57a5327f 100644 --- a/TAO/TAO_IDL/include/ast_uses.h +++ b/TAO/TAO_IDL/include/ast_uses.h @@ -11,11 +11,11 @@ public: AST_Type *uses_type, bool is_multiple); - virtual ~AST_Uses (void); + virtual ~AST_Uses (); // Data Accessors. - AST_Type *uses_type (void) const; - bool is_multiple (void) const; + AST_Type *uses_type () const; + bool is_multiple () const; // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); @@ -24,7 +24,7 @@ public: virtual int ast_accept (ast_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); static AST_Decl::NodeType const NT; diff --git a/TAO/TAO_IDL/include/ast_valuebox.h b/TAO/TAO_IDL/include/ast_valuebox.h index 40e5cc87c50..4ea5ec52eb5 100644 --- a/TAO/TAO_IDL/include/ast_valuebox.h +++ b/TAO/TAO_IDL/include/ast_valuebox.h @@ -10,10 +10,10 @@ public: AST_ValueBox (UTL_ScopedName *n, AST_Type *boxed_type); - virtual ~AST_ValueBox (void); + virtual ~AST_ValueBox (); // Data Accessors. - AST_Type *boxed_type (void) const; + AST_Type *boxed_type () const; // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); @@ -22,7 +22,7 @@ public: virtual int ast_accept (ast_visitor *visitor); // Cleanup. - virtual void destroy (void); + virtual void destroy (); static AST_Decl::NodeType const NT; diff --git a/TAO/TAO_IDL/include/ast_valuetype.h b/TAO/TAO_IDL/include/ast_valuetype.h index 4f5583e41b3..9309da49809 100644 --- a/TAO/TAO_IDL/include/ast_valuetype.h +++ b/TAO/TAO_IDL/include/ast_valuetype.h @@ -21,7 +21,7 @@ public: bool truncatable, bool custom); - virtual ~AST_ValueType (void); + virtual ~AST_ValueType (); virtual bool in_recursion (ACE_Unbounded_Queue<AST_Type *> &list); // Are we or the node represented by node involved in recursion. @@ -29,18 +29,18 @@ public: // This also calls the base class version. virtual void redefine (AST_Interface *from); - AST_Type **supports (void) const; + AST_Type **supports () const; - long n_supports (void) const; + long n_supports () const; - AST_Type *inherits_concrete (void) const; + AST_Type *inherits_concrete () const; - AST_Type *supports_concrete (void) const; + AST_Type *supports_concrete () const; - bool truncatable (void) const; - bool custom (void) const; + bool truncatable () const; + bool custom () const; - virtual bool will_have_factory (void); + virtual bool will_have_factory (); // Called from y.tab.cpp to set the factory decl seen bit. // Look up a scoped name in the supported interface list. @@ -55,10 +55,10 @@ public: // Recursively called on valuetype to check for legal use as // a primary key. Overridden for valuetype, struct, sequence, // union, array, typedef, and interface. - virtual bool legal_for_primary_key (void) const; + virtual bool legal_for_primary_key () const; // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &o); @@ -84,7 +84,7 @@ protected: bool derived_from_primary_key_base (const AST_ValueType *node, const AST_ValueType *pk_base) const; - AST_ValueType *lookup_primary_key_base (void) const; + AST_ValueType *lookup_primary_key_base () const; }; #endif // _AST_INTERFACE_AST_VALUETYPE_HH diff --git a/TAO/TAO_IDL/include/ast_valuetype_fwd.h b/TAO/TAO_IDL/include/ast_valuetype_fwd.h index 736271cc50c..6e9e9ce38b4 100644 --- a/TAO/TAO_IDL/include/ast_valuetype_fwd.h +++ b/TAO/TAO_IDL/include/ast_valuetype_fwd.h @@ -12,10 +12,10 @@ public: AST_ValueTypeFwd (AST_Interface *dummy, UTL_ScopedName *n); - virtual ~AST_ValueTypeFwd (void); + virtual ~AST_ValueTypeFwd (); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // AST Dumping. virtual void dump (ACE_OSTREAM_TYPE &); diff --git a/TAO/TAO_IDL/include/ast_visitor.h b/TAO/TAO_IDL/include/ast_visitor.h index 3a45c23a461..70c4fc73f7e 100644 --- a/TAO/TAO_IDL/include/ast_visitor.h +++ b/TAO/TAO_IDL/include/ast_visitor.h @@ -85,7 +85,7 @@ class AST_Annotation_Decl; class TAO_IDL_FE_Export ast_visitor { public: - virtual ~ast_visitor (void); + virtual ~ast_visitor (); virtual int visit_decl (AST_Decl *d) = 0; virtual int visit_scope (UTL_Scope *node) = 0; @@ -143,7 +143,7 @@ public: protected: // For abstract class. - ast_visitor (void); + ast_visitor (); }; #endif /* TAO_IDL_FE_DLL_AST_VISITOR_H */ diff --git a/TAO/TAO_IDL/include/ast_visitor_context.h b/TAO/TAO_IDL/include/ast_visitor_context.h index 2c8ddd419db..7890633316a 100644 --- a/TAO/TAO_IDL/include/ast_visitor_context.h +++ b/TAO/TAO_IDL/include/ast_visitor_context.h @@ -23,18 +23,18 @@ class TAO_IDL_FE_Export ast_visitor_context { public: - ast_visitor_context (void); + ast_visitor_context (); ast_visitor_context (const ast_visitor_context &ctx); - ~ast_visitor_context (void); + ~ast_visitor_context (); // Accessors/mutators for template-related storage. - FE_Utils::T_PARAMLIST_INFO *template_params (void) const; + FE_Utils::T_PARAMLIST_INFO *template_params () const; void template_params (FE_Utils::T_PARAMLIST_INFO *args); - FE_Utils::T_ARGLIST const *template_args (void) const; + FE_Utils::T_ARGLIST const *template_args () const; void template_args (FE_Utils::T_ARGLIST const *args); protected: diff --git a/TAO/TAO_IDL/include/ast_visitor_reifying.h b/TAO/TAO_IDL/include/ast_visitor_reifying.h index 2ad0fdceea1..6c7c5ef2981 100644 --- a/TAO/TAO_IDL/include/ast_visitor_reifying.h +++ b/TAO/TAO_IDL/include/ast_visitor_reifying.h @@ -42,9 +42,9 @@ class ast_visitor_reifying : public ast_visitor public: ast_visitor_reifying (ast_visitor_context *ctx); - virtual ~ast_visitor_reifying (void); + virtual ~ast_visitor_reifying (); - AST_Decl *reified_node (void) const; + AST_Decl *reified_node () const; virtual int visit_decl (AST_Decl *d); virtual int visit_scope (UTL_Scope *node); diff --git a/TAO/TAO_IDL/include/ast_visitor_tmpl_module_inst.h b/TAO/TAO_IDL/include/ast_visitor_tmpl_module_inst.h index c9270d73a14..1a0dafdd241 100644 --- a/TAO/TAO_IDL/include/ast_visitor_tmpl_module_inst.h +++ b/TAO/TAO_IDL/include/ast_visitor_tmpl_module_inst.h @@ -38,7 +38,7 @@ public: ast_visitor_tmpl_module_inst (ast_visitor_context *ctx, bool ref_only = false); - virtual ~ast_visitor_tmpl_module_inst (void); + virtual ~ast_visitor_tmpl_module_inst (); virtual int visit_decl (AST_Decl *d); virtual int visit_scope (UTL_Scope *node); diff --git a/TAO/TAO_IDL/include/ast_visitor_tmpl_module_ref.h b/TAO/TAO_IDL/include/ast_visitor_tmpl_module_ref.h index 4b45f2a5abf..9ac63d648f9 100644 --- a/TAO/TAO_IDL/include/ast_visitor_tmpl_module_ref.h +++ b/TAO/TAO_IDL/include/ast_visitor_tmpl_module_ref.h @@ -29,7 +29,7 @@ class ast_visitor_tmpl_module_ref public: ast_visitor_tmpl_module_ref (ast_visitor_context *ctx); - virtual ~ast_visitor_tmpl_module_ref (void); + virtual ~ast_visitor_tmpl_module_ref (); virtual int visit_template_module_ref (AST_Template_Module_Ref *node); }; diff --git a/TAO/TAO_IDL/include/drv_extern.h b/TAO/TAO_IDL/include/drv_extern.h index 757d14db7e1..03a543b161f 100644 --- a/TAO/TAO_IDL/include/drv_extern.h +++ b/TAO/TAO_IDL/include/drv_extern.h @@ -67,17 +67,17 @@ trademarks or registered trademarks of Sun Microsystems, Inc. // External functions for the IDL compiler driver program. extern void DRV_parse_args (long, char **); -extern void DRV_usage (void); +extern void DRV_usage (); extern void DRV_pre_proc (char const * myfile); -extern void DRV_store_env_include_paths (void); -extern void DRV_cpp_init (void); +extern void DRV_store_env_include_paths (); +extern void DRV_cpp_init (); extern ACE_CString& DRV_add_include_path (ACE_CString&, const char* p, const char* suffix, bool is_system); -extern void DRV_cpp_post_init (void); +extern void DRV_cpp_post_init (); extern void DRV_cpp_putarg (char const * str); extern void DRV_cpp_new_location (char const * new_loc); -extern void DRV_get_orb_idl_includes (void); +extern void DRV_get_orb_idl_includes (); // Not used by all backends. extern void DRV_push_file (char const * s); diff --git a/TAO/TAO_IDL/include/fe_component_header.h b/TAO/TAO_IDL/include/fe_component_header.h index 4e14c6426d4..55280e7ade4 100644 --- a/TAO/TAO_IDL/include/fe_component_header.h +++ b/TAO/TAO_IDL/include/fe_component_header.h @@ -20,14 +20,14 @@ public: UTL_ScopedName *base_component, UTL_NameList *supports, bool compile_now); - virtual ~FE_ComponentHeader (void); + virtual ~FE_ComponentHeader (); // Data Accessors. - AST_Component *base_component (void) const; - AST_Type **supports (void) const; - long n_supports (void) const; - AST_Interface **supports_flat (void) const; - long n_supports_flat (void) const; + AST_Component *base_component () const; + AST_Type **supports () const; + long n_supports () const; + AST_Interface **supports_flat () const; + long n_supports_flat () const; protected: void compile_inheritance (UTL_ScopedName *base_component); diff --git a/TAO/TAO_IDL/include/fe_declarator.h b/TAO/TAO_IDL/include/fe_declarator.h index d55d8c3a735..98f5ce06a95 100644 --- a/TAO/TAO_IDL/include/fe_declarator.h +++ b/TAO/TAO_IDL/include/fe_declarator.h @@ -86,19 +86,19 @@ public: FE_Declarator (UTL_ScopedName *n, DeclaratorType dt, AST_Decl *cp); - virtual ~FE_Declarator (void) {} + virtual ~FE_Declarator () {} // Data Accessors. - AST_Decl *complex_part (void); - UTL_ScopedName *name (void); - DeclaratorType decl_type (void); + AST_Decl *complex_part (); + UTL_ScopedName *name (); + DeclaratorType decl_type (); // Other Operations. // Compose an FE_Declarator into an AST_Type once all the needed information // is available. AST_Type *compose (AST_Decl* tc); - virtual void destroy (void); + virtual void destroy (); private: // Data. diff --git a/TAO/TAO_IDL/include/fe_extern.h b/TAO/TAO_IDL/include/fe_extern.h index 47f95a109c5..206f1ed679e 100644 --- a/TAO/TAO_IDL/include/fe_extern.h +++ b/TAO/TAO_IDL/include/fe_extern.h @@ -71,15 +71,15 @@ trademarks or registered trademarks of Sun Microsystems, Inc. // Declares all global functions for the FE -TAO_IDL_FE_Export void FE_init (void); -TAO_IDL_FE_Export void FE_populate (void); +TAO_IDL_FE_Export void FE_init (); +TAO_IDL_FE_Export void FE_populate (); TAO_IDL_FE_Export void FE_extract_env_include_paths (ACE_Unbounded_Queue<ACE_CString> &list); -TAO_IDL_FE_Export void FE_store_env_include_paths (void); -TAO_IDL_FE_Export const char *FE_get_cpp_loc_from_env (void); -TAO_IDL_FE_Export const char *FE_get_cpp_args_from_env (void); +TAO_IDL_FE_Export void FE_store_env_include_paths (); +TAO_IDL_FE_Export const char *FE_get_cpp_loc_from_env (); +TAO_IDL_FE_Export const char *FE_get_cpp_args_from_env (); TAO_IDL_FE_Export int -FE_yyparse (void); +FE_yyparse (); TAO_IDL_FE_Export void FE_yydebug (bool); @@ -97,10 +97,10 @@ class UTL_Error; class UTL_Indenter; TAO_IDL_FE_Export UTL_Error * -FE_new_UTL_Error (void); +FE_new_UTL_Error (); TAO_IDL_FE_Export UTL_Indenter * -FE_new_UTL_Indenter (void); +FE_new_UTL_Indenter (); /** * Exception thrown when exiting prematurely in the front end. diff --git a/TAO/TAO_IDL/include/fe_home_header.h b/TAO/TAO_IDL/include/fe_home_header.h index 7583a75a398..ae13bc609cc 100644 --- a/TAO/TAO_IDL/include/fe_home_header.h +++ b/TAO/TAO_IDL/include/fe_home_header.h @@ -23,12 +23,12 @@ public: UTL_ScopedName *managed_component, UTL_ScopedName *primary_key); - virtual ~FE_HomeHeader (void); + virtual ~FE_HomeHeader (); // Data Accessors. - AST_Home *base_home (void) const; - AST_Component *managed_component (void) const; - AST_Type *primary_key (void) const; + AST_Home *base_home () const; + AST_Component *managed_component () const; + AST_Type *primary_key () const; protected: AST_Home *base_home_; diff --git a/TAO/TAO_IDL/include/fe_interface_header.h b/TAO/TAO_IDL/include/fe_interface_header.h index 243e5dda333..55394c44e90 100644 --- a/TAO/TAO_IDL/include/fe_interface_header.h +++ b/TAO/TAO_IDL/include/fe_interface_header.h @@ -84,22 +84,22 @@ public: bool is_abstract, bool compile_now); - virtual ~FE_InterfaceHeader (void); + virtual ~FE_InterfaceHeader (); // Data Accessors. - UTL_ScopedName *name (void) const; - AST_Type **inherits (void) const; - long n_inherits (void) const; - AST_Interface **inherits_flat (void) const; - long n_inherits_flat (void) const; + UTL_ScopedName *name () const; + AST_Type **inherits () const; + long n_inherits () const; + AST_Interface **inherits_flat () const; + long n_inherits_flat () const; - bool is_local (void) const; + bool is_local () const; // See if we are a local interface. - bool is_abstract (void) const; + bool is_abstract () const; // See if we are an abstract interface. - virtual void destroy (void); + virtual void destroy (); // Destroy anything allocated for this class. // Operations. @@ -121,9 +121,9 @@ protected: bool already_seen (AST_Type *ip); bool already_seen_flat (AST_Interface *ip); - void install_in_header (void); + void install_in_header (); - void destroy_flat_arrays (void); + void destroy_flat_arrays (); // Data. protected: diff --git a/TAO/TAO_IDL/include/fe_obv_header.h b/TAO/TAO_IDL/include/fe_obv_header.h index 0a25d4310c1..0dc51b91176 100644 --- a/TAO/TAO_IDL/include/fe_obv_header.h +++ b/TAO/TAO_IDL/include/fe_obv_header.h @@ -18,16 +18,16 @@ public: UTL_NameList *supports, bool truncatable, bool is_eventtype = false); - virtual ~FE_OBVHeader (void); + virtual ~FE_OBVHeader (); // Data Accessors. - AST_Type **supports (void) const; - long n_supports (void) const; - AST_Type *inherits_concrete (void) const; - AST_Type *supports_concrete (void) const; - bool truncatable (void) const; + AST_Type **supports () const; + long n_supports () const; + AST_Type *inherits_concrete () const; + AST_Type *supports_concrete () const; + bool truncatable () const; - virtual void destroy (void); + virtual void destroy (); // Destroy anything allocated for this class. protected: diff --git a/TAO/TAO_IDL/include/fe_utils.h b/TAO/TAO_IDL/include/fe_utils.h index 6cf66a62418..fddc6e5202d 100644 --- a/TAO/TAO_IDL/include/fe_utils.h +++ b/TAO/TAO_IDL/include/fe_utils.h @@ -27,7 +27,7 @@ struct TAO_IDL_FE_Export FE_Utils ACE_CString name_; ACE_CString seq_param_ref_; - T_Param_Info (void); + T_Param_Info (); }; typedef ACE_Unbounded_Queue<T_Param_Info> T_PARAMLIST_INFO; @@ -36,7 +36,7 @@ struct TAO_IDL_FE_Export FE_Utils struct T_ARGLIST : ACE_Unbounded_Queue<AST_Decl *> { - void destroy (void); + void destroy (); }; /// Convert from a predefined type to an expression type. @@ -68,7 +68,7 @@ struct TAO_IDL_FE_Export FE_Utils /// For the executor IDL file, when a pragma ciao ami receptacle /// name is multiplex. static void - create_implied_ami_uses_stuff (void); + create_implied_ami_uses_stuff (); /// Case insensitive for Windows, otherwise not. static int @@ -97,7 +97,7 @@ struct TAO_IDL_FE_Export FE_Utils /// Validate the included idl files, somefiles might have been /// ignored by the preprocessor. static void - validate_included_idl_files (void); + validate_included_idl_files (); /// Check if included file is in TAO specific include dirs. static bool diff --git a/TAO/TAO_IDL/include/idl_global.h b/TAO/TAO_IDL/include/idl_global.h index d00dffdcbd8..485486a60dd 100644 --- a/TAO/TAO_IDL/include/idl_global.h +++ b/TAO/TAO_IDL/include/idl_global.h @@ -311,77 +311,77 @@ public: UNKNOWN_ANNOTATIONS_IGNORE }; - IDL_GlobalData (void); - ~IDL_GlobalData (void); + IDL_GlobalData (); + ~IDL_GlobalData (); // Operations - UTL_ScopeStack &scopes (void); // Scopes stack + UTL_ScopeStack &scopes (); // Scopes stack - AST_Root *root (void); // Root of AST + AST_Root *root (); // Root of AST void set_root (AST_Root *); // Set it - AST_Generator *gen (void); // Generator + AST_Generator *gen (); // Generator void set_gen (AST_Generator *); // Set it - AST_ValueType *primary_key_base (void); // PrimaryKeyBase + AST_ValueType *primary_key_base (); // PrimaryKeyBase void primary_key_base (AST_ValueType *); // Set it - UTL_Error *err (void); // Error reporter + UTL_Error *err (); // Error reporter void set_err (UTL_Error *); // Set it - int err_count (void); // How many errors? + int err_count (); // How many errors? void set_err_count (int); // Set it - long lineno (void); // Where in file? + long lineno (); // Where in file? void set_lineno (long); // Set it - UTL_String *filename (void); // What file? + UTL_String *filename (); // What file? void set_filename (UTL_String *); // Set it - UTL_String *main_filename (void); // What's the main + UTL_String *main_filename (); // What's the main // file name? void set_main_filename (UTL_String *); // Set it - UTL_String *real_filename (void); // What's the real + UTL_String *real_filename (); // What's the real // file name? void set_real_filename (UTL_String *); // Set it - UTL_String *stripped_filename (void); // Stripped filename + UTL_String *stripped_filename (); // Stripped filename void set_stripped_filename (UTL_String *); // Set it - bool imported (void); // Are we imported? - bool import (void); // Is import on? + bool imported (); // Are we imported? + bool import (); // Is import on? void set_import (bool); // Set it - bool in_main_file (void); // Are we? + bool in_main_file (); // Are we? void set_in_main_file (bool); // Set it - const char *prog_name (void); // Invoked as.. + const char *prog_name (); // Invoked as.. void set_prog_name (const char *); // Set it - const char *cpp_location (void); // Where's CPP? + const char *cpp_location (); // Where's CPP? void set_cpp_location (const char *);// Set it - long compile_flags (void); // What flags are on? + long compile_flags (); // What flags are on? void set_compile_flags (long); // Turn some on or off - char *local_escapes (void); // Get local escapes + char *local_escapes (); // Get local escapes void set_local_escapes (const char *);// Set it - UTL_Indenter *indent (void); // Get indenter + UTL_Indenter *indent (); // Get indenter void set_indent (UTL_Indenter *); // Set it void store_include_file_name (UTL_String *); - UTL_String **include_file_names (void); // Array of file names + UTL_String **include_file_names (); // Array of file names void set_include_file_names (UTL_String **); // Set it - unsigned long n_include_file_names (void); // How many + unsigned long n_include_file_names (); // How many void set_n_include_file_names (unsigned long n); - void reset_flag_seen (void); + void reset_flag_seen (); // = Types & methods supporting DDS DCPS sequence definitions (from #pragma) typedef ACE_Unbounded_Queue<char *> DCPS_Sequence_Types_List; @@ -418,7 +418,7 @@ public: void dcps_support_zero_copy_read (bool value); // BE calls to check the status of zero-copy read support - bool dcps_support_zero_copy_read (void) const; + bool dcps_support_zero_copy_read () const; // FE calls when #pragma DCPS_DATA_SEQUENCE_TYPE is processed void set_dcps_sequence_type (const char* seq_type); @@ -430,7 +430,7 @@ public: void dcps_gen_zero_copy_read (bool value); // BE calls to check the status of zero-copy read support - bool dcps_gen_zero_copy_read (void) const; + bool dcps_gen_zero_copy_read () const; // = Access methods to deal with other IDL files included in the main // IDL file. These IDL files are exactly the same strings that are @@ -441,20 +441,20 @@ public: void add_to_included_idl_files (const char *file_name); // Get all the files. - char** included_idl_files (void); + char** included_idl_files (); // The number of currently availabe include files. - size_t n_included_idl_files (void); + size_t n_included_idl_files (); // Set the number of included_idl_files. Use this carefully. This // method is used when we validate all the #included idl files, // against the ones that we get after preprocessing. void n_included_idl_files (size_t n); - ParseState parse_state (void); // What state we're in + ParseState parse_state (); // What state we're in void set_parse_state (ParseState s); // Set it - UTL_String *idl_src_file (void); + UTL_String *idl_src_file (); // Returns the IDL source file being compiled. void idl_src_file (UTL_String *); @@ -465,7 +465,7 @@ public: // files. By default, IDL compiler looks for TEMP env variable and // if it is not set, "/tmp/" is assigned. - const char *temp_dir (void) const; + const char *temp_dir () const; // Get the directory where the IDL compiler can keep all its temp // files. By default, IDL compiler looks for TEMP env variable and // if it is not set, "/tmp/" is assigned. @@ -473,49 +473,49 @@ public: void tao_root (const char *s); // Set the path of TAO_ROOT. - const char *tao_root (void) const; + const char *tao_root () const; // Get the path for TAO_ROOT. void gperf_path (const char *s); // Set the path for the perfect hashing program (GPERF). - const char *gperf_path (void) const; + const char *gperf_path () const; // Get the path for the perfect hashing program (GPERF). void ident_string (const char *s); // Set the value of the #ident string. - const char *ident_string (void) const; + const char *ident_string () const; // Get the value of the #ident string. void case_diff_error (bool); // report an error (1) for indentifiers in the same scope // that differ only by case, or report a warning (0). - bool case_diff_error (void); + bool case_diff_error (); // are we strict about case-only differences or not? void nest_orb (bool); // Set on or off whether we are using the NEST ORB. - bool nest_orb (void); + bool nest_orb (); // are we beIng used with the NEST ORB? - void destroy (void); + void destroy (); // Cleanup function. void append_idl_flag (const char *s); // Save each flag passed to the IDL compiler. - const char *idl_flags (void) const; + const char *idl_flags () const; // Get a string representation of the flags // passed to the idl compiler. ACE_Hash_Map_Manager<ACE_CString, int, ACE_Null_Mutex> & - idl_keywords (void); + idl_keywords (); // Accessor for the IDL keyword container. - ACE_Unbounded_Stack<char *> & pragma_prefixes (void); + ACE_Unbounded_Stack<char *> & pragma_prefixes (); // Accessor for the pragma prefix container. void update_prefix (char *filename); @@ -524,11 +524,11 @@ public: long seen_include_file_before (char *); // Seen this include before? - long last_seen_index (void) const; + long last_seen_index () const; void last_seen_index (long val); // Accessors for last_seen_index_ member. - bool preserve_cpp_keywords (void); + bool preserve_cpp_keywords (); // Whether we should not mung idl element names that are // C++ keywords e.g. delete, operator etc. with _cxx_ prefix. // Should be true when being used by the IFR Service @@ -543,98 +543,98 @@ public: // specific paths and false for paths provided by user. void add_rel_include_path (const char *s); - ACE_Unbounded_Queue<char *> const & rel_include_paths (void) const; + ACE_Unbounded_Queue<char *> const & rel_include_paths () const; // Accessor/mutator for the rel_include_paths_ member. void add_ciao_lem_file_names (const char *s); - ACE_Unbounded_Queue<char *> & ciao_lem_file_names (void); + ACE_Unbounded_Queue<char *> & ciao_lem_file_names (); // Accessor/mutator for the ciao_lem_file_names_ member. void add_ciao_rti_ts_file_names (const char *s); - ACE_Unbounded_Queue<char *> & ciao_rti_ts_file_names (void); + ACE_Unbounded_Queue<char *> & ciao_rti_ts_file_names (); // Accessor/mutator for the ciao_rti_ts_file_names_ member. void add_ciao_spl_ts_file_names (const char *s); - ACE_Unbounded_Queue<char *> & ciao_spl_ts_file_names (void); + ACE_Unbounded_Queue<char *> & ciao_spl_ts_file_names (); // Accessor/mutator for the ciao_spl_ts_file_names_ member. void add_ciao_oci_ts_file_names (const char *s); - ACE_Unbounded_Queue<char *> & ciao_oci_ts_file_names (void); + ACE_Unbounded_Queue<char *> & ciao_oci_ts_file_names (); // Accessor/mutator for the ciao_oci_ts_file_names_ member. void add_ciao_coredx_ts_file_names (const char *s); - ACE_Unbounded_Queue<char *> & ciao_coredx_ts_file_names (void); + ACE_Unbounded_Queue<char *> & ciao_coredx_ts_file_names (); // Accessor/mutator for the ciao_coredx_ts_file_names_ member. void add_ciao_ami_iface_names (const char *s); - ACE_Unbounded_Queue<char *> & ciao_ami_iface_names (void); + ACE_Unbounded_Queue<char *> & ciao_ami_iface_names (); // Accessor/mutator for the ciao_ami_iface_names_ member. void add_ciao_ami_recep_names (const char *s); - ACE_Unbounded_Queue<char *> & ciao_ami_recep_names (void); + ACE_Unbounded_Queue<char *> & ciao_ami_recep_names (); // Accessor/mutator for the ciao_ami_recep_names_ member. void add_included_ami_recep_names (const char *s); - ACE_Unbounded_Queue<char *> & included_ami_recep_names (void); + ACE_Unbounded_Queue<char *> & included_ami_recep_names (); // Accessor/mutator for the included_ami_recep_names_ member. - bool included_ami_receps_done (void) const; + bool included_ami_receps_done () const; void included_ami_receps_done (bool val); void add_ciao_ami_idl_fnames (const char *s); - ACE_Unbounded_Queue<char *> & ciao_ami_idl_fnames (void); + ACE_Unbounded_Queue<char *> & ciao_ami_idl_fnames (); // Accessor/mutator for the included_ami_idl_fnames_ member. void add_dds4ccm_impl_fnames (const char *s); - ACE_Unbounded_Queue<char *> & dds4ccm_impl_fnames (void); + ACE_Unbounded_Queue<char *> & dds4ccm_impl_fnames (); // Accessor mutator for the dds4ccm_impl_fnames_ member. - ACE_Unbounded_Queue<AST_Interface *> & mixed_parentage_interfaces (void); + ACE_Unbounded_Queue<AST_Interface *> & mixed_parentage_interfaces (); // Accessor for the member ACE_Hash_Map_Manager<char *, char *, ACE_Null_Mutex> & - file_prefixes (void); + file_prefixes (); // Accessor for the IDL file prefix container. - bool pass_orb_idl (void) const; + bool pass_orb_idl () const; void pass_orb_idl (bool val); // Accessor for the pass_orb_idl_ member. - bool using_ifr_backend (void) const; + bool using_ifr_backend () const; void using_ifr_backend (bool val); // Accessor for the using_ifr_backend_ member. - bool ignore_idl3 (void) const; + bool ignore_idl3 () const; void ignore_idl3 (bool val); // Accessor for the ignore_idl3_ member. - int check_gperf (void); + int check_gperf (); // Currently called only from IDL backend, but could be useful elsewhere. - void fini (void); + void fini (); // Do final cleanup just before process exits. - ACE_Unbounded_Queue<AST_ValueType *> &primary_keys (void); + ACE_Unbounded_Queue<AST_ValueType *> &primary_keys (); // Accessor for the member. - void check_primary_keys (void); + void check_primary_keys (); // Called affer yy_parse() returns - iterates over our list // of primary keys. Must be called this late so that we can // be sure that all forward declared stucts or unions that // might be used in such a valuetype are fully defined. - const char *recursion_start (void) const; + const char *recursion_start () const; void recursion_start (const char *val); // Accessors for the member. - bool multi_file_input (void) const; + bool multi_file_input () const; void multi_file_input (bool val); // Accessors for the member. - const char *big_file_name (void) const; + const char *big_file_name () const; // Just get the const string. - FE_Utils::T_PARAMLIST_INFO const *current_params (void) const; + FE_Utils::T_PARAMLIST_INFO const *current_params () const; void current_params (FE_Utils::T_PARAMLIST_INFO *params); // Accessors for the member. If UTL_Scope::lookup_by_name() // has a 0 result, it will check this param list (if it is not @@ -643,14 +643,14 @@ public: // referenced template parameter of the eclosing template // module. - UTL_StrList const *alias_params (void) const; + UTL_StrList const *alias_params () const; void alias_params (UTL_StrList *params); // Accessors for the member. If we are parsing a template // module reference, we traverse the scope of the referenced // template module, but create param holders with the // alias names. - UTL_StrList const *for_new_holder (void) const; + UTL_StrList const *for_new_holder () const; void for_new_holder (UTL_StrList *params); // Accessors for the member. If a lookup matches something // from current_params(), the actual created param holder must @@ -661,7 +661,7 @@ public: static char* translateName (const char* name, char *name_buf); #endif - AST_Module *corba_module (void) const; + AST_Module *corba_module () const; void corba_module (AST_Module *m); // Accessors for the member. @@ -676,7 +676,7 @@ public: typedef ACE_Unbounded_Queue_Iterator<Include_Path_Info> Unbounded_Paths_Queue_Iterator; - Unbounded_Paths_Queue &include_paths (void); + Unbounded_Paths_Queue &include_paths (); // Accessor for the member. enum ANON_TYPE_DIAGNOSTIC @@ -694,20 +694,20 @@ public: /// Has anon_type_diagnostic () been called? bool explicit_anon_type_diagnostic () const; - bool anon_error (void) const; - bool anon_warning (void) const; - bool anon_silent (void) const; + bool anon_error () const; + bool anon_warning () const; + bool anon_silent () const; // Simple checks for the value of anon_type_diagnostic_. - bool in_typedef (void) const; + bool in_typedef () const; void in_typedef (bool val); // Accessors for the member. - bool in_tmpl_mod_no_alias (void) const; + bool in_tmpl_mod_no_alias () const; void in_tmpl_mod_no_alias (bool val); // Accessors for the member. - bool in_tmpl_mod_alias (void) const; + bool in_tmpl_mod_alias () const; void in_tmpl_mod_alias (bool val); // Accessors for the member. diff --git a/TAO/TAO_IDL/include/utl_decllist.h b/TAO/TAO_IDL/include/utl_decllist.h index 5f0528977bf..ab2818f9bf8 100644 --- a/TAO/TAO_IDL/include/utl_decllist.h +++ b/TAO/TAO_IDL/include/utl_decllist.h @@ -88,10 +88,10 @@ public: UTL_DeclList *cdr); // Get element - FE_Declarator *head (void); + FE_Declarator *head (); // Cleanup. - virtual void destroy (void); + virtual void destroy (); private: // Data @@ -109,7 +109,7 @@ public: UTL_DecllistActiveIterator (UTL_DeclList *s); // Get current item - FE_Declarator *item (void); + FE_Declarator *item (); }; #endif // _UTL_DECLLIST_UTL_DECLLIST_HH diff --git a/TAO/TAO_IDL/include/utl_err.h b/TAO/TAO_IDL/include/utl_err.h index b80970dbe42..4fc0afe033e 100644 --- a/TAO/TAO_IDL/include/utl_err.h +++ b/TAO/TAO_IDL/include/utl_err.h @@ -245,7 +245,7 @@ public: void version_syntax_error (const char *msg); // Repost an attempt to reset the version. - void version_reset_error (void); + void version_reset_error (); // Report an attempt to change the id once set. void id_reset_error (const char *o, @@ -381,7 +381,7 @@ public: // Report illegal infix operator error (they can be used // only with integer, floating point or fixed point expressions. - void illegal_infix (void); + void illegal_infix (); // Report local type used in remote operation. void local_remote_mismatch (AST_Decl *l, @@ -411,7 +411,7 @@ public: AST_Decl *loc); // Error (default) or warning (set by command line option). - void anonymous_type_diagnostic (void); + void anonymous_type_diagnostic (); // Reference to an item in the scope of a template // module was not via an alias. diff --git a/TAO/TAO_IDL/include/utl_exceptlist.h b/TAO/TAO_IDL/include/utl_exceptlist.h index a04f6276994..5ba9bbbcfb7 100644 --- a/TAO/TAO_IDL/include/utl_exceptlist.h +++ b/TAO/TAO_IDL/include/utl_exceptlist.h @@ -84,14 +84,14 @@ public: UTL_ExceptList *cdr); // Get list item. - AST_Type *head (void); + AST_Type *head (); // Cleanup. - virtual void destroy (void); + virtual void destroy (); // Copies the UTL_ExceptList pointers but not the // contained AST_Exceptions. - virtual UTL_ExceptList *copy (void); + virtual UTL_ExceptList *copy (); private: // Data. @@ -106,7 +106,7 @@ public: UTL_ExceptlistActiveIterator (UTL_ExceptList *s); // Get current item - AST_Type *item (void); + AST_Type *item (); }; #endif // _UTL_EXCEPTLIST_UTL_EXCEPTLIST_HH diff --git a/TAO/TAO_IDL/include/utl_exprlist.h b/TAO/TAO_IDL/include/utl_exprlist.h index 3a7f8ebc875..21ff96e039f 100644 --- a/TAO/TAO_IDL/include/utl_exprlist.h +++ b/TAO/TAO_IDL/include/utl_exprlist.h @@ -84,10 +84,10 @@ public: UTL_ExprList *cdr); // Get list item. - AST_Expression *head (void); + AST_Expression *head (); // Cleanup. - virtual void destroy (void); + virtual void destroy (); private: // Data. @@ -101,7 +101,7 @@ public: UTL_ExprlistActiveIterator (UTL_ExprList *s); // Get current item. - AST_Expression *item (void); + AST_Expression *item (); }; #endif // _UTL_EXPRLIST_UTL_EXPRLIST_HH diff --git a/TAO/TAO_IDL/include/utl_identifier.h b/TAO/TAO_IDL/include/utl_identifier.h index bae3e637400..85ceadbf06d 100644 --- a/TAO/TAO_IDL/include/utl_identifier.h +++ b/TAO/TAO_IDL/include/utl_identifier.h @@ -72,7 +72,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc. class TAO_IDL_FE_Export Identifier { public: - Identifier (void); + Identifier (); // Default Constructor. Identifier (const char *s); @@ -80,7 +80,7 @@ public: Identifier (const Identifier &other); - virtual ~Identifier (void); + virtual ~Identifier (); // Destructor. // Operations @@ -89,7 +89,7 @@ public: * Get the underlying string. */ ///{ - char *get_string (void); + char *get_string (); const char *get_string () const; ///} @@ -107,16 +107,16 @@ public: bool case_compare_quiet (Identifier *other); // Like the above but suppressing error or warning I/O - Identifier *copy (void); + Identifier *copy (); // Create a deep copy. - bool escaped (void) const; + bool escaped () const; // Accessor for the member. virtual void dump (ACE_OSTREAM_TYPE &o); // Dump to an ostream. - virtual void destroy (void); + virtual void destroy (); // Cleanup function. bool operator== (const Identifier &other) const; diff --git a/TAO/TAO_IDL/include/utl_idlist.h b/TAO/TAO_IDL/include/utl_idlist.h index ea59e45aca8..a382a35963e 100644 --- a/TAO/TAO_IDL/include/utl_idlist.h +++ b/TAO/TAO_IDL/include/utl_idlist.h @@ -90,25 +90,25 @@ public: UTL_IdList *cdr); // Constructor(s) - virtual ~UTL_IdList (void) {} + virtual ~UTL_IdList () {} // destructor virtual void dump (ACE_OSTREAM_TYPE &o); // Dump to ostream. - virtual void destroy (void); + virtual void destroy (); // Cleanup function. - virtual UTL_IdList *copy (void); + virtual UTL_IdList *copy (); // Copy the list. - Identifier *head (void); + Identifier *head (); // Get element. - Identifier *last_component (void); + Identifier *last_component (); // Get last element in this list. - Identifier *first_component (void); + Identifier *first_component (); // Get first element in this list holding a non-empty string. int compare (UTL_IdList *other); @@ -141,7 +141,7 @@ public: UTL_IdListActiveIterator (UTL_IdList *s); /// Retrieves the next item. - Identifier *item (void); + Identifier *item (); }; #endif // _UTL_IDLIST_UTL_IDLIST_HH diff --git a/TAO/TAO_IDL/include/utl_indenter.h b/TAO/TAO_IDL/include/utl_indenter.h index 8fe36f5b7db..da328055426 100644 --- a/TAO/TAO_IDL/include/utl_indenter.h +++ b/TAO/TAO_IDL/include/utl_indenter.h @@ -78,17 +78,17 @@ class UTL_Indenter // =DESCRIPTION // useful in generating indented output public: - UTL_Indenter (void); + UTL_Indenter (); - ~UTL_Indenter (void) {} + ~UTL_Indenter () {} - void reset (void); + void reset (); // Reset indentation level to 0. - void increase (void); + void increase (); // Increase indentation level. - void decrease (void); + void decrease (); // Decrease indentation level. void skip_to (ACE_OSTREAM_TYPE &o); diff --git a/TAO/TAO_IDL/include/utl_labellist.h b/TAO/TAO_IDL/include/utl_labellist.h index 161b294503f..d2e71a94204 100644 --- a/TAO/TAO_IDL/include/utl_labellist.h +++ b/TAO/TAO_IDL/include/utl_labellist.h @@ -84,13 +84,13 @@ public: UTL_LabelList *cdr); // Get list item. - AST_UnionLabel *head (void); + AST_UnionLabel *head (); // Override of base class method. - virtual UTL_LabelList *copy (void); + virtual UTL_LabelList *copy (); // Cleanup. - virtual void destroy (void); + virtual void destroy (); private: AST_UnionLabel *pd_car_data; @@ -103,7 +103,7 @@ public: UTL_LabellistActiveIterator (UTL_LabelList *source); // Get current item. - AST_UnionLabel *item (void); + AST_UnionLabel *item (); }; #endif // _UTL_LABELLIST_UTL_LABELLIST_HH diff --git a/TAO/TAO_IDL/include/utl_list.h b/TAO/TAO_IDL/include/utl_list.h index 7e7ed5d781f..a70b9d0ff5d 100644 --- a/TAO/TAO_IDL/include/utl_list.h +++ b/TAO/TAO_IDL/include/utl_list.h @@ -85,25 +85,25 @@ class TAO_IDL_FE_Export UTL_List public: UTL_List (UTL_List *c); - virtual ~UTL_List (void); + virtual ~UTL_List (); // Smash last cdr pointer in "this" with l. void nconc (UTL_List *l); // Copy the list starting at "this". - virtual UTL_List *copy (void); + virtual UTL_List *copy (); // Get next list. - UTL_List *tail (void); + UTL_List *tail (); // Set next list void set_tail (UTL_List *l); // How long is this list? - ACE_CDR::Long length (void); + ACE_CDR::Long length (); // Cleanup. - virtual void destroy (void); + virtual void destroy (); private: // The next list. @@ -123,13 +123,13 @@ public: UTL_ListActiveIterator (UTL_List *s); - virtual ~UTL_ListActiveIterator (void) {} + virtual ~UTL_ListActiveIterator () {} // Get next list. - virtual void next (void); + virtual void next (); // Are we at the end of this list? - virtual bool is_done (void); + virtual bool is_done (); protected: // On what to iterate? diff --git a/TAO/TAO_IDL/include/utl_namelist.h b/TAO/TAO_IDL/include/utl_namelist.h index 46b946faa5b..2a1d7ab02af 100644 --- a/TAO/TAO_IDL/include/utl_namelist.h +++ b/TAO/TAO_IDL/include/utl_namelist.h @@ -82,14 +82,14 @@ public: UTL_NameList *cdr); // Get list item. - UTL_ScopedName *head (void); + UTL_ScopedName *head (); // Accessors. - bool truncatable (void) const; + bool truncatable () const; void truncatable (bool val); // Cleanup. - virtual void destroy (void); + virtual void destroy (); private: // List item. @@ -106,7 +106,7 @@ public: UTL_NamelistActiveIterator (UTL_NameList *source); // Get current item. - UTL_ScopedName *item (void); + UTL_ScopedName *item (); }; #endif // _UTL_NAMELIST_UTL_NAMELIST_HH diff --git a/TAO/TAO_IDL/include/utl_scope.h b/TAO/TAO_IDL/include/utl_scope.h index 658c2be463b..1b1a5c41e54 100644 --- a/TAO/TAO_IDL/include/utl_scope.h +++ b/TAO/TAO_IDL/include/utl_scope.h @@ -155,14 +155,14 @@ public: // Operations. // Constructor(s). - UTL_Scope (void); + UTL_Scope (); UTL_Scope (AST_Decl::NodeType nt); // Destructor. - virtual ~UTL_Scope (void); + virtual ~UTL_Scope (); // Data Accessors. - AST_Decl::NodeType scope_node_type (void) + AST_Decl::NodeType scope_node_type () { return pd_scope_node_type; } @@ -206,7 +206,7 @@ public: AST_Decl *&final_parent_decl); // How many entries are used? - virtual unsigned long nmembers (void); + virtual unsigned long nmembers (); // If the Identifier string (from the scoped name which has been // already determined to be of length 1) matches a param, @@ -227,11 +227,11 @@ public: void add_to_name_referenced (Identifier *id); // Accessors for the has_prefix_ member. - bool has_prefix (void); + bool has_prefix (); void has_prefix (bool val); // Cleanup function. - virtual void destroy (void); + virtual void destroy (); // Visiting. virtual int ast_accept (ast_visitor *visitor); @@ -533,19 +533,19 @@ public: UTL_Scope::ScopeIterationKind ik); // Advance to next item. - void next (void); + void next (); // Get current item. - AST_Decl *item (void); + AST_Decl *item (); // Have we iterated over entire scope? - bool is_done (void); + bool is_done (); // What kind of iterator is this? - UTL_Scope::ScopeIterationKind iteration_kind (void); + UTL_Scope::ScopeIterationKind iteration_kind (); // What stage are we in with this iterator? - UTL_Scope::ScopeIterationKind iteration_stage (void); + UTL_Scope::ScopeIterationKind iteration_stage (); private: // Scope to iterate over. diff --git a/TAO/TAO_IDL/include/utl_stack.h b/TAO/TAO_IDL/include/utl_stack.h index d83159b6db7..ffc7f909668 100644 --- a/TAO/TAO_IDL/include/utl_stack.h +++ b/TAO/TAO_IDL/include/utl_stack.h @@ -79,35 +79,35 @@ class UTL_ScopeStackActiveIterator; class TAO_IDL_FE_Export UTL_ScopeStack { public: - UTL_ScopeStack (void); - ~UTL_ScopeStack (void); + UTL_ScopeStack (); + ~UTL_ScopeStack (); /// The initial capacity and how much to increment the capacity when needed. static const size_t increments; // Return top element. - UTL_Scope *top (void); + UTL_Scope *top (); // Pop top element. - void pop (void); + void pop (); // Clear entire stack. - void clear (void); + void clear (); // Push an element on the stack and return stack. UTL_ScopeStack *push (UTL_Scope *el); // How deep is the stack now? - unsigned long depth (void); + unsigned long depth (); // Return bottom element. - UTL_Scope *bottom (void); + UTL_Scope *bottom (); // Return (top - 1) element. - UTL_Scope *next_to_top (void); + UTL_Scope *next_to_top (); // return topmost non-NULL element. - UTL_Scope *top_non_null (void); + UTL_Scope *top_non_null (); /** * Call lookup_by_name on all the scopes from the top down. @@ -136,13 +136,13 @@ public: UTL_ScopeStackActiveIterator (UTL_ScopeStack &s); // Advance to next element. - void next (void); + void next (); // Get current item. - UTL_Scope* item (void); + UTL_Scope* item (); // Is the iteration finished? - bool is_done (void) const; + bool is_done () const; private: // On what to iterate? diff --git a/TAO/TAO_IDL/include/utl_string.h b/TAO/TAO_IDL/include/utl_string.h index 9489421c04f..7b6d788df13 100644 --- a/TAO/TAO_IDL/include/utl_string.h +++ b/TAO/TAO_IDL/include/utl_string.h @@ -79,24 +79,24 @@ class TAO_IDL_FE_Export UTL_String // =DESCRIPTION // string class to store identifiers public: - UTL_String (void); + UTL_String (); UTL_String (const char *str, bool take_copy= false); UTL_String (UTL_String *s, bool force_copy= false); - virtual ~UTL_String (void); + virtual ~UTL_String (); - virtual void destroy (void); + virtual void destroy (); // Cleanup function. virtual void dump (ACE_OSTREAM_TYPE &o); // Dump to the ostream. - char *get_string (void) {return this->p_str;} + char *get_string () {return this->p_str;} // Get contents of utl_string. - char *get_canonical_rep (void); + char *get_canonical_rep (); // Get canonical representation. This is (implemented as) the all upper // case corresponding string. diff --git a/TAO/TAO_IDL/include/utl_strlist.h b/TAO/TAO_IDL/include/utl_strlist.h index f355ba746b8..2a6c8f60c5f 100644 --- a/TAO/TAO_IDL/include/utl_strlist.h +++ b/TAO/TAO_IDL/include/utl_strlist.h @@ -84,25 +84,25 @@ public: UTL_StrList (UTL_String *s, UTL_StrList *cdr); - virtual ~UTL_StrList (void); + virtual ~UTL_StrList (); // AST Dumping virtual void dump (ACE_OSTREAM_TYPE &o); // Copy a list of strings - virtual UTL_List *copy (void); + virtual UTL_List *copy (); // Cleanup method. - virtual void destroy (void); + virtual void destroy (); // Get list element - UTL_String *head (void); + UTL_String *head (); // Set the list element void set_head (UTL_String *); // Get last element in this list - UTL_String *last_component (void); + UTL_String *last_component (); private: // The list item @@ -117,7 +117,7 @@ public: UTL_StrlistActiveIterator(UTL_StrList *s); // Get current item. - UTL_String *item (void); + UTL_String *item (); }; #endif // _UTL_STRLIST_UTL_STRLIST_HH diff --git a/TAO/TAO_IDL/util/utl_scope.cpp b/TAO/TAO_IDL/util/utl_scope.cpp index c2079e47d8e..1ed63df688b 100644 --- a/TAO/TAO_IDL/util/utl_scope.cpp +++ b/TAO/TAO_IDL/util/utl_scope.cpp @@ -134,7 +134,7 @@ UTL_Scope::UTL_Scope () pd_name_referenced (nullptr), pd_name_referenced_allocated (0), pd_name_referenced_used (0), - has_prefix_ (0), + has_prefix_ (false), which_pseudo_ (PSEUDO_ABSTRACTBASE) { } @@ -153,7 +153,7 @@ UTL_Scope::UTL_Scope (AST_Decl::NodeType nt) pd_name_referenced (nullptr), pd_name_referenced_allocated (0), pd_name_referenced_used (0), - has_prefix_ (0), + has_prefix_ (false), which_pseudo_ (PSEUDO_ABSTRACTBASE) { } diff --git a/TAO/TAO_IDL/util/utl_string.cpp b/TAO/TAO_IDL/util/utl_string.cpp index 1939f4cd587..d9070dfa65f 100644 --- a/TAO/TAO_IDL/util/utl_string.cpp +++ b/TAO/TAO_IDL/util/utl_string.cpp @@ -224,7 +224,7 @@ UTL_String::destroy () if (this->copy_taken) { ACE::strdelete (this->p_str); - this->copy_taken = 0; + this->copy_taken = false; } this->p_str = nullptr; } diff --git a/TAO/examples/Kokyu_dsrt_schedulers/FP_Scheduler.cpp b/TAO/examples/Kokyu_dsrt_schedulers/FP_Scheduler.cpp index ba3caeee9c2..a78ae87523a 100644 --- a/TAO/examples/Kokyu_dsrt_schedulers/FP_Scheduler.cpp +++ b/TAO/examples/Kokyu_dsrt_schedulers/FP_Scheduler.cpp @@ -74,7 +74,7 @@ Fixed_Priority_Scheduler::Fixed_Priority_Scheduler ( Kokyu::DSRT_Dispatcher_Factory<FP_Scheduler_Traits>::DSRT_Dispatcher_Auto_Ptr tmp( Kokyu::DSRT_Dispatcher_Factory<FP_Scheduler_Traits>:: create_DSRT_dispatcher (config) ); - kokyu_dispatcher_ = tmp; + kokyu_dispatcher_ = std::move(tmp); CORBA::Object_var object = orb->resolve_initial_references ("RTScheduler_Current"); diff --git a/TAO/examples/Kokyu_dsrt_schedulers/MIF_Scheduler.cpp b/TAO/examples/Kokyu_dsrt_schedulers/MIF_Scheduler.cpp index 0639728d996..e46604a305c 100644 --- a/TAO/examples/Kokyu_dsrt_schedulers/MIF_Scheduler.cpp +++ b/TAO/examples/Kokyu_dsrt_schedulers/MIF_Scheduler.cpp @@ -74,7 +74,7 @@ MIF_Scheduler::MIF_Scheduler (CORBA::ORB_ptr orb, Kokyu::DSRT_Dispatcher_Factory<MIF_Scheduler_Traits>::DSRT_Dispatcher_Auto_Ptr tmp( Kokyu::DSRT_Dispatcher_Factory<MIF_Scheduler_Traits>:: create_DSRT_dispatcher (config) ); - kokyu_dispatcher_ = tmp; + kokyu_dispatcher_ = std::move(tmp); CORBA::Object_var object = orb->resolve_initial_references ("RTScheduler_Current"); diff --git a/TAO/examples/Kokyu_dsrt_schedulers/MUF_Scheduler.cpp b/TAO/examples/Kokyu_dsrt_schedulers/MUF_Scheduler.cpp index 5193fbbae92..2972bb05325 100644 --- a/TAO/examples/Kokyu_dsrt_schedulers/MUF_Scheduler.cpp +++ b/TAO/examples/Kokyu_dsrt_schedulers/MUF_Scheduler.cpp @@ -74,7 +74,7 @@ MUF_Scheduler::MUF_Scheduler (CORBA::ORB_ptr orb, Kokyu::DSRT_Dispatcher_Factory<MUF_Scheduler_Traits>::DSRT_Dispatcher_Auto_Ptr tmp( Kokyu::DSRT_Dispatcher_Factory<MUF_Scheduler_Traits>:: create_DSRT_dispatcher (config) ); - kokyu_dispatcher_ = tmp; + kokyu_dispatcher_ = std::move(tmp); CORBA::Object_var object = orb->resolve_initial_references ("RTScheduler_Current"); diff --git a/TAO/examples/RTScheduling/Fixed_Priority_Scheduler/FP_Scheduler.cpp b/TAO/examples/RTScheduling/Fixed_Priority_Scheduler/FP_Scheduler.cpp index f4707507c05..28563f1378f 100644 --- a/TAO/examples/RTScheduling/Fixed_Priority_Scheduler/FP_Scheduler.cpp +++ b/TAO/examples/RTScheduling/Fixed_Priority_Scheduler/FP_Scheduler.cpp @@ -1,9 +1,9 @@ #include "FP_Scheduler.h" -#include "ace/Atomic_Op.h" #include "tao/RTScheduling/Request_Interceptor.h" #include "test.h" +#include <atomic> -ACE_Atomic_Op<TAO_SYNCH_MUTEX, long> server_guid_counter; +std::atomic<long> server_guid_counter; RTCORBA::Priority Segment_Sched_Param_Policy::value (void) diff --git a/TAO/examples/RTScheduling/MIF_Scheduler/MIF_Scheduler.cpp b/TAO/examples/RTScheduling/MIF_Scheduler/MIF_Scheduler.cpp index d1a9f4b6ba2..a26d17387d1 100644 --- a/TAO/examples/RTScheduling/MIF_Scheduler/MIF_Scheduler.cpp +++ b/TAO/examples/RTScheduling/MIF_Scheduler/MIF_Scheduler.cpp @@ -1,9 +1,9 @@ #include "MIF_Scheduler.h" -#include "ace/Atomic_Op.h" #include "tao/RTScheduling/Request_Interceptor.h" #include "test.h" +#include <atomic> -ACE_Atomic_Op<TAO_SYNCH_MUTEX, long> server_guid_counter; +std::atomic<long> server_guid_counter; DT::DT (TAO_SYNCH_MUTEX &lock, int guid) diff --git a/TAO/orbsvcs/ImplRepo_Service/Activator_Loader.h b/TAO/orbsvcs/ImplRepo_Service/Activator_Loader.h index a64e2292b94..a5714ebb4c1 100644 --- a/TAO/orbsvcs/ImplRepo_Service/Activator_Loader.h +++ b/TAO/orbsvcs/ImplRepo_Service/Activator_Loader.h @@ -37,9 +37,10 @@ private: ACE_Auto_Ptr<ImR_Activator_ORB_Runner> runner_; private: - // Disallow copying and assignment. - ImR_Activator_Loader (const ImR_Activator_Loader &); - ImR_Activator_Loader &operator = (const ImR_Activator_Loader &); + ImR_Activator_Loader (const ImR_Activator_Loader &) = delete; + ImR_Activator_Loader &operator = (const ImR_Activator_Loader &) = delete; + ImR_Activator_Loader (ImR_Activator_Loader &&) = delete; + ImR_Activator_Loader &operator = (ImR_Activator_Loader &&) = delete; }; ACE_FACTORY_DECLARE (Activator, ImR_Activator_Loader) diff --git a/TAO/orbsvcs/ImplRepo_Service/LiveCheck.h b/TAO/orbsvcs/ImplRepo_Service/LiveCheck.h index 6437f7c289c..4d0602ddfca 100644 --- a/TAO/orbsvcs/ImplRepo_Service/LiveCheck.h +++ b/TAO/orbsvcs/ImplRepo_Service/LiveCheck.h @@ -22,11 +22,7 @@ #endif /* ACE_LACKS_PRAGMA_ONCE */ #include "tao/Intrusive_Ref_Count_Handle_T.h" -#if defined (ACE_HAS_CPP11) -# include <atomic> -#else -# include "ace/Atomic_Op.h" -#endif /* ACE_HAS_CPP11 */ +#include <atomic> class LiveCheck; class LiveEntry; @@ -96,11 +92,7 @@ class Locator_Export LiveListener ACE_CString server_; private: -#if defined (ACE_HAS_CPP11) std::atomic<int> refcount_; -#else - ACE_Atomic_Op<TAO_SYNCH_MUTEX, int> refcount_; -#endif /* ACE_HAS_CPP11 */ }; typedef TAO_Intrusive_Ref_Count_Handle<LiveListener> LiveListener_ptr; diff --git a/TAO/orbsvcs/ImplRepo_Service/Locator_Loader.h b/TAO/orbsvcs/ImplRepo_Service/Locator_Loader.h index 31735821a36..d5b154f929c 100644 --- a/TAO/orbsvcs/ImplRepo_Service/Locator_Loader.h +++ b/TAO/orbsvcs/ImplRepo_Service/Locator_Loader.h @@ -35,9 +35,10 @@ private: Options opts_; ACE_Auto_Ptr<ImR_Locator_ORB_Runner> runner_; private: - // Disallow copying and assignment. - ImR_Locator_Loader (const ImR_Locator_Loader &); - ImR_Locator_Loader &operator = (const ImR_Locator_Loader &); + ImR_Locator_Loader (const ImR_Locator_Loader &) = delete; + ImR_Locator_Loader &operator = (const ImR_Locator_Loader &) = delete; + ImR_Locator_Loader (ImR_Locator_Loader &&) = delete; + ImR_Locator_Loader &operator = (ImR_Locator_Loader &&) = delete; }; ACE_FACTORY_DECLARE (Locator, ImR_Locator_Loader) diff --git a/TAO/orbsvcs/ImplRepo_Service/Shared_Backing_Store.cpp b/TAO/orbsvcs/ImplRepo_Service/Shared_Backing_Store.cpp index 4d1a0915e3c..8f06171529d 100644 --- a/TAO/orbsvcs/ImplRepo_Service/Shared_Backing_Store.cpp +++ b/TAO/orbsvcs/ImplRepo_Service/Shared_Backing_Store.cpp @@ -161,11 +161,7 @@ namespace { #endif } -#if defined (ACE_HAS_CPP11) std::unique_ptr <ACE_File_Lock> file_lock_; -#else - auto_ptr<ACE_File_Lock> file_lock_; -#endif FILE* file_; int flags_; bool locked_; diff --git a/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.cpp b/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.cpp index 1fad41a8e47..baafac90542 100644 --- a/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.cpp @@ -29,7 +29,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL // TAO_AV_Qos //------------------------------------------------------------ -TAO_AV_QoS::TAO_AV_QoS (void) +TAO_AV_QoS::TAO_AV_QoS () { } @@ -48,11 +48,11 @@ TAO_AV_QoS::convert (AVStreams::streamQoS &/*network_qos*/) // ---------------------------------------------------------------------- // AV_Null_MediaCtrl // ---------------------------------------------------------------------- -AV_Null_MediaCtrl::AV_Null_MediaCtrl (void) +AV_Null_MediaCtrl::AV_Null_MediaCtrl () { } -AV_Null_MediaCtrl::~AV_Null_MediaCtrl (void) +AV_Null_MediaCtrl::~AV_Null_MediaCtrl () { } @@ -62,7 +62,7 @@ AV_Null_MediaCtrl::~AV_Null_MediaCtrl (void) // ---------------------------------------------------------------------- // Constructor -TAO_Basic_StreamCtrl::TAO_Basic_StreamCtrl (void) +TAO_Basic_StreamCtrl::TAO_Basic_StreamCtrl () :flow_count_ (0) { } @@ -288,7 +288,7 @@ TAO_Basic_StreamCtrl::set_flow_connection (const char *flow_name, } } -TAO_Basic_StreamCtrl::~TAO_Basic_StreamCtrl (void) +TAO_Basic_StreamCtrl::~TAO_Basic_StreamCtrl () { } @@ -312,7 +312,7 @@ TAO_Negotiator::negotiate (AVStreams::Negotiator_ptr /* remote_negotiator */, const int MMDevice_Map_Hash_Key::hash_maximum_ = 10000; //default constructor. -MMDevice_Map_Hash_Key::MMDevice_Map_Hash_Key (void) +MMDevice_Map_Hash_Key::MMDevice_Map_Hash_Key () { this->mmdevice_ = AVStreams::MMDevice::_nil (); } @@ -330,7 +330,7 @@ MMDevice_Map_Hash_Key::MMDevice_Map_Hash_Key (const MMDevice_Map_Hash_Key& hash_ } // destructor. -MMDevice_Map_Hash_Key::~MMDevice_Map_Hash_Key (void) +MMDevice_Map_Hash_Key::~MMDevice_Map_Hash_Key () { CORBA::release (this->mmdevice_); } @@ -380,7 +380,7 @@ operator < (const MMDevice_Map_Hash_Key &left, } u_long -MMDevice_Map_Hash_Key::hash (void) const +MMDevice_Map_Hash_Key::hash () const { u_long result = 0; try @@ -399,7 +399,7 @@ MMDevice_Map_Hash_Key::hash (void) const // TAO_StreamCtrl // ---------------------------------------------------------------------- -TAO_StreamCtrl::TAO_StreamCtrl (void) +TAO_StreamCtrl::TAO_StreamCtrl () :mcastconfigif_ (0) { try @@ -418,7 +418,7 @@ TAO_StreamCtrl::TAO_StreamCtrl (void) } } -TAO_StreamCtrl::~TAO_StreamCtrl (void) +TAO_StreamCtrl::~TAO_StreamCtrl () { delete this->mcastconfigif_; } @@ -1146,7 +1146,7 @@ TAO_StreamCtrl::bind (AVStreams::StreamEndPoint_A_ptr sep_a, } void -TAO_StreamCtrl::unbind (void) +TAO_StreamCtrl::unbind () { try { @@ -1296,12 +1296,12 @@ TAO_StreamCtrl::modify_QoS (AVStreams::streamQoS &new_qos, // TAO_MCastConfigIf // ---------------------------------------------------------------------- -TAO_MCastConfigIf::TAO_MCastConfigIf (void) +TAO_MCastConfigIf::TAO_MCastConfigIf () :peer_list_iterator_ (peer_list_) { } -TAO_MCastConfigIf::~TAO_MCastConfigIf (void) +TAO_MCastConfigIf::~TAO_MCastConfigIf () { //no-op } @@ -1428,17 +1428,17 @@ TAO_MCastConfigIf::in_flowSpec (const AVStreams::flowSpec& flow_spec, const char // TAO_Base_StreamEndPoint // ---------------------------------------------------------------------- -TAO_Base_StreamEndPoint::TAO_Base_StreamEndPoint (void) +TAO_Base_StreamEndPoint::TAO_Base_StreamEndPoint () : protocol_object_set_ (0) { } -TAO_Base_StreamEndPoint::~TAO_Base_StreamEndPoint (void) +TAO_Base_StreamEndPoint::~TAO_Base_StreamEndPoint () { } int -TAO_Base_StreamEndPoint::handle_close (void) +TAO_Base_StreamEndPoint::handle_close () { // This method should not be defined, but EGCS complains endlessly // about it. @@ -1446,7 +1446,7 @@ TAO_Base_StreamEndPoint::handle_close (void) } int -TAO_Base_StreamEndPoint::handle_open (void) +TAO_Base_StreamEndPoint::handle_open () { return 0; } @@ -1501,14 +1501,14 @@ TAO_Base_StreamEndPoint::set_protocol_object (const char * /*flowname*/, } void -TAO_Base_StreamEndPoint::protocol_object_set (void) +TAO_Base_StreamEndPoint::protocol_object_set () { this->protocol_object_set_ = 1; } int -TAO_Base_StreamEndPoint::is_protocol_object_set (void) +TAO_Base_StreamEndPoint::is_protocol_object_set () { return this->protocol_object_set_; } @@ -1557,7 +1557,7 @@ TAO_Base_StreamEndPoint::set_control_flow_handler (const char *flowname, // constructor. -TAO_StreamEndPoint::TAO_StreamEndPoint (void) +TAO_StreamEndPoint::TAO_StreamEndPoint () :flow_count_ (0), flow_num_ (0), mcast_port_ (ACE_DEFAULT_MULTICAST_PORT+1) @@ -2381,7 +2381,7 @@ TAO_StreamEndPoint::multiconnect (AVStreams::streamQoS &/*the_qos*/, return 0; } -TAO_StreamEndPoint::~TAO_StreamEndPoint (void) +TAO_StreamEndPoint::~TAO_StreamEndPoint () { //this->handle_close (); TAO_AV_FlowSpecSetItor begin = this->forward_flow_spec_set.begin (); @@ -2416,7 +2416,7 @@ TAO_StreamEndPoint::~TAO_StreamEndPoint (void) // TAO_StreamEndPoint_A // ---------------------------------------------------------------------- -TAO_StreamEndPoint_A::TAO_StreamEndPoint_A (void) +TAO_StreamEndPoint_A::TAO_StreamEndPoint_A () { if (TAO_debug_level > 0) ORBSVCS_DEBUG ((LM_DEBUG, "(%P|%t) TAO_StreamEndPoint_A::TAO_StreamEndPoint_A: created\n")); } @@ -2613,7 +2613,7 @@ TAO_StreamEndPoint_A::disconnect_leaf (AVStreams::StreamEndPoint_B_ptr /* the_ep } -TAO_StreamEndPoint_A::~TAO_StreamEndPoint_A (void) +TAO_StreamEndPoint_A::~TAO_StreamEndPoint_A () { } @@ -2621,7 +2621,7 @@ TAO_StreamEndPoint_A::~TAO_StreamEndPoint_A (void) // TAO_StreamEndPoint_B // ---------------------------------------------------------------------- -TAO_StreamEndPoint_B::TAO_StreamEndPoint_B (void) +TAO_StreamEndPoint_B::TAO_StreamEndPoint_B () { if (TAO_debug_level > 0) ORBSVCS_DEBUG ((LM_DEBUG, "\n(%P|%t) TAO_StreamEndPoint_B::TAO_StreamEndPoint_B: created")); @@ -2743,7 +2743,7 @@ TAO_StreamEndPoint_B::multiconnect (AVStreams::streamQoS &stream_qos, return 1; } -TAO_StreamEndPoint_B::~TAO_StreamEndPoint_B (void) +TAO_StreamEndPoint_B::~TAO_StreamEndPoint_B () { } @@ -2751,7 +2751,7 @@ TAO_StreamEndPoint_B::~TAO_StreamEndPoint_B (void) // TAO_VDev // ---------------------------------------------------------------------- -TAO_VDev::TAO_VDev (void) +TAO_VDev::TAO_VDev () { if (TAO_debug_level > 0) ORBSVCS_DEBUG ((LM_DEBUG, "(%P|%t) TAO_VDev::TAO_VDev: created\n")); @@ -2919,7 +2919,7 @@ TAO_VDev::modify_QoS (AVStreams::streamQoS &the_qos, return 1; } -TAO_VDev::~TAO_VDev (void) +TAO_VDev::~TAO_VDev () { } @@ -3341,7 +3341,7 @@ TAO_MMDevice::remove_fdev (const char *flow_name) } // destructor. -TAO_MMDevice::~TAO_MMDevice (void) +TAO_MMDevice::~TAO_MMDevice () { delete this->stream_ctrl_; } @@ -3351,7 +3351,7 @@ TAO_MMDevice::~TAO_MMDevice (void) //------------------------------------------------------------------ // default constructor. -TAO_FlowConnection::TAO_FlowConnection (void) +TAO_FlowConnection::TAO_FlowConnection () :fp_name_ (CORBA::string_dup ("")), ip_multicast_ (0) { @@ -3381,7 +3381,7 @@ TAO_FlowConnection::set_protocol (const char *protocol) // stop this flow. void -TAO_FlowConnection::stop (void) +TAO_FlowConnection::stop () { try { @@ -3419,7 +3419,7 @@ TAO_FlowConnection::stop (void) // start this flow. void -TAO_FlowConnection::start (void) +TAO_FlowConnection::start () { try { @@ -3457,7 +3457,7 @@ TAO_FlowConnection::start (void) // destroy this flow. void -TAO_FlowConnection::destroy (void) +TAO_FlowConnection::destroy () { try { @@ -3627,7 +3627,7 @@ TAO_FlowConnection::connect (AVStreams::FlowProducer_ptr producer, CORBA::Boolean -TAO_FlowConnection::disconnect (void) +TAO_FlowConnection::disconnect () { return 0; } @@ -3820,7 +3820,7 @@ TAO_FlowConnection::drop (AVStreams::FlowEndPoint_ptr target) // ----------------------------------------------------------------- //default constructor. -TAO_FlowEndPoint::TAO_FlowEndPoint (void) +TAO_FlowEndPoint::TAO_FlowEndPoint () :lock_ (0) { } @@ -3889,7 +3889,7 @@ TAO_FlowEndPoint::set_flowname (const char *flowname) // used by one flowconnection so that multiple connections cant use // the same flowendpoint. CORBA::Boolean -TAO_FlowEndPoint::lock (void) +TAO_FlowEndPoint::lock () { // lock the current flowendpoint @@ -3901,14 +3901,14 @@ TAO_FlowEndPoint::lock (void) // unlocks the flowendpoint , becomes free to be used in another flow. void -TAO_FlowEndPoint::unlock (void) +TAO_FlowEndPoint::unlock () { this->lock_ = 0; } void -TAO_FlowEndPoint::destroy (void) +TAO_FlowEndPoint::destroy () { int result = TAO_AV_Core::deactivate_servant (this); if (result < 0) @@ -3920,7 +3920,7 @@ TAO_FlowEndPoint::destroy (void) } AVStreams::StreamEndPoint_ptr -TAO_FlowEndPoint::related_sep (void) +TAO_FlowEndPoint::related_sep () { return AVStreams::StreamEndPoint::_duplicate (this->related_sep_.in ()); @@ -3933,7 +3933,7 @@ TAO_FlowEndPoint::related_sep (AVStreams::StreamEndPoint_ptr related_sep) } AVStreams::FlowConnection_ptr -TAO_FlowEndPoint::related_flow_connection (void) +TAO_FlowEndPoint::related_flow_connection () { return AVStreams::FlowConnection::_duplicate (this->related_flow_connection_.in ()); } @@ -3946,7 +3946,7 @@ TAO_FlowEndPoint::related_flow_connection (AVStreams::FlowConnection_ptr related // returns the connected peer for this flow AVStreams::FlowEndPoint_ptr -TAO_FlowEndPoint::get_connected_fep (void) +TAO_FlowEndPoint::get_connected_fep () { return AVStreams::FlowEndPoint::_duplicate (this->peer_fep_.in ()); } @@ -4274,7 +4274,7 @@ TAO_FlowEndPoint::set_protocol_object (const char * /*flowname*/, // ------------------------------------------------------------ //default constructor -TAO_FlowProducer::TAO_FlowProducer (void) +TAO_FlowProducer::TAO_FlowProducer () { } @@ -4294,7 +4294,7 @@ TAO_FlowProducer::get_rev_channel (const char * /*pcol_name*/) // The start, stop and destroy are to be handled by the application. void -TAO_FlowProducer::stop (void) +TAO_FlowProducer::stop () { TAO_AV_FlowSpecSetItor end = this->flow_spec_set_.end (); for (TAO_AV_FlowSpecSetItor begin = this->flow_spec_set_.begin (); @@ -4306,7 +4306,7 @@ TAO_FlowProducer::stop (void) } void -TAO_FlowProducer::start (void) +TAO_FlowProducer::start () { TAO_AV_FlowSpecSetItor end = this->flow_spec_set_.end (); for (TAO_AV_FlowSpecSetItor begin = this->flow_spec_set_.begin (); @@ -4418,7 +4418,7 @@ TAO_FlowProducer::set_source_id (CORBA::Long source_id) // default constructor. -TAO_FlowConsumer::TAO_FlowConsumer (void) +TAO_FlowConsumer::TAO_FlowConsumer () { } @@ -4431,7 +4431,7 @@ TAO_FlowConsumer::TAO_FlowConsumer (const char *flowname, // The start, stop and destroy are to be handled by the application. void -TAO_FlowConsumer::stop (void) +TAO_FlowConsumer::stop () { TAO_AV_FlowSpecSetItor end = this->flow_spec_set_.end (); for (TAO_AV_FlowSpecSetItor begin = this->flow_spec_set_.begin (); @@ -4440,7 +4440,7 @@ TAO_FlowConsumer::stop (void) } void -TAO_FlowConsumer::start (void) +TAO_FlowConsumer::start () { TAO_AV_FlowSpecSetItor end = this->flow_spec_set_.end (); for (TAO_AV_FlowSpecSetItor begin = this->flow_spec_set_.begin (); @@ -4551,7 +4551,7 @@ TAO_Tokenizer::parse (const char *string, char delimiter) } char* -TAO_Tokenizer::token (void) +TAO_Tokenizer::token () { if (count_ < num_tokens_) return CORBA::string_dup (this->token_array_[this->count_++]); @@ -4560,7 +4560,7 @@ TAO_Tokenizer::token (void) } int -TAO_Tokenizer::num_tokens (void) +TAO_Tokenizer::num_tokens () { return static_cast<int> (this->num_tokens_); } diff --git a/TAO/orbsvcs/orbsvcs/AV/AV_Core.cpp b/TAO/orbsvcs/orbsvcs/AV/AV_Core.cpp index ea7a4029ee1..0c5f67b7260 100644 --- a/TAO/orbsvcs/orbsvcs/AV/AV_Core.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/AV_Core.cpp @@ -30,7 +30,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL // TAO_AV_Core //------------------------------------------------------------ -TAO_AV_Core::TAO_AV_Core (void) +TAO_AV_Core::TAO_AV_Core () :connector_registry_ (0), acceptor_registry_ (0) { @@ -42,7 +42,7 @@ TAO_AV_Core::TAO_AV_Core (void) ); } -TAO_AV_Core::~TAO_AV_Core (void) +TAO_AV_Core::~TAO_AV_Core () { delete this->connector_registry_; delete this->acceptor_registry_; @@ -76,7 +76,7 @@ TAO_AV_Core::~TAO_AV_Core (void) } CORBA::ORB_ptr -TAO_AV_Core::orb (void) +TAO_AV_Core::orb () { return this->orb_.in (); } @@ -88,7 +88,7 @@ TAO_AV_Core::orb (CORBA::ORB_ptr orb) } PortableServer::POA_ptr -TAO_AV_Core::poa (void) +TAO_AV_Core::poa () { return this->poa_.in (); } @@ -100,38 +100,38 @@ TAO_AV_Core::poa (PortableServer::POA_ptr poa) } TAO_AV_Connector_Registry* -TAO_AV_Core::connector_registry (void) +TAO_AV_Core::connector_registry () { return this->connector_registry_; } TAO_AV_Acceptor_Registry* -TAO_AV_Core::acceptor_registry (void) +TAO_AV_Core::acceptor_registry () { return this->acceptor_registry_; } TAO_AV_TransportFactorySet * -TAO_AV_Core::transport_factories (void) +TAO_AV_Core::transport_factories () { return &this->transport_factories_; } TAO_AV_Flow_ProtocolFactorySet* -TAO_AV_Core::flow_protocol_factories (void) +TAO_AV_Core::flow_protocol_factories () { return &this->flow_protocol_factories_; } int -TAO_AV_Core::stop_run (void) +TAO_AV_Core::stop_run () { this->stop_run_ = 1; return 0; } int -TAO_AV_Core::run (void) +TAO_AV_Core::run () { this->stop_run_ = 0; while (!this->stop_run_ && this->orb_->work_pending ()) @@ -146,7 +146,7 @@ TAO_AV_Core::reactor (ACE_Reactor *r) } ACE_Reactor * -TAO_AV_Core::reactor (void) +TAO_AV_Core::reactor () { return this->reactor_; } @@ -694,7 +694,7 @@ TAO_AV_Core::get_transport_factory(const char *transport_protocol) } int -TAO_AV_Core::load_default_transport_factories (void) +TAO_AV_Core::load_default_transport_factories () { const char *udp_factory_str = "UDP_Factory"; const char *tcp_factory_str = "TCP_Factory"; @@ -813,7 +813,7 @@ TAO_AV_Core::load_default_transport_factories (void) } int -TAO_AV_Core::init_transport_factories (void) +TAO_AV_Core::init_transport_factories () { TAO_AV_TransportFactorySetItor end = this->transport_factories_.end (); TAO_AV_TransportFactorySetItor factory = this->transport_factories_.begin (); @@ -861,7 +861,7 @@ TAO_AV_Core::init_transport_factories (void) } int -TAO_AV_Core::load_default_flow_protocol_factories (void) +TAO_AV_Core::load_default_flow_protocol_factories () { const char *udp_flow = "UDP_Flow_Factory"; const char *tcp_flow = "TCP_Flow_Factory"; @@ -1051,7 +1051,7 @@ TAO_AV_Core::load_default_flow_protocol_factories (void) } int -TAO_AV_Core::init_flow_protocol_factories (void) +TAO_AV_Core::init_flow_protocol_factories () { TAO_AV_Flow_ProtocolFactorySetItor end = this->flow_protocol_factories_.end (); TAO_AV_Flow_ProtocolFactorySetItor factory = this->flow_protocol_factories_.begin (); diff --git a/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.cpp b/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.cpp index 882a2d742a3..ed0f32ee71a 100644 --- a/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.cpp @@ -22,12 +22,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL // ---------------------------------------------------------------------- // Constructor -TAO_AV_Endpoint_Strategy::TAO_AV_Endpoint_Strategy (void) +TAO_AV_Endpoint_Strategy::TAO_AV_Endpoint_Strategy () { } // Destructor. -TAO_AV_Endpoint_Strategy::~TAO_AV_Endpoint_Strategy (void) +TAO_AV_Endpoint_Strategy::~TAO_AV_Endpoint_Strategy () { } @@ -71,7 +71,7 @@ TAO_AV_Endpoint_Process_Strategy::TAO_AV_Endpoint_Process_Strategy (ACE_Process_ } // Destructor. -TAO_AV_Endpoint_Process_Strategy::~TAO_AV_Endpoint_Process_Strategy (void) +TAO_AV_Endpoint_Process_Strategy::~TAO_AV_Endpoint_Process_Strategy () { } @@ -80,7 +80,7 @@ TAO_AV_Endpoint_Process_Strategy::~TAO_AV_Endpoint_Process_Strategy (void) // to get the object references to the various objects created in the // child int -TAO_AV_Endpoint_Process_Strategy::activate (void) +TAO_AV_Endpoint_Process_Strategy::activate () { ACE_Process process; @@ -160,7 +160,7 @@ TAO_AV_Endpoint_Process_Strategy::activate (void) // Get ourselves a Naming service reference int -TAO_AV_Endpoint_Process_Strategy::bind_to_naming_service (void) +TAO_AV_Endpoint_Process_Strategy::bind_to_naming_service () { try { @@ -188,7 +188,7 @@ TAO_AV_Endpoint_Process_Strategy::bind_to_naming_service (void) // Get the VDev created in the child process from the namingservice int -TAO_AV_Endpoint_Process_Strategy::get_vdev (void) +TAO_AV_Endpoint_Process_Strategy::get_vdev () { try { @@ -240,7 +240,7 @@ TAO_AV_Endpoint_Process_Strategy_A::TAO_AV_Endpoint_Process_Strategy_A (ACE_Proc } // Destructor -TAO_AV_Endpoint_Process_Strategy_A::~TAO_AV_Endpoint_Process_Strategy_A (void) +TAO_AV_Endpoint_Process_Strategy_A::~TAO_AV_Endpoint_Process_Strategy_A () { } @@ -264,7 +264,7 @@ TAO_AV_Endpoint_Process_Strategy_A::create_A (AVStreams::StreamEndPoint_A_ptr &s // Gets the stream endpoint object reference from the naming service int -TAO_AV_Endpoint_Process_Strategy_A::get_stream_endpoint (void) +TAO_AV_Endpoint_Process_Strategy_A::get_stream_endpoint () { try { @@ -317,7 +317,7 @@ TAO_AV_Endpoint_Process_Strategy_B::TAO_AV_Endpoint_Process_Strategy_B (ACE_Proc } // Destructor -TAO_AV_Endpoint_Process_Strategy_B::~TAO_AV_Endpoint_Process_Strategy_B (void) +TAO_AV_Endpoint_Process_Strategy_B::~TAO_AV_Endpoint_Process_Strategy_B () { } @@ -353,7 +353,7 @@ TAO_AV_Endpoint_Process_Strategy_B::create_B (AVStreams::StreamEndPoint_B_ptr &s // Gets the B type stream_endpoint from the Naming service int -TAO_AV_Endpoint_Process_Strategy_B::get_stream_endpoint (void) +TAO_AV_Endpoint_Process_Strategy_B::get_stream_endpoint () { try { diff --git a/TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.cpp b/TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.cpp index bff251c8e52..ee6a19ed0eb 100644 --- a/TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.cpp @@ -18,7 +18,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL // constructor. -TAO_FlowSpec_Entry::TAO_FlowSpec_Entry (void) +TAO_FlowSpec_Entry::TAO_FlowSpec_Entry () :address_ (0), clean_up_address_ (0), control_address_ (0), @@ -137,7 +137,7 @@ TAO_FlowSpec_Entry::TAO_FlowSpec_Entry (const char *flowname, } // Destructor. -TAO_FlowSpec_Entry::~TAO_FlowSpec_Entry (void) +TAO_FlowSpec_Entry::~TAO_FlowSpec_Entry () { if (this->delete_peer_addr_) delete this->peer_addr_; @@ -151,7 +151,7 @@ TAO_FlowSpec_Entry::~TAO_FlowSpec_Entry (void) } int -TAO_FlowSpec_Entry::set_protocol (void) +TAO_FlowSpec_Entry::set_protocol () { if (!this->use_flow_protocol_) { @@ -459,7 +459,7 @@ TAO_FlowSpec_Entry::parse_address (const char *address, } char * -TAO_FlowSpec_Entry::get_local_addr_str (void) +TAO_FlowSpec_Entry::get_local_addr_str () { if (this->local_addr_ == 0) return 0; @@ -489,7 +489,7 @@ TAO_FlowSpec_Entry::get_local_addr_str (void) //------------------------------------------------------------ // default constructor. -TAO_Forward_FlowSpec_Entry::TAO_Forward_FlowSpec_Entry (void) +TAO_Forward_FlowSpec_Entry::TAO_Forward_FlowSpec_Entry () { } @@ -525,7 +525,7 @@ TAO_Forward_FlowSpec_Entry::TAO_Forward_FlowSpec_Entry (const char *flowname, { } -TAO_Forward_FlowSpec_Entry::~TAO_Forward_FlowSpec_Entry (void) +TAO_Forward_FlowSpec_Entry::~TAO_Forward_FlowSpec_Entry () { } @@ -607,7 +607,7 @@ TAO_Forward_FlowSpec_Entry::parse (const char *flowSpec_entry) } TAO_FlowSpec_Entry::Role -TAO_Forward_FlowSpec_Entry::role (void) +TAO_Forward_FlowSpec_Entry::role () { if (this->role_ != TAO_AV_INVALID_ROLE) return this->role_; @@ -626,7 +626,7 @@ TAO_Forward_FlowSpec_Entry::role (void) } const char * -TAO_Forward_FlowSpec_Entry::entry_to_string (void) +TAO_Forward_FlowSpec_Entry::entry_to_string () { if (this->flowname_.length() == 0) return ""; @@ -821,7 +821,7 @@ TAO_Forward_FlowSpec_Entry::entry_to_string (void) //------------------------------------------------------------ //default constructor. -TAO_Reverse_FlowSpec_Entry::TAO_Reverse_FlowSpec_Entry (void) +TAO_Reverse_FlowSpec_Entry::TAO_Reverse_FlowSpec_Entry () { } @@ -857,12 +857,12 @@ TAO_Reverse_FlowSpec_Entry::TAO_Reverse_FlowSpec_Entry (const char *flowname, { } -TAO_Reverse_FlowSpec_Entry::~TAO_Reverse_FlowSpec_Entry (void) +TAO_Reverse_FlowSpec_Entry::~TAO_Reverse_FlowSpec_Entry () { } TAO_FlowSpec_Entry::Role -TAO_Reverse_FlowSpec_Entry::role (void) +TAO_Reverse_FlowSpec_Entry::role () { if (this->role_ != TAO_AV_INVALID_ROLE) return this->role_; @@ -903,7 +903,7 @@ TAO_Reverse_FlowSpec_Entry::parse (const char *flowSpec_entry) const char * -TAO_Reverse_FlowSpec_Entry::entry_to_string (void) +TAO_Reverse_FlowSpec_Entry::entry_to_string () { if (this->flowname_.length() == 0) return ""; diff --git a/TAO/orbsvcs/orbsvcs/AV/MCast.cpp b/TAO/orbsvcs/orbsvcs/AV/MCast.cpp index 6aca9ffafce..8848fffcf47 100644 --- a/TAO/orbsvcs/orbsvcs/AV/MCast.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/MCast.cpp @@ -14,7 +14,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL //TAO_AV_UDP_MCast_Flow_Handler //------------------------------------------------------------ -TAO_AV_UDP_MCast_Flow_Handler::TAO_AV_UDP_MCast_Flow_Handler (void) +TAO_AV_UDP_MCast_Flow_Handler::TAO_AV_UDP_MCast_Flow_Handler () { ACE_NEW (transport_, TAO_AV_UDP_MCast_Transport (this)); @@ -22,7 +22,7 @@ TAO_AV_UDP_MCast_Flow_Handler::TAO_AV_UDP_MCast_Flow_Handler (void) ACE_SOCK_Dgram_Mcast); } -TAO_AV_UDP_MCast_Flow_Handler::~TAO_AV_UDP_MCast_Flow_Handler (void) +TAO_AV_UDP_MCast_Flow_Handler::~TAO_AV_UDP_MCast_Flow_Handler () { delete this->transport_; delete this->dgram_mcast_; @@ -44,7 +44,7 @@ TAO_AV_UDP_MCast_Flow_Handler::handle_timeout (const ACE_Time_Value &tv, } ACE_HANDLE -TAO_AV_UDP_MCast_Flow_Handler::get_handle (void) const +TAO_AV_UDP_MCast_Flow_Handler::get_handle () const { if (TAO_debug_level > 0) ORBSVCS_DEBUG ((LM_DEBUG,"TAO_AV_UDP_MCast_Flow_Handler::get_handle ")); return this->get_mcast_socket ()->get_handle () ; @@ -60,7 +60,7 @@ TAO_AV_UDP_MCast_Flow_Handler::set_peer_addr (ACE_INET_Addr *peer_addr) // TAO_AV_UDP_MCast_Transport //------------------------------------------------------------ -TAO_AV_UDP_MCast_Transport::TAO_AV_UDP_MCast_Transport (void) +TAO_AV_UDP_MCast_Transport::TAO_AV_UDP_MCast_Transport () :handler_ (0) { } @@ -70,7 +70,7 @@ TAO_AV_UDP_MCast_Transport::TAO_AV_UDP_MCast_Transport (TAO_AV_UDP_MCast_Flow_Ha { } -TAO_AV_UDP_MCast_Transport::~TAO_AV_UDP_MCast_Transport (void) +TAO_AV_UDP_MCast_Transport::~TAO_AV_UDP_MCast_Transport () { } @@ -81,20 +81,20 @@ TAO_AV_UDP_MCast_Transport::open (ACE_Addr * /*address*/) } int -TAO_AV_UDP_MCast_Transport::close (void) +TAO_AV_UDP_MCast_Transport::close () { return 0; } ACE_Addr* -TAO_AV_UDP_MCast_Transport::get_peer_addr (void) +TAO_AV_UDP_MCast_Transport::get_peer_addr () { return &this->peer_addr_; } ACE_Addr* -TAO_AV_UDP_MCast_Transport::get_local_addr (void) +TAO_AV_UDP_MCast_Transport::get_local_addr () { this->handler_->get_mcast_socket ()->get_local_addr (this->local_addr_); return &this->local_addr_; @@ -182,7 +182,7 @@ TAO_AV_UDP_MCast_Transport::send (const iovec *iov, } int -TAO_AV_UDP_MCast_Transport::mtu (void) +TAO_AV_UDP_MCast_Transport::mtu () { return ACE_MAX_DGRAM_SIZE; } diff --git a/TAO/orbsvcs/orbsvcs/AV/Policy.cpp b/TAO/orbsvcs/orbsvcs/AV/Policy.cpp index a5b375deb70..b05af920247 100644 --- a/TAO/orbsvcs/orbsvcs/AV/Policy.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/Policy.cpp @@ -28,23 +28,23 @@ TAO_AV_Payload_Type_Policy::TAO_AV_Payload_Type_Policy (int payload_type) } // TAO_AV_RTP_Sdes_Policy -TAO_AV_RTCP_Sdes_Policy::TAO_AV_RTCP_Sdes_Policy (void) +TAO_AV_RTCP_Sdes_Policy::TAO_AV_RTCP_Sdes_Policy () :TAO_AV_Policy (TAO_AV_RTCP_SDES_POLICY) { } -TAO_AV_SFP_Credit_Policy::TAO_AV_SFP_Credit_Policy (void) +TAO_AV_SFP_Credit_Policy::TAO_AV_SFP_Credit_Policy () :TAO_AV_Policy (TAO_AV_SFP_CREDIT_POLICY) { } // TAO_AV_Callback -TAO_AV_Callback::TAO_AV_Callback (void) +TAO_AV_Callback::TAO_AV_Callback () :protocol_object_ (0) { } -TAO_AV_Callback::~TAO_AV_Callback (void) +TAO_AV_Callback::~TAO_AV_Callback () { } @@ -59,14 +59,14 @@ TAO_AV_Callback::open (TAO_AV_Protocol_Object *object, } int -TAO_AV_Callback::handle_start (void) +TAO_AV_Callback::handle_start () { if (TAO_debug_level > 0) ORBSVCS_DEBUG ((LM_DEBUG,"TAO_AV_Callback::handle_start\n")); return -1; } int -TAO_AV_Callback::handle_stop (void) +TAO_AV_Callback::handle_stop () { if (TAO_debug_level > 0) ORBSVCS_DEBUG ((LM_DEBUG,"TAO_AV_Callback::handle_stop\n")); return -1; @@ -89,7 +89,7 @@ TAO_AV_Callback::receive_control_frame (ACE_Message_Block *, } int -TAO_AV_Callback::handle_destroy (void) +TAO_AV_Callback::handle_destroy () { if (TAO_debug_level > 0) ORBSVCS_DEBUG ((LM_DEBUG,"TAO_AV_Callback::handle_end_stream\n")); return -1; @@ -111,7 +111,7 @@ TAO_AV_Callback::handle_timeout (void * /*arg*/) } TAO_AV_PolicyList -TAO_AV_Callback::get_policies (void) +TAO_AV_Callback::get_policies () { TAO_AV_PolicyList list; return list; @@ -130,7 +130,7 @@ TAO_AV_Callback::get_policies (void) // } TAO_AV_Protocol_Object* -TAO_AV_Callback::protocol_object (void) +TAO_AV_Callback::protocol_object () { return this->protocol_object_; } @@ -142,7 +142,7 @@ TAO_AV_Callback::protocol_object (void) // } int -TAO_AV_Callback::schedule_timer (void) +TAO_AV_Callback::schedule_timer () { return this->handler_->schedule_timer (); } diff --git a/TAO/orbsvcs/orbsvcs/AV/Protocol_Factory.cpp b/TAO/orbsvcs/orbsvcs/AV/Protocol_Factory.cpp index 841f7fda285..17866cd0922 100644 --- a/TAO/orbsvcs/orbsvcs/AV/Protocol_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/Protocol_Factory.cpp @@ -9,12 +9,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL // TAO_AV_Flow_Protocol_Factory -TAO_AV_Flow_Protocol_Factory::TAO_AV_Flow_Protocol_Factory (void) +TAO_AV_Flow_Protocol_Factory::TAO_AV_Flow_Protocol_Factory () : ref_count (0) { } -TAO_AV_Flow_Protocol_Factory::~TAO_AV_Flow_Protocol_Factory (void) +TAO_AV_Flow_Protocol_Factory::~TAO_AV_Flow_Protocol_Factory () { } @@ -41,7 +41,7 @@ TAO_AV_Flow_Protocol_Factory::make_protocol_object (TAO_FlowSpec_Entry * /* entr } const char * -TAO_AV_Flow_Protocol_Factory::control_flow_factory (void) +TAO_AV_Flow_Protocol_Factory::control_flow_factory () { return 0; } @@ -49,7 +49,7 @@ TAO_AV_Flow_Protocol_Factory::control_flow_factory (void) //---------------------------------------------------------------------- // TAO_AV_Protocol_Object //---------------------------------------------------------------------- -TAO_AV_Protocol_Object::TAO_AV_Protocol_Object (void) +TAO_AV_Protocol_Object::TAO_AV_Protocol_Object () :transport_ (0), callback_ (0) { @@ -71,18 +71,18 @@ TAO_AV_Protocol_Object::open (TAO_AV_Callback *callback, return 0; } -TAO_AV_Protocol_Object::~TAO_AV_Protocol_Object (void) +TAO_AV_Protocol_Object::~TAO_AV_Protocol_Object () { } int -TAO_AV_Protocol_Object::start (void) +TAO_AV_Protocol_Object::start () { return this->callback_->handle_start (); } int -TAO_AV_Protocol_Object::stop (void) +TAO_AV_Protocol_Object::stop () { return this->callback_->handle_stop (); } @@ -95,13 +95,13 @@ TAO_AV_Protocol_Object::set_policies (const TAO_AV_PolicyList &policy_list) } TAO_AV_PolicyList -TAO_AV_Protocol_Object::get_policies (void) +TAO_AV_Protocol_Object::get_policies () { return this->policy_list_; } TAO_AV_Transport* -TAO_AV_Protocol_Object::transport (void) +TAO_AV_Protocol_Object::transport () { return this->transport_; } diff --git a/TAO/orbsvcs/orbsvcs/AV/RTCP.cpp b/TAO/orbsvcs/orbsvcs/AV/RTCP.cpp index 084d1fc8421..feb571fe886 100644 --- a/TAO/orbsvcs/orbsvcs/AV/RTCP.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/RTCP.cpp @@ -332,11 +332,11 @@ TAO_AV_RTCP::rtcp_interval (int members, // TAO_AV_RTCP_Flow_Factory -TAO_AV_RTCP_Flow_Factory::TAO_AV_RTCP_Flow_Factory (void) +TAO_AV_RTCP_Flow_Factory::TAO_AV_RTCP_Flow_Factory () { } -TAO_AV_RTCP_Flow_Factory::~TAO_AV_RTCP_Flow_Factory (void) +TAO_AV_RTCP_Flow_Factory::~TAO_AV_RTCP_Flow_Factory () { } @@ -383,7 +383,7 @@ TAO_AV_RTCP_Flow_Factory::make_protocol_object (TAO_FlowSpec_Entry * /*entry*/, // TAO_AV_RTCP_Object int -TAO_AV_RTCP_Object::handle_input (void) +TAO_AV_RTCP_Object::handle_input () { size_t bufsiz = 2*this->transport_->mtu (); ACE_Message_Block data (bufsiz); @@ -440,12 +440,12 @@ TAO_AV_RTCP_Object::TAO_AV_RTCP_Object (TAO_AV_Callback *client_cb, } -TAO_AV_RTCP_Object::~TAO_AV_RTCP_Object (void) +TAO_AV_RTCP_Object::~TAO_AV_RTCP_Object () { } int -TAO_AV_RTCP_Object::destroy (void) +TAO_AV_RTCP_Object::destroy () { this->callback_->handle_destroy (); delete this; @@ -460,13 +460,13 @@ TAO_AV_RTCP_Object::set_policies (const TAO_AV_PolicyList &/*policy_list*/) } int -TAO_AV_RTCP_Object::start (void) +TAO_AV_RTCP_Object::start () { return this->callback_->handle_start (); } int -TAO_AV_RTCP_Object::stop (void) +TAO_AV_RTCP_Object::stop () { return this->callback_->handle_stop (); } @@ -496,7 +496,7 @@ TAO_AV_RTCP_Object::ts_offset (ACE_UINT32 ts_offset) } // TAO_AV_RTCP_Callback -TAO_AV_RTCP_Callback::TAO_AV_RTCP_Callback (void) +TAO_AV_RTCP_Callback::TAO_AV_RTCP_Callback () :is_initial_timeout_(1), packet_size_(0) { @@ -510,7 +510,7 @@ TAO_AV_RTCP_Callback::TAO_AV_RTCP_Callback (void) this->output_.cname(cname); } -TAO_AV_RTCP_Callback::~TAO_AV_RTCP_Callback (void) +TAO_AV_RTCP_Callback::~TAO_AV_RTCP_Callback () { } @@ -521,13 +521,13 @@ TAO_AV_RTCP_Callback::schedule (int ms) } int -TAO_AV_RTCP_Callback::handle_start (void) +TAO_AV_RTCP_Callback::handle_start () { return 0; } int -TAO_AV_RTCP_Callback::handle_stop (void) +TAO_AV_RTCP_Callback::handle_stop () { return this->send_report(1); } @@ -773,7 +773,7 @@ TAO_AV_RTCP_Callback::get_timeout (ACE_Time_Value *&tv, } int -TAO_AV_RTCP_Callback::handle_destroy (void) +TAO_AV_RTCP_Callback::handle_destroy () { return 0; } diff --git a/TAO/orbsvcs/orbsvcs/AV/RTCP_Channel.cpp b/TAO/orbsvcs/orbsvcs/AV/RTCP_Channel.cpp index 63fcc7c4899..752b1a21d6d 100644 --- a/TAO/orbsvcs/orbsvcs/AV/RTCP_Channel.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/RTCP_Channel.cpp @@ -29,7 +29,7 @@ RTCP_Channel_In::RTCP_Channel_In (ACE_UINT32 ssrc, this->peer_address_ = inet_addr; } -RTCP_Channel_In::~RTCP_Channel_In(void) +RTCP_Channel_In::~RTCP_Channel_In() { delete this->peer_address_; } @@ -237,7 +237,7 @@ RTCP_Channel_In::recv_rtp_packet(ACE_Message_Block *mb, RR_Block * -RTCP_Channel_In::getRRBlock(void) +RTCP_Channel_In::getRRBlock() { // If no data has been received since the last report, don't create a block. if (!this->data_since_last_report_) @@ -310,7 +310,7 @@ RTCP_Channel_In::getRRBlock(void) return local_block_ptr; } -RTCP_Channel_Out::RTCP_Channel_Out(void) +RTCP_Channel_Out::RTCP_Channel_Out() :cname_ ("cname"), active_ (0), timestamp_ (0), @@ -319,7 +319,7 @@ RTCP_Channel_Out::RTCP_Channel_Out(void) { } -RTCP_Channel_Out::~RTCP_Channel_Out(void) +RTCP_Channel_Out::~RTCP_Channel_Out() { } @@ -337,25 +337,25 @@ RTCP_Channel_Out::updateStatistics (RTP_Packet *data_packet) } ACE_UINT32 -RTCP_Channel_Out::timestamp (void) +RTCP_Channel_Out::timestamp () { return this->timestamp_; } ACE_UINT32 -RTCP_Channel_Out::packets_sent (void) +RTCP_Channel_Out::packets_sent () { return this->packets_sent_; } ACE_UINT32 -RTCP_Channel_Out::octets_sent (void) +RTCP_Channel_Out::octets_sent () { return this->octets_sent_; } char -RTCP_Channel_Out::active (void) +RTCP_Channel_Out::active () { return this->active_; } diff --git a/TAO/orbsvcs/orbsvcs/AV/RTCP_Packet.cpp b/TAO/orbsvcs/orbsvcs/AV/RTCP_Packet.cpp index 8c0be928bc6..94fa8838943 100644 --- a/TAO/orbsvcs/orbsvcs/AV/RTCP_Packet.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/RTCP_Packet.cpp @@ -5,7 +5,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -RTCP_Packet::RTCP_Packet(void) +RTCP_Packet::RTCP_Packet() { this->chd_.ver_ = 2; this->chd_.count_ = 0; @@ -30,7 +30,7 @@ RTCP_Packet::RTCP_Packet(char* buffer) this->packet_data_ = 0; } -RTCP_Packet::~RTCP_Packet(void) +RTCP_Packet::~RTCP_Packet() { } @@ -159,7 +159,7 @@ RTCP_BYE_Packet::RTCP_BYE_Packet(char* buffer, int *len) //============================================================================== -RTCP_BYE_Packet::~RTCP_BYE_Packet(void) +RTCP_BYE_Packet::~RTCP_BYE_Packet() { if (this->ssrc_list_) delete []this->ssrc_list_; @@ -170,7 +170,7 @@ RTCP_BYE_Packet::~RTCP_BYE_Packet(void) //============================================================================== unsigned int -RTCP_BYE_Packet::packet_size(void) +RTCP_BYE_Packet::packet_size() { ACE_UINT16 size = static_cast<ACE_UINT16> ((1+chd_.count_) * 4); @@ -196,7 +196,7 @@ RTCP_BYE_Packet::ssrc_list(ACE_UINT32 **ssrc_list, unsigned char &length) //============================================================================== const char * -RTCP_BYE_Packet::reason (void) +RTCP_BYE_Packet::reason () { ACE_CString reason = (const char *)this->reason_; @@ -206,7 +206,7 @@ RTCP_BYE_Packet::reason (void) //============================================================================== void -RTCP_BYE_Packet::build_packet(void) +RTCP_BYE_Packet::build_packet() { unsigned int index; unsigned int i; @@ -248,7 +248,7 @@ RTCP_BYE_Packet::build_packet(void) } void -RTCP_BYE_Packet::dump (void) +RTCP_BYE_Packet::dump () { ORBSVCS_DEBUG ((LM_DEBUG, "\nRTCP_BYE_Packet:: from ssrc(s) ")); @@ -344,7 +344,7 @@ RTCP_RR_Packet::RTCP_RR_Packet (char* buffer, //============================================================================== -RTCP_RR_Packet::~RTCP_RR_Packet(void) +RTCP_RR_Packet::~RTCP_RR_Packet() { RR_Block *prev; @@ -365,7 +365,7 @@ RTCP_RR_Packet::~RTCP_RR_Packet(void) //============================================================================== unsigned int -RTCP_RR_Packet::packet_size(void) +RTCP_RR_Packet::packet_size() { ACE_UINT16 size = static_cast<ACE_UINT16> ((2+this->chd_.count_*6) * 4); return size; @@ -374,7 +374,7 @@ RTCP_RR_Packet::packet_size(void) //============================================================================== void -RTCP_RR_Packet::build_packet(void) +RTCP_RR_Packet::build_packet() { int index; RR_Block *local_block_ptr; @@ -419,7 +419,7 @@ RTCP_RR_Packet::build_packet(void) } void -RTCP_RR_Packet::dump (void) +RTCP_RR_Packet::dump () { RR_Block *b = this->rr_; int count = 1; @@ -450,7 +450,7 @@ RTCP_RR_Packet::dump (void) } -RTCP_SDES_Packet::RTCP_SDES_Packet(void) : +RTCP_SDES_Packet::RTCP_SDES_Packet() : RTCP_Packet () { this->chd_.pt_ = RTCP_PT_SDES; @@ -563,7 +563,7 @@ RTCP_SDES_Packet::RTCP_SDES_Packet(char* buffer, int *len): //============================================================================== -RTCP_SDES_Packet::~RTCP_SDES_Packet(void) +RTCP_SDES_Packet::~RTCP_SDES_Packet() { sdesChunk_t *cp; // pointer to chunk sdesChunk_t *cpprev; @@ -778,7 +778,7 @@ RTCP_SDES_Packet::add_priv_item (ACE_UINT32 ssrc, //============================================================================== unsigned int -RTCP_SDES_Packet::packet_size(void) +RTCP_SDES_Packet::packet_size() { int size; sdesChunk_t *cp; // pointer to chunk @@ -817,7 +817,7 @@ RTCP_SDES_Packet::packet_size(void) //============================================================================== void -RTCP_SDES_Packet::build_packet(void) +RTCP_SDES_Packet::build_packet() { sdesChunk_t *cp; // pointer to chunk sdesItem_t *ip; // pointer to item @@ -900,7 +900,7 @@ RTCP_SDES_Packet::build_packet(void) } void -RTCP_SDES_Packet::dump (void) +RTCP_SDES_Packet::dump () { sdesItem_t *ip; @@ -1087,7 +1087,7 @@ RTCP_SR_Packet::RTCP_SR_Packet (char* buffer, //============================================================================== -RTCP_SR_Packet::~RTCP_SR_Packet(void) +RTCP_SR_Packet::~RTCP_SR_Packet() { RR_Block *prev; @@ -1107,7 +1107,7 @@ RTCP_SR_Packet::~RTCP_SR_Packet(void) //============================================================================== -unsigned int RTCP_SR_Packet::packet_size (void) +unsigned int RTCP_SR_Packet::packet_size () { ACE_UINT16 size = static_cast<ACE_UINT16> ((2+chd_.count_*6) * 4); // + profile specific extensions ? size += 20; // the first line is the same as RR; 20 more bytes for SR @@ -1117,7 +1117,7 @@ unsigned int RTCP_SR_Packet::packet_size (void) //============================================================================== -void RTCP_SR_Packet::build_packet(void) +void RTCP_SR_Packet::build_packet() { int index = 0; RR_Block *local_block_ptr; @@ -1171,7 +1171,7 @@ void RTCP_SR_Packet::build_packet(void) } void -RTCP_SR_Packet::dump (void) +RTCP_SR_Packet::dump () { RR_Block *b = this->rr_; int count = 1; diff --git a/TAO/orbsvcs/orbsvcs/AV/RTP.cpp b/TAO/orbsvcs/orbsvcs/AV/RTP.cpp index a7378a76974..633b870830e 100644 --- a/TAO/orbsvcs/orbsvcs/AV/RTP.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/RTP.cpp @@ -175,78 +175,78 @@ RTP_Packet::RTP_Packet(unsigned char padding, } } -RTP_Packet::~RTP_Packet(void) +RTP_Packet::~RTP_Packet() { } ACE_UINT16 -RTP_Packet::packet_size(void) +RTP_Packet::packet_size() { return this->packet_size_; } ACE_UINT16 -RTP_Packet::payload_size(void) +RTP_Packet::payload_size() { return this->payload_size_; } unsigned int -RTP_Packet::ver (void) +RTP_Packet::ver () { return ( this->packet_[0] & 0xC0 ) >> 6; } unsigned int -RTP_Packet::pad (void) +RTP_Packet::pad () { return ( this->packet_[0] & 0x20 ) >> 5; } unsigned int -RTP_Packet::ext (void) +RTP_Packet::ext () { return ( this->packet_[0] & 0x10 ) >> 4; } unsigned int -RTP_Packet::cc (void) +RTP_Packet::cc () { return ( this->packet_[0] & 0x0F ) ; } unsigned int -RTP_Packet::mrk (void) +RTP_Packet::mrk () { return ( this->packet_[1] & 0x80 ) >> 7; } unsigned int -RTP_Packet::pt (void) +RTP_Packet::pt () { return ( this->packet_[1] & 0x7F ) ; } ACE_UINT16 -RTP_Packet::sn (void) +RTP_Packet::sn () { return ntohs(*(ACE_UINT16*)(&this->packet_[2])) ; } ACE_UINT32 -RTP_Packet::ts (void) +RTP_Packet::ts () { return ntohl(*(ACE_UINT32*)(&this->packet_[4])) ; } ACE_UINT32 -RTP_Packet::ssrc (void) +RTP_Packet::ssrc () { return ntohl(*(ACE_UINT32*)(&this->packet_[8])) ; } unsigned int -RTP_Packet::ext_bytes (void) +RTP_Packet::ext_bytes () { return this->extension_bytes_; } @@ -262,7 +262,7 @@ RTP_Packet::get_frame_info (TAO_AV_frame_info *frame_info) } int -RTP_Packet::is_valid (void) +RTP_Packet::is_valid () { // taken from RFC 1889 - Appendix A.1 @@ -315,7 +315,7 @@ RTP_Packet::get_packet_data (char **packet, ACE_UINT16 &length) // TAO_AV_RTP_Object int -TAO_AV_RTP_Object::handle_input (void) +TAO_AV_RTP_Object::handle_input () { TAO_AV_frame_info frame_info; @@ -638,12 +638,12 @@ TAO_AV_RTP_Object::TAO_AV_RTP_Object (TAO_AV_Callback *callback, this->frame_.size (2 * this->transport_->mtu ()); } -TAO_AV_RTP_Object::~TAO_AV_RTP_Object (void) +TAO_AV_RTP_Object::~TAO_AV_RTP_Object () { } int -TAO_AV_RTP_Object::destroy (void) +TAO_AV_RTP_Object::destroy () { if(this->control_object_) this->control_object_->destroy (); @@ -702,25 +702,25 @@ TAO_AV_RTP_Object::control_object (TAO_AV_Protocol_Object *object) } int -TAO_AV_RTP_Object::start (void) +TAO_AV_RTP_Object::start () { this->control_object_->start (); return this->callback_->handle_start (); } int -TAO_AV_RTP_Object::stop (void) +TAO_AV_RTP_Object::stop () { this->control_object_->stop (); return this->callback_->handle_stop (); } // TAO_AV_RTP_Flow_Factory -TAO_AV_RTP_Flow_Factory::TAO_AV_RTP_Flow_Factory (void) +TAO_AV_RTP_Flow_Factory::TAO_AV_RTP_Flow_Factory () { } -TAO_AV_RTP_Flow_Factory::~TAO_AV_RTP_Flow_Factory (void) +TAO_AV_RTP_Flow_Factory::~TAO_AV_RTP_Flow_Factory () { } @@ -768,7 +768,7 @@ TAO_AV_RTP_Flow_Factory::match_protocol (const char *flow_string) } const char * -TAO_AV_RTP_Flow_Factory::control_flow_factory (void) +TAO_AV_RTP_Flow_Factory::control_flow_factory () { return "RTCP"; } diff --git a/TAO/orbsvcs/orbsvcs/AV/TCP.cpp b/TAO/orbsvcs/orbsvcs/AV/TCP.cpp index afe9e424271..8e0291e108d 100644 --- a/TAO/orbsvcs/orbsvcs/AV/TCP.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/TCP.cpp @@ -12,7 +12,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL // TAO_AV_TCP_Transport //------------------------------------------------------------ -TAO_AV_TCP_Transport::TAO_AV_TCP_Transport (void) +TAO_AV_TCP_Transport::TAO_AV_TCP_Transport () :handler_ (0) { } @@ -22,7 +22,7 @@ TAO_AV_TCP_Transport::TAO_AV_TCP_Transport (TAO_AV_TCP_Flow_Handler *handler) { } -TAO_AV_TCP_Transport::~TAO_AV_TCP_Transport (void) +TAO_AV_TCP_Transport::~TAO_AV_TCP_Transport () { } @@ -33,19 +33,19 @@ TAO_AV_TCP_Transport::open (ACE_Addr * /*address*/) } int -TAO_AV_TCP_Transport::close (void) +TAO_AV_TCP_Transport::close () { return 0; } int -TAO_AV_TCP_Transport::mtu (void) +TAO_AV_TCP_Transport::mtu () { return -1; } ACE_Addr* -TAO_AV_TCP_Transport::get_peer_addr (void) +TAO_AV_TCP_Transport::get_peer_addr () { return 0; } @@ -153,11 +153,11 @@ TAO_AV_TCP_Transport::recv (iovec *iov, // TAO_AV_TCP_Protocol_Factory //------------------------------------------------------------ -TAO_AV_TCP_Factory::TAO_AV_TCP_Factory (void) +TAO_AV_TCP_Factory::TAO_AV_TCP_Factory () { } -TAO_AV_TCP_Factory::~TAO_AV_TCP_Factory (void) +TAO_AV_TCP_Factory::~TAO_AV_TCP_Factory () { } @@ -177,7 +177,7 @@ TAO_AV_TCP_Factory::match_protocol (const char *protocol_string) } TAO_AV_Acceptor* -TAO_AV_TCP_Factory::make_acceptor (void) +TAO_AV_TCP_Factory::make_acceptor () { if (TAO_debug_level > 0) ORBSVCS_DEBUG ((LM_DEBUG,"TAO_AV_TCP_Factory::make_acceptor ")); TAO_AV_Acceptor *acceptor = 0; @@ -188,7 +188,7 @@ TAO_AV_TCP_Factory::make_acceptor (void) } TAO_AV_Connector* -TAO_AV_TCP_Factory::make_connector (void) +TAO_AV_TCP_Factory::make_connector () { if (TAO_debug_level > 0) ORBSVCS_DEBUG ((LM_DEBUG,"TAO_AV_TCP_Factory::make_connector ")); TAO_AV_Connector *connector = 0; @@ -203,7 +203,7 @@ TAO_AV_TCP_Factory::make_connector (void) //------------------------------------------------------------ int -TAO_AV_TCP_Object::handle_input (void) +TAO_AV_TCP_Object::handle_input () { int n = this->transport_->recv (this->frame_.rd_ptr (), this->frame_.size ()); @@ -249,12 +249,12 @@ TAO_AV_TCP_Object::TAO_AV_TCP_Object (TAO_AV_Callback *callback, this->frame_.size (BUFSIZ); } -TAO_AV_TCP_Object::~TAO_AV_TCP_Object (void) +TAO_AV_TCP_Object::~TAO_AV_TCP_Object () { // No-op } int -TAO_AV_TCP_Object::destroy (void) +TAO_AV_TCP_Object::destroy () { this->callback_->handle_destroy (); delete this; @@ -264,11 +264,11 @@ TAO_AV_TCP_Object::destroy (void) //------------------------------------------------------------ // TAO_AV_TCP_Flow_Factory //------------------------------------------------------------ -TAO_AV_TCP_Flow_Factory::TAO_AV_TCP_Flow_Factory (void) +TAO_AV_TCP_Flow_Factory::TAO_AV_TCP_Flow_Factory () { } -TAO_AV_TCP_Flow_Factory::~TAO_AV_TCP_Flow_Factory (void) +TAO_AV_TCP_Flow_Factory::~TAO_AV_TCP_Flow_Factory () { } @@ -357,11 +357,11 @@ TAO_AV_TCP_Base_Connector::connector_connect (TAO_AV_TCP_Flow_Handler *&handler, //------------------------------------------------------------ // TAO_AV_TCP_Connector //------------------------------------------------------------ -TAO_AV_TCP_Connector::TAO_AV_TCP_Connector (void) +TAO_AV_TCP_Connector::TAO_AV_TCP_Connector () { } -TAO_AV_TCP_Connector::~TAO_AV_TCP_Connector (void) +TAO_AV_TCP_Connector::~TAO_AV_TCP_Connector () { } @@ -431,7 +431,7 @@ TAO_AV_TCP_Connector::connect (TAO_FlowSpec_Entry *entry, } int -TAO_AV_TCP_Connector::close (void) +TAO_AV_TCP_Connector::close () { return 0; } @@ -473,11 +473,11 @@ TAO_AV_TCP_Base_Acceptor::make_svc_handler (TAO_AV_TCP_Flow_Handler *&handler) // TAO_AV_TCP_Acceptor //------------------------------------------------------------ -TAO_AV_TCP_Acceptor::TAO_AV_TCP_Acceptor (void) +TAO_AV_TCP_Acceptor::TAO_AV_TCP_Acceptor () { } -TAO_AV_TCP_Acceptor::~TAO_AV_TCP_Acceptor (void) +TAO_AV_TCP_Acceptor::~TAO_AV_TCP_Acceptor () { } @@ -612,7 +612,7 @@ TAO_AV_TCP_Acceptor::open_default (TAO_Base_StreamEndPoint *endpoint, int -TAO_AV_TCP_Acceptor::close (void) +TAO_AV_TCP_Acceptor::close () { return 0; } @@ -628,13 +628,13 @@ TAO_AV_TCP_Flow_Handler::TAO_AV_TCP_Flow_Handler (TAO_AV_Callback * /*callback*/ TAO_AV_TCP_Transport (this)); } -TAO_AV_TCP_Flow_Handler::~TAO_AV_TCP_Flow_Handler (void) +TAO_AV_TCP_Flow_Handler::~TAO_AV_TCP_Flow_Handler () { delete this->transport_; } TAO_AV_Transport * -TAO_AV_TCP_Flow_Handler::transport (void) +TAO_AV_TCP_Flow_Handler::transport () { return this->transport_; } diff --git a/TAO/orbsvcs/orbsvcs/AV/Transport.cpp b/TAO/orbsvcs/orbsvcs/AV/Transport.cpp index 909d9eb5657..5e5a7dd19cc 100644 --- a/TAO/orbsvcs/orbsvcs/AV/Transport.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/Transport.cpp @@ -47,7 +47,7 @@ TAO_AV_Flow_Protocol_Item::TAO_AV_Flow_Protocol_Item (const ACE_CString &name) // TAO_AV_Connector_Registry //------------------------------------------------------------ -TAO_AV_Connector_Registry::TAO_AV_Connector_Registry (void) +TAO_AV_Connector_Registry::TAO_AV_Connector_Registry () { } @@ -174,7 +174,7 @@ TAO_AV_Connector_Registry::close (TAO_AV_Connector *connector) } int -TAO_AV_Connector_Registry::close_all (void) +TAO_AV_Connector_Registry::close_all () { for (TAO_AV_ConnectorSetItor i = this->connectors_.begin (); i != this->connectors_.end (); @@ -192,7 +192,7 @@ TAO_AV_Connector_Registry::close_all (void) return 0; } -TAO_AV_Connector_Registry::~TAO_AV_Connector_Registry (void) +TAO_AV_Connector_Registry::~TAO_AV_Connector_Registry () { this->close_all (); } @@ -201,11 +201,11 @@ TAO_AV_Connector_Registry::~TAO_AV_Connector_Registry (void) // TAO_AV_Acceptor_Registry //------------------------------------------------------------ -TAO_AV_Acceptor_Registry::TAO_AV_Acceptor_Registry (void) +TAO_AV_Acceptor_Registry::TAO_AV_Acceptor_Registry () { } -TAO_AV_Acceptor_Registry::~TAO_AV_Acceptor_Registry (void) +TAO_AV_Acceptor_Registry::~TAO_AV_Acceptor_Registry () { this->close_all(); } @@ -443,7 +443,7 @@ TAO_AV_Acceptor_Registry::close (TAO_AV_Acceptor *acceptor) } int -TAO_AV_Acceptor_Registry::close_all (void) +TAO_AV_Acceptor_Registry::close_all () { for (TAO_AV_AcceptorSetItor i = this->acceptors_.begin (); i != this->acceptors_.end (); @@ -465,17 +465,17 @@ TAO_AV_Acceptor_Registry::close_all (void) // TAO_AV_Transport //---------------------------------------------------------------------- -TAO_AV_Transport::TAO_AV_Transport (void) +TAO_AV_Transport::TAO_AV_Transport () { } // Virtual destructor. -TAO_AV_Transport::~TAO_AV_Transport (void) +TAO_AV_Transport::~TAO_AV_Transport () { } ACE_Addr* -TAO_AV_Transport::get_local_addr (void) +TAO_AV_Transport::get_local_addr () { return 0; } @@ -485,7 +485,7 @@ TAO_AV_Transport::get_local_addr (void) //---------------------------------------------------------------------- //TAO_AV_Flow_Handler::TAO_AV_Flow_Handler (TAO_AV_Callback *callback) -TAO_AV_Flow_Handler::TAO_AV_Flow_Handler (void) +TAO_AV_Flow_Handler::TAO_AV_Flow_Handler () :transport_ (0), callback_ (0), protocol_object_ (0), @@ -493,7 +493,7 @@ TAO_AV_Flow_Handler::TAO_AV_Flow_Handler (void) { } -TAO_AV_Flow_Handler::~TAO_AV_Flow_Handler(void) +TAO_AV_Flow_Handler::~TAO_AV_Flow_Handler() { // cancel the timer (if there is one) this->cancel_timer(); @@ -524,7 +524,7 @@ TAO_AV_Flow_Handler::start (TAO_FlowSpec_Entry::Role role) } int -TAO_AV_Flow_Handler::schedule_timer (void) +TAO_AV_Flow_Handler::schedule_timer () { ACE_Event_Handler *event_handler = this->event_handler (); ACE_Time_Value *tv = 0; @@ -546,7 +546,7 @@ TAO_AV_Flow_Handler::schedule_timer (void) int -TAO_AV_Flow_Handler::cancel_timer (void) +TAO_AV_Flow_Handler::cancel_timer () { if (this->timer_id_ != -1) return TAO_AV_CORE::instance()->reactor ()->cancel_timer (this->timer_id_); @@ -605,7 +605,7 @@ TAO_AV_Flow_Handler::change_qos (AVStreams::QoS) } TAO_AV_Transport* -TAO_AV_Flow_Handler::transport (void) +TAO_AV_Flow_Handler::transport () { return this->transport_; } @@ -617,7 +617,7 @@ TAO_AV_Flow_Handler::protocol_object (TAO_AV_Protocol_Object *protocol_object) } TAO_AV_Protocol_Object* -TAO_AV_Flow_Handler::protocol_object (void) +TAO_AV_Flow_Handler::protocol_object () { return this->protocol_object_; } @@ -629,29 +629,29 @@ TAO_AV_Flow_Handler::callback (TAO_AV_Callback *callback) } // TAO_AV_Connector -TAO_AV_Connector::TAO_AV_Connector (void) +TAO_AV_Connector::TAO_AV_Connector () { } -TAO_AV_Connector::~TAO_AV_Connector (void) +TAO_AV_Connector::~TAO_AV_Connector () { } // TAO_AV_Acceptor -TAO_AV_Acceptor::TAO_AV_Acceptor (void) +TAO_AV_Acceptor::TAO_AV_Acceptor () { } -TAO_AV_Acceptor::~TAO_AV_Acceptor (void) +TAO_AV_Acceptor::~TAO_AV_Acceptor () { } -TAO_AV_Transport_Factory::TAO_AV_Transport_Factory (void) +TAO_AV_Transport_Factory::TAO_AV_Transport_Factory () : ref_count (0) { } -TAO_AV_Transport_Factory::~TAO_AV_Transport_Factory (void) +TAO_AV_Transport_Factory::~TAO_AV_Transport_Factory () { } @@ -669,13 +669,13 @@ TAO_AV_Transport_Factory::match_protocol (const char * /* protocol_string */) } TAO_AV_Acceptor * -TAO_AV_Transport_Factory::make_acceptor (void) +TAO_AV_Transport_Factory::make_acceptor () { return 0; } TAO_AV_Connector * -TAO_AV_Transport_Factory::make_connector (void) +TAO_AV_Transport_Factory::make_connector () { return 0; } diff --git a/TAO/orbsvcs/orbsvcs/AV/UDP.cpp b/TAO/orbsvcs/orbsvcs/AV/UDP.cpp index 601e173fdfc..edfa055b2a1 100644 --- a/TAO/orbsvcs/orbsvcs/AV/UDP.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/UDP.cpp @@ -17,13 +17,13 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL // TAO_AV_UDP_Flow_Handler //------------------------------------------------------------ -TAO_AV_UDP_Flow_Handler::TAO_AV_UDP_Flow_Handler (void) +TAO_AV_UDP_Flow_Handler::TAO_AV_UDP_Flow_Handler () { ACE_NEW (this->transport_, TAO_AV_UDP_Transport (this)); } -TAO_AV_UDP_Flow_Handler::~TAO_AV_UDP_Flow_Handler (void) +TAO_AV_UDP_Flow_Handler::~TAO_AV_UDP_Flow_Handler () { // remove the event handler from the reactor. TAO_AV_CORE::instance()->reactor ()->remove_handler (this->event_handler(), @@ -35,7 +35,7 @@ TAO_AV_UDP_Flow_Handler::~TAO_AV_UDP_Flow_Handler (void) } TAO_AV_Transport * -TAO_AV_UDP_Flow_Handler::transport (void) +TAO_AV_UDP_Flow_Handler::transport () { return this->transport_; } @@ -68,7 +68,7 @@ TAO_AV_UDP_Flow_Handler::set_remote_address (ACE_Addr *address) ACE_HANDLE -TAO_AV_UDP_Flow_Handler::get_handle (void) const +TAO_AV_UDP_Flow_Handler::get_handle () const { if (TAO_debug_level > 0) ORBSVCS_DEBUG ((LM_DEBUG, @@ -155,7 +155,7 @@ TAO_AV_UDP_Flow_Handler::change_qos(AVStreams::QoS qos) // TAO_AV_UDP_Transport //------------------------------------------------------------ -TAO_AV_UDP_Transport::TAO_AV_UDP_Transport (void) +TAO_AV_UDP_Transport::TAO_AV_UDP_Transport () :handler_ (0) { } @@ -166,7 +166,7 @@ TAO_AV_UDP_Transport::TAO_AV_UDP_Transport (TAO_AV_UDP_Flow_Handler *handler) { } -TAO_AV_UDP_Transport::~TAO_AV_UDP_Transport (void) +TAO_AV_UDP_Transport::~TAO_AV_UDP_Transport () { } @@ -184,19 +184,19 @@ TAO_AV_UDP_Transport::open (ACE_Addr * /*address*/) } int -TAO_AV_UDP_Transport::close (void) +TAO_AV_UDP_Transport::close () { return 0; } int -TAO_AV_UDP_Transport::mtu (void) +TAO_AV_UDP_Transport::mtu () { return 65535; } ACE_Addr* -TAO_AV_UDP_Transport::get_peer_addr (void) +TAO_AV_UDP_Transport::get_peer_addr () { return &this->peer_addr_; } @@ -318,13 +318,13 @@ TAO_AV_UDP_Transport::recv (iovec *iov, // TAO_AV_UDP_Acceptor //------------------------------------------------------------ -TAO_AV_UDP_Acceptor::TAO_AV_UDP_Acceptor (void) +TAO_AV_UDP_Acceptor::TAO_AV_UDP_Acceptor () : address_ (0), control_inet_address_ (0) { } -TAO_AV_UDP_Acceptor::~TAO_AV_UDP_Acceptor (void) +TAO_AV_UDP_Acceptor::~TAO_AV_UDP_Acceptor () { if (this->flow_component_ == TAO_AV_Core::TAO_AV_CONTROL) delete this->entry_->control_handler (); @@ -556,7 +556,7 @@ TAO_AV_UDP_Acceptor::open_i (ACE_INET_Addr *inet_addr, } int -TAO_AV_UDP_Acceptor::close (void) +TAO_AV_UDP_Acceptor::close () { return 0; } @@ -564,12 +564,12 @@ TAO_AV_UDP_Acceptor::close (void) //------------------------------------------------------------ // TAO_AV_UDP_Connector //------------------------------------------------------------ -TAO_AV_UDP_Connector::TAO_AV_UDP_Connector (void) +TAO_AV_UDP_Connector::TAO_AV_UDP_Connector () : control_inet_address_ (0) { } -TAO_AV_UDP_Connector::~TAO_AV_UDP_Connector (void) +TAO_AV_UDP_Connector::~TAO_AV_UDP_Connector () { if (this->flow_component_ == TAO_AV_Core::TAO_AV_CONTROL) { @@ -779,7 +779,7 @@ TAO_AV_UDP_Connector::activate_svc_handler (TAO_AV_Flow_Handler *handler) } int -TAO_AV_UDP_Connector::close (void) +TAO_AV_UDP_Connector::close () { return 0; } @@ -908,11 +908,11 @@ TAO_AV_UDP_Connection_Setup::setup (TAO_AV_Flow_Handler *&flow_handler, // TAO_AV_UDP_Protocol_Factory //------------------------------------------------------------ -TAO_AV_UDP_Factory::TAO_AV_UDP_Factory (void) +TAO_AV_UDP_Factory::TAO_AV_UDP_Factory () { } -TAO_AV_UDP_Factory::~TAO_AV_UDP_Factory (void) +TAO_AV_UDP_Factory::~TAO_AV_UDP_Factory () { } @@ -927,7 +927,7 @@ TAO_AV_UDP_Factory::match_protocol (const char *protocol_string) } TAO_AV_Acceptor* -TAO_AV_UDP_Factory::make_acceptor (void) +TAO_AV_UDP_Factory::make_acceptor () { if (TAO_debug_level > 0) ORBSVCS_DEBUG ((LM_DEBUG,"TAO_AV_UDP_Factory::make_acceptor\n")); TAO_AV_Acceptor *acceptor = 0; @@ -938,7 +938,7 @@ TAO_AV_UDP_Factory::make_acceptor (void) } TAO_AV_Connector* -TAO_AV_UDP_Factory::make_connector (void) +TAO_AV_UDP_Factory::make_connector () { if (TAO_debug_level > 0) ORBSVCS_DEBUG ((LM_DEBUG,"TAO_AV_UDP_Factory::make_connector\n")); TAO_AV_Connector *connector = 0; @@ -960,7 +960,7 @@ TAO_AV_UDP_Factory::init (int /* argc */, //------------------------------------------------------------ int -TAO_AV_UDP_Object::handle_input (void) +TAO_AV_UDP_Object::handle_input () { int n = this->transport_->recv (this->frame_.rd_ptr (), this->frame_.size ()); @@ -1012,13 +1012,13 @@ TAO_AV_UDP_Object::TAO_AV_UDP_Object (TAO_AV_Callback *callback, this->frame_.size (this->transport_->mtu ()); } -TAO_AV_UDP_Object::~TAO_AV_UDP_Object (void) +TAO_AV_UDP_Object::~TAO_AV_UDP_Object () { //no-op } int -TAO_AV_UDP_Object::destroy (void) +TAO_AV_UDP_Object::destroy () { this->callback_->handle_destroy (); delete this; @@ -1030,11 +1030,11 @@ TAO_AV_UDP_Object::destroy (void) //------------------------------------------------------------ // TAO_AV_UDP_Flow_Factory //------------------------------------------------------------ -TAO_AV_UDP_Flow_Factory::TAO_AV_UDP_Flow_Factory (void) +TAO_AV_UDP_Flow_Factory::TAO_AV_UDP_Flow_Factory () { } -TAO_AV_UDP_Flow_Factory::~TAO_AV_UDP_Flow_Factory (void) +TAO_AV_UDP_Flow_Factory::~TAO_AV_UDP_Flow_Factory () { } diff --git a/TAO/orbsvcs/orbsvcs/AV/default_resource.cpp b/TAO/orbsvcs/orbsvcs/AV/default_resource.cpp index 19ec09132b9..1a20983efb2 100644 --- a/TAO/orbsvcs/orbsvcs/AV/default_resource.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/default_resource.cpp @@ -8,14 +8,14 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_AV_Default_Resource_Factory::TAO_AV_Default_Resource_Factory (void) +TAO_AV_Default_Resource_Factory::TAO_AV_Default_Resource_Factory () { if (TAO_debug_level > 0) ORBSVCS_DEBUG ((LM_DEBUG, "TAO_AV_Default_Resource_Factory::TAO_AV_Default_Resource_Factory %d\n")); } -TAO_AV_Default_Resource_Factory::~TAO_AV_Default_Resource_Factory (void) +TAO_AV_Default_Resource_Factory::~TAO_AV_Default_Resource_Factory () { TAO_AV_TransportFactorySetItor t_end = TAO_AV_CORE::instance ()->transport_factories ()->end (); for (TAO_AV_TransportFactorySetItor tfiterator = diff --git a/TAO/orbsvcs/orbsvcs/AV/sfp.cpp b/TAO/orbsvcs/orbsvcs/AV/sfp.cpp index ad857ef4536..77b9e1542a7 100644 --- a/TAO/orbsvcs/orbsvcs/AV/sfp.cpp +++ b/TAO/orbsvcs/orbsvcs/AV/sfp.cpp @@ -45,7 +45,7 @@ operator< (const TAO_SFP_Fragment_Node& left, // TAO_SFP_Base //------------------------------------------------------------ -TAO_SFP_Base::TAO_SFP_Base (void) +TAO_SFP_Base::TAO_SFP_Base () { TAO_OutputCDR output_cdr; flowProtocol::frameHeader frame_header; @@ -845,13 +845,13 @@ TAO_SFP_Object::TAO_SFP_Object (TAO_AV_Callback *callback, this->state_.static_frame_.size (2* this->transport_->mtu ()); } -TAO_SFP_Object::~TAO_SFP_Object (void) +TAO_SFP_Object::~TAO_SFP_Object () { //no-op } int -TAO_SFP_Object::destroy (void) +TAO_SFP_Object::destroy () { int result = -1; TAO_OutputCDR out_stream; @@ -1127,7 +1127,7 @@ TAO_SFP_Consumer_Object::TAO_SFP_Consumer_Object (TAO_AV_Callback *callback, } int -TAO_SFP_Consumer_Object::handle_input (void) +TAO_SFP_Consumer_Object::handle_input () { if (TAO_debug_level > 0) ORBSVCS_DEBUG ((LM_DEBUG,"TAO_SFP_Consumer_Object::handle_input\n")); // This is the entry point for receiving data. @@ -1177,7 +1177,7 @@ TAO_SFP_Producer_Object::TAO_SFP_Producer_Object (TAO_AV_Callback *callback, } int -TAO_SFP_Producer_Object::handle_input (void) +TAO_SFP_Producer_Object::handle_input () { // A producer can only receive credit messages. int result; @@ -1223,11 +1223,11 @@ TAO_SFP_Producer_Object::handle_input (void) } // TAO_AV_SFP_Factory -TAO_AV_SFP_Factory::TAO_AV_SFP_Factory (void) +TAO_AV_SFP_Factory::TAO_AV_SFP_Factory () { } -TAO_AV_SFP_Factory::~TAO_AV_SFP_Factory (void) +TAO_AV_SFP_Factory::~TAO_AV_SFP_Factory () { } @@ -1293,7 +1293,7 @@ TAO_AV_SFP_Factory::make_protocol_object (TAO_FlowSpec_Entry *entry, // TAO_SFP_Frame_State //------------------------------------------------------------ -TAO_SFP_Frame_State::TAO_SFP_Frame_State (void) +TAO_SFP_Frame_State::TAO_SFP_Frame_State () :cdr (new ACE_Data_Block (ACE_CDR::DEFAULT_BUFSIZE, ACE_Message_Block::MB_DATA, 0, @@ -1309,13 +1309,13 @@ TAO_SFP_Frame_State::TAO_SFP_Frame_State (void) } CORBA::Boolean -TAO_SFP_Frame_State::is_complete (void) +TAO_SFP_Frame_State::is_complete () { return (!this->more_fragments_) && (this->frame_block_); } int -TAO_SFP_Frame_State::reset (void) +TAO_SFP_Frame_State::reset () { this->frame_block_ = 0; return 0; diff --git a/TAO/orbsvcs/orbsvcs/Channel_Clients_T.h b/TAO/orbsvcs/orbsvcs/Channel_Clients_T.h index 296d2d2f6bd..9f2baab57a9 100644 --- a/TAO/orbsvcs/orbsvcs/Channel_Clients_T.h +++ b/TAO/orbsvcs/orbsvcs/Channel_Clients_T.h @@ -41,7 +41,7 @@ public: virtual void push (const RtecEventComm::EventSet& events); /// Forwards to target_. - virtual void disconnect_push_consumer (void); + virtual void disconnect_push_consumer (); private: TARGET *target_; @@ -64,7 +64,7 @@ public: ACE_PushSupplier_Adapter (TARGET *target); /// Forwards to target_. - virtual void disconnect_push_supplier (void); + virtual void disconnect_push_supplier (); private: TARGET *target_; diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.cpp b/TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.cpp index 997efb34aca..6b36ef5c48d 100644 --- a/TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.cpp +++ b/TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.cpp @@ -20,7 +20,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -CC_Lock::CC_Lock (void) +CC_Lock::CC_Lock () : mode_ (CosConcurrencyControl::intention_read), lock_held_ (0) { @@ -32,12 +32,12 @@ CC_Lock::CC_Lock (CosConcurrencyControl::lock_mode mode) { } -CC_Lock::~CC_Lock (void) +CC_Lock::~CC_Lock () { } void -CC_Lock::lock (void) +CC_Lock::lock () { ORBSVCS_DEBUG ((LM_DEBUG, "CC_Lock::lock\n")); @@ -45,7 +45,7 @@ CC_Lock::lock (void) } CORBA::Boolean -CC_Lock::try_lock (void) +CC_Lock::try_lock () { ORBSVCS_DEBUG ((LM_DEBUG, "CC_Lock::try_lock. ")); @@ -79,7 +79,7 @@ CC_Lock::try_lock (void) } void -CC_Lock::unlock (void) +CC_Lock::unlock () { ORBSVCS_DEBUG ((LM_DEBUG, "CC_Lock::unlock\n")); @@ -133,25 +133,25 @@ CC_Lock::Compatible (CosConcurrencyControl::lock_mode mode) } CosConcurrencyControl::lock_mode -CC_Lock::GetMode (void) +CC_Lock::GetMode () { return mode_; } int -CC_Lock::GetLocksHeld (void) +CC_Lock::GetLocksHeld () { return this->lock_held_; } void -CC_Lock::DecLocksHeld (void) +CC_Lock::DecLocksHeld () { this->lock_held_--; } void -CC_Lock::dump (void) +CC_Lock::dump () { ORBSVCS_DEBUG ((LM_DEBUG, "mode_ %i, lock_held_: %i\n", @@ -183,21 +183,21 @@ CORBA::Boolean CC_Lock::compatible_[NUMBER_OF_LOCK_MODES][NUMBER_OF_LOCK_MODES] // CC_LockModeterator -CC_LockModeIterator::CC_LockModeIterator (void) +CC_LockModeIterator::CC_LockModeIterator () : current_ (CosConcurrencyControl::intention_read) { } -CC_LockModeIterator::~CC_LockModeIterator (void) +CC_LockModeIterator::~CC_LockModeIterator () { // Do nothing } -void CC_LockModeIterator::First (void) +void CC_LockModeIterator::First () { current_ = CosConcurrencyControl::intention_read; } -void CC_LockModeIterator::Next (void) +void CC_LockModeIterator::Next () { switch (current_) { @@ -221,7 +221,7 @@ void CC_LockModeIterator::Next (void) } CORBA::Boolean -CC_LockModeIterator::IsDone (void) +CC_LockModeIterator::IsDone () { if (current_ == CosConcurrencyControl::write) return 1; @@ -230,7 +230,7 @@ CC_LockModeIterator::IsDone (void) } CosConcurrencyControl::lock_mode -CC_LockModeIterator::GetLockMode (void) +CC_LockModeIterator::GetLockMode () { return current_; } diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp index 8f1715e7959..99d6a1b442e 100644 --- a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp +++ b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp @@ -16,7 +16,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL // Default constructor. -CC_LockSet::CC_LockSet (void) +CC_LockSet::CC_LockSet () { try { @@ -45,7 +45,7 @@ CC_LockSet::CC_LockSet (CosConcurrencyControl::LockSet_ptr ) // Initialization. void -CC_LockSet::Init (void) +CC_LockSet::Init () { // Set the mode of the statically allocated locks lock_[CC_IR] = 0; @@ -61,7 +61,7 @@ CC_LockSet::Init (void) // Destructor -CC_LockSet::~CC_LockSet (void) +CC_LockSet::~CC_LockSet () { } @@ -278,7 +278,7 @@ CC_LockSet::lock_held (CC_LockModeEnum lm) } void -CC_LockSet::dump (void) +CC_LockSet::dump () { ORBSVCS_DEBUG ((LM_DEBUG, "waiting_calls_: %i, IR: %i, R: %i, U: %i, IW: %i, W: %i\n", diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.cpp b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.cpp index 9a78bc807ab..03a2175adb9 100644 --- a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.cpp +++ b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.cpp @@ -15,17 +15,17 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL // Default constructor -CC_LockSetFactory::CC_LockSetFactory (void) +CC_LockSetFactory::CC_LockSetFactory () { } // Destructor. -CC_LockSetFactory::~CC_LockSetFactory (void) +CC_LockSetFactory::~CC_LockSetFactory () { } CosConcurrencyControl::LockSet_ptr -CC_LockSetFactory::create (void) +CC_LockSetFactory::create () { CC_LockSet *ls = 0; diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Loader.cpp b/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Loader.cpp index 0056beb1e52..74555ec8ed7 100644 --- a/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Loader.cpp +++ b/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Loader.cpp @@ -18,11 +18,11 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Concurrency_Loader::TAO_Concurrency_Loader (void) +TAO_Concurrency_Loader::TAO_Concurrency_Loader () { } -TAO_Concurrency_Loader::~TAO_Concurrency_Loader (void) +TAO_Concurrency_Loader::~TAO_Concurrency_Loader () { } @@ -48,7 +48,7 @@ TAO_Concurrency_Loader::init (int argc, ACE_TCHAR *argv[]) } int -TAO_Concurrency_Loader::fini (void) +TAO_Concurrency_Loader::fini () { // Remove the Concurrency Service. this->concurrency_server_.fini(); diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Loader.h b/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Loader.h index db4f396520d..51ef58e254e 100644 --- a/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Loader.h +++ b/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Loader.h @@ -56,11 +56,10 @@ public: TAO_Concurrency_Server concurrency_server_; private: - - // Disallow copying and assignment. - TAO_Concurrency_Loader (const TAO_Concurrency_Loader &); - TAO_Concurrency_Loader &operator = (const TAO_Concurrency_Loader &); - + TAO_Concurrency_Loader (const TAO_Concurrency_Loader &) = delete; + TAO_Concurrency_Loader &operator = (const TAO_Concurrency_Loader &) = delete; + TAO_Concurrency_Loader (TAO_Concurrency_Loader &&) = delete; + TAO_Concurrency_Loader &operator = (TAO_Concurrency_Loader &&) = delete; }; TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.cpp b/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.cpp index 9ae228725bb..d0147e100f4 100644 --- a/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.cpp +++ b/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.cpp @@ -16,7 +16,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL // Default constructor -TAO_Concurrency_Server::TAO_Concurrency_Server (void) +TAO_Concurrency_Server::TAO_Concurrency_Server () { } @@ -72,7 +72,7 @@ TAO_Concurrency_Server::init (CORBA::ORB_ptr orb, } int -TAO_Concurrency_Server::fini (void) +TAO_Concurrency_Server::fini () { try { @@ -95,12 +95,12 @@ TAO_Concurrency_Server::fini (void) } CC_LockSetFactory * -TAO_Concurrency_Server::GetLockSetFactory(void) +TAO_Concurrency_Server::GetLockSetFactory() { return &this->lock_set_factory_; } -TAO_Concurrency_Server::~TAO_Concurrency_Server (void) +TAO_Concurrency_Server::~TAO_Concurrency_Server () { } diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerAdmin.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerAdmin.cpp index cfd92db0be4..749c421fe0c 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerAdmin.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerAdmin.cpp @@ -21,7 +21,7 @@ TAO_CEC_ConsumerAdmin::TAO_CEC_ConsumerAdmin (TAO_CEC_EventChannel *ec) this->event_channel_->consumer_poa (); } -TAO_CEC_ConsumerAdmin::~TAO_CEC_ConsumerAdmin (void) +TAO_CEC_ConsumerAdmin::~TAO_CEC_ConsumerAdmin () { } @@ -74,7 +74,7 @@ TAO_CEC_ConsumerAdmin::disconnected (TAO_CEC_ProxyPullSupplier *supplier) } void -TAO_CEC_ConsumerAdmin::shutdown (void) +TAO_CEC_ConsumerAdmin::shutdown () { this->push_admin_.shutdown (); @@ -82,19 +82,19 @@ TAO_CEC_ConsumerAdmin::shutdown (void) } CosEventChannelAdmin::ProxyPushSupplier_ptr -TAO_CEC_ConsumerAdmin::obtain_push_supplier (void) +TAO_CEC_ConsumerAdmin::obtain_push_supplier () { return this->push_admin_.obtain (); } CosEventChannelAdmin::ProxyPullSupplier_ptr -TAO_CEC_ConsumerAdmin::obtain_pull_supplier (void) +TAO_CEC_ConsumerAdmin::obtain_pull_supplier () { return this->pull_admin_.obtain (); } PortableServer::POA_ptr -TAO_CEC_ConsumerAdmin::_default_POA (void) +TAO_CEC_ConsumerAdmin::_default_POA () { return PortableServer::POA::_duplicate (this->default_POA_.in ()); } diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerControl.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerControl.cpp index cc9fab516c4..a0b70c10152 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerControl.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerControl.cpp @@ -2,22 +2,22 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_CEC_ConsumerControl::TAO_CEC_ConsumerControl (void) +TAO_CEC_ConsumerControl::TAO_CEC_ConsumerControl () { } -TAO_CEC_ConsumerControl::~TAO_CEC_ConsumerControl (void) +TAO_CEC_ConsumerControl::~TAO_CEC_ConsumerControl () { } int -TAO_CEC_ConsumerControl::activate (void) +TAO_CEC_ConsumerControl::activate () { return 0; } int -TAO_CEC_ConsumerControl::shutdown (void) +TAO_CEC_ConsumerControl::shutdown () { return 0; } diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.cpp index c8703df70c7..84026edf994 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.cpp @@ -41,7 +41,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_CEC_Default_Factory::~TAO_CEC_Default_Factory (void) +TAO_CEC_Default_Factory::~TAO_CEC_Default_Factory () { if (orbid_dupped_ != 0) { @@ -50,7 +50,7 @@ TAO_CEC_Default_Factory::~TAO_CEC_Default_Factory (void) } int -TAO_CEC_Default_Factory::init_svcs (void) +TAO_CEC_Default_Factory::init_svcs () { return ACE_Service_Config::static_svcs ()->insert ( @@ -423,7 +423,7 @@ TAO_CEC_Default_Factory::init (int argc, ACE_TCHAR* argv[]) } int -TAO_CEC_Default_Factory::fini (void) +TAO_CEC_Default_Factory::fini () { return 0; } @@ -1233,7 +1233,7 @@ TAO_CEC_Default_Factory::destroy_proxy_pull_supplier_collection (TAO_CEC_ProxyPu } ACE_Lock* -TAO_CEC_Default_Factory::create_consumer_lock (void) +TAO_CEC_Default_Factory::create_consumer_lock () { if (this->consumer_lock_ == 0) return new ACE_Lock_Adapter<ACE_Null_Mutex>; @@ -1251,7 +1251,7 @@ TAO_CEC_Default_Factory::destroy_consumer_lock (ACE_Lock* x) } ACE_Lock* -TAO_CEC_Default_Factory::create_supplier_lock (void) +TAO_CEC_Default_Factory::create_supplier_lock () { if (this->supplier_lock_ == 0) return new ACE_Lock_Adapter<ACE_Null_Mutex>; diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching.cpp index a98e625c404..192f6edc8c2 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching.cpp @@ -3,23 +3,23 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_CEC_Dispatching::~TAO_CEC_Dispatching (void) +TAO_CEC_Dispatching::~TAO_CEC_Dispatching () { } // **************************************************************** -TAO_CEC_Reactive_Dispatching::TAO_CEC_Reactive_Dispatching (void) +TAO_CEC_Reactive_Dispatching::TAO_CEC_Reactive_Dispatching () { } void -TAO_CEC_Reactive_Dispatching::activate (void) +TAO_CEC_Reactive_Dispatching::activate () { } void -TAO_CEC_Reactive_Dispatching::shutdown (void) +TAO_CEC_Reactive_Dispatching::shutdown () { } diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.cpp index 4ee21c30070..af861810196 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.cpp @@ -13,7 +13,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL int -TAO_CEC_Dispatching_Task::svc (void) +TAO_CEC_Dispatching_Task::svc () { bool done = false; @@ -107,27 +107,27 @@ TAO_CEC_Dispatching_Task::invoke (TAO_CEC_ProxyPushSupplier *proxy, // **************************************************************** -TAO_CEC_Dispatch_Command::~TAO_CEC_Dispatch_Command (void) +TAO_CEC_Dispatch_Command::~TAO_CEC_Dispatch_Command () { } // **************************************************************** int -TAO_CEC_Shutdown_Task_Command::execute (void) +TAO_CEC_Shutdown_Task_Command::execute () { return -1; } // **************************************************************** -TAO_CEC_Push_Command::~TAO_CEC_Push_Command (void) +TAO_CEC_Push_Command::~TAO_CEC_Push_Command () { this->proxy_->_decr_refcnt (); } int -TAO_CEC_Push_Command::execute (void) +TAO_CEC_Push_Command::execute () { this->proxy_->push_to_consumer (this->event_); return 0; @@ -136,13 +136,13 @@ TAO_CEC_Push_Command::execute (void) // **************************************************************** #if defined (TAO_HAS_TYPED_EVENT_CHANNEL) -TAO_CEC_Invoke_Command::~TAO_CEC_Invoke_Command (void) +TAO_CEC_Invoke_Command::~TAO_CEC_Invoke_Command () { this->proxy_->_decr_refcnt (); } int -TAO_CEC_Invoke_Command::execute (void) +TAO_CEC_Invoke_Command::execute () { this->proxy_->invoke_to_consumer (this->typed_event_); return 0; diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_DynamicImplementation.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_DynamicImplementation.cpp index 78ab05ce1d2..c2223a2d8ba 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_DynamicImplementation.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_DynamicImplementation.cpp @@ -13,7 +13,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL // Destructor -TAO_CEC_DynamicImplementationServer::~TAO_CEC_DynamicImplementationServer (void) +TAO_CEC_DynamicImplementationServer::~TAO_CEC_DynamicImplementationServer () { } @@ -69,7 +69,7 @@ TAO_CEC_DynamicImplementationServer::_primary_interface (const PortableServer::O } PortableServer::POA_ptr -TAO_CEC_DynamicImplementationServer::_default_POA (void) +TAO_CEC_DynamicImplementationServer::_default_POA () { return PortableServer::POA::_duplicate (this->poa_.in ()); } diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.cpp index 522f8e5506b..579cfadd83d 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.cpp @@ -47,7 +47,7 @@ TAO_CEC_EventChannel (const TAO_CEC_EventChannel_Attributes& attr, this->factory_->create_supplier_control (this); } -TAO_CEC_EventChannel::~TAO_CEC_EventChannel (void) +TAO_CEC_EventChannel::~TAO_CEC_EventChannel () { this->factory_->destroy_dispatching (this->dispatching_); this->dispatching_ = 0; @@ -70,7 +70,7 @@ TAO_CEC_EventChannel::~TAO_CEC_EventChannel (void) } void -TAO_CEC_EventChannel::activate (void) +TAO_CEC_EventChannel::activate () { this->dispatching_->activate (); this->pulling_strategy_->activate (); @@ -79,7 +79,7 @@ TAO_CEC_EventChannel::activate (void) } void -TAO_CEC_EventChannel::shutdown (void) +TAO_CEC_EventChannel::shutdown () { this->dispatching_->shutdown (); this->pulling_strategy_->shutdown (); @@ -176,19 +176,19 @@ TAO_CEC_EventChannel::disconnected (TAO_CEC_ProxyPullSupplier* supplier) } CosEventChannelAdmin::ConsumerAdmin_ptr -TAO_CEC_EventChannel::for_consumers (void) +TAO_CEC_EventChannel::for_consumers () { return this->consumer_admin_->_this (); } CosEventChannelAdmin::SupplierAdmin_ptr -TAO_CEC_EventChannel::for_suppliers (void) +TAO_CEC_EventChannel::for_suppliers () { return this->supplier_admin_->_this (); } void -TAO_CEC_EventChannel::destroy (void) +TAO_CEC_EventChannel::destroy () { this->shutdown (); } diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Event_Loader.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Event_Loader.cpp index deda68038c8..7087b92301b 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Event_Loader.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Event_Loader.cpp @@ -29,7 +29,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_CEC_Event_Loader::TAO_CEC_Event_Loader (void) : +TAO_CEC_Event_Loader::TAO_CEC_Event_Loader () : attributes_ (0) , factory_ (0) , ec_impl_ (0) @@ -41,7 +41,7 @@ TAO_CEC_Event_Loader::TAO_CEC_Event_Loader (void) : // Constructor } -TAO_CEC_Event_Loader::~TAO_CEC_Event_Loader (void) +TAO_CEC_Event_Loader::~TAO_CEC_Event_Loader () { // Destructor } @@ -405,7 +405,7 @@ TAO_CEC_Event_Loader::create_object (CORBA::ORB_ptr orb, } int -TAO_CEC_Event_Loader::fini (void) +TAO_CEC_Event_Loader::fini () { // + Since it was activated with _this() you have to do the // canonical: diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Event_Loader.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Event_Loader.h index 1148ce28edb..13444dc750a 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Event_Loader.h +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Event_Loader.h @@ -94,9 +94,10 @@ protected: CosNaming::Name channel_name_; private: - // Disallow copying and assignment. - TAO_CEC_Event_Loader (const TAO_CEC_Event_Loader &); - TAO_CEC_Event_Loader &operator= (const TAO_CEC_Event_Loader &); + TAO_CEC_Event_Loader (const TAO_CEC_Event_Loader &) = delete; + TAO_CEC_Event_Loader &operator= (const TAO_CEC_Event_Loader &) = delete; + TAO_CEC_Event_Loader (TAO_CEC_Event_Loader &&) = delete; + TAO_CEC_Event_Loader &operator= (TAO_CEC_Event_Loader &&) = delete; }; TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Factory.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Factory.cpp index 6eef61ef41a..84e3bb84c64 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Factory.cpp @@ -3,7 +3,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_CEC_Factory::~TAO_CEC_Factory (void) +TAO_CEC_Factory::~TAO_CEC_Factory () { } diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_MT_Dispatching.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_MT_Dispatching.cpp index 6d80809278b..db1e6bf776d 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_MT_Dispatching.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_MT_Dispatching.cpp @@ -17,7 +17,7 @@ TAO_CEC_MT_Dispatching::TAO_CEC_MT_Dispatching (int nthreads, } void -TAO_CEC_MT_Dispatching::activate (void) +TAO_CEC_MT_Dispatching::activate () { ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); @@ -41,7 +41,7 @@ TAO_CEC_MT_Dispatching::activate (void) } void -TAO_CEC_MT_Dispatching::shutdown (void) +TAO_CEC_MT_Dispatching::shutdown () { ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullConsumer.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullConsumer.cpp index a12bdf9b683..67ba41ddca5 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullConsumer.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullConsumer.cpp @@ -30,7 +30,7 @@ TAO_CEC_ProxyPullConsumer (TAO_CEC_EventChannel* ec, this->event_channel_->get_servant_retry_map ().bind (this, 0); } -TAO_CEC_ProxyPullConsumer::~TAO_CEC_ProxyPullConsumer (void) +TAO_CEC_ProxyPullConsumer::~TAO_CEC_ProxyPullConsumer () { this->event_channel_->get_servant_retry_map ().unbind (this); this->event_channel_->destroy_consumer_lock (this->lock_); @@ -53,7 +53,7 @@ TAO_CEC_ProxyPullConsumer::activate ( } void -TAO_CEC_ProxyPullConsumer::deactivate (void) +TAO_CEC_ProxyPullConsumer::deactivate () { try { @@ -189,7 +189,7 @@ TAO_CEC_ProxyPullConsumer::supplier_non_existent ( } void -TAO_CEC_ProxyPullConsumer::shutdown (void) +TAO_CEC_ProxyPullConsumer::shutdown () { CosEventComm::PullSupplier_var supplier; @@ -219,21 +219,21 @@ TAO_CEC_ProxyPullConsumer::shutdown (void) } void -TAO_CEC_ProxyPullConsumer::cleanup_i (void) +TAO_CEC_ProxyPullConsumer::cleanup_i () { this->supplier_ = CosEventComm::PullSupplier::_nil (); } CORBA::ULong -TAO_CEC_ProxyPullConsumer::_incr_refcnt (void) +TAO_CEC_ProxyPullConsumer::_incr_refcnt () { ACE_GUARD_RETURN (ACE_Lock, ace_mon, *this->lock_, 0); return this->refcount_++; } CORBA::ULong -TAO_CEC_ProxyPullConsumer::_decr_refcnt (void) +TAO_CEC_ProxyPullConsumer::_decr_refcnt () { { ACE_GUARD_RETURN (ACE_Lock, ace_mon, *this->lock_, 0); @@ -358,19 +358,19 @@ TAO_CEC_ProxyPullConsumer::disconnect_pull_consumer () } PortableServer::POA_ptr -TAO_CEC_ProxyPullConsumer::_default_POA (void) +TAO_CEC_ProxyPullConsumer::_default_POA () { return PortableServer::POA::_duplicate (this->default_POA_.in ()); } void -TAO_CEC_ProxyPullConsumer::_add_ref (void) +TAO_CEC_ProxyPullConsumer::_add_ref () { this->_incr_refcnt (); } void -TAO_CEC_ProxyPullConsumer::_remove_ref (void) +TAO_CEC_ProxyPullConsumer::_remove_ref () { this->_decr_refcnt (); } diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.cpp index db840f03ee5..b023d169da2 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.cpp @@ -29,7 +29,7 @@ TAO_CEC_ProxyPullSupplier::TAO_CEC_ProxyPullSupplier this->event_channel_->get_servant_retry_map ().bind (this, 0); } -TAO_CEC_ProxyPullSupplier::~TAO_CEC_ProxyPullSupplier (void) +TAO_CEC_ProxyPullSupplier::~TAO_CEC_ProxyPullSupplier () { this->event_channel_->get_servant_retry_map ().unbind (this); this->event_channel_->destroy_supplier_lock (this->lock_); @@ -52,7 +52,7 @@ TAO_CEC_ProxyPullSupplier::activate ( } void -TAO_CEC_ProxyPullSupplier::deactivate (void) +TAO_CEC_ProxyPullSupplier::deactivate () { try { @@ -72,7 +72,7 @@ TAO_CEC_ProxyPullSupplier::deactivate (void) } void -TAO_CEC_ProxyPullSupplier::shutdown (void) +TAO_CEC_ProxyPullSupplier::shutdown () { // Save the consumer we where connected to, we need to send a // disconnect message to it. @@ -148,7 +148,7 @@ TAO_CEC_ProxyPullSupplier::push (const CORBA::Any &event) } CORBA::Any * -TAO_CEC_ProxyPullSupplier::pull (void) +TAO_CEC_ProxyPullSupplier::pull () { if (this->is_connected () == 0) throw CosEventComm::Disconnected (); @@ -190,7 +190,7 @@ TAO_CEC_ProxyPullSupplier::try_pull (CORBA::Boolean_out has_event) } void -TAO_CEC_ProxyPullSupplier::cleanup_i (void) +TAO_CEC_ProxyPullSupplier::cleanup_i () { this->consumer_ = CosEventComm::PullConsumer::_nil (); @@ -198,14 +198,14 @@ TAO_CEC_ProxyPullSupplier::cleanup_i (void) } CORBA::ULong -TAO_CEC_ProxyPullSupplier::_incr_refcnt (void) +TAO_CEC_ProxyPullSupplier::_incr_refcnt () { ACE_GUARD_RETURN (ACE_Lock, ace_mon, *this->lock_, 0); return this->refcount_++; } CORBA::ULong -TAO_CEC_ProxyPullSupplier::_decr_refcnt (void) +TAO_CEC_ProxyPullSupplier::_decr_refcnt () { { ACE_GUARD_RETURN (ACE_Lock, ace_mon, *this->lock_, 0); @@ -330,19 +330,19 @@ TAO_CEC_ProxyPullSupplier::disconnect_pull_supplier () } PortableServer::POA_ptr -TAO_CEC_ProxyPullSupplier::_default_POA (void) +TAO_CEC_ProxyPullSupplier::_default_POA () { return PortableServer::POA::_duplicate (this->default_POA_.in ()); } void -TAO_CEC_ProxyPullSupplier::_add_ref (void) +TAO_CEC_ProxyPullSupplier::_add_ref () { this->_incr_refcnt (); } void -TAO_CEC_ProxyPullSupplier::_remove_ref (void) +TAO_CEC_ProxyPullSupplier::_remove_ref () { this->_decr_refcnt (); } diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.cpp index 27bf794dd05..18428148b39 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.cpp @@ -30,7 +30,7 @@ TAO_CEC_ProxyPushConsumer (TAO_CEC_EventChannel* ec, this->event_channel_->get_servant_retry_map ().bind (this, 0); } -TAO_CEC_ProxyPushConsumer::~TAO_CEC_ProxyPushConsumer (void) +TAO_CEC_ProxyPushConsumer::~TAO_CEC_ProxyPushConsumer () { this->event_channel_->get_servant_retry_map ().unbind (this); this->event_channel_->destroy_consumer_lock (this->lock_); @@ -53,7 +53,7 @@ TAO_CEC_ProxyPushConsumer::activate ( } void -TAO_CEC_ProxyPushConsumer::deactivate (void) +TAO_CEC_ProxyPushConsumer::deactivate () { try { @@ -103,7 +103,7 @@ TAO_CEC_ProxyPushConsumer::supplier_non_existent ( } void -TAO_CEC_ProxyPushConsumer::shutdown (void) +TAO_CEC_ProxyPushConsumer::shutdown () { CosEventComm::PushSupplier_var supplier; @@ -134,7 +134,7 @@ TAO_CEC_ProxyPushConsumer::shutdown (void) } void -TAO_CEC_ProxyPushConsumer::cleanup_i (void) +TAO_CEC_ProxyPushConsumer::cleanup_i () { this->supplier_ = CosEventComm::PushSupplier::_nil (); @@ -142,14 +142,14 @@ TAO_CEC_ProxyPushConsumer::cleanup_i (void) } CORBA::ULong -TAO_CEC_ProxyPushConsumer::_incr_refcnt (void) +TAO_CEC_ProxyPushConsumer::_incr_refcnt () { ACE_GUARD_RETURN (ACE_Lock, ace_mon, *this->lock_, 0); return this->refcount_++; } CORBA::ULong -TAO_CEC_ProxyPushConsumer::_decr_refcnt (void) +TAO_CEC_ProxyPushConsumer::_decr_refcnt () { { ACE_GUARD_RETURN (ACE_Lock, ace_mon, *this->lock_, 0); @@ -288,19 +288,19 @@ TAO_CEC_ProxyPushConsumer::disconnect_push_consumer () } PortableServer::POA_ptr -TAO_CEC_ProxyPushConsumer::_default_POA (void) +TAO_CEC_ProxyPushConsumer::_default_POA () { return PortableServer::POA::_duplicate (this->default_POA_.in ()); } void -TAO_CEC_ProxyPushConsumer::_add_ref (void) +TAO_CEC_ProxyPushConsumer::_add_ref () { this->_incr_refcnt (); } void -TAO_CEC_ProxyPushConsumer::_remove_ref (void) +TAO_CEC_ProxyPushConsumer::_remove_ref () { this->_decr_refcnt (); } @@ -334,7 +334,7 @@ TAO_CEC_ProxyPushConsumer_Guard:: } TAO_CEC_ProxyPushConsumer_Guard:: - ~TAO_CEC_ProxyPushConsumer_Guard (void) + ~TAO_CEC_ProxyPushConsumer_Guard () { // This access is safe because guard objects are created on the // stack, only one thread has access to them diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.cpp index b1a1569031a..0e5bc198acb 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.cpp @@ -71,7 +71,7 @@ TAO_CEC_ProxyPushSupplier (TAO_CEC_TypedEventChannel* ec, } #endif /* TAO_HAS_TYPED_EVENT_CHANNEL */ -TAO_CEC_ProxyPushSupplier::~TAO_CEC_ProxyPushSupplier (void) +TAO_CEC_ProxyPushSupplier::~TAO_CEC_ProxyPushSupplier () { #if defined (TAO_HAS_TYPED_EVENT_CHANNEL) if (this->is_typed_ec () ) @@ -107,7 +107,7 @@ TAO_CEC_ProxyPushSupplier::activate ( } void -TAO_CEC_ProxyPushSupplier::deactivate (void) +TAO_CEC_ProxyPushSupplier::deactivate () { try { @@ -127,7 +127,7 @@ TAO_CEC_ProxyPushSupplier::deactivate (void) } void -TAO_CEC_ProxyPushSupplier::shutdown (void) +TAO_CEC_ProxyPushSupplier::shutdown () { #if defined (TAO_HAS_TYPED_EVENT_CHANNEL) if (this->is_typed_ec () ) @@ -277,7 +277,7 @@ TAO_CEC_ProxyPushSupplier::push_nocopy (CORBA::Any &event) } void -TAO_CEC_ProxyPushSupplier::cleanup_i (void) +TAO_CEC_ProxyPushSupplier::cleanup_i () { this->consumer_ = CosEventComm::PushConsumer::_nil (); @@ -288,14 +288,14 @@ TAO_CEC_ProxyPushSupplier::cleanup_i (void) } CORBA::ULong -TAO_CEC_ProxyPushSupplier::_incr_refcnt (void) +TAO_CEC_ProxyPushSupplier::_incr_refcnt () { ACE_GUARD_RETURN (ACE_Lock, ace_mon, *this->lock_, 0); return this->refcount_++; } CORBA::ULong -TAO_CEC_ProxyPushSupplier::_decr_refcnt (void) +TAO_CEC_ProxyPushSupplier::_decr_refcnt () { { ACE_GUARD_RETURN (ACE_Lock, ace_mon, *this->lock_, 0); @@ -876,19 +876,19 @@ TAO_CEC_ProxyPushSupplier::consumer_non_existent ( } PortableServer::POA_ptr -TAO_CEC_ProxyPushSupplier::_default_POA (void) +TAO_CEC_ProxyPushSupplier::_default_POA () { return PortableServer::POA::_duplicate (this->default_POA_.in ()); } void -TAO_CEC_ProxyPushSupplier::_add_ref (void) +TAO_CEC_ProxyPushSupplier::_add_ref () { this->_incr_refcnt (); } void -TAO_CEC_ProxyPushSupplier::_remove_ref (void) +TAO_CEC_ProxyPushSupplier::_remove_ref () { this->_decr_refcnt (); } diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Pulling_Strategy.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Pulling_Strategy.cpp index 4cafb289b22..6f61ade96b6 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Pulling_Strategy.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Pulling_Strategy.cpp @@ -2,7 +2,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_CEC_Pulling_Strategy::~TAO_CEC_Pulling_Strategy (void) +TAO_CEC_Pulling_Strategy::~TAO_CEC_Pulling_Strategy () { } diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.cpp index d443ae002cb..ab8852c1d3c 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.cpp @@ -83,7 +83,7 @@ TAO_CEC_Reactive_ConsumerControl:: } #endif /* TAO_HAS_TYPED_EVENT_CHANNEL */ -TAO_CEC_Reactive_ConsumerControl::~TAO_CEC_Reactive_ConsumerControl (void) +TAO_CEC_Reactive_ConsumerControl::~TAO_CEC_Reactive_ConsumerControl () { } @@ -232,7 +232,7 @@ TAO_CEC_Reactive_ConsumerControl::handle_timeout ( } int -TAO_CEC_Reactive_ConsumerControl::activate (void) +TAO_CEC_Reactive_ConsumerControl::activate () { #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0 try @@ -283,7 +283,7 @@ TAO_CEC_Reactive_ConsumerControl::activate (void) } int -TAO_CEC_Reactive_ConsumerControl::shutdown (void) +TAO_CEC_Reactive_ConsumerControl::shutdown () { int r = 0; diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.cpp index 1d0b3ad00cb..c17ed7364b5 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.cpp @@ -83,7 +83,7 @@ TAO_CEC_Reactive_Pulling_Strategy::handle_timeout ( } void -TAO_CEC_Reactive_Pulling_Strategy::activate (void) +TAO_CEC_Reactive_Pulling_Strategy::activate () { #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0 timer_id_ = this->reactor_->schedule_timer (&this->adapter_, @@ -124,7 +124,7 @@ TAO_CEC_Reactive_Pulling_Strategy::activate (void) } void -TAO_CEC_Reactive_Pulling_Strategy::shutdown (void) +TAO_CEC_Reactive_Pulling_Strategy::shutdown () { #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0 this->reactor_->cancel_timer (timer_id_); diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_SupplierControl.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_SupplierControl.cpp index f92360df4c3..14adf5a5fc5 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_SupplierControl.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_SupplierControl.cpp @@ -83,7 +83,7 @@ TAO_CEC_Reactive_SupplierControl:: } #endif /* TAO_HAS_TYPED_EVENT_CHANNEL */ -TAO_CEC_Reactive_SupplierControl::~TAO_CEC_Reactive_SupplierControl (void) +TAO_CEC_Reactive_SupplierControl::~TAO_CEC_Reactive_SupplierControl () { } @@ -232,7 +232,7 @@ TAO_CEC_Reactive_SupplierControl::handle_timeout ( } int -TAO_CEC_Reactive_SupplierControl::activate (void) +TAO_CEC_Reactive_SupplierControl::activate () { #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0 try @@ -283,7 +283,7 @@ TAO_CEC_Reactive_SupplierControl::activate (void) } int -TAO_CEC_Reactive_SupplierControl::shutdown (void) +TAO_CEC_Reactive_SupplierControl::shutdown () { int r = 0; diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierAdmin.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierAdmin.cpp index fadba6678b8..45685c93d41 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierAdmin.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierAdmin.cpp @@ -19,12 +19,12 @@ TAO_CEC_SupplierAdmin::TAO_CEC_SupplierAdmin (TAO_CEC_EventChannel *ec) this->event_channel_->supplier_poa (); } -TAO_CEC_SupplierAdmin::~TAO_CEC_SupplierAdmin (void) +TAO_CEC_SupplierAdmin::~TAO_CEC_SupplierAdmin () { } PortableServer::POA_ptr -TAO_CEC_SupplierAdmin::_default_POA (void) +TAO_CEC_SupplierAdmin::_default_POA () { return PortableServer::POA::_duplicate (this->default_POA_.in ()); } @@ -66,7 +66,7 @@ TAO_CEC_SupplierAdmin::disconnected (TAO_CEC_ProxyPullConsumer *consumer) } void -TAO_CEC_SupplierAdmin::shutdown (void) +TAO_CEC_SupplierAdmin::shutdown () { this->push_admin_.shutdown (); @@ -74,13 +74,13 @@ TAO_CEC_SupplierAdmin::shutdown (void) } CosEventChannelAdmin::ProxyPushConsumer_ptr -TAO_CEC_SupplierAdmin::obtain_push_consumer (void) +TAO_CEC_SupplierAdmin::obtain_push_consumer () { return this->push_admin_.obtain (); } CosEventChannelAdmin::ProxyPullConsumer_ptr -TAO_CEC_SupplierAdmin::obtain_pull_consumer (void) +TAO_CEC_SupplierAdmin::obtain_pull_consumer () { return this->pull_admin_.obtain (); } diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierControl.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierControl.cpp index a359fd9549a..50bb6bd63ef 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierControl.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierControl.cpp @@ -2,22 +2,22 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_CEC_SupplierControl::TAO_CEC_SupplierControl (void) +TAO_CEC_SupplierControl::TAO_CEC_SupplierControl () { } -TAO_CEC_SupplierControl::~TAO_CEC_SupplierControl (void) +TAO_CEC_SupplierControl::~TAO_CEC_SupplierControl () { } int -TAO_CEC_SupplierControl::activate (void) +TAO_CEC_SupplierControl::activate () { return 0; } int -TAO_CEC_SupplierControl::shutdown (void) +TAO_CEC_SupplierControl::shutdown () { return 0; } diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedConsumerAdmin.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedConsumerAdmin.cpp index ca290520a07..0c57d545a0b 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedConsumerAdmin.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedConsumerAdmin.cpp @@ -18,7 +18,7 @@ TAO_CEC_TypedConsumerAdmin::TAO_CEC_TypedConsumerAdmin (TAO_CEC_TypedEventChanne } // Implementation skeleton destructor -TAO_CEC_TypedConsumerAdmin::~TAO_CEC_TypedConsumerAdmin (void) +TAO_CEC_TypedConsumerAdmin::~TAO_CEC_TypedConsumerAdmin () { } @@ -49,7 +49,7 @@ TAO_CEC_TypedConsumerAdmin::disconnected (TAO_CEC_ProxyPushSupplier *supplier) } void -TAO_CEC_TypedConsumerAdmin::shutdown (void) +TAO_CEC_TypedConsumerAdmin::shutdown () { this->typed_push_admin_.shutdown (); } @@ -77,19 +77,19 @@ TAO_CEC_TypedConsumerAdmin::obtain_typed_push_supplier ( } CosEventChannelAdmin::ProxyPushSupplier_ptr -TAO_CEC_TypedConsumerAdmin::obtain_push_supplier (void) +TAO_CEC_TypedConsumerAdmin::obtain_push_supplier () { throw CORBA::NO_IMPLEMENT (); } CosEventChannelAdmin::ProxyPullSupplier_ptr -TAO_CEC_TypedConsumerAdmin::obtain_pull_supplier (void) +TAO_CEC_TypedConsumerAdmin::obtain_pull_supplier () { throw CORBA::NO_IMPLEMENT (); } PortableServer::POA_ptr -TAO_CEC_TypedConsumerAdmin::_default_POA (void) +TAO_CEC_TypedConsumerAdmin::_default_POA () { return PortableServer::POA::_duplicate (this->default_POA_.in ()); } diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.cpp index 76ddff0af4a..2ed8f27eb16 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.cpp @@ -55,7 +55,7 @@ TAO_CEC_TypedEventChannel (const TAO_CEC_TypedEventChannel_Attributes& attr, } // Implementation skeleton destructor -TAO_CEC_TypedEventChannel::~TAO_CEC_TypedEventChannel (void) +TAO_CEC_TypedEventChannel::~TAO_CEC_TypedEventChannel () { this->clear_ifr_cache (); this->interface_description_.close (); @@ -73,7 +73,7 @@ TAO_CEC_TypedEventChannel::~TAO_CEC_TypedEventChannel (void) } void -TAO_CEC_TypedEventChannel::activate (void) +TAO_CEC_TypedEventChannel::activate () { this->dispatching_->activate (); this->consumer_control_->activate (); @@ -98,7 +98,7 @@ namespace } void -TAO_CEC_TypedEventChannel::shutdown (void) +TAO_CEC_TypedEventChannel::shutdown () { this->dispatching_->shutdown (); this->supplier_control_->shutdown (); @@ -213,7 +213,7 @@ TAO_CEC_TypedEventChannel::insert_into_ifr_cache (const char *operation_, // Clear the ifr cache, freeing up all its contents. int -TAO_CEC_TypedEventChannel::clear_ifr_cache (void) +TAO_CEC_TypedEventChannel::clear_ifr_cache () { for (Iterator i = this->interface_description_.begin (); i != this->interface_description_.end (); @@ -522,19 +522,19 @@ TAO_CEC_TypedEventChannel::create_list (CORBA::Long count, // The CosTypedEventChannelAdmin::TypedEventChannel methods... CosTypedEventChannelAdmin::TypedConsumerAdmin_ptr -TAO_CEC_TypedEventChannel::for_consumers (void) +TAO_CEC_TypedEventChannel::for_consumers () { return this->typed_consumer_admin_->_this (); } CosTypedEventChannelAdmin::TypedSupplierAdmin_ptr -TAO_CEC_TypedEventChannel::for_suppliers (void) +TAO_CEC_TypedEventChannel::for_suppliers () { return this->typed_supplier_admin_->_this (); } void -TAO_CEC_TypedEventChannel::destroy (void) +TAO_CEC_TypedEventChannel::destroy () { if (!destroyed_) { diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.cpp index 93b02abfe2f..33e9199368d 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.cpp @@ -55,7 +55,7 @@ TAO_CEC_TypedProxyPushConsumer::TAO_CEC_TypedProxyPushConsumer } // Implementation skeleton destructor -TAO_CEC_TypedProxyPushConsumer::~TAO_CEC_TypedProxyPushConsumer (void) +TAO_CEC_TypedProxyPushConsumer::~TAO_CEC_TypedProxyPushConsumer () { try{ this->default_POA_->deactivate_object (this->oid_.in ()); @@ -86,7 +86,7 @@ TAO_CEC_TypedProxyPushConsumer::activate ( } void -TAO_CEC_TypedProxyPushConsumer::deactivate (void) +TAO_CEC_TypedProxyPushConsumer::deactivate () { try { @@ -137,7 +137,7 @@ TAO_CEC_TypedProxyPushConsumer::supplier_non_existent ( } void -TAO_CEC_TypedProxyPushConsumer::shutdown (void) +TAO_CEC_TypedProxyPushConsumer::shutdown () { CosEventComm::PushSupplier_var supplier; @@ -168,7 +168,7 @@ TAO_CEC_TypedProxyPushConsumer::shutdown (void) } void -TAO_CEC_TypedProxyPushConsumer::cleanup_i (void) +TAO_CEC_TypedProxyPushConsumer::cleanup_i () { this->typed_supplier_ = CosEventComm::PushSupplier::_nil (); @@ -176,14 +176,14 @@ TAO_CEC_TypedProxyPushConsumer::cleanup_i (void) } CORBA::ULong -TAO_CEC_TypedProxyPushConsumer::_incr_refcnt (void) +TAO_CEC_TypedProxyPushConsumer::_incr_refcnt () { ACE_GUARD_RETURN (ACE_Lock, ace_mon, *this->lock_, 0); return this->refcount_++; } CORBA::ULong -TAO_CEC_TypedProxyPushConsumer::_decr_refcnt (void) +TAO_CEC_TypedProxyPushConsumer::_decr_refcnt () { { ACE_GUARD_RETURN (ACE_Lock, ace_mon, *this->lock_, 0); @@ -313,25 +313,25 @@ TAO_CEC_TypedProxyPushConsumer::disconnect_push_consumer () } PortableServer::POA_ptr -TAO_CEC_TypedProxyPushConsumer::_default_POA (void) +TAO_CEC_TypedProxyPushConsumer::_default_POA () { return PortableServer::POA::_duplicate (this->default_POA_.in ()); } void -TAO_CEC_TypedProxyPushConsumer::_add_ref (void) +TAO_CEC_TypedProxyPushConsumer::_add_ref () { this->_incr_refcnt (); } void -TAO_CEC_TypedProxyPushConsumer::_remove_ref (void) +TAO_CEC_TypedProxyPushConsumer::_remove_ref () { this->_decr_refcnt (); } CORBA::Object_ptr -TAO_CEC_TypedProxyPushConsumer::get_typed_consumer (void) +TAO_CEC_TypedProxyPushConsumer::get_typed_consumer () { CORBA::Object_var server = @@ -382,7 +382,7 @@ TAO_CEC_TypedProxyPushConsumer_Guard:: } TAO_CEC_TypedProxyPushConsumer_Guard:: - ~TAO_CEC_TypedProxyPushConsumer_Guard (void) + ~TAO_CEC_TypedProxyPushConsumer_Guard () { // This access is safe because guard objects are created on the // stack, only one thread has access to them diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedSupplierAdmin.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedSupplierAdmin.cpp index f5dc2ce81bc..2c00bc62d84 100644 --- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedSupplierAdmin.cpp +++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedSupplierAdmin.cpp @@ -17,12 +17,12 @@ TAO_CEC_TypedSupplierAdmin::TAO_CEC_TypedSupplierAdmin (TAO_CEC_TypedEventChanne } // Implementation skeleton destructor -TAO_CEC_TypedSupplierAdmin::~TAO_CEC_TypedSupplierAdmin (void) +TAO_CEC_TypedSupplierAdmin::~TAO_CEC_TypedSupplierAdmin () { } PortableServer::POA_ptr -TAO_CEC_TypedSupplierAdmin::_default_POA (void) +TAO_CEC_TypedSupplierAdmin::_default_POA () { return PortableServer::POA::_duplicate (this->default_POA_.in ()); } @@ -46,7 +46,7 @@ TAO_CEC_TypedSupplierAdmin::disconnected (TAO_CEC_TypedProxyPushConsumer *consum } void -TAO_CEC_TypedSupplierAdmin::shutdown (void) +TAO_CEC_TypedSupplierAdmin::shutdown () { this->typed_push_admin_.shutdown (); } @@ -75,13 +75,13 @@ TAO_CEC_TypedSupplierAdmin::obtain_typed_pull_consumer ( } CosEventChannelAdmin::ProxyPushConsumer_ptr -TAO_CEC_TypedSupplierAdmin::obtain_push_consumer (void) +TAO_CEC_TypedSupplierAdmin::obtain_push_consumer () { throw CORBA::NO_IMPLEMENT (); } CosEventChannelAdmin::ProxyPullConsumer_ptr -TAO_CEC_TypedSupplierAdmin::obtain_pull_consumer (void) +TAO_CEC_TypedSupplierAdmin::obtain_pull_consumer () { throw CORBA::NO_IMPLEMENT (); } diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.h index c41ef28f1a6..b7cc48b1a54 100644 --- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.h +++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.h @@ -49,14 +49,14 @@ public: * Check the documentation in ace/Synch.h for details. */ //@{ - int remove (void); - int acquire (void); - int tryacquire (void); - int release (void); - int acquire_read (void); - int acquire_write (void); - int tryacquire_read (void); - int tryacquire_write (void); + int remove (); + int acquire (); + int tryacquire (); + int release (); + int acquire_read (); + int acquire_write (); + int tryacquire_read (); + int tryacquire_write (); //@} private: diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Read.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Read.h index 0aa25211104..36578eb57e5 100644 --- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Read.h +++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Read.h @@ -36,7 +36,7 @@ class TAO_ESF_Copy_On_Read : public TAO_ESF_Proxy_Collection<PROXY> { public: /// Constructors - TAO_ESF_Copy_On_Read (void); + TAO_ESF_Copy_On_Read (); TAO_ESF_Copy_On_Read (const COLLECTION &collection); // = The TAO_ESF_Proxy_Collection methods @@ -44,7 +44,7 @@ public: virtual void connected (PROXY *proxy); virtual void reconnected (PROXY *proxy); virtual void disconnected (PROXY *proxy); - virtual void shutdown (void); + virtual void shutdown (); private: COLLECTION collection_; diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Write.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Write.h index 20d105bb85f..dddaf15ebc8 100644 --- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Write.h +++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Write.h @@ -25,13 +25,13 @@ template<class COLLECTION, class ITERATOR> class TAO_ESF_Copy_On_Write_Collection { public: - TAO_ESF_Copy_On_Write_Collection (void); + TAO_ESF_Copy_On_Write_Collection (); /// Increment the reference count - CORBA::ULong _incr_refcnt (void); + CORBA::ULong _incr_refcnt (); /// Decrement the reference count - CORBA::ULong _decr_refcnt (void); + CORBA::ULong _decr_refcnt (); /// The actual collection COLLECTION collection; @@ -62,7 +62,7 @@ public: Collection *&collection); /// Destructor - ~TAO_ESF_Copy_On_Write_Read_Guard (void); + ~TAO_ESF_Copy_On_Write_Read_Guard (); Collection *collection; @@ -94,7 +94,7 @@ public: Collection*& collection); /// Destructor - ~TAO_ESF_Copy_On_Write_Write_Guard (void); + ~TAO_ESF_Copy_On_Write_Write_Guard (); Collection *copy; @@ -124,17 +124,17 @@ public: /// Constructor typedef TAO_ESF_Copy_On_Write_Read_Guard<COLLECTION,ITERATOR,ACE_SYNCH_MUTEX_T> Read_Guard; typedef TAO_ESF_Copy_On_Write_Write_Guard<COLLECTION,ITERATOR,ACE_SYNCH_USE> Write_Guard; - TAO_ESF_Copy_On_Write (void); + TAO_ESF_Copy_On_Write (); /// Destructor - ~TAO_ESF_Copy_On_Write (void); + ~TAO_ESF_Copy_On_Write (); // = The TAO_ESF_Proxy methods virtual void for_each (TAO_ESF_Worker<PROXY> *worker); virtual void connected (PROXY *proxy); virtual void reconnected (PROXY *proxy); virtual void disconnected (PROXY *proxy); - virtual void shutdown (void); + virtual void shutdown (); private: typedef TAO_ESF_Copy_On_Write_Collection<COLLECTION,ITERATOR> Collection; diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.cpp b/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.cpp index 5052c34c873..b1dcefda33e 100644 --- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.cpp +++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.cpp @@ -21,7 +21,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL template<class PROXY, class COLLECTION, class ITERATOR, ACE_SYNCH_DECL> TAO_ESF_Delayed_Changes<PROXY,COLLECTION,ITERATOR,ACE_SYNCH_USE>:: - TAO_ESF_Delayed_Changes (void) + TAO_ESF_Delayed_Changes () : lock_ (this), busy_cond_ (busy_lock_), busy_count_ (0), @@ -61,7 +61,7 @@ TAO_ESF_Delayed_Changes<PROXY,COLLECTION,ITERATOR,ACE_SYNCH_USE>:: template<class PROXY, class COLLECTION, class ITERATOR, ACE_SYNCH_DECL> int TAO_ESF_Delayed_Changes<PROXY,COLLECTION,ITERATOR,ACE_SYNCH_USE>:: - busy (void) + busy () { ACE_GUARD_RETURN (ACE_SYNCH_MUTEX_T, ace_mon, this->busy_lock_, -1); @@ -75,7 +75,7 @@ TAO_ESF_Delayed_Changes<PROXY,COLLECTION,ITERATOR,ACE_SYNCH_USE>:: template<class PROXY, class COLLECTION, class ITERATOR, ACE_SYNCH_DECL> int TAO_ESF_Delayed_Changes<PROXY,COLLECTION,ITERATOR,ACE_SYNCH_USE>:: - idle (void) + idle () { ACE_GUARD_RETURN (ACE_SYNCH_MUTEX_T, ace_mon, this->busy_lock_, -1); @@ -91,7 +91,7 @@ TAO_ESF_Delayed_Changes<PROXY,COLLECTION,ITERATOR,ACE_SYNCH_USE>:: template<class PROXY, class COLLECTION, class ITERATOR, ACE_SYNCH_DECL> int TAO_ESF_Delayed_Changes<PROXY,COLLECTION,ITERATOR,ACE_SYNCH_USE>:: - execute_delayed_operations (void) + execute_delayed_operations () { while (!this->command_queue_.is_empty ()) { @@ -177,7 +177,7 @@ TAO_ESF_Delayed_Changes<PROXY,C,I,ACE_SYNCH_USE>:: } template<class PROXY, class C, class I,ACE_SYNCH_DECL> void -TAO_ESF_Delayed_Changes<PROXY,C,I,ACE_SYNCH_USE>::shutdown (void) +TAO_ESF_Delayed_Changes<PROXY,C,I,ACE_SYNCH_USE>::shutdown () { ACE_GUARD_THROW_EX (ACE_SYNCH_MUTEX_T, ace_mon, this->busy_lock_, CORBA::INTERNAL ()); diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.h index 31aa6471b07..c3e9f8e40d0 100644 --- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.h +++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.h @@ -86,17 +86,17 @@ template<class PROXY, class COLLECTION, class ITERATOR, ACE_SYNCH_DECL> class TAO_ESF_Delayed_Changes : public TAO_ESF_Proxy_Collection<PROXY> { public: - TAO_ESF_Delayed_Changes (void); + TAO_ESF_Delayed_Changes (); TAO_ESF_Delayed_Changes (const COLLECTION &collection); - int busy (void); - int idle (void); - int execute_delayed_operations (void); + int busy (); + int idle (); + int execute_delayed_operations (); void connected_i (PROXY *proxy); void reconnected_i (PROXY *proxy); void disconnected_i (PROXY *proxy); - void shutdown_i (void); + void shutdown_i (); typedef TAO_ESF_Connected_Command<TAO_ESF_Delayed_Changes<PROXY,COLLECTION,ITERATOR,ACE_SYNCH_USE>,PROXY> Connected_Command; typedef TAO_ESF_Reconnected_Command<TAO_ESF_Delayed_Changes<PROXY,COLLECTION,ITERATOR,ACE_SYNCH_USE>,PROXY> Reconnected_Command; @@ -108,7 +108,7 @@ public: virtual void connected (PROXY *proxy); virtual void reconnected (PROXY *proxy); virtual void disconnected (PROXY *proxy); - virtual void shutdown (void); + virtual void shutdown (); private: COLLECTION collection_; diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.inl b/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.inl index 55fee94e3e6..0732a41bff2 100644 --- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.inl +++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.inl @@ -24,7 +24,7 @@ TAO_ESF_Delayed_Changes<PROXY,C,I,ACE_SYNCH_USE>:: template<class PROXY, class C, class I,ACE_SYNCH_DECL> void TAO_ESF_Delayed_Changes<PROXY,C,I,ACE_SYNCH_USE>:: - shutdown_i (void) + shutdown_i () { this->collection_.shutdown (); } diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.cpp b/TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.cpp index 37765884ca4..6a0a8a4c03b 100644 --- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.cpp +++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.cpp @@ -15,7 +15,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL template<class PROXY, class C, class ITERATOR, class ACE_LOCK> TAO_ESF_Immediate_Changes<PROXY,C,ITERATOR,ACE_LOCK>:: - TAO_ESF_Immediate_Changes (void) + TAO_ESF_Immediate_Changes () { } diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.h index f1958c0680e..5f46da59d2a 100644 --- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.h +++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.h @@ -27,7 +27,7 @@ template<class PROXY, class COLLECTION, class ITERATOR, class ACE_LOCK> class TAO_ESF_Immediate_Changes : public TAO_ESF_Proxy_Collection<PROXY> { public: - TAO_ESF_Immediate_Changes (void); + TAO_ESF_Immediate_Changes (); TAO_ESF_Immediate_Changes (const COLLECTION &collection); // = The TAO_ESF_Proxy methods @@ -35,7 +35,7 @@ public: virtual void connected (PROXY *proxy); virtual void reconnected (PROXY *proxy); virtual void disconnected (PROXY *proxy); - virtual void shutdown (void); + virtual void shutdown (); private: COLLECTION collection_; diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.inl b/TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.inl index 3dc79d8bdd7..469b999f73e 100644 --- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.inl +++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.inl @@ -33,7 +33,7 @@ TAO_ESF_Immediate_Changes<PROXY,COLLECTION,ITERATOR,ACE_LOCK>:: } template<class PROXY, class COLLECTION, class ITERATOR, class ACE_LOCK> void -TAO_ESF_Immediate_Changes<PROXY,COLLECTION,ITERATOR,ACE_LOCK>::shutdown (void) +TAO_ESF_Immediate_Changes<PROXY,COLLECTION,ITERATOR,ACE_LOCK>::shutdown () { ACE_GUARD (ACE_LOCK, ace_mon, this->lock_); diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Admin.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Admin.h index 54672a13ca8..eb2b2fbc583 100644 --- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Admin.h +++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Admin.h @@ -60,7 +60,7 @@ public: TAO_ESF_Peer_Admin (EVENT_CHANNEL *ec); /// destructor - virtual ~TAO_ESF_Peer_Admin (void); + virtual ~TAO_ESF_Peer_Admin (); /** * A <peer> has connected, this is invoked when the peer's client diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.h index 45819a38f1f..ceb4b3ab3f3 100644 --- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.h +++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.h @@ -66,7 +66,7 @@ public: TAO_ESF_Proxy_Admin (EVENT_CHANNEL *ec); /// Cleanup internal resources, destroy the internal collection - virtual ~TAO_ESF_Proxy_Admin (void); + virtual ~TAO_ESF_Proxy_Admin (); /// Iterate over its internal collection. void for_each (TAO_ESF_Worker<PROXY> *worker); @@ -78,14 +78,14 @@ public: // code is supposed to run under TAO only. /// Create a new PROXY and activate it. virtual INTERFACE* - obtain (void); + obtain (); /** * The Event Channel that owns this Admin object is going * down. Invoke <shutdown> on all the proxies, cleanup the * collection and prepare to terminate. */ - virtual void shutdown (void); + virtual void shutdown (); /** * A <proxy> has connected, this is invoked when the proxy's client diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Collection.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Collection.h index 3250eee56ad..b486e13f02f 100644 --- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Collection.h +++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Collection.h @@ -125,7 +125,7 @@ class TAO_ESF_Proxy_Collection { public: /// destructor - virtual ~TAO_ESF_Proxy_Collection (void); + virtual ~TAO_ESF_Proxy_Collection (); /** * Iterate over the collection and invoke worker->work() for each @@ -151,7 +151,7 @@ public: virtual void disconnected (PROXY *proxy) = 0; /// The EC is shutting down, must release all the elements. - virtual void shutdown (void) = 0; + virtual void shutdown () = 0; }; // **************************************************************** diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_List.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_List.h index fe241694268..fbd79d670a7 100644 --- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_List.h +++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_List.h @@ -38,17 +38,17 @@ public: typedef ACE_Unbounded_Set_Iterator<PROXY*> Iterator; /// Constructor - TAO_ESF_Proxy_List (void); + TAO_ESF_Proxy_List (); /// Return the first element in the collection, or end() if there /// are none - ACE_Unbounded_Set_Iterator<PROXY*> begin (void); + ACE_Unbounded_Set_Iterator<PROXY*> begin (); /// Return one past the last element in the collection - ACE_Unbounded_Set_Iterator<PROXY*> end (void); + ACE_Unbounded_Set_Iterator<PROXY*> end (); /// Return the number of elements in the collection - size_t size (void) const; + size_t size () const; /// Insert a new element to the collection void connected (PROXY *); @@ -61,7 +61,7 @@ public: /// Shutdown the collection, i.e. remove all elements and release /// resources - void shutdown (void); + void shutdown (); private: /// The underlying implementation object diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RB_Tree.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RB_Tree.h index aa2e1c1fea7..089f7caaf71 100644 --- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RB_Tree.h +++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RB_Tree.h @@ -37,9 +37,9 @@ public: bool operator == (const TAO_ESF_Proxy_RB_Tree_Iterator<PROXY> &rhs) const; bool operator != (const TAO_ESF_Proxy_RB_Tree_Iterator<PROXY> &rhs) const; - TAO_ESF_Proxy_RB_Tree_Iterator<PROXY>& operator++ (void); + TAO_ESF_Proxy_RB_Tree_Iterator<PROXY>& operator++ (); TAO_ESF_Proxy_RB_Tree_Iterator<PROXY> operator++ (int); - PROXY *operator *(void); + PROXY *operator *(); private: Implementation impl_; @@ -66,17 +66,17 @@ public: typedef TAO_ESF_Proxy_RB_Tree_Iterator<PROXY> Iterator; /// Constructor - TAO_ESF_Proxy_RB_Tree (void); + TAO_ESF_Proxy_RB_Tree (); /// Return the first element in the collection, or end() if there /// are none - TAO_ESF_Proxy_RB_Tree_Iterator<PROXY> begin (void); + TAO_ESF_Proxy_RB_Tree_Iterator<PROXY> begin (); /// Return one past the last element in the collection - TAO_ESF_Proxy_RB_Tree_Iterator<PROXY> end (void); + TAO_ESF_Proxy_RB_Tree_Iterator<PROXY> end (); /// Return the number of elements in the collection - size_t size (void) const; + size_t size () const; /// Insert a new element to the collection void connected (PROXY *); @@ -88,7 +88,7 @@ public: /// Shutdown the collection, i.e. remove all elements and release /// resources - void shutdown (void); + void shutdown (); private: /// The underlying implementation object diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RefCount_Guard.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RefCount_Guard.h index 68e677e3a7b..0b4607fe62b 100644 --- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RefCount_Guard.h +++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RefCount_Guard.h @@ -46,7 +46,7 @@ public: PROXY *proxy); /// Destructor - ~TAO_ESF_Proxy_RefCount_Guard (void); + ~TAO_ESF_Proxy_RefCount_Guard (); protected: /// The reference count, if it gets to zero then the object must be diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_RefCount_Guard.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_RefCount_Guard.h index 49ae0dcf666..61873a0de55 100644 --- a/TAO/orbsvcs/orbsvcs/ESF/ESF_RefCount_Guard.h +++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_RefCount_Guard.h @@ -41,7 +41,7 @@ public: TAO_ESF_RefCount_Guard (T &refcount); /// Destructor - ~TAO_ESF_RefCount_Guard (void); + ~TAO_ESF_RefCount_Guard (); protected: /// The reference count diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.h index a31b76e630f..efea73b2dcc 100644 --- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.h +++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.h @@ -25,7 +25,7 @@ template<class PROXY> class TAO_ESF_Shutdown_Proxy : public TAO_ESF_Worker<PROXY> { public: - TAO_ESF_Shutdown_Proxy (void); + TAO_ESF_Shutdown_Proxy (); void work (PROXY *proxy); }; diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.inl b/TAO/orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.inl index 416d6e7dd6f..86e1ef6ccb0 100644 --- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.inl +++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.inl @@ -2,7 +2,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL template<class PROXY> ACE_INLINE -TAO_ESF_Shutdown_Proxy<PROXY>::TAO_ESF_Shutdown_Proxy (void) +TAO_ESF_Shutdown_Proxy<PROXY>::TAO_ESF_Shutdown_Proxy () { } diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Worker.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Worker.h index e0d44d16751..fe8b04411b8 100644 --- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Worker.h +++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Worker.h @@ -41,7 +41,7 @@ template<class Object> class TAO_ESF_Worker { public: - virtual ~TAO_ESF_Worker (void); + virtual ~TAO_ESF_Worker (); /// Used by the collection to inform the worker /// the number of proxies in the collection. diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Adapters.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_Adapters.cpp index b52c4f60d5e..1fdf7e17b3c 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_Adapters.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Adapters.cpp @@ -2,11 +2,11 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_ECG_Handler_Shutdown::~TAO_ECG_Handler_Shutdown (void) +TAO_ECG_Handler_Shutdown::~TAO_ECG_Handler_Shutdown () { } -TAO_ECG_Dgram_Handler::~TAO_ECG_Dgram_Handler (void) +TAO_ECG_Dgram_Handler::~TAO_ECG_Dgram_Handler () { } diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Adapters.h b/TAO/orbsvcs/orbsvcs/Event/ECG_Adapters.h index 23fe2376590..c44cadd0a86 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_Adapters.h +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Adapters.h @@ -42,8 +42,8 @@ public: // Define virtual destructor to make sure we can delete derived // objects through a pointer to TAO_ECG_Handler_Shutdown. - virtual ~TAO_ECG_Handler_Shutdown (void); - virtual int shutdown (void) = 0; + virtual ~TAO_ECG_Handler_Shutdown (); + virtual int shutdown () = 0; }; /** @@ -58,7 +58,7 @@ class TAO_RTEvent_Serv_Export TAO_ECG_Dgram_Handler { public: - virtual ~TAO_ECG_Dgram_Handler (void); + virtual ~TAO_ECG_Dgram_Handler (); virtual int handle_input (ACE_SOCK_Dgram& dgram) = 0; diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Address_Server_Base.h b/TAO/orbsvcs/orbsvcs/Event/ECG_Address_Server_Base.h index 3040d61ff41..d0bfcaf73f8 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_Address_Server_Base.h +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Address_Server_Base.h @@ -12,7 +12,6 @@ #include /**/ "orbsvcs/Event/event_serv_export.h" #include "orbsvcs/RtecUDPAdminS.h" #include "orbsvcs/Event/EC_Lifetime_Utils.h" -#include "ace/Auto_Ptr.h" TAO_BEGIN_VERSIONED_NAMESPACE_DECL diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.cpp index 7115d407a11..aca8953f5dc 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.cpp @@ -14,12 +14,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_ECG_CDR_Processor::~TAO_ECG_CDR_Processor (void) +TAO_ECG_CDR_Processor::~TAO_ECG_CDR_Processor () { } // **************************************************************** -TAO_ECG_UDP_Request_Entry::~TAO_ECG_UDP_Request_Entry (void) +TAO_ECG_UDP_Request_Entry::~TAO_ECG_UDP_Request_Entry () { if (this->own_received_fragments_) { @@ -107,7 +107,7 @@ TAO_ECG_UDP_Request_Entry::mark_received (CORBA::ULong fragment_id) } int -TAO_ECG_UDP_Request_Entry::complete (void) const +TAO_ECG_UDP_Request_Entry::complete () const { for (CORBA::ULong i = 0; i < this->received_fragments_size_; @@ -145,13 +145,13 @@ TAO_ECG_CDR_Message_Receiver::Requests::init (size_t size, for (size_t i = 0; i < size; ++i) { - this->fragmented_requests_[i] = 0; + this->fragmented_requests_[i] = nullptr; } return 0; } -TAO_ECG_CDR_Message_Receiver::Requests::~Requests (void) +TAO_ECG_CDR_Message_Receiver::Requests::~Requests () { for (size_t i = 0; i < this->size_; ++i) { @@ -164,7 +164,7 @@ TAO_ECG_CDR_Message_Receiver::Requests::~Requests (void) delete [] this->fragmented_requests_; - this->fragmented_requests_ = 0; + this->fragmented_requests_ = nullptr; this->size_ = 0; this->id_range_low_ = 0; this->id_range_high_ = 0; @@ -176,7 +176,7 @@ TAO_ECG_CDR_Message_Receiver::Requests::get_request (CORBA::ULong request_id) if (request_id < this->id_range_low_) // <request_id> is below the current range. { - return 0; + return nullptr; } if (request_id > this->id_range_high_) @@ -223,14 +223,14 @@ TAO_ECG_CDR_Message_Receiver::Requests::purge_requests ( { delete this->fragmented_requests_[index]; } - this->fragmented_requests_[index] = 0; + this->fragmented_requests_[index] = nullptr; } } // **************************************************************** TAO_ECG_UDP_Request_Entry -TAO_ECG_CDR_Message_Receiver::Request_Completed_ (0, 0, 0, 0); +TAO_ECG_CDR_Message_Receiver::Request_Completed_ (false, 0, 0, 0); int TAO_ECG_CDR_Message_Receiver::handle_input ( @@ -290,7 +290,7 @@ TAO_ECG_CDR_Message_Receiver::handle_input ( crc = ACE::crc32 (iov, 2); } // Check whether the message is a loopback message. - if (this->ignore_from_.get () != 0 + if (this->ignore_from_.get () != nullptr && this->ignore_from_->is_loopback (from)) { return 0; @@ -368,7 +368,7 @@ TAO_ECG_CDR_Message_Receiver::mark_received (const ACE_INET_Addr &from, TAO_ECG_UDP_Request_Entry ** request = entry->int_id_->get_request (request_id); - if (request == 0) + if (request == nullptr) { ORBSVCS_DEBUG ((LM_WARNING, "Received mcast request with sequence" "below currently expected range.\n")); @@ -380,7 +380,7 @@ TAO_ECG_CDR_Message_Receiver::mark_received (const ACE_INET_Addr &from, "(Request already complete).\n")); return 0; } - if (*request != 0) + if (*request != nullptr) { ORBSVCS_ERROR_RETURN ((LM_ERROR, "Inconsistent fragments for " "mcast request.\n"), @@ -407,7 +407,7 @@ TAO_ECG_CDR_Message_Receiver::process_fragment ( TAO_ECG_UDP_Request_Entry ** request = source_entry->int_id_->get_request (header.request_id); - if (request == 0) + if (request == nullptr) { ORBSVCS_DEBUG ((LM_WARNING, "Received mcast request with sequence " "below currently expected range.\n")); @@ -419,7 +419,7 @@ TAO_ECG_CDR_Message_Receiver::process_fragment ( "(Request already complete).\n")); return 0; } - if (*request == 0) + if (*request == nullptr) // Entry for this request has not yet been allocated. { ACE_NEW_RETURN (*request, @@ -479,16 +479,16 @@ TAO_ECG_CDR_Message_Receiver::Request_Map::ENTRY* TAO_ECG_CDR_Message_Receiver::get_source_entry (const ACE_INET_Addr &from) { // Get the entry for <from> from the <request_map_>. - Request_Map::ENTRY * entry = 0; + Request_Map::ENTRY * entry = nullptr; if (this->request_map_.find (from, entry) == -1) { // Create an entry if one doesn't exist. - Requests *requests = 0; + Requests *requests = nullptr; ACE_NEW_RETURN (requests, Requests, - 0); - auto_ptr<Requests> requests_aptr (requests); + nullptr); + std::unique_ptr<Requests> requests_aptr (requests); if (requests->init (this->max_requests_, this->min_purge_count_) == -1 || this->request_map_.bind (from, requests, entry) == -1) @@ -504,7 +504,7 @@ TAO_ECG_CDR_Message_Receiver::get_source_entry (const ACE_INET_Addr &from) } void -TAO_ECG_CDR_Message_Receiver::shutdown (void) +TAO_ECG_CDR_Message_Receiver::shutdown () { // ACE_GUARD (ACE_Lock, guard, *this->lock_); diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.h b/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.h index 2ec41e62347..199834e90fc 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.h +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.h @@ -35,7 +35,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL class TAO_ECG_CDR_Processor { public: - virtual ~TAO_ECG_CDR_Processor (void); + virtual ~TAO_ECG_CDR_Processor (); /// Extracts data from @a cdr. Returns 0 on success, -1 on error. virtual int decode (TAO_InputCDR &cdr) = 0; @@ -63,7 +63,7 @@ public: CORBA::ULong request_size, CORBA::ULong fragment_count); - ~TAO_ECG_UDP_Request_Entry (void); + ~TAO_ECG_UDP_Request_Entry (); /// Validate a fragment, it should be rejected if it is invalid.. int validate_fragment (CORBA::Boolean byte_order, @@ -80,7 +80,7 @@ public: void mark_received (CORBA::ULong fragment_id); /// Is the message complete? - int complete (void) const; + int complete () const; /// Return a buffer for the fragment at offset @a fragment_offset char* fragment_buffer (CORBA::ULong fragment_offset); @@ -144,7 +144,7 @@ public: /// Initialization and termination methods. //@{ TAO_ECG_CDR_Message_Receiver (CORBA::Boolean check_crc); - ~TAO_ECG_CDR_Message_Receiver (void); + ~TAO_ECG_CDR_Message_Receiver (); /** * @param ignore_from Endpoint used to remove events generated by @@ -154,7 +154,7 @@ public: /* , ACE_Lock *lock = 0 */); // Shutdown the component: close down the request map, etc. - void shutdown (void); + void shutdown (); //@} /// Main method: read the data from @a dgram and either pass ready data @@ -258,8 +258,8 @@ class TAO_ECG_CDR_Message_Receiver::Requests { public: - Requests (void); - ~Requests (void); + Requests (); + ~Requests (); /// Allocates and initializes <fragmented_requests_>. int init (size_t size, size_t min_purge_count); diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.cpp index a46244b6dfb..a218fb7f0d5 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.cpp @@ -17,7 +17,7 @@ void TAO_ECG_CDR_Message_Sender::init ( TAO_ECG_Refcounted_Endpoint endpoint_rptr) { - if (endpoint_rptr.get () == 0 + if (endpoint_rptr.get () == nullptr || endpoint_rptr->dgram ().get_handle () == ACE_INVALID_HANDLE) { ORBSVCS_ERROR ((LM_ERROR, "TAO_ECG_CDR_Message_Sender::init(): " @@ -32,7 +32,7 @@ void TAO_ECG_CDR_Message_Sender::send_message (const TAO_OutputCDR &cdr, const ACE_INET_Addr &addr) { - if (this->endpoint_rptr_.get () == 0) + if (this->endpoint_rptr_.get () == nullptr) { ORBSVCS_ERROR ((LM_ERROR, "Attempt to invoke send_message() " "on non-initialized sender object.\n")); diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.h b/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.h index b36c12ff164..d9ce3dd8bbb 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.h +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.h @@ -94,7 +94,7 @@ public: void init (TAO_ECG_Refcounted_Endpoint endpoint_rptr); // Shutdown this component. Frees up the endpoint. - void shutdown (void); + void shutdown (); //@} /// Setters/getters. @@ -109,7 +109,7 @@ public: * header + 8 bytes must fit). */ int mtu (CORBA::ULong mtu); - CORBA::ULong mtu (void) const; + CORBA::ULong mtu () const; //@} /// The main method - send a CDR message. @@ -131,7 +131,7 @@ public: private: /// Return the datagram... - ACE_SOCK_Dgram& dgram (void); + ACE_SOCK_Dgram& dgram (); /** * Send one fragment, the first entry in the iovec is used to send diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.cpp index b4968b356b5..d8d2961e3fd 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.cpp @@ -15,7 +15,7 @@ TAO_ECG_Complex_Address_Server::TAO_ECG_Complex_Address_Server ( { } -TAO_ECG_Complex_Address_Server::~TAO_ECG_Complex_Address_Server (void) +TAO_ECG_Complex_Address_Server::~TAO_ECG_Complex_Address_Server () { } @@ -32,7 +32,7 @@ TAO_ECG_Complex_Address_Server::init (const char *arg) while (*data != '\0') { // Extract lookup value (it is followed by '@'). - const char * location = 0; + const char * location = nullptr; location = ACE_OS::strchr (data, '@'); if (!location) { @@ -44,24 +44,24 @@ TAO_ECG_Complex_Address_Server::init (const char *arg) -1); } size_t len = location - data; - key_string.set (data, len, 1); + key_string.set (data, len, true); data += len + 1; // Extract mcast address to be mapped to just extracted lookup // value. - location = 0; + location = nullptr; location = ACE_OS::strchr (data, ' '); if (location) { len = location - data; - mcast_string.set (data, len, 1); + mcast_string.set (data, len, true); data += len + 1; } else { // This must be the last entry in the mapping. len = ACE_OS::strlen (data); - mcast_string.set (data, len, 1); + mcast_string.set (data, len, true); data += len; } @@ -90,7 +90,7 @@ TAO_ECG_Complex_Address_Server::add_entry (const char * key, } // Convert strings to values. - char * endptr = 0; + char * endptr = nullptr; CORBA::Long header_value = ACE_OS::strtol (key, &endptr, 0); if (*endptr != '\0') { @@ -131,7 +131,7 @@ TAO_ECG_Complex_Address_Server::get_addr ( else key = header.type; - MAP::ENTRY * mapping_entry = 0; + MAP::ENTRY * mapping_entry = nullptr; if (this->mcast_mapping_.find (key, mapping_entry) == -1) { // Key was not found in the mapping. Use default. @@ -164,7 +164,7 @@ TAO_ECG_Complex_Address_Server::get_address ( else key = header.type; - MAP::ENTRY * mapping_entry = 0; + MAP::ENTRY * mapping_entry = nullptr; ACE_INET_Addr &src_addr = (this->mcast_mapping_.find (key, mapping_entry) == -1) ? this->default_addr_ : mapping_entry->int_id_; @@ -188,7 +188,7 @@ TAO_ECG_Complex_Address_Server::get_address ( void -TAO_ECG_Complex_Address_Server::dump_content (void) +TAO_ECG_Complex_Address_Server::dump_content () { ORBSVCS_DEBUG ((LM_DEBUG, "Default address: %s:%d\n", this->default_addr_.get_host_addr (), diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.h b/TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.h index 6f90a5b6935..5bb96c44b7b 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.h +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.h @@ -58,7 +58,7 @@ public: create (int is_source_mapping = 1); /// Destructor - virtual ~TAO_ECG_Complex_Address_Server (void); + virtual ~TAO_ECG_Complex_Address_Server (); /// Initializes the mapping from the @a arg string. See class notes /// for the expected format. @@ -72,7 +72,7 @@ public: /// Prints out complete content of the address server. Useful for /// debugging. - void dump_content (void); + void dump_content (); protected: diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_ConsumerEC_Control.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_ConsumerEC_Control.cpp index 47557ef714e..9c513ff2b77 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_ConsumerEC_Control.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_ConsumerEC_Control.cpp @@ -4,22 +4,22 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_ECG_ConsumerEC_Control::TAO_ECG_ConsumerEC_Control (void) +TAO_ECG_ConsumerEC_Control::TAO_ECG_ConsumerEC_Control () { } -TAO_ECG_ConsumerEC_Control::~TAO_ECG_ConsumerEC_Control (void) +TAO_ECG_ConsumerEC_Control::~TAO_ECG_ConsumerEC_Control () { } int -TAO_ECG_ConsumerEC_Control::activate (void) +TAO_ECG_ConsumerEC_Control::activate () { return 0; } int -TAO_ECG_ConsumerEC_Control::shutdown (void) +TAO_ECG_ConsumerEC_Control::shutdown () { return 0; } diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_ConsumerEC_Control.h b/TAO/orbsvcs/orbsvcs/Event/ECG_ConsumerEC_Control.h index 268c4c5c7be..70bb109851f 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_ConsumerEC_Control.h +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_ConsumerEC_Control.h @@ -44,18 +44,18 @@ class TAO_RTEvent_Serv_Export TAO_ECG_ConsumerEC_Control { public: /// Constructor. - TAO_ECG_ConsumerEC_Control (void); + TAO_ECG_ConsumerEC_Control (); /// Destructor. - virtual ~TAO_ECG_ConsumerEC_Control (void); + virtual ~TAO_ECG_ConsumerEC_Control (); /// Activate any internal threads or timers used to poll the state of /// the event channel. - virtual int activate (void); + virtual int activate (); /// Shutdown any internal threads or timers used to poll the state of /// the event channel. - virtual int shutdown (void); + virtual int shutdown (); /** * When pushing an event to the event channel a CORBA::OBJECT_NOT_EXIST diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_EH.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_EH.cpp index 970534d4332..8c36dc6b44c 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_EH.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_EH.cpp @@ -19,7 +19,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_ECG_Mcast_EH::TAO_ECG_Mcast_EH (TAO_ECG_Dgram_Handler *recv, const ACE_TCHAR *net_if, CORBA::ULong sz) - : net_if_ (net_if ? ACE_OS::strdup (net_if) : 0) + : net_if_ (net_if ? ACE_OS::strdup (net_if) : nullptr) , subscriptions_ () , receiver_ (recv) , recvbuf_size_ (sz) @@ -29,7 +29,7 @@ TAO_ECG_Mcast_EH::TAO_ECG_Mcast_EH (TAO_ECG_Dgram_Handler *recv, ACE_ASSERT (this->receiver_); } -TAO_ECG_Mcast_EH::~TAO_ECG_Mcast_EH (void) +TAO_ECG_Mcast_EH::~TAO_ECG_Mcast_EH () { ACE_OS::free (this->net_if_); } @@ -78,7 +78,7 @@ TAO_ECG_Mcast_EH::open (RtecEventChannelAdmin::EventChannel_ptr ec) } int -TAO_ECG_Mcast_EH::shutdown (void) +TAO_ECG_Mcast_EH::shutdown () { // Already shut down. if (!this->receiver_) @@ -91,11 +91,11 @@ TAO_ECG_Mcast_EH::shutdown (void) if (this->observer_.in ()) { this->observer_->shutdown (); - this->observer_ = 0; + this->observer_ = nullptr; } // Indicates that we are in a shutdown state. - this->receiver_ = 0; + this->receiver_ = nullptr; // Deregister from reactor, close and clean up sockets. size_t const subscriptions_size = this->subscriptions_.size (); @@ -303,9 +303,9 @@ TAO_ECG_Mcast_EH::Observer::update_supplier ( } void -TAO_ECG_Mcast_EH::Observer::shutdown (void) +TAO_ECG_Mcast_EH::Observer::shutdown () { - this->eh_ = 0; + this->eh_ = nullptr; this->deactivator_.deactivate (); } diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_EH.h b/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_EH.h index dbdf3beef72..8afc5439610 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_EH.h +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_EH.h @@ -68,7 +68,7 @@ public: CORBA::ULong buf_sz = 0); /// Destructor. - virtual ~TAO_ECG_Mcast_EH (void); + virtual ~TAO_ECG_Mcast_EH (); /** * Register for changes in the EC subscription list. @@ -89,7 +89,7 @@ public: * multicast groups, close the sockets and deregister from the * reactor. */ - virtual int shutdown (void); + virtual int shutdown (); //@} /// Reactor callback. Notify receiver_ that a dgram corresponding @@ -115,7 +115,7 @@ private: /// Shut down the observer: disconnect from EC and deactivate from /// POA. - void shutdown (void); + void shutdown (); /// Event Channel Observer methods //@{ @@ -201,14 +201,14 @@ private: class TAO_RTEvent_Serv_Export Observer_Disconnect_Command { public: - Observer_Disconnect_Command (void); + Observer_Disconnect_Command (); Observer_Disconnect_Command (RtecEventChannelAdmin::Observer_Handle handle, RtecEventChannelAdmin::EventChannel_ptr ec); Observer_Disconnect_Command (const Observer_Disconnect_Command &rhs); Observer_Disconnect_Command & operator= (const Observer_Disconnect_Command & rhs); - void execute (void); + void execute (); private: diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.cpp index a679bd3b058..3d8c8a8eb4c 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.cpp @@ -28,7 +28,7 @@ typedef TAO_EC_Shutdown_Command<PortableServer::Servant_var<TAO_ECG_UDP_Receiver UDP_Receiver_Shutdown; int -TAO_ECG_Mcast_Gateway::init_svcs (void) +TAO_ECG_Mcast_Gateway::init_svcs () { return ACE_Service_Config::static_svcs ()-> insert (&ace_svc_desc_TAO_ECG_Mcast_Gateway); @@ -36,7 +36,7 @@ TAO_ECG_Mcast_Gateway::init_svcs (void) int -TAO_ECG_Mcast_Gateway::fini (void) +TAO_ECG_Mcast_Gateway::fini () { return 0; } @@ -149,7 +149,7 @@ TAO_ECG_Mcast_Gateway::init (int argc, ACE_TCHAR* argv[]) if (arg_shifter.is_parameter_next ()) { const ACE_TCHAR* opt = arg_shifter.get_current (); - unsigned long tmp = ACE_OS::strtoul (opt, 0, 0) & 0xff; + unsigned long tmp = ACE_OS::strtoul (opt, nullptr, 0) & 0xff; this->ttl_value_ = static_cast<u_char> (tmp); arg_shifter.consume_arg (); } @@ -236,7 +236,7 @@ TAO_ECG_Mcast_Gateway::init ( } int -TAO_ECG_Mcast_Gateway::validate_configuration (void) +TAO_ECG_Mcast_Gateway::validate_configuration () { if ((this->handler_type_ == ECG_HANDLER_BASIC || this->handler_type_ == ECG_HANDLER_UDP) @@ -280,16 +280,16 @@ TAO_ECG_Mcast_Gateway::validate_configuration (void) } TAO_ECG_Refcounted_Endpoint -TAO_ECG_Mcast_Gateway::init_endpoint (void) +TAO_ECG_Mcast_Gateway::init_endpoint () { - TAO_ECG_UDP_Out_Endpoint* endpoint = 0; + TAO_ECG_UDP_Out_Endpoint* endpoint = nullptr; TAO_ECG_Refcounted_Endpoint refendpoint; // Try to allocate a new endpoint from the heap ACE_NEW_NORETURN (endpoint, TAO_ECG_UDP_Out_Endpoint); - if (endpoint != 0) + if (endpoint != nullptr) { refendpoint.reset (endpoint); } @@ -351,22 +351,22 @@ TAO_ECG_Mcast_Gateway::init_endpoint (void) } PortableServer::ServantBase * -TAO_ECG_Mcast_Gateway::init_address_server (void) +TAO_ECG_Mcast_Gateway::init_address_server () { const char * address_server_arg = (this->address_server_arg_.length ()) - ? this->address_server_arg_.c_str () : 0; + ? this->address_server_arg_.c_str () : nullptr; if (this->address_server_type_ == ECG_ADDRESS_SERVER_BASIC) { PortableServer::Servant_var<TAO_ECG_Simple_Address_Server> impl = TAO_ECG_Simple_Address_Server::create (); if (!impl.in ()) - return 0; + return nullptr; if (impl->init (address_server_arg) == -1) { - return 0; + return nullptr; } return impl._retn (); } @@ -376,11 +376,11 @@ TAO_ECG_Mcast_Gateway::init_address_server (void) PortableServer::Servant_var<TAO_ECG_Complex_Address_Server> impl = TAO_ECG_Complex_Address_Server::create (1); if (!impl.in ()) - return 0; + return nullptr; if (impl->init (address_server_arg) == -1) { - return 0; + return nullptr; } return impl._retn (); } @@ -390,11 +390,11 @@ TAO_ECG_Mcast_Gateway::init_address_server (void) PortableServer::Servant_var<TAO_ECG_Complex_Address_Server> impl = TAO_ECG_Complex_Address_Server::create (0); if (!impl.in ()) - return 0; + return nullptr; if (impl->init (address_server_arg) == -1) { - return 0; + return nullptr; } return impl._retn (); } @@ -404,7 +404,7 @@ TAO_ECG_Mcast_Gateway::init_address_server (void) ORBSVCS_ERROR ((LM_ERROR, "Cannot create address server: " "unknown address server type specified.\n")); - return 0; + return nullptr; } } @@ -416,14 +416,14 @@ TAO_ECG_Mcast_Gateway::init_handler (TAO_ECG_Dgram_Handler *receiver, TAO_ECG_Refcounted_Handler handler; const ACE_TCHAR * nic = - (this->nic_.length ()) ? this->nic_.c_str () : 0; + (this->nic_.length ()) ? this->nic_.c_str () : nullptr; const char * address_server_arg = (this->address_server_arg_.length ()) - ? this->address_server_arg_.c_str () : 0; + ? this->address_server_arg_.c_str () : nullptr; if (this->handler_type_ == ECG_HANDLER_BASIC) { - TAO_ECG_Simple_Mcast_EH * h = 0; + TAO_ECG_Simple_Mcast_EH * h = nullptr; ACE_NEW_RETURN (h, TAO_ECG_Simple_Mcast_EH (receiver), handler); @@ -436,7 +436,7 @@ TAO_ECG_Mcast_Gateway::init_handler (TAO_ECG_Dgram_Handler *receiver, else if (this->handler_type_ == ECG_HANDLER_COMPLEX) { - TAO_ECG_Mcast_EH * h = 0; + TAO_ECG_Mcast_EH * h = nullptr; ACE_NEW_RETURN (h, TAO_ECG_Mcast_EH (receiver, nic), handler); @@ -449,7 +449,7 @@ TAO_ECG_Mcast_Gateway::init_handler (TAO_ECG_Dgram_Handler *receiver, else if (this->handler_type_ == ECG_HANDLER_UDP) { - TAO_ECG_UDP_EH * h = 0; + TAO_ECG_UDP_EH * h = nullptr; ACE_NEW_RETURN (h, TAO_ECG_UDP_EH (receiver), handler); @@ -614,7 +614,7 @@ TAO_ECG_Mcast_Gateway::run (CORBA::ORB_ptr orb, || this->service_type_ == ECG_MCAST_TWO_WAY) { endpoint_rptr = this->init_endpoint (); - if (endpoint_rptr.get () == 0) + if (endpoint_rptr.get () == nullptr) { throw CORBA::INTERNAL (); } @@ -651,7 +651,7 @@ TAO_ECG_Mcast_Gateway::run (CORBA::ORB_ptr orb, handler_rptr (this->init_handler (receiver.in (), ec, reactor)); - if (handler_rptr.get () == 0) + if (handler_rptr.get () == nullptr) { throw CORBA::INTERNAL (); } diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.h b/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.h index 5ab71be6c18..a34a07843f8 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.h +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.h @@ -129,15 +129,15 @@ public: /// The Service_Object entry points. //@{ virtual int init (int argc, ACE_TCHAR* argv[]); - virtual int fini (void); + virtual int fini (); //@} /// Helper function to register the Gateway into the service /// configurator. - static int init_svcs (void); + static int init_svcs (); /// Constructor. - TAO_ECG_Mcast_Gateway (void); + TAO_ECG_Mcast_Gateway (); /// Values for some configuration parameters to init (). //@{ @@ -182,7 +182,7 @@ public: */ struct TAO_RTEvent_Serv_Export Attributes { - Attributes (void); + Attributes (); Address_Server_Type address_server_type; Handler_Type handler_type; @@ -227,13 +227,13 @@ private: RtecEventChannelAdmin::EventChannel_ptr ec); /// Verifies configuration values specified through init() make sense. - int validate_configuration (void); + int validate_configuration (); //@} /// Allocate and initialize appropriate objects. //@{ PortableServer::ServantBase * - init_address_server (void); + init_address_server (); PortableServer::Servant_var<TAO_ECG_UDP_Sender> init_sender (RtecEventChannelAdmin::EventChannel_ptr ec, @@ -245,7 +245,7 @@ private: RtecUDPAdmin::AddrServer_ptr address_server, TAO_ECG_Refcounted_Endpoint endpoint_rptr); - TAO_ECG_Refcounted_Endpoint init_endpoint (void); + TAO_ECG_Refcounted_Endpoint init_endpoint (); TAO_ECG_Refcounted_Handler init_handler (TAO_ECG_Dgram_Handler *recv, diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Reactive_ConsumerEC_Control.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_Reactive_ConsumerEC_Control.cpp index bad8ff7df7b..04b881ae603 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_Reactive_ConsumerEC_Control.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Reactive_ConsumerEC_Control.cpp @@ -28,7 +28,7 @@ TAO_ECG_Reactive_ConsumerEC_Control:: this->orb_->orb_core ()->reactor (); } -TAO_ECG_Reactive_ConsumerEC_Control::~TAO_ECG_Reactive_ConsumerEC_Control (void) +TAO_ECG_Reactive_ConsumerEC_Control::~TAO_ECG_Reactive_ConsumerEC_Control () { } @@ -104,7 +104,7 @@ TAO_ECG_Reactive_ConsumerEC_Control::handle_timeout ( } int -TAO_ECG_Reactive_ConsumerEC_Control::activate (void) +TAO_ECG_Reactive_ConsumerEC_Control::activate () { #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0 try @@ -134,7 +134,7 @@ TAO_ECG_Reactive_ConsumerEC_Control::activate (void) // handle_timeout uses these policies, if done in front, the channel // can crash when the timeout expires before initiazation is ready. timer_id_ = this->reactor_->schedule_timer (&this->adapter_, - 0, + nullptr, this->rate_, this->rate_); if (timer_id_ == -1) @@ -151,7 +151,7 @@ TAO_ECG_Reactive_ConsumerEC_Control::activate (void) } int -TAO_ECG_Reactive_ConsumerEC_Control::shutdown (void) +TAO_ECG_Reactive_ConsumerEC_Control::shutdown () { int r = 0; @@ -159,7 +159,7 @@ TAO_ECG_Reactive_ConsumerEC_Control::shutdown (void) r = this->reactor_->cancel_timer (timer_id_); #endif /* TAO_HAS_CORBA_MESSAGING */ - this->adapter_.reactor (0); + this->adapter_.reactor (nullptr); return r; } diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Reactive_ConsumerEC_Control.h b/TAO/orbsvcs/orbsvcs/Event/ECG_Reactive_ConsumerEC_Control.h index d3fe99a37b9..ed3b751b127 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_Reactive_ConsumerEC_Control.h +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Reactive_ConsumerEC_Control.h @@ -72,15 +72,15 @@ public: CORBA::ORB_ptr orb); /// Destructor. - virtual ~TAO_ECG_Reactive_ConsumerEC_Control (void); + virtual ~TAO_ECG_Reactive_ConsumerEC_Control (); /// Receive the timeout from the adapter void handle_timeout (const ACE_Time_Value &tv, const void* arg); // = Documented in TAO_EC_ConsumerControl - virtual int activate (void); - virtual int shutdown (void); + virtual int activate (); + virtual int shutdown (); virtual void event_channel_not_exist (TAO_EC_Gateway_IIOP *gateway); virtual void system_exception (TAO_EC_Gateway_IIOP *gateway, CORBA::SystemException &); @@ -88,7 +88,7 @@ public: private: /// Check if the consumers still exists. It is a helper method for /// handle_timeout() to isolate the exceptions. - void query_eventchannel (void); + void query_eventchannel (); private: /// The polling rate diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Reconnect_ConsumerEC_Control.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_Reconnect_ConsumerEC_Control.cpp index 0ca681bb896..018b710de09 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_Reconnect_ConsumerEC_Control.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Reconnect_ConsumerEC_Control.cpp @@ -27,7 +27,7 @@ TAO_ECG_Reconnect_ConsumerEC_Control:: this->orb_->orb_core ()->reactor (); } -TAO_ECG_Reconnect_ConsumerEC_Control::~TAO_ECG_Reconnect_ConsumerEC_Control (void) +TAO_ECG_Reconnect_ConsumerEC_Control::~TAO_ECG_Reconnect_ConsumerEC_Control () { } @@ -143,7 +143,7 @@ TAO_ECG_Reconnect_ConsumerEC_Control::handle_timeout ( } int -TAO_ECG_Reconnect_ConsumerEC_Control::activate (void) +TAO_ECG_Reconnect_ConsumerEC_Control::activate () { #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0 try @@ -173,7 +173,7 @@ TAO_ECG_Reconnect_ConsumerEC_Control::activate (void) // handle_timeout uses these policies, if done in front, the channel // can crash when the timeout expires before initiazation is ready. timer_id_ = this->reactor_->schedule_timer (&this->adapter_, - 0, + nullptr, this->rate_, this->rate_); if (timer_id_ == -1) @@ -190,7 +190,7 @@ TAO_ECG_Reconnect_ConsumerEC_Control::activate (void) } int -TAO_ECG_Reconnect_ConsumerEC_Control::shutdown (void) +TAO_ECG_Reconnect_ConsumerEC_Control::shutdown () { int r = 0; @@ -198,7 +198,7 @@ TAO_ECG_Reconnect_ConsumerEC_Control::shutdown (void) r = this->reactor_->cancel_timer (timer_id_); #endif /* TAO_HAS_CORBA_MESSAGING */ - this->adapter_.reactor (0); + this->adapter_.reactor (nullptr); return r; } diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Reconnect_ConsumerEC_Control.h b/TAO/orbsvcs/orbsvcs/Event/ECG_Reconnect_ConsumerEC_Control.h index 27c521480d4..493cd0fe01e 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_Reconnect_ConsumerEC_Control.h +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Reconnect_ConsumerEC_Control.h @@ -77,15 +77,15 @@ public: CORBA::ORB_ptr orb); /// Destructor. - virtual ~TAO_ECG_Reconnect_ConsumerEC_Control (void); + virtual ~TAO_ECG_Reconnect_ConsumerEC_Control (); /// Receive the timeout from the adapter void handle_timeout (const ACE_Time_Value &tv, const void* arg); // = Documented in TAO_EC_ConsumerControl - virtual int activate (void); - virtual int shutdown (void); + virtual int activate (); + virtual int shutdown (); virtual void event_channel_not_exist (TAO_EC_Gateway_IIOP *gateway); virtual void system_exception (TAO_EC_Gateway_IIOP *gateway, CORBA::SystemException &); @@ -93,13 +93,13 @@ public: private: /// Check if the consumers still exists. It is a helper method for /// handle_timeout() to isolate the exceptions. - void query_eventchannel (void); + void query_eventchannel (); /// Look if we can reconnect again. - void try_reconnect (void); + void try_reconnect (); /// Reconnect to the consumer ec. - void reconnect (void); + void reconnect (); private: /// The polling rate diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.cpp index 1d1249873ce..d1c14b7969c 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.cpp @@ -6,11 +6,11 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_ECG_Simple_Address_Server::TAO_ECG_Simple_Address_Server (void) +TAO_ECG_Simple_Address_Server::TAO_ECG_Simple_Address_Server () { } -TAO_ECG_Simple_Address_Server::~TAO_ECG_Simple_Address_Server (void) +TAO_ECG_Simple_Address_Server::~TAO_ECG_Simple_Address_Server () { } diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.h b/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.h index e3e27ce61f0..267cea8f0c9 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.h +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.h @@ -32,10 +32,10 @@ public: /// Create a new TAO_ECG_Simple_Address_Server object. /// (Constructor access is restricted to insure that all /// TAO_ECG_Simple_Address_Server objects are heap-allocated.) - static PortableServer::Servant_var<TAO_ECG_Simple_Address_Server> create (void); + static PortableServer::Servant_var<TAO_ECG_Simple_Address_Server> create (); /// Destructor - virtual ~TAO_ECG_Simple_Address_Server (void); + virtual ~TAO_ECG_Simple_Address_Server (); int init (const char *arg); @@ -50,7 +50,7 @@ protected: /// Constructor (protected). Clients can create new /// TAO_ECG_Simple_Address_Server objects using the static create() /// method. - TAO_ECG_Simple_Address_Server (void); + TAO_ECG_Simple_Address_Server (); private: ACE_INET_Addr addr_; diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Mcast_EH.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Mcast_EH.cpp index bce028cdd7b..2e35302a66a 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Mcast_EH.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Mcast_EH.cpp @@ -11,7 +11,7 @@ TAO_ECG_Simple_Mcast_EH::TAO_ECG_Simple_Mcast_EH (TAO_ECG_Dgram_Handler *recv) ACE_ASSERT (this->receiver_); } -TAO_ECG_Simple_Mcast_EH::~TAO_ECG_Simple_Mcast_EH (void) +TAO_ECG_Simple_Mcast_EH::~TAO_ECG_Simple_Mcast_EH () { } @@ -23,7 +23,7 @@ TAO_ECG_Simple_Mcast_EH::open (const char * mcast_addr, if (!this->receiver_) return -1; - if (mcast_addr == 0) + if (mcast_addr == nullptr) return -1; ACE_INET_Addr mcast_group; @@ -59,7 +59,7 @@ TAO_ECG_Simple_Mcast_EH::open (const char * mcast_addr, } int -TAO_ECG_Simple_Mcast_EH::shutdown (void) +TAO_ECG_Simple_Mcast_EH::shutdown () { // Already shut down. if (!this->receiver_) @@ -82,7 +82,7 @@ TAO_ECG_Simple_Mcast_EH::shutdown (void) "Unable to close mcast receiving dgram " "on shutdown.\n")); - this->receiver_ = 0; + this->receiver_ = nullptr; return result; } diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Mcast_EH.h b/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Mcast_EH.h index aa37322173f..69c5ac53150 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Mcast_EH.h +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Mcast_EH.h @@ -50,7 +50,7 @@ public: TAO_ECG_Simple_Mcast_EH (TAO_ECG_Dgram_Handler *recv); /// Destructor. - virtual ~TAO_ECG_Simple_Mcast_EH (void); + virtual ~TAO_ECG_Simple_Mcast_EH (); /// Join the specified multicast group and register itself with the /// reactor. @@ -62,7 +62,7 @@ public: /// TAO_ECG_Handler_Shutdown method. /// Unsubscribe from the reactor and close the datagram. - virtual int shutdown (void); + virtual int shutdown (); //@} /// Main method - reactor callback. Notify <receiver_> that diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_EH.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_EH.cpp index b0e6e278d68..49ff6f35ecf 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_EH.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_EH.cpp @@ -17,7 +17,7 @@ TAO_ECG_UDP_EH::TAO_ECG_UDP_EH (TAO_ECG_Dgram_Handler *recv) ACE_ASSERT (this->receiver_); } -TAO_ECG_UDP_EH::~TAO_ECG_UDP_EH (void) +TAO_ECG_UDP_EH::~TAO_ECG_UDP_EH () { } @@ -50,7 +50,7 @@ TAO_ECG_UDP_EH::open (const ACE_INET_Addr& ipaddr, } int -TAO_ECG_UDP_EH::shutdown (void) +TAO_ECG_UDP_EH::shutdown () { // Already shut down. if (!this->receiver_) @@ -72,7 +72,7 @@ TAO_ECG_UDP_EH::shutdown (void) ORBSVCS_ERROR ((LM_ERROR, "Unable to close receiving dgram on shutdown.\n")); - this->receiver_ = 0; + this->receiver_ = nullptr; return result; } diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_EH.h b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_EH.h index c11544fae06..0d865c992c5 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_EH.h +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_EH.h @@ -55,7 +55,7 @@ public: TAO_ECG_UDP_EH (TAO_ECG_Dgram_Handler *recv); /// Destructor. - virtual ~TAO_ECG_UDP_EH (void); + virtual ~TAO_ECG_UDP_EH (); /// Open the datagram and register itself with this->reactor(). /// To insure proper resource clean up, if open () is successful, @@ -66,7 +66,7 @@ public: /// TAO_ECG_Handler_Shutdown method. /// Unsubscribe from the reactor and close the datagram. - virtual int shutdown (void); + virtual int shutdown (); //@} /// Main method - reactor callback. Notify <receiver_> that @@ -78,7 +78,7 @@ public: * type safety", allowing the user to setup options and gain access * to low-level features. */ - ACE_SOCK_Dgram &dgram (void); + ACE_SOCK_Dgram &dgram (); private: diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.cpp index 0d27483b7eb..6f238efb3c1 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.cpp @@ -11,7 +11,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_ECG_UDP_Out_Endpoint::~TAO_ECG_UDP_Out_Endpoint (void) +TAO_ECG_UDP_Out_Endpoint::~TAO_ECG_UDP_Out_Endpoint () { this->dgram_.close (); @@ -36,7 +36,7 @@ TAO_ECG_UDP_Out_Endpoint::is_loopback (const ACE_INET_Addr& from) if (from.get_port_number () != this->port_number_) return false; - if (this->ifs_ == 0) + if (this->ifs_ == nullptr) { ACE::get_ip_interfaces (this->if_count_, this->ifs_); } @@ -62,7 +62,7 @@ TAO_ECG_UDP_Out_Endpoint::operator= (const TAO_ECG_UDP_Out_Endpoint& rhs) this->if_count_ = rhs.if_count_; delete [] this->ifs_; - this->ifs_ = 0; + this->ifs_ = nullptr; if (this->if_count_ != 0) { diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.h b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.h index eb710628ee5..8cf05182684 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.h +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.h @@ -45,10 +45,10 @@ class TAO_RTEvent_Serv_Export TAO_ECG_UDP_Out_Endpoint { public: /// Constructor - TAO_ECG_UDP_Out_Endpoint (void); + TAO_ECG_UDP_Out_Endpoint (); /// Constructor - ~TAO_ECG_UDP_Out_Endpoint (void); + ~TAO_ECG_UDP_Out_Endpoint (); /// Copy Constructor TAO_ECG_UDP_Out_Endpoint (const TAO_ECG_UDP_Out_Endpoint& rhs); @@ -58,10 +58,10 @@ public: /// Obtain the datagram associated with this endpoint. Clients of /// this class must open, and register (if necessary) this datagram. - ACE_SOCK_Dgram& dgram (void); + ACE_SOCK_Dgram& dgram (); /// Obtain the next request id. - CORBA::ULong next_request_id (void); + CORBA::ULong next_request_id (); /// The endpoint can detect if a data-gram was sent by itself, this /// is useful to ignore or remove messages sent by the same process. diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.cpp index 6ac398553b0..a0388b52b59 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.cpp @@ -9,7 +9,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_ECG_UDP_Receiver::~TAO_ECG_UDP_Receiver (void) +TAO_ECG_UDP_Receiver::~TAO_ECG_UDP_Receiver () { this->consumer_proxy_ = RtecEventChannelAdmin::ProxyPushConsumer::_nil (); @@ -127,7 +127,7 @@ TAO_ECG_UDP_Receiver::reconnect (const RtecEventChannelAdmin::SupplierQOS& pub) } void -TAO_ECG_UDP_Receiver::disconnect_push_supplier (void) +TAO_ECG_UDP_Receiver::disconnect_push_supplier () { // Prevent attempts to disconnect. this->auto_proxy_disconnect_.disallow_command (); @@ -136,7 +136,7 @@ TAO_ECG_UDP_Receiver::disconnect_push_supplier (void) } void -TAO_ECG_UDP_Receiver::shutdown (void) +TAO_ECG_UDP_Receiver::shutdown () { if (this->handler_rptr_.get ()) this->handler_rptr_->shutdown (); diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.h b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.h index 0d659652791..68532c6b4b0 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.h +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.h @@ -71,7 +71,7 @@ class TAO_ECG_UDP_Out_Endpoint; class TAO_RTEvent_Serv_Export TAO_ECG_UDP_Receiver_Disconnect_Command { public: - TAO_ECG_UDP_Receiver_Disconnect_Command (void); + TAO_ECG_UDP_Receiver_Disconnect_Command (); TAO_ECG_UDP_Receiver_Disconnect_Command ( RtecEventChannelAdmin::ProxyPushConsumer_ptr proxy); @@ -81,7 +81,7 @@ public: TAO_ECG_UDP_Receiver_Disconnect_Command & operator= (const TAO_ECG_UDP_Receiver_Disconnect_Command & rhs); - void execute (void); + void execute (); private: @@ -113,7 +113,7 @@ public: /// TAO_ECG_UDP_Receiver objects are heap-allocated.) static PortableServer::Servant_var<TAO_ECG_UDP_Receiver> create (CORBA::Boolean perform_crc = 0); - ~TAO_ECG_UDP_Receiver (void); + ~TAO_ECG_UDP_Receiver (); /** * @param lcl_ec Event Channel to which we will act as a supplier of events. @@ -157,7 +157,7 @@ public: * result in decrementing of the reference count (due to * deactivation) and deletion of the object. */ - void shutdown (void); + void shutdown (); //@} /// Accessor. @@ -174,7 +174,7 @@ public: /// The PushSupplier idl method. /// Invokes shutdown (), which may result in the object being deleted, if /// refcounting is used to manage its lifetime. - virtual void disconnect_push_supplier (void); + virtual void disconnect_push_supplier (); /// TAO_ECG_Dgram_Handler method. /** diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Sender.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Sender.cpp index e742497719a..2e5c0b9d1a3 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Sender.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Sender.cpp @@ -17,7 +17,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_ECG_UDP_Sender::~TAO_ECG_UDP_Sender (void) +TAO_ECG_UDP_Sender::~TAO_ECG_UDP_Sender () { } @@ -131,7 +131,7 @@ TAO_ECG_UDP_Sender::reconnect (const RtecEventChannelAdmin::ConsumerQOS& sub) } void -TAO_ECG_UDP_Sender::disconnect_push_consumer (void) +TAO_ECG_UDP_Sender::disconnect_push_consumer () { // Prevent attempts to disconnect. this->auto_proxy_disconnect_.disallow_command (); @@ -140,7 +140,7 @@ TAO_ECG_UDP_Sender::disconnect_push_consumer (void) } void -TAO_ECG_UDP_Sender::shutdown (void) +TAO_ECG_UDP_Sender::shutdown () { this->supplier_proxy_ = RtecEventChannelAdmin::ProxyPushSupplier::_nil (); diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Sender.h b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Sender.h index 1c0dab80b05..67f29c6fc14 100644 --- a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Sender.h +++ b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Sender.h @@ -70,7 +70,7 @@ class TAO_ECG_UDP_Out_Endpoint; class TAO_RTEvent_Serv_Export TAO_ECG_UDP_Sender_Disconnect_Command { public: - TAO_ECG_UDP_Sender_Disconnect_Command (void); + TAO_ECG_UDP_Sender_Disconnect_Command (); TAO_ECG_UDP_Sender_Disconnect_Command ( RtecEventChannelAdmin::ProxyPushSupplier_ptr proxy); @@ -80,7 +80,7 @@ public: TAO_ECG_UDP_Sender_Disconnect_Command & operator= (const TAO_ECG_UDP_Sender_Disconnect_Command & rhs); - void execute (void); + void execute (); private: @@ -110,7 +110,7 @@ public: /// TAO_ECG_UDP_Sender objects are heap-allocated.) static PortableServer::Servant_var<TAO_ECG_UDP_Sender> create (CORBA::Boolean crc = 0); - ~TAO_ECG_UDP_Sender (void); + ~TAO_ECG_UDP_Sender (); /** * @param lcl_ec Event Channel to which we will act as a consumer of events. @@ -148,7 +148,7 @@ public: * Calling this method may result in decrementing of the reference * count (due to deactivation) and deletion of the object. */ - void shutdown (void); + void shutdown (); //@} /// Accessors. @@ -160,7 +160,7 @@ public: * header + 8 bytes must fit). */ int mtu (CORBA::ULong mtu); - CORBA::ULong mtu (void) const; + CORBA::ULong mtu () const; /// Get the local endpoint used to send the events. int get_local_addr (ACE_INET_Addr& addr); @@ -170,7 +170,7 @@ public: //@{ /// Invokes shutdown (), which may result in the object being deleted, if /// refcounting is used to manage its lifetime. - virtual void disconnect_push_consumer (void); + virtual void disconnect_push_consumer (); virtual void push (const RtecEventComm::EventSet &events); //@} diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_And_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_And_Filter.cpp index 9aeb0fd5bee..0e9b80f7c7d 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_And_Filter.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_And_Filter.cpp @@ -16,7 +16,7 @@ TAO_EC_And_Filter::TAO_EC_And_Filter (TAO_EC_Filter* children[], } } -TAO_EC_And_Filter::~TAO_EC_And_Filter (void) +TAO_EC_And_Filter::~TAO_EC_And_Filter () { TAO_EC_Filter** end = this->children_ + this->n_; for (TAO_EC_Filter** i = this->children_; @@ -24,27 +24,27 @@ TAO_EC_And_Filter::~TAO_EC_And_Filter (void) ++i) { delete *i; - *i = 0; + *i = nullptr; } delete[] this->children_; - this->children_ = 0; + this->children_ = nullptr; this->n_ = 0; } TAO_EC_Filter::ChildrenIterator -TAO_EC_And_Filter::begin (void) const +TAO_EC_And_Filter::begin () const { return this->children_; } TAO_EC_Filter::ChildrenIterator -TAO_EC_And_Filter::end (void) const +TAO_EC_And_Filter::end () const { return this->children_ + this->n_; } int -TAO_EC_And_Filter::size (void) const +TAO_EC_And_Filter::size () const { return static_cast<CORBA::ULong> (this->n_); } @@ -62,7 +62,7 @@ TAO_EC_And_Filter::filter (const RtecEventComm::EventSet& event, } // All children accepted the event, push up... - if (this->parent () != 0) + if (this->parent () != nullptr) { this->parent ()->push (event, qos_info); } @@ -83,7 +83,7 @@ TAO_EC_And_Filter::filter_nocopy (RtecEventComm::EventSet& event, } // All children accepted the event, push up... - if (this->parent () != 0) + if (this->parent () != nullptr) { this->parent ()->push (event, qos_info); } @@ -104,7 +104,7 @@ TAO_EC_And_Filter::push_nocopy (RtecEventComm::EventSet&, } void -TAO_EC_And_Filter::clear (void) +TAO_EC_And_Filter::clear () { ChildrenIterator end = this->end (); for (ChildrenIterator i = this->begin (); @@ -116,7 +116,7 @@ TAO_EC_And_Filter::clear (void) } CORBA::ULong -TAO_EC_And_Filter::max_event_size (void) const +TAO_EC_And_Filter::max_event_size () const { CORBA::ULong n = 0; ChildrenIterator end = this->end (); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_And_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_And_Filter.h index a773fc8f2df..8bab675629d 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_And_Filter.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_And_Filter.h @@ -43,13 +43,13 @@ public: size_t n); /// Destructor - virtual ~TAO_EC_And_Filter (void); + virtual ~TAO_EC_And_Filter (); // = The TAO_EC_Filter methods, please check the documentation in // TAO_EC_Filter. - virtual ChildrenIterator begin (void) const; - virtual ChildrenIterator end (void) const; - virtual int size (void) const; + virtual ChildrenIterator begin () const; + virtual ChildrenIterator end () const; + virtual int size () const; virtual int filter (const RtecEventComm::EventSet& event, TAO_EC_QOS_Info& qos_info); virtual int filter_nocopy (RtecEventComm::EventSet& event, @@ -58,8 +58,8 @@ public: TAO_EC_QOS_Info& qos_info); virtual void push_nocopy (RtecEventComm::EventSet& event, TAO_EC_QOS_Info& qos_info); - virtual void clear (void); - virtual CORBA::ULong max_event_size (void) const; + virtual void clear (); + virtual CORBA::ULong max_event_size () const; virtual int can_match (const RtecEventComm::EventHeader& header) const; virtual int add_dependencies (const RtecEventComm::EventHeader& header, const TAO_EC_QOS_Info &qos_info); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Factory.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Factory.cpp index 8be15fbd97d..5409f0b4406 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Factory.cpp @@ -20,11 +20,11 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EC_Basic_Factory::TAO_EC_Basic_Factory (void) +TAO_EC_Basic_Factory::TAO_EC_Basic_Factory () { } -TAO_EC_Basic_Factory::~TAO_EC_Basic_Factory (void) +TAO_EC_Basic_Factory::~TAO_EC_Basic_Factory () { } @@ -116,7 +116,7 @@ TAO_EC_Timeout_Generator* TAO_EC_Basic_Factory::create_timeout_generator (TAO_EC_Event_Channel_Base *) { int argc = 0; - ACE_TCHAR **argv = 0; + ACE_TCHAR **argv = nullptr; CORBA::ORB_var orb = CORBA::ORB_init (argc, argv); ACE_Reactor *reactor = orb->orb_core ()->reactor (); @@ -133,7 +133,7 @@ TAO_EC_ObserverStrategy* TAO_EC_Basic_Factory::create_observer_strategy (TAO_EC_Event_Channel_Base *ec) { ACE_Lock* lock; - ACE_NEW_RETURN (lock, ACE_Lock_Adapter<TAO_SYNCH_MUTEX>, 0); + ACE_NEW_RETURN (lock, ACE_Lock_Adapter<TAO_SYNCH_MUTEX>, nullptr); return new TAO_EC_Basic_ObserverStrategy (ec, lock); } @@ -194,7 +194,7 @@ TAO_EC_Basic_Factory::destroy_proxy_push_supplier_collection (TAO_EC_ProxyPushSu } ACE_Lock* -TAO_EC_Basic_Factory::create_consumer_lock (void) +TAO_EC_Basic_Factory::create_consumer_lock () { return new ACE_Lock_Adapter<TAO_SYNCH_MUTEX> (); } @@ -206,7 +206,7 @@ TAO_EC_Basic_Factory::destroy_consumer_lock (ACE_Lock* x) } ACE_Lock* -TAO_EC_Basic_Factory::create_supplier_lock (void) +TAO_EC_Basic_Factory::create_supplier_lock () { return new ACE_Lock_Adapter<TAO_SYNCH_RECURSIVE_MUTEX> (); } @@ -221,7 +221,7 @@ TAO_EC_ConsumerControl* TAO_EC_Basic_Factory::create_consumer_control (TAO_EC_Event_Channel_Base* ec) { int argc = 0; - ACE_TCHAR **argv = 0; + ACE_TCHAR **argv = nullptr; CORBA::ORB_var orb = CORBA::ORB_init (argc, argv); // Hard-coded rate to 10 times a second @@ -241,7 +241,7 @@ TAO_EC_SupplierControl* TAO_EC_Basic_Factory::create_supplier_control (TAO_EC_Event_Channel_Base* ec) { int argc = 0; - ACE_TCHAR **argv = 0; + ACE_TCHAR **argv = nullptr; CORBA::ORB_var orb = CORBA::ORB_init (argc, argv); // Hard-coded rate to 10 times a second diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Factory.h b/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Factory.h index e4b47f620df..79753dbcf98 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Factory.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Factory.h @@ -40,10 +40,10 @@ class TAO_RTEvent_Serv_Export TAO_EC_Basic_Factory : public TAO_EC_Factory { public: /// Constructor - TAO_EC_Basic_Factory (void); + TAO_EC_Basic_Factory (); /// destructor... - virtual ~TAO_EC_Basic_Factory (void); + virtual ~TAO_EC_Basic_Factory (); // = The EC_Factory methods virtual TAO_EC_Dispatching* @@ -95,9 +95,9 @@ public: virtual void destroy_proxy_push_supplier_collection (TAO_EC_ProxyPushSupplier_Collection*); - virtual ACE_Lock* create_consumer_lock (void); + virtual ACE_Lock* create_consumer_lock (); virtual void destroy_consumer_lock (ACE_Lock*); - virtual ACE_Lock* create_supplier_lock (void); + virtual ACE_Lock* create_supplier_lock (); virtual void destroy_supplier_lock (ACE_Lock*); virtual TAO_EC_ConsumerControl* diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.cpp index a108503b0e5..71b45942b78 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.cpp @@ -15,7 +15,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EC_Basic_Filter_Builder::~TAO_EC_Basic_Filter_Builder (void) +TAO_EC_Basic_Filter_Builder::~TAO_EC_Basic_Filter_Builder () { } @@ -36,7 +36,7 @@ TAO_EC_Basic_Filter_Builder:: recursive_build ( { CORBA::ULong l = qos.dependencies.length (); if (pos == l) - return 0; + return nullptr; const RtecEventComm::Event& e = qos.dependencies[pos].event; if (e.header.type == ACE_ES_CONJUNCTION_DESIGNATOR) @@ -45,7 +45,7 @@ TAO_EC_Basic_Filter_Builder:: recursive_build ( CORBA::ULong n = this->count_children (qos, pos); TAO_EC_Filter** children; - ACE_NEW_RETURN (children, TAO_EC_Filter*[n], 0); + ACE_NEW_RETURN (children, TAO_EC_Filter*[n], nullptr); CORBA::ULong i = 0; for (; i != n; ++i) { @@ -59,7 +59,7 @@ TAO_EC_Basic_Filter_Builder:: recursive_build ( CORBA::ULong n = this->count_children (qos, pos); TAO_EC_Filter** children; - ACE_NEW_RETURN (children, TAO_EC_Filter*[n], 0); + ACE_NEW_RETURN (children, TAO_EC_Filter*[n], nullptr); CORBA::ULong i = 0; for (; i != n; ++i) { @@ -73,7 +73,7 @@ TAO_EC_Basic_Filter_Builder:: recursive_build ( CORBA::ULong n = this->count_children (qos, pos); TAO_EC_Filter** children; - ACE_NEW_RETURN (children, TAO_EC_Filter*[n], 0); + ACE_NEW_RETURN (children, TAO_EC_Filter*[n], nullptr); CORBA::ULong i = 0; for (; i != n; ++i) { @@ -94,7 +94,7 @@ TAO_EC_Basic_Filter_Builder:: recursive_build ( pos++; // COnsumer the designator if (pos == qos.dependencies.length ()) - return 0; + return nullptr; CORBA::ULong source_mask = qos.dependencies[pos].event.header.source; CORBA::ULong type_mask = qos.dependencies[pos].event.header.type; pos++; @@ -110,13 +110,13 @@ TAO_EC_Basic_Filter_Builder:: recursive_build ( pos++; // Consume the designator if (pos == qos.dependencies.length ()) - return 0; + return nullptr; CORBA::ULong source_mask = qos.dependencies[pos].event.header.source; CORBA::ULong type_mask = qos.dependencies[pos].event.header.type; pos++; if (pos == qos.dependencies.length ()) - return 0; + return nullptr; CORBA::ULong source_value = qos.dependencies[pos].event.header.source; CORBA::ULong type_value = qos.dependencies[pos].event.header.type; pos++; diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.h b/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.h index 6c444ed0a34..37adc1f8432 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.h @@ -45,7 +45,7 @@ public: TAO_EC_Basic_Filter_Builder (TAO_EC_Event_Channel_Base* ec); /// destructor... - virtual ~TAO_EC_Basic_Filter_Builder (void); + virtual ~TAO_EC_Basic_Filter_Builder (); // = The TAO_EC_Filter_Builder methods... TAO_EC_Filter* build (TAO_EC_ProxyPushSupplier *supplier, diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.cpp index 0db4efa2b44..1ddeaefc8d4 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.cpp @@ -12,25 +12,25 @@ TAO_EC_Bitmask_Filter::TAO_EC_Bitmask_Filter (CORBA::ULong source_mask, this->adopt_child (this->child_); } -TAO_EC_Bitmask_Filter::~TAO_EC_Bitmask_Filter (void) +TAO_EC_Bitmask_Filter::~TAO_EC_Bitmask_Filter () { delete this->child_; } TAO_EC_Filter::ChildrenIterator -TAO_EC_Bitmask_Filter::begin (void) const +TAO_EC_Bitmask_Filter::begin () const { return const_cast<TAO_EC_Filter**> (&this->child_); } TAO_EC_Filter::ChildrenIterator -TAO_EC_Bitmask_Filter::end (void) const +TAO_EC_Bitmask_Filter::end () const { return const_cast<TAO_EC_Filter**> (&this->child_) + 1; } int -TAO_EC_Bitmask_Filter::size (void) const +TAO_EC_Bitmask_Filter::size () const { return 1; } @@ -67,7 +67,7 @@ void TAO_EC_Bitmask_Filter::push (const RtecEventComm::EventSet &event, TAO_EC_QOS_Info &qos_info) { - if (this->parent () != 0) + if (this->parent () != nullptr) this->parent ()->push (event, qos_info); } @@ -75,18 +75,18 @@ void TAO_EC_Bitmask_Filter::push_nocopy (RtecEventComm::EventSet &event, TAO_EC_QOS_Info &qos_info) { - if (this->parent () != 0) + if (this->parent () != nullptr) this->parent ()->push_nocopy (event, qos_info); } void -TAO_EC_Bitmask_Filter::clear (void) +TAO_EC_Bitmask_Filter::clear () { this->child_->clear (); } CORBA::ULong -TAO_EC_Bitmask_Filter::max_event_size (void) const +TAO_EC_Bitmask_Filter::max_event_size () const { return this->child_->max_event_size (); } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.h index ad3bfc4eac4..8d20fef16be 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.h @@ -60,13 +60,13 @@ public: TAO_EC_Filter* child); /// Destructor - virtual ~TAO_EC_Bitmask_Filter (void); + virtual ~TAO_EC_Bitmask_Filter (); // = The TAO_EC_Filter methods, please check the documentation in // TAO_EC_Filter. - virtual ChildrenIterator begin (void) const; - virtual ChildrenIterator end (void) const; - virtual int size (void) const; + virtual ChildrenIterator begin () const; + virtual ChildrenIterator end () const; + virtual int size () const; virtual int filter (const RtecEventComm::EventSet& event, TAO_EC_QOS_Info& qos_info); virtual int filter_nocopy (RtecEventComm::EventSet& event, @@ -75,8 +75,8 @@ public: TAO_EC_QOS_Info& qos_info); virtual void push_nocopy (RtecEventComm::EventSet& event, TAO_EC_QOS_Info& qos_info); - virtual void clear (void); - virtual CORBA::ULong max_event_size (void) const; + virtual void clear (); + virtual CORBA::ULong max_event_size () const; virtual int can_match (const RtecEventComm::EventHeader& header) const; virtual int add_dependencies (const RtecEventComm::EventHeader& header, const TAO_EC_QOS_Info &qos_info); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.cpp index 251a43c8732..3a42c815221 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.cpp @@ -24,7 +24,7 @@ TAO_EC_Conjunction_Filter:: this->clear (); } -TAO_EC_Conjunction_Filter::~TAO_EC_Conjunction_Filter (void) +TAO_EC_Conjunction_Filter::~TAO_EC_Conjunction_Filter () { TAO_EC_Filter** end = this->children_ + this->n_; for (TAO_EC_Filter** i = this->children_; @@ -32,18 +32,18 @@ TAO_EC_Conjunction_Filter::~TAO_EC_Conjunction_Filter (void) ++i) { delete *i; - *i = 0; + *i = nullptr; } delete[] this->children_; - this->children_ = 0; + this->children_ = nullptr; this->n_ = 0; delete[] this->bitvec_; - this->bitvec_ = 0; + this->bitvec_ = nullptr; } int -TAO_EC_Conjunction_Filter::all_received (void) const +TAO_EC_Conjunction_Filter::all_received () const { Word* i = this->bitvec_; for (; @@ -57,19 +57,19 @@ TAO_EC_Conjunction_Filter::all_received (void) const } TAO_EC_Filter::ChildrenIterator -TAO_EC_Conjunction_Filter::begin (void) const +TAO_EC_Conjunction_Filter::begin () const { return this->children_; } TAO_EC_Filter::ChildrenIterator -TAO_EC_Conjunction_Filter::end (void) const +TAO_EC_Conjunction_Filter::end () const { return this->children_ + this->n_; } int -TAO_EC_Conjunction_Filter::size (void) const +TAO_EC_Conjunction_Filter::size () const { return static_cast<int> (this->n_); } @@ -123,7 +123,7 @@ TAO_EC_Conjunction_Filter::push (const RtecEventComm::EventSet& event, { this->event_[l + i] = event[i]; } - if (this->all_received () && this->parent () != 0) + if (this->all_received () && this->parent () != nullptr) this->parent ()->push_nocopy (this->event_, qos_info); } @@ -135,7 +135,7 @@ TAO_EC_Conjunction_Filter::push_nocopy (RtecEventComm::EventSet& event, } void -TAO_EC_Conjunction_Filter::clear (void) +TAO_EC_Conjunction_Filter::clear () { ChildrenIterator end = this->end (); for (ChildrenIterator i = this->begin (); @@ -159,7 +159,7 @@ TAO_EC_Conjunction_Filter::clear (void) } CORBA::ULong -TAO_EC_Conjunction_Filter::max_event_size (void) const +TAO_EC_Conjunction_Filter::max_event_size () const { CORBA::ULong n = 0; ChildrenIterator end = this->end (); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.h index c914ef7e81f..eb7247e4f05 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.h @@ -45,13 +45,13 @@ public: size_t n); /// Destructor - virtual ~TAO_EC_Conjunction_Filter (void); + virtual ~TAO_EC_Conjunction_Filter (); // = The TAO_EC_Filter methods, please check the documentation in // TAO_EC_Filter. - virtual ChildrenIterator begin (void) const; - virtual ChildrenIterator end (void) const; - virtual int size (void) const; + virtual ChildrenIterator begin () const; + virtual ChildrenIterator end () const; + virtual int size () const; virtual int filter (const RtecEventComm::EventSet& event, TAO_EC_QOS_Info& qos_info); virtual int filter_nocopy (RtecEventComm::EventSet& event, @@ -60,8 +60,8 @@ public: TAO_EC_QOS_Info& qos_info); virtual void push_nocopy (RtecEventComm::EventSet& event, TAO_EC_QOS_Info& qos_info); - virtual void clear (void); - virtual CORBA::ULong max_event_size (void) const; + virtual void clear (); + virtual CORBA::ULong max_event_size () const; virtual int can_match (const RtecEventComm::EventHeader& header) const; virtual int add_dependencies (const RtecEventComm::EventHeader& header, const TAO_EC_QOS_Info &qos_info); @@ -70,7 +70,7 @@ public: private: /// Determine if all the children have received their events. - int all_received (void) const; + int all_received () const; TAO_EC_Conjunction_Filter (const TAO_EC_Conjunction_Filter&); TAO_EC_Conjunction_Filter& operator= (const TAO_EC_Conjunction_Filter&); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.cpp index da902aa0dc0..a7d2d0e4a55 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.cpp @@ -15,18 +15,18 @@ TAO_EC_ConsumerAdmin::TAO_EC_ConsumerAdmin (TAO_EC_Event_Channel_Base *ec) this->event_channel_->consumer_poa (); } -TAO_EC_ConsumerAdmin::~TAO_EC_ConsumerAdmin (void) +TAO_EC_ConsumerAdmin::~TAO_EC_ConsumerAdmin () { } RtecEventChannelAdmin::ProxyPushSupplier_ptr -TAO_EC_ConsumerAdmin::obtain_push_supplier (void) +TAO_EC_ConsumerAdmin::obtain_push_supplier () { return this->obtain (); } PortableServer::POA_ptr -TAO_EC_ConsumerAdmin::_default_POA (void) +TAO_EC_ConsumerAdmin::_default_POA () { return PortableServer::POA::_duplicate (this->default_POA_.in ()); } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.h b/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.h index 9cce398a872..86fb2957843 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.h @@ -57,14 +57,14 @@ public: TAO_EC_ConsumerAdmin (TAO_EC_Event_Channel_Base* event_channel); /// Destructor... - virtual ~TAO_EC_ConsumerAdmin (void); + virtual ~TAO_EC_ConsumerAdmin (); // = The RtecEventChannelAdmin::ConsumerAdmin methods... virtual RtecEventChannelAdmin::ProxyPushSupplier_ptr - obtain_push_supplier (void); + obtain_push_supplier (); // = The PortableServer::ServantBase methods - virtual PortableServer::POA_ptr _default_POA (void); + virtual PortableServer::POA_ptr _default_POA (); private: /// Store the default POA. diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerControl.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerControl.cpp index 9b2e00add98..a972374918a 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerControl.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerControl.cpp @@ -2,22 +2,22 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EC_ConsumerControl::TAO_EC_ConsumerControl (void) +TAO_EC_ConsumerControl::TAO_EC_ConsumerControl () { } -TAO_EC_ConsumerControl::~TAO_EC_ConsumerControl (void) +TAO_EC_ConsumerControl::~TAO_EC_ConsumerControl () { } int -TAO_EC_ConsumerControl::activate (void) +TAO_EC_ConsumerControl::activate () { return 0; } int -TAO_EC_ConsumerControl::shutdown (void) +TAO_EC_ConsumerControl::shutdown () { return 0; } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerControl.h b/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerControl.h index 952d5b832af..651250bfb2f 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerControl.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerControl.h @@ -48,15 +48,15 @@ class TAO_RTEvent_Serv_Export TAO_EC_ConsumerControl { public: /// Constructor. - TAO_EC_ConsumerControl (void); + TAO_EC_ConsumerControl (); /// Destructor. - virtual ~TAO_EC_ConsumerControl (void); + virtual ~TAO_EC_ConsumerControl (); /// Activate any internal threads or timers used to poll the state of /// the consumers - virtual int activate (void); - virtual int shutdown (void); + virtual int activate (); + virtual int shutdown (); /** * When pushing an event to the consumer a CORBA::OBJECT_NOT_EXIST diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.cpp index baf9a4b7055..175617bb25d 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.cpp @@ -40,12 +40,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EC_Default_Factory::~TAO_EC_Default_Factory (void) +TAO_EC_Default_Factory::~TAO_EC_Default_Factory () { } int -TAO_EC_Default_Factory::init_svcs (void) +TAO_EC_Default_Factory::init_svcs () { TAO_EC_Simple_Queue_Full_Action::init_svcs(); return ACE_Service_Config::static_svcs ()-> @@ -106,16 +106,16 @@ TAO_EC_Default_Factory::init (int argc, ACE_TCHAR* argv[]) // need to parse the flags...ugh ACE_TCHAR* opt = ACE_OS::strdup (s); - ACE_TCHAR* aux = 0; + ACE_TCHAR* aux = nullptr; ACE_TCHAR* flags = ACE_OS::strtok_r (opt, ACE_TEXT (":"), &aux); TAO_EC_Thread_Flags tf(ACE_TEXT_ALWAYS_CHAR (flags)); // parse and set up this->dispatching_threads_flags_ = tf.flags (); - ACE_TCHAR* arg = ACE_OS::strtok_r (0, ACE_TEXT(":"), &aux); + ACE_TCHAR* arg = ACE_OS::strtok_r (nullptr, ACE_TEXT(":"), &aux); if (arg) { - long prio = ACE_OS::strtol (arg, 0, 0); + long prio = ACE_OS::strtol (arg, nullptr, 0); this->dispatching_threads_priority_ = prio; } @@ -244,8 +244,8 @@ TAO_EC_Default_Factory::init (int argc, ACE_TCHAR* argv[]) ACE_TCHAR* aux; for (ACE_TCHAR* arg = ACE_OS::strtok_r (opt, ACE_TEXT(":"), &aux); - arg != 0; - arg = ACE_OS::strtok_r (0, ACE_TEXT(":"), &aux)) + arg != nullptr; + arg = ACE_OS::strtok_r (nullptr, ACE_TEXT(":"), &aux)) { if (ACE_OS::strcasecmp (arg, ACE_TEXT("mt")) == 0) synch_type = 0; @@ -289,8 +289,8 @@ TAO_EC_Default_Factory::init (int argc, ACE_TCHAR* argv[]) ACE_TCHAR* aux; for (ACE_TCHAR* arg = ACE_OS::strtok_r (opt, ACE_TEXT(":"), &aux); - arg != 0; - arg = ACE_OS::strtok_r (0, ACE_TEXT(":"), &aux)) + arg != nullptr; + arg = ACE_OS::strtok_r (nullptr, ACE_TEXT(":"), &aux)) { if (ACE_OS::strcasecmp (arg, ACE_TEXT("mt")) == 0) synch_type = 0; @@ -435,7 +435,7 @@ TAO_EC_Default_Factory::init (int argc, ACE_TCHAR* argv[]) if (arg_shifter.is_parameter_next ()) { const ACE_TCHAR* opt = arg_shifter.get_current (); - unsigned long timeout = ACE_OS::strtoul(opt, 0, 10); + unsigned long timeout = ACE_OS::strtoul(opt, nullptr, 10); this->consumer_control_timeout_.usec(timeout); arg_shifter.consume_arg (); } @@ -448,7 +448,7 @@ TAO_EC_Default_Factory::init (int argc, ACE_TCHAR* argv[]) if (arg_shifter.is_parameter_next ()) { const ACE_TCHAR* opt = arg_shifter.get_current (); - unsigned long timeout = ACE_OS::strtoul(opt, 0, 10); + unsigned long timeout = ACE_OS::strtoul(opt, nullptr, 10); this->supplier_control_timeout_.usec(timeout); arg_shifter.consume_arg (); } @@ -498,7 +498,7 @@ TAO_EC_Default_Factory::init (int argc, ACE_TCHAR* argv[]) } int -TAO_EC_Default_Factory::fini (void) +TAO_EC_Default_Factory::fini () { return 0; } @@ -509,9 +509,9 @@ TAO_EC_Queue_Full_Service_Object* TAO_EC_Default_Factory::find_service_object (const ACE_TCHAR* wanted, const ACE_TCHAR* fallback) { - TAO_EC_Queue_Full_Service_Object* so = 0; + TAO_EC_Queue_Full_Service_Object* so = nullptr; so = ACE_Dynamic_Service<TAO_EC_Queue_Full_Service_Object>::instance (wanted); - if (so != 0) + if (so != nullptr) return so; ORBSVCS_ERROR ((LM_ERROR, @@ -522,7 +522,7 @@ TAO_EC_Default_Factory::find_service_object (const ACE_TCHAR* wanted, fallback)); so = ACE_Dynamic_Service<TAO_EC_Queue_Full_Service_Object>::instance (fallback); - if (so != 0) + if (so != nullptr) return so; ORBSVCS_ERROR ((LM_ERROR, @@ -531,7 +531,7 @@ TAO_EC_Default_Factory::find_service_object (const ACE_TCHAR* wanted, "aborting.\n", fallback)); ACE_OS::abort (); - return 0; // superfluous return to de-warn; we should never reach here + return nullptr; // superfluous return to de-warn; we should never reach here } TAO_EC_Dispatching* @@ -550,7 +550,7 @@ TAO_EC_Default_Factory::create_dispatching (TAO_EC_Event_Channel_Base *) this->dispatching_threads_force_active_, so); } - return 0; + return nullptr; } void @@ -568,7 +568,7 @@ TAO_EC_Default_Factory::create_filter_builder (TAO_EC_Event_Channel_Base *ec) return new TAO_EC_Basic_Filter_Builder (ec); else if (this->filtering_ == 2) return new TAO_EC_Prefix_Filter_Builder (ec); - return 0; + return nullptr; } void @@ -584,7 +584,7 @@ TAO_EC_Default_Factory::create_supplier_filter_builder (TAO_EC_Event_Channel_Bas return new TAO_EC_Trivial_Supplier_Filter_Builder (ec); else if (this->supplier_filtering_ == 1) return new TAO_EC_Per_Supplier_Filter_Builder (ec); - return 0; + return nullptr; } void @@ -647,7 +647,7 @@ TAO_EC_Default_Factory::create_timeout_generator (TAO_EC_Event_Channel_Base *) if (this->timeout_ == 0) { int argc = 0; - ACE_TCHAR **argv = 0; + ACE_TCHAR **argv = nullptr; CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, this->orbid_.c_str ()); @@ -659,7 +659,7 @@ TAO_EC_Default_Factory::create_timeout_generator (TAO_EC_Event_Channel_Base *) { } #endif - return 0; + return nullptr; } void @@ -676,18 +676,18 @@ TAO_EC_Default_Factory::create_observer_strategy (TAO_EC_Event_Channel_Base *ec) else if (this->observer_ == 1) { // @@ The lock should also be under control of the user... - ACE_Lock* lock = 0; - ACE_NEW_RETURN (lock, ACE_Lock_Adapter<TAO_SYNCH_MUTEX>, 0); + ACE_Lock* lock = nullptr; + ACE_NEW_RETURN (lock, ACE_Lock_Adapter<TAO_SYNCH_MUTEX>, nullptr); return new TAO_EC_Basic_ObserverStrategy (ec, lock); } else if (this->observer_ == 2) { // @@ The lock should also be under control of the user... - ACE_Lock* lock = 0; - ACE_NEW_RETURN (lock, ACE_Lock_Adapter<TAO_SYNCH_MUTEX>, 0); + ACE_Lock* lock = nullptr; + ACE_NEW_RETURN (lock, ACE_Lock_Adapter<TAO_SYNCH_MUTEX>, nullptr); return new TAO_EC_Reactive_ObserverStrategy (ec, lock); } - return 0; + return nullptr; } void @@ -703,7 +703,7 @@ TAO_EC_Default_Factory::create_scheduling_strategy (TAO_EC_Event_Channel_Base*) return new TAO_EC_Null_Scheduling; else if (this->scheduling_ == 1) return new TAO_EC_Group_Scheduling; - return 0; + return nullptr; } void @@ -811,7 +811,7 @@ TAO_EC_Default_Factory::create_proxy_push_consumer_collection (TAO_EC_Event_Chan TAO_EC_Consumer_RB_Tree_Iterator, ACE_NULL_SYNCH> (); - return 0; + return nullptr; } void @@ -904,7 +904,7 @@ TAO_EC_Default_Factory::create_proxy_push_supplier_collection (TAO_EC_Event_Chan TAO_EC_Supplier_RB_Tree_Iterator, ACE_NULL_SYNCH> (); - return 0; + return nullptr; } void @@ -914,7 +914,7 @@ TAO_EC_Default_Factory::destroy_proxy_push_supplier_collection (TAO_EC_ProxyPush } ACE_Lock* -TAO_EC_Default_Factory::create_consumer_lock (void) +TAO_EC_Default_Factory::create_consumer_lock () { if (this->consumer_lock_ == 0) return new ACE_Lock_Adapter<ACE_Null_Mutex>; @@ -922,7 +922,7 @@ TAO_EC_Default_Factory::create_consumer_lock (void) return new ACE_Lock_Adapter<TAO_SYNCH_MUTEX> (); else if (this->consumer_lock_ == 2) return new ACE_Lock_Adapter<TAO_SYNCH_RECURSIVE_MUTEX> (); - return 0; + return nullptr; } void @@ -932,7 +932,7 @@ TAO_EC_Default_Factory::destroy_consumer_lock (ACE_Lock* x) } ACE_Lock* -TAO_EC_Default_Factory::create_supplier_lock (void) +TAO_EC_Default_Factory::create_supplier_lock () { if (this->supplier_lock_ == 0) return new ACE_Lock_Adapter<ACE_Null_Mutex>; @@ -940,7 +940,7 @@ TAO_EC_Default_Factory::create_supplier_lock (void) return new ACE_Lock_Adapter<TAO_SYNCH_MUTEX> (); else if (this->supplier_lock_ == 2) return new ACE_Lock_Adapter<TAO_SYNCH_RECURSIVE_MUTEX> (); - return 0; + return nullptr; } void @@ -957,14 +957,14 @@ TAO_EC_Default_Factory::create_consumer_control (TAO_EC_Event_Channel_Base* ec) else if (this->consumer_control_ == 1) { int argc = 0; - ACE_TCHAR **argv = 0; + ACE_TCHAR **argv = nullptr; CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, this->orbid_.c_str ()); ACE_Time_Value rate (0, this->consumer_control_period_); return new TAO_EC_Reactive_ConsumerControl (rate, consumer_control_timeout_, ec, orb.in ()); } - return 0; + return nullptr; } void @@ -981,14 +981,14 @@ TAO_EC_Default_Factory::create_supplier_control (TAO_EC_Event_Channel_Base* ec) else if (this->supplier_control_ == 1) { int argc = 0; - ACE_TCHAR **argv = 0; + ACE_TCHAR **argv = nullptr; CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, this->orbid_.c_str ()); ACE_Time_Value rate (0, this->supplier_control_period_); return new TAO_EC_Reactive_SupplierControl (rate, supplier_control_timeout_, ec, orb.in ()); } - return 0; + return nullptr; } void diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.h b/TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.h index 681360dc2ed..55ad13f6b55 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.h @@ -46,18 +46,18 @@ class TAO_RTEvent_Serv_Export TAO_EC_Default_Factory : public TAO_EC_Factory { public: /// Constructor - TAO_EC_Default_Factory (void); + TAO_EC_Default_Factory (); /// destructor... - virtual ~TAO_EC_Default_Factory (void); + virtual ~TAO_EC_Default_Factory (); /// Helper function to register the default factory into the service /// configurator. - static int init_svcs (void); + static int init_svcs (); // = The Service_Object entry points virtual int init (int argc, ACE_TCHAR* argv[]); - virtual int fini (void); + virtual int fini (); // = The EC_Factory methods virtual TAO_EC_Dispatching* @@ -109,9 +109,9 @@ public: virtual void destroy_proxy_push_supplier_collection (TAO_EC_ProxyPushSupplier_Collection*); - virtual ACE_Lock* create_consumer_lock (void); + virtual ACE_Lock* create_consumer_lock (); virtual void destroy_consumer_lock (ACE_Lock*); - virtual ACE_Lock* create_supplier_lock (void); + virtual ACE_Lock* create_supplier_lock (); virtual void destroy_supplier_lock (ACE_Lock*); virtual TAO_EC_ConsumerControl* @@ -124,16 +124,16 @@ public: destroy_supplier_control (TAO_EC_SupplierControl*); /// Accessors to consumer collection flags - int consumer_collection (void) const; + int consumer_collection () const; /// Accessors to supplier collection flags - int supplier_collection (void) const; + int supplier_collection () const; /// Accessors to supplier filtering flags - int supplier_filtering (void) const; + int supplier_filtering () const; /// Accessor to ORBid - const ACE_CString& orb_id (void) const; + const ACE_CString& orb_id () const; protected: /// Helper for agrument parsing. Prints out an error message about diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.cpp index a4f22d857e1..c90457fb277 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.cpp @@ -14,7 +14,7 @@ TAO_EC_Default_ProxyPushConsumer:: { } -TAO_EC_Default_ProxyPushConsumer::~TAO_EC_Default_ProxyPushConsumer (void) +TAO_EC_Default_ProxyPushConsumer::~TAO_EC_Default_ProxyPushConsumer () { } @@ -60,7 +60,7 @@ TAO_EC_Default_ProxyPushConsumer::connect_push_supplier ( this->supplier_ = RtecEventComm::PushSupplier::_duplicate (push_supplier); - this->connected_ = 1; + this->connected_ = true; this->qos_ = qos; #if TAO_EC_ENABLE_DEBUG_MESSAGES @@ -104,7 +104,7 @@ TAO_EC_Default_ProxyPushConsumer::disconnect_push_consumer () connected = this->is_connected_i (); supplier = this->supplier_._retn (); - this->connected_ = 0; + this->connected_ = false; if (connected) this->cleanup_i (); @@ -133,19 +133,19 @@ TAO_EC_Default_ProxyPushConsumer::disconnect_push_consumer () } PortableServer::POA_ptr -TAO_EC_Default_ProxyPushConsumer::_default_POA (void) +TAO_EC_Default_ProxyPushConsumer::_default_POA () { return PortableServer::POA::_duplicate (this->default_POA_.in ()); } void -TAO_EC_Default_ProxyPushConsumer::_add_ref (void) +TAO_EC_Default_ProxyPushConsumer::_add_ref () { this->_incr_refcnt (); } void -TAO_EC_Default_ProxyPushConsumer::_remove_ref (void) +TAO_EC_Default_ProxyPushConsumer::_remove_ref () { this->_decr_refcnt (); } @@ -158,7 +158,7 @@ TAO_EC_Default_ProxyPushConsumer::activate ( } PortableServer::ObjectId -TAO_EC_Default_ProxyPushConsumer::object_id (void) +TAO_EC_Default_ProxyPushConsumer::object_id () { PortableServer::ObjectId_var result = this->default_POA_->servant_to_id (this); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.h b/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.h index 1c86883333b..4230f1a6370 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.h @@ -42,7 +42,7 @@ public: TAO_EC_Default_ProxyPushConsumer (TAO_EC_Event_Channel_Base* event_channel); /// Destructor... - virtual ~TAO_EC_Default_ProxyPushConsumer (void); + virtual ~TAO_EC_Default_ProxyPushConsumer (); virtual void activate ( RtecEventChannelAdmin::ProxyPushConsumer_ptr &proxy); @@ -52,17 +52,17 @@ public: RtecEventComm::PushSupplier_ptr push_supplier, const RtecEventChannelAdmin::SupplierQOS& qos); virtual void push (const RtecEventComm::EventSet& event); - virtual void disconnect_push_consumer (void); + virtual void disconnect_push_consumer (); // = The Servant methods - virtual PortableServer::POA_ptr _default_POA (void); - virtual void _add_ref (void); - virtual void _remove_ref (void); + virtual PortableServer::POA_ptr _default_POA (); + virtual void _add_ref (); + virtual void _remove_ref (); private: virtual PortableServer::ObjectId - object_id (void); + object_id (); }; TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxySupplier.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxySupplier.cpp index da8a8b21e9e..ed1538aea45 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxySupplier.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxySupplier.cpp @@ -15,7 +15,7 @@ TAO_EC_Default_ProxyPushSupplier::TAO_EC_Default_ProxyPushSupplier ( { } -TAO_EC_Default_ProxyPushSupplier::~TAO_EC_Default_ProxyPushSupplier (void) +TAO_EC_Default_ProxyPushSupplier::~TAO_EC_Default_ProxyPushSupplier () { } @@ -146,31 +146,31 @@ TAO_EC_Default_ProxyPushSupplier::disconnect_push_supplier () } void -TAO_EC_Default_ProxyPushSupplier::suspend_connection (void) +TAO_EC_Default_ProxyPushSupplier::suspend_connection () { this->suspend_connection_locked (); } void -TAO_EC_Default_ProxyPushSupplier::resume_connection (void) +TAO_EC_Default_ProxyPushSupplier::resume_connection () { this->resume_connection_locked (); } PortableServer::POA_ptr -TAO_EC_Default_ProxyPushSupplier::_default_POA (void) +TAO_EC_Default_ProxyPushSupplier::_default_POA () { return PortableServer::POA::_duplicate (this->default_POA_.in ()); } void -TAO_EC_Default_ProxyPushSupplier::_add_ref (void) +TAO_EC_Default_ProxyPushSupplier::_add_ref () { this->_incr_refcnt (); } void -TAO_EC_Default_ProxyPushSupplier::_remove_ref (void) +TAO_EC_Default_ProxyPushSupplier::_remove_ref () { this->_decr_refcnt (); } @@ -183,7 +183,7 @@ TAO_EC_Default_ProxyPushSupplier::activate ( } PortableServer::ObjectId -TAO_EC_Default_ProxyPushSupplier::object_id (void) +TAO_EC_Default_ProxyPushSupplier::object_id () { PortableServer::ObjectId_var result = this->default_POA_->servant_to_id (this); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxySupplier.h b/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxySupplier.h index 3ee6df2154e..df5589db1f6 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxySupplier.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxySupplier.h @@ -39,7 +39,7 @@ public: TAO_EC_Default_ProxyPushSupplier (TAO_EC_Event_Channel_Base* event_channel, int validate_connection); /// Destructor... - virtual ~TAO_EC_Default_ProxyPushSupplier (void); + virtual ~TAO_EC_Default_ProxyPushSupplier (); void activate ( RtecEventChannelAdmin::ProxyPushSupplier_ptr &proxy); @@ -48,19 +48,19 @@ public: virtual void connect_push_consumer ( RtecEventComm::PushConsumer_ptr push_consumer, const RtecEventChannelAdmin::ConsumerQOS &qos); - virtual void disconnect_push_supplier (void); - virtual void suspend_connection (void); - virtual void resume_connection (void); + virtual void disconnect_push_supplier (); + virtual void suspend_connection (); + virtual void resume_connection (); // = The Servant methods - virtual PortableServer::POA_ptr _default_POA (void); - virtual void _add_ref (void); - virtual void _remove_ref (void); + virtual PortableServer::POA_ptr _default_POA (); + virtual void _add_ref (); + virtual void _remove_ref (); private: virtual PortableServer::ObjectId - object_id (void); + object_id (); }; TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.cpp index ea7da34ac34..1cf257b54d6 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.cpp @@ -17,7 +17,7 @@ TAO_EC_Disjunction_Filter:: } } -TAO_EC_Disjunction_Filter::~TAO_EC_Disjunction_Filter (void) +TAO_EC_Disjunction_Filter::~TAO_EC_Disjunction_Filter () { TAO_EC_Filter** end = this->children_ + this->n_; for (TAO_EC_Filter** i = this->children_; @@ -25,27 +25,27 @@ TAO_EC_Disjunction_Filter::~TAO_EC_Disjunction_Filter (void) ++i) { delete *i; - *i = 0; + *i = nullptr; } delete[] this->children_; - this->children_ = 0; + this->children_ = nullptr; this->n_ = 0; } TAO_EC_Filter::ChildrenIterator -TAO_EC_Disjunction_Filter::begin (void) const +TAO_EC_Disjunction_Filter::begin () const { return this->children_; } TAO_EC_Filter::ChildrenIterator -TAO_EC_Disjunction_Filter::end (void) const +TAO_EC_Disjunction_Filter::end () const { return this->children_ + this->n_; } int -TAO_EC_Disjunction_Filter::size (void) const +TAO_EC_Disjunction_Filter::size () const { return static_cast<int> (this->n_); } @@ -86,7 +86,7 @@ void TAO_EC_Disjunction_Filter::push (const RtecEventComm::EventSet& event, TAO_EC_QOS_Info& qos_info) { - if (this->parent () != 0) + if (this->parent () != nullptr) this->parent ()->push (event, qos_info); } @@ -94,12 +94,12 @@ void TAO_EC_Disjunction_Filter::push_nocopy (RtecEventComm::EventSet& event, TAO_EC_QOS_Info& qos_info) { - if (this->parent () != 0) + if (this->parent () != nullptr) this->parent ()->push_nocopy (event, qos_info); } void -TAO_EC_Disjunction_Filter::clear (void) +TAO_EC_Disjunction_Filter::clear () { ChildrenIterator end = this->end (); for (ChildrenIterator i = this->begin (); @@ -111,7 +111,7 @@ TAO_EC_Disjunction_Filter::clear (void) } CORBA::ULong -TAO_EC_Disjunction_Filter::max_event_size (void) const +TAO_EC_Disjunction_Filter::max_event_size () const { CORBA::ULong n = 0; ChildrenIterator end = this->end (); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.h index b93ba31e605..efc1c8a4fab 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.h @@ -43,14 +43,14 @@ public: size_t n); /// Destructor - virtual ~TAO_EC_Disjunction_Filter (void); + virtual ~TAO_EC_Disjunction_Filter (); // = The TAO_EC_Filter methods, please check the documentation in // TAO_EC_Filter. - virtual ChildrenIterator begin (void) const; - virtual ChildrenIterator end (void) const; - virtual int size (void) const; + virtual ChildrenIterator begin () const; + virtual ChildrenIterator end () const; + virtual int size () const; virtual int filter (const RtecEventComm::EventSet& event, TAO_EC_QOS_Info& qos_info); virtual int filter_nocopy (RtecEventComm::EventSet& event, @@ -59,8 +59,8 @@ public: TAO_EC_QOS_Info& qos_info); virtual void push_nocopy (RtecEventComm::EventSet& event, TAO_EC_QOS_Info& qos_info); - virtual void clear (void); - virtual CORBA::ULong max_event_size (void) const; + virtual void clear (); + virtual CORBA::ULong max_event_size () const; virtual int can_match (const RtecEventComm::EventHeader& header) const; virtual int add_dependencies (const RtecEventComm::EventHeader& header, const TAO_EC_QOS_Info &qos_info); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching.cpp index 61e9dd657be..2361f7bf3eb 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching.cpp @@ -3,7 +3,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EC_Dispatching::~TAO_EC_Dispatching (void) +TAO_EC_Dispatching::~TAO_EC_Dispatching () { } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching.h b/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching.h index b2a1830d646..60d330fc633 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching.h @@ -45,18 +45,18 @@ class TAO_RTEvent_Serv_Export TAO_EC_Dispatching { public: /// Destructor... - virtual ~TAO_EC_Dispatching (void); + virtual ~TAO_EC_Dispatching (); /// Initialize all the data structures, activate any internal threads, /// etc. - virtual void activate (void) = 0; + virtual void activate () = 0; /** * Deactivate any internal threads and cleanup internal data * structures, it should only return once the threads have finished * their jobs. */ - virtual void shutdown (void) = 0; + virtual void shutdown () = 0; /** * The consumer represented by @a proxy should receive @a event. diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.cpp index 35d689302dd..dbcd5a28853 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.cpp @@ -13,7 +13,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EC_Simple_Queue_Full_Action::TAO_EC_Simple_Queue_Full_Action (void) +TAO_EC_Simple_Queue_Full_Action::TAO_EC_Simple_Queue_Full_Action () : queue_full_action_return_value_ (WAIT_TO_EMPTY) { } @@ -21,7 +21,7 @@ TAO_EC_Simple_Queue_Full_Action::TAO_EC_Simple_Queue_Full_Action (void) /// Helper function to register the default action into the service /// configurator. int -TAO_EC_Simple_Queue_Full_Action::init_svcs (void) +TAO_EC_Simple_Queue_Full_Action::init_svcs () { return ACE_Service_Config::static_svcs ()-> insert (&ace_svc_desc_TAO_EC_Simple_Queue_Full_Action); @@ -50,13 +50,13 @@ TAO_EC_Simple_Queue_Full_Action::init (int argc, ACE_TCHAR* argv[]) ; // probably ought to print an error message here #endif - } while (0); + } while (false); return 0; } int -TAO_EC_Simple_Queue_Full_Action::fini (void) +TAO_EC_Simple_Queue_Full_Action::fini () { return 0; } @@ -83,7 +83,7 @@ ACE_FACTORY_DEFINE (TAO_RTEvent_Serv, TAO_EC_Simple_Queue_Full_Action) TAO_BEGIN_VERSIONED_NAMESPACE_DECL bool -TAO_EC_Queue::is_full_i (void) +TAO_EC_Queue::is_full_i () { return static_cast<size_t> (this->cur_count_) > this->high_water_mark_; } @@ -91,7 +91,7 @@ TAO_EC_Queue::is_full_i (void) // **************************************************************** int -TAO_EC_Dispatching_Task::svc (void) +TAO_EC_Dispatching_Task::svc () { bool done = false; @@ -99,7 +99,7 @@ TAO_EC_Dispatching_Task::svc (void) { try { - ACE_Message_Block *mb = 0; + ACE_Message_Block *mb = nullptr; if (this->getq (mb) == -1) { @@ -117,7 +117,7 @@ TAO_EC_Dispatching_Task::svc (void) TAO_EC_Dispatch_Command *command = dynamic_cast<TAO_EC_Dispatch_Command*> (mb); - if (command == 0) + if (command == nullptr) { ACE_Message_Block::release (mb); continue; @@ -148,7 +148,7 @@ TAO_EC_Dispatching_Task::push (TAO_EC_ProxyPushSupplier *proxy, { if (this->msg_queue()->is_full ()) { - if (0 != this->queue_full_service_object_) + if (nullptr != this->queue_full_service_object_) { int action = this->queue_full_service_object_->queue_full_action (this, proxy, @@ -161,12 +161,12 @@ TAO_EC_Dispatching_Task::push (TAO_EC_ProxyPushSupplier *proxy, // else go ahead and queue it } - if (this->allocator_ == 0) + if (this->allocator_ == nullptr) this->allocator_ = ACE_Allocator::instance (); void* buf = this->allocator_->malloc (sizeof (TAO_EC_Push_Command)); - if (buf == 0) + if (buf == nullptr) throw CORBA::NO_MEMORY (TAO::VMCID, CORBA::COMPLETED_NO); ACE_Message_Block *mb = @@ -180,27 +180,27 @@ TAO_EC_Dispatching_Task::push (TAO_EC_ProxyPushSupplier *proxy, // **************************************************************** -TAO_EC_Dispatch_Command::~TAO_EC_Dispatch_Command (void) +TAO_EC_Dispatch_Command::~TAO_EC_Dispatch_Command () { } // **************************************************************** int -TAO_EC_Shutdown_Task_Command::execute (void) +TAO_EC_Shutdown_Task_Command::execute () { return -1; } // **************************************************************** -TAO_EC_Push_Command::~TAO_EC_Push_Command (void) +TAO_EC_Push_Command::~TAO_EC_Push_Command () { this->proxy_->_decr_refcnt (); } int -TAO_EC_Push_Command::execute (void) +TAO_EC_Push_Command::execute () { this->proxy_->push_to_consumer (this->consumer_.in (), this->event_); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.h b/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.h index edf7d0add56..fac5d0fd162 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.h @@ -59,11 +59,11 @@ public: /// Helper function to register the default action into the service /// configurator. - static int init_svcs (void); + static int init_svcs (); // = The Service_Object entry points virtual int init (int argc, ACE_TCHAR* argv[]); - virtual int fini (void); + virtual int fini (); virtual int queue_full_action (TAO_EC_Dispatching_Task *task, TAO_EC_ProxyPushSupplier *proxy, @@ -84,7 +84,7 @@ public: protected: // = Override the default definition in the Message_Queue, to count // the number of messages (and not their size). - virtual bool is_full_i (void); + virtual bool is_full_i (); }; /** @@ -106,7 +106,7 @@ public: #endif /// Process the events in the queue. - virtual int svc (void); + virtual int svc (); virtual void push (TAO_EC_ProxyPushSupplier *proxy, RtecEventComm::PushConsumer_ptr consumer, @@ -138,10 +138,10 @@ public: ACE_Allocator *mb_allocator = 0); /// Destructor - virtual ~TAO_EC_Dispatch_Command (void); + virtual ~TAO_EC_Dispatch_Command (); /// Command callback - virtual int execute (void) = 0; + virtual int execute () = 0; }; // **************************************************************** @@ -153,7 +153,7 @@ public: TAO_EC_Shutdown_Task_Command (ACE_Allocator *mb_allocator = 0); /// Command callback - virtual int execute (void); + virtual int execute (); }; // **************************************************************** @@ -169,10 +169,10 @@ public: ACE_Allocator *mb_allocator); /// Destructor - virtual ~TAO_EC_Push_Command (void); + virtual ~TAO_EC_Push_Command (); /// Command callback - virtual int execute (void); + virtual int execute (); private: /// The proxy diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel.cpp index 799f234f402..7eeeaf02ce8 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel.cpp @@ -10,15 +10,15 @@ TAO_EC_Event_Channel (const TAO_EC_Event_Channel_Attributes& attr, int own_factory) : TAO_EC_Event_Channel_Base (attr, factory, own_factory) { - if (this->factory () == 0) + if (this->factory () == nullptr) { this->factory ( ACE_Dynamic_Service<TAO_EC_Factory>::instance ("EC_Factory"), 0); - if (this->factory () == 0) + if (this->factory () == nullptr) { - TAO_EC_Factory *f = 0; + TAO_EC_Factory *f = nullptr; ACE_NEW (f, TAO_EC_Default_Factory); this->factory (f, 1); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.cpp index d1ccf21bc5f..553ebe51701 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.cpp @@ -22,63 +22,63 @@ TAO_EC_Event_Channel_Base (const TAO_EC_Event_Channel_Attributes& attr, consumer_poa_ (PortableServer::POA::_duplicate (attr.consumer_poa)), factory_ (factory), own_factory_ (own_factory), - dispatching_ (0), - filter_builder_ (0), - supplier_filter_builder_ (0), - consumer_admin_ (0), - supplier_admin_ (0), - timeout_generator_ (0), - observer_strategy_ (0), - scheduling_strategy_(0), + dispatching_ (nullptr), + filter_builder_ (nullptr), + supplier_filter_builder_ (nullptr), + consumer_admin_ (nullptr), + supplier_admin_ (nullptr), + timeout_generator_ (nullptr), + observer_strategy_ (nullptr), + scheduling_strategy_(nullptr), consumer_reconnect_ (attr.consumer_reconnect), supplier_reconnect_ (attr.supplier_reconnect), disconnect_callbacks_ (attr.disconnect_callbacks), - consumer_control_ (0), - supplier_control_ (0), + consumer_control_ (nullptr), + supplier_control_ (nullptr), status_ (EC_S_IDLE) { this->scheduler_ = CORBA::Object::_duplicate (attr.scheduler); } -TAO_EC_Event_Channel_Base::~TAO_EC_Event_Channel_Base (void) +TAO_EC_Event_Channel_Base::~TAO_EC_Event_Channel_Base () { // Destroy Strategies in the reverse order of creation, they // reference to each other during destruction and thus need to be // cleaned up properly. this->factory_->destroy_supplier_control (this->supplier_control_); - this->supplier_control_ = 0; + this->supplier_control_ = nullptr; this->factory_->destroy_consumer_control (this->consumer_control_); - this->consumer_control_ = 0; + this->consumer_control_ = nullptr; this->factory_->destroy_scheduling_strategy (this->scheduling_strategy_); - this->scheduling_strategy_ = 0; + this->scheduling_strategy_ = nullptr; this->factory_->destroy_observer_strategy (this->observer_strategy_); - this->observer_strategy_ = 0; + this->observer_strategy_ = nullptr; this->factory_->destroy_timeout_generator (this->timeout_generator_); - this->timeout_generator_ = 0; + this->timeout_generator_ = nullptr; this->factory_->destroy_supplier_admin (this->supplier_admin_); - this->supplier_admin_ = 0; + this->supplier_admin_ = nullptr; this->factory_->destroy_consumer_admin (this->consumer_admin_); - this->consumer_admin_ = 0; + this->consumer_admin_ = nullptr; this->factory_->destroy_supplier_filter_builder (this->supplier_filter_builder_); - this->supplier_filter_builder_ = 0; + this->supplier_filter_builder_ = nullptr; this->factory_->destroy_filter_builder (this->filter_builder_); - this->filter_builder_ = 0; + this->filter_builder_ = nullptr; this->factory_->destroy_dispatching (this->dispatching_); - this->dispatching_ = 0; + this->dispatching_ = nullptr; - this->factory (0, this->own_factory_); + this->factory (nullptr, this->own_factory_); } void -TAO_EC_Event_Channel_Base::create_strategies (void) +TAO_EC_Event_Channel_Base::create_strategies () { this->dispatching_ = this->factory_->create_dispatching (this); @@ -105,7 +105,7 @@ TAO_EC_Event_Channel_Base::create_strategies (void) } void -TAO_EC_Event_Channel_Base::activate (void) +TAO_EC_Event_Channel_Base::activate () { { // First check if the EC is idle, if it is not then we need to @@ -129,7 +129,7 @@ TAO_EC_Event_Channel_Base::activate (void) } void -TAO_EC_Event_Channel_Base::shutdown (void) +TAO_EC_Event_Channel_Base::shutdown () { { // First check if the EC is already active, if it is not then we @@ -161,7 +161,7 @@ TAO_EC_Event_Channel_Base::shutdown (void) } void -TAO_EC_Event_Channel_Base::deactivate_supplier_admin (void) +TAO_EC_Event_Channel_Base::deactivate_supplier_admin () { try { @@ -178,7 +178,7 @@ TAO_EC_Event_Channel_Base::deactivate_supplier_admin (void) } void -TAO_EC_Event_Channel_Base::deactivate_consumer_admin (void) +TAO_EC_Event_Channel_Base::deactivate_consumer_admin () { try { @@ -243,19 +243,19 @@ TAO_EC_Event_Channel_Base::disconnected (TAO_EC_ProxyPushSupplier* supplier) } RtecEventChannelAdmin::ConsumerAdmin_ptr -TAO_EC_Event_Channel_Base::for_consumers (void) +TAO_EC_Event_Channel_Base::for_consumers () { return this->consumer_admin_->_this (); } RtecEventChannelAdmin::SupplierAdmin_ptr -TAO_EC_Event_Channel_Base::for_suppliers (void) +TAO_EC_Event_Channel_Base::for_suppliers () { return this->supplier_admin_->_this (); } void -TAO_EC_Event_Channel_Base::destroy (void) +TAO_EC_Event_Channel_Base::destroy () { this->shutdown (); } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.h b/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.h index 2ca67d3e4a3..aeaf455232d 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.h @@ -110,15 +110,15 @@ class TAO_RTEvent_Serv_Export TAO_EC_Event_Channel_Base { public: /// destructor - virtual ~TAO_EC_Event_Channel_Base (void); + virtual ~TAO_EC_Event_Channel_Base (); /// Start the internal threads (if any), etc. /// After this call the EC can be used. - virtual void activate (void); + virtual void activate (); /// Shutdown any internal threads, cleanup all the internal /// structures, flush all the messages, etc. - virtual void shutdown (void); + virtual void shutdown (); virtual void for_each_consumer ( TAO_ESF_Worker<TAO_EC_ProxyPushSupplier> *worker); @@ -127,31 +127,31 @@ public: TAO_ESF_Worker<TAO_EC_ProxyPushConsumer> *worker); /// Access the dispatching module.... - TAO_EC_Dispatching* dispatching (void) const; + TAO_EC_Dispatching* dispatching () const; /// Access the filter builder.... - TAO_EC_Filter_Builder* filter_builder (void) const; + TAO_EC_Filter_Builder* filter_builder () const; /// Access the filter builder.... - TAO_EC_Supplier_Filter_Builder* supplier_filter_builder (void) const; + TAO_EC_Supplier_Filter_Builder* supplier_filter_builder () const; /// Access the consumer admin implementation, useful for controlling /// the activation... - TAO_EC_ConsumerAdmin* consumer_admin (void) const; + TAO_EC_ConsumerAdmin* consumer_admin () const; /// Access the supplier admin implementation, useful for controlling /// the activation... - TAO_EC_SupplierAdmin* supplier_admin (void) const; + TAO_EC_SupplierAdmin* supplier_admin () const; /// Access the timer module... - TAO_EC_Timeout_Generator* timeout_generator (void) const; + TAO_EC_Timeout_Generator* timeout_generator () const; /// Access the scheduling strategy - TAO_EC_Scheduling_Strategy* scheduling_strategy (void) const; + TAO_EC_Scheduling_Strategy* scheduling_strategy () const; /// Access the client control strategies. - TAO_EC_ConsumerControl *consumer_control (void) const; - TAO_EC_SupplierControl *supplier_control (void) const; + TAO_EC_ConsumerControl *consumer_control () const; + TAO_EC_SupplierControl *supplier_control () const; // = The factory methods, they delegate on the EC_Factory. /// Create and destroy a ProxyPushSupplier @@ -175,14 +175,14 @@ public: void destroy_proxy_collection (TAO_EC_ProxyPushConsumer_Collection*); /// Access the supplier and consumer POAs from the factory. - PortableServer::POA_ptr supplier_poa (void); - PortableServer::POA_ptr consumer_poa (void); + PortableServer::POA_ptr supplier_poa (); + PortableServer::POA_ptr consumer_poa (); /// Locking strategies for the ProxyPushConsumer and /// ProxyPushSupplier objects - ACE_Lock* create_consumer_lock (void); + ACE_Lock* create_consumer_lock (); void destroy_consumer_lock (ACE_Lock*); - ACE_Lock* create_supplier_lock (void); + ACE_Lock* create_supplier_lock (); void destroy_supplier_lock (ACE_Lock*); /// Used to inform the EC that a Consumer has connected or @@ -201,31 +201,31 @@ public: // at construction time. /// Can the consumers reconnect to the EC? - int consumer_reconnect (void) const; + int consumer_reconnect () const; /// Can the suppliers reconnect to the EC? - int supplier_reconnect (void) const; + int supplier_reconnect () const; /// Should we send callback disconnect messages when a proxy is /// disconnected by the client - int disconnect_callbacks (void) const; + int disconnect_callbacks () const; /// Obtain the scheduler, the user must release - CORBA::Object_ptr scheduler (void); + CORBA::Object_ptr scheduler (); // = The RtecEventChannelAdmin::EventChannel methods... /// The default implementation is: /// this->consumer_admin ()->_this (); virtual RtecEventChannelAdmin::ConsumerAdmin_ptr - for_consumers (void); + for_consumers (); /// The default implementation is: /// this->supplier_admin ()->_this (); virtual RtecEventChannelAdmin::SupplierAdmin_ptr - for_suppliers (void); + for_suppliers (); /// Commit suicide. - virtual void destroy (void); + virtual void destroy (); virtual RtecEventChannelAdmin::Observer_Handle append_observer (RtecEventChannelAdmin::Observer_ptr); @@ -233,7 +233,7 @@ public: remove_observer (RtecEventChannelAdmin::Observer_Handle); /// Return 1 if the event channel is already destroyed. - int destroyed (void); + int destroyed (); protected: /** @@ -249,7 +249,7 @@ protected: /** * Get the factory. */ - TAO_EC_Factory * factory (void) const; + TAO_EC_Factory * factory () const; /** * Set the factory, if @a own_factory is not 0 it assumes ownership of the @@ -261,13 +261,13 @@ protected: /** * Create all strategies */ - void create_strategies (void); + void create_strategies (); /// Helpers. Deactivate admins from their POAs, ignoring any CORBA /// exceptions. //@{ - void deactivate_supplier_admin (void); - void deactivate_consumer_admin (void); + void deactivate_supplier_admin (); + void deactivate_consumer_admin (); //@} /// The POAs used to activate "supplier-side" and "consumer-side" diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.inl b/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.inl index fba3bc42726..46f80d7a4b5 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.inl +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.inl @@ -15,7 +15,7 @@ TAO_EC_Event_Channel_Attributes (PortableServer::POA_ptr s_poa, } ACE_INLINE TAO_EC_Factory* -TAO_EC_Event_Channel_Base::factory (void) const +TAO_EC_Event_Channel_Base::factory () const { return this->factory_; } @@ -32,55 +32,55 @@ TAO_EC_Event_Channel_Base::factory (TAO_EC_Factory* factory, } ACE_INLINE TAO_EC_Dispatching* -TAO_EC_Event_Channel_Base::dispatching (void) const +TAO_EC_Event_Channel_Base::dispatching () const { return this->dispatching_; } ACE_INLINE TAO_EC_Filter_Builder* -TAO_EC_Event_Channel_Base::filter_builder (void) const +TAO_EC_Event_Channel_Base::filter_builder () const { return this->filter_builder_; } ACE_INLINE TAO_EC_Supplier_Filter_Builder* -TAO_EC_Event_Channel_Base::supplier_filter_builder (void) const +TAO_EC_Event_Channel_Base::supplier_filter_builder () const { return this->supplier_filter_builder_; } ACE_INLINE TAO_EC_ConsumerAdmin* -TAO_EC_Event_Channel_Base::consumer_admin (void) const +TAO_EC_Event_Channel_Base::consumer_admin () const { return this->consumer_admin_; } ACE_INLINE TAO_EC_SupplierAdmin* -TAO_EC_Event_Channel_Base::supplier_admin (void) const +TAO_EC_Event_Channel_Base::supplier_admin () const { return this->supplier_admin_; } ACE_INLINE TAO_EC_Timeout_Generator* -TAO_EC_Event_Channel_Base::timeout_generator (void) const +TAO_EC_Event_Channel_Base::timeout_generator () const { return this->timeout_generator_; } ACE_INLINE TAO_EC_Scheduling_Strategy* -TAO_EC_Event_Channel_Base::scheduling_strategy (void) const +TAO_EC_Event_Channel_Base::scheduling_strategy () const { return this->scheduling_strategy_; } ACE_INLINE TAO_EC_ConsumerControl* -TAO_EC_Event_Channel_Base::consumer_control (void) const +TAO_EC_Event_Channel_Base::consumer_control () const { return this->consumer_control_; } ACE_INLINE TAO_EC_SupplierControl* -TAO_EC_Event_Channel_Base::supplier_control (void) const +TAO_EC_Event_Channel_Base::supplier_control () const { return this->supplier_control_; } @@ -134,19 +134,19 @@ TAO_EC_Event_Channel_Base::destroy_proxy_collection (TAO_EC_ProxyPushSupplier_Co } ACE_INLINE PortableServer::POA_ptr -TAO_EC_Event_Channel_Base::supplier_poa (void) +TAO_EC_Event_Channel_Base::supplier_poa () { return PortableServer::POA::_duplicate (this->supplier_poa_.in ()); } ACE_INLINE PortableServer::POA_ptr -TAO_EC_Event_Channel_Base::consumer_poa (void) +TAO_EC_Event_Channel_Base::consumer_poa () { return PortableServer::POA::_duplicate (this->consumer_poa_.in ()); } ACE_INLINE ACE_Lock* -TAO_EC_Event_Channel_Base::create_consumer_lock (void) +TAO_EC_Event_Channel_Base::create_consumer_lock () { return this->factory_->create_consumer_lock (); } @@ -158,7 +158,7 @@ TAO_EC_Event_Channel_Base::destroy_consumer_lock (ACE_Lock* x) } ACE_INLINE ACE_Lock* -TAO_EC_Event_Channel_Base::create_supplier_lock (void) +TAO_EC_Event_Channel_Base::create_supplier_lock () { return this->factory_->create_supplier_lock (); } @@ -170,31 +170,31 @@ TAO_EC_Event_Channel_Base::destroy_supplier_lock (ACE_Lock* x) } ACE_INLINE int -TAO_EC_Event_Channel_Base::consumer_reconnect (void) const +TAO_EC_Event_Channel_Base::consumer_reconnect () const { return this->consumer_reconnect_; } ACE_INLINE int -TAO_EC_Event_Channel_Base::supplier_reconnect (void) const +TAO_EC_Event_Channel_Base::supplier_reconnect () const { return this->supplier_reconnect_; } ACE_INLINE int -TAO_EC_Event_Channel_Base::disconnect_callbacks (void) const +TAO_EC_Event_Channel_Base::disconnect_callbacks () const { return this->disconnect_callbacks_; } ACE_INLINE CORBA::Object_ptr -TAO_EC_Event_Channel_Base::scheduler (void) +TAO_EC_Event_Channel_Base::scheduler () { return CORBA::Object::_duplicate (this->scheduler_.in ()); } ACE_INLINE int -TAO_EC_Event_Channel_Base::destroyed (void) +TAO_EC_Event_Channel_Base::destroyed () { ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->mutex_, 0); return (this->status_ == EC_S_DESTROYED); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Factory.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Factory.cpp index d4e94f46eb7..260d8784d6f 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Factory.cpp @@ -5,12 +5,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_RTEvent_Serv_Export unsigned short TAO_EC_debug_level; -TAO_EC_Factory::TAO_EC_Factory (void) +TAO_EC_Factory::TAO_EC_Factory () { TAO_EC_debug_level = 0; } -TAO_EC_Factory::~TAO_EC_Factory (void) +TAO_EC_Factory::~TAO_EC_Factory () { } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Factory.h b/TAO/orbsvcs/orbsvcs/Event/EC_Factory.h index fcc583bfde4..8b7a66455da 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Factory.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Factory.h @@ -67,8 +67,8 @@ class TAO_RTEvent_Serv_Export TAO_EC_Factory : public ACE_Service_Object { public: /// destructor... - TAO_EC_Factory (void); - virtual ~TAO_EC_Factory (void); + TAO_EC_Factory (); + virtual ~TAO_EC_Factory (); /// Create and destroy the dispatching module. virtual TAO_EC_Dispatching* @@ -144,9 +144,9 @@ public: /// Create and destroy the locking strategies for both /// ProxyPushConsumers and ProxyPushSuppliers - virtual ACE_Lock* create_consumer_lock (void) = 0; + virtual ACE_Lock* create_consumer_lock () = 0; virtual void destroy_consumer_lock (ACE_Lock*) = 0; - virtual ACE_Lock* create_supplier_lock (void) = 0; + virtual ACE_Lock* create_supplier_lock () = 0; virtual void destroy_supplier_lock (ACE_Lock*) = 0; /// The ConsumerControl and SupplierControl strategies are used to diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Filter.cpp index f5534a16d02..5a845583713 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Filter.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Filter.cpp @@ -9,7 +9,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EC_Filter::~TAO_EC_Filter (void) +TAO_EC_Filter::~TAO_EC_Filter () { } @@ -20,19 +20,19 @@ TAO_EC_Filter::adopt_child (TAO_EC_Filter* child) } TAO_EC_Filter::ChildrenIterator -TAO_EC_Filter::begin (void) const +TAO_EC_Filter::begin () const { - return 0; + return nullptr; } TAO_EC_Filter::ChildrenIterator -TAO_EC_Filter::end (void) const +TAO_EC_Filter::end () const { - return 0; + return nullptr; } int -TAO_EC_Filter::size (void) const +TAO_EC_Filter::size () const { return 0; } @@ -70,7 +70,7 @@ void TAO_EC_Null_Filter::push (const RtecEventComm::EventSet& event, TAO_EC_QOS_Info& qos_info) { - if (this->parent () != 0) + if (this->parent () != nullptr) this->parent ()->push (event, qos_info); } @@ -78,18 +78,18 @@ void TAO_EC_Null_Filter::push_nocopy (RtecEventComm::EventSet& event, TAO_EC_QOS_Info& qos_info) { - if (this->parent () != 0) + if (this->parent () != nullptr) this->parent ()->push_nocopy (event, qos_info); } void -TAO_EC_Null_Filter::clear (void) +TAO_EC_Null_Filter::clear () { // do nothing } CORBA::ULong -TAO_EC_Null_Filter::max_event_size (void) const +TAO_EC_Null_Filter::max_event_size () const { // @@ Is there a better way to express this? return 0; diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_Filter.h index f64a49e72c0..88a7533d7a4 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Filter.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Filter.h @@ -50,13 +50,13 @@ class TAO_RTEvent_Serv_Export TAO_EC_Filter { public: /// constructor... - TAO_EC_Filter (void); + TAO_EC_Filter (); /// destructor... - virtual ~TAO_EC_Filter (void); + virtual ~TAO_EC_Filter (); /// Obtain the parent of this filter. - TAO_EC_Filter* parent (void) const; + TAO_EC_Filter* parent () const; /// Become the parent of @a child. void adopt_child (TAO_EC_Filter* child); @@ -76,9 +76,9 @@ public: * interface as if they all had children, but for simple filters the * iterators return an empty range. */ - virtual ChildrenIterator begin (void) const; - virtual ChildrenIterator end (void) const; - virtual int size (void) const; + virtual ChildrenIterator begin () const; + virtual ChildrenIterator end () const; + virtual int size () const; /** * Filter this event, returns 1 if the event is accepted, 0 @@ -110,10 +110,10 @@ public: /// Clear any saved state, must reset and assume no events have been /// received. - virtual void clear (void) = 0; + virtual void clear () = 0; /// Returns the maximum size of the events pushed by this filter. - virtual CORBA::ULong max_event_size (void) const = 0; + virtual CORBA::ULong max_event_size () const = 0; /** * Returns 0 if an event with that header could never be accepted. @@ -171,7 +171,7 @@ class TAO_RTEvent_Serv_Export TAO_EC_Null_Filter : public TAO_EC_Filter { public: /// Constructor. - TAO_EC_Null_Filter (void); + TAO_EC_Null_Filter (); // = The TAO_EC_Filter methods, please check the documentation in // TAO_EC_Filter. @@ -183,8 +183,8 @@ public: TAO_EC_QOS_Info& qos_info); virtual void push_nocopy (RtecEventComm::EventSet& event, TAO_EC_QOS_Info& qos_info); - virtual void clear (void); - virtual CORBA::ULong max_event_size (void) const; + virtual void clear (); + virtual CORBA::ULong max_event_size () const; virtual int can_match (const RtecEventComm::EventHeader& header) const; virtual int add_dependencies (const RtecEventComm::EventHeader& header, const TAO_EC_QOS_Info &qos_info); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Filter_Builder.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Filter_Builder.cpp index 3c1c2c12db8..3a1ddc40b1f 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Filter_Builder.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Filter_Builder.cpp @@ -7,13 +7,13 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EC_Filter_Builder::~TAO_EC_Filter_Builder (void) +TAO_EC_Filter_Builder::~TAO_EC_Filter_Builder () { } // **************************************************************** -TAO_EC_Null_Filter_Builder::~TAO_EC_Null_Filter_Builder (void) +TAO_EC_Null_Filter_Builder::~TAO_EC_Null_Filter_Builder () { } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Filter_Builder.h b/TAO/orbsvcs/orbsvcs/Event/EC_Filter_Builder.h index e3ccc9f3e73..931b66be256 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Filter_Builder.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Filter_Builder.h @@ -42,7 +42,7 @@ class TAO_RTEvent_Serv_Export TAO_EC_Filter_Builder { public: /// destructor... - virtual ~TAO_EC_Filter_Builder (void); + virtual ~TAO_EC_Filter_Builder (); /// Create the filter, the caller must assume ownership of the filter /// returned. @@ -65,10 +65,10 @@ class TAO_RTEvent_Serv_Export TAO_EC_Null_Filter_Builder : public TAO_EC_Filter_ { public: /// constructor. - TAO_EC_Null_Filter_Builder (void); + TAO_EC_Null_Filter_Builder (); /// destructor... - virtual ~TAO_EC_Null_Filter_Builder (void); + virtual ~TAO_EC_Null_Filter_Builder (); // = The TAO_EC_Filter_Builder methods... TAO_EC_Filter* build (TAO_EC_ProxyPushSupplier *supplier, diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway.cpp index 6f9d31798ae..145e4c8f594 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway.cpp @@ -2,12 +2,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EC_Gateway::TAO_EC_Gateway (void) +TAO_EC_Gateway::TAO_EC_Gateway () : handle_ (0) { } -TAO_EC_Gateway::~TAO_EC_Gateway (void) +TAO_EC_Gateway::~TAO_EC_Gateway () { } @@ -18,7 +18,7 @@ TAO_EC_Gateway::observer_handle (RtecEventChannelAdmin::Observer_Handle h) } RtecEventChannelAdmin::Observer_Handle -TAO_EC_Gateway::observer_handle (void) const +TAO_EC_Gateway::observer_handle () const { return this->handle_; } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway.h b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway.h index 453db162cb6..6705b4026ca 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway.h @@ -44,18 +44,18 @@ class TAO_RTEvent_Serv_Export TAO_EC_Gateway { public: /// Default constructor. - TAO_EC_Gateway (void); + TAO_EC_Gateway (); /// Destructor - virtual ~TAO_EC_Gateway (void); + virtual ~TAO_EC_Gateway (); /// The gateway must disconnect from all the relevant event channels, /// or any other communication media (such as multicast groups). - virtual void close (void) = 0; + virtual void close () = 0; /// Obtain and modify the observer handle. void observer_handle (RtecEventChannelAdmin::Observer_Handle h); - RtecEventChannelAdmin::Observer_Handle observer_handle (void) const; + RtecEventChannelAdmin::Observer_Handle observer_handle () const; private: RtecEventChannelAdmin::Observer_Handle handle_; diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.cpp index d8287744bc6..18e8643be65 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.cpp @@ -11,7 +11,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EC_Gateway_IIOP::TAO_EC_Gateway_IIOP (void) +TAO_EC_Gateway_IIOP::TAO_EC_Gateway_IIOP () : busy_count_ (0), update_posted_ (0), cleanup_posted_ (0), @@ -22,36 +22,36 @@ TAO_EC_Gateway_IIOP::TAO_EC_Gateway_IIOP (void) consumer_is_active_ (false), supplier_ (this), supplier_is_active_ (false), - ec_control_ (0), - factory_ (0), + ec_control_ (nullptr), + factory_ (nullptr), use_ttl_ (1), use_consumer_proxy_map_ (1) { - if (this->factory_ == 0) + if (this->factory_ == nullptr) { this->factory_ = ACE_Dynamic_Service<TAO_EC_Gateway_IIOP_Factory>::instance ("EC_Gateway_IIOP_Factory"); - if (this->factory_ == 0) + if (this->factory_ == nullptr) { - TAO_EC_Gateway_IIOP_Factory *f = 0; + TAO_EC_Gateway_IIOP_Factory *f = nullptr; ACE_NEW (f, TAO_EC_Gateway_IIOP_Factory); this->factory_ = f; } } - if (this->factory_ != 0) + if (this->factory_ != nullptr) { this->use_ttl_ = this->factory_->use_ttl(); this->use_consumer_proxy_map_ = this->factory_->use_consumer_proxy_map(); } } -TAO_EC_Gateway_IIOP::~TAO_EC_Gateway_IIOP (void) +TAO_EC_Gateway_IIOP::~TAO_EC_Gateway_IIOP () { delete ec_control_; - ec_control_ = 0; + ec_control_ = nullptr; } int @@ -74,7 +74,7 @@ TAO_EC_Gateway_IIOP::init_i (RtecEventChannelAdmin::EventChannel_ptr supplier_ec this->consumer_ec_ = RtecEventChannelAdmin::EventChannel::_duplicate (consumer_ec); - if (ec_control_ == 0) + if (ec_control_ == nullptr) { ec_control_ = factory_->create_consumerec_control(this); ec_control_->activate(); @@ -90,7 +90,7 @@ TAO_EC_Gateway_IIOP::init_i (RtecEventChannelAdmin::EventChannel_ptr supplier_ec } void -TAO_EC_Gateway_IIOP::close (void) +TAO_EC_Gateway_IIOP::close () { ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); @@ -98,7 +98,7 @@ TAO_EC_Gateway_IIOP::close (void) } void -TAO_EC_Gateway_IIOP::cleanup_consumer_proxies (void) +TAO_EC_Gateway_IIOP::cleanup_consumer_proxies () { ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); @@ -113,7 +113,7 @@ TAO_EC_Gateway_IIOP::cleanup_consumer_proxies (void) } void -TAO_EC_Gateway_IIOP::close_i (void) +TAO_EC_Gateway_IIOP::close_i () { // ORBSVCS_DEBUG ((LM_DEBUG, "ECG (%t) Closing gateway\n")); this->disconnect_consumer_proxies_i (); @@ -122,7 +122,7 @@ TAO_EC_Gateway_IIOP::close_i (void) } void -TAO_EC_Gateway_IIOP::disconnect_consumer_proxies_i (void) +TAO_EC_Gateway_IIOP::disconnect_consumer_proxies_i () { if (this->consumer_proxy_map_.current_size () > 0) { @@ -157,7 +157,7 @@ TAO_EC_Gateway_IIOP::disconnect_consumer_proxies_i (void) } void -TAO_EC_Gateway_IIOP::disconnect_supplier_proxy_i (void) +TAO_EC_Gateway_IIOP::disconnect_supplier_proxy_i () { if (!CORBA::is_nil (this->supplier_proxy_.in ())) { @@ -169,7 +169,7 @@ TAO_EC_Gateway_IIOP::disconnect_supplier_proxy_i (void) } void -TAO_EC_Gateway_IIOP::reconnect_consumer_ec(void) +TAO_EC_Gateway_IIOP::reconnect_consumer_ec() { ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); @@ -203,7 +203,7 @@ TAO_EC_Gateway_IIOP::update_consumer ( } void -TAO_EC_Gateway_IIOP::cleanup_consumer_proxies_i (void) +TAO_EC_Gateway_IIOP::cleanup_consumer_proxies_i () { if (this->consumer_proxy_map_.current_size () > 0) { @@ -262,7 +262,7 @@ TAO_EC_Gateway_IIOP::open_i ( { sub.dependencies[i].rt_info = this->supplier_info_; - RtecEventChannelAdmin::ProxyPushConsumer_ptr proxy = 0; + RtecEventChannelAdmin::ProxyPushConsumer_ptr proxy = nullptr; const RtecEventComm::EventHeader &h = sub.dependencies[i].event.header; @@ -420,7 +420,7 @@ TAO_EC_Gateway_IIOP::update_supplier ( } void -TAO_EC_Gateway_IIOP::disconnect_push_consumer (void) +TAO_EC_Gateway_IIOP::disconnect_push_consumer () { // ORBSVCS_DEBUG ((LM_DEBUG, // "ECG (%t): Supplier-consumer received " @@ -428,7 +428,7 @@ TAO_EC_Gateway_IIOP::disconnect_push_consumer (void) } void -TAO_EC_Gateway_IIOP::disconnect_push_supplier (void) +TAO_EC_Gateway_IIOP::disconnect_push_supplier () { // ORBSVCS_DEBUG ((LM_DEBUG, // "ECG (%t): Supplier received " @@ -466,7 +466,7 @@ TAO_EC_Gateway_IIOP::push (const RtecEventComm::EventSet &events) continue; } - RtecEventChannelAdmin::ProxyPushConsumer_ptr proxy = 0; + RtecEventChannelAdmin::ProxyPushConsumer_ptr proxy = nullptr; RtecEventComm::EventSourceID sid = events[i].header.source; if (sid == ACE_ES_EVENT_SOURCE_ANY || this->use_consumer_proxy_map_ == 0 || this->consumer_proxy_map_.find (sid, proxy) == -1) @@ -531,7 +531,7 @@ TAO_EC_Gateway_IIOP::push_to_consumer ( } int -TAO_EC_Gateway_IIOP::shutdown (void) +TAO_EC_Gateway_IIOP::shutdown () { ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, -1); @@ -566,7 +566,7 @@ TAO_EC_Gateway_IIOP::shutdown (void) } int -TAO_EC_Gateway_IIOP::cleanup_consumer_ec (void) +TAO_EC_Gateway_IIOP::cleanup_consumer_ec () { ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, -1); @@ -576,7 +576,7 @@ TAO_EC_Gateway_IIOP::cleanup_consumer_ec (void) } int -TAO_EC_Gateway_IIOP::cleanup_supplier_ec (void) +TAO_EC_Gateway_IIOP::cleanup_supplier_ec () { ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, -1); @@ -586,21 +586,21 @@ TAO_EC_Gateway_IIOP::cleanup_supplier_ec (void) } void -TAO_EC_Gateway_IIOP::cleanup_consumer_ec_i (void) +TAO_EC_Gateway_IIOP::cleanup_consumer_ec_i () { this->consumer_ec_ = RtecEventChannelAdmin::EventChannel::_nil (); } void -TAO_EC_Gateway_IIOP::cleanup_supplier_ec_i (void) +TAO_EC_Gateway_IIOP::cleanup_supplier_ec_i () { this->supplier_ec_ = RtecEventChannelAdmin::EventChannel::_nil (); } CORBA::Boolean -TAO_EC_Gateway_IIOP::is_consumer_ec_connected_i (void) const +TAO_EC_Gateway_IIOP::is_consumer_ec_connected_i () const { return !CORBA::is_nil (this->consumer_ec_.in ()); } @@ -615,11 +615,11 @@ TAO_EC_Gateway_IIOP::consumer_ec_non_existent ( TAO_SYNCH_MUTEX, ace_mon, this->lock_, CORBA::INTERNAL ()); - disconnected = 0; + disconnected = false; if (this->is_consumer_ec_connected_i () == 0) { - disconnected = 1; - return 0; + disconnected = true; + return false; } consumer_ec = CORBA::Object::_duplicate (this->consumer_ec_.in ()); @@ -633,7 +633,7 @@ TAO_EC_Gateway_IIOP::consumer_ec_non_existent ( } void -TAO_EC_Gateway_IIOP::suspend_supplier_ec (void) +TAO_EC_Gateway_IIOP::suspend_supplier_ec () { if (!CORBA::is_nil (this->supplier_proxy_.in ()) && supplier_ec_suspended_ == 0) { @@ -644,7 +644,7 @@ TAO_EC_Gateway_IIOP::suspend_supplier_ec (void) } void -TAO_EC_Gateway_IIOP::resume_supplier_ec (void) +TAO_EC_Gateway_IIOP::resume_supplier_ec () { if (!CORBA::is_nil (this->supplier_proxy_.in ()) && supplier_ec_suspended_ == 1) { diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.h b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.h index b6fb48fe2c5..8ea47da59ff 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.h @@ -63,8 +63,8 @@ class TAO_EC_Gateway_IIOP_Factory; class TAO_RTEvent_Serv_Export TAO_EC_Gateway_IIOP : public TAO_EC_Gateway { public: - TAO_EC_Gateway_IIOP (void); - virtual ~TAO_EC_Gateway_IIOP (void); + TAO_EC_Gateway_IIOP (); + virtual ~TAO_EC_Gateway_IIOP (); /** * To do its job this class requires to know the local and remote ECs it will @@ -75,25 +75,25 @@ public: RtecEventChannelAdmin::EventChannel_ptr consumer_ec); /// The channel is disconnecting. - void disconnect_push_supplier (void); + void disconnect_push_supplier (); /// The channel is disconnecting. - void disconnect_push_consumer (void); + void disconnect_push_consumer (); /// This is the consumer side behavior, it pushes the events to the /// local event channel. void push (const RtecEventComm::EventSet &events); /// Disconnect and shutdown the gateway - int shutdown (void); + int shutdown (); // The following methods are documented in the base class. - virtual void close (void); + virtual void close (); virtual void update_consumer (const RtecEventChannelAdmin::ConsumerQOS& sub); virtual void update_supplier (const RtecEventChannelAdmin::SupplierQOS& pub); // Let the gateway reconnect itself to the consumer ec given exisiting QoS - void reconnect_consumer_ec(void); + void reconnect_consumer_ec(); /// Check whether the consumer event channel is non existent or not CORBA::Boolean consumer_ec_non_existent (CORBA::Boolean_out disconnected); @@ -104,33 +104,33 @@ public: * the consumer proxy administration in case we know that the consumers * are all unreachable. */ - void cleanup_consumer_proxies (void); + void cleanup_consumer_proxies (); /// Cleanup the connection to the consumer ec. Doesn't call anything on the /// ec again, just set the object to nil - int cleanup_consumer_ec (void); + int cleanup_consumer_ec (); /// Cleanup the connection to the supplier ec. Doesn't call anything on the /// ec again, just set the object to nil - int cleanup_supplier_ec (void); + int cleanup_supplier_ec (); /// Suspend the connection to the supplier ec - void suspend_supplier_ec (void); + void suspend_supplier_ec (); /// Resume the connection to the supplier ec - void resume_supplier_ec (void); + void resume_supplier_ec (); private: - void close_i (void); + void close_i (); /// Disconnect the supplier proxy - void disconnect_supplier_proxy_i (void); + void disconnect_supplier_proxy_i (); /// Disconnect all consumer proxies - void disconnect_consumer_proxies_i (void); + void disconnect_consumer_proxies_i (); /// Remove all consumer proxies without calling disconnect on them - void cleanup_consumer_proxies_i (void); + void cleanup_consumer_proxies_i (); void update_consumer_i (const RtecEventChannelAdmin::ConsumerQOS& sub); @@ -138,15 +138,15 @@ private: void open_i (const RtecEventChannelAdmin::ConsumerQOS& sub); /// Helper method to see if consumer ec is connected - CORBA::Boolean is_consumer_ec_connected_i (void) const; + CORBA::Boolean is_consumer_ec_connected_i () const; /// Push the @a event to the @a consumer. void push_to_consumer (RtecEventChannelAdmin::ProxyPushConsumer_ptr consumer, const RtecEventComm::EventSet& event); - void cleanup_consumer_ec_i (void); + void cleanup_consumer_ec_i (); - void cleanup_supplier_ec_i (void); + void cleanup_supplier_ec_i (); protected: /// Do the real work in init() diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.cpp index df33e3292f6..f5a486ffc2c 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.cpp @@ -20,13 +20,13 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL int -TAO_EC_Gateway_IIOP_Factory::init_svcs (void) +TAO_EC_Gateway_IIOP_Factory::init_svcs () { return ACE_Service_Config::static_svcs ()-> insert (&ace_svc_desc_TAO_EC_Gateway_IIOP_Factory); } -TAO_EC_Gateway_IIOP_Factory::TAO_EC_Gateway_IIOP_Factory (void) +TAO_EC_Gateway_IIOP_Factory::TAO_EC_Gateway_IIOP_Factory () : orbid_ (TAO_ECG_DEFAULT_IIOP_ORB_ID), consumer_ec_control_ (TAO_ECG_DEFAULT_IIOP_CONSUMEREC_CONTROL), consumer_ec_control_period_ (TAO_ECG_DEFAULT_IIOP_CONSUMEREC_CONTROL_PERIOD), @@ -36,12 +36,12 @@ TAO_EC_Gateway_IIOP_Factory::TAO_EC_Gateway_IIOP_Factory (void) { } -TAO_EC_Gateway_IIOP_Factory::~TAO_EC_Gateway_IIOP_Factory (void) +TAO_EC_Gateway_IIOP_Factory::~TAO_EC_Gateway_IIOP_Factory () { } int -TAO_EC_Gateway_IIOP_Factory::fini (void) +TAO_EC_Gateway_IIOP_Factory::fini () { return 0; } @@ -95,7 +95,7 @@ TAO_EC_Gateway_IIOP_Factory::init (int argc, ACE_TCHAR* argv[]) if (arg_shifter.is_parameter_next ()) { const ACE_TCHAR* opt = arg_shifter.get_current (); - unsigned long timeout = ACE_OS::strtoul(opt, 0, 10); + unsigned long timeout = ACE_OS::strtoul(opt, nullptr, 10); this->consumer_ec_control_timeout_.usec(timeout); arg_shifter.consume_arg (); } @@ -171,7 +171,7 @@ TAO_EC_Gateway_IIOP_Factory::create_consumerec_control (TAO_EC_Gateway_IIOP* gat else if (this->consumer_ec_control_ == 1) { int argc = 0; - ACE_TCHAR **argv = 0; + ACE_TCHAR **argv = nullptr; CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, this->orbid_.c_str ()); ACE_Time_Value rate (0, this->consumer_ec_control_period_); @@ -180,13 +180,13 @@ TAO_EC_Gateway_IIOP_Factory::create_consumerec_control (TAO_EC_Gateway_IIOP* gat else if (this->consumer_ec_control_ == 2) { int argc = 0; - ACE_TCHAR **argv = 0; + ACE_TCHAR **argv = nullptr; CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, this->orbid_.c_str ()); ACE_Time_Value rate (0, this->consumer_ec_control_period_); return new TAO_ECG_Reconnect_ConsumerEC_Control (rate, consumer_ec_control_timeout_, gateway, orb.in ()); } - return 0; + return nullptr; } void diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.h b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.h index 50fc874fab1..dffea90381d 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.h @@ -40,18 +40,18 @@ class TAO_RTEvent_Serv_Export TAO_EC_Gateway_IIOP_Factory : public ACE_Service_Object { public: - TAO_EC_Gateway_IIOP_Factory (void); - virtual ~TAO_EC_Gateway_IIOP_Factory (void); + TAO_EC_Gateway_IIOP_Factory (); + virtual ~TAO_EC_Gateway_IIOP_Factory (); /// The Service_Object entry points. //@{ virtual int init (int argc, ACE_TCHAR* argv[]); - virtual int fini (void); + virtual int fini (); //@} /// Helper function to register the Gateway into the service /// configurator. - static int init_svcs (void); + static int init_svcs (); /// Create the consumer event channel control. TAO_ECG_ConsumerEC_Control * @@ -61,10 +61,10 @@ public: void destroy_consumerec_control (TAO_ECG_ConsumerEC_Control* x); /// Accessors to use_ttl flag - int use_ttl (void) const; + int use_ttl () const; /// Accessors to use_consumer_proxy_map flag - int use_consumer_proxy_map (void) const; + int use_consumer_proxy_map () const; private: /// Helper for agrument parsing. Prints out an error message about diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_Sched.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_Sched.cpp index 428104e1233..ca0b9b11dc1 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_Sched.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_Sched.cpp @@ -3,12 +3,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EC_Gateway_Sched::TAO_EC_Gateway_Sched (void) +TAO_EC_Gateway_Sched::TAO_EC_Gateway_Sched () : TAO_EC_Gateway_IIOP () { } -TAO_EC_Gateway_Sched::~TAO_EC_Gateway_Sched (void) +TAO_EC_Gateway_Sched::~TAO_EC_Gateway_Sched () { } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Group_Scheduling.h b/TAO/orbsvcs/orbsvcs/Event/EC_Group_Scheduling.h index 6017143de4e..e60007ddae6 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Group_Scheduling.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Group_Scheduling.h @@ -29,7 +29,7 @@ class TAO_RTEvent_Serv_Export TAO_EC_Group_Scheduling : public TAO_EC_Scheduling { public: /// Constructor. - TAO_EC_Group_Scheduling (void); + TAO_EC_Group_Scheduling (); // Read EC_Scheduling_Strategy.h for more details virtual void add_proxy_supplier_dependencies ( diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Group_Scheduling.inl b/TAO/orbsvcs/orbsvcs/Event/EC_Group_Scheduling.inl index 8fbfc0adcf3..49a7fabbf41 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Group_Scheduling.inl +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Group_Scheduling.inl @@ -1,5 +1,5 @@ ACE_INLINE -TAO_EC_Group_Scheduling::TAO_EC_Group_Scheduling (void) +TAO_EC_Group_Scheduling::TAO_EC_Group_Scheduling () { } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Dispatching.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Dispatching.cpp index 59be08f552e..df321abb0ab 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Dispatching.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Dispatching.cpp @@ -20,7 +20,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_EC_Kokyu_Dispatching::TAO_EC_Kokyu_Dispatching (TAO_EC_Event_Channel_Base *ec, int sched_policy, int sched_scope) :allocator_ (0), - dispatcher_ (0), + dispatcher_ (nullptr), lanes_setup_ (0), disp_sched_policy_ (sched_policy), disp_sched_scope_ (sched_scope) @@ -36,7 +36,7 @@ TAO_EC_Kokyu_Dispatching::TAO_EC_Kokyu_Dispatching (TAO_EC_Event_Channel_Base *e } void -TAO_EC_Kokyu_Dispatching::activate (void) +TAO_EC_Kokyu_Dispatching::activate () { if (!lanes_setup_) setup_lanes (); @@ -47,7 +47,7 @@ TAO_EC_Kokyu_Dispatching::activate (void) } void -TAO_EC_Kokyu_Dispatching::setup_lanes (void) +TAO_EC_Kokyu_Dispatching::setup_lanes () { // Query the scheduler togetConfig_Infos RtecScheduler::Config_Info_Set_var configs; @@ -89,14 +89,14 @@ TAO_EC_Kokyu_Dispatching::setup_lanes (void) // Create Kokyu::Dispatcher using factory Kokyu::Dispatcher_Auto_Ptr tmp(Kokyu::Dispatcher_Factory::create_dispatcher(attrs)); - this->dispatcher_ = tmp; + this->dispatcher_ = std::move(tmp); this->lanes_setup_ = 1; //ORBSVCS_DEBUG ((LM_DEBUG, "Kokyu dispatcher setup\n")); } void -TAO_EC_Kokyu_Dispatching::shutdown (void) +TAO_EC_Kokyu_Dispatching::shutdown () { this->dispatcher_->shutdown(); } @@ -154,19 +154,19 @@ TAO_EC_Kokyu_Dispatching::push_nocopy (TAO_EC_ProxyPushSupplier* proxy, // **************************************************************** -TAO_EC_Kokyu_Shutdown_Command::~TAO_EC_Kokyu_Shutdown_Command(void) +TAO_EC_Kokyu_Shutdown_Command::~TAO_EC_Kokyu_Shutdown_Command() { } int -TAO_EC_Kokyu_Shutdown_Command::execute(void) +TAO_EC_Kokyu_Shutdown_Command::execute() { return -1; } // **************************************************************** -TAO_EC_Kokyu_Push_Command::~TAO_EC_Kokyu_Push_Command(void) +TAO_EC_Kokyu_Push_Command::~TAO_EC_Kokyu_Push_Command() { this->proxy_->_decr_refcnt (); } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Factory.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Factory.cpp index 34adfa62c22..815c50fe3ff 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Factory.cpp @@ -17,12 +17,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EC_Kokyu_Factory::~TAO_EC_Kokyu_Factory (void) +TAO_EC_Kokyu_Factory::~TAO_EC_Kokyu_Factory () { } int -TAO_EC_Kokyu_Factory::init_svcs (void) +TAO_EC_Kokyu_Factory::init_svcs () { return ACE_Service_Config::static_svcs ()-> insert (&ace_svc_desc_TAO_EC_Kokyu_Factory); @@ -203,7 +203,7 @@ TAO_EC_Kokyu_Factory::init (int argc, ACE_TCHAR* argv[]) } int -TAO_EC_Kokyu_Factory::fini (void) +TAO_EC_Kokyu_Factory::fini () { return 0; } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter.cpp index 033b9aa4a4f..37aa366a1a4 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter.cpp @@ -27,25 +27,25 @@ this->rt_info_computed_ = 1; #endif } -TAO_EC_Kokyu_Filter::~TAO_EC_Kokyu_Filter (void) +TAO_EC_Kokyu_Filter::~TAO_EC_Kokyu_Filter () { delete this->body_; } TAO_EC_Filter::ChildrenIterator -TAO_EC_Kokyu_Filter::begin (void) const +TAO_EC_Kokyu_Filter::begin () const { return this->body_->begin (); } TAO_EC_Filter::ChildrenIterator -TAO_EC_Kokyu_Filter::end (void) const +TAO_EC_Kokyu_Filter::end () const { return this->body_->end (); } int -TAO_EC_Kokyu_Filter::size (void) const +TAO_EC_Kokyu_Filter::size () const { return this->body_->size (); } @@ -117,13 +117,13 @@ TAO_EC_Kokyu_Filter::push_nocopy (RtecEventComm::EventSet &event, } void -TAO_EC_Kokyu_Filter::clear (void) +TAO_EC_Kokyu_Filter::clear () { this->body_->clear (); } CORBA::ULong -TAO_EC_Kokyu_Filter::max_event_size (void) const +TAO_EC_Kokyu_Filter::max_event_size () const { return this->body_->max_event_size (); } @@ -225,7 +225,7 @@ TAO_EC_Kokyu_Filter::get_qos_info (TAO_EC_QOS_Info& qos_info) } void -TAO_EC_Kokyu_Filter::init_rt_info (void) +TAO_EC_Kokyu_Filter::init_rt_info () { if (this->rt_info_computed_) return; diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.cpp index 79c76c9860c..e8d8a5997b1 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.cpp @@ -31,7 +31,7 @@ const char* designator (long dsgn) TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EC_Kokyu_Filter_Builder::~TAO_EC_Kokyu_Filter_Builder (void) +TAO_EC_Kokyu_Filter_Builder::~TAO_EC_Kokyu_Filter_Builder () { } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.cpp index 0e86459dc4c..9263064b6af 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.cpp @@ -10,7 +10,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EC_Kokyu_Scheduling::~TAO_EC_Kokyu_Scheduling (void) +TAO_EC_Kokyu_Scheduling::~TAO_EC_Kokyu_Scheduling () { } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils.h b/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils.h index 6fbfb3f0eaf..f95099e6ab0 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils.h @@ -41,7 +41,7 @@ class TAO_RTEvent_Serv_Export TAO_EC_Object_Deactivator public: /// Default constructor. Deactivation info can be supplied later /// through set_values (). - TAO_EC_Object_Deactivator (void); + TAO_EC_Object_Deactivator (); /// Constructor. Set @a id which will be deactivated from @ poa in /// the deactivator's destructor, unless deactivate () or @@ -52,7 +52,7 @@ public: /// Destructor. Deactivates id_ from poa_ if those values have /// been set, and neither deactivate() nor disallow_deactivation() /// have been invoked. - ~TAO_EC_Object_Deactivator (void); + ~TAO_EC_Object_Deactivator (); /// Set <id> which will be deactivated from <poa> in /// the deactivator's destructor, unless deactivate () or @@ -65,20 +65,20 @@ public: /// Explicitly enable deactivation to happen in destructor or when /// deactivate() is called. - void allow_deactivation (void); + void allow_deactivation (); /// Explicitly disable deactivation from happening in destructor or /// when deactivate() is called. - void disallow_deactivation (void); + void disallow_deactivation (); /// Perform deactivation now if <poa_> and <id_> values have been set, and /// deactivation hasn't happened yet nor has it been explicitly /// disallowed. CORBA exceptions occurring during deactivation are /// not propagated. Deactivation will NOT happen in the destructor. - void deactivate (void); + void deactivate (); /// Accessor for the POA used in deactivation. - PortableServer::POA_var poa (void) const; + PortableServer::POA_var poa () const; private: @@ -126,8 +126,8 @@ public: protected: - TAO_EC_Deactivated_Object (void); - ~TAO_EC_Deactivated_Object (void); + TAO_EC_Deactivated_Object (); + ~TAO_EC_Deactivated_Object (); /// Utility for deactivating ourselves from POA. TAO_EC_Object_Deactivator deactivator_; @@ -147,10 +147,10 @@ class TAO_RTEvent_Serv_Export TAO_EC_ORB_Holder { public: /// Constructor. No-op. - TAO_EC_ORB_Holder (void); + TAO_EC_ORB_Holder (); /// Destructor. If holding an ORB, destroy it. - ~TAO_EC_ORB_Holder (void); + ~TAO_EC_ORB_Holder (); /// Set the ORB to be destroyed in destructor to <orb_var>. If /// TAO_EC_ORB_Holder already held an orb prior to invocation of @@ -183,10 +183,10 @@ class TAO_RTEvent_Serv_Export TAO_EC_Event_Channel_Holder { public: /// Constructor. No-op. - TAO_EC_Event_Channel_Holder (void); + TAO_EC_Event_Channel_Holder (); /// Destructor. If holding an Event Channel, destroy it. - ~TAO_EC_Event_Channel_Holder (void); + ~TAO_EC_Event_Channel_Holder (); /// Set the Event Channel to be destroyed in destructor to @a ec_var. If /// TAO_EC_Event_Channel_Holder already held an Event Channel prior diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.h b/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.h index 341e42b298b..6b2ff5f2ae4 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.h @@ -53,22 +53,21 @@ template <class T> class TAO_EC_Auto_Command { public: - TAO_EC_Auto_Command (void); + TAO_EC_Auto_Command (); TAO_EC_Auto_Command (const T & command); - ~TAO_EC_Auto_Command (void); + ~TAO_EC_Auto_Command (); void set_command (const T & command); void set_command (TAO_EC_Auto_Command<T> & auto_command); - void execute (void); - void allow_command (void); - void disallow_command (void); + void execute (); + void allow_command (); + void disallow_command (); private: - TAO_EC_Auto_Command (const TAO_EC_Auto_Command &); TAO_EC_Auto_Command & operator= (const TAO_EC_Auto_Command &); T command_; - int allow_command_; + bool allow_command_; }; @@ -78,9 +77,9 @@ template <class T> class TAO_EC_Shutdown_Command { public: - TAO_EC_Shutdown_Command (void); + TAO_EC_Shutdown_Command (); TAO_EC_Shutdown_Command (T target); - void execute (void); + void execute (); private: diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.inl b/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.inl index 746174798a0..4b85ab2aaae 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.inl +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.inl @@ -5,7 +5,7 @@ template <class T> ACE_INLINE TAO_EC_Auto_Command<T>::TAO_EC_Auto_Command (void) : command_ () - , allow_command_ (0) + , allow_command_ (false) { } @@ -13,7 +13,7 @@ template <class T> ACE_INLINE TAO_EC_Auto_Command<T>::TAO_EC_Auto_Command (const T & command) : command_ (command) - , allow_command_ (1) + , allow_command_ (true) { } @@ -29,7 +29,7 @@ ACE_INLINE void TAO_EC_Auto_Command<T>::set_command (const T & command) { this->command_ = command; - this->allow_command_ = 1; + this->allow_command_ = true; } template <class T> @@ -50,7 +50,7 @@ TAO_EC_Auto_Command<T>::execute (void) { if (this->allow_command_) { - this->allow_command_ = 0; + this->allow_command_ = false; try { @@ -67,14 +67,14 @@ template <class T> ACE_INLINE void TAO_EC_Auto_Command<T>::allow_command (void) { - this->allow_command_ = 1; + this->allow_command_ = true; } template <class T> ACE_INLINE void TAO_EC_Auto_Command<T>::disallow_command (void) { - this->allow_command_ = 0; + this->allow_command_ = false; } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.cpp index e75e12bb54e..0aabbbc08bc 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.cpp @@ -15,14 +15,14 @@ TAO_EC_MT_Dispatching::TAO_EC_MT_Dispatching (int nthreads, thread_creation_flags_ (thread_creation_flags), thread_priority_ (thread_priority), force_activate_ (force_activate), - task_(0, service_object), + task_(nullptr, service_object), active_ (0) { this->task_.open (&this->thread_manager_); } void -TAO_EC_MT_Dispatching::activate (void) +TAO_EC_MT_Dispatching::activate () { ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); @@ -49,7 +49,7 @@ TAO_EC_MT_Dispatching::activate (void) } void -TAO_EC_MT_Dispatching::shutdown (void) +TAO_EC_MT_Dispatching::shutdown () { ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.h b/TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.h index 2492c94b2ad..8852968ebe1 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.h @@ -46,8 +46,8 @@ public: TAO_EC_Queue_Full_Service_Object* queue_full_service_object_name); // = The EC_Dispatching methods. - virtual void activate (void); - virtual void shutdown (void); + virtual void activate (); + virtual void shutdown (); virtual void push (TAO_EC_ProxyPushSupplier* proxy, RtecEventComm::PushConsumer_ptr consumer, const RtecEventComm::EventSet& event, diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Masked_Type_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Masked_Type_Filter.cpp index dc550ba2fda..249dbb9e7ee 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Masked_Type_Filter.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Masked_Type_Filter.cpp @@ -16,24 +16,24 @@ TAO_EC_Masked_Type_Filter:: { } -TAO_EC_Masked_Type_Filter::~TAO_EC_Masked_Type_Filter (void) +TAO_EC_Masked_Type_Filter::~TAO_EC_Masked_Type_Filter () { } TAO_EC_Filter::ChildrenIterator -TAO_EC_Masked_Type_Filter::begin (void) const +TAO_EC_Masked_Type_Filter::begin () const { - return 0; + return nullptr; } TAO_EC_Filter::ChildrenIterator -TAO_EC_Masked_Type_Filter::end (void) const +TAO_EC_Masked_Type_Filter::end () const { - return 0; + return nullptr; } int -TAO_EC_Masked_Type_Filter::size (void) const +TAO_EC_Masked_Type_Filter::size () const { return 0; } @@ -49,7 +49,7 @@ TAO_EC_Masked_Type_Filter::filter (const RtecEventComm::EventSet& event, || (event[0].header.source & this->source_mask_) != this->source_value_) return 0; - if (this->parent () != 0) + if (this->parent () != nullptr) { this->parent ()->push (event, qos_info); } @@ -67,7 +67,7 @@ TAO_EC_Masked_Type_Filter::filter_nocopy (RtecEventComm::EventSet& event, || (event[0].header.source & this->source_mask_) != this->source_value_) return 0; - if (this->parent () != 0) + if (this->parent () != nullptr) { this->parent ()->push_nocopy (event, qos_info); } @@ -87,12 +87,12 @@ TAO_EC_Masked_Type_Filter::push_nocopy (RtecEventComm::EventSet &, } void -TAO_EC_Masked_Type_Filter::clear (void) +TAO_EC_Masked_Type_Filter::clear () { } CORBA::ULong -TAO_EC_Masked_Type_Filter::max_event_size (void) const +TAO_EC_Masked_Type_Filter::max_event_size () const { return 1; } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Masked_Type_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_Masked_Type_Filter.h index 3fa8dd6f094..c405c7589fb 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Masked_Type_Filter.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Masked_Type_Filter.h @@ -45,13 +45,13 @@ public: CORBA::ULong type_value); /// Destructor - virtual ~TAO_EC_Masked_Type_Filter (void); + virtual ~TAO_EC_Masked_Type_Filter (); // = The TAO_EC_Filter methods, please check the documentation in // TAO_EC_Filter. - virtual ChildrenIterator begin (void) const; - virtual ChildrenIterator end (void) const; - virtual int size (void) const; + virtual ChildrenIterator begin () const; + virtual ChildrenIterator end () const; + virtual int size () const; virtual int filter (const RtecEventComm::EventSet& event, TAO_EC_QOS_Info& qos_info); virtual int filter_nocopy (RtecEventComm::EventSet& event, @@ -60,8 +60,8 @@ public: TAO_EC_QOS_Info& qos_info); virtual void push_nocopy (RtecEventComm::EventSet& event, TAO_EC_QOS_Info& qos_info); - virtual void clear (void); - virtual CORBA::ULong max_event_size (void) const; + virtual void clear (); + virtual CORBA::ULong max_event_size () const; virtual int can_match (const RtecEventComm::EventHeader& header) const; virtual int add_dependencies (const RtecEventComm::EventHeader& header, const TAO_EC_QOS_Info &qos_info); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Negation_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Negation_Filter.cpp index 41ce09ab69b..a64fc8b06f1 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Negation_Filter.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Negation_Filter.cpp @@ -10,25 +10,25 @@ TAO_EC_Negation_Filter::TAO_EC_Negation_Filter (TAO_EC_Filter* child) this->adopt_child (this->child_); } -TAO_EC_Negation_Filter::~TAO_EC_Negation_Filter (void) +TAO_EC_Negation_Filter::~TAO_EC_Negation_Filter () { delete this->child_; } TAO_EC_Filter::ChildrenIterator -TAO_EC_Negation_Filter::begin (void) const +TAO_EC_Negation_Filter::begin () const { return const_cast<TAO_EC_Filter**> (&this->child_); } TAO_EC_Filter::ChildrenIterator -TAO_EC_Negation_Filter::end (void) const +TAO_EC_Negation_Filter::end () const { return const_cast<TAO_EC_Filter**> (&this->child_) + 1; } int -TAO_EC_Negation_Filter::size (void) const +TAO_EC_Negation_Filter::size () const { return 1; } @@ -39,7 +39,7 @@ TAO_EC_Negation_Filter::filter (const RtecEventComm::EventSet& event, { int n = this->child_->filter (event, qos_info); - if (this->parent () != 0 && n == 0) + if (this->parent () != nullptr && n == 0) { this->parent ()->push (event, qos_info); return 1; @@ -53,7 +53,7 @@ TAO_EC_Negation_Filter::filter_nocopy (RtecEventComm::EventSet& event, { int n = this->child_->filter_nocopy (event, qos_info); - if (this->parent () != 0 && n == 0) + if (this->parent () != nullptr && n == 0) { this->parent ()->push_nocopy (event, qos_info); return 1; @@ -74,13 +74,13 @@ TAO_EC_Negation_Filter::push_nocopy (RtecEventComm::EventSet&, } void -TAO_EC_Negation_Filter::clear (void) +TAO_EC_Negation_Filter::clear () { this->child_->clear (); } CORBA::ULong -TAO_EC_Negation_Filter::max_event_size (void) const +TAO_EC_Negation_Filter::max_event_size () const { return this->child_->max_event_size (); } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Negation_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_Negation_Filter.h index 6097f931038..69128a25af5 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Negation_Filter.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Negation_Filter.h @@ -42,14 +42,14 @@ public: TAO_EC_Negation_Filter (TAO_EC_Filter* child); /// Destructor - virtual ~TAO_EC_Negation_Filter (void); + virtual ~TAO_EC_Negation_Filter (); // = The TAO_EC_Filter methods, please check the documentation in // TAO_EC_Filter. - virtual ChildrenIterator begin (void) const; - virtual ChildrenIterator end (void) const; - virtual int size (void) const; + virtual ChildrenIterator begin () const; + virtual ChildrenIterator end () const; + virtual int size () const; virtual int filter (const RtecEventComm::EventSet& event, TAO_EC_QOS_Info& qos_info); virtual int filter_nocopy (RtecEventComm::EventSet& event, @@ -58,8 +58,8 @@ public: TAO_EC_QOS_Info& qos_info); virtual void push_nocopy (RtecEventComm::EventSet& event, TAO_EC_QOS_Info& qos_info); - virtual void clear (void); - virtual CORBA::ULong max_event_size (void) const; + virtual void clear (); + virtual CORBA::ULong max_event_size () const; virtual int can_match (const RtecEventComm::EventHeader& header) const; virtual int add_dependencies (const RtecEventComm::EventHeader& header, const TAO_EC_QOS_Info &qos_info); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Null_Factory.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Null_Factory.cpp index 71411aa2818..8bc8ff7eab4 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Null_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Null_Factory.cpp @@ -21,11 +21,11 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EC_Null_Factory::TAO_EC_Null_Factory (void) +TAO_EC_Null_Factory::TAO_EC_Null_Factory () { } -TAO_EC_Null_Factory::~TAO_EC_Null_Factory (void) +TAO_EC_Null_Factory::~TAO_EC_Null_Factory () { } @@ -117,7 +117,7 @@ TAO_EC_Timeout_Generator* TAO_EC_Null_Factory::create_timeout_generator (TAO_EC_Event_Channel_Base *) { int argc = 0; - ACE_TCHAR **argv = 0; + ACE_TCHAR **argv = nullptr; CORBA::ORB_var orb = CORBA::ORB_init (argc, argv); ACE_Reactor *reactor = orb->orb_core ()->reactor (); @@ -189,7 +189,7 @@ TAO_EC_Null_Factory::destroy_proxy_push_supplier_collection (TAO_EC_ProxyPushSup } ACE_Lock* -TAO_EC_Null_Factory::create_consumer_lock (void) +TAO_EC_Null_Factory::create_consumer_lock () { return new ACE_Lock_Adapter<ACE_Null_Mutex> (); } @@ -201,7 +201,7 @@ TAO_EC_Null_Factory::destroy_consumer_lock (ACE_Lock* x) } ACE_Lock* -TAO_EC_Null_Factory::create_supplier_lock (void) +TAO_EC_Null_Factory::create_supplier_lock () { return new ACE_Lock_Adapter<ACE_Null_Mutex> (); } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Null_Factory.h b/TAO/orbsvcs/orbsvcs/Event/EC_Null_Factory.h index e6cdf972db1..5334fda7bca 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Null_Factory.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Null_Factory.h @@ -38,10 +38,10 @@ class TAO_RTEvent_Serv_Export TAO_EC_Null_Factory : public TAO_EC_Factory { public: /// Constructor - TAO_EC_Null_Factory (void); + TAO_EC_Null_Factory (); /// destructor... - virtual ~TAO_EC_Null_Factory (void); + virtual ~TAO_EC_Null_Factory (); // = The EC_Factory methods virtual TAO_EC_Dispatching* @@ -93,9 +93,9 @@ public: virtual void destroy_proxy_push_supplier_collection (TAO_EC_ProxyPushSupplier_Collection*); - virtual ACE_Lock* create_consumer_lock (void); + virtual ACE_Lock* create_consumer_lock (); virtual void destroy_consumer_lock (ACE_Lock*); - virtual ACE_Lock* create_supplier_lock (void); + virtual ACE_Lock* create_supplier_lock (); virtual void destroy_supplier_lock (ACE_Lock*); virtual TAO_EC_ConsumerControl* diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.cpp index 05438b6adf4..141c3bd9b3b 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.cpp @@ -25,7 +25,7 @@ TAO_EC_Null_Scheduling::schedule_event (const RtecEventComm::EventSet &event, const RtecEventComm::Event& e = event[j]; RtecEventComm::Event* buffer = const_cast<RtecEventComm::Event*> (&e); - RtecEventComm::EventSet single_event (1, 1, buffer, 0); + RtecEventComm::EventSet single_event (1, 1, buffer, false); TAO_EC_QOS_Info event_info; filter->push_scheduled_event (single_event, event_info); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.h b/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.h index 14892c28f7c..fc9da282605 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.h @@ -32,7 +32,7 @@ class TAO_RTEvent_Serv_Export TAO_EC_Null_Scheduling { public: /// Constructor. - TAO_EC_Null_Scheduling (void); + TAO_EC_Null_Scheduling (); // Read EC_Scheduling_Strategy.h for more details virtual void add_proxy_supplier_dependencies ( diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.inl b/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.inl index f1c2a48bd5c..63386ce9ca8 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.inl +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.inl @@ -1,5 +1,5 @@ ACE_INLINE -TAO_EC_Null_Scheduling::TAO_EC_Null_Scheduling (void) +TAO_EC_Null_Scheduling::TAO_EC_Null_Scheduling () { } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.cpp index 973ecaf9ba7..8b11a9dd746 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.cpp @@ -11,11 +11,9 @@ #include "orbsvcs/Event/EC_ObserverStrategy.inl" #endif /* __ACE_INLINE__ */ - - TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EC_ObserverStrategy::~TAO_EC_ObserverStrategy (void) +TAO_EC_ObserverStrategy::~TAO_EC_ObserverStrategy () { } @@ -57,10 +55,10 @@ TAO_EC_Null_ObserverStrategy::disconnected (TAO_EC_ProxyPushSupplier*) // **************************************************************** -TAO_EC_Basic_ObserverStrategy::~TAO_EC_Basic_ObserverStrategy (void) +TAO_EC_Basic_ObserverStrategy::~TAO_EC_Basic_ObserverStrategy () { delete this->lock_; - this->lock_ = 0; + this->lock_ = nullptr; } RtecEventChannelAdmin::Observer_Handle @@ -111,7 +109,7 @@ TAO_EC_Basic_ObserverStrategy::create_observer_list ( RtecEventChannelAdmin::EventChannel::SYNCHRONIZATION_ERROR()); int size = static_cast<int> (this->observers_.current_size ()); - RtecEventChannelAdmin::Observer_var *tmp = 0; + RtecEventChannelAdmin::Observer_var *tmp = nullptr; ACE_NEW_RETURN (tmp, RtecEventChannelAdmin::Observer_var[size], 0); @@ -156,7 +154,7 @@ TAO_EC_Basic_ObserverStrategy::supplier_qos_update ( RtecEventChannelAdmin::SupplierQOS s_qos; this->fill_qos (s_qos); - RtecEventChannelAdmin::Observer_var *tmp = 0; + RtecEventChannelAdmin::Observer_var *tmp = nullptr; int size = this->create_observer_list (tmp); ACE_Auto_Basic_Array_Ptr<RtecEventChannelAdmin::Observer_var> copy (tmp); @@ -198,7 +196,7 @@ TAO_EC_Basic_ObserverStrategy::consumer_qos_update ( RtecEventChannelAdmin::ConsumerQOS c_qos; this->fill_qos (c_qos); - RtecEventChannelAdmin::Observer_var *tmp = 0; + RtecEventChannelAdmin::Observer_var *tmp = nullptr; int size = this->create_observer_list (tmp); ACE_Auto_Basic_Array_Ptr<RtecEventChannelAdmin::Observer_var> copy (tmp); @@ -262,7 +260,7 @@ TAO_EC_Basic_ObserverStrategy::fill_qos ( // **************************************************************** -TAO_EC_Reactive_ObserverStrategy::~TAO_EC_Reactive_ObserverStrategy (void) +TAO_EC_Reactive_ObserverStrategy::~TAO_EC_Reactive_ObserverStrategy () { } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.h b/TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.h index 15f3781eaf5..21b01e17fe0 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.h @@ -58,7 +58,7 @@ class TAO_RTEvent_Serv_Export TAO_EC_ObserverStrategy { public: /// Destructor - virtual ~TAO_EC_ObserverStrategy (void); + virtual ~TAO_EC_ObserverStrategy (); /// The basic methods to support the EC strategies. virtual RtecEventChannelAdmin::Observer_Handle @@ -91,7 +91,7 @@ class TAO_RTEvent_Serv_Export TAO_EC_Null_ObserverStrategy : public TAO_EC_Obser { public: /// Constructor - TAO_EC_Null_ObserverStrategy (void); + TAO_EC_Null_ObserverStrategy (); // = The TAO_EC_ObserverStrategy methods. virtual RtecEventChannelAdmin::Observer_Handle @@ -130,7 +130,7 @@ public: ACE_Lock* lock); /// Destructor - virtual ~TAO_EC_Basic_ObserverStrategy (void); + virtual ~TAO_EC_Basic_ObserverStrategy (); // = The TAO_EC_ObserverStrategy methods. virtual RtecEventChannelAdmin::Observer_Handle @@ -156,7 +156,7 @@ public: */ struct Observer_Entry { - Observer_Entry (void); + Observer_Entry (); Observer_Entry (RtecEventChannelAdmin::Observer_Handle h, RtecEventChannelAdmin::Observer_ptr o); @@ -241,7 +241,7 @@ public: ACE_Lock* lock); /// Destructor - virtual ~TAO_EC_Reactive_ObserverStrategy (void); + virtual ~TAO_EC_Reactive_ObserverStrategy (); protected: /// Helpers. diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.cpp index bc9d38bc388..74b29ea94cf 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.cpp @@ -20,16 +20,16 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_EC_Per_Supplier_Filter:: TAO_EC_Per_Supplier_Filter (TAO_EC_Event_Channel_Base* ec) : event_channel_ (ec), - consumer_ (0), + consumer_ (nullptr), refcnt_ (1) { this->event_channel_->create_proxy_collection (this->collection_); } -TAO_EC_Per_Supplier_Filter::~TAO_EC_Per_Supplier_Filter (void) +TAO_EC_Per_Supplier_Filter::~TAO_EC_Per_Supplier_Filter () { this->event_channel_->destroy_proxy_collection (this->collection_); - this->collection_ = 0; + this->collection_ = nullptr; } void @@ -37,7 +37,7 @@ TAO_EC_Per_Supplier_Filter::bind (TAO_EC_ProxyPushConsumer* consumer) { ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); - if (this->consumer_ == 0) + if (this->consumer_ == nullptr) { this->consumer_ = consumer; } @@ -48,10 +48,10 @@ TAO_EC_Per_Supplier_Filter::unbind (TAO_EC_ProxyPushConsumer* consumer) { ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); - if (this->consumer_ == 0 || this->consumer_ != consumer) + if (this->consumer_ == nullptr || this->consumer_ != consumer) return; - this->consumer_ = 0; + this->consumer_ = nullptr; try { @@ -68,7 +68,7 @@ TAO_EC_Per_Supplier_Filter::connected (TAO_EC_ProxyPushSupplier* supplier) { ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); - if (this->consumer_ != 0) + if (this->consumer_ != nullptr) { const RtecEventChannelAdmin::SupplierQOS& pub = this->consumer_->publications_i (); @@ -104,7 +104,7 @@ TAO_EC_Per_Supplier_Filter::reconnected (TAO_EC_ProxyPushSupplier* supplier) { ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); - if (this->consumer_ != 0) + if (this->consumer_ != nullptr) { const RtecEventChannelAdmin::SupplierQOS& pub = this->consumer_->publications_i (); @@ -135,7 +135,7 @@ TAO_EC_Per_Supplier_Filter::disconnected (TAO_EC_ProxyPushSupplier* supplier) } void -TAO_EC_Per_Supplier_Filter::shutdown (void) +TAO_EC_Per_Supplier_Filter::shutdown () { this->collection_->shutdown (); } @@ -160,7 +160,7 @@ TAO_EC_Per_Supplier_Filter::push_scheduled_event (RtecEventComm::EventSet &event } CORBA::ULong -TAO_EC_Per_Supplier_Filter::_incr_refcnt (void) +TAO_EC_Per_Supplier_Filter::_incr_refcnt () { ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 0); @@ -169,7 +169,7 @@ TAO_EC_Per_Supplier_Filter::_incr_refcnt (void) } CORBA::ULong -TAO_EC_Per_Supplier_Filter::_decr_refcnt (void) +TAO_EC_Per_Supplier_Filter::_decr_refcnt () { { ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 0); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.h index c2a5c559043..079c334476b 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.h @@ -46,7 +46,7 @@ public: TAO_EC_Per_Supplier_Filter (TAO_EC_Event_Channel_Base* ec); /// Destructor - virtual ~TAO_EC_Per_Supplier_Filter (void); + virtual ~TAO_EC_Per_Supplier_Filter (); // = The TAO_EC_Supplier_Filter methods. virtual void bind (TAO_EC_ProxyPushConsumer* consumer); @@ -54,13 +54,13 @@ public: virtual void connected (TAO_EC_ProxyPushSupplier* supplier); virtual void reconnected (TAO_EC_ProxyPushSupplier* supplier); virtual void disconnected (TAO_EC_ProxyPushSupplier* supplier); - virtual void shutdown (void); + virtual void shutdown (); virtual void push (const RtecEventComm::EventSet& event, TAO_EC_ProxyPushConsumer *consumer); virtual void push_scheduled_event (RtecEventComm::EventSet &event, const TAO_EC_QOS_Info &event_info); - virtual CORBA::ULong _decr_refcnt (void); - virtual CORBA::ULong _incr_refcnt (void); + virtual CORBA::ULong _decr_refcnt (); + virtual CORBA::ULong _incr_refcnt (); private: /// The event channel, used to locate the set of consumers. diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.cpp index 855a58e620a..9aa1306d3b4 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.cpp @@ -17,7 +17,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EC_Prefix_Filter_Builder::~TAO_EC_Prefix_Filter_Builder (void) +TAO_EC_Prefix_Filter_Builder::~TAO_EC_Prefix_Filter_Builder () { } @@ -38,7 +38,7 @@ TAO_EC_Prefix_Filter_Builder:: recursive_build ( { CORBA::ULong l = qos.dependencies.length (); if (pos == l) - return 0; + return nullptr; const RtecEventComm::Event& e = qos.dependencies[pos].event; if (e.header.type == ACE_ES_CONJUNCTION_DESIGNATOR) @@ -47,7 +47,7 @@ TAO_EC_Prefix_Filter_Builder:: recursive_build ( CORBA::ULong n = e.header.source; TAO_EC_Filter** children; - ACE_NEW_RETURN (children, TAO_EC_Filter*[n], 0); + ACE_NEW_RETURN (children, TAO_EC_Filter*[n], nullptr); CORBA::ULong i = 0; for (; i != n; ++i) { @@ -61,7 +61,7 @@ TAO_EC_Prefix_Filter_Builder:: recursive_build ( CORBA::ULong n = e.header.source; TAO_EC_Filter** children; - ACE_NEW_RETURN (children, TAO_EC_Filter*[n], 0); + ACE_NEW_RETURN (children, TAO_EC_Filter*[n], nullptr); CORBA::ULong i = 0; for (; i != n; ++i) { @@ -76,7 +76,7 @@ TAO_EC_Prefix_Filter_Builder:: recursive_build ( CORBA::ULong n = e.header.source; TAO_EC_Filter** children; - ACE_NEW_RETURN (children, TAO_EC_Filter*[n], 0); + ACE_NEW_RETURN (children, TAO_EC_Filter*[n], nullptr); CORBA::ULong i = 0; for (; i != n; ++i) { @@ -98,7 +98,7 @@ TAO_EC_Prefix_Filter_Builder:: recursive_build ( pos++; // COnsumer the designator if (pos == qos.dependencies.length ()) - return 0; + return nullptr; CORBA::ULong source_mask = qos.dependencies[pos].event.header.source; CORBA::ULong type_mask = qos.dependencies[pos].event.header.type; pos++; @@ -114,13 +114,13 @@ TAO_EC_Prefix_Filter_Builder:: recursive_build ( pos++; // Consume the designator if (pos == qos.dependencies.length ()) - return 0; + return nullptr; CORBA::ULong source_mask = qos.dependencies[pos].event.header.source; CORBA::ULong type_mask = qos.dependencies[pos].event.header.type; pos++; if (pos == qos.dependencies.length ()) - return 0; + return nullptr; CORBA::ULong source_value = qos.dependencies[pos].event.header.source; CORBA::ULong type_value = qos.dependencies[pos].event.header.type; pos++; diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.h b/TAO/orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.h index 2f83bed94b7..453af2aace7 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.h @@ -42,7 +42,7 @@ public: TAO_EC_Prefix_Filter_Builder (TAO_EC_Event_Channel_Base* ec); /// destructor... - virtual ~TAO_EC_Prefix_Filter_Builder (void); + virtual ~TAO_EC_Prefix_Filter_Builder (); // = The TAO_EC_Filter_Builder methods... TAO_EC_Filter* build (TAO_EC_ProxyPushSupplier *supplier, diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Dispatching.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Dispatching.cpp index 5f5eb1383f6..1908203fd0b 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Dispatching.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Dispatching.cpp @@ -22,7 +22,7 @@ TAO_EC_Priority_Dispatching::TAO_EC_Priority_Dispatching (TAO_EC_Event_Channel_B } void -TAO_EC_Priority_Dispatching::activate (void) +TAO_EC_Priority_Dispatching::activate () { if (this->tasks_ != 0) return; @@ -83,7 +83,7 @@ TAO_EC_Priority_Dispatching::activate (void) } void -TAO_EC_Priority_Dispatching::shutdown (void) +TAO_EC_Priority_Dispatching::shutdown () { if (this->tasks_ == 0) return; diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.cpp index 750d6dd82dd..7f8bae66487 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.cpp @@ -13,7 +13,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EC_Priority_Scheduling::~TAO_EC_Priority_Scheduling (void) +TAO_EC_Priority_Scheduling::~TAO_EC_Priority_Scheduling () { } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.cpp index 9ca4c7a410a..59698a88284 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.cpp @@ -18,7 +18,7 @@ TAO_EC_ProxyPushConsumer:: : event_channel_ (ec), ec_refcount_ (1), connected_ (false), - filter_ (0) + filter_ (nullptr) { this->lock_ = this->event_channel_->create_consumer_lock (); @@ -29,7 +29,7 @@ TAO_EC_ProxyPushConsumer:: this->qos_.is_gateway = false; } -TAO_EC_ProxyPushConsumer::~TAO_EC_ProxyPushConsumer (void) +TAO_EC_ProxyPushConsumer::~TAO_EC_ProxyPushConsumer () { this->event_channel_->destroy_consumer_lock (this->lock_); this->cleanup_i (); @@ -46,7 +46,7 @@ TAO_EC_ProxyPushConsumer::supplier_non_existent ( ACE_Lock, ace_mon, *this->lock_, CORBA::INTERNAL ()); - disconnected = 0; + disconnected = false; if (!this->is_connected_i ()) { disconnected = true; @@ -121,12 +121,12 @@ TAO_EC_ProxyPushConsumer::disconnected (TAO_EC_ProxyPushConsumer*) } void -TAO_EC_ProxyPushConsumer::shutdown_hook (void) +TAO_EC_ProxyPushConsumer::shutdown_hook () { } void -TAO_EC_ProxyPushConsumer::shutdown (void) +TAO_EC_ProxyPushConsumer::shutdown () { RtecEventComm::PushSupplier_var supplier; @@ -140,7 +140,7 @@ TAO_EC_ProxyPushConsumer::shutdown (void) this->shutdown_hook (); - if (this->filter_ != 0) + if (this->filter_ != nullptr) { this->filter_->shutdown (); @@ -165,22 +165,22 @@ TAO_EC_ProxyPushConsumer::shutdown (void) } void -TAO_EC_ProxyPushConsumer::cleanup_i (void) +TAO_EC_ProxyPushConsumer::cleanup_i () { this->supplier_ = RtecEventComm::PushSupplier::_nil (); this->connected_ = false; - if (this->filter_ != 0) + if (this->filter_ != nullptr) { this->filter_->unbind (this); this->filter_->_decr_refcnt (); - this->filter_ = 0; + this->filter_ = nullptr; } } void -TAO_EC_ProxyPushConsumer::deactivate (void) +TAO_EC_ProxyPushConsumer::deactivate () { try { @@ -198,21 +198,21 @@ TAO_EC_ProxyPushConsumer::deactivate (void) } CORBA::ULong -TAO_EC_ProxyPushConsumer::_incr_refcnt (void) +TAO_EC_ProxyPushConsumer::_incr_refcnt () { ACE_GUARD_RETURN (ACE_Lock, ace_mon, *this->lock_, 0); return this->ec_refcount_++; } void -TAO_EC_ProxyPushConsumer::refcount_zero_hook (void) +TAO_EC_ProxyPushConsumer::refcount_zero_hook () { // Use the event channel this->event_channel_->destroy_proxy (this); } CORBA::ULong -TAO_EC_ProxyPushConsumer::_decr_refcnt (void) +TAO_EC_ProxyPushConsumer::_decr_refcnt () { { ACE_GUARD_RETURN (ACE_Lock, ace_mon, *this->lock_, 0); @@ -257,7 +257,7 @@ TAO_EC_ProxyPushConsumer_Guard:: } TAO_EC_ProxyPushConsumer_Guard:: - ~TAO_EC_ProxyPushConsumer_Guard (void) + ~TAO_EC_ProxyPushConsumer_Guard () { // This access is safe because guard objects are created on the // stack, only one thread has access to them diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.h b/TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.h index 4e02c41c415..01fb9781875 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.h @@ -62,27 +62,27 @@ public: TAO_EC_ProxyPushConsumer (TAO_EC_Event_Channel_Base* event_channel); /// destructor... - virtual ~TAO_EC_ProxyPushConsumer (void); + virtual ~TAO_EC_ProxyPushConsumer (); /// Activate in the POA virtual void activate ( RtecEventChannelAdmin::ProxyPushConsumer_ptr &proxy) = 0; /// Deactivate from the POA - virtual void deactivate (void); + virtual void deactivate (); /// Disconnect this from virtual void disconnect_push_consumer () = 0; /// Return false if no supplier is connected... - CORBA::Boolean is_connected (void) const; + CORBA::Boolean is_connected () const; /// Return the consumer object reference. It returns nil() if it has /// not connected yet. - RtecEventComm::PushSupplier_ptr supplier (void) const; + RtecEventComm::PushSupplier_ptr supplier () const; /// The QoS (subscription) used to connect to the EC. - const RtecEventChannelAdmin::SupplierQOS& publications (void) const; + const RtecEventChannelAdmin::SupplierQOS& publications () const; /** * Invoke the _non_existent() pseudo-operation on the supplier. If @@ -104,15 +104,15 @@ public: virtual void disconnected (TAO_EC_ProxyPushConsumer* consumer); /// The event channel is shutting down - virtual void shutdown (void); + virtual void shutdown (); /// The QoS (subscription) used to connect to the EC, assumes the /// locks are held, use with care! - const RtecEventChannelAdmin::SupplierQOS& publications_i (void) const; + const RtecEventChannelAdmin::SupplierQOS& publications_i () const; /// Increment and decrement the reference count. - CORBA::ULong _incr_refcnt (void); - CORBA::ULong _decr_refcnt (void); + CORBA::ULong _incr_refcnt (); + CORBA::ULong _decr_refcnt (); protected: @@ -125,13 +125,13 @@ protected: // The guard needs access to the following protected methods. /// The private version (without locking) of is_connected(). - CORBA::Boolean is_connected_i (void) const; + CORBA::Boolean is_connected_i () const; /// Return the current filter, assumes the locks are held. - TAO_EC_Supplier_Filter *filter_i (void) const; + TAO_EC_Supplier_Filter *filter_i () const; /// Release the filter and the supplier - void cleanup_i (void); + void cleanup_i (); /// The supplier admin, used for activation and memory management. TAO_EC_Event_Channel_Base* event_channel_; @@ -160,10 +160,10 @@ protected: private: /// Template method hooks. - virtual void shutdown_hook (void); - virtual void refcount_zero_hook (void); + virtual void shutdown_hook (); + virtual void refcount_zero_hook (); - virtual PortableServer::ObjectId object_id (void) = 0; + virtual PortableServer::ObjectId object_id () = 0; }; // **************************************************************** @@ -188,10 +188,10 @@ public: TAO_EC_ProxyPushConsumer *proxy); /// Destructor - ~TAO_EC_ProxyPushConsumer_Guard (void); + ~TAO_EC_ProxyPushConsumer_Guard (); /// Returns true if the reference count successfully acquired - bool locked (void) const; + bool locked () const; TAO_EC_Supplier_Filter *filter; diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.cpp index 23d9a366eb9..68c2c3cb5d8 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.cpp @@ -23,7 +23,7 @@ TAO_EC_ProxyPushSupplier::TAO_EC_ProxyPushSupplier (TAO_EC_Event_Channel_Base* e : event_channel_ (ec), refcount_ (1), suspended_ (false), - child_ (0), + child_ (nullptr), consumer_validate_connection_(validate_connection) { this->lock_ = @@ -35,7 +35,7 @@ TAO_EC_ProxyPushSupplier::TAO_EC_ProxyPushSupplier (TAO_EC_Event_Channel_Base* e this->qos_.is_gateway = false; } -TAO_EC_ProxyPushSupplier::~TAO_EC_ProxyPushSupplier (void) +TAO_EC_ProxyPushSupplier::~TAO_EC_ProxyPushSupplier () { this->event_channel_->destroy_supplier_lock (this->lock_); this->cleanup_i (); @@ -80,7 +80,7 @@ TAO_EC_ProxyPushSupplier::disconnected (TAO_EC_ProxyPushSupplier*) } void -TAO_EC_ProxyPushSupplier::shutdown (void) +TAO_EC_ProxyPushSupplier::shutdown () { // Save the consumer we where connected to, we need to send a // disconnect message to it. @@ -116,7 +116,7 @@ TAO_EC_ProxyPushSupplier::shutdown (void) } void -TAO_EC_ProxyPushSupplier::cleanup_i (void) +TAO_EC_ProxyPushSupplier::cleanup_i () { this->consumer_ = RtecEventComm::PushConsumer::_nil (); @@ -124,11 +124,11 @@ TAO_EC_ProxyPushSupplier::cleanup_i (void) // @@ Why don't we have a destroy() method in the // filter_builder? delete this->child_; - this->child_ = 0; + this->child_ = nullptr; } void -TAO_EC_ProxyPushSupplier::deactivate (void) throw () +TAO_EC_ProxyPushSupplier::deactivate () throw () { try { @@ -145,21 +145,21 @@ TAO_EC_ProxyPushSupplier::deactivate (void) throw () } CORBA::ULong -TAO_EC_ProxyPushSupplier::_incr_refcnt (void) +TAO_EC_ProxyPushSupplier::_incr_refcnt () { ACE_GUARD_RETURN (ACE_Lock, ace_mon, *this->lock_, 0); return this->refcount_++; } void -TAO_EC_ProxyPushSupplier::refcount_zero_hook (void) +TAO_EC_ProxyPushSupplier::refcount_zero_hook () { // Use the event channel this->event_channel_->destroy_proxy (this); } CORBA::ULong -TAO_EC_ProxyPushSupplier::_decr_refcnt (void) +TAO_EC_ProxyPushSupplier::_decr_refcnt () { { ACE_GUARD_RETURN (ACE_Lock, ace_mon, *this->lock_, 0); @@ -259,7 +259,7 @@ TAO_EC_ProxyPushSupplier::push (const RtecEventComm::EventSet& event, qos_info); } - if (this->child_ != 0) + if (this->child_ != nullptr) this->child_->clear (); } @@ -308,7 +308,7 @@ TAO_EC_ProxyPushSupplier::push_nocopy (RtecEventComm::EventSet& event, qos_info); } - if (this->child_ != 0) + if (this->child_ != nullptr) this->child_->clear (); } @@ -430,7 +430,7 @@ TAO_EC_ProxyPushSupplier::consumer_non_existent ( } void -TAO_EC_ProxyPushSupplier::clear (void) +TAO_EC_ProxyPushSupplier::clear () { ACE_GUARD (ACE_Lock, ace_mon, *this->lock_); @@ -438,7 +438,7 @@ TAO_EC_ProxyPushSupplier::clear (void) } CORBA::ULong -TAO_EC_ProxyPushSupplier::max_event_size (void) const +TAO_EC_ProxyPushSupplier::max_event_size () const { ACE_GUARD_RETURN (ACE_Lock, ace_mon, *this->lock_, 0); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.h b/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.h index 68b378bcb3e..65e699545b2 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.h @@ -62,32 +62,32 @@ public: TAO_EC_ProxyPushSupplier (TAO_EC_Event_Channel_Base* event_channel, int validate_connection); /// Destructor... - virtual ~TAO_EC_ProxyPushSupplier (void); + virtual ~TAO_EC_ProxyPushSupplier (); /// Activate in the POA virtual void activate ( RtecEventChannelAdmin::ProxyPushSupplier_ptr &proxy) = 0; /// Deactivate from the POA - virtual void deactivate (void) throw (); + virtual void deactivate () throw (); /// Disconnect this from virtual void disconnect_push_supplier () = 0; /// Return false if no consumer is connected... - CORBA::Boolean is_connected (void) const; + CORBA::Boolean is_connected () const; /// Return true if it is suspended. - CORBA::Boolean is_suspended (void) const; + CORBA::Boolean is_suspended () const; /** * Return the consumer object reference. It returns nil() if it has * not connected yet. */ - RtecEventComm::PushConsumer_ptr consumer (void) const; + RtecEventComm::PushConsumer_ptr consumer () const; /// The QoS (subscription) used to connect to the EC. - const RtecEventChannelAdmin::ConsumerQOS& subscriptions (void) const; + const RtecEventChannelAdmin::ConsumerQOS& subscriptions () const; /// Concrete implementations can use this methods to keep track of /// the suppliers that publish its events. @@ -102,7 +102,7 @@ public: virtual void disconnected (TAO_EC_ProxyPushSupplier *supplier); /// The event channel is shutting down - virtual void shutdown (void); + virtual void shutdown (); /// Pushes to the consumer, verifies that it is connected and that it /// is not suspended. @@ -124,8 +124,8 @@ public: CORBA::Boolean consumer_non_existent (CORBA::Boolean_out disconnected); /// Increment and decrement the reference count. - CORBA::ULong _incr_refcnt (void); - CORBA::ULong _decr_refcnt (void); + CORBA::ULong _incr_refcnt (); + CORBA::ULong _decr_refcnt (); // = The TAO_EC_Filter methods, only push() is implemented... virtual int filter (const RtecEventComm::EventSet &event, @@ -136,8 +136,8 @@ public: TAO_EC_QOS_Info& qos_info); virtual void push_nocopy (RtecEventComm::EventSet &event, TAO_EC_QOS_Info &qos_info); - virtual void clear (void); - virtual CORBA::ULong max_event_size (void) const; + virtual void clear (); + virtual CORBA::ULong max_event_size () const; virtual int can_match (const RtecEventComm::EventHeader &header) const; virtual int add_dependencies (const RtecEventComm::EventHeader &header, const TAO_EC_QOS_Info &qos_info); @@ -148,16 +148,16 @@ protected: void consumer (RtecEventComm::PushConsumer_ptr consumer); void consumer_i (RtecEventComm::PushConsumer_ptr consumer); - void suspend_connection_i (void); - void resume_connection_i (void); - void suspend_connection_locked (void); - void resume_connection_locked (void); + void suspend_connection_i (); + void resume_connection_i (); + void suspend_connection_locked (); + void resume_connection_locked (); /// The private version (without locking) of is_connected(). - CORBA::Boolean is_connected_i (void) const; + CORBA::Boolean is_connected_i () const; /// Release the child and the consumer - void cleanup_i (void); + void cleanup_i (); /// The Event Channel that owns this object. TAO_EC_Event_Channel_Base* event_channel_; @@ -188,9 +188,9 @@ protected: private: /// Template method hooks. - virtual void refcount_zero_hook (void); + virtual void refcount_zero_hook (); virtual void pre_dispatch_hook (RtecEventComm::EventSet&); - virtual PortableServer::ObjectId object_id (void) = 0; + virtual PortableServer::ObjectId object_id () = 0; }; TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_QOS_Info.h b/TAO/orbsvcs/orbsvcs/Event/EC_QOS_Info.h index 701f280f40e..97e7fef5c6d 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_QOS_Info.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_QOS_Info.h @@ -40,7 +40,7 @@ class TAO_RTEvent_Serv_Export TAO_EC_QOS_Info { public: /// Constructor - TAO_EC_QOS_Info (void); + TAO_EC_QOS_Info (); /// Copy constructor, it does the obvious thing, but if it is not /// here the HP/aCC compiler breaks. diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Dispatching.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Dispatching.cpp index cb057292fc2..07ecf59d97c 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Dispatching.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Dispatching.cpp @@ -19,13 +19,13 @@ TAO_EC_RTCORBA_Dispatching:: this->tasks_[i].thr_mgr (&this->thread_manager_); } -TAO_EC_RTCORBA_Dispatching::~TAO_EC_RTCORBA_Dispatching (void) +TAO_EC_RTCORBA_Dispatching::~TAO_EC_RTCORBA_Dispatching () { delete[] this->tasks_; } void -TAO_EC_RTCORBA_Dispatching::activate (void) +TAO_EC_RTCORBA_Dispatching::activate () { for (CORBA::ULong i = 0; i != this->lanes_.length (); ++i) { @@ -48,7 +48,7 @@ TAO_EC_RTCORBA_Dispatching::activate (void) } void -TAO_EC_RTCORBA_Dispatching::shutdown (void) +TAO_EC_RTCORBA_Dispatching::shutdown () { for (CORBA::ULong i = 0; i != this->lanes_.length (); ++i) { diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Factory.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Factory.cpp index 01d6063199d..8c0d8d3723a 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Factory.cpp @@ -15,7 +15,7 @@ TAO_EC_RTCORBA_Factory:: { } -TAO_EC_RTCORBA_Factory::~TAO_EC_RTCORBA_Factory (void) +TAO_EC_RTCORBA_Factory::~TAO_EC_RTCORBA_Factory () { } @@ -27,7 +27,7 @@ TAO_EC_RTCORBA_Factory::init (int argc, ACE_TCHAR* argv[]) } int -TAO_EC_RTCORBA_Factory::fini (void) +TAO_EC_RTCORBA_Factory::fini () { return this->body_->fini (); } @@ -212,7 +212,7 @@ TAO_EC_RTCORBA_Factory::destroy_proxy_push_supplier_collection (TAO_EC_ProxyPush } ACE_Lock* -TAO_EC_RTCORBA_Factory::create_consumer_lock (void) +TAO_EC_RTCORBA_Factory::create_consumer_lock () { return this->body_->create_consumer_lock (); } @@ -224,7 +224,7 @@ TAO_EC_RTCORBA_Factory::destroy_consumer_lock (ACE_Lock* x) } ACE_Lock* -TAO_EC_RTCORBA_Factory::create_supplier_lock (void) +TAO_EC_RTCORBA_Factory::create_supplier_lock () { return this->body_->create_supplier_lock (); } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.cpp index e23bf2bc0fa..585b4a0e10e 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.cpp @@ -35,7 +35,7 @@ TAO_EC_Reactive_ConsumerControl:: this->orb_->orb_core ()->reactor (); } -TAO_EC_Reactive_ConsumerControl::~TAO_EC_Reactive_ConsumerControl (void) +TAO_EC_Reactive_ConsumerControl::~TAO_EC_Reactive_ConsumerControl () { } @@ -88,7 +88,7 @@ TAO_EC_Reactive_ConsumerControl::handle_timeout ( } int -TAO_EC_Reactive_ConsumerControl::activate (void) +TAO_EC_Reactive_ConsumerControl::activate () { #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0 try @@ -117,7 +117,7 @@ TAO_EC_Reactive_ConsumerControl::activate (void) // handle_timeout uses these policies, if done in front, the channel // can crash when the timeout expires before initiazation is ready. timer_id_ = this->reactor_->schedule_timer (&this->adapter_, - 0, + nullptr, this->rate_, this->rate_); if (timer_id_ == -1) @@ -134,14 +134,14 @@ TAO_EC_Reactive_ConsumerControl::activate (void) } int -TAO_EC_Reactive_ConsumerControl::shutdown (void) +TAO_EC_Reactive_ConsumerControl::shutdown () { int r = 0; #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0 r = this->reactor_->cancel_timer (timer_id_); #endif /* TAO_HAS_CORBA_MESSAGING */ - this->adapter_.reactor (0); + this->adapter_.reactor (nullptr); return r; } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.h b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.h index 5218d068061..3d4f9b0645a 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.h @@ -77,15 +77,15 @@ public: CORBA::ORB_ptr orb); /// Destructor. - virtual ~TAO_EC_Reactive_ConsumerControl (void); + virtual ~TAO_EC_Reactive_ConsumerControl (); /// Receive the timeout from the adapter void handle_timeout (const ACE_Time_Value &tv, const void* arg); // = Documented in TAO_EC_ConsumerControl - virtual int activate (void); - virtual int shutdown (void); + virtual int activate (); + virtual int shutdown (); virtual void consumer_not_exist (TAO_EC_ProxyPushSupplier *proxy); virtual void system_exception (TAO_EC_ProxyPushSupplier *proxy, CORBA::SystemException &); @@ -93,7 +93,7 @@ public: private: /// Check if the consumers still exists. It is a helper method for /// handle_timeout() to isolate the exceptions. - void query_consumers (void); + void query_consumers (); private: /// The polling rate diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Dispatching.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Dispatching.cpp index f9011dc1df8..1a2dee5f5d9 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Dispatching.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Dispatching.cpp @@ -5,18 +5,18 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EC_Reactive_Dispatching::TAO_EC_Reactive_Dispatching (void) +TAO_EC_Reactive_Dispatching::TAO_EC_Reactive_Dispatching () : TAO_EC_Dispatching () { } void -TAO_EC_Reactive_Dispatching::activate (void) +TAO_EC_Reactive_Dispatching::activate () { } void -TAO_EC_Reactive_Dispatching::shutdown (void) +TAO_EC_Reactive_Dispatching::shutdown () { } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Dispatching.h b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Dispatching.h index 2ede72e6740..ce9c76ad799 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Dispatching.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Dispatching.h @@ -39,11 +39,11 @@ class TAO_RTEvent_Serv_Export TAO_EC_Reactive_Dispatching : public TAO_EC_Dispat public: /// The scheduler is used to find the range of priorities and similar /// info. - TAO_EC_Reactive_Dispatching (void); + TAO_EC_Reactive_Dispatching (); // = The EC_Dispatching methods. - virtual void activate (void); - virtual void shutdown (void); + virtual void activate (); + virtual void shutdown (); virtual void push (TAO_EC_ProxyPushSupplier *proxy, RtecEventComm::PushConsumer_ptr consumer, const RtecEventComm::EventSet &event, diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.cpp index 070edd73045..b76dc2aa4e7 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.cpp @@ -35,7 +35,7 @@ TAO_EC_Reactive_SupplierControl:: this->orb_->orb_core ()->reactor (); } -TAO_EC_Reactive_SupplierControl::~TAO_EC_Reactive_SupplierControl (void) +TAO_EC_Reactive_SupplierControl::~TAO_EC_Reactive_SupplierControl () { } @@ -80,7 +80,7 @@ TAO_EC_Reactive_SupplierControl::handle_timeout ( } int -TAO_EC_Reactive_SupplierControl::activate (void) +TAO_EC_Reactive_SupplierControl::activate () { #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0 try @@ -110,7 +110,7 @@ TAO_EC_Reactive_SupplierControl::activate (void) // handle_timeout uses these policies, if done in front, the channel // can crash when the timeout expires before initiazation is ready. timer_id_ = this->reactor_->schedule_timer (&this->adapter_, - 0, + nullptr, this->rate_, this->rate_); if (timer_id_ == -1) @@ -127,14 +127,14 @@ TAO_EC_Reactive_SupplierControl::activate (void) } int -TAO_EC_Reactive_SupplierControl::shutdown (void) +TAO_EC_Reactive_SupplierControl::shutdown () { int r = 0; #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0 r = this->reactor_->cancel_timer (timer_id_); #endif /* TAO_HAS_CORBA_MESSAGING */ - this->adapter_.reactor (0); + this->adapter_.reactor (nullptr); return r; } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.h b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.h index 949cd581af7..64ae0a9f4e7 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.h @@ -87,15 +87,15 @@ public: CORBA::ORB_ptr orb); /// Destructor. - virtual ~TAO_EC_Reactive_SupplierControl (void); + virtual ~TAO_EC_Reactive_SupplierControl (); /// Receive the timeout from the adapter void handle_timeout (const ACE_Time_Value &tv, const void* arg); // = Documented in TAO_EC_SupplierControl - virtual int activate (void); - virtual int shutdown (void); + virtual int activate (); + virtual int shutdown (); virtual void supplier_not_exist (TAO_EC_ProxyPushConsumer *proxy); virtual void system_exception (TAO_EC_ProxyPushConsumer *proxy, CORBA::SystemException &); @@ -103,7 +103,7 @@ public: private: /// Check if the suppliers still exists. It is a helper method for /// handle_timeout() to isolate the exceptions. - void query_suppliers (void); + void query_suppliers (); private: /// The polling rate diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.cpp index 19acc6826e1..ae33ca08734 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.cpp @@ -9,20 +9,20 @@ TAO_EC_Reactive_Timeout_Generator:: { } -TAO_EC_Reactive_Timeout_Generator::~TAO_EC_Reactive_Timeout_Generator (void) +TAO_EC_Reactive_Timeout_Generator::~TAO_EC_Reactive_Timeout_Generator () { } void -TAO_EC_Reactive_Timeout_Generator::activate (void) +TAO_EC_Reactive_Timeout_Generator::activate () { } void -TAO_EC_Reactive_Timeout_Generator::shutdown (void) +TAO_EC_Reactive_Timeout_Generator::shutdown () { this->reactor_->cancel_timer (&this->event_handler_); - this->event_handler_.reactor (0); + this->event_handler_.reactor (nullptr); } int diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.h b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.h index 4e7a0a6b7d4..1076a3e41d3 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.h @@ -42,11 +42,11 @@ public: TAO_EC_Reactive_Timeout_Generator (ACE_Reactor *reactor = 0); /// destructor - virtual ~TAO_EC_Reactive_Timeout_Generator (void); + virtual ~TAO_EC_Reactive_Timeout_Generator (); // = The TAO_EC_Timeout_Generator methods. - virtual void activate (void); - virtual void shutdown (void); + virtual void activate (); + virtual void shutdown (); virtual int schedule_timer (TAO_EC_Timeout_Filter* filter, const ACE_Time_Value& delta, const ACE_Time_Value& interval); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Factory.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Factory.cpp index 56c9af969ee..edc5a380c27 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Factory.cpp @@ -18,7 +18,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EC_Sched_Factory::~TAO_EC_Sched_Factory (void) +TAO_EC_Sched_Factory::~TAO_EC_Sched_Factory () { } @@ -162,7 +162,7 @@ TAO_EC_Sched_Factory::init (int argc, ACE_TCHAR* argv[]) } int -TAO_EC_Sched_Factory::fini (void) +TAO_EC_Sched_Factory::fini () { return 0; } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter.cpp index d85da896b8f..99a0693f1f7 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter.cpp @@ -27,25 +27,25 @@ TAO_EC_Sched_Filter:: this->adopt_child (this->body_); } -TAO_EC_Sched_Filter::~TAO_EC_Sched_Filter (void) +TAO_EC_Sched_Filter::~TAO_EC_Sched_Filter () { delete this->body_; } TAO_EC_Filter::ChildrenIterator -TAO_EC_Sched_Filter::begin (void) const +TAO_EC_Sched_Filter::begin () const { return this->body_->begin (); } TAO_EC_Filter::ChildrenIterator -TAO_EC_Sched_Filter::end (void) const +TAO_EC_Sched_Filter::end () const { return this->body_->end (); } int -TAO_EC_Sched_Filter::size (void) const +TAO_EC_Sched_Filter::size () const { return this->body_->size (); } @@ -117,13 +117,13 @@ TAO_EC_Sched_Filter::push_nocopy (RtecEventComm::EventSet &event, } void -TAO_EC_Sched_Filter::clear (void) +TAO_EC_Sched_Filter::clear () { this->body_->clear (); } CORBA::ULong -TAO_EC_Sched_Filter::max_event_size (void) const +TAO_EC_Sched_Filter::max_event_size () const { return this->body_->max_event_size (); } @@ -172,7 +172,7 @@ TAO_EC_Sched_Filter::get_qos_info (TAO_EC_QOS_Info& qos_info) } void -TAO_EC_Sched_Filter::init_rt_info (void) +TAO_EC_Sched_Filter::init_rt_info () { if (this->rt_info_computed_) return; diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter_Builder.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter_Builder.cpp index 6db96184ed2..3df2fa9f386 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter_Builder.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter_Builder.cpp @@ -17,7 +17,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EC_Sched_Filter_Builder::~TAO_EC_Sched_Filter_Builder (void) +TAO_EC_Sched_Filter_Builder::~TAO_EC_Sched_Filter_Builder () { } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Scheduling_Strategy.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Scheduling_Strategy.cpp index 88ca6abf682..ea13e8047b4 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Scheduling_Strategy.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Scheduling_Strategy.cpp @@ -5,7 +5,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EC_Scheduling_Strategy::~TAO_EC_Scheduling_Strategy (void) +TAO_EC_Scheduling_Strategy::~TAO_EC_Scheduling_Strategy () { } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Scheduling_Strategy.h b/TAO/orbsvcs/orbsvcs/Event/EC_Scheduling_Strategy.h index ecb4532fc30..6216f869b2c 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Scheduling_Strategy.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Scheduling_Strategy.h @@ -47,7 +47,7 @@ class TAO_RTEvent_Serv_Export TAO_EC_Scheduling_Strategy { public: /// Destructor - virtual ~TAO_EC_Scheduling_Strategy (void); + virtual ~TAO_EC_Scheduling_Strategy (); /// Add all the dependencies between @a supplier and @a consumer virtual void add_proxy_supplier_dependencies ( diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_SupplierAdmin.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_SupplierAdmin.cpp index 7ed8c79aad1..e31589276a4 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_SupplierAdmin.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_SupplierAdmin.cpp @@ -17,18 +17,18 @@ TAO_EC_SupplierAdmin::TAO_EC_SupplierAdmin (TAO_EC_Event_Channel_Base *ec) this->event_channel_->supplier_poa (); } -TAO_EC_SupplierAdmin::~TAO_EC_SupplierAdmin (void) +TAO_EC_SupplierAdmin::~TAO_EC_SupplierAdmin () { } RtecEventChannelAdmin::ProxyPushConsumer_ptr -TAO_EC_SupplierAdmin::obtain_push_consumer (void) +TAO_EC_SupplierAdmin::obtain_push_consumer () { return this->obtain (); } PortableServer::POA_ptr -TAO_EC_SupplierAdmin::_default_POA (void) +TAO_EC_SupplierAdmin::_default_POA () { return PortableServer::POA::_duplicate (this->default_POA_.in ()); } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_SupplierAdmin.h b/TAO/orbsvcs/orbsvcs/Event/EC_SupplierAdmin.h index a6aae47eb68..d388cb29734 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_SupplierAdmin.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_SupplierAdmin.h @@ -48,14 +48,14 @@ public: TAO_EC_SupplierAdmin (TAO_EC_Event_Channel_Base* event_channel); /// destructor... - virtual ~TAO_EC_SupplierAdmin (void); + virtual ~TAO_EC_SupplierAdmin (); // = The RtecEventChannelAdmin::SupplierAdmin methods... virtual RtecEventChannelAdmin::ProxyPushConsumer_ptr - obtain_push_consumer (void); + obtain_push_consumer (); // = The PortableServer::ServantBase methods - virtual PortableServer::POA_ptr _default_POA (void); + virtual PortableServer::POA_ptr _default_POA (); private: /// Store the default POA. diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_SupplierControl.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_SupplierControl.cpp index a24ce675bb2..5519b5b9022 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_SupplierControl.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_SupplierControl.cpp @@ -4,22 +4,22 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EC_SupplierControl::TAO_EC_SupplierControl (void) +TAO_EC_SupplierControl::TAO_EC_SupplierControl () { } -TAO_EC_SupplierControl::~TAO_EC_SupplierControl (void) +TAO_EC_SupplierControl::~TAO_EC_SupplierControl () { } int -TAO_EC_SupplierControl::activate (void) +TAO_EC_SupplierControl::activate () { return 0; } int -TAO_EC_SupplierControl::shutdown (void) +TAO_EC_SupplierControl::shutdown () { return 0; } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_SupplierControl.h b/TAO/orbsvcs/orbsvcs/Event/EC_SupplierControl.h index 68a36a5ea74..99d3805f1df 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_SupplierControl.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_SupplierControl.h @@ -47,15 +47,15 @@ class TAO_RTEvent_Serv_Export TAO_EC_SupplierControl { public: /// Constructor. - TAO_EC_SupplierControl (void); + TAO_EC_SupplierControl (); /// Destructor. - virtual ~TAO_EC_SupplierControl (void); + virtual ~TAO_EC_SupplierControl (); /// Activate any internal threads or timers used to poll the state of /// the suppliers - virtual int activate (void); - virtual int shutdown (void); + virtual int activate (); + virtual int shutdown (); /** * Invoked by helper classes when they detect that a supplier does diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter.cpp index 3534ca66a7c..46ea1b4e70e 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter.cpp @@ -10,7 +10,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EC_Supplier_Filter::~TAO_EC_Supplier_Filter (void) +TAO_EC_Supplier_Filter::~TAO_EC_Supplier_Filter () { } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter.h index 50872b9d5aa..e5f8204bbc0 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter.h @@ -67,7 +67,7 @@ class TAO_RTEvent_Serv_Export TAO_EC_Supplier_Filter { public: /// Destructor - virtual ~TAO_EC_Supplier_Filter (void); + virtual ~TAO_EC_Supplier_Filter (); /** * Whenever a ProxyPushConsumer is initialized it calls this method @@ -96,7 +96,7 @@ public: virtual void disconnected (TAO_EC_ProxyPushSupplier *supplier) = 0; /// The event channel is shutting down. - virtual void shutdown (void) = 0; + virtual void shutdown () = 0; /// The ProxyPushConsumer delegates on this class to actually send /// the event. @@ -110,8 +110,8 @@ public: /// Increment and decrement the reference count, locking must be /// provided by the user. - virtual CORBA::ULong _incr_refcnt (void) = 0; - virtual CORBA::ULong _decr_refcnt (void) = 0; + virtual CORBA::ULong _incr_refcnt () = 0; + virtual CORBA::ULong _decr_refcnt () = 0; }; // **************************************************************** diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter_Builder.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter_Builder.cpp index 02b830ff850..446058b3f45 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter_Builder.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter_Builder.cpp @@ -4,7 +4,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EC_Supplier_Filter_Builder::~TAO_EC_Supplier_Filter_Builder (void) +TAO_EC_Supplier_Filter_Builder::~TAO_EC_Supplier_Filter_Builder () { } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter_Builder.h b/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter_Builder.h index b23635b80af..0a363d62a02 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter_Builder.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter_Builder.h @@ -41,7 +41,7 @@ class TAO_RTEvent_Serv_Export TAO_EC_Supplier_Filter_Builder { public: /// Destructor... - virtual ~TAO_EC_Supplier_Filter_Builder (void); + virtual ~TAO_EC_Supplier_Filter_Builder (); /** * Create the filter. The consumer is bound to the returned diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching.cpp index d932bb3c9ac..bd3ad9b9094 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching.cpp @@ -22,7 +22,7 @@ TAO_EC_TPC_Dispatching::TAO_EC_TPC_Dispatching (int , , consumer_task_map_(TAO_EC_TPC_DISPATCHING_DEFAULT_MAP_SIZE) , queue_full_service_object_(so) { - ACE_ASSERT (this->queue_full_service_object_ != 0); + ACE_ASSERT (this->queue_full_service_object_ != nullptr); } TAO_EC_TPC_Dispatching::~TAO_EC_TPC_Dispatching () @@ -68,13 +68,13 @@ TAO_EC_TPC_Dispatching::add_consumer (RtecEventComm::PushConsumer_ptr consumer) int bindresult = this->consumer_task_map_.bind (RtecEventComm::PushConsumer::_duplicate(pc.in()), dtask); - const char* explanation = 0; + const char* explanation = nullptr; if (bindresult == -1) explanation = "general failure"; else if (bindresult == 1) explanation = "entry already exists"; - if (explanation != 0) + if (explanation != nullptr) { ORBSVCS_DEBUG ((LM_WARNING, "EC (%P|%t): TPC_Dispatching::add_consumer failed to bind consumer (%@)" @@ -94,7 +94,7 @@ TAO_EC_TPC_Dispatching::remove_consumer (RtecEventComm::PushConsumer_ptr consume { ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, -1); - TAO_EC_Dispatching_Task* dtask = 0; + TAO_EC_Dispatching_Task* dtask = nullptr; if (this->consumer_task_map_.find (consumer, dtask) == -1) { @@ -119,12 +119,12 @@ TAO_EC_TPC_Dispatching::remove_consumer (RtecEventComm::PushConsumer_ptr consume } void -TAO_EC_TPC_Dispatching::activate (void) +TAO_EC_TPC_Dispatching::activate () { } void -TAO_EC_TPC_Dispatching::shutdown (void) +TAO_EC_TPC_Dispatching::shutdown () { ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); @@ -133,7 +133,7 @@ TAO_EC_TPC_Dispatching::shutdown (void) MAPTYPE::ITERATOR iter = this->consumer_task_map_.begin (); while (! iter.done()) { - MAPTYPE::ENTRY* entry = 0; + MAPTYPE::ENTRY* entry = nullptr; if (! iter.next(entry)) continue; @@ -148,7 +148,7 @@ TAO_EC_TPC_Dispatching::shutdown (void) iter = this->consumer_task_map_.begin (); while (! iter.done()) { - MAPTYPE::ENTRY* entry = 0; + MAPTYPE::ENTRY* entry = nullptr; if (! iter.next(entry)) continue; @@ -179,7 +179,7 @@ TAO_EC_TPC_Dispatching::push_nocopy (TAO_EC_ProxyPushSupplier* proxy, ORBSVCS_DEBUG ((LM_DEBUG, "EC (%P|%t) TPC_Dispatching::push_nocopy(supplier=%@,consumer=%@)\n", proxy, consumer)); ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); - TAO_EC_Dispatching_Task* dtask = 0; + TAO_EC_Dispatching_Task* dtask = nullptr; if (this->consumer_task_map_.find (consumer, dtask) == -1) { diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching.h b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching.h index d5af34899bf..6715b883f17 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching.h @@ -44,8 +44,8 @@ public: ~TAO_EC_TPC_Dispatching (); // = The EC_Dispatching methods. - virtual void activate (void); - virtual void shutdown (void); + virtual void activate (); + virtual void shutdown (); virtual void push (TAO_EC_ProxyPushSupplier* proxy, RtecEventComm::PushConsumer_ptr consumer, const RtecEventComm::EventSet& event, diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Factory.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Factory.cpp index d4904b5a195..52af0795fc3 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Factory.cpp @@ -17,17 +17,17 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL unsigned long TAO_EC_TPC_debug_level; -TAO_EC_TPC_Factory::TAO_EC_TPC_Factory (void) +TAO_EC_TPC_Factory::TAO_EC_TPC_Factory () { TAO_EC_TPC_debug_level = 0; } -TAO_EC_TPC_Factory::~TAO_EC_TPC_Factory (void) +TAO_EC_TPC_Factory::~TAO_EC_TPC_Factory () { } int -TAO_EC_TPC_Factory::init_svcs (void) +TAO_EC_TPC_Factory::init_svcs () { TAO_EC_Simple_Queue_Full_Action::init_svcs(); return ACE_Service_Config::static_svcs ()-> diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Factory.h b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Factory.h index 2e5fbed19b0..e7e189cf5cd 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Factory.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Factory.h @@ -30,14 +30,14 @@ class TAO_RTEvent_Serv_Export TAO_EC_TPC_Factory : public TAO_EC_Default_Factory { public: /// Constructor - TAO_EC_TPC_Factory (void); + TAO_EC_TPC_Factory (); /// destructor... - virtual ~TAO_EC_TPC_Factory (void); + virtual ~TAO_EC_TPC_Factory (); /// Helper function to register the default factory into the service /// configurator. - static int init_svcs (void); + static int init_svcs (); // = The Service_Object entry points virtual int init (int argc, ACE_TCHAR* argv[]); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxyConsumer.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxyConsumer.cpp index 0b60d49d1cf..d781c1702e2 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxyConsumer.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxyConsumer.cpp @@ -13,7 +13,7 @@ TAO_EC_TPC_ProxyPushConsumer::TAO_EC_TPC_ProxyPushConsumer (TAO_EC_Event_Channel } TAO_EC_TPC_Dispatching* -TAO_EC_TPC_ProxyPushConsumer::tpc_dispatching (void) +TAO_EC_TPC_ProxyPushConsumer::tpc_dispatching () { TAO_EC_Dispatching* dispatcher = this->event_channel_->dispatching (); TAO_EC_TPC_Dispatching* tpcdispatcher = @@ -21,7 +21,7 @@ TAO_EC_TPC_ProxyPushConsumer::tpc_dispatching (void) return tpcdispatcher; } -TAO_EC_TPC_ProxyPushConsumer::~TAO_EC_TPC_ProxyPushConsumer (void) +TAO_EC_TPC_ProxyPushConsumer::~TAO_EC_TPC_ProxyPushConsumer () { // @@@ Do I need to call the logic to remove the consumer from the // dispatch map in here? I'm not sure... But, if I do, then I need @@ -32,7 +32,7 @@ TAO_EC_TPC_ProxyPushConsumer::~TAO_EC_TPC_ProxyPushConsumer (void) } void -TAO_EC_TPC_ProxyPushConsumer::disconnect_push_consumer (void) +TAO_EC_TPC_ProxyPushConsumer::disconnect_push_consumer () { RtecEventComm::PushConsumer_var emulated_exceptions_suck = this->_this (); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxyConsumer.h b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxyConsumer.h index 8b617a74f95..a6077c76874 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxyConsumer.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxyConsumer.h @@ -29,9 +29,9 @@ class TAO_RTEvent_Serv_Export TAO_EC_TPC_ProxyPushConsumer : { public: TAO_EC_TPC_ProxyPushConsumer (TAO_EC_Event_Channel_Base* ec); - virtual ~TAO_EC_TPC_ProxyPushConsumer (void); + virtual ~TAO_EC_TPC_ProxyPushConsumer (); - virtual void disconnect_push_consumer (void); + virtual void disconnect_push_consumer (); private: typedef TAO_EC_Default_ProxyPushConsumer BASECLASS; diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.cpp index a45da4bd065..6438de63fbf 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.cpp @@ -12,12 +12,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL extern unsigned long TAO_EC_TPC_debug_level; -TAO_EC_TPC_ProxyPushSupplier::~TAO_EC_TPC_ProxyPushSupplier (void) +TAO_EC_TPC_ProxyPushSupplier::~TAO_EC_TPC_ProxyPushSupplier () { } void -TAO_EC_TPC_ProxyPushSupplier:: disconnect_push_supplier (void) +TAO_EC_TPC_ProxyPushSupplier:: disconnect_push_supplier () { if (TAO_EC_TPC_debug_level > 0) ORBSVCS_DEBUG ((LM_DEBUG, "EC (%P|%t): enter EC_TPC_ProxySupplier::disconnect_push_supplier (%@): consumer=%@\n", diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.h b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.h index 5fd466c2f11..c2183f1b1b4 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.h @@ -28,7 +28,7 @@ public: TAO_EC_TPC_ProxyPushSupplier (TAO_EC_Event_Channel_Base* event_channel, int validate_connection); /// Dtor - virtual ~TAO_EC_TPC_ProxyPushSupplier (void); + virtual ~TAO_EC_TPC_ProxyPushSupplier (); /*! These are overridden from the base class in order to maintain the map in the dispatcher class. */ @@ -38,7 +38,7 @@ public: RtecEventComm::PushConsumer_ptr push_consumer, const RtecEventChannelAdmin::ConsumerQOS &qos); - virtual void disconnect_push_supplier (void); + virtual void disconnect_push_supplier (); private: typedef TAO_EC_Default_ProxyPushSupplier BASECLASS; diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Thread_Flags.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Thread_Flags.cpp index 77617b17086..a08142d98ab 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Thread_Flags.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Thread_Flags.cpp @@ -53,18 +53,18 @@ TAO_EC_Thread_Flags::parse_symbols (const char* syms) flags_ = scope_ = sched_ = 0; // zero out everything // short-circuit on the trivial case - if (syms == 0 || *syms == '\0') + if (syms == nullptr || *syms == '\0') return; static size_t num_flags = sizeof(supported_flags_)/sizeof(Supported_Flag); char* s = ACE_OS::strdup (syms); // need a mutable string - if (s == 0) + if (s == nullptr) return; const char* SEPARATORS = " |"; // this should probably be at class level - char* ptr = 0; + char* ptr = nullptr; char* tok = ACE_OS::strtok_r (s, SEPARATORS, &ptr); - while (tok != 0) + while (tok != nullptr) { // This would allow for easy accomodation of flags that // aren't currently supported, but is it a good idea? @@ -76,7 +76,7 @@ TAO_EC_Thread_Flags::parse_symbols (const char* syms) // If somebody specifies the scheduler this way, then they // lose range checking on the priority. Bummer, but those // are the breaks. - this->flags_ |= ACE_OS::strtol (tok, 0, 0); + this->flags_ |= ACE_OS::strtol (tok, nullptr, 0); } else { @@ -114,7 +114,7 @@ TAO_EC_Thread_Flags::parse_symbols (const char* syms) tok)); } } - tok = ACE_OS::strtok_r (0, SEPARATORS, &ptr); + tok = ACE_OS::strtok_r (nullptr, SEPARATORS, &ptr); } ACE_OS::free (s); // clean up after ourselves diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Filter.cpp index dde8279502e..cd4e008260d 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Filter.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Filter.cpp @@ -55,7 +55,7 @@ TAO_EC_Timeout_Filter::TAO_EC_Timeout_Filter ( // this->id_)); } -TAO_EC_Timeout_Filter::~TAO_EC_Timeout_Filter (void) +TAO_EC_Timeout_Filter::~TAO_EC_Timeout_Filter () { this->event_channel_->timeout_generator ()->cancel_timer (this->qos_info_, this->id_); @@ -67,7 +67,7 @@ TAO_EC_Timeout_Filter::push_to_proxy (const RtecEventComm::EventSet& event, { qos_info.timer_id_ = this->id_; - if (this->supplier_ != 0) + if (this->supplier_ != nullptr) this->supplier_->filter (event, qos_info); } @@ -77,7 +77,7 @@ TAO_EC_Timeout_Filter::filter (const RtecEventComm::EventSet &event, TAO_EC_QOS_Info &qos_info) { if (qos_info.timer_id_ == this->id_ - && this->parent () != 0) + && this->parent () != nullptr) { this->parent ()->push (event, qos_info); return 1; @@ -90,7 +90,7 @@ TAO_EC_Timeout_Filter::filter_nocopy (RtecEventComm::EventSet &event, TAO_EC_QOS_Info &qos_info) { if (qos_info.timer_id_ == this->id_ - && this->parent () != 0) + && this->parent () != nullptr) { this->parent ()->push_nocopy (event, qos_info); return 1; @@ -111,7 +111,7 @@ TAO_EC_Timeout_Filter::push_nocopy (RtecEventComm::EventSet&, } void -TAO_EC_Timeout_Filter::clear (void) +TAO_EC_Timeout_Filter::clear () { if (this->type_ == ACE_ES_EVENT_DEADLINE_TIMEOUT) { @@ -133,7 +133,7 @@ TAO_EC_Timeout_Filter::clear (void) } CORBA::ULong -TAO_EC_Timeout_Filter::max_event_size (void) const +TAO_EC_Timeout_Filter::max_event_size () const { return 1; } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Filter.h index 333266db7d4..917b2ef4b83 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Filter.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Filter.h @@ -48,13 +48,13 @@ public: RtecEventComm::Time period); /// Destructor. - virtual ~TAO_EC_Timeout_Filter (void); + virtual ~TAO_EC_Timeout_Filter (); /// Return the QOS_Info for this Timeout filter. - const TAO_EC_QOS_Info& qos_info (void) const; + const TAO_EC_QOS_Info& qos_info () const; /// The type of timeout event that we generate. - RtecEventComm::EventType type (void) const; + RtecEventComm::EventType type () const; /// Callback from the Timeout_Generator void push_to_proxy (const RtecEventComm::EventSet& event, @@ -70,8 +70,8 @@ public: TAO_EC_QOS_Info& qos_info); virtual void push_nocopy (RtecEventComm::EventSet& event, TAO_EC_QOS_Info& qos_info); - virtual void clear (void); - virtual CORBA::ULong max_event_size (void) const; + virtual void clear (); + virtual CORBA::ULong max_event_size () const; virtual int can_match (const RtecEventComm::EventHeader& header) const; virtual int add_dependencies (const RtecEventComm::EventHeader& header, const TAO_EC_QOS_Info &qos_info); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.cpp index 60278f39599..fd2f50c1dc3 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.cpp @@ -8,7 +8,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EC_Timeout_Generator::~TAO_EC_Timeout_Generator (void) +TAO_EC_Timeout_Generator::~TAO_EC_Timeout_Generator () { } @@ -26,7 +26,7 @@ TAO_EC_Timeout_Adapter::handle_timeout (const ACE_Time_Value & /* tv */, TAO_EC_Timeout_Filter *filter = static_cast<TAO_EC_Timeout_Filter*> (const_cast<void*> (vp)); - if (filter == 0) + if (filter == nullptr) return 0; try @@ -35,7 +35,7 @@ TAO_EC_Timeout_Adapter::handle_timeout (const ACE_Time_Value & /* tv */, e.header.type = filter->type (); e.header.source = 0; - RtecEventComm::EventSet single_event (1, 1, &e, 0); + RtecEventComm::EventSet single_event (1, 1, &e, false); TAO_EC_QOS_Info qos_info = filter->qos_info (); filter->push_to_proxy (single_event, diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.h b/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.h index 32f0a576ed5..3ef4d586c2c 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.h @@ -46,14 +46,14 @@ class TAO_RTEvent_Serv_Export TAO_EC_Timeout_Generator { public: /// destructor - virtual ~TAO_EC_Timeout_Generator (void); + virtual ~TAO_EC_Timeout_Generator (); /// Activate any internal threads. - virtual void activate (void) = 0; + virtual void activate () = 0; /// Deactivate any internal threads, clients can destroy the object /// after calling this method. - virtual void shutdown (void) = 0; + virtual void shutdown () = 0; /// Add a timer at the given priority, returns the timer ID. virtual int schedule_timer (TAO_EC_Timeout_Filter* filter, @@ -80,7 +80,7 @@ class TAO_RTEvent_Serv_Export TAO_EC_Timeout_Adapter : public ACE_Event_Handler { public: /// Default construction. - TAO_EC_Timeout_Adapter (void); + TAO_EC_Timeout_Adapter (); private: /// Casts @a act to EC_Filter and dispatches an event to it. diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Trivial_Supplier_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Trivial_Supplier_Filter.cpp index 7dea70568b6..1ec13c1e230 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Trivial_Supplier_Filter.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Trivial_Supplier_Filter.cpp @@ -44,7 +44,7 @@ TAO_EC_Trivial_Supplier_Filter::disconnected (TAO_EC_ProxyPushSupplier*) } void -TAO_EC_Trivial_Supplier_Filter::shutdown (void) +TAO_EC_Trivial_Supplier_Filter::shutdown () { } @@ -68,13 +68,13 @@ TAO_EC_Trivial_Supplier_Filter::push_scheduled_event (RtecEventComm::EventSet &e } CORBA::ULong -TAO_EC_Trivial_Supplier_Filter::_incr_refcnt (void) +TAO_EC_Trivial_Supplier_Filter::_incr_refcnt () { return 1; } CORBA::ULong -TAO_EC_Trivial_Supplier_Filter::_decr_refcnt (void) +TAO_EC_Trivial_Supplier_Filter::_decr_refcnt () { return 1; } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Trivial_Supplier_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_Trivial_Supplier_Filter.h index 0282d01b7c7..64994b1f55f 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Trivial_Supplier_Filter.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Trivial_Supplier_Filter.h @@ -54,13 +54,13 @@ public: virtual void connected (TAO_EC_ProxyPushSupplier* supplier); virtual void reconnected (TAO_EC_ProxyPushSupplier* supplier); virtual void disconnected (TAO_EC_ProxyPushSupplier* supplier); - virtual void shutdown (void); + virtual void shutdown (); virtual void push (const RtecEventComm::EventSet& event, TAO_EC_ProxyPushConsumer *consumer); virtual void push_scheduled_event (RtecEventComm::EventSet &event, const TAO_EC_QOS_Info &event_info); - virtual CORBA::ULong _decr_refcnt (void); - virtual CORBA::ULong _incr_refcnt (void); + virtual CORBA::ULong _decr_refcnt (); + virtual CORBA::ULong _incr_refcnt (); private: /// The event channel, used to locate the set of consumers. diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Type_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Type_Filter.cpp index 77bcb2af011..56ec593b2ea 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Type_Filter.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Type_Filter.cpp @@ -43,7 +43,7 @@ void TAO_EC_Type_Filter::push (const RtecEventComm::EventSet& event, TAO_EC_QOS_Info& qos_info) { - if (this->parent () != 0) + if (this->parent () != nullptr) this->parent ()->push (event, qos_info); } @@ -51,17 +51,17 @@ void TAO_EC_Type_Filter::push_nocopy (RtecEventComm::EventSet& event, TAO_EC_QOS_Info& qos_info) { - if (this->parent () != 0) + if (this->parent () != nullptr) this->parent ()->push_nocopy (event, qos_info); } void -TAO_EC_Type_Filter::clear (void) +TAO_EC_Type_Filter::clear () { } CORBA::ULong -TAO_EC_Type_Filter::max_event_size (void) const +TAO_EC_Type_Filter::max_event_size () const { return 1; } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Type_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_Type_Filter.h index 180d39815ef..4e50f2cc5ca 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Type_Filter.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Type_Filter.h @@ -48,8 +48,8 @@ public: TAO_EC_QOS_Info& qos_info); virtual void push_nocopy (RtecEventComm::EventSet& event, TAO_EC_QOS_Info& qos_info); - virtual void clear (void); - virtual CORBA::ULong max_event_size (void) const; + virtual void clear (); + virtual CORBA::ULong max_event_size () const; virtual int can_match (const RtecEventComm::EventHeader& header) const; virtual int add_dependencies (const RtecEventComm::EventHeader& header, const TAO_EC_QOS_Info &qos_info); diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_UDP_Admin.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_UDP_Admin.cpp index 5068fd0edfc..553fdfb6c63 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_UDP_Admin.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_UDP_Admin.cpp @@ -8,7 +8,7 @@ TAO_EC_Simple_AddrServer::TAO_EC_Simple_AddrServer (CORBA::UShort port) { } -TAO_EC_Simple_AddrServer::~TAO_EC_Simple_AddrServer (void) +TAO_EC_Simple_AddrServer::~TAO_EC_Simple_AddrServer () { } diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_UDP_Admin.h b/TAO/orbsvcs/orbsvcs/Event/EC_UDP_Admin.h index ffe71480a01..51ab32225a3 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_UDP_Admin.h +++ b/TAO/orbsvcs/orbsvcs/Event/EC_UDP_Admin.h @@ -40,7 +40,7 @@ public: TAO_EC_Simple_AddrServer (CORBA::UShort port); /// Destructor - virtual ~TAO_EC_Simple_AddrServer (void); + virtual ~TAO_EC_Simple_AddrServer (); // = The RtecUDPAdmin::AddrServer methods virtual void get_addr (const RtecEventComm::EventHeader& header, diff --git a/TAO/orbsvcs/orbsvcs/Event_Utilities.cpp b/TAO/orbsvcs/orbsvcs/Event_Utilities.cpp index aaee3390c4a..3768edc213e 100644 --- a/TAO/orbsvcs/orbsvcs/Event_Utilities.cpp +++ b/TAO/orbsvcs/orbsvcs/Event_Utilities.cpp @@ -25,7 +25,7 @@ ACE_ConsumerQOS_Factory:: qos_.dependencies.length (0); } -ACE_ConsumerQOS_Factory::~ACE_ConsumerQOS_Factory (void) +ACE_ConsumerQOS_Factory::~ACE_ConsumerQOS_Factory () { } @@ -72,7 +72,7 @@ ACE_ConsumerQOS_Factory::start_logical_and_group (int nchildren) } int -ACE_ConsumerQOS_Factory::start_negation (void) +ACE_ConsumerQOS_Factory::start_negation () { int l = qos_.dependencies.length (); qos_.dependencies.length (l + 1); diff --git a/TAO/orbsvcs/orbsvcs/Event_Utilities.h b/TAO/orbsvcs/orbsvcs/Event_Utilities.h index ce31c1afdaf..1b6671c5093 100644 --- a/TAO/orbsvcs/orbsvcs/Event_Utilities.h +++ b/TAO/orbsvcs/orbsvcs/Event_Utilities.h @@ -98,7 +98,7 @@ public: CORBA::ULong qos_max_len = 0); /// Death and destruction. - ~ACE_ConsumerQOS_Factory (void); + ~ACE_ConsumerQOS_Factory (); /** * The Event Channel waits until all the children have accepted at @@ -117,7 +117,7 @@ public: /// The consumer wants all the events *except* the group that /// follows. - int start_negation (void); + int start_negation (); /// Insert a bitmask filter, this acts as a quick rejection mechanism /// for the subsequent filters. @@ -136,7 +136,7 @@ public: CORBA::ULong type_value); /// Insert a node that accepts any event, useful for bitmask filters. - int insert_null_terminator (void); + int insert_null_terminator (); // = Insert operations add to the current conjunction or disjunction // group. These return 0 on success, -1 on failure. Before insert @@ -179,10 +179,10 @@ public: /// Allows conversions to ConsumerQOS, which is expected by the /// PushSupplierProxy::connect_push_consumer interface. - const RtecEventChannelAdmin::ConsumerQOS &get_ConsumerQOS (void); + const RtecEventChannelAdmin::ConsumerQOS &get_ConsumerQOS (); /// Calls this->get_ConsumerQOS. - operator const RtecEventChannelAdmin::ConsumerQOS &(void); + operator const RtecEventChannelAdmin::ConsumerQOS &(); static void debug (const RtecEventChannelAdmin::ConsumerQOS& qos); @@ -224,10 +224,10 @@ public: /// Allows conversions to SupplierQOS, which is expected by the /// PushSupplierProxy::connect_push_supplier interface. - const RtecEventChannelAdmin::SupplierQOS &get_SupplierQOS (void); + const RtecEventChannelAdmin::SupplierQOS &get_SupplierQOS (); /// Calls this->get_SupplierQOS(). - operator const RtecEventChannelAdmin::SupplierQOS &(void); + operator const RtecEventChannelAdmin::SupplierQOS &(); static void debug (const RtecEventChannelAdmin::SupplierQOS& qos); diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.cpp index c0e3ab94736..f3203343855 100644 --- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.cpp +++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.cpp @@ -15,13 +15,13 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL TimeBase::TimeT -TAO_FT_Request_Duration_Policy::request_duration_policy_value (void) +TAO_FT_Request_Duration_Policy::request_duration_policy_value () { return this->request_duration_; } CORBA::PolicyType -TAO_FT_Request_Duration_Policy::policy_type (void) +TAO_FT_Request_Duration_Policy::policy_type () { return FT::REQUEST_DURATION_POLICY; } @@ -43,7 +43,7 @@ TAO_FT_Request_Duration_Policy::create (const CORBA::Any& val) } TAO_FT_Request_Duration_Policy * -TAO_FT_Request_Duration_Policy::clone (void) const +TAO_FT_Request_Duration_Policy::clone () const { TAO_FT_Request_Duration_Policy *copy = 0; ACE_NEW_RETURN (copy, @@ -53,7 +53,7 @@ TAO_FT_Request_Duration_Policy::clone (void) const } CORBA::Policy_ptr -TAO_FT_Request_Duration_Policy::copy (void) +TAO_FT_Request_Duration_Policy::copy () { TAO_FT_Request_Duration_Policy* tmp = 0; ACE_NEW_THROW_EX (tmp, TAO_FT_Request_Duration_Policy (*this), @@ -64,7 +64,7 @@ TAO_FT_Request_Duration_Policy::copy (void) } void -TAO_FT_Request_Duration_Policy::destroy (void) +TAO_FT_Request_Duration_Policy::destroy () { } @@ -89,7 +89,7 @@ TAO_FT_Request_Duration_Policy::set_time_value (ACE_Time_Value &time_value) /*****************************************************************/ FT::HeartbeatPolicyValue -TAO_FT_Heart_Beat_Policy::heartbeat_policy_value (void) +TAO_FT_Heart_Beat_Policy::heartbeat_policy_value () { FT::HeartbeatPolicyValue val; val.heartbeat = this->heartbeat_; @@ -120,14 +120,14 @@ TAO_FT_Heart_Beat_Policy::create (const CORBA::Any& val) CORBA::PolicyType -TAO_FT_Heart_Beat_Policy::policy_type (void) +TAO_FT_Heart_Beat_Policy::policy_type () { return FT::HEARTBEAT_POLICY; } CORBA::Policy_ptr -TAO_FT_Heart_Beat_Policy::copy (void) +TAO_FT_Heart_Beat_Policy::copy () { TAO_FT_Heart_Beat_Policy * tmp = 0; ACE_NEW_THROW_EX (tmp, TAO_FT_Heart_Beat_Policy (*this), @@ -138,7 +138,7 @@ TAO_FT_Heart_Beat_Policy::copy (void) } TAO_FT_Heart_Beat_Policy * -TAO_FT_Heart_Beat_Policy::clone (void) const +TAO_FT_Heart_Beat_Policy::clone () const { TAO_FT_Heart_Beat_Policy *copy = 0; ACE_NEW_RETURN (copy, @@ -148,7 +148,7 @@ TAO_FT_Heart_Beat_Policy::clone (void) const } void -TAO_FT_Heart_Beat_Policy::destroy (void) +TAO_FT_Heart_Beat_Policy::destroy () { } diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.cpp index dda812b88b0..51faf3010a7 100644 --- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.cpp +++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.cpp @@ -18,7 +18,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL namespace TAO { - FT_ClientRequest_Interceptor::FT_ClientRequest_Interceptor (void) + FT_ClientRequest_Interceptor::FT_ClientRequest_Interceptor () : name_ ("TAO_FT_ClientRequest_Interceptor") , uuid_ (0) , lock_ (0) @@ -36,20 +36,20 @@ namespace TAO } - FT_ClientRequest_Interceptor::~FT_ClientRequest_Interceptor (void) + FT_ClientRequest_Interceptor::~FT_ClientRequest_Interceptor () { delete this->uuid_; delete this->lock_; } char * - FT_ClientRequest_Interceptor::name (void) + FT_ClientRequest_Interceptor::name () { return CORBA::string_dup (this->name_); } void - FT_ClientRequest_Interceptor::destroy (void) + FT_ClientRequest_Interceptor::destroy () { } diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientService_Activate.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientService_Activate.cpp index 11844309254..51ec9ccd7ea 100644 --- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientService_Activate.cpp +++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientService_Activate.cpp @@ -10,11 +10,11 @@ static bool initialized = false; TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_FT_ClientService_Activate::TAO_FT_ClientService_Activate (void) +TAO_FT_ClientService_Activate::TAO_FT_ClientService_Activate () { } -TAO_FT_ClientService_Activate::~TAO_FT_ClientService_Activate (void) +TAO_FT_ClientService_Activate::~TAO_FT_ClientService_Activate () { } @@ -35,7 +35,7 @@ TAO_FT_ClientService_Activate::activate_services (TAO_ORB_Core *orb_core) int -TAO_FT_ClientService_Activate::Initializer (void) +TAO_FT_ClientService_Activate::Initializer () { if (initialized == false) { diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Endpoint_Selector_Factory.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Endpoint_Selector_Factory.cpp index 10f9aa9c141..dc4a86e8883 100644 --- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Endpoint_Selector_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Endpoint_Selector_Factory.cpp @@ -4,12 +4,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_FT_Endpoint_Selector_Factory::TAO_FT_Endpoint_Selector_Factory (void) +TAO_FT_Endpoint_Selector_Factory::TAO_FT_Endpoint_Selector_Factory () : ft_endpoint_selector_ (0) { } -TAO_FT_Endpoint_Selector_Factory::~TAO_FT_Endpoint_Selector_Factory (void) +TAO_FT_Endpoint_Selector_Factory::~TAO_FT_Endpoint_Selector_Factory () { delete this->ft_endpoint_selector_; } diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.cpp index 638686d0048..9bd5d50ffe9 100644 --- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.cpp +++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.cpp @@ -12,12 +12,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_FT_Invocation_Endpoint_Selector::TAO_FT_Invocation_Endpoint_Selector (void) +TAO_FT_Invocation_Endpoint_Selector::TAO_FT_Invocation_Endpoint_Selector () : TAO_Default_Endpoint_Selector () { } -TAO_FT_Invocation_Endpoint_Selector::~TAO_FT_Invocation_Endpoint_Selector (void) +TAO_FT_Invocation_Endpoint_Selector::~TAO_FT_Invocation_Endpoint_Selector () { } diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicy_i.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicy_i.cpp index 75e3b09891d..195f5c2bdce 100644 --- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicy_i.cpp +++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicy_i.cpp @@ -38,14 +38,14 @@ TAO_FT_Heart_Beat_Enabled_Policy::create (const CORBA::Any& val) } CORBA::PolicyType -TAO_FT_Heart_Beat_Enabled_Policy::policy_type (void) +TAO_FT_Heart_Beat_Enabled_Policy::policy_type () { return FT::HEARTBEAT_ENABLED_POLICY; } CORBA::Policy_ptr -TAO_FT_Heart_Beat_Enabled_Policy::copy (void) +TAO_FT_Heart_Beat_Enabled_Policy::copy () { TAO_FT_Heart_Beat_Enabled_Policy * tmp = 0; ACE_NEW_THROW_EX (tmp, TAO_FT_Heart_Beat_Enabled_Policy (*this), @@ -56,7 +56,7 @@ TAO_FT_Heart_Beat_Enabled_Policy::copy (void) } TAO_FT_Heart_Beat_Enabled_Policy * -TAO_FT_Heart_Beat_Enabled_Policy::clone (void) const +TAO_FT_Heart_Beat_Enabled_Policy::clone () const { TAO_FT_Heart_Beat_Enabled_Policy *copy = 0; ACE_NEW_RETURN (copy, @@ -66,7 +66,7 @@ TAO_FT_Heart_Beat_Enabled_Policy::clone (void) const } void -TAO_FT_Heart_Beat_Enabled_Policy::destroy (void) +TAO_FT_Heart_Beat_Enabled_Policy::destroy () { } diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.cpp index 85e8eabfff0..4b62b30cb21 100644 --- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.cpp +++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.cpp @@ -12,7 +12,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL namespace TAO { - FT_ServerRequest_Interceptor::FT_ServerRequest_Interceptor (void) + FT_ServerRequest_Interceptor::FT_ServerRequest_Interceptor () : object_group_ref_version_ (0) , is_primary_ (false) , iogr_ (0) @@ -20,18 +20,18 @@ namespace TAO { } - FT_ServerRequest_Interceptor::~FT_ServerRequest_Interceptor (void) + FT_ServerRequest_Interceptor::~FT_ServerRequest_Interceptor () { } char * - FT_ServerRequest_Interceptor::name (void) + FT_ServerRequest_Interceptor::name () { return CORBA::string_dup ("TAO_FT_ServerRequest_Interceptor"); } void - FT_ServerRequest_Interceptor::destroy (void) + FT_ServerRequest_Interceptor::destroy () { } diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerService_Activate.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerService_Activate.cpp index e48abf59844..06b3cd218b0 100644 --- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerService_Activate.cpp +++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerService_Activate.cpp @@ -9,16 +9,16 @@ static bool initialized = false; TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_FT_ServerService_Activate::TAO_FT_ServerService_Activate (void) +TAO_FT_ServerService_Activate::TAO_FT_ServerService_Activate () { } -TAO_FT_ServerService_Activate::~TAO_FT_ServerService_Activate (void) +TAO_FT_ServerService_Activate::~TAO_FT_ServerService_Activate () { } int -TAO_FT_ServerService_Activate::Initializer (void) +TAO_FT_ServerService_Activate::Initializer () { if (initialized == false) { diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.cpp index e4ab0334684..2e87871cfb0 100644 --- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.cpp +++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.cpp @@ -19,7 +19,7 @@ TAO_FT_Service_Callbacks::TAO_FT_Service_Callbacks (TAO_ORB_Core *) { } -TAO_FT_Service_Callbacks::~TAO_FT_Service_Callbacks (void) +TAO_FT_Service_Callbacks::~TAO_FT_Service_Callbacks () { } @@ -325,7 +325,7 @@ TAO_FT_Service_Callbacks::restart_policy_check ( } TimeBase::TimeT -TAO_FT_Service_Callbacks::now (void) +TAO_FT_Service_Callbacks::now () { // Grab the localtime on the machine where this is running ACE_Time_Value time_val = ACE_OS::gettimeofday (); diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.cpp index 2437068b3eb..0049477f82a 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.cpp @@ -18,18 +18,18 @@ FTRT_ClientORB_Interceptor (CORBA::Long transaction_depth) { } -FTRT_ClientORB_Interceptor::~FTRT_ClientORB_Interceptor (void) +FTRT_ClientORB_Interceptor::~FTRT_ClientORB_Interceptor () { } char * -FTRT_ClientORB_Interceptor::name (void) +FTRT_ClientORB_Interceptor::name () { return CORBA::string_dup (this->myname_); } void -FTRT_ClientORB_Interceptor::destroy (void) +FTRT_ClientORB_Interceptor::destroy () { } diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Loader.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Loader.cpp index 0e9e8568433..19d68d23691 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Loader.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Loader.cpp @@ -10,11 +10,11 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL namespace TAO_FTRT { - FTRT_ClientORB_Loader::FTRT_ClientORB_Loader (void) + FTRT_ClientORB_Loader::FTRT_ClientORB_Loader () { } - FTRT_ClientORB_Loader::~FTRT_ClientORB_Loader (void) + FTRT_ClientORB_Loader::~FTRT_ClientORB_Loader () { } diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Primary_Replication_Strategy.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Primary_Replication_Strategy.cpp index 80a00b4b270..9d2b52cebc4 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Primary_Replication_Strategy.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Primary_Replication_Strategy.cpp @@ -24,17 +24,17 @@ AMI_Primary_Replication_Strategy::~AMI_Primary_Replication_Strategy() this->wait(); } -int AMI_Primary_Replication_Strategy::acquire_read (void) +int AMI_Primary_Replication_Strategy::acquire_read () { return mutex_ ? mutex_->acquire_read() : 0; } -int AMI_Primary_Replication_Strategy::acquire_write (void) +int AMI_Primary_Replication_Strategy::acquire_write () { return mutex_ ? mutex_->acquire_write() : 0; } -int AMI_Primary_Replication_Strategy::release (void) +int AMI_Primary_Replication_Strategy::release () { return mutex_ ? mutex_->release() : 0; } diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Replication_Strategy.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Replication_Strategy.cpp index 8a8416ab398..7ebb7de55a9 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Replication_Strategy.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Replication_Strategy.cpp @@ -38,23 +38,23 @@ AMI_Replication_Strategy::make_primary_strategy() { AMI_Primary_Replication_Strategy* result; ACE_NEW_RETURN(result, AMI_Primary_Replication_Strategy(mt_), 0); - auto_ptr<AMI_Primary_Replication_Strategy> holder(result); + std::unique_ptr<AMI_Primary_Replication_Strategy> holder(result); if (result->activate() == 0) return holder.release(); return 0; } -int AMI_Replication_Strategy::acquire_read (void) +int AMI_Replication_Strategy::acquire_read () { return 0; } -int AMI_Replication_Strategy::acquire_write (void) +int AMI_Replication_Strategy::acquire_write () { return 0; } -int AMI_Replication_Strategy::release (void) +int AMI_Replication_Strategy::release () { return 0; } diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Basic_Replication_Strategy.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Basic_Replication_Strategy.cpp index 4c9a470ec4c..7c8551d649b 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Basic_Replication_Strategy.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Basic_Replication_Strategy.cpp @@ -21,7 +21,7 @@ Basic_Replication_Strategy::~Basic_Replication_Strategy() } void -Basic_Replication_Strategy::check_validity(void) +Basic_Replication_Strategy::check_validity() { FTRT::SequenceNumber seq_no = Request_Context_Repository().get_sequence_number(); @@ -118,17 +118,17 @@ Basic_Replication_Strategy::add_member(const FTRT::ManagerInfo & info, } while (!finished); } -int Basic_Replication_Strategy::acquire_read (void) +int Basic_Replication_Strategy::acquire_read () { return mutex_ ? mutex_->acquire_read() : 0; } -int Basic_Replication_Strategy::acquire_write (void) +int Basic_Replication_Strategy::acquire_write () { return mutex_ ? mutex_->acquire_write() : 0; } -int Basic_Replication_Strategy::release (void) +int Basic_Replication_Strategy::release () { return mutex_ ? mutex_->release() : 0; } diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ConsumerAdmin.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ConsumerAdmin.cpp index 2fe7edd1eaa..d41ed665aed 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ConsumerAdmin.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ConsumerAdmin.cpp @@ -17,12 +17,12 @@ TAO_FTEC_ConsumerAdmin::TAO_FTEC_ConsumerAdmin (TAO_EC_Event_Channel_Base *ec) { } -TAO_FTEC_ConsumerAdmin::~TAO_FTEC_ConsumerAdmin (void) +TAO_FTEC_ConsumerAdmin::~TAO_FTEC_ConsumerAdmin () { } RtecEventChannelAdmin::ProxyPushSupplier_ptr -TAO_FTEC_ConsumerAdmin::obtain_push_supplier (void) +TAO_FTEC_ConsumerAdmin::obtain_push_supplier () { ORBSVCS_DEBUG((LM_DEBUG,"obtain_push_supplier\n" )); return obtain_proxy(); diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel.cpp index 3ed1b7628f0..a0d88dd93f7 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel.cpp @@ -148,13 +148,13 @@ void TAO_FTEC_Event_Channel::oneway_set_update ( RtecEventChannelAdmin::ConsumerAdmin_ptr -TAO_FTEC_Event_Channel::for_consumers (void) +TAO_FTEC_Event_Channel::for_consumers () { return ec_impl_->for_consumers(); } RtecEventChannelAdmin::SupplierAdmin_ptr -TAO_FTEC_Event_Channel::for_suppliers (void) +TAO_FTEC_Event_Channel::for_suppliers () { return ec_impl_->for_suppliers(); } @@ -168,7 +168,7 @@ TAO_FTEC_Event_Channel::set_state (const FTRT::State & s) } void -TAO_FTEC_Event_Channel::destroy (void) +TAO_FTEC_Event_Channel::destroy () { if (Fault_Detector::instance()) Fault_Detector::instance()->stop(); diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.cpp index 66f7793c896..1a346c32385 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.cpp @@ -226,7 +226,7 @@ TAO_FTEC_Event_Channel_Impl::activate_object ( /// The default implementation is: /// this->consumer_admin ()->_this (); RtecEventChannelAdmin::ConsumerAdmin_ptr -TAO_FTEC_Event_Channel_Impl::for_consumers (void) +TAO_FTEC_Event_Channel_Impl::for_consumers () { CORBA::Object_var obj = consumer_admin()->reference(); obj = IOGR_Maker::instance()->forge_iogr(obj.in()); @@ -237,7 +237,7 @@ TAO_FTEC_Event_Channel_Impl::for_consumers (void) /// The default implementation is: /// this->supplier_admin ()->_this (); RtecEventChannelAdmin::SupplierAdmin_ptr -TAO_FTEC_Event_Channel_Impl::for_suppliers (void) +TAO_FTEC_Event_Channel_Impl::for_suppliers () { CORBA::Object_var obj = supplier_admin()->reference(); obj = IOGR_Maker::instance()->forge_iogr(obj.in()); @@ -419,14 +419,14 @@ void TAO_FTEC_Event_Channel_Impl::set_update (const FTRT::State & s) } -TAO_FTEC_ConsumerAdmin* TAO_FTEC_Event_Channel_Impl::consumer_admin (void) const +TAO_FTEC_ConsumerAdmin* TAO_FTEC_Event_Channel_Impl::consumer_admin () const { return static_cast<TAO_FTEC_ConsumerAdmin*> (TAO_EC_Event_Channel_Base::consumer_admin()); } /// Access the supplier admin implementation, useful for controlling /// the activation... -TAO_FTEC_SupplierAdmin* TAO_FTEC_Event_Channel_Impl::supplier_admin (void) const +TAO_FTEC_SupplierAdmin* TAO_FTEC_Event_Channel_Impl::supplier_admin () const { return static_cast<TAO_FTEC_SupplierAdmin*> (TAO_EC_Event_Channel_Base::supplier_admin()); } diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Factory.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Factory.cpp index 6056a120fe9..90d4d1f2071 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Factory.cpp @@ -8,7 +8,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_FTEC_Basic_Factory::TAO_FTEC_Basic_Factory (void) +TAO_FTEC_Basic_Factory::TAO_FTEC_Basic_Factory () { } diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Group_Manager.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Group_Manager.cpp index f1c24c01f4d..9e559b2fa09 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Group_Manager.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Group_Manager.cpp @@ -116,7 +116,7 @@ void TAO_FTEC_Group_Manager::add_member ( TAO_FTRTEC::Log(1, ACE_TEXT("add_member location = <%s>\n"), (const char*)info.the_location[0].id); - auto_ptr<TAO_FTEC_Group_Manager_Impl> new_impl(new TAO_FTEC_Group_Manager_Impl); + std::unique_ptr<TAO_FTEC_Group_Manager_Impl> new_impl(new TAO_FTEC_Group_Manager_Impl); new_impl->my_position = impl_->my_position; size_t pos = impl_->info_list.length(); diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxyConsumer.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxyConsumer.cpp index 6701e3ad7cd..62577d767b0 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxyConsumer.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxyConsumer.cpp @@ -68,7 +68,7 @@ void TAO_FTEC_ProxyPushConsumer::connect_push_supplier ( } } -void TAO_FTEC_ProxyPushConsumer::disconnect_push_consumer (void) +void TAO_FTEC_ProxyPushConsumer::disconnect_push_consumer () { if (Request_Context_Repository().is_executed_request()) return; diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.cpp index 34b5848c15b..c962ed0542a 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.cpp @@ -70,7 +70,7 @@ void TAO_FTEC_ProxyPushSupplier::connect_push_consumer ( } -void TAO_FTEC_ProxyPushSupplier::disconnect_push_supplier (void) +void TAO_FTEC_ProxyPushSupplier::disconnect_push_supplier () { if (Request_Context_Repository().is_executed_request()) return; @@ -88,7 +88,7 @@ void TAO_FTEC_ProxyPushSupplier::disconnect_push_supplier (void) } -void TAO_FTEC_ProxyPushSupplier::suspend_connection (void) +void TAO_FTEC_ProxyPushSupplier::suspend_connection () { if (Request_Context_Repository().is_executed_request()) return; @@ -113,7 +113,7 @@ void TAO_FTEC_ProxyPushSupplier::suspend_connection (void) } } -void TAO_FTEC_ProxyPushSupplier::resume_connection (void) +void TAO_FTEC_ProxyPushSupplier::resume_connection () { if (Request_Context_Repository().is_executed_request()) return; diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_SupplierAdmin.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_SupplierAdmin.cpp index 0240e85014c..f8a274de7fb 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_SupplierAdmin.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_SupplierAdmin.cpp @@ -21,7 +21,7 @@ TAO_FTEC_SupplierAdmin::~TAO_FTEC_SupplierAdmin() RtecEventChannelAdmin::ProxyPushConsumer_ptr -TAO_FTEC_SupplierAdmin::obtain_push_consumer (void) +TAO_FTEC_SupplierAdmin::obtain_push_consumer () { return obtain_proxy(); } diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_Base.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_Base.cpp index e8f4ae86d5f..5ee21412e22 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_Base.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_Base.cpp @@ -26,14 +26,14 @@ FT_ProxyAdmin_Base::activate(const FtRtecEventComm::ObjectId& oid) const FtRtecEventComm::ObjectId& -FT_ProxyAdmin_Base::object_id(void) const +FT_ProxyAdmin_Base::object_id() const { return object_id_; } CORBA::Object_var -FT_ProxyAdmin_Base::reference(void) const +FT_ProxyAdmin_Base::reference() const { return poa_->servant_to_reference(servant_); } diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector.cpp index 8f04f5d83be..909cc006159 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector.cpp @@ -11,7 +11,7 @@ Fault_Detector::ReactorTask::ReactorTask() } int -Fault_Detector::ReactorTask::svc (void) +Fault_Detector::ReactorTask::svc () { this->reactor_.owner(ACE_OS::thr_self()); this->reactor_.run_reactor_event_loop(); diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_Loader.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_Loader.cpp index 7485754612d..8cddd9bcb50 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_Loader.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_Loader.cpp @@ -18,11 +18,11 @@ namespace FTRTEC { ACE_SOCK_Connector, ConnectionDetectHandler<ACE_SOCK_STREAM> > TCP_Fault_Detector; - Fault_Detector_Loader::Fault_Detector_Loader (void) + Fault_Detector_Loader::Fault_Detector_Loader () { } - Fault_Detector_Loader::~Fault_Detector_Loader (void) + Fault_Detector_Loader::~Fault_Detector_Loader () { } diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ForwardCtrlServerInterceptor.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ForwardCtrlServerInterceptor.cpp index 788a65217af..7a7ea02de09 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ForwardCtrlServerInterceptor.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ForwardCtrlServerInterceptor.cpp @@ -67,12 +67,12 @@ ForwardCtrlServerInterceptor::~ForwardCtrlServerInterceptor() { } -char * ForwardCtrlServerInterceptor::name (void) +char * ForwardCtrlServerInterceptor::name () { return CORBA::string_dup("ForwardCtrlServerInterceptor"); } -void ForwardCtrlServerInterceptor::destroy (void) +void ForwardCtrlServerInterceptor::destroy () { } diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FtEventServiceInterceptor.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FtEventServiceInterceptor.cpp index 8796c03aca0..aa5763720eb 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FtEventServiceInterceptor.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FtEventServiceInterceptor.cpp @@ -180,13 +180,13 @@ FtEventServiceInterceptor::instance() } char * -FtEventServiceInterceptor::name (void) +FtEventServiceInterceptor::name () { return CORBA::string_dup ("FtEventServiceInterceptor"); } void -FtEventServiceInterceptor::destroy (void) +FtEventServiceInterceptor::destroy () { } diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ObjectGroupManagerHandler.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ObjectGroupManagerHandler.cpp index 97c83c66083..715f06ede3b 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ObjectGroupManagerHandler.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ObjectGroupManagerHandler.cpp @@ -21,7 +21,7 @@ ObjectGroupManagerHandler::start_excep (::Messaging::ExceptionHolder *) { } -void ObjectGroupManagerHandler::create_group (void) +void ObjectGroupManagerHandler::create_group () { } @@ -32,7 +32,7 @@ ObjectGroupManagerHandler::create_group_excep (::Messaging::ExceptionHolder *) } void -ObjectGroupManagerHandler::add_member (void) +ObjectGroupManagerHandler::add_member () { if (--num_backups_ ==0) evt_.signal(); @@ -45,7 +45,7 @@ ObjectGroupManagerHandler::add_member_excep (::Messaging::ExceptionHolder *) } void -ObjectGroupManagerHandler::set_state (void) +ObjectGroupManagerHandler::set_state () { } diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Service.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Service.cpp index 9f43f278154..52656b42fba 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Service.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Service.cpp @@ -15,7 +15,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL namespace FTRTEC { namespace { - auto_ptr<Replication_Strategy> replication_strategy; + std::unique_ptr<Replication_Strategy> replication_strategy; int threads = 1; Replication_Service* service; } @@ -108,7 +108,7 @@ namespace FTRTEC } } - void Replication_Service::check_validity(void) + void Replication_Service::check_validity() { replication_strategy->check_validity(); } @@ -152,21 +152,21 @@ namespace FTRTEC replication_strategy->add_member(info, object_group_ref_version); } - int Replication_Service::acquire_read (void) + int Replication_Service::acquire_read () { int r = replication_strategy->acquire_read(); TAO_FTRTEC::Log(3, ACE_TEXT("Read Lock acquired %d\n"), r); return r; } - int Replication_Service::acquire_write (void) + int Replication_Service::acquire_write () { int r= replication_strategy->acquire_write(); TAO_FTRTEC::Log(3, ACE_TEXT("Write Lock acqured %d\n"), r); return r; } - int Replication_Service::release (void) + int Replication_Service::release () { int r= replication_strategy->release(); TAO_FTRTEC::Log(3, ACE_TEXT("Lock Released %d\n"), r); diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Strategy.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Strategy.cpp index f6c0611358a..c6879652d91 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Strategy.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Strategy.cpp @@ -14,7 +14,7 @@ Replication_Strategy::~Replication_Strategy() void -Replication_Strategy::check_validity(void) +Replication_Strategy::check_validity() { } diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.cpp index 29abc223232..f146aa999f0 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.cpp @@ -80,7 +80,7 @@ get_object_id(CORBA::Any_var a) FtRtecEventChannelAdmin::ObjectId_var -Request_Context_Repository::get_object_id(void) +Request_Context_Repository::get_object_id() { /* PortableInterceptor::Current_var pic = @@ -117,7 +117,7 @@ Request_Context_Repository::set_cached_result( } CORBA::Any_ptr -Request_Context_Repository::get_cached_result(void) +Request_Context_Repository::get_cached_result() { PortableInterceptor::Current_var pic = resolve_init<PortableInterceptor::Current>(orb, "PICurrent"); @@ -167,7 +167,7 @@ Request_Context_Repository::set_sequence_number( FTRT::SequenceNumber -Request_Context_Repository::get_sequence_number(void) +Request_Context_Repository::get_sequence_number() { PortableInterceptor::Current_var pic = resolve_init<PortableInterceptor::Current>(orb, "PICurrent"); diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Set_Update_Interceptor.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Set_Update_Interceptor.cpp index 908c7de402c..9866af127a9 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Set_Update_Interceptor.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Set_Update_Interceptor.cpp @@ -12,18 +12,18 @@ TAO_Set_Update_Interceptor::TAO_Set_Update_Interceptor () { } -TAO_Set_Update_Interceptor::~TAO_Set_Update_Interceptor (void) +TAO_Set_Update_Interceptor::~TAO_Set_Update_Interceptor () { } char * -TAO_Set_Update_Interceptor::name (void) +TAO_Set_Update_Interceptor::name () { return CORBA::string_dup (this->myname_); } void -TAO_Set_Update_Interceptor::destroy (void) +TAO_Set_Update_Interceptor::destroy () { } diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.cpp index 80a774bfcd4..c2d71044d19 100644 --- a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.cpp +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.cpp @@ -21,7 +21,7 @@ public: ~FTEC_Gateway_ConsumerAdmin(); // = The RtecEventChannelAdmin::ConsumerAdmin methods... virtual RtecEventChannelAdmin::ProxyPushSupplier_ptr - obtain_push_supplier (void); + obtain_push_supplier (); FTEC_Gateway_Impl* impl_; }; @@ -33,7 +33,7 @@ public: ~FTEC_Gateway_SupplierAdmin(); // = The RtecEventChannelAdmin::SupplierAdmin methods... virtual RtecEventChannelAdmin::ProxyPushConsumer_ptr - obtain_push_consumer (void); + obtain_push_consumer (); FTEC_Gateway_Impl* impl_; }; @@ -47,9 +47,9 @@ public: virtual void connect_push_consumer ( RtecEventComm::PushConsumer_ptr push_consumer, const RtecEventChannelAdmin::ConsumerQOS &qos); - virtual void disconnect_push_supplier (void); - virtual void suspend_connection (void); - virtual void resume_connection (void); + virtual void disconnect_push_supplier (); + virtual void suspend_connection (); + virtual void resume_connection (); FTEC_Gateway_Impl* impl_; }; @@ -65,7 +65,7 @@ public: virtual void connect_push_supplier ( RtecEventComm::PushSupplier_ptr push_supplier, const RtecEventChannelAdmin::SupplierQOS& qos); - virtual void disconnect_push_consumer (void); + virtual void disconnect_push_consumer (); FTEC_Gateway_Impl* impl_; }; @@ -75,7 +75,7 @@ class PushConsumerHandler : public POA_FtRtecEventComm::AMI_PushConsumerHandler public: PushConsumerHandler(); ~PushConsumerHandler(); - virtual void push (void); + virtual void push (); virtual void push_excep (::Messaging::ExceptionHolder * excep_holder); }; @@ -91,7 +91,7 @@ public: } private: Interceptor_Destoryer(); - inline void do_it(void) { + inline void do_it() { destroy_interceptors(); }; }; @@ -210,19 +210,19 @@ FTEC_Gateway::activate(PortableServer::POA_ptr root_poa) //= The RtecEventChannelAdmin::EventChannel methods RtecEventChannelAdmin::ConsumerAdmin_ptr -FTEC_Gateway::for_consumers (void) +FTEC_Gateway::for_consumers () { return RtecEventChannelAdmin::ConsumerAdmin::_duplicate(impl_->consumer_admin.in()); } RtecEventChannelAdmin::SupplierAdmin_ptr -FTEC_Gateway::for_suppliers (void) +FTEC_Gateway::for_suppliers () { ORBSVCS_DEBUG((LM_DEBUG, "FTEC_Gateway::for_suppliers\n")); return RtecEventChannelAdmin::SupplierAdmin::_duplicate(impl_->supplier_admin.in()); } -void FTEC_Gateway::destroy (void) +void FTEC_Gateway::destroy () { impl_->ftec->destroy(); } @@ -262,7 +262,7 @@ FTEC_Gateway_ConsumerAdmin::~FTEC_Gateway_ConsumerAdmin() } RtecEventChannelAdmin::ProxyPushSupplier_ptr -FTEC_Gateway_ConsumerAdmin::obtain_push_supplier (void) +FTEC_Gateway_ConsumerAdmin::obtain_push_supplier () { FtRtecEventComm::ObjectId** remote_proxy_oid_ptr; @@ -292,7 +292,7 @@ FTEC_Gateway_SupplierAdmin::~FTEC_Gateway_SupplierAdmin() // = The RtecEventChannelAdmin::SupplierAdmin methods... RtecEventChannelAdmin::ProxyPushConsumer_ptr -FTEC_Gateway_SupplierAdmin::obtain_push_consumer (void) +FTEC_Gateway_SupplierAdmin::obtain_push_consumer () { FtRtecEventComm::ObjectId** remote_proxy_oid_ptr; ACE_NEW_THROW_EX(remote_proxy_oid_ptr, FtRtecEventComm::ObjectId*, CORBA::NO_MEMORY()); @@ -347,7 +347,7 @@ void FTEC_Gateway_ProxyPushSupplier::connect_push_consumer ( *oid_ptr = impl_->ftec->connect_push_consumer(push_consumer, qos); } -void FTEC_Gateway_ProxyPushSupplier::disconnect_push_supplier (void) +void FTEC_Gateway_ProxyPushSupplier::disconnect_push_supplier () { FtRtecEventComm::ObjectId** oid_ptr = get_remote_oid_ptr(impl_->orb.in()); impl_->ftec->disconnect_push_supplier(**oid_ptr); @@ -355,13 +355,13 @@ void FTEC_Gateway_ProxyPushSupplier::disconnect_push_supplier (void) delete oid_ptr; } -void FTEC_Gateway_ProxyPushSupplier::suspend_connection (void) +void FTEC_Gateway_ProxyPushSupplier::suspend_connection () { FtRtecEventComm::ObjectId** oid_ptr = get_remote_oid_ptr(impl_->orb.in()); impl_->ftec->suspend_push_supplier(**oid_ptr); } -void FTEC_Gateway_ProxyPushSupplier::resume_connection (void) +void FTEC_Gateway_ProxyPushSupplier::resume_connection () { FtRtecEventComm::ObjectId** oid_ptr = get_remote_oid_ptr(impl_->orb.in()); impl_->ftec->resume_push_supplier(**oid_ptr); @@ -405,7 +405,7 @@ void FTEC_Gateway_ProxyPushConsumer::connect_push_supplier ( *oid_ptr = impl_->ftec->connect_push_supplier(push_supplier, qos); } -void FTEC_Gateway_ProxyPushConsumer::disconnect_push_consumer (void) +void FTEC_Gateway_ProxyPushConsumer::disconnect_push_consumer () { FtRtecEventComm::ObjectId** oid_ptr = get_remote_oid_ptr(impl_->orb.in()); impl_->ftec->disconnect_push_consumer(**oid_ptr); @@ -421,7 +421,7 @@ PushConsumerHandler::~PushConsumerHandler() { } -void PushConsumerHandler::push (void) +void PushConsumerHandler::push () { } diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp index bf379827c0a..278cae08786 100644 --- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp +++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp @@ -40,7 +40,7 @@ TAO::HTIOP::Acceptor::Acceptor (ACE::HTBP::Environment *ht_env, { } -TAO::HTIOP::Acceptor::~Acceptor (void) +TAO::HTIOP::Acceptor::~Acceptor () { // Make sure we are closed before we start destroying the // strategies. @@ -246,7 +246,7 @@ TAO::HTIOP::Acceptor::is_collocated (const TAO_Endpoint *endpoint) } int -TAO::HTIOP::Acceptor::close (void) +TAO::HTIOP::Acceptor::close () { return this->base_acceptor_.close (); } @@ -743,7 +743,7 @@ TAO::HTIOP::Acceptor::probe_interfaces (TAO_ORB_Core *orb_core) } CORBA::ULong -TAO::HTIOP::Acceptor::endpoint_count (void) +TAO::HTIOP::Acceptor::endpoint_count () { return this->endpoint_count_; } diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Completion_Handler.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Completion_Handler.cpp index ff8a07a0be6..b5e35eedf77 100644 --- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Completion_Handler.cpp +++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Completion_Handler.cpp @@ -44,7 +44,7 @@ TAO::HTIOP::Completion_Handler::Completion_Handler (TAO_ORB_Core *orb_core, } -TAO::HTIOP::Completion_Handler::~Completion_Handler (void) +TAO::HTIOP::Completion_Handler::~Completion_Handler () { delete this->creation_strategy_; delete this->concurrency_strategy_; @@ -66,7 +66,7 @@ TAO::HTIOP::Completion_Handler::open (void*) } int -TAO::HTIOP::Completion_Handler::resume_handler (void) +TAO::HTIOP::Completion_Handler::resume_handler () { return ACE_Event_Handler::ACE_APPLICATION_RESUMES_HANDLER; } diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connection_Handler.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connection_Handler.cpp index 1917da10b24..de51d760b7e 100644 --- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connection_Handler.cpp +++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connection_Handler.cpp @@ -47,7 +47,7 @@ TAO::HTIOP::Connection_Handler::Connection_Handler (TAO_ORB_Core *orb_core) this->transport (specific_transport); } -TAO::HTIOP::Connection_Handler::~Connection_Handler (void) +TAO::HTIOP::Connection_Handler::~Connection_Handler () { delete this->transport (); int const result = @@ -141,13 +141,13 @@ TAO::HTIOP::Connection_Handler::open (void*) } int -TAO::HTIOP::Connection_Handler::resume_handler (void) +TAO::HTIOP::Connection_Handler::resume_handler () { return ACE_Event_Handler::ACE_APPLICATION_RESUMES_HANDLER; } int -TAO::HTIOP::Connection_Handler::close_connection (void) +TAO::HTIOP::Connection_Handler::close_connection () { return this->close_connection_eh (this); } @@ -208,14 +208,14 @@ TAO::HTIOP::Connection_Handler::close (u_long) } int -TAO::HTIOP::Connection_Handler::release_os_resources (void) +TAO::HTIOP::Connection_Handler::release_os_resources () { int result = this->peer().close (); return result; } int -TAO::HTIOP::Connection_Handler::add_transport_to_cache (void) +TAO::HTIOP::Connection_Handler::add_transport_to_cache () { ACE::HTBP::Addr addr; diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector.cpp index e513b06caea..abe63a47620 100644 --- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector.cpp +++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector.cpp @@ -29,7 +29,7 @@ TAO::HTIOP::Connector::Connector (ACE::HTBP::Environment *ht_env) { } -TAO::HTIOP::Connector::~Connector (void) +TAO::HTIOP::Connector::~Connector () { } @@ -59,7 +59,7 @@ TAO::HTIOP::Connector::open (TAO_ORB_Core *orb_core) } int -TAO::HTIOP::Connector::close (void) +TAO::HTIOP::Connector::close () { delete this->concurrency_strategy_; delete this->connect_creation_strategy_; @@ -341,7 +341,7 @@ TAO::HTIOP::Connector::create_profile (TAO_InputCDR& cdr) * @brief Create a profile with a given endpoint. */ TAO_Profile * -TAO::HTIOP::Connector::make_profile (void) +TAO::HTIOP::Connector::make_profile () { // The endpoint should be of the form: // N.n@host:port/object_key @@ -385,7 +385,7 @@ TAO::HTIOP::Connector::check_prefix (const char *endpoint) } char -TAO::HTIOP::Connector::object_key_delimiter (void) const +TAO::HTIOP::Connector::object_key_delimiter () const { return TAO::HTIOP::Profile::object_key_delimiter_; } diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.cpp index f54168e2603..88b96524ac9 100644 --- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.cpp +++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.cpp @@ -44,7 +44,7 @@ TAO::HTIOP::Endpoint::Endpoint (const char *host, this->htid_ = htid; } -TAO::HTIOP::Endpoint::Endpoint (void) +TAO::HTIOP::Endpoint::Endpoint () : TAO_Endpoint (OCI_TAG_HTIOP_PROFILE), host_ (), port_ (0), @@ -72,7 +72,7 @@ TAO::HTIOP::Endpoint::Endpoint (const char *host, this->htid_ = htid; } -TAO::HTIOP::Endpoint::~Endpoint (void) +TAO::HTIOP::Endpoint::~Endpoint () { } @@ -150,7 +150,7 @@ TAO::HTIOP::Endpoint::htid (const char *h) } void -TAO::HTIOP::Endpoint::reset_hint (void) +TAO::HTIOP::Endpoint::reset_hint () { // Commented out for the time being.... /* if (this->hint_) @@ -158,13 +158,13 @@ TAO::HTIOP::Endpoint::reset_hint (void) } TAO_Endpoint * -TAO::HTIOP::Endpoint::next (void) +TAO::HTIOP::Endpoint::next () { return this->next_; } TAO_Endpoint * -TAO::HTIOP::Endpoint::duplicate (void) +TAO::HTIOP::Endpoint::duplicate () { // @@ Bala, we probably need to make sure that the duplicate has the // same priority as the original. Although it does not matter in @@ -204,7 +204,7 @@ TAO::HTIOP::Endpoint::is_equivalent (const TAO_Endpoint *other_endpoint) } CORBA::ULong -TAO::HTIOP::Endpoint::hash (void) +TAO::HTIOP::Endpoint::hash () { if (this->htid_.in() && ACE_OS::strlen (this->htid_.in())) return ACE::hash_pjw(this->htid_.in()); diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Factory.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Factory.cpp index 443def1b352..b929bcc2a9b 100644 --- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Factory.cpp @@ -12,14 +12,14 @@ static const char the_prefix[] = "htiop"; TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO::HTIOP::Protocol_Factory::Protocol_Factory (void) +TAO::HTIOP::Protocol_Factory::Protocol_Factory () : TAO_Protocol_Factory (OCI_TAG_HTIOP_PROFILE), ht_env_ (0), inside_ (-1) { } -TAO::HTIOP::Protocol_Factory::~Protocol_Factory (void) +TAO::HTIOP::Protocol_Factory::~Protocol_Factory () { delete this->ht_env_; } @@ -32,13 +32,13 @@ TAO::HTIOP::Protocol_Factory::match_prefix (const ACE_CString &prefix) } const char * -TAO::HTIOP::Protocol_Factory::prefix (void) const +TAO::HTIOP::Protocol_Factory::prefix () const { return ::the_prefix; } char -TAO::HTIOP::Protocol_Factory::options_delimiter (void) const +TAO::HTIOP::Protocol_Factory::options_delimiter () const { return '/'; } @@ -111,7 +111,7 @@ TAO::HTIOP::Protocol_Factory::init (int argc, } TAO_Acceptor * -TAO::HTIOP::Protocol_Factory::make_acceptor (void) +TAO::HTIOP::Protocol_Factory::make_acceptor () { TAO_Acceptor *acceptor = 0; @@ -123,7 +123,7 @@ TAO::HTIOP::Protocol_Factory::make_acceptor (void) } TAO_Connector * -TAO::HTIOP::Protocol_Factory::make_connector (void) +TAO::HTIOP::Protocol_Factory::make_connector () { TAO_Connector *connector = 0; ACE_NEW_RETURN (connector, @@ -133,7 +133,7 @@ TAO::HTIOP::Protocol_Factory::make_connector (void) } int -TAO::HTIOP::Protocol_Factory::requires_explicit_endpoint (void) const +TAO::HTIOP::Protocol_Factory::requires_explicit_endpoint () const { return 0; } diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Profile.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Profile.cpp index ab4e94d9819..5d17a0de8d2 100644 --- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Profile.cpp +++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Profile.cpp @@ -19,7 +19,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL const char TAO::HTIOP::Profile::object_key_delimiter_ = '/'; char -TAO::HTIOP::Profile::object_key_delimiter (void) const +TAO::HTIOP::Profile::object_key_delimiter () const { return TAO::HTIOP::Profile::object_key_delimiter_; } @@ -63,7 +63,7 @@ TAO::HTIOP::Profile::Profile (TAO_ORB_Core *orb_core) { } -TAO::HTIOP::Profile::~Profile (void) +TAO::HTIOP::Profile::~Profile () { // Clean up the list of endpoints since we own it. // Skip the head, since it is not dynamically allocated. @@ -258,13 +258,13 @@ TAO::HTIOP::Profile::hash (CORBA::ULong max) } TAO_Endpoint* -TAO::HTIOP::Profile::endpoint (void) +TAO::HTIOP::Profile::endpoint () { return &this->endpoint_; } CORBA::ULong -TAO::HTIOP::Profile::endpoint_count (void) const +TAO::HTIOP::Profile::endpoint_count () const { return this->count_; } @@ -279,7 +279,7 @@ TAO::HTIOP::Profile::add_endpoint (TAO::HTIOP::Endpoint *endp) } char * -TAO::HTIOP::Profile::to_string (void) const +TAO::HTIOP::Profile::to_string () const { CORBA::String_var key; TAO::ObjectKey::encode_sequence_to_string (key.inout(), @@ -319,7 +319,7 @@ TAO::HTIOP::Profile::to_string (void) const const char * -TAO::HTIOP::Profile::prefix (void) +TAO::HTIOP::Profile::prefix () { return ::the_prefix; } @@ -413,7 +413,7 @@ TAO::HTIOP::Profile::encode_endpoints () } int -TAO::HTIOP::Profile::decode_endpoints (void) +TAO::HTIOP::Profile::decode_endpoints () { IOP::TaggedComponent tagged_component; tagged_component.tag = TAO_TAG_ENDPOINTS; diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Transport.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Transport.cpp index 1f0ec2faa71..296db0bad23 100644 --- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Transport.cpp +++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Transport.cpp @@ -30,18 +30,18 @@ TAO::HTIOP::Transport::Transport (TAO::HTIOP::Connection_Handler *h, { } -TAO::HTIOP::Transport::~Transport (void) +TAO::HTIOP::Transport::~Transport () { } ACE_Event_Handler * -TAO::HTIOP::Transport::event_handler_i (void) +TAO::HTIOP::Transport::event_handler_i () { return this->connection_handler_; } TAO_Connection_Handler * -TAO::HTIOP::Transport::connection_handler_i (void) +TAO::HTIOP::Transport::connection_handler_i () { return this->connection_handler_; } @@ -106,7 +106,7 @@ TAO::HTIOP::Transport::recv (char *buf, } int -TAO::HTIOP::Transport::register_handler (void) +TAO::HTIOP::Transport::register_handler () { if (TAO_debug_level > 4) { @@ -355,7 +355,7 @@ TAO::HTIOP::Transport::get_listen_point (::HTIOP::ListenPointList &lp_list, TAO_Connection_Handler * -TAO::HTIOP::Transport::invalidate_event_handler_i (void) +TAO::HTIOP::Transport::invalidate_event_handler_i () { TAO_Connection_Handler * eh = this->connection_handler_; this->connection_handler_ = 0; diff --git a/TAO/orbsvcs/orbsvcs/IFRService/AbstractInterfaceDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/AbstractInterfaceDef_i.cpp index c08eb8ef809..0ed392a3d0b 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/AbstractInterfaceDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/AbstractInterfaceDef_i.cpp @@ -12,12 +12,12 @@ TAO_AbstractInterfaceDef_i::TAO_AbstractInterfaceDef_i (TAO_Repository_i *repo) { } -TAO_AbstractInterfaceDef_i::~TAO_AbstractInterfaceDef_i (void) +TAO_AbstractInterfaceDef_i::~TAO_AbstractInterfaceDef_i () { } CORBA::DefinitionKind -TAO_AbstractInterfaceDef_i::def_kind (void) +TAO_AbstractInterfaceDef_i::def_kind () { return CORBA::dk_AbstractInterface; } diff --git a/TAO/orbsvcs/orbsvcs/IFRService/AliasDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/AliasDef_i.cpp index 9a581fe1c5a..283253def36 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/AliasDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/AliasDef_i.cpp @@ -14,18 +14,18 @@ TAO_AliasDef_i::TAO_AliasDef_i (TAO_Repository_i *repo) { } -TAO_AliasDef_i::~TAO_AliasDef_i (void) +TAO_AliasDef_i::~TAO_AliasDef_i () { } CORBA::DefinitionKind -TAO_AliasDef_i::def_kind (void) +TAO_AliasDef_i::def_kind () { return CORBA::dk_Alias; } CORBA::TypeCode_ptr -TAO_AliasDef_i::type (void) +TAO_AliasDef_i::type () { TAO_IFR_READ_GUARD_RETURN (CORBA::TypeCode::_nil ()); @@ -35,7 +35,7 @@ TAO_AliasDef_i::type (void) } CORBA::TypeCode_ptr -TAO_AliasDef_i::type_i (void) +TAO_AliasDef_i::type_i () { ACE_TString id; this->repo_->config ()->get_string_value (this->section_key_, @@ -68,7 +68,7 @@ TAO_AliasDef_i::type_i (void) } CORBA::IDLType_ptr -TAO_AliasDef_i::original_type_def (void) +TAO_AliasDef_i::original_type_def () { TAO_IFR_READ_GUARD_RETURN (CORBA::IDLType::_nil ()); @@ -78,7 +78,7 @@ TAO_AliasDef_i::original_type_def (void) } CORBA::IDLType_ptr -TAO_AliasDef_i::original_type_def_i (void) +TAO_AliasDef_i::original_type_def_i () { ACE_TString original_type; this->repo_->config ()->get_string_value (this->section_key_, diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ArrayDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ArrayDef_i.cpp index 7c685d9fc06..c31a73f0ba7 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/ArrayDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/ArrayDef_i.cpp @@ -12,18 +12,18 @@ TAO_ArrayDef_i::TAO_ArrayDef_i (TAO_Repository_i *repo) { } -TAO_ArrayDef_i::~TAO_ArrayDef_i (void) +TAO_ArrayDef_i::~TAO_ArrayDef_i () { } CORBA::DefinitionKind -TAO_ArrayDef_i::def_kind (void) +TAO_ArrayDef_i::def_kind () { return CORBA::dk_Array; } void -TAO_ArrayDef_i::destroy (void) +TAO_ArrayDef_i::destroy () { TAO_IFR_WRITE_GUARD; @@ -33,7 +33,7 @@ TAO_ArrayDef_i::destroy (void) } void -TAO_ArrayDef_i::destroy_i (void) +TAO_ArrayDef_i::destroy_i () { // Only if it is (w)string, fixed, array or sequence. this->destroy_element_type (); @@ -49,7 +49,7 @@ TAO_ArrayDef_i::destroy_i (void) } CORBA::TypeCode_ptr -TAO_ArrayDef_i::type (void) +TAO_ArrayDef_i::type () { TAO_IFR_READ_GUARD_RETURN (CORBA::TypeCode::_nil ()); @@ -59,7 +59,7 @@ TAO_ArrayDef_i::type (void) } CORBA::TypeCode_ptr -TAO_ArrayDef_i::type_i (void) +TAO_ArrayDef_i::type_i () { // Store the current array's section key. ACE_Configuration_Section_Key @@ -83,7 +83,7 @@ TAO_ArrayDef_i::type_i (void) } CORBA::ULong -TAO_ArrayDef_i::length (void) +TAO_ArrayDef_i::length () { TAO_IFR_READ_GUARD_RETURN (0); @@ -93,7 +93,7 @@ TAO_ArrayDef_i::length (void) } CORBA::ULong -TAO_ArrayDef_i::length_i (void) +TAO_ArrayDef_i::length_i () { u_int length = 0; this->repo_->config ()->get_integer_value (this->section_key_, @@ -122,7 +122,7 @@ TAO_ArrayDef_i::length_i (CORBA::ULong length) } CORBA::TypeCode_ptr -TAO_ArrayDef_i::element_type (void) +TAO_ArrayDef_i::element_type () { TAO_IFR_READ_GUARD_RETURN (CORBA::TypeCode::_nil ()); @@ -132,7 +132,7 @@ TAO_ArrayDef_i::element_type (void) } CORBA::TypeCode_ptr -TAO_ArrayDef_i::element_type_i (void) +TAO_ArrayDef_i::element_type_i () { ACE_TString element_path; this->repo_->config ()->get_string_value (this->section_key_, @@ -146,7 +146,7 @@ TAO_ArrayDef_i::element_type_i (void) } CORBA::IDLType_ptr -TAO_ArrayDef_i::element_type_def (void) +TAO_ArrayDef_i::element_type_def () { TAO_IFR_READ_GUARD_RETURN (CORBA::IDLType::_nil ()); @@ -156,7 +156,7 @@ TAO_ArrayDef_i::element_type_def (void) } CORBA::IDLType_ptr -TAO_ArrayDef_i::element_type_def_i (void) +TAO_ArrayDef_i::element_type_def_i () { ACE_TString element_path; this->repo_->config ()->get_string_value (this->section_key_, diff --git a/TAO/orbsvcs/orbsvcs/IFRService/AttributeDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/AttributeDef_i.cpp index 6f56fed7bc1..dbddc089e7d 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/AttributeDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/AttributeDef_i.cpp @@ -14,18 +14,18 @@ TAO_AttributeDef_i::TAO_AttributeDef_i (TAO_Repository_i *repo) { } -TAO_AttributeDef_i::~TAO_AttributeDef_i (void) +TAO_AttributeDef_i::~TAO_AttributeDef_i () { } CORBA::DefinitionKind -TAO_AttributeDef_i::def_kind (void) +TAO_AttributeDef_i::def_kind () { return CORBA::dk_Attribute; } CORBA::Contained::Description * -TAO_AttributeDef_i::describe (void) +TAO_AttributeDef_i::describe () { TAO_IFR_READ_GUARD_RETURN (0); @@ -35,7 +35,7 @@ TAO_AttributeDef_i::describe (void) } CORBA::Contained::Description * -TAO_AttributeDef_i::describe_i (void) +TAO_AttributeDef_i::describe_i () { CORBA::Contained::Description *desc_ptr = 0; ACE_NEW_THROW_EX (desc_ptr, @@ -58,7 +58,7 @@ TAO_AttributeDef_i::describe_i (void) } CORBA::TypeCode_ptr -TAO_AttributeDef_i::type (void) +TAO_AttributeDef_i::type () { TAO_IFR_READ_GUARD_RETURN (CORBA::TypeCode::_nil ()); @@ -68,7 +68,7 @@ TAO_AttributeDef_i::type (void) } CORBA::TypeCode_ptr -TAO_AttributeDef_i::type_i (void) +TAO_AttributeDef_i::type_i () { ACE_TString type_path; this->repo_->config ()->get_string_value (this->section_key_, @@ -83,7 +83,7 @@ TAO_AttributeDef_i::type_i (void) } CORBA::IDLType_ptr -TAO_AttributeDef_i::type_def (void) +TAO_AttributeDef_i::type_def () { TAO_IFR_READ_GUARD_RETURN (CORBA::IDLType::_nil ()); @@ -93,7 +93,7 @@ TAO_AttributeDef_i::type_def (void) } CORBA::IDLType_ptr -TAO_AttributeDef_i::type_def_i (void) +TAO_AttributeDef_i::type_def_i () { ACE_TString type_path; this->repo_->config ()->get_string_value (this->section_key_, @@ -131,7 +131,7 @@ TAO_AttributeDef_i::type_def_i (CORBA::IDLType_ptr type_def) } CORBA::AttributeMode -TAO_AttributeDef_i::mode (void) +TAO_AttributeDef_i::mode () { TAO_IFR_READ_GUARD_RETURN (CORBA::ATTR_NORMAL); @@ -141,7 +141,7 @@ TAO_AttributeDef_i::mode (void) } CORBA::AttributeMode -TAO_AttributeDef_i::mode_i (void) +TAO_AttributeDef_i::mode_i () { u_int mode = 0; this->repo_->config ()->get_integer_value (this->section_key_, @@ -192,7 +192,7 @@ TAO_AttributeDef_i::make_description ( } CORBA::ExceptionDefSeq * -TAO_AttributeDef_i::get_exceptions (void) +TAO_AttributeDef_i::get_exceptions () { ACE_Unbounded_Queue<ACE_TString> path_queue; int index = 0; @@ -263,7 +263,7 @@ TAO_AttributeDef_i::get_exceptions (void) } CORBA::ExceptionDefSeq * -TAO_AttributeDef_i::put_exceptions (void) +TAO_AttributeDef_i::put_exceptions () { ACE_Unbounded_Queue<ACE_TString> path_queue; int index = 0; diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ComponentContainer_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ComponentContainer_i.cpp index fb5870084af..196bacc8492 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/ComponentContainer_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/ComponentContainer_i.cpp @@ -17,7 +17,7 @@ TAO_ComponentContainer_i::TAO_ComponentContainer_i (TAO_Repository_i *repo) { } -TAO_ComponentContainer_i::~TAO_ComponentContainer_i (void) +TAO_ComponentContainer_i::~TAO_ComponentContainer_i () { } diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ComponentDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ComponentDef_i.cpp index 783a6093cab..6f41666db3f 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/ComponentDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/ComponentDef_i.cpp @@ -69,18 +69,18 @@ TAO_ComponentDef_i::TAO_ComponentDef_i (TAO_Repository_i *repo) { } -TAO_ComponentDef_i::~TAO_ComponentDef_i (void) +TAO_ComponentDef_i::~TAO_ComponentDef_i () { } CORBA::DefinitionKind -TAO_ComponentDef_i::def_kind (void) +TAO_ComponentDef_i::def_kind () { return CORBA::dk_Component; } void -TAO_ComponentDef_i::destroy (void) +TAO_ComponentDef_i::destroy () { TAO_IFR_WRITE_GUARD; @@ -90,7 +90,7 @@ TAO_ComponentDef_i::destroy (void) } void -TAO_ComponentDef_i::destroy_i (void) +TAO_ComponentDef_i::destroy_i () { // Destroy our special subsections first, then call destroy_i // on our base class. @@ -129,7 +129,7 @@ TAO_ComponentDef_i::destroy_i (void) } CORBA::Contained::Description * -TAO_ComponentDef_i::describe (void) +TAO_ComponentDef_i::describe () { TAO_IFR_READ_GUARD_RETURN (0); @@ -139,7 +139,7 @@ TAO_ComponentDef_i::describe (void) } CORBA::Contained::Description * -TAO_ComponentDef_i::describe_i (void) +TAO_ComponentDef_i::describe_i () { CORBA::ComponentIR::ComponentDescription cd; TAO_IFR_Desc_Utils<CORBA::ComponentIR::ComponentDescription, @@ -278,7 +278,7 @@ TAO_ComponentDef_i::describe_i (void) } CORBA::TypeCode_ptr -TAO_ComponentDef_i::type (void) +TAO_ComponentDef_i::type () { TAO_IFR_READ_GUARD_RETURN (CORBA::TypeCode::_nil ()); @@ -288,7 +288,7 @@ TAO_ComponentDef_i::type (void) } CORBA::TypeCode_ptr -TAO_ComponentDef_i::type_i (void) +TAO_ComponentDef_i::type_i () { ACE_TString id; this->repo_->config ()->get_string_value (this->section_key_, @@ -307,7 +307,7 @@ TAO_ComponentDef_i::type_i (void) } CORBA::InterfaceDefSeq * -TAO_ComponentDef_i::supported_interfaces (void) +TAO_ComponentDef_i::supported_interfaces () { TAO_IFR_READ_GUARD_RETURN (0); @@ -317,7 +317,7 @@ TAO_ComponentDef_i::supported_interfaces (void) } CORBA::InterfaceDefSeq * -TAO_ComponentDef_i::supported_interfaces_i (void) +TAO_ComponentDef_i::supported_interfaces_i () { CORBA::InterfaceDefSeq *seq = 0; ACE_NEW_RETURN (seq, @@ -421,7 +421,7 @@ TAO_ComponentDef_i::supported_interfaces_i ( } CORBA::ComponentIR::ComponentDef_ptr -TAO_ComponentDef_i::base_component (void) +TAO_ComponentDef_i::base_component () { TAO_IFR_READ_GUARD_RETURN (CORBA::ComponentIR::ComponentDef::_nil ()); @@ -431,7 +431,7 @@ TAO_ComponentDef_i::base_component (void) } CORBA::ComponentIR::ComponentDef_ptr -TAO_ComponentDef_i::base_component_i (void) +TAO_ComponentDef_i::base_component_i () { ACE_TString base_path; int status = diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ComponentModuleDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ComponentModuleDef_i.cpp index 63c10e9dc3e..2e7937885b0 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/ComponentModuleDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/ComponentModuleDef_i.cpp @@ -9,7 +9,7 @@ TAO_ComponentModuleDef_i::TAO_ComponentModuleDef_i (TAO_Repository_i *repo) { } -TAO_ComponentModuleDef_i::~TAO_ComponentModuleDef_i (void) +TAO_ComponentModuleDef_i::~TAO_ComponentModuleDef_i () { } diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ComponentRepository_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ComponentRepository_i.cpp index 7e6bd0996b3..c980d2b422e 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/ComponentRepository_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/ComponentRepository_i.cpp @@ -27,7 +27,7 @@ TAO_ComponentRepository_i::TAO_ComponentRepository_i ( { } -TAO_ComponentRepository_i::~TAO_ComponentRepository_i (void) +TAO_ComponentRepository_i::~TAO_ComponentRepository_i () { } diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ConstantDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ConstantDef_i.cpp index f91f727f4ba..168af593a08 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/ConstantDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/ConstantDef_i.cpp @@ -16,18 +16,18 @@ TAO_ConstantDef_i::TAO_ConstantDef_i (TAO_Repository_i *repo) { } -TAO_ConstantDef_i::~TAO_ConstantDef_i (void) +TAO_ConstantDef_i::~TAO_ConstantDef_i () { } CORBA::DefinitionKind -TAO_ConstantDef_i::def_kind (void) +TAO_ConstantDef_i::def_kind () { return CORBA::dk_Constant; } CORBA::Contained::Description * -TAO_ConstantDef_i::describe (void) +TAO_ConstantDef_i::describe () { TAO_IFR_READ_GUARD_RETURN (0); @@ -37,7 +37,7 @@ TAO_ConstantDef_i::describe (void) } CORBA::Contained::Description * -TAO_ConstantDef_i::describe_i (void) +TAO_ConstantDef_i::describe_i () { CORBA::Contained::Description *desc_ptr = 0; ACE_NEW_THROW_EX (desc_ptr, @@ -73,7 +73,7 @@ TAO_ConstantDef_i::describe_i (void) } CORBA::TypeCode_ptr -TAO_ConstantDef_i::type (void) +TAO_ConstantDef_i::type () { TAO_IFR_READ_GUARD_RETURN (CORBA::TypeCode::_nil ()); @@ -83,7 +83,7 @@ TAO_ConstantDef_i::type (void) } CORBA::TypeCode_ptr -TAO_ConstantDef_i::type_i (void) +TAO_ConstantDef_i::type_i () { ACE_TString type_path; this->repo_->config ()->get_string_value (this->section_key_, @@ -97,7 +97,7 @@ TAO_ConstantDef_i::type_i (void) } CORBA::IDLType_ptr -TAO_ConstantDef_i::type_def (void) +TAO_ConstantDef_i::type_def () { TAO_IFR_READ_GUARD_RETURN (CORBA::IDLType::_nil ()); @@ -107,7 +107,7 @@ TAO_ConstantDef_i::type_def (void) } CORBA::IDLType_ptr -TAO_ConstantDef_i::type_def_i (void) +TAO_ConstantDef_i::type_def_i () { ACE_TString type_path; this->repo_->config ()->get_string_value (this->section_key_, @@ -142,7 +142,7 @@ TAO_ConstantDef_i::type_def_i (CORBA::IDLType_ptr type_def) } CORBA::Any * -TAO_ConstantDef_i::value (void) +TAO_ConstantDef_i::value () { TAO_IFR_READ_GUARD_RETURN (0); @@ -152,7 +152,7 @@ TAO_ConstantDef_i::value (void) } CORBA::Any * -TAO_ConstantDef_i::value_i (void) +TAO_ConstantDef_i::value_i () { CORBA::TypeCode_var tc = this->type_i (); diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ConsumesDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ConsumesDef_i.cpp index d991b8009bc..e2ea5176907 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/ConsumesDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/ConsumesDef_i.cpp @@ -13,12 +13,12 @@ TAO_ConsumesDef_i::TAO_ConsumesDef_i ( { } -TAO_ConsumesDef_i::~TAO_ConsumesDef_i (void) +TAO_ConsumesDef_i::~TAO_ConsumesDef_i () { } CORBA::DefinitionKind -TAO_ConsumesDef_i::def_kind (void) +TAO_ConsumesDef_i::def_kind () { return CORBA::dk_Consumes; } diff --git a/TAO/orbsvcs/orbsvcs/IFRService/Contained_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/Contained_i.cpp index 975ade416ab..dc711338a09 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/Contained_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/Contained_i.cpp @@ -15,12 +15,12 @@ TAO_Contained_i::TAO_Contained_i ( { } -TAO_Contained_i::~TAO_Contained_i (void) +TAO_Contained_i::~TAO_Contained_i () { } void -TAO_Contained_i::destroy (void) +TAO_Contained_i::destroy () { TAO_IFR_WRITE_GUARD; @@ -30,7 +30,7 @@ TAO_Contained_i::destroy (void) } void -TAO_Contained_i::destroy_i (void) +TAO_Contained_i::destroy_i () { ACE_TString id; this->repo_->config ()->get_string_value (this->section_key_, @@ -85,7 +85,7 @@ TAO_Contained_i::destroy_i (void) } char * -TAO_Contained_i::id (void) +TAO_Contained_i::id () { TAO_IFR_READ_GUARD_RETURN (0); @@ -95,7 +95,7 @@ TAO_Contained_i::id (void) } char * -TAO_Contained_i::id_i (void) +TAO_Contained_i::id_i () { ACE_TString retval; this->repo_->config ()->get_string_value (this->section_key_, @@ -157,7 +157,7 @@ TAO_Contained_i::id_i (const char *id) } char * -TAO_Contained_i::name (void) +TAO_Contained_i::name () { TAO_IFR_READ_GUARD_RETURN (0); @@ -167,7 +167,7 @@ TAO_Contained_i::name (void) } char * -TAO_Contained_i::name_i (void) +TAO_Contained_i::name_i () { ACE_TString retval; this->repo_->config ()->get_string_value (this->section_key_, @@ -178,7 +178,7 @@ TAO_Contained_i::name_i (void) } char * -TAO_Contained_i::version (void) +TAO_Contained_i::version () { TAO_IFR_READ_GUARD_RETURN (0); @@ -188,7 +188,7 @@ TAO_Contained_i::version (void) } char * -TAO_Contained_i::version_i (void) +TAO_Contained_i::version_i () { ACE_TString retval; this->repo_->config ()->get_string_value (this->section_key_, @@ -260,7 +260,7 @@ TAO_Contained_i::version_i (const char *version) } CORBA::Container_ptr -TAO_Contained_i::defined_in (void) +TAO_Contained_i::defined_in () { TAO_IFR_READ_GUARD_RETURN (CORBA::Container::_nil ()); @@ -270,7 +270,7 @@ TAO_Contained_i::defined_in (void) } CORBA::Container_ptr -TAO_Contained_i::defined_in_i (void) +TAO_Contained_i::defined_in_i () { ACE_TString container_id; this->repo_->config ()->get_string_value (this->section_key_, @@ -298,7 +298,7 @@ TAO_Contained_i::defined_in_i (void) } char * -TAO_Contained_i::absolute_name (void) +TAO_Contained_i::absolute_name () { TAO_IFR_READ_GUARD_RETURN (0); @@ -308,7 +308,7 @@ TAO_Contained_i::absolute_name (void) } char * -TAO_Contained_i::absolute_name_i (void) +TAO_Contained_i::absolute_name_i () { ACE_TString absolute_name; this->repo_->config ()->get_string_value (this->section_key_, @@ -319,7 +319,7 @@ TAO_Contained_i::absolute_name_i (void) } CORBA::Repository_ptr -TAO_Contained_i::containing_repository (void) +TAO_Contained_i::containing_repository () { return this->repo_->repo_objref (); } diff --git a/TAO/orbsvcs/orbsvcs/IFRService/Container_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/Container_i.cpp index 9dad1c8b29b..94b7fb91931 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/Container_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/Container_i.cpp @@ -21,12 +21,12 @@ TAO_Container_i::TAO_Container_i (TAO_Repository_i *repo) { } -TAO_Container_i::~TAO_Container_i (void) +TAO_Container_i::~TAO_Container_i () { } void -TAO_Container_i::destroy (void) +TAO_Container_i::destroy () { TAO_IFR_WRITE_GUARD; @@ -36,14 +36,14 @@ TAO_Container_i::destroy (void) } void -TAO_Container_i::destroy_i (void) +TAO_Container_i::destroy_i () { this->destroy_references_i(); this->destroy_definitions_i(); } void -TAO_Container_i::destroy_references_i (void) +TAO_Container_i::destroy_references_i () { int index = 0; int status; @@ -119,7 +119,7 @@ TAO_Container_i::destroy_references_i (void) } void -TAO_Container_i::destroy_definitions_i (void) +TAO_Container_i::destroy_definitions_i () { int index = 0; int status; diff --git a/TAO/orbsvcs/orbsvcs/IFRService/EmitsDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/EmitsDef_i.cpp index 424f8674e3c..86170850374 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/EmitsDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/EmitsDef_i.cpp @@ -10,12 +10,12 @@ TAO_EmitsDef_i::TAO_EmitsDef_i (TAO_Repository_i *repo) { } -TAO_EmitsDef_i::~TAO_EmitsDef_i (void) +TAO_EmitsDef_i::~TAO_EmitsDef_i () { } CORBA::DefinitionKind -TAO_EmitsDef_i::def_kind (void) +TAO_EmitsDef_i::def_kind () { return CORBA::dk_Emits; } diff --git a/TAO/orbsvcs/orbsvcs/IFRService/EnumDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/EnumDef_i.cpp index 9c6c11fa9ae..1bff5c0cbd0 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/EnumDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/EnumDef_i.cpp @@ -14,18 +14,18 @@ TAO_EnumDef_i::TAO_EnumDef_i (TAO_Repository_i *repo) { } -TAO_EnumDef_i::~TAO_EnumDef_i (void) +TAO_EnumDef_i::~TAO_EnumDef_i () { } CORBA::DefinitionKind -TAO_EnumDef_i::def_kind (void) +TAO_EnumDef_i::def_kind () { return CORBA::dk_Enum; } CORBA::TypeCode_ptr -TAO_EnumDef_i::type (void) +TAO_EnumDef_i::type () { TAO_IFR_READ_GUARD_RETURN (CORBA::TypeCode::_nil ()); @@ -35,7 +35,7 @@ TAO_EnumDef_i::type (void) } CORBA::TypeCode_ptr -TAO_EnumDef_i::type_i (void) +TAO_EnumDef_i::type_i () { ACE_TString id; this->repo_->config ()->get_string_value (this->section_key_, @@ -55,7 +55,7 @@ TAO_EnumDef_i::type_i (void) } CORBA::EnumMemberSeq * -TAO_EnumDef_i::members (void) +TAO_EnumDef_i::members () { TAO_IFR_READ_GUARD_RETURN (0); @@ -65,7 +65,7 @@ TAO_EnumDef_i::members (void) } CORBA::EnumMemberSeq * -TAO_EnumDef_i::members_i (void) +TAO_EnumDef_i::members_i () { u_int count = 0; this->repo_->config ()->get_integer_value (this->section_key_, diff --git a/TAO/orbsvcs/orbsvcs/IFRService/EventDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/EventDef_i.cpp index 94a36220fe5..cd612feea46 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/EventDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/EventDef_i.cpp @@ -13,18 +13,18 @@ TAO_EventDef_i::TAO_EventDef_i (TAO_Repository_i *repo) { } -TAO_EventDef_i::~TAO_EventDef_i (void) +TAO_EventDef_i::~TAO_EventDef_i () { } CORBA::DefinitionKind -TAO_EventDef_i::def_kind (void) +TAO_EventDef_i::def_kind () { return CORBA::dk_Event; } void -TAO_EventDef_i::destroy (void) +TAO_EventDef_i::destroy () { TAO_IFR_WRITE_GUARD; @@ -34,14 +34,14 @@ TAO_EventDef_i::destroy (void) } void -TAO_EventDef_i::destroy_i (void) +TAO_EventDef_i::destroy_i () { // An event type is a restriction of a value type, not an extension. this->TAO_ExtValueDef_i::destroy_i (); } CORBA::Contained::Description * -TAO_EventDef_i::describe (void) +TAO_EventDef_i::describe () { TAO_IFR_READ_GUARD_RETURN (0); @@ -51,7 +51,7 @@ TAO_EventDef_i::describe (void) } CORBA::Contained::Description * -TAO_EventDef_i::describe_i (void) +TAO_EventDef_i::describe_i () { return this->TAO_ValueDef_i::describe_i (); } diff --git a/TAO/orbsvcs/orbsvcs/IFRService/EventPortDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/EventPortDef_i.cpp index bf67c03d0c8..5e5186a678d 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/EventPortDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/EventPortDef_i.cpp @@ -14,7 +14,7 @@ TAO_EventPortDef_i::TAO_EventPortDef_i (TAO_Repository_i *repo) { } -TAO_EventPortDef_i::~TAO_EventPortDef_i (void) +TAO_EventPortDef_i::~TAO_EventPortDef_i () { } @@ -121,7 +121,7 @@ TAO_EventPortDef_i::is_a_i ( } CORBA::Contained::Description * -TAO_EventPortDef_i::describe (void) +TAO_EventPortDef_i::describe () { TAO_IFR_READ_GUARD_RETURN (0); @@ -131,7 +131,7 @@ TAO_EventPortDef_i::describe (void) } CORBA::Contained::Description * -TAO_EventPortDef_i::describe_i (void) +TAO_EventPortDef_i::describe_i () { CORBA::ComponentIR::EventPortDescription epd; TAO_IFR_Desc_Utils<CORBA::ComponentIR::EventPortDescription, @@ -158,7 +158,7 @@ TAO_EventPortDef_i::describe_i (void) } CORBA::DefinitionKind -TAO_EventPortDef_i::def_kind (void) +TAO_EventPortDef_i::def_kind () { return CORBA::dk_none; } diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ExceptionDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ExceptionDef_i.cpp index 54a720bc9df..83aca20e401 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/ExceptionDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/ExceptionDef_i.cpp @@ -14,18 +14,18 @@ TAO_ExceptionDef_i::TAO_ExceptionDef_i (TAO_Repository_i *repo) { } -TAO_ExceptionDef_i::~TAO_ExceptionDef_i (void) +TAO_ExceptionDef_i::~TAO_ExceptionDef_i () { } CORBA::DefinitionKind -TAO_ExceptionDef_i::def_kind (void) +TAO_ExceptionDef_i::def_kind () { return CORBA::dk_Exception; } void -TAO_ExceptionDef_i::destroy (void) +TAO_ExceptionDef_i::destroy () { TAO_IFR_WRITE_GUARD; @@ -35,7 +35,7 @@ TAO_ExceptionDef_i::destroy (void) } void -TAO_ExceptionDef_i::destroy_i (void) +TAO_ExceptionDef_i::destroy_i () { // Destroy our members. TAO_Container_i::destroy_i (); @@ -45,7 +45,7 @@ TAO_ExceptionDef_i::destroy_i (void) } CORBA::Contained::Description * -TAO_ExceptionDef_i::describe (void) +TAO_ExceptionDef_i::describe () { TAO_IFR_READ_GUARD_RETURN (0); @@ -55,7 +55,7 @@ TAO_ExceptionDef_i::describe (void) } CORBA::Contained::Description * -TAO_ExceptionDef_i::describe_i (void) +TAO_ExceptionDef_i::describe_i () { CORBA::Contained::Description *desc_ptr = 0; ACE_NEW_THROW_EX (desc_ptr, @@ -90,7 +90,7 @@ TAO_ExceptionDef_i::describe_i (void) } CORBA::TypeCode_ptr -TAO_ExceptionDef_i::type (void) +TAO_ExceptionDef_i::type () { TAO_IFR_READ_GUARD_RETURN (CORBA::TypeCode::_nil ()); @@ -100,7 +100,7 @@ TAO_ExceptionDef_i::type (void) } CORBA::TypeCode_ptr -TAO_ExceptionDef_i::type_i (void) +TAO_ExceptionDef_i::type_i () { ACE_TString id; this->repo_->config ()->get_string_value (this->section_key_, @@ -123,7 +123,7 @@ TAO_ExceptionDef_i::type_i (void) } CORBA::StructMemberSeq * -TAO_ExceptionDef_i::members (void) +TAO_ExceptionDef_i::members () { TAO_IFR_READ_GUARD_RETURN (0); @@ -133,7 +133,7 @@ TAO_ExceptionDef_i::members (void) } CORBA::StructMemberSeq * -TAO_ExceptionDef_i::members_i (void) +TAO_ExceptionDef_i::members_i () { ACE_Unbounded_Queue<CORBA::DefinitionKind> kind_queue; ACE_Unbounded_Queue<ACE_TString> path_queue; diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ExtAbstractInterfaceDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ExtAbstractInterfaceDef_i.cpp index 649c86a069e..72da496bbcb 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/ExtAbstractInterfaceDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/ExtAbstractInterfaceDef_i.cpp @@ -15,14 +15,14 @@ TAO_ExtAbstractInterfaceDef_i::TAO_ExtAbstractInterfaceDef_i ( { } -TAO_ExtAbstractInterfaceDef_i::~TAO_ExtAbstractInterfaceDef_i (void) +TAO_ExtAbstractInterfaceDef_i::~TAO_ExtAbstractInterfaceDef_i () { } // Just call the base class version, this is here only to // disambiguate multiple inheritance. void -TAO_ExtAbstractInterfaceDef_i::destroy (void) +TAO_ExtAbstractInterfaceDef_i::destroy () { TAO_IFR_WRITE_GUARD; diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ExtAttributeDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ExtAttributeDef_i.cpp index 4c532eab20f..e18697e9ad6 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/ExtAttributeDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/ExtAttributeDef_i.cpp @@ -14,7 +14,7 @@ TAO_ExtAttributeDef_i::TAO_ExtAttributeDef_i (TAO_Repository_i *repo) { } -TAO_ExtAttributeDef_i::~TAO_ExtAttributeDef_i (void) +TAO_ExtAttributeDef_i::~TAO_ExtAttributeDef_i () { } diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ExtInterfaceDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ExtInterfaceDef_i.cpp index 55c6413a73a..0e3166e25d4 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/ExtInterfaceDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/ExtInterfaceDef_i.cpp @@ -13,7 +13,7 @@ TAO_ExtInterfaceDef_i::TAO_ExtInterfaceDef_i (TAO_Repository_i *repo) { } -TAO_ExtInterfaceDef_i::~TAO_ExtInterfaceDef_i (void) +TAO_ExtInterfaceDef_i::~TAO_ExtInterfaceDef_i () { } diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ExtLocalInterfaceDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ExtLocalInterfaceDef_i.cpp index 0d7c2d6fbdd..c9c27dbe34c 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/ExtLocalInterfaceDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/ExtLocalInterfaceDef_i.cpp @@ -14,14 +14,14 @@ TAO_ExtLocalInterfaceDef_i::TAO_ExtLocalInterfaceDef_i (TAO_Repository_i *repo) { } -TAO_ExtLocalInterfaceDef_i::~TAO_ExtLocalInterfaceDef_i (void) +TAO_ExtLocalInterfaceDef_i::~TAO_ExtLocalInterfaceDef_i () { } // Just call the base class version, this is here only to // disambiguate multiple inheritance. void -TAO_ExtLocalInterfaceDef_i::destroy (void) +TAO_ExtLocalInterfaceDef_i::destroy () { TAO_IFR_WRITE_GUARD; diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ExtValueDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ExtValueDef_i.cpp index e2386bbf087..842fe5d72c9 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/ExtValueDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/ExtValueDef_i.cpp @@ -17,7 +17,7 @@ TAO_ExtValueDef_i::TAO_ExtValueDef_i (TAO_Repository_i *repo) { } -TAO_ExtValueDef_i::~TAO_ExtValueDef_i (void) +TAO_ExtValueDef_i::~TAO_ExtValueDef_i () { } diff --git a/TAO/orbsvcs/orbsvcs/IFRService/FactoryDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/FactoryDef_i.cpp index 4ad931fe56a..d96e0eb2a06 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/FactoryDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/FactoryDef_i.cpp @@ -10,12 +10,12 @@ TAO_FactoryDef_i::TAO_FactoryDef_i (TAO_Repository_i *repo) { } -TAO_FactoryDef_i::~TAO_FactoryDef_i (void) +TAO_FactoryDef_i::~TAO_FactoryDef_i () { } CORBA::DefinitionKind -TAO_FactoryDef_i::def_kind (void) +TAO_FactoryDef_i::def_kind () { return CORBA::dk_Factory; } diff --git a/TAO/orbsvcs/orbsvcs/IFRService/FinderDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/FinderDef_i.cpp index 8a7abfb8312..408c047eb9e 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/FinderDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/FinderDef_i.cpp @@ -10,12 +10,12 @@ TAO_FinderDef_i::TAO_FinderDef_i (TAO_Repository_i *repo) { } -TAO_FinderDef_i::~TAO_FinderDef_i (void) +TAO_FinderDef_i::~TAO_FinderDef_i () { } CORBA::DefinitionKind -TAO_FinderDef_i::def_kind (void) +TAO_FinderDef_i::def_kind () { return CORBA::dk_Finder; } diff --git a/TAO/orbsvcs/orbsvcs/IFRService/FixedDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/FixedDef_i.cpp index 50a59fe7ca6..866f767ca5f 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/FixedDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/FixedDef_i.cpp @@ -9,18 +9,18 @@ TAO_FixedDef_i::TAO_FixedDef_i (TAO_Repository_i *repo) { } -TAO_FixedDef_i::~TAO_FixedDef_i (void) +TAO_FixedDef_i::~TAO_FixedDef_i () { } CORBA::DefinitionKind -TAO_FixedDef_i::def_kind (void) +TAO_FixedDef_i::def_kind () { return CORBA::dk_Fixed; } void -TAO_FixedDef_i::destroy (void) +TAO_FixedDef_i::destroy () { TAO_IFR_WRITE_GUARD; @@ -30,13 +30,13 @@ TAO_FixedDef_i::destroy (void) } void -TAO_FixedDef_i::destroy_i (void) +TAO_FixedDef_i::destroy_i () { // TODO } CORBA::TypeCode_ptr -TAO_FixedDef_i::type (void) +TAO_FixedDef_i::type () { TAO_IFR_READ_GUARD_RETURN (CORBA::TypeCode::_nil ()); @@ -46,14 +46,14 @@ TAO_FixedDef_i::type (void) } CORBA::TypeCode_ptr -TAO_FixedDef_i::type_i (void) +TAO_FixedDef_i::type_i () { // TODO return CORBA::TypeCode::_nil (); } CORBA::UShort -TAO_FixedDef_i::digits (void) +TAO_FixedDef_i::digits () { TAO_IFR_READ_GUARD_RETURN (0); @@ -63,7 +63,7 @@ TAO_FixedDef_i::digits (void) } CORBA::UShort -TAO_FixedDef_i::digits_i (void) +TAO_FixedDef_i::digits_i () { // TODO return 0; @@ -87,7 +87,7 @@ TAO_FixedDef_i::digits_i (CORBA::UShort /* digits */ } CORBA::Short -TAO_FixedDef_i::scale (void) +TAO_FixedDef_i::scale () { TAO_IFR_READ_GUARD_RETURN (0); @@ -97,7 +97,7 @@ TAO_FixedDef_i::scale (void) } CORBA::Short -TAO_FixedDef_i::scale_i (void) +TAO_FixedDef_i::scale_i () { // TODO return 0; diff --git a/TAO/orbsvcs/orbsvcs/IFRService/HomeDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/HomeDef_i.cpp index 97d7bc8c76f..c83e120a01b 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/HomeDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/HomeDef_i.cpp @@ -23,18 +23,18 @@ TAO_HomeDef_i::TAO_HomeDef_i (TAO_Repository_i *repo) { } -TAO_HomeDef_i::~TAO_HomeDef_i (void) +TAO_HomeDef_i::~TAO_HomeDef_i () { } CORBA::DefinitionKind -TAO_HomeDef_i::def_kind (void) +TAO_HomeDef_i::def_kind () { return CORBA::dk_Home; } void -TAO_HomeDef_i::destroy (void) +TAO_HomeDef_i::destroy () { TAO_IFR_WRITE_GUARD; @@ -44,7 +44,7 @@ TAO_HomeDef_i::destroy (void) } void -TAO_HomeDef_i::destroy_i (void) +TAO_HomeDef_i::destroy_i () { // Destroy our special subsections first, then call destroy_i // on our base class. @@ -65,7 +65,7 @@ TAO_HomeDef_i::destroy_i (void) } CORBA::Contained::Description * -TAO_HomeDef_i::describe (void) +TAO_HomeDef_i::describe () { TAO_IFR_READ_GUARD_RETURN (0); @@ -75,7 +75,7 @@ TAO_HomeDef_i::describe (void) } CORBA::Contained::Description * -TAO_HomeDef_i::describe_i (void) +TAO_HomeDef_i::describe_i () { CORBA::ComponentIR::HomeDescription home_desc; @@ -150,7 +150,7 @@ TAO_HomeDef_i::describe_i (void) } CORBA::TypeCode_ptr -TAO_HomeDef_i::type (void) +TAO_HomeDef_i::type () { TAO_IFR_READ_GUARD_RETURN (CORBA::TypeCode::_nil ()); @@ -160,7 +160,7 @@ TAO_HomeDef_i::type (void) } CORBA::TypeCode_ptr -TAO_HomeDef_i::type_i (void) +TAO_HomeDef_i::type_i () { ACE_TString id; this->repo_->config ()->get_string_value (this->section_key_, @@ -177,7 +177,7 @@ TAO_HomeDef_i::type_i (void) } CORBA::ComponentIR::HomeDef_ptr -TAO_HomeDef_i::base_home (void) +TAO_HomeDef_i::base_home () { TAO_IFR_READ_GUARD_RETURN (CORBA::ComponentIR::HomeDef::_nil ()); @@ -187,7 +187,7 @@ TAO_HomeDef_i::base_home (void) } CORBA::ComponentIR::HomeDef_ptr -TAO_HomeDef_i::base_home_i (void) +TAO_HomeDef_i::base_home_i () { ACE_TString path; int status = @@ -336,7 +336,7 @@ TAO_HomeDef_i::supported_interfaces_i ( } CORBA::ComponentIR::ComponentDef_ptr -TAO_HomeDef_i::managed_component (void) +TAO_HomeDef_i::managed_component () { TAO_IFR_READ_GUARD_RETURN (CORBA::ComponentIR::ComponentDef::_nil ()); @@ -346,7 +346,7 @@ TAO_HomeDef_i::managed_component (void) } CORBA::ComponentIR::ComponentDef_ptr -TAO_HomeDef_i::managed_component_i (void) +TAO_HomeDef_i::managed_component_i () { ACE_TString path; this->repo_->config ()->get_string_value (this->section_key_, @@ -383,7 +383,7 @@ TAO_HomeDef_i::managed_component_i ( } CORBA::ValueDef_ptr -TAO_HomeDef_i::primary_key (void) +TAO_HomeDef_i::primary_key () { TAO_IFR_READ_GUARD_RETURN (CORBA::ValueDef::_nil ()); @@ -393,7 +393,7 @@ TAO_HomeDef_i::primary_key (void) } CORBA::ValueDef_ptr -TAO_HomeDef_i::primary_key_i (void) +TAO_HomeDef_i::primary_key_i () { ACE_TString path; int status = diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IDLType_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/IDLType_i.cpp index 78c10859022..522df7a364b 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/IDLType_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/IDLType_i.cpp @@ -7,7 +7,7 @@ TAO_IDLType_i::TAO_IDLType_i (TAO_Repository_i *repo) { } -TAO_IDLType_i::~TAO_IDLType_i (void) +TAO_IDLType_i::~TAO_IDLType_i () { } diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp b/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp index fa7b25f8c37..7b661d821bf 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp @@ -14,12 +14,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_IFR_Service_Loader::TAO_IFR_Service_Loader (void) +TAO_IFR_Service_Loader::TAO_IFR_Service_Loader () { // Constructor } -TAO_IFR_Service_Loader::~TAO_IFR_Service_Loader (void) +TAO_IFR_Service_Loader::~TAO_IFR_Service_Loader () { // Destructor } @@ -50,7 +50,7 @@ TAO_IFR_Service_Loader::init (int argc, } int -TAO_IFR_Service_Loader::fini (void) +TAO_IFR_Service_Loader::fini () { // Remove the IFR_Service Service. return this->ifr_server_.fini (); diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils.cpp b/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils.cpp index 09f75725f10..9497487226b 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils.cpp @@ -22,13 +22,13 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Repository_i *TAO_IFR_Service_Utils::repo_ = 0; -TAO_IFR_Server::TAO_IFR_Server (void) +TAO_IFR_Server::TAO_IFR_Server () : ior_multicast_ (0), config_ (0) { } -TAO_IFR_Server::~TAO_IFR_Server (void) +TAO_IFR_Server::~TAO_IFR_Server () { // Get reactor instance from TAO. ACE_Reactor *reactor = this->orb_->orb_core ()->reactor (); @@ -148,7 +148,7 @@ TAO_IFR_Server::init_with_poa (int argc, } int -TAO_IFR_Server::fini (void) +TAO_IFR_Server::fini () { try { @@ -164,7 +164,7 @@ TAO_IFR_Server::fini (void) } int -TAO_IFR_Server::create_poa (void) +TAO_IFR_Server::create_poa () { PortableServer::POAManager_var poa_manager = this->root_poa_->the_POAManager (); @@ -211,7 +211,7 @@ TAO_IFR_Server::create_poa (void) } int -TAO_IFR_Server::open_config (void) +TAO_IFR_Server::open_config () { if (OPTIONS::instance ()->using_registry ()) { @@ -266,7 +266,7 @@ TAO_IFR_Server::open_config (void) } int -TAO_IFR_Server::create_repository (void) +TAO_IFR_Server::create_repository () { TAO_ComponentRepository_i *impl = 0; ACE_NEW_THROW_EX ( @@ -279,7 +279,7 @@ TAO_IFR_Server::create_repository (void) CORBA::NO_MEMORY () ); - auto_ptr<TAO_ComponentRepository_i> safety (impl); + std::unique_ptr<TAO_ComponentRepository_i> safety (impl); TAO_IFR_Service_Utils::repo_ = impl; POA_CORBA::ComponentIR::Repository_tie<TAO_ComponentRepository_i> *impl_tie = 0; @@ -371,7 +371,7 @@ TAO_IFR_Server::create_repository (void) // Install ior multicast handler. int -TAO_IFR_Server::init_multicast_server (void) +TAO_IFR_Server::init_multicast_server () { #if defined (ACE_HAS_IP_MULTICAST) // Get reactor instance from TAO. @@ -463,11 +463,11 @@ TAO_IFR_Server::init_multicast_server (void) return 0; } -TAO_IFR_Service_Utils::TAO_IFR_Service_Utils (void) +TAO_IFR_Service_Utils::TAO_IFR_Service_Utils () { } -TAO_IFR_Service_Utils::~TAO_IFR_Service_Utils (void) +TAO_IFR_Service_Utils::~TAO_IFR_Service_Utils () { } diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IRObject_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/IRObject_i.cpp index 4b4bf77db08..a93bfc97e9a 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/IRObject_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/IRObject_i.cpp @@ -17,7 +17,7 @@ TAO_IRObject_i::TAO_IRObject_i (TAO_Repository_i *repo) { } -TAO_IRObject_i::~TAO_IRObject_i (void) +TAO_IRObject_i::~TAO_IRObject_i () { } @@ -36,7 +36,7 @@ TAO_IRObject_i::section_key (ACE_Configuration_Section_Key &key) } void -TAO_IRObject_i::update_key (void) +TAO_IRObject_i::update_key () { TAO::Portable_Server::POA_Current_Impl *pc_impl = static_cast <TAO::Portable_Server::POA_Current_Impl *> diff --git a/TAO/orbsvcs/orbsvcs/IFRService/InterfaceAttrExtension_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/InterfaceAttrExtension_i.cpp index 50f496b0dba..6ca2337f6b4 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/InterfaceAttrExtension_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/InterfaceAttrExtension_i.cpp @@ -18,7 +18,7 @@ TAO_InterfaceAttrExtension_i::TAO_InterfaceAttrExtension_i ( { } -TAO_InterfaceAttrExtension_i::~TAO_InterfaceAttrExtension_i (void) +TAO_InterfaceAttrExtension_i::~TAO_InterfaceAttrExtension_i () { } diff --git a/TAO/orbsvcs/orbsvcs/IFRService/InterfaceDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/InterfaceDef_i.cpp index 1baecb43533..d2f73c4d659 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/InterfaceDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/InterfaceDef_i.cpp @@ -17,18 +17,18 @@ TAO_InterfaceDef_i::TAO_InterfaceDef_i (TAO_Repository_i *repo) { } -TAO_InterfaceDef_i::~TAO_InterfaceDef_i (void) +TAO_InterfaceDef_i::~TAO_InterfaceDef_i () { } CORBA::DefinitionKind -TAO_InterfaceDef_i::def_kind (void) +TAO_InterfaceDef_i::def_kind () { return CORBA::dk_Interface; } void -TAO_InterfaceDef_i::destroy (void) +TAO_InterfaceDef_i::destroy () { TAO_IFR_WRITE_GUARD; @@ -38,7 +38,7 @@ TAO_InterfaceDef_i::destroy (void) } void -TAO_InterfaceDef_i::destroy_i (void) +TAO_InterfaceDef_i::destroy_i () { // Destroy our members. this->TAO_Container_i::destroy_i (); @@ -64,7 +64,7 @@ TAO_InterfaceDef_i::destroy_i (void) } CORBA::Contained::Description * -TAO_InterfaceDef_i::describe (void) +TAO_InterfaceDef_i::describe () { TAO_IFR_READ_GUARD_RETURN (0); @@ -74,7 +74,7 @@ TAO_InterfaceDef_i::describe (void) } CORBA::Contained::Description * -TAO_InterfaceDef_i::describe_i (void) +TAO_InterfaceDef_i::describe_i () { CORBA::Contained::Description *desc_ptr = 0; ACE_NEW_THROW_EX (desc_ptr, @@ -137,7 +137,7 @@ TAO_InterfaceDef_i::describe_i (void) } CORBA::TypeCode_ptr -TAO_InterfaceDef_i::type (void) +TAO_InterfaceDef_i::type () { TAO_IFR_READ_GUARD_RETURN (CORBA::TypeCode::_nil ()); @@ -147,7 +147,7 @@ TAO_InterfaceDef_i::type (void) } CORBA::TypeCode_ptr -TAO_InterfaceDef_i::type_i (void) +TAO_InterfaceDef_i::type_i () { ACE_TString id; this->repo_->config ()->get_string_value (this->section_key_, @@ -166,7 +166,7 @@ TAO_InterfaceDef_i::type_i (void) } CORBA::InterfaceDefSeq * -TAO_InterfaceDef_i::base_interfaces (void) +TAO_InterfaceDef_i::base_interfaces () { TAO_IFR_READ_GUARD_RETURN (0); @@ -176,7 +176,7 @@ TAO_InterfaceDef_i::base_interfaces (void) } CORBA::InterfaceDefSeq * -TAO_InterfaceDef_i::base_interfaces_i (void) +TAO_InterfaceDef_i::base_interfaces_i () { ACE_Unbounded_Queue<CORBA::DefinitionKind> kind_queue; ACE_Unbounded_Queue<ACE_TString> path_queue; @@ -355,7 +355,7 @@ TAO_InterfaceDef_i::is_a_i (const char *interface_id) } CORBA::InterfaceDef::FullInterfaceDescription * -TAO_InterfaceDef_i::describe_interface (void) +TAO_InterfaceDef_i::describe_interface () { TAO_IFR_READ_GUARD_RETURN (0); @@ -365,7 +365,7 @@ TAO_InterfaceDef_i::describe_interface (void) } CORBA::InterfaceDef::FullInterfaceDescription * -TAO_InterfaceDef_i::describe_interface_i (void) +TAO_InterfaceDef_i::describe_interface_i () { CORBA::InterfaceDef::FullInterfaceDescription *fifd = 0; ACE_NEW_RETURN (fifd, diff --git a/TAO/orbsvcs/orbsvcs/IFRService/LocalInterfaceDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/LocalInterfaceDef_i.cpp index d078ec7ca7f..3ddbc46afed 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/LocalInterfaceDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/LocalInterfaceDef_i.cpp @@ -12,12 +12,12 @@ TAO_LocalInterfaceDef_i::TAO_LocalInterfaceDef_i (TAO_Repository_i *repo) { } -TAO_LocalInterfaceDef_i::~TAO_LocalInterfaceDef_i (void) +TAO_LocalInterfaceDef_i::~TAO_LocalInterfaceDef_i () { } CORBA::DefinitionKind -TAO_LocalInterfaceDef_i::def_kind (void) +TAO_LocalInterfaceDef_i::def_kind () { return CORBA::dk_LocalInterface; } diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ModuleDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ModuleDef_i.cpp index 9f5b20010d0..ba036951827 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/ModuleDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/ModuleDef_i.cpp @@ -14,18 +14,18 @@ TAO_ModuleDef_i::TAO_ModuleDef_i (TAO_Repository_i *repo) { } -TAO_ModuleDef_i::~TAO_ModuleDef_i (void) +TAO_ModuleDef_i::~TAO_ModuleDef_i () { } CORBA::DefinitionKind -TAO_ModuleDef_i::def_kind (void) +TAO_ModuleDef_i::def_kind () { return CORBA::dk_Module; } void -TAO_ModuleDef_i::destroy (void) +TAO_ModuleDef_i::destroy () { TAO_IFR_WRITE_GUARD; @@ -35,7 +35,7 @@ TAO_ModuleDef_i::destroy (void) } void -TAO_ModuleDef_i::destroy_i (void) +TAO_ModuleDef_i::destroy_i () { // Destroy our members. TAO_Container_i::destroy_i (); @@ -45,7 +45,7 @@ TAO_ModuleDef_i::destroy_i (void) } CORBA::Contained::Description * -TAO_ModuleDef_i::describe (void) +TAO_ModuleDef_i::describe () { TAO_IFR_READ_GUARD_RETURN (0); @@ -55,7 +55,7 @@ TAO_ModuleDef_i::describe (void) } CORBA::Contained::Description * -TAO_ModuleDef_i::describe_i (void) +TAO_ModuleDef_i::describe_i () { CORBA::Contained::Description *desc_ptr = 0; ACE_NEW_THROW_EX (desc_ptr, diff --git a/TAO/orbsvcs/orbsvcs/IFRService/NativeDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/NativeDef_i.cpp index d3bdb5e3192..4894451318a 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/NativeDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/NativeDef_i.cpp @@ -13,18 +13,18 @@ TAO_NativeDef_i::TAO_NativeDef_i (TAO_Repository_i *repo) { } -TAO_NativeDef_i::~TAO_NativeDef_i (void) +TAO_NativeDef_i::~TAO_NativeDef_i () { } CORBA::DefinitionKind -TAO_NativeDef_i::def_kind (void) +TAO_NativeDef_i::def_kind () { return CORBA::dk_Native; } CORBA::TypeCode_ptr -TAO_NativeDef_i::type (void) +TAO_NativeDef_i::type () { TAO_IFR_READ_GUARD_RETURN (CORBA::TypeCode::_nil ()); @@ -34,7 +34,7 @@ TAO_NativeDef_i::type (void) } CORBA::TypeCode_ptr -TAO_NativeDef_i::type_i (void) +TAO_NativeDef_i::type_i () { ACE_TString id; this->repo_->config ()->get_string_value (this->section_key_, diff --git a/TAO/orbsvcs/orbsvcs/IFRService/OperationDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/OperationDef_i.cpp index 73c79b50ff2..e4981989d82 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/OperationDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/OperationDef_i.cpp @@ -19,12 +19,12 @@ TAO_OperationDef_i::TAO_OperationDef_i ( { } -TAO_OperationDef_i::~TAO_OperationDef_i (void) +TAO_OperationDef_i::~TAO_OperationDef_i () { } CORBA::DefinitionKind -TAO_OperationDef_i::def_kind (void) +TAO_OperationDef_i::def_kind () { return CORBA::dk_Operation; } @@ -60,7 +60,7 @@ TAO_OperationDef_i::describe_i ( ) } CORBA::TypeCode_ptr -TAO_OperationDef_i::result (void) +TAO_OperationDef_i::result () { TAO_IFR_READ_GUARD_RETURN (CORBA::TypeCode::_nil ()); @@ -70,7 +70,7 @@ TAO_OperationDef_i::result (void) } CORBA::TypeCode_ptr -TAO_OperationDef_i::result_i (void) +TAO_OperationDef_i::result_i () { ACE_TString result_path; this->repo_->config ()->get_string_value (this->section_key_, @@ -86,7 +86,7 @@ TAO_OperationDef_i::result_i (void) } CORBA::IDLType_ptr -TAO_OperationDef_i::result_def (void) +TAO_OperationDef_i::result_def () { TAO_IFR_READ_GUARD_RETURN (CORBA::IDLType::_nil ()); @@ -96,7 +96,7 @@ TAO_OperationDef_i::result_def (void) } CORBA::IDLType_ptr -TAO_OperationDef_i::result_def_i (void) +TAO_OperationDef_i::result_def_i () { ACE_TString result_path; this->repo_->config ()->get_string_value (this->section_key_, @@ -132,7 +132,7 @@ TAO_OperationDef_i::result_def_i (CORBA::IDLType_ptr result_def) } CORBA::ParDescriptionSeq * -TAO_OperationDef_i::params (void) +TAO_OperationDef_i::params () { TAO_IFR_READ_GUARD_RETURN (0); @@ -142,7 +142,7 @@ TAO_OperationDef_i::params (void) } CORBA::ParDescriptionSeq * -TAO_OperationDef_i::params_i (void) +TAO_OperationDef_i::params_i () { CORBA::ULong i = 0; ACE_Configuration_Section_Key params_key; @@ -307,7 +307,7 @@ TAO_OperationDef_i::params_i (const CORBA::ParDescriptionSeq ¶ms) } CORBA::OperationMode -TAO_OperationDef_i::mode (void) +TAO_OperationDef_i::mode () { TAO_IFR_READ_GUARD_RETURN (CORBA::OP_NORMAL); @@ -317,7 +317,7 @@ TAO_OperationDef_i::mode (void) } CORBA::OperationMode -TAO_OperationDef_i::mode_i (void) +TAO_OperationDef_i::mode_i () { u_int mode; this->repo_->config ()->get_integer_value (this->section_key_, @@ -346,7 +346,7 @@ TAO_OperationDef_i::mode_i (CORBA::OperationMode mode) } CORBA::ContextIdSeq * -TAO_OperationDef_i::contexts (void) +TAO_OperationDef_i::contexts () { TAO_IFR_READ_GUARD_RETURN (0); @@ -356,7 +356,7 @@ TAO_OperationDef_i::contexts (void) } CORBA::ContextIdSeq * -TAO_OperationDef_i::contexts_i (void) +TAO_OperationDef_i::contexts_i () { ACE_Configuration_Section_Key contexts_key; int status = @@ -665,7 +665,7 @@ TAO_OperationDef_i::make_description ( } CORBA::TypeCode_ptr -TAO_OperationDef_i::type_i (void) +TAO_OperationDef_i::type_i () { return this->result_i (); } diff --git a/TAO/orbsvcs/orbsvcs/IFRService/Options.cpp b/TAO/orbsvcs/orbsvcs/IFRService/Options.cpp index dd6ba317df2..2c545920ee0 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/Options.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/Options.cpp @@ -90,37 +90,37 @@ Options::parse_args (int argc, ACE_TCHAR *argv[]) } const char * -Options::ior_output_file (void) const +Options::ior_output_file () const { return this->ior_output_file_; } int -Options::persistent (void) const +Options::persistent () const { return this->persistent_; } const char * -Options::persistent_file (void) const +Options::persistent_file () const { return this->persistent_file_; } int -Options::using_registry (void) const +Options::using_registry () const { return this->using_registry_; } int -Options::enable_locking (void) const +Options::enable_locking () const { return this->enable_locking_; } int -Options::support_multicast_discovery (void) const +Options::support_multicast_discovery () const { return this->support_multicast_; } diff --git a/TAO/orbsvcs/orbsvcs/IFRService/PrimitiveDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/PrimitiveDef_i.cpp index 44af15021ad..b0435b983fc 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/PrimitiveDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/PrimitiveDef_i.cpp @@ -9,30 +9,30 @@ TAO_PrimitiveDef_i::TAO_PrimitiveDef_i (TAO_Repository_i *repo) { } -TAO_PrimitiveDef_i::~TAO_PrimitiveDef_i (void) +TAO_PrimitiveDef_i::~TAO_PrimitiveDef_i () { } CORBA::DefinitionKind -TAO_PrimitiveDef_i::def_kind (void) +TAO_PrimitiveDef_i::def_kind () { return CORBA::dk_Primitive; } void -TAO_PrimitiveDef_i::destroy (void) +TAO_PrimitiveDef_i::destroy () { this->destroy_i (); } void -TAO_PrimitiveDef_i::destroy_i (void) +TAO_PrimitiveDef_i::destroy_i () { throw CORBA::BAD_INV_ORDER (CORBA::OMGVMCID | 2, CORBA::COMPLETED_NO); } CORBA::TypeCode_ptr -TAO_PrimitiveDef_i::type (void) +TAO_PrimitiveDef_i::type () { TAO_IFR_READ_GUARD_RETURN (CORBA::TypeCode::_nil ()); @@ -42,7 +42,7 @@ TAO_PrimitiveDef_i::type (void) } CORBA::TypeCode_ptr -TAO_PrimitiveDef_i::type_i (void) +TAO_PrimitiveDef_i::type_i () { u_int pkind = 0; this->repo_->config ()->get_integer_value (this->section_key_, @@ -101,7 +101,7 @@ TAO_PrimitiveDef_i::type_i (void) } CORBA::PrimitiveKind -TAO_PrimitiveDef_i::kind (void) +TAO_PrimitiveDef_i::kind () { TAO_IFR_READ_GUARD_RETURN (CORBA::pk_null); @@ -111,7 +111,7 @@ TAO_PrimitiveDef_i::kind (void) } CORBA::PrimitiveKind -TAO_PrimitiveDef_i::kind_i (void) +TAO_PrimitiveDef_i::kind_i () { u_int pkind = 0; this->repo_->config ()->get_integer_value (this->section_key_, diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ProvidesDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ProvidesDef_i.cpp index 796f36acfb2..55edddb4cc4 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/ProvidesDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/ProvidesDef_i.cpp @@ -12,18 +12,18 @@ TAO_ProvidesDef_i::TAO_ProvidesDef_i (TAO_Repository_i *repo) { } -TAO_ProvidesDef_i::~TAO_ProvidesDef_i (void) +TAO_ProvidesDef_i::~TAO_ProvidesDef_i () { } CORBA::DefinitionKind -TAO_ProvidesDef_i::def_kind (void) +TAO_ProvidesDef_i::def_kind () { return CORBA::dk_Provides; } CORBA::Contained::Description * -TAO_ProvidesDef_i::describe (void) +TAO_ProvidesDef_i::describe () { TAO_IFR_READ_GUARD_RETURN (0); @@ -33,7 +33,7 @@ TAO_ProvidesDef_i::describe (void) } CORBA::Contained::Description * -TAO_ProvidesDef_i::describe_i (void) +TAO_ProvidesDef_i::describe_i () { CORBA::ComponentIR::ProvidesDescription pd; TAO_IFR_Desc_Utils<CORBA::ComponentIR::ProvidesDescription, @@ -60,7 +60,7 @@ TAO_ProvidesDef_i::describe_i (void) } CORBA::InterfaceDef_ptr -TAO_ProvidesDef_i::interface_type (void) +TAO_ProvidesDef_i::interface_type () { TAO_IFR_READ_GUARD_RETURN (CORBA::InterfaceDef::_nil ()); @@ -70,7 +70,7 @@ TAO_ProvidesDef_i::interface_type (void) } CORBA::InterfaceDef_ptr -TAO_ProvidesDef_i::interface_type_i (void) +TAO_ProvidesDef_i::interface_type_i () { ACE_TString holder; this->repo_->config ()->get_string_value (this->section_key_, diff --git a/TAO/orbsvcs/orbsvcs/IFRService/PublishesDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/PublishesDef_i.cpp index 40f64d82e02..c9531a80fb3 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/PublishesDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/PublishesDef_i.cpp @@ -9,12 +9,12 @@ TAO_PublishesDef_i::TAO_PublishesDef_i (TAO_Repository_i *repo) { } -TAO_PublishesDef_i::~TAO_PublishesDef_i (void) +TAO_PublishesDef_i::~TAO_PublishesDef_i () { } CORBA::DefinitionKind -TAO_PublishesDef_i::def_kind (void) +TAO_PublishesDef_i::def_kind () { return CORBA::dk_Publishes; } diff --git a/TAO/orbsvcs/orbsvcs/IFRService/Repository_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/Repository_i.cpp index 3711e269ef8..54778f26be8 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/Repository_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/Repository_i.cpp @@ -28,19 +28,19 @@ TAO_Repository_i::TAO_Repository_i (CORBA::ORB_ptr orb, { } -TAO_Repository_i::~TAO_Repository_i (void) +TAO_Repository_i::~TAO_Repository_i () { delete this->lock_; } CORBA::DefinitionKind -TAO_Repository_i::def_kind (void) +TAO_Repository_i::def_kind () { return CORBA::dk_Repository; } void -TAO_Repository_i::destroy (void) +TAO_Repository_i::destroy () { throw CORBA::BAD_INV_ORDER (CORBA::OMGVMCID | 2, CORBA::COMPLETED_NO); } @@ -549,7 +549,7 @@ TAO_Repository_i::repo_init (CORBA::Repository_ptr repo_ref, } int -TAO_Repository_i::create_sections (void) +TAO_Repository_i::create_sections () { this->config_->open_section (config_->root_section (), "root", @@ -680,7 +680,7 @@ TAO_Repository_i::create_sections (void) } int -TAO_Repository_i::create_servants_and_poas (void) +TAO_Repository_i::create_servants_and_poas () { CORBA::PolicyList policies (5); policies.length (5); @@ -913,25 +913,25 @@ TAO_Repository_i::select_poa (CORBA::DefinitionKind def_kind) const } PortableServer::Current_ptr -TAO_Repository_i::poa_current (void) const +TAO_Repository_i::poa_current () const { return this->poa_current_.in (); } ACE_Configuration * -TAO_Repository_i::config (void) const +TAO_Repository_i::config () const { return this->config_; } CORBA::TypeCodeFactory_ptr -TAO_Repository_i::tc_factory (void) const +TAO_Repository_i::tc_factory () const { return this->tc_factory_.in (); } CORBA::Repository_ptr -TAO_Repository_i::repo_objref (void) const +TAO_Repository_i::repo_objref () const { return CORBA::Repository::_duplicate (this->repo_objref_.in ()); } @@ -943,61 +943,61 @@ TAO_Repository_i::repo_objref (CORBA::Repository_ptr objref) } ACE_Configuration_Section_Key -TAO_Repository_i::root_key (void) const +TAO_Repository_i::root_key () const { return this->root_key_; } ACE_Configuration_Section_Key -TAO_Repository_i::repo_ids_key (void) const +TAO_Repository_i::repo_ids_key () const { return this->repo_ids_key_; } ACE_Configuration_Section_Key -TAO_Repository_i::pkinds_key (void) const +TAO_Repository_i::pkinds_key () const { return this->pkinds_key_; } ACE_Configuration_Section_Key -TAO_Repository_i::strings_key (void) const +TAO_Repository_i::strings_key () const { return this->strings_key_; } ACE_Configuration_Section_Key -TAO_Repository_i::wstrings_key (void) const +TAO_Repository_i::wstrings_key () const { return this->wstrings_key_; } ACE_Configuration_Section_Key -TAO_Repository_i::fixeds_key (void) const +TAO_Repository_i::fixeds_key () const { return this->fixeds_key_; } ACE_Configuration_Section_Key -TAO_Repository_i::arrays_key (void) const +TAO_Repository_i::arrays_key () const { return this->arrays_key_; } ACE_Configuration_Section_Key -TAO_Repository_i::sequences_key (void) const +TAO_Repository_i::sequences_key () const { return this->sequences_key_; } const char * -TAO_Repository_i::extension (void) const +TAO_Repository_i::extension () const { return this->extension_.in (); } ACE_Lock & -TAO_Repository_i::lock (void) const +TAO_Repository_i::lock () const { return *this->lock_; } @@ -1035,14 +1035,14 @@ TAO_Repository_i::pkind_to_string (CORBA::PrimitiveKind pkind) const } u_int -TAO_Repository_i::num_pkinds (void) const +TAO_Repository_i::num_pkinds () const { return sizeof (TAO_Repository_i::TAO_IFR_primitive_kinds) / sizeof (char*); } // For debugging use only. void -TAO_Repository_i::shutdown (void) +TAO_Repository_i::shutdown () { this->orb_->shutdown (0); } diff --git a/TAO/orbsvcs/orbsvcs/IFRService/SequenceDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/SequenceDef_i.cpp index 3badf1b343e..d537a2c5d90 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/SequenceDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/SequenceDef_i.cpp @@ -13,18 +13,18 @@ TAO_SequenceDef_i::TAO_SequenceDef_i (TAO_Repository_i *repo) { } -TAO_SequenceDef_i::~TAO_SequenceDef_i (void) +TAO_SequenceDef_i::~TAO_SequenceDef_i () { } CORBA::DefinitionKind -TAO_SequenceDef_i::def_kind (void) +TAO_SequenceDef_i::def_kind () { return CORBA::dk_Sequence; } void -TAO_SequenceDef_i::destroy (void) +TAO_SequenceDef_i::destroy () { TAO_IFR_WRITE_GUARD; @@ -34,7 +34,7 @@ TAO_SequenceDef_i::destroy (void) } void -TAO_SequenceDef_i::destroy_i (void) +TAO_SequenceDef_i::destroy_i () { // Only if it is (w)string, fixed, array or sequence. this->destroy_element_type (); @@ -50,7 +50,7 @@ TAO_SequenceDef_i::destroy_i (void) } CORBA::TypeCode_ptr -TAO_SequenceDef_i::type (void) +TAO_SequenceDef_i::type () { TAO_IFR_READ_GUARD_RETURN (CORBA::TypeCode::_nil ()); @@ -60,7 +60,7 @@ TAO_SequenceDef_i::type (void) } CORBA::TypeCode_ptr -TAO_SequenceDef_i::type_i (void) +TAO_SequenceDef_i::type_i () { CORBA::TypeCode_var element_typecode = this->element_type_i (); @@ -74,7 +74,7 @@ TAO_SequenceDef_i::type_i (void) } CORBA::ULong -TAO_SequenceDef_i::bound (void) +TAO_SequenceDef_i::bound () { TAO_IFR_READ_GUARD_RETURN (0); @@ -84,7 +84,7 @@ TAO_SequenceDef_i::bound (void) } CORBA::ULong -TAO_SequenceDef_i::bound_i (void) +TAO_SequenceDef_i::bound_i () { u_int bound = 0; this->repo_->config ()->get_integer_value (this->section_key_, @@ -111,7 +111,7 @@ TAO_SequenceDef_i::bound_i (CORBA::ULong bound) } CORBA::TypeCode_ptr -TAO_SequenceDef_i::element_type (void) +TAO_SequenceDef_i::element_type () { TAO_IFR_READ_GUARD_RETURN (CORBA::TypeCode::_nil ()); @@ -121,7 +121,7 @@ TAO_SequenceDef_i::element_type (void) } CORBA::TypeCode_ptr -TAO_SequenceDef_i::element_type_i (void) +TAO_SequenceDef_i::element_type_i () { ACE_TString element_path; this->repo_->config ()->get_string_value (this->section_key_, @@ -136,7 +136,7 @@ TAO_SequenceDef_i::element_type_i (void) } CORBA::IDLType_ptr -TAO_SequenceDef_i::element_type_def (void) +TAO_SequenceDef_i::element_type_def () { TAO_IFR_READ_GUARD_RETURN (CORBA::IDLType::_nil ()); @@ -146,7 +146,7 @@ TAO_SequenceDef_i::element_type_def (void) } CORBA::IDLType_ptr -TAO_SequenceDef_i::element_type_def_i (void) +TAO_SequenceDef_i::element_type_def_i () { ACE_TString element_path; this->repo_->config ()->get_string_value (this->section_key_, diff --git a/TAO/orbsvcs/orbsvcs/IFRService/StringDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/StringDef_i.cpp index d065fb17b9f..b316c778ed6 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/StringDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/StringDef_i.cpp @@ -11,18 +11,18 @@ TAO_StringDef_i::TAO_StringDef_i (TAO_Repository_i *repo) { } -TAO_StringDef_i::~TAO_StringDef_i (void) +TAO_StringDef_i::~TAO_StringDef_i () { } CORBA::DefinitionKind -TAO_StringDef_i::def_kind (void) +TAO_StringDef_i::def_kind () { return CORBA::dk_String; } void -TAO_StringDef_i::destroy (void) +TAO_StringDef_i::destroy () { TAO_IFR_WRITE_GUARD; @@ -32,7 +32,7 @@ TAO_StringDef_i::destroy (void) } void -TAO_StringDef_i::destroy_i (void) +TAO_StringDef_i::destroy_i () { ACE_TString name; this->repo_->config ()->get_string_value (this->section_key_, @@ -45,7 +45,7 @@ TAO_StringDef_i::destroy_i (void) } CORBA::TypeCode_ptr -TAO_StringDef_i::type (void) +TAO_StringDef_i::type () { TAO_IFR_READ_GUARD_RETURN (CORBA::TypeCode::_nil ()); @@ -55,7 +55,7 @@ TAO_StringDef_i::type (void) } CORBA::TypeCode_ptr -TAO_StringDef_i::type_i (void) +TAO_StringDef_i::type_i () { CORBA::ULong bound = this->bound_i (); @@ -65,7 +65,7 @@ TAO_StringDef_i::type_i (void) } CORBA::ULong -TAO_StringDef_i::bound (void) +TAO_StringDef_i::bound () { TAO_IFR_READ_GUARD_RETURN (0); @@ -75,7 +75,7 @@ TAO_StringDef_i::bound (void) } CORBA::ULong -TAO_StringDef_i::bound_i (void) +TAO_StringDef_i::bound_i () { u_int retval = 0; this->repo_->config ()->get_integer_value (this->section_key_, diff --git a/TAO/orbsvcs/orbsvcs/IFRService/StructDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/StructDef_i.cpp index a5586fd2f8b..b085d10321a 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/StructDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/StructDef_i.cpp @@ -17,18 +17,18 @@ TAO_StructDef_i::TAO_StructDef_i (TAO_Repository_i *repo) { } -TAO_StructDef_i::~TAO_StructDef_i (void) +TAO_StructDef_i::~TAO_StructDef_i () { } CORBA::DefinitionKind -TAO_StructDef_i::def_kind (void) +TAO_StructDef_i::def_kind () { return CORBA::dk_Struct; } void -TAO_StructDef_i::destroy (void) +TAO_StructDef_i::destroy () { TAO_IFR_WRITE_GUARD; @@ -38,7 +38,7 @@ TAO_StructDef_i::destroy (void) } void -TAO_StructDef_i::destroy_i (void) +TAO_StructDef_i::destroy_i () { // Destroy our members. TAO_Container_i::destroy_i (); @@ -48,7 +48,7 @@ TAO_StructDef_i::destroy_i (void) } CORBA::TypeCode_ptr -TAO_StructDef_i::type (void) +TAO_StructDef_i::type () { TAO_IFR_READ_GUARD_RETURN (CORBA::TypeCode::_nil ()); @@ -58,7 +58,7 @@ TAO_StructDef_i::type (void) } CORBA::TypeCode_ptr -TAO_StructDef_i::type_i (void) +TAO_StructDef_i::type_i () { ACE_TString id; this->repo_->config ()->get_string_value (this->section_key_, @@ -97,7 +97,7 @@ TAO_StructDef_i::type_i (void) } CORBA::StructMemberSeq * -TAO_StructDef_i::members (void) +TAO_StructDef_i::members () { TAO_IFR_READ_GUARD_RETURN (0); @@ -107,7 +107,7 @@ TAO_StructDef_i::members (void) } CORBA::StructMemberSeq * -TAO_StructDef_i::members_i (void) +TAO_StructDef_i::members_i () { ACE_Unbounded_Queue<CORBA::DefinitionKind> kind_queue; ACE_Unbounded_Queue<ACE_TString> path_queue; diff --git a/TAO/orbsvcs/orbsvcs/IFRService/TypedefDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/TypedefDef_i.cpp index 486c5fd408b..27aff95a6a3 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/TypedefDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/TypedefDef_i.cpp @@ -12,12 +12,12 @@ TAO_TypedefDef_i::TAO_TypedefDef_i (TAO_Repository_i *repo) { } -TAO_TypedefDef_i::~TAO_TypedefDef_i (void) +TAO_TypedefDef_i::~TAO_TypedefDef_i () { } CORBA::Contained::Description * -TAO_TypedefDef_i::describe (void) +TAO_TypedefDef_i::describe () { TAO_IFR_READ_GUARD_RETURN (0); @@ -27,7 +27,7 @@ TAO_TypedefDef_i::describe (void) } CORBA::Contained::Description * -TAO_TypedefDef_i::describe_i (void) +TAO_TypedefDef_i::describe_i () { CORBA::Contained::Description *desc_ptr = 0; ACE_NEW_THROW_EX (desc_ptr, diff --git a/TAO/orbsvcs/orbsvcs/IFRService/UnionDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/UnionDef_i.cpp index e77bcc3742a..99eac21a96a 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/UnionDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/UnionDef_i.cpp @@ -20,18 +20,18 @@ TAO_UnionDef_i::TAO_UnionDef_i (TAO_Repository_i *repo) { } -TAO_UnionDef_i::~TAO_UnionDef_i (void) +TAO_UnionDef_i::~TAO_UnionDef_i () { } CORBA::DefinitionKind -TAO_UnionDef_i::def_kind (void) +TAO_UnionDef_i::def_kind () { return CORBA::dk_Union; } void -TAO_UnionDef_i::destroy (void) +TAO_UnionDef_i::destroy () { TAO_IFR_WRITE_GUARD; @@ -41,7 +41,7 @@ TAO_UnionDef_i::destroy (void) } void -TAO_UnionDef_i::destroy_i (void) +TAO_UnionDef_i::destroy_i () { // Destroy our members. TAO_Container_i::destroy_i (); @@ -51,7 +51,7 @@ TAO_UnionDef_i::destroy_i (void) } CORBA::TypeCode_ptr -TAO_UnionDef_i::type (void) +TAO_UnionDef_i::type () { TAO_IFR_READ_GUARD_RETURN (CORBA::TypeCode::_nil ()); @@ -61,7 +61,7 @@ TAO_UnionDef_i::type (void) } CORBA::TypeCode_ptr -TAO_UnionDef_i::type_i (void) +TAO_UnionDef_i::type_i () { ACE_TString id; this->repo_->config ()->get_string_value (this->section_key_, @@ -103,7 +103,7 @@ TAO_UnionDef_i::type_i (void) } CORBA::TypeCode_ptr -TAO_UnionDef_i::discriminator_type (void) +TAO_UnionDef_i::discriminator_type () { TAO_IFR_READ_GUARD_RETURN (CORBA::TypeCode::_nil ()); @@ -113,7 +113,7 @@ TAO_UnionDef_i::discriminator_type (void) } CORBA::TypeCode_ptr -TAO_UnionDef_i::discriminator_type_i (void) +TAO_UnionDef_i::discriminator_type_i () { ACE_TString disc_path; this->repo_->config ()->get_string_value (this->section_key_, @@ -132,7 +132,7 @@ TAO_UnionDef_i::discriminator_type_i (void) } CORBA::IDLType_ptr -TAO_UnionDef_i::discriminator_type_def (void) +TAO_UnionDef_i::discriminator_type_def () { TAO_IFR_READ_GUARD_RETURN (CORBA::IDLType::_nil ()); @@ -142,7 +142,7 @@ TAO_UnionDef_i::discriminator_type_def (void) } CORBA::IDLType_ptr -TAO_UnionDef_i::discriminator_type_def_i (void) +TAO_UnionDef_i::discriminator_type_def_i () { ACE_TString disc_path; this->repo_->config ()->get_string_value (this->section_key_, @@ -182,7 +182,7 @@ TAO_UnionDef_i::discriminator_type_def_i ( } CORBA::UnionMemberSeq * -TAO_UnionDef_i::members (void) +TAO_UnionDef_i::members () { TAO_IFR_READ_GUARD_RETURN (0); @@ -192,7 +192,7 @@ TAO_UnionDef_i::members (void) } CORBA::UnionMemberSeq * -TAO_UnionDef_i::members_i (void) +TAO_UnionDef_i::members_i () { ACE_Unbounded_Queue<ACE_Configuration_Section_Key> key_queue; diff --git a/TAO/orbsvcs/orbsvcs/IFRService/UsesDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/UsesDef_i.cpp index 7c8b1435634..a872766822f 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/UsesDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/UsesDef_i.cpp @@ -13,18 +13,18 @@ TAO_UsesDef_i::TAO_UsesDef_i (TAO_Repository_i *repo) { } -TAO_UsesDef_i::~TAO_UsesDef_i (void) +TAO_UsesDef_i::~TAO_UsesDef_i () { } CORBA::DefinitionKind -TAO_UsesDef_i::def_kind (void) +TAO_UsesDef_i::def_kind () { return CORBA::dk_Uses; } CORBA::Contained::Description * -TAO_UsesDef_i::describe (void) +TAO_UsesDef_i::describe () { TAO_IFR_READ_GUARD_RETURN (0); @@ -34,7 +34,7 @@ TAO_UsesDef_i::describe (void) } CORBA::Contained::Description * -TAO_UsesDef_i::describe_i (void) +TAO_UsesDef_i::describe_i () { CORBA::ComponentIR::UsesDescription ud; TAO_IFR_Desc_Utils<CORBA::ComponentIR::UsesDescription, @@ -62,7 +62,7 @@ TAO_UsesDef_i::describe_i (void) } CORBA::InterfaceDef_ptr -TAO_UsesDef_i::interface_type (void) +TAO_UsesDef_i::interface_type () { TAO_IFR_READ_GUARD_RETURN (CORBA::InterfaceDef::_nil ()); @@ -72,7 +72,7 @@ TAO_UsesDef_i::interface_type (void) } CORBA::InterfaceDef_ptr -TAO_UsesDef_i::interface_type_i (void) +TAO_UsesDef_i::interface_type_i () { ACE_TString holder; this->repo_->config ()->get_string_value (this->section_key_, @@ -135,7 +135,7 @@ TAO_UsesDef_i::interface_type_i ( } CORBA::Boolean -TAO_UsesDef_i::is_multiple (void) +TAO_UsesDef_i::is_multiple () { TAO_IFR_READ_GUARD_RETURN (0); @@ -145,7 +145,7 @@ TAO_UsesDef_i::is_multiple (void) } CORBA::Boolean -TAO_UsesDef_i::is_multiple_i (void) +TAO_UsesDef_i::is_multiple_i () { CORBA::ULong val = 0; this->repo_->config ()->get_integer_value (this->section_key_, diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ValueBoxDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ValueBoxDef_i.cpp index 178c524cd76..496a915607b 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/ValueBoxDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/ValueBoxDef_i.cpp @@ -17,18 +17,18 @@ TAO_ValueBoxDef_i::TAO_ValueBoxDef_i ( { } -TAO_ValueBoxDef_i::~TAO_ValueBoxDef_i (void) +TAO_ValueBoxDef_i::~TAO_ValueBoxDef_i () { } CORBA::DefinitionKind -TAO_ValueBoxDef_i::def_kind (void) +TAO_ValueBoxDef_i::def_kind () { return CORBA::dk_ValueBox; } CORBA::TypeCode_ptr -TAO_ValueBoxDef_i::type (void) +TAO_ValueBoxDef_i::type () { TAO_IFR_READ_GUARD_RETURN (CORBA::TypeCode::_nil ()); @@ -38,7 +38,7 @@ TAO_ValueBoxDef_i::type (void) } CORBA::TypeCode_ptr -TAO_ValueBoxDef_i::type_i (void) +TAO_ValueBoxDef_i::type_i () { ACE_TString id; this->repo_->config ()->get_string_value (this->section_key_, @@ -67,7 +67,7 @@ TAO_ValueBoxDef_i::type_i (void) } CORBA::IDLType_ptr -TAO_ValueBoxDef_i::original_type_def (void) +TAO_ValueBoxDef_i::original_type_def () { TAO_IFR_READ_GUARD_RETURN (CORBA::IDLType::_nil ()); @@ -77,7 +77,7 @@ TAO_ValueBoxDef_i::original_type_def (void) } CORBA::IDLType_ptr -TAO_ValueBoxDef_i::original_type_def_i (void) +TAO_ValueBoxDef_i::original_type_def_i () { ACE_TString boxed_type_path; this->repo_->config ()->get_string_value (this->section_key_, diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ValueDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ValueDef_i.cpp index b79502df952..304a998ca67 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/ValueDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/ValueDef_i.cpp @@ -17,18 +17,18 @@ TAO_ValueDef_i::TAO_ValueDef_i (TAO_Repository_i *repo) { } -TAO_ValueDef_i::~TAO_ValueDef_i (void) +TAO_ValueDef_i::~TAO_ValueDef_i () { } CORBA::DefinitionKind -TAO_ValueDef_i::def_kind (void) +TAO_ValueDef_i::def_kind () { return CORBA::dk_Value; } void -TAO_ValueDef_i::destroy (void) +TAO_ValueDef_i::destroy () { TAO_IFR_WRITE_GUARD; @@ -38,7 +38,7 @@ TAO_ValueDef_i::destroy (void) } void -TAO_ValueDef_i::destroy_i (void) +TAO_ValueDef_i::destroy_i () { this->TAO_Container_i::destroy_i (); @@ -60,7 +60,7 @@ TAO_ValueDef_i::destroy_i (void) } CORBA::Contained::Description * -TAO_ValueDef_i::describe (void) +TAO_ValueDef_i::describe () { TAO_IFR_READ_GUARD_RETURN (0); @@ -70,7 +70,7 @@ TAO_ValueDef_i::describe (void) } CORBA::Contained::Description * -TAO_ValueDef_i::describe_i (void) +TAO_ValueDef_i::describe_i () { CORBA::ValueDescription *vd = 0; ACE_NEW_RETURN (vd, @@ -91,7 +91,7 @@ TAO_ValueDef_i::describe_i (void) } CORBA::TypeCode_ptr -TAO_ValueDef_i::type (void) +TAO_ValueDef_i::type () { TAO_IFR_READ_GUARD_RETURN (CORBA::TypeCode::_nil ()); @@ -101,7 +101,7 @@ TAO_ValueDef_i::type (void) } CORBA::TypeCode_ptr -TAO_ValueDef_i::type_i (void) +TAO_ValueDef_i::type_i () { /// Since valuetype type codes may encapsultate the type code of a /// base class, this call could be recursive, with the @@ -113,7 +113,7 @@ TAO_ValueDef_i::type_i (void) } CORBA::InterfaceDefSeq * -TAO_ValueDef_i::supported_interfaces (void) +TAO_ValueDef_i::supported_interfaces () { TAO_IFR_READ_GUARD_RETURN (0); @@ -123,7 +123,7 @@ TAO_ValueDef_i::supported_interfaces (void) } CORBA::InterfaceDefSeq * -TAO_ValueDef_i::supported_interfaces_i (void) +TAO_ValueDef_i::supported_interfaces_i () { CORBA::InterfaceDefSeq *seq = 0; ACE_NEW_RETURN (seq, @@ -257,7 +257,7 @@ TAO_ValueDef_i::supported_interfaces_i ( } CORBA::InitializerSeq * -TAO_ValueDef_i::initializers (void) +TAO_ValueDef_i::initializers () { TAO_IFR_READ_GUARD_RETURN (0); @@ -267,7 +267,7 @@ TAO_ValueDef_i::initializers (void) } CORBA::InitializerSeq * -TAO_ValueDef_i::initializers_i (void) +TAO_ValueDef_i::initializers_i () { CORBA::InitializerSeq *iseq = 0; ACE_NEW_RETURN (iseq, @@ -383,7 +383,7 @@ TAO_ValueDef_i::initializers_i (const CORBA::InitializerSeq &initializers) } CORBA::ValueDef_ptr -TAO_ValueDef_i::base_value (void) +TAO_ValueDef_i::base_value () { TAO_IFR_READ_GUARD_RETURN (CORBA::ValueDef::_nil ()); @@ -393,7 +393,7 @@ TAO_ValueDef_i::base_value (void) } CORBA::ValueDef_ptr -TAO_ValueDef_i::base_value_i (void) +TAO_ValueDef_i::base_value_i () { ACE_TString base_path; int status = @@ -458,7 +458,7 @@ TAO_ValueDef_i::base_value_i (CORBA::ValueDef_ptr base_value) } CORBA::ValueDefSeq * -TAO_ValueDef_i::abstract_base_values (void) +TAO_ValueDef_i::abstract_base_values () { TAO_IFR_READ_GUARD_RETURN (0); @@ -468,7 +468,7 @@ TAO_ValueDef_i::abstract_base_values (void) } CORBA::ValueDefSeq * -TAO_ValueDef_i::abstract_base_values_i (void) +TAO_ValueDef_i::abstract_base_values_i () { CORBA::ValueDefSeq *vd_seq = 0; ACE_NEW_RETURN (vd_seq, @@ -585,7 +585,7 @@ TAO_ValueDef_i::abstract_base_values_i ( } CORBA::Boolean -TAO_ValueDef_i::is_abstract (void) +TAO_ValueDef_i::is_abstract () { TAO_IFR_READ_GUARD_RETURN (0); @@ -595,7 +595,7 @@ TAO_ValueDef_i::is_abstract (void) } CORBA::Boolean -TAO_ValueDef_i::is_abstract_i (void) +TAO_ValueDef_i::is_abstract_i () { CORBA::ULong is_it = 0; this->repo_->config ()->get_integer_value (this->section_key_, @@ -624,7 +624,7 @@ TAO_ValueDef_i::is_abstract_i (CORBA::Boolean is_abstract) } CORBA::Boolean -TAO_ValueDef_i::is_custom (void) +TAO_ValueDef_i::is_custom () { TAO_IFR_READ_GUARD_RETURN (0); @@ -634,7 +634,7 @@ TAO_ValueDef_i::is_custom (void) } CORBA::Boolean -TAO_ValueDef_i::is_custom_i (void) +TAO_ValueDef_i::is_custom_i () { CORBA::ULong is_it = 0; this->repo_->config ()->get_integer_value (this->section_key_, @@ -663,7 +663,7 @@ TAO_ValueDef_i::is_custom_i (CORBA::Boolean is_custom) } CORBA::Boolean -TAO_ValueDef_i::is_truncatable (void) +TAO_ValueDef_i::is_truncatable () { TAO_IFR_READ_GUARD_RETURN (0); @@ -673,7 +673,7 @@ TAO_ValueDef_i::is_truncatable (void) } CORBA::Boolean -TAO_ValueDef_i::is_truncatable_i (void) +TAO_ValueDef_i::is_truncatable_i () { CORBA::ULong is_it = 0; this->repo_->config ()->get_integer_value (this->section_key_, @@ -800,7 +800,7 @@ TAO_ValueDef_i::is_a_i (const char *id) } CORBA::ValueDef::FullValueDescription * -TAO_ValueDef_i::describe_value (void) +TAO_ValueDef_i::describe_value () { TAO_IFR_READ_GUARD_RETURN (0); @@ -810,7 +810,7 @@ TAO_ValueDef_i::describe_value (void) } CORBA::ValueDef::FullValueDescription * -TAO_ValueDef_i::describe_value_i (void) +TAO_ValueDef_i::describe_value_i () { CORBA::ValueDef::FullValueDescription *fv_desc = 0; ACE_NEW_RETURN (fv_desc, diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ValueMemberDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ValueMemberDef_i.cpp index d446026e696..332b6004b6c 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/ValueMemberDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/ValueMemberDef_i.cpp @@ -14,18 +14,18 @@ TAO_ValueMemberDef_i::TAO_ValueMemberDef_i (TAO_Repository_i *repo) { } -TAO_ValueMemberDef_i::~TAO_ValueMemberDef_i (void) +TAO_ValueMemberDef_i::~TAO_ValueMemberDef_i () { } CORBA::DefinitionKind -TAO_ValueMemberDef_i::def_kind (void) +TAO_ValueMemberDef_i::def_kind () { return CORBA::dk_ValueMember; } CORBA::Contained::Description * -TAO_ValueMemberDef_i::describe (void) +TAO_ValueMemberDef_i::describe () { TAO_IFR_READ_GUARD_RETURN (0); @@ -35,7 +35,7 @@ TAO_ValueMemberDef_i::describe (void) } CORBA::Contained::Description * -TAO_ValueMemberDef_i::describe_i (void) +TAO_ValueMemberDef_i::describe_i () { CORBA::ValueMember vm; TAO_IFR_Desc_Utils<CORBA::ValueMember, @@ -74,7 +74,7 @@ TAO_ValueMemberDef_i::describe_i (void) } CORBA::TypeCode_ptr -TAO_ValueMemberDef_i::type (void) +TAO_ValueMemberDef_i::type () { TAO_IFR_READ_GUARD_RETURN (CORBA::TypeCode::_nil ()); @@ -84,7 +84,7 @@ TAO_ValueMemberDef_i::type (void) } CORBA::TypeCode_ptr -TAO_ValueMemberDef_i::type_i (void) +TAO_ValueMemberDef_i::type_i () { ACE_TString holder; this->repo_->config ()->get_string_value (this->section_key_, @@ -97,7 +97,7 @@ TAO_ValueMemberDef_i::type_i (void) } CORBA::IDLType_ptr -TAO_ValueMemberDef_i::type_def (void) +TAO_ValueMemberDef_i::type_def () { TAO_IFR_READ_GUARD_RETURN (CORBA::IDLType::_nil ()); @@ -107,7 +107,7 @@ TAO_ValueMemberDef_i::type_def (void) } CORBA::IDLType_ptr -TAO_ValueMemberDef_i::type_def_i (void) +TAO_ValueMemberDef_i::type_def_i () { ACE_TString holder; this->repo_->config ()->get_string_value (this->section_key_, @@ -140,7 +140,7 @@ TAO_ValueMemberDef_i::type_def_i (CORBA::IDLType_ptr type_def) } CORBA::Visibility -TAO_ValueMemberDef_i::access (void) +TAO_ValueMemberDef_i::access () { TAO_IFR_READ_GUARD_RETURN (0); @@ -150,7 +150,7 @@ TAO_ValueMemberDef_i::access (void) } CORBA::Visibility -TAO_ValueMemberDef_i::access_i (void) +TAO_ValueMemberDef_i::access_i () { CORBA::ULong val = 0; this->repo_->config ()->get_integer_value (this->section_key_, diff --git a/TAO/orbsvcs/orbsvcs/IFRService/WstringDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/WstringDef_i.cpp index 5c1227b73f8..20c871b11fa 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/WstringDef_i.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/WstringDef_i.cpp @@ -11,18 +11,18 @@ TAO_WstringDef_i::TAO_WstringDef_i (TAO_Repository_i *repo) { } -TAO_WstringDef_i::~TAO_WstringDef_i (void) +TAO_WstringDef_i::~TAO_WstringDef_i () { } CORBA::DefinitionKind -TAO_WstringDef_i::def_kind (void) +TAO_WstringDef_i::def_kind () { return CORBA::dk_Wstring; } void -TAO_WstringDef_i::destroy (void) +TAO_WstringDef_i::destroy () { TAO_IFR_WRITE_GUARD; @@ -32,7 +32,7 @@ TAO_WstringDef_i::destroy (void) } void -TAO_WstringDef_i::destroy_i (void) +TAO_WstringDef_i::destroy_i () { ACE_TString name; this->repo_->config ()->get_string_value (this->section_key_, @@ -45,7 +45,7 @@ TAO_WstringDef_i::destroy_i (void) } CORBA::TypeCode_ptr -TAO_WstringDef_i::type (void) +TAO_WstringDef_i::type () { TAO_IFR_READ_GUARD_RETURN (CORBA::TypeCode::_nil ()); @@ -55,14 +55,14 @@ TAO_WstringDef_i::type (void) } CORBA::TypeCode_ptr -TAO_WstringDef_i::type_i (void) +TAO_WstringDef_i::type_i () { CORBA::ULong bound = this->bound_i (); return this->repo_->tc_factory ()->create_wstring_tc (bound); } CORBA::ULong -TAO_WstringDef_i::bound (void) +TAO_WstringDef_i::bound () { TAO_IFR_READ_GUARD_RETURN (0); @@ -73,7 +73,7 @@ TAO_WstringDef_i::bound (void) CORBA::ULong -TAO_WstringDef_i::bound_i (void) +TAO_WstringDef_i::bound_i () { u_int retval = 0; this->repo_->config ()->get_integer_value (this->section_key_, diff --git a/TAO/orbsvcs/orbsvcs/IOR_Multicast.cpp b/TAO/orbsvcs/orbsvcs/IOR_Multicast.cpp index 8d99f155162..67d80c65ad3 100644 --- a/TAO/orbsvcs/orbsvcs/IOR_Multicast.cpp +++ b/TAO/orbsvcs/orbsvcs/IOR_Multicast.cpp @@ -8,12 +8,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_HANDLE -TAO_IOR_Multicast::get_handle (void) const +TAO_IOR_Multicast::get_handle () const { return this->mcast_dgram_.get_handle (); } -TAO_IOR_Multicast::TAO_IOR_Multicast (void) +TAO_IOR_Multicast::TAO_IOR_Multicast () : service_id_ ((TAO_Service_ID) 0) { } @@ -32,7 +32,7 @@ TAO_IOR_Multicast::TAO_IOR_Multicast (const char *ior, ACE_TEXT ("TAO_IOR_Multicast"))); } -TAO_IOR_Multicast::~TAO_IOR_Multicast (void) +TAO_IOR_Multicast::~TAO_IOR_Multicast () { if (ior_.length() > 0 && this->mcast_dgram_.leave (this->mcast_addr_) == -1) { diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.cpp index cae9a5df6bf..184f5c13129 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.cpp @@ -51,12 +51,12 @@ TAO_LB_CPU_Load_Average_Monitor::TAO_LB_CPU_Load_Average_Monitor ( } } -TAO_LB_CPU_Load_Average_Monitor::~TAO_LB_CPU_Load_Average_Monitor (void) +TAO_LB_CPU_Load_Average_Monitor::~TAO_LB_CPU_Load_Average_Monitor () { } CosLoadBalancing::Location * -TAO_LB_CPU_Load_Average_Monitor::the_location (void) +TAO_LB_CPU_Load_Average_Monitor::the_location () { CosLoadBalancing::Location * location; ACE_NEW_THROW_EX (location, @@ -71,7 +71,7 @@ TAO_LB_CPU_Load_Average_Monitor::the_location (void) } CosLoadBalancing::LoadList * -TAO_LB_CPU_Load_Average_Monitor::loads (void) +TAO_LB_CPU_Load_Average_Monitor::loads () { CORBA::Float load = 0; diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Utilization_Monitor.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Utilization_Monitor.cpp index 18568bc60e9..140d1fd5f2d 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Utilization_Monitor.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Utilization_Monitor.cpp @@ -10,7 +10,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -double calc_cpu_loading (void) +double calc_cpu_loading () { static char buf[1024]; static unsigned long prev_idle = 0; @@ -100,12 +100,12 @@ TAO_LB_CPU_Utilization_Monitor::TAO_LB_CPU_Utilization_Monitor (const char * loc } } -TAO_LB_CPU_Utilization_Monitor::~TAO_LB_CPU_Utilization_Monitor (void) +TAO_LB_CPU_Utilization_Monitor::~TAO_LB_CPU_Utilization_Monitor () { } CosLoadBalancing::Location * -TAO_LB_CPU_Utilization_Monitor::the_location (void) +TAO_LB_CPU_Utilization_Monitor::the_location () { CosLoadBalancing::Location * location; ACE_NEW_THROW_EX (location, @@ -120,7 +120,7 @@ TAO_LB_CPU_Utilization_Monitor::the_location (void) } CosLoadBalancing::LoadList * -TAO_LB_CPU_Utilization_Monitor::loads (void) +TAO_LB_CPU_Utilization_Monitor::loads () { CORBA::Float load = 0; diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.cpp index e8b7ed58bdd..434337ec336 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.cpp @@ -13,13 +13,13 @@ TAO_LB_ClientComponent::init (int /* argc */, ACE_TCHAR * /* argv */[]) } int -TAO_LB_ClientComponent::fini (void) +TAO_LB_ClientComponent::fini () { return 0; } int -TAO_LB_ClientComponent::register_orb_initializer (void) +TAO_LB_ClientComponent::register_orb_initializer () { try { diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientRequestInterceptor.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientRequestInterceptor.cpp index f0db0d42c80..60aff63da0d 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientRequestInterceptor.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientRequestInterceptor.cpp @@ -10,7 +10,7 @@ TAO_LB_ClientRequestInterceptor::name () } void -TAO_LB_ClientRequestInterceptor::destroy (void) +TAO_LB_ClientRequestInterceptor::destroy () { } diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Component.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Component.cpp index 0094a7f89cb..7346bc1e73e 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Component.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Component.cpp @@ -84,7 +84,7 @@ TAO_LB_Component::init (int argc, ACE_TCHAR * argv[]) } int -TAO_LB_Component::fini (void) +TAO_LB_Component::fini () { return 0; } diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_IORInterceptor.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_IORInterceptor.cpp index cd1014d001f..daf9dfa2485 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_IORInterceptor.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_IORInterceptor.cpp @@ -26,13 +26,13 @@ TAO_LB_IORInterceptor::TAO_LB_IORInterceptor ( } char * -TAO_LB_IORInterceptor::name (void) +TAO_LB_IORInterceptor::name () { return CORBA::string_dup ("TAO_LB_IORInterceptor"); } void -TAO_LB_IORInterceptor::destroy (void) +TAO_LB_IORInterceptor::destroy () { // Force the LoadManager reference to be released since the ORB's // lifetime is tied to object reference lifetimes. @@ -101,7 +101,7 @@ TAO_LB_IORInterceptor::adapter_state_changed ( } void -TAO_LB_IORInterceptor::register_load_alert (void) +TAO_LB_IORInterceptor::register_load_alert () { { ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->lock_); diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.cpp index 7768d687e3f..91e605558eb 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.cpp @@ -41,20 +41,20 @@ TAO_LB_LeastLoaded::TAO_LB_LeastLoaded (PortableServer::POA_ptr poa) TAO_LB_Random::init (); } -TAO_LB_LeastLoaded::~TAO_LB_LeastLoaded (void) +TAO_LB_LeastLoaded::~TAO_LB_LeastLoaded () { delete this->load_map_; delete this->lock_; } char * -TAO_LB_LeastLoaded::name (void) +TAO_LB_LeastLoaded::name () { return CORBA::string_dup ("LeastLoaded"); } CosLoadBalancing::Properties * -TAO_LB_LeastLoaded::get_properties (void) +TAO_LB_LeastLoaded::get_properties () { CosLoadBalancing::Properties * props = 0; ACE_NEW_THROW_EX (props, @@ -293,7 +293,7 @@ TAO_LB_LeastLoaded::analyze_loads ( } PortableServer::POA_ptr -TAO_LB_LeastLoaded::_default_POA (void) +TAO_LB_LeastLoaded::_default_POA () { return PortableServer::POA::_duplicate (this->poa_.in ()); } diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.cpp index dab05290bac..a1fccfa31cd 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.cpp @@ -6,18 +6,18 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_LB_LoadAlert::TAO_LB_LoadAlert (void) +TAO_LB_LoadAlert::TAO_LB_LoadAlert () : alerted_ (0), lock_ () { } -TAO_LB_LoadAlert::~TAO_LB_LoadAlert (void) +TAO_LB_LoadAlert::~TAO_LB_LoadAlert () { } void -TAO_LB_LoadAlert::enable_alert (void) +TAO_LB_LoadAlert::enable_alert () { ACE_GUARD (TAO_SYNCH_MUTEX, monitor, this->lock_); @@ -25,7 +25,7 @@ TAO_LB_LoadAlert::enable_alert (void) } void -TAO_LB_LoadAlert::disable_alert (void) +TAO_LB_LoadAlert::disable_alert () { ACE_GUARD (TAO_SYNCH_MUTEX, monitor, this->lock_); diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertInfo.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertInfo.cpp index fbba4fb425c..d19c4b29ddf 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertInfo.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertInfo.cpp @@ -3,7 +3,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_LB_LoadAlertInfo::TAO_LB_LoadAlertInfo (void) +TAO_LB_LoadAlertInfo::TAO_LB_LoadAlertInfo () : load_alert (), alerted (0) { diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert_Handler.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert_Handler.cpp index 0492f39e912..7a55a8bf123 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert_Handler.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert_Handler.cpp @@ -4,12 +4,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_LB_LoadAlert_Handler::~TAO_LB_LoadAlert_Handler (void) +TAO_LB_LoadAlert_Handler::~TAO_LB_LoadAlert_Handler () { } void -TAO_LB_LoadAlert_Handler::enable_alert (void) +TAO_LB_LoadAlert_Handler::enable_alert () { } @@ -24,7 +24,7 @@ TAO_LB_LoadAlert_Handler::enable_alert_excep ( } void -TAO_LB_LoadAlert_Handler::disable_alert (void) +TAO_LB_LoadAlert_Handler::disable_alert () { } diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAverage.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAverage.cpp index 506b720ddb1..65b656bdee4 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAverage.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAverage.cpp @@ -39,20 +39,20 @@ TAO_LB_LoadAverage::TAO_LB_LoadAverage (PortableServer::POA_ptr poa) TAO_LB_Random::init (); } -TAO_LB_LoadAverage::~TAO_LB_LoadAverage (void) +TAO_LB_LoadAverage::~TAO_LB_LoadAverage () { delete this->load_map_; delete this->lock_; } char * -TAO_LB_LoadAverage::name (void) +TAO_LB_LoadAverage::name () { return CORBA::string_dup ("LoadAverage"); } CosLoadBalancing::Properties * -TAO_LB_LoadAverage::get_properties (void) +TAO_LB_LoadAverage::get_properties () { CosLoadBalancing::Properties * props = 0; ACE_NEW_THROW_EX (props, @@ -320,7 +320,7 @@ TAO_LB_LoadAverage::analyze_loads ( } PortableServer::POA_ptr -TAO_LB_LoadAverage::_default_POA (void) +TAO_LB_LoadAverage::_default_POA () { return PortableServer::POA::_duplicate (this->poa_.in ()); } diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.cpp index 93b1d34637b..b5fb4e0a12f 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.cpp @@ -66,7 +66,7 @@ TAO_LB_LoadManager::TAO_LB_LoadManager (int ping_timeout, // by whatever code instantiates this LoadManager. } -TAO_LB_LoadManager::~TAO_LB_LoadManager (void) +TAO_LB_LoadManager::~TAO_LB_LoadManager () { this->shutdown_ = true; this->validate_condition_.signal (); @@ -1162,7 +1162,7 @@ TAO_LB_LoadManager::make_strategy (const CosLoadBalancing::StrategyInfo * info) int -TAO_LB_LoadManager::svc (void) +TAO_LB_LoadManager::svc () { while (! this->shutdown_) { diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.cpp index 506deccc859..3f09e937742 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.cpp @@ -40,20 +40,20 @@ TAO_LB_LoadMinimum::TAO_LB_LoadMinimum (PortableServer::POA_ptr poa) TAO_LB_Random::init (); } -TAO_LB_LoadMinimum::~TAO_LB_LoadMinimum (void) +TAO_LB_LoadMinimum::~TAO_LB_LoadMinimum () { delete this->load_map_; delete this->lock_; } char * -TAO_LB_LoadMinimum::name (void) +TAO_LB_LoadMinimum::name () { return CORBA::string_dup ("LoadMinimum"); } CosLoadBalancing::Properties * -TAO_LB_LoadMinimum::get_properties (void) +TAO_LB_LoadMinimum::get_properties () { CosLoadBalancing::Properties * props = 0; ACE_NEW_THROW_EX (props, @@ -357,7 +357,7 @@ TAO_LB_LoadMinimum::analyze_loads ( } PortableServer::POA_ptr -TAO_LB_LoadMinimum::_default_POA (void) +TAO_LB_LoadMinimum::_default_POA () { return PortableServer::POA::_duplicate (this->poa_.in ()); } diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ObjectReferenceFactory.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ObjectReferenceFactory.cpp index 90fda5e5db8..31b974fd655 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ObjectReferenceFactory.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ObjectReferenceFactory.cpp @@ -47,14 +47,14 @@ TAO_LB_ObjectReferenceFactory::TAO_LB_ObjectReferenceFactory ( } ::CORBA::ValueBase * -TAO_LB_ObjectReferenceFactory::_copy_value (void) +TAO_LB_ObjectReferenceFactory::_copy_value () { ::CORBA::ValueBase *ret_val= 0; // Not implimented return ret_val; } -TAO_LB_ObjectReferenceFactory::~TAO_LB_ObjectReferenceFactory (void) +TAO_LB_ObjectReferenceFactory::~TAO_LB_ObjectReferenceFactory () { // No need to call CORBA::remove_ref() on this->old_orf_. It is a // "_var" object, meaning that will be done automatically. diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Pull_Handler.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Pull_Handler.cpp index a84d6345130..6e44f3ce5d6 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Pull_Handler.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Pull_Handler.cpp @@ -5,7 +5,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_LB_Pull_Handler::TAO_LB_Pull_Handler (void) +TAO_LB_Pull_Handler::TAO_LB_Pull_Handler () : monitor_map_ (0), load_manager_ (0) { diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Random.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Random.cpp index 96dcc7c5f31..12dc31cc68b 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Random.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Random.cpp @@ -23,13 +23,13 @@ TAO_LB_Random::TAO_LB_Random (PortableServer::POA_ptr poa) } char * -TAO_LB_Random::name (void) +TAO_LB_Random::name () { return CORBA::string_dup ("Random"); } CosLoadBalancing::Properties * -TAO_LB_Random::get_properties (void) +TAO_LB_Random::get_properties () { CosLoadBalancing::Properties * props = 0; ACE_NEW_THROW_EX (props, @@ -85,7 +85,7 @@ TAO_LB_Random::analyze_loads ( } PortableServer::POA_ptr -TAO_LB_Random::_default_POA (void) +TAO_LB_Random::_default_POA () { return PortableServer::POA::_duplicate (this->poa_.in ()); } @@ -133,7 +133,7 @@ TAO_LB_Random::_tao_next_member ( } void -TAO_LB_Random::init (void) +TAO_LB_Random::init () { #ifdef ACE_HAS_PTHREADS (void) ::pthread_once (&::tao_lb_once_control, diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_RoundRobin.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_RoundRobin.cpp index cfddac5559a..23ab22f39c7 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_RoundRobin.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_RoundRobin.cpp @@ -15,18 +15,18 @@ TAO_LB_RoundRobin::TAO_LB_RoundRobin (PortableServer::POA_ptr poa) { } -TAO_LB_RoundRobin::~TAO_LB_RoundRobin (void) +TAO_LB_RoundRobin::~TAO_LB_RoundRobin () { } char * -TAO_LB_RoundRobin::name (void) +TAO_LB_RoundRobin::name () { return CORBA::string_dup ("RoundRobin"); } CosLoadBalancing::Properties * -TAO_LB_RoundRobin::get_properties (void) +TAO_LB_RoundRobin::get_properties () { // There are no RoundRobin properties. Return an empty property // list. @@ -182,7 +182,7 @@ TAO_LB_RoundRobin::analyze_loads ( } PortableServer::POA_ptr -TAO_LB_RoundRobin::_default_POA (void) +TAO_LB_RoundRobin::_default_POA () { return PortableServer::POA::_duplicate (this->poa_.in ()); } diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.cpp index 45b0749eb7e..b3a8dfa4f56 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.cpp @@ -12,18 +12,18 @@ TAO_LB_ServerRequestInterceptor::TAO_LB_ServerRequestInterceptor ( { } -TAO_LB_ServerRequestInterceptor::~TAO_LB_ServerRequestInterceptor (void) +TAO_LB_ServerRequestInterceptor::~TAO_LB_ServerRequestInterceptor () { } char * -TAO_LB_ServerRequestInterceptor::name (void) +TAO_LB_ServerRequestInterceptor::name () { return CORBA::string_dup ("TAO_LB_ServerRequestInterceptor"); } void -TAO_LB_ServerRequestInterceptor::destroy (void) +TAO_LB_ServerRequestInterceptor::destroy () { } diff --git a/TAO/orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp b/TAO/orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp index 27860277a4f..a7295c933e3 100644 --- a/TAO/orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp @@ -3,11 +3,11 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_BasicLogFactory_i::TAO_BasicLogFactory_i (void) +TAO_BasicLogFactory_i::TAO_BasicLogFactory_i () { } -TAO_BasicLogFactory_i::~TAO_BasicLogFactory_i (void) +TAO_BasicLogFactory_i::~TAO_BasicLogFactory_i () { } diff --git a/TAO/orbsvcs/orbsvcs/Log/BasicLog_i.cpp b/TAO/orbsvcs/orbsvcs/Log/BasicLog_i.cpp index d55c9656420..b0b30c1bf4b 100644 --- a/TAO/orbsvcs/orbsvcs/Log/BasicLog_i.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/BasicLog_i.cpp @@ -15,7 +15,7 @@ TAO_BasicLog_i::TAO_BasicLog_i (CORBA::ORB_ptr orb, // No-Op. } -TAO_BasicLog_i::~TAO_BasicLog_i (void) +TAO_BasicLog_i::~TAO_BasicLog_i () { // No-Op. } @@ -54,7 +54,7 @@ TAO_BasicLog_i::copy_with_id (DsLogAdmin::LogId id) } void -TAO_BasicLog_i::destroy (void) +TAO_BasicLog_i::destroy () { // Remove ourselves from the list of logs. this->logmgr_i_.remove (this->logid_); diff --git a/TAO/orbsvcs/orbsvcs/Log/EventLogConsumer.cpp b/TAO/orbsvcs/orbsvcs/Log/EventLogConsumer.cpp index abc0f9e0718..52752db1dff 100644 --- a/TAO/orbsvcs/orbsvcs/Log/EventLogConsumer.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/EventLogConsumer.cpp @@ -9,7 +9,7 @@ TAO_Event_LogConsumer::TAO_Event_LogConsumer (TAO_EventLog_i *log) { } -TAO_Event_LogConsumer::~TAO_Event_LogConsumer (void) +TAO_Event_LogConsumer::~TAO_Event_LogConsumer () { } @@ -79,7 +79,7 @@ TAO_Event_LogConsumer::push (const CORBA::Any& data) } void -TAO_Event_LogConsumer::disconnect_push_consumer (void) +TAO_Event_LogConsumer::disconnect_push_consumer () { this->supplier_proxy_->disconnect_push_supplier (); } diff --git a/TAO/orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp b/TAO/orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp index bad86505f10..d2e0a1955cc 100644 --- a/TAO/orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp @@ -6,7 +6,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_EventLogFactory_i::TAO_EventLogFactory_i (void) : +TAO_EventLogFactory_i::TAO_EventLogFactory_i () : impl (0), notifier_ (0) { @@ -33,7 +33,7 @@ TAO_EventLogFactory_i::TAO_EventLogFactory_i (void) : } } -TAO_EventLogFactory_i::~TAO_EventLogFactory_i (void) +TAO_EventLogFactory_i::~TAO_EventLogFactory_i () { // No-Op. } @@ -45,7 +45,7 @@ TAO_EventLogFactory_i::init (PortableServer::POA_ptr /* poa */) CosEventChannelAdmin::EventChannel_var ec_return; - auto_ptr <TAO_CEC_EventChannel> ec (impl); + std::unique_ptr <TAO_CEC_EventChannel> ec (impl); PortableServer::ObjectId_var oid = this->poa_->activate_object (ec.get ()); @@ -186,13 +186,13 @@ TAO_EventLogFactory_i::create_log_servant (DsLogAdmin::LogId id) } CosEventChannelAdmin::ProxyPushSupplier_ptr -TAO_EventLogFactory_i::obtain_push_supplier (void) +TAO_EventLogFactory_i::obtain_push_supplier () { return consumer_admin_->obtain_push_supplier (); } CosEventChannelAdmin::ProxyPullSupplier_ptr -TAO_EventLogFactory_i::obtain_pull_supplier (void) +TAO_EventLogFactory_i::obtain_pull_supplier () { return consumer_admin_->obtain_pull_supplier (); diff --git a/TAO/orbsvcs/orbsvcs/Log/EventLogNotification.cpp b/TAO/orbsvcs/orbsvcs/Log/EventLogNotification.cpp index 16e8d79994b..624b26e8946 100644 --- a/TAO/orbsvcs/orbsvcs/Log/EventLogNotification.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/EventLogNotification.cpp @@ -11,13 +11,13 @@ TAO_EventLogNotification::TAO_EventLogNotification (CosEventChannelAdmin::EventC obtain_proxy_consumer (); } -TAO_EventLogNotification::~TAO_EventLogNotification (void) +TAO_EventLogNotification::~TAO_EventLogNotification () { // No-Op. } void -TAO_EventLogNotification::disconnect_push_supplier (void) +TAO_EventLogNotification::disconnect_push_supplier () { this->consumer_->disconnect_push_consumer (); } diff --git a/TAO/orbsvcs/orbsvcs/Log/EventLog_i.cpp b/TAO/orbsvcs/orbsvcs/Log/EventLog_i.cpp index 90bb1ee624d..6ede219f2e6 100644 --- a/TAO/orbsvcs/orbsvcs/Log/EventLog_i.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/EventLog_i.cpp @@ -69,7 +69,7 @@ TAO_EventLog_i::copy_with_id (DsLogAdmin::LogId id) void -TAO_EventLog_i::destroy (void) +TAO_EventLog_i::destroy () { // Send event to indicate the log has been deleted. notifier_->object_deletion (logid_); @@ -85,7 +85,7 @@ TAO_EventLog_i::destroy (void) } void -TAO_EventLog_i::activate (void) +TAO_EventLog_i::activate () { CosEventChannelAdmin::ConsumerAdmin_var consumer_admin = this->event_channel_->for_consumers (); @@ -97,13 +97,13 @@ TAO_EventLog_i::activate (void) CosEventChannelAdmin::ConsumerAdmin_ptr -TAO_EventLog_i::for_consumers (void) +TAO_EventLog_i::for_consumers () { return this->event_channel_->for_consumers (); } CosEventChannelAdmin::SupplierAdmin_ptr -TAO_EventLog_i::for_suppliers (void) +TAO_EventLog_i::for_suppliers () { return this->event_channel_->for_suppliers (); } diff --git a/TAO/orbsvcs/orbsvcs/Log/Hash_Iterator_i.cpp b/TAO/orbsvcs/orbsvcs/Log/Hash_Iterator_i.cpp index 6ad7296b210..25e6b7d1017 100644 --- a/TAO/orbsvcs/orbsvcs/Log/Hash_Iterator_i.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/Hash_Iterator_i.cpp @@ -25,7 +25,7 @@ TAO_Hash_Iterator_i::TAO_Hash_Iterator_i ( } -TAO_Hash_Iterator_i::~TAO_Hash_Iterator_i (void) +TAO_Hash_Iterator_i::~TAO_Hash_Iterator_i () { } diff --git a/TAO/orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp b/TAO/orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp index 961c2839023..93c5607b08d 100644 --- a/TAO/orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp @@ -72,44 +72,44 @@ TAO_Hash_LogRecordStore::TAO_Hash_LogRecordStore ( log_poa->create_POA(buf, poa_manager.in(), policies); } -TAO_Hash_LogRecordStore::~TAO_Hash_LogRecordStore (void) +TAO_Hash_LogRecordStore::~TAO_Hash_LogRecordStore () { this->iterator_poa_->destroy (1, 0); } int -TAO_Hash_LogRecordStore::open (void) +TAO_Hash_LogRecordStore::open () { return rec_map_.open (); } int -TAO_Hash_LogRecordStore::close (void) +TAO_Hash_LogRecordStore::close () { // Close the hash return rec_map_.close (); } CORBA::ULongLong -TAO_Hash_LogRecordStore::get_current_size (void) +TAO_Hash_LogRecordStore::get_current_size () { return this->current_size_; } CORBA::ULongLong -TAO_Hash_LogRecordStore::get_n_records (void) +TAO_Hash_LogRecordStore::get_n_records () { return this->num_records_; } CORBA::ULongLong -TAO_Hash_LogRecordStore::get_gauge (void) +TAO_Hash_LogRecordStore::get_gauge () { return this->gauge_; } void -TAO_Hash_LogRecordStore::reset_gauge (void) +TAO_Hash_LogRecordStore::reset_gauge () { this->gauge_ = 0; } @@ -209,7 +209,7 @@ TAO_Hash_LogRecordStore::remove_i (LOG_RECORD_STORE_ITER iter) } int -TAO_Hash_LogRecordStore::purge_old_records (void) +TAO_Hash_LogRecordStore::purge_old_records () { CORBA::ULongLong num_records_to_purge = this->num_records_ * 5U / 100U; @@ -315,7 +315,7 @@ TAO_Hash_LogRecordStore::get_record_attribute (DsLogAdmin::RecordId id) int -TAO_Hash_LogRecordStore::flush (void) +TAO_Hash_LogRecordStore::flush () { return 0; } @@ -543,7 +543,7 @@ TAO_Hash_LogRecordStore::delete_records_by_id (const DsLogAdmin::RecordIdList &i } CORBA::ULong -TAO_Hash_LogRecordStore::remove_old_records (void) +TAO_Hash_LogRecordStore::remove_old_records () { if (this->max_record_life_ == 0) { return 0; @@ -597,7 +597,7 @@ TAO_Hash_LogRecordStore::check_grammar (const char* grammar) DsLogAdmin::AdministrativeState -TAO_Hash_LogRecordStore::get_administrative_state (void) const +TAO_Hash_LogRecordStore::get_administrative_state () const { return this->admin_state_; } @@ -610,7 +610,7 @@ TAO_Hash_LogRecordStore::set_administrative_state (DsLogAdmin::AdministrativeSta DsLogAdmin::CapacityAlarmThresholdList* -TAO_Hash_LogRecordStore::get_capacity_alarm_thresholds (void) const +TAO_Hash_LogRecordStore::get_capacity_alarm_thresholds () const { DsLogAdmin::CapacityAlarmThresholdList* ret_val; ACE_NEW_THROW_EX (ret_val, @@ -629,7 +629,7 @@ TAO_Hash_LogRecordStore::set_capacity_alarm_thresholds (const DsLogAdmin::Capaci DsLogAdmin::ForwardingState -TAO_Hash_LogRecordStore::get_forwarding_state (void) const +TAO_Hash_LogRecordStore::get_forwarding_state () const { return this->forward_state_; } @@ -641,7 +641,7 @@ TAO_Hash_LogRecordStore::set_forwarding_state (DsLogAdmin::ForwardingState state } DsLogAdmin::TimeInterval -TAO_Hash_LogRecordStore::get_interval (void) const +TAO_Hash_LogRecordStore::get_interval () const { return this->interval_; } @@ -654,7 +654,7 @@ TAO_Hash_LogRecordStore::set_interval (const DsLogAdmin::TimeInterval &interval) DsLogAdmin::LogFullActionType -TAO_Hash_LogRecordStore::get_log_full_action (void) const +TAO_Hash_LogRecordStore::get_log_full_action () const { return this->log_full_action_; } @@ -666,7 +666,7 @@ TAO_Hash_LogRecordStore::set_log_full_action (DsLogAdmin::LogFullActionType acti } DsLogAdmin::QoSList * -TAO_Hash_LogRecordStore::get_log_qos (void) const +TAO_Hash_LogRecordStore::get_log_qos () const { DsLogAdmin::QoSList* ret_val = 0; ACE_NEW_THROW_EX (ret_val, @@ -683,7 +683,7 @@ TAO_Hash_LogRecordStore::set_log_qos (const DsLogAdmin::QoSList& qos) } CORBA::ULong -TAO_Hash_LogRecordStore::get_max_record_life (void) const +TAO_Hash_LogRecordStore::get_max_record_life () const { return this->max_record_life_; } @@ -695,7 +695,7 @@ TAO_Hash_LogRecordStore::set_max_record_life (CORBA::ULong max_record_life) } CORBA::ULongLong -TAO_Hash_LogRecordStore::get_max_size (void) const +TAO_Hash_LogRecordStore::get_max_size () const { return this->max_size_; } @@ -707,7 +707,7 @@ TAO_Hash_LogRecordStore::set_max_size (CORBA::ULongLong size) } DsLogAdmin::WeekMask* -TAO_Hash_LogRecordStore::get_week_mask (void) +TAO_Hash_LogRecordStore::get_week_mask () { DsLogAdmin::WeekMask* ret_val = 0; ACE_NEW_THROW_EX (ret_val, diff --git a/TAO/orbsvcs/orbsvcs/Log/Hash_LogStore.cpp b/TAO/orbsvcs/orbsvcs/Log/Hash_LogStore.cpp index 1cbfed1dc8c..60e527cd359 100644 --- a/TAO/orbsvcs/orbsvcs/Log/Hash_LogStore.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/Hash_LogStore.cpp @@ -18,7 +18,7 @@ TAO_Hash_LogStore::~TAO_Hash_LogStore() DsLogAdmin::LogList* -TAO_Hash_LogStore::list_logs (void) +TAO_Hash_LogStore::list_logs () { ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX, guard, @@ -54,7 +54,7 @@ TAO_Hash_LogStore::list_logs (void) } DsLogAdmin::LogIdList* -TAO_Hash_LogStore::list_logs_by_id (void) +TAO_Hash_LogStore::list_logs_by_id () { ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX, guard, @@ -168,7 +168,7 @@ TAO_Hash_LogStore::create(DsLogAdmin::LogFullActionType full_action, ), CORBA::NO_MEMORY ()); - auto_ptr<TAO_Hash_LogRecordStore> recordstore (impl); + std::unique_ptr<TAO_Hash_LogRecordStore> recordstore (impl); if (this->hash_map_.bind (id, recordstore.get ()) != 0) { @@ -205,7 +205,7 @@ TAO_Hash_LogStore::create_with_id (DsLogAdmin::LogId id, ), CORBA::NO_MEMORY ()); - auto_ptr<TAO_Hash_LogRecordStore> recordstore (impl); + std::unique_ptr<TAO_Hash_LogRecordStore> recordstore (impl); if (this->hash_map_.bind (id, recordstore.get ()) != 0) { diff --git a/TAO/orbsvcs/orbsvcs/Log/Iterator_i.cpp b/TAO/orbsvcs/orbsvcs/Log/Iterator_i.cpp index 751c18bdf8c..ae82ec30f30 100644 --- a/TAO/orbsvcs/orbsvcs/Log/Iterator_i.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/Iterator_i.cpp @@ -19,7 +19,7 @@ TAO_Iterator_i::TAO_Iterator_i (PortableServer::POA_ptr poa, } -TAO_Iterator_i::~TAO_Iterator_i (void) +TAO_Iterator_i::~TAO_Iterator_i () { // cancel timer if (this->timer_id_ != -1) @@ -30,7 +30,7 @@ TAO_Iterator_i::~TAO_Iterator_i (void) void -TAO_Iterator_i::destroy (void) +TAO_Iterator_i::destroy () { PortableServer::ObjectId_var oid = this->poa_->servant_to_id (this); diff --git a/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.cpp b/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.cpp index f9db2b037ca..7c5977d684d 100644 --- a/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.cpp @@ -146,14 +146,14 @@ TAO_LogMgr_i::create_log_object (DsLogAdmin::LogId id) } DsLogAdmin::LogList* -TAO_LogMgr_i::list_logs (void) +TAO_LogMgr_i::list_logs () { return this->logstore_->list_logs (); } DsLogAdmin::LogIdList* -TAO_LogMgr_i::list_logs_by_id (void) +TAO_LogMgr_i::list_logs_by_id () { return this->logstore_->list_logs_by_id (); } diff --git a/TAO/orbsvcs/orbsvcs/Log/LogNotification.cpp b/TAO/orbsvcs/orbsvcs/Log/LogNotification.cpp index 0e49232f712..44054f36974 100644 --- a/TAO/orbsvcs/orbsvcs/Log/LogNotification.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/LogNotification.cpp @@ -6,11 +6,11 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_LogNotification::TAO_LogNotification (void) +TAO_LogNotification::TAO_LogNotification () { } -TAO_LogNotification::~TAO_LogNotification (void) +TAO_LogNotification::~TAO_LogNotification () { } diff --git a/TAO/orbsvcs/orbsvcs/Log/LogRecordStore.cpp b/TAO/orbsvcs/orbsvcs/Log/LogRecordStore.cpp index dd2b50b8f31..cefd5f77fa7 100644 --- a/TAO/orbsvcs/orbsvcs/Log/LogRecordStore.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/LogRecordStore.cpp @@ -2,11 +2,11 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_LogRecordStore::TAO_LogRecordStore (void) +TAO_LogRecordStore::TAO_LogRecordStore () { } -TAO_LogRecordStore::~TAO_LogRecordStore (void) +TAO_LogRecordStore::~TAO_LogRecordStore () { } diff --git a/TAO/orbsvcs/orbsvcs/Log/Log_Constraint_Interpreter.cpp b/TAO/orbsvcs/orbsvcs/Log/Log_Constraint_Interpreter.cpp index c6799199f43..2aec6a518ba 100644 --- a/TAO/orbsvcs/orbsvcs/Log/Log_Constraint_Interpreter.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/Log_Constraint_Interpreter.cpp @@ -24,7 +24,7 @@ TAO_Log_Constraint_Interpreter::TAO_Log_Constraint_Interpreter ( } } -TAO_Log_Constraint_Interpreter::~TAO_Log_Constraint_Interpreter (void) +TAO_Log_Constraint_Interpreter::~TAO_Log_Constraint_Interpreter () { } diff --git a/TAO/orbsvcs/orbsvcs/Log/Log_i.cpp b/TAO/orbsvcs/orbsvcs/Log/Log_i.cpp index d3c65eac212..ce5d326a07d 100644 --- a/TAO/orbsvcs/orbsvcs/Log/Log_i.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/Log_i.cpp @@ -40,7 +40,7 @@ TAO_Log_i::TAO_Log_i (CORBA::ORB_ptr orb, } void -TAO_Log_i::init (void) +TAO_Log_i::init () { this->log_ = logmgr_i_.create_log_reference (this->logid_); @@ -89,24 +89,24 @@ TAO_Log_i::init (void) this->op_state_ = DsLogAdmin::enabled; } -TAO_Log_i::~TAO_Log_i (void) +TAO_Log_i::~TAO_Log_i () { } DsLogAdmin::LogMgr_ptr -TAO_Log_i::my_factory (void) +TAO_Log_i::my_factory () { return DsLogAdmin::LogMgr::_duplicate (this->factory_.in ()); } DsLogAdmin::LogId -TAO_Log_i::id (void) +TAO_Log_i::id () { return logid_; } DsLogAdmin::QoSList* -TAO_Log_i::get_log_qos (void) +TAO_Log_i::get_log_qos () { ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX, guard, @@ -172,7 +172,7 @@ TAO_Log_i::set_log_qos (const DsLogAdmin::QoSList &qos) } CORBA::ULong -TAO_Log_i::get_max_record_life (void) +TAO_Log_i::get_max_record_life () { ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX, guard, @@ -222,7 +222,7 @@ TAO_Log_i::set_max_record_life (CORBA::ULong life) } CORBA::ULongLong -TAO_Log_i::get_max_size (void) +TAO_Log_i::get_max_size () { ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX, guard, @@ -293,7 +293,7 @@ TAO_Log_i::set_max_size (CORBA::ULongLong size) } CORBA::ULongLong -TAO_Log_i::get_current_size (void) +TAO_Log_i::get_current_size () { ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX, guard, @@ -304,7 +304,7 @@ TAO_Log_i::get_current_size (void) } CORBA::ULongLong -TAO_Log_i::get_n_records (void) +TAO_Log_i::get_n_records () { ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX, guard, @@ -315,7 +315,7 @@ TAO_Log_i::get_n_records (void) } DsLogAdmin::LogFullActionType -TAO_Log_i::get_log_full_action (void) +TAO_Log_i::get_log_full_action () { ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX, guard, @@ -379,7 +379,7 @@ TAO_Log_i::set_log_full_action (DsLogAdmin::LogFullActionType action) } DsLogAdmin::AdministrativeState -TAO_Log_i::get_administrative_state (void) +TAO_Log_i::get_administrative_state () { ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX, guard, @@ -422,7 +422,7 @@ TAO_Log_i::set_administrative_state (DsLogAdmin::AdministrativeState state) } DsLogAdmin::ForwardingState -TAO_Log_i::get_forwarding_state (void) +TAO_Log_i::get_forwarding_state () { ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX, guard, @@ -466,7 +466,7 @@ TAO_Log_i::set_forwarding_state (DsLogAdmin::ForwardingState state) } DsLogAdmin::OperationalState -TAO_Log_i::get_operational_state (void) +TAO_Log_i::get_operational_state () { // No locks are necessary, since op_state_ is set in ::init() and // never changed. @@ -474,7 +474,7 @@ TAO_Log_i::get_operational_state (void) } DsLogAdmin::TimeInterval -TAO_Log_i::get_interval (void) +TAO_Log_i::get_interval () { ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX, guard, @@ -536,7 +536,7 @@ TAO_Log_i::set_interval (const DsLogAdmin::TimeInterval &interval) } DsLogAdmin::AvailabilityStatus -TAO_Log_i::get_availability_status (void) +TAO_Log_i::get_availability_status () { ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX, guard, @@ -547,7 +547,7 @@ TAO_Log_i::get_availability_status (void) } DsLogAdmin::AvailabilityStatus -TAO_Log_i::get_availability_status_i (void) +TAO_Log_i::get_availability_status_i () { // The log is considered "on duty" if all the following are true: // * operational state is enabled @@ -575,7 +575,7 @@ TAO_Log_i::get_availability_status_i (void) } DsLogAdmin::CapacityAlarmThresholdList* -TAO_Log_i::get_capacity_alarm_thresholds (void) +TAO_Log_i::get_capacity_alarm_thresholds () { ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX, guard, @@ -645,7 +645,7 @@ TAO_Log_i::set_capacity_alarm_thresholds (const } DsLogAdmin::WeekMask* -TAO_Log_i::get_week_mask (void) +TAO_Log_i::get_week_mask () { ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX, guard, @@ -942,14 +942,14 @@ TAO_Log_i::get_record_attribute (DsLogAdmin::RecordId id) } void -TAO_Log_i::flush (void) +TAO_Log_i::flush () { /// XXX locks? this->recordstore_->flush (); } CORBA::Boolean -TAO_Log_i::scheduled (void) +TAO_Log_i::scheduled () { DsLogAdmin::TimeInterval interval = this->recordstore_->get_interval (); @@ -1043,7 +1043,7 @@ TAO_Log_i::copy_attributes (DsLogAdmin::Log_ptr log) } void -TAO_Log_i::remove_old_records (void) +TAO_Log_i::remove_old_records () { ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX, guard, @@ -1074,7 +1074,7 @@ TAO_Log_i::remove_old_records (void) } void -TAO_Log_i::check_capacity_alarm_threshold (void) +TAO_Log_i::check_capacity_alarm_threshold () { const CORBA::ULongLong max_size = this->recordstore_->get_max_size (); @@ -1135,7 +1135,7 @@ TAO_Log_i::check_capacity_alarm_threshold (void) } void -TAO_Log_i::reset_capacity_alarm_threshold (void) +TAO_Log_i::reset_capacity_alarm_threshold () { const CORBA::ULongLong max_size = this->recordstore_->get_max_size (); diff --git a/TAO/orbsvcs/orbsvcs/Log/NotifyLogConsumer.cpp b/TAO/orbsvcs/orbsvcs/Log/NotifyLogConsumer.cpp index b9d834eafad..9d46942ca69 100644 --- a/TAO/orbsvcs/orbsvcs/Log/NotifyLogConsumer.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/NotifyLogConsumer.cpp @@ -9,7 +9,7 @@ TAO_Notify_LogConsumer::TAO_Notify_LogConsumer (TAO_NotifyLog_i *log) { } -TAO_Notify_LogConsumer::~TAO_Notify_LogConsumer (void) +TAO_Notify_LogConsumer::~TAO_Notify_LogConsumer () { } @@ -38,7 +38,7 @@ TAO_Notify_LogConsumer::connect ( } void -TAO_Notify_LogConsumer::disconnect (void) +TAO_Notify_LogConsumer::disconnect () { this->proxy_supplier_-> disconnect_push_supplier(); @@ -111,7 +111,7 @@ TAO_Notify_LogConsumer::push void TAO_Notify_LogConsumer::disconnect_push_consumer - (void) + () { } diff --git a/TAO/orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp b/TAO/orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp index ab114d23ada..2b444c1a68b 100644 --- a/TAO/orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp @@ -5,7 +5,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_NotifyLogFactory_i::TAO_NotifyLogFactory_i (void) +TAO_NotifyLogFactory_i::TAO_NotifyLogFactory_i () { } @@ -172,25 +172,25 @@ TAO_NotifyLogFactory_i::create_log_servant (DsLogAdmin::LogId id) } CosNotifyChannelAdmin::AdminID -TAO_NotifyLogFactory_i::MyID (void) +TAO_NotifyLogFactory_i::MyID () { return consumer_admin_->MyID (); } CosNotifyChannelAdmin::EventChannel_ptr -TAO_NotifyLogFactory_i::MyChannel (void) +TAO_NotifyLogFactory_i::MyChannel () { throw CORBA::NO_IMPLEMENT(); } CosNotifyChannelAdmin::InterFilterGroupOperator -TAO_NotifyLogFactory_i::MyOperator (void) +TAO_NotifyLogFactory_i::MyOperator () { return consumer_admin_->MyOperator (); } CosNotifyFilter::MappingFilter_ptr -TAO_NotifyLogFactory_i::priority_filter (void) +TAO_NotifyLogFactory_i::priority_filter () { return consumer_admin_->priority_filter (); } @@ -202,7 +202,7 @@ TAO_NotifyLogFactory_i::priority_filter (CosNotifyFilter::MappingFilter_ptr filt } CosNotifyFilter::MappingFilter_ptr -TAO_NotifyLogFactory_i::lifetime_filter (void) +TAO_NotifyLogFactory_i::lifetime_filter () { return consumer_admin_->lifetime_filter (); } @@ -214,13 +214,13 @@ TAO_NotifyLogFactory_i::lifetime_filter (CosNotifyFilter::MappingFilter_ptr filt } CosNotifyChannelAdmin::ProxyIDSeq* -TAO_NotifyLogFactory_i::pull_suppliers (void) +TAO_NotifyLogFactory_i::pull_suppliers () { return consumer_admin_->pull_suppliers (); } CosNotifyChannelAdmin::ProxyIDSeq* -TAO_NotifyLogFactory_i::push_suppliers (void) +TAO_NotifyLogFactory_i::push_suppliers () { return consumer_admin_->push_suppliers (); } @@ -266,7 +266,7 @@ TAO_NotifyLogFactory_i::obtain_pull_supplier ( } void -TAO_NotifyLogFactory_i::destroy (void) +TAO_NotifyLogFactory_i::destroy () { // No-Op. } @@ -280,7 +280,7 @@ TAO_NotifyLogFactory_i::subscription_change (const CosNotification::EventTypeSeq } CosNotification::QoSProperties* -TAO_NotifyLogFactory_i::get_qos (void) +TAO_NotifyLogFactory_i::get_qos () { return consumer_admin_->get_qos (); } @@ -317,13 +317,13 @@ TAO_NotifyLogFactory_i::get_filter (CosNotifyFilter::FilterID id) } CosNotifyFilter::FilterIDSeq* -TAO_NotifyLogFactory_i::get_all_filters (void) +TAO_NotifyLogFactory_i::get_all_filters () { return consumer_admin_->get_all_filters (); } void -TAO_NotifyLogFactory_i::remove_all_filters (void) +TAO_NotifyLogFactory_i::remove_all_filters () { consumer_admin_->remove_all_filters (); } diff --git a/TAO/orbsvcs/orbsvcs/Log/NotifyLogNotification.cpp b/TAO/orbsvcs/orbsvcs/Log/NotifyLogNotification.cpp index 3ebc0c046a5..725c4952af7 100644 --- a/TAO/orbsvcs/orbsvcs/Log/NotifyLogNotification.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/NotifyLogNotification.cpp @@ -35,7 +35,7 @@ TAO_NotifyLogNotification::TAO_NotifyLogNotification ( proxy_consumer_->connect_any_push_supplier (objref.in ()); } -TAO_NotifyLogNotification::~TAO_NotifyLogNotification (void) +TAO_NotifyLogNotification::~TAO_NotifyLogNotification () { // No-Op. } @@ -55,7 +55,7 @@ TAO_NotifyLogNotification::subscription_change } void -TAO_NotifyLogNotification::disconnect_push_supplier (void) +TAO_NotifyLogNotification::disconnect_push_supplier () { ACE_ASSERT (!CORBA::is_nil (this->proxy_consumer_.in ())); diff --git a/TAO/orbsvcs/orbsvcs/Log/NotifyLog_i.cpp b/TAO/orbsvcs/orbsvcs/Log/NotifyLog_i.cpp index db2aaaf9226..3cf48ab0234 100644 --- a/TAO/orbsvcs/orbsvcs/Log/NotifyLog_i.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/NotifyLog_i.cpp @@ -75,7 +75,7 @@ TAO_NotifyLog_i::copy_with_id (DsLogAdmin::LogId id) void -TAO_NotifyLog_i::destroy (void) +TAO_NotifyLog_i::destroy () { notifier_->object_deletion (logid_); @@ -90,7 +90,7 @@ TAO_NotifyLog_i::destroy (void) } void -TAO_NotifyLog_i::activate (void) +TAO_NotifyLog_i::activate () { CosNotifyChannelAdmin::AdminID adminid = 0; @@ -122,7 +122,7 @@ TAO_NotifyLog_i::activate (void) //IDL to C++ CosNotifyFilter::Filter_ptr -TAO_NotifyLog_i::get_filter (void) +TAO_NotifyLog_i::get_filter () { //TODO: need to add impl throw CORBA::NO_IMPLEMENT (); @@ -137,26 +137,26 @@ TAO_NotifyLog_i::set_filter (CosNotifyFilter::Filter_ptr /* filter */) } CosNotifyChannelAdmin::EventChannelFactory_ptr -TAO_NotifyLog_i::MyFactory (void) +TAO_NotifyLog_i::MyFactory () { //TODO: need to add impl throw CORBA::NO_IMPLEMENT (); } CosNotifyChannelAdmin::ConsumerAdmin_ptr -TAO_NotifyLog_i::default_consumer_admin (void) +TAO_NotifyLog_i::default_consumer_admin () { return this->event_channel_->default_consumer_admin (); } CosNotifyChannelAdmin::SupplierAdmin_ptr -TAO_NotifyLog_i::default_supplier_admin (void) +TAO_NotifyLog_i::default_supplier_admin () { return this->event_channel_->default_supplier_admin (); } CosNotifyFilter::FilterFactory_ptr -TAO_NotifyLog_i::default_filter_factory (void) +TAO_NotifyLog_i::default_filter_factory () { return this->event_channel_->default_filter_factory (); } @@ -188,19 +188,19 @@ TAO_NotifyLog_i::get_supplieradmin (CosNotifyChannelAdmin::AdminID id) } CosNotifyChannelAdmin::AdminIDSeq* -TAO_NotifyLog_i::get_all_consumeradmins (void) +TAO_NotifyLog_i::get_all_consumeradmins () { return this->event_channel_->get_all_consumeradmins (); } CosNotifyChannelAdmin::AdminIDSeq* -TAO_NotifyLog_i::get_all_supplieradmins (void) +TAO_NotifyLog_i::get_all_supplieradmins () { return this->event_channel_->get_all_supplieradmins (); } CosNotification::AdminProperties* -TAO_NotifyLog_i::get_admin (void) +TAO_NotifyLog_i::get_admin () { return this->event_channel_->get_admin (); } @@ -212,7 +212,7 @@ TAO_NotifyLog_i::set_admin (const CosNotification::AdminProperties& admin) } CosNotification::QoSProperties* -TAO_NotifyLog_i::get_qos (void) +TAO_NotifyLog_i::get_qos () { //need to add merging of QoS from Log_i and EventChannel_i throw CORBA::NO_IMPLEMENT (); @@ -236,7 +236,7 @@ TAO_NotifyLog_i::validate_qos ( } CosEventChannelAdmin::ConsumerAdmin_ptr -TAO_NotifyLog_i::for_consumers (void) +TAO_NotifyLog_i::for_consumers () { return this->event_channel_->for_consumers(); } diff --git a/TAO/orbsvcs/orbsvcs/Log/RTEventLogConsumer.cpp b/TAO/orbsvcs/orbsvcs/Log/RTEventLogConsumer.cpp index 1e26e39f1fa..a20179e0a89 100644 --- a/TAO/orbsvcs/orbsvcs/Log/RTEventLogConsumer.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/RTEventLogConsumer.cpp @@ -20,7 +20,7 @@ TAO_Rtec_LogConsumer::TAO_Rtec_LogConsumer (TAO_RTEventLog_i *log) { } -TAO_Rtec_LogConsumer::~TAO_Rtec_LogConsumer (void) +TAO_Rtec_LogConsumer::~TAO_Rtec_LogConsumer () { } @@ -52,7 +52,7 @@ TAO_Rtec_LogConsumer::push (const RtecEventComm::EventSet& events) } void -TAO_Rtec_LogConsumer::disconnect_push_consumer (void) +TAO_Rtec_LogConsumer::disconnect_push_consumer () { this->supplier_proxy_->disconnect_push_supplier (); } diff --git a/TAO/orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp b/TAO/orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp index ffe4ebc38af..3b689030332 100644 --- a/TAO/orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp @@ -19,7 +19,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_RTEventLogFactory_i::TAO_RTEventLogFactory_i (void) : +TAO_RTEventLogFactory_i::TAO_RTEventLogFactory_i () : impl (0), notifier_ (0) { @@ -46,7 +46,7 @@ TAO_RTEventLogFactory_i::init (CORBA::ORB_ptr orb, TAO_EC_Event_Channel (attr), CORBA::NO_MEMORY ()); - auto_ptr <TAO_EC_Event_Channel> ec (impl); + std::unique_ptr <TAO_EC_Event_Channel> ec (impl); impl->activate (); @@ -69,7 +69,7 @@ TAO_RTEventLogFactory_i::init (CORBA::ORB_ptr orb, } RTEventLogAdmin::EventLogFactory_ptr -TAO_RTEventLogFactory_i::activate (void) +TAO_RTEventLogFactory_i::activate () { RTEventLogAdmin::EventLogFactory_var v_return; diff --git a/TAO/orbsvcs/orbsvcs/Log/RTEventLogNotification.cpp b/TAO/orbsvcs/orbsvcs/Log/RTEventLogNotification.cpp index 27929151778..bbcc5c060af 100644 --- a/TAO/orbsvcs/orbsvcs/Log/RTEventLogNotification.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/RTEventLogNotification.cpp @@ -29,19 +29,19 @@ TAO_RTEventLogNotification::TAO_RTEventLogNotification ( obtainProxyConsumer (); } -TAO_RTEventLogNotification::~TAO_RTEventLogNotification (void) +TAO_RTEventLogNotification::~TAO_RTEventLogNotification () { // No-Op. } void -TAO_RTEventLogNotification::disconnect_push_supplier (void) +TAO_RTEventLogNotification::disconnect_push_supplier () { // No-Op. } void -TAO_RTEventLogNotification::obtainProxyConsumer (void) +TAO_RTEventLogNotification::obtainProxyConsumer () { RtecEventChannelAdmin::SupplierAdmin_var supplier_admin = event_channel_->for_suppliers(); diff --git a/TAO/orbsvcs/orbsvcs/Log/RTEventLog_i.cpp b/TAO/orbsvcs/orbsvcs/Log/RTEventLog_i.cpp index 08f783e807c..c63d99d4e41 100644 --- a/TAO/orbsvcs/orbsvcs/Log/RTEventLog_i.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/RTEventLog_i.cpp @@ -74,7 +74,7 @@ TAO_RTEventLog_i::copy_with_id (DsLogAdmin::LogId id) } void -TAO_RTEventLog_i::destroy (void) +TAO_RTEventLog_i::destroy () { notifier_->object_deletion (logid_); @@ -88,7 +88,7 @@ TAO_RTEventLog_i::destroy (void) } void -TAO_RTEventLog_i::activate (void) +TAO_RTEventLog_i::activate () { RtecEventChannelAdmin::ConsumerAdmin_var consumer_admin = this->event_channel_->for_consumers (); @@ -98,13 +98,13 @@ TAO_RTEventLog_i::activate (void) } RtecEventChannelAdmin::ConsumerAdmin_ptr -TAO_RTEventLog_i::for_consumers (void) +TAO_RTEventLog_i::for_consumers () { return this->event_channel_->for_consumers(); } RtecEventChannelAdmin::SupplierAdmin_ptr -TAO_RTEventLog_i::for_suppliers (void) +TAO_RTEventLog_i::for_suppliers () { return this->event_channel_->for_suppliers(); } diff --git a/TAO/orbsvcs/orbsvcs/Naming/Entries.cpp b/TAO/orbsvcs/orbsvcs/Naming/Entries.cpp index dfabfd4984b..32020a57daa 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Entries.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/Entries.cpp @@ -10,7 +10,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_IntId::TAO_IntId (void) +TAO_IntId::TAO_IntId () : type_ (CosNaming::nobject) { ref_ = CORBA::Object::_nil (); @@ -29,7 +29,7 @@ TAO_IntId::TAO_IntId (const TAO_IntId &rhs) ref_ = CORBA::Object::_duplicate (rhs.ref_); } -TAO_IntId::~TAO_IntId (void) +TAO_IntId::~TAO_IntId () { CORBA::release (ref_); } @@ -47,7 +47,7 @@ TAO_IntId::operator= (const TAO_IntId &rhs) ref_ = CORBA::Object::_duplicate (rhs.ref_); } -TAO_ExtId::TAO_ExtId (void) +TAO_ExtId::TAO_ExtId () : kind_ (), id_ () { @@ -66,18 +66,18 @@ TAO_ExtId::TAO_ExtId (const TAO_ExtId &rhs) kind_ = rhs.kind_; } -TAO_ExtId::~TAO_ExtId (void) +TAO_ExtId::~TAO_ExtId () { } const char * -TAO_ExtId::id (void) +TAO_ExtId::id () { return id_.fast_rep (); } const char * -TAO_ExtId::kind (void) +TAO_ExtId::kind () { return kind_.fast_rep (); } @@ -106,7 +106,7 @@ TAO_ExtId::operator!= (const TAO_ExtId &rhs) const } u_long -TAO_ExtId::hash (void) const +TAO_ExtId::hash () const { ACE_CString temp (id_); temp += kind_; diff --git a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Naming_Manager.cpp b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Naming_Manager.cpp index 4178727920b..4a3c0bafc58 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Naming_Manager.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Naming_Manager.cpp @@ -60,7 +60,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_FT_Naming_Manager::TAO_FT_Naming_Manager (void) +TAO_FT_Naming_Manager::TAO_FT_Naming_Manager () : factory_registry_ ("NamingManager::FactoryRegistry"), group_factory_ (), use_global_ (false), @@ -79,7 +79,7 @@ TAO_FT_Naming_Manager::TAO_FT_Naming_Manager (void) ::FT_Naming::TAO_FT_OBJECT_GROUP_NAME; } -TAO_FT_Naming_Manager::~TAO_FT_Naming_Manager (void) +TAO_FT_Naming_Manager::~TAO_FT_Naming_Manager () { this->object_group_property_name_.length (0); this->built_in_balancing_strategy_name_.length (0); diff --git a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Naming_Replication_Manager.cpp b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Naming_Replication_Manager.cpp index ae540b2cd65..ae18aa384f8 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Naming_Replication_Manager.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Naming_Replication_Manager.cpp @@ -87,12 +87,12 @@ TAO_FT_Naming_Replication_Manager::TAO_FT_Naming_Replication_Manager (TAO_FT_Nam { } -TAO_FT_Naming_Replication_Manager::~TAO_FT_Naming_Replication_Manager(void) +TAO_FT_Naming_Replication_Manager::~TAO_FT_Naming_Replication_Manager() { } void -TAO_FT_Naming_Replication_Manager::init_orb (void) +TAO_FT_Naming_Replication_Manager::init_orb () { int argc = 8; ACE_TCHAR *argv[11]; @@ -132,19 +132,19 @@ TAO_FT_Naming_Replication_Manager::init_orb (void) } char * -TAO_FT_Naming_Replication_Manager::ior (void) +TAO_FT_Naming_Replication_Manager::ior () { return this->orb_->object_to_string (this->me_.in ()); } bool -TAO_FT_Naming_Replication_Manager::peer_available (void) +TAO_FT_Naming_Replication_Manager::peer_available () { return !CORBA::is_nil (this->peer_.in ()); } void -TAO_FT_Naming_Replication_Manager::stop (void) +TAO_FT_Naming_Replication_Manager::stop () { if (this->reactor_ == 0) { @@ -155,7 +155,7 @@ TAO_FT_Naming_Replication_Manager::stop (void) } int -TAO_FT_Naming_Replication_Manager::svc (void) +TAO_FT_Naming_Replication_Manager::svc () { if (this->reactor_ == 0) { @@ -371,7 +371,7 @@ TAO_FT_Naming_Replication_Manager::send_registration (bool use_combo_refs) } bool -TAO_FT_Naming_Replication_Manager::peer_init_i (void) +TAO_FT_Naming_Replication_Manager::peer_init_i () { CORBA::Object_var obj = this->orb_->string_to_object (replica_ior_.c_str()); bool non_exist = true; @@ -421,7 +421,7 @@ TAO_FT_Naming_Replication_Manager::peer_init_i (void) } bool -TAO_FT_Naming_Replication_Manager::update_peer_registration (void) +TAO_FT_Naming_Replication_Manager::update_peer_registration () { FT_Naming::ReplicaInfo info; info.combined = this->send_combos_; @@ -450,7 +450,7 @@ TAO_FT_Naming_Replication_Manager::update_peer_registration (void) bool -TAO_FT_Naming_Replication_Manager::init_peer (void) +TAO_FT_Naming_Replication_Manager::init_peer () { ACE_TString replica_ior_file = this->server_.replica_ior_filename (true); diff --git a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Naming_Server.cpp b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Naming_Server.cpp index 7d05f927ad1..28445381a2f 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Naming_Server.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Naming_Server.cpp @@ -74,7 +74,7 @@ TAO_FTNS_Notifier::handle_exception (ACE_HANDLE ) } /// Default Constructor. -TAO_FT_Naming_Server::TAO_FT_Naming_Server (void) +TAO_FT_Naming_Server::TAO_FT_Naming_Server () : TAO_Naming_Server (IOR_ARRAY_SIZE), naming_manager_ (), replicator_ (0), @@ -94,7 +94,7 @@ TAO_FT_Naming_Server::TAO_FT_Naming_Server (void) } void -TAO_FT_Naming_Server::update_info_i (void) +TAO_FT_Naming_Server::update_info_i () { while (true) { @@ -140,7 +140,7 @@ TAO_FT_Naming_Server::update_info (FT_Naming::UpdateInfoSeq &infos) } void -TAO_FT_Naming_Server::update_iors_i (void) +TAO_FT_Naming_Server::update_iors_i () { while (true) { @@ -344,7 +344,7 @@ TAO_FT_Naming_Server::init_naming_manager_with_orb (int, ACE_TCHAR *[], CORBA::O } int -TAO_FT_Naming_Server::init_replicator (void) +TAO_FT_Naming_Server::init_replicator () { if (this->server_role_ == STANDALONE ) return 0; @@ -393,7 +393,7 @@ TAO_FT_Naming_Server::replica_ior_filename (bool peer_ior_file) const } void -TAO_FT_Naming_Server::init_replication_pairing (void) +TAO_FT_Naming_Server::init_replication_pairing () { if (this->server_role_ == STANDALONE) { @@ -620,7 +620,7 @@ TAO_FT_Naming_Server::parse_args (int argc, } int -TAO_FT_Naming_Server::fini (void) +TAO_FT_Naming_Server::fini () { if (this->replicator_ != 0) { @@ -697,7 +697,7 @@ TAO_FT_Naming_Server::storable_naming_context_factory (size_t context_size) } TAO_Persistent_Naming_Context_Factory * -TAO_FT_Naming_Server::persistent_naming_context_factory (void) +TAO_FT_Naming_Server::persistent_naming_context_factory () { #if defined (ACE_HAS_NEW_NOTHROW) return new (ACE_nothrow) TAO_FT_Persistent_Naming_Context_Factory; @@ -708,14 +708,14 @@ TAO_FT_Naming_Server::persistent_naming_context_factory (void) /// Return the IOR for the registered replication manager char* -TAO_FT_Naming_Server::replicator_ior (void) +TAO_FT_Naming_Server::replicator_ior () { return CORBA::string_dup (this->iors_[REPLICATOR].ior_.c_str()); } /// Return the IOR for the registered object group manager char* -TAO_FT_Naming_Server::naming_manager_ior (void) +TAO_FT_Naming_Server::naming_manager_ior () { return CORBA::string_dup (this->iors_[GROUP].ior_.c_str()); } @@ -812,14 +812,14 @@ TAO_FT_Naming_Server::update_naming_context ( } /// Destructor. -TAO_FT_Naming_Server::~TAO_FT_Naming_Server (void) +TAO_FT_Naming_Server::~TAO_FT_Naming_Server () { // Clear out the static naming manager from the persistent naming context TAO_FT_Persistent_Naming_Context::set_naming_manager_impl (0); } CosNaming::NamingContext_ptr -TAO_FT_Naming_Server::my_root_context (void) const +TAO_FT_Naming_Server::my_root_context () const { if (CORBA::is_nil (this->iors_[ROOT].ref_.in())) { @@ -834,7 +834,7 @@ TAO_FT_Naming_Server::my_root_context (void) const } FT_Naming::NamingManager_ptr -TAO_FT_Naming_Server::my_naming_manager (void) const +TAO_FT_Naming_Server::my_naming_manager () const { if (CORBA::is_nil (this->iors_[GROUP].ref_)) { @@ -850,7 +850,7 @@ TAO_FT_Naming_Server::my_naming_manager (void) const } CosNaming::NamingContext_ptr -TAO_FT_Naming_Server::ft_root_context (void) const +TAO_FT_Naming_Server::ft_root_context () const { if (CORBA::is_nil (this->iors_[FT_ROOT].ref_)) { @@ -865,7 +865,7 @@ TAO_FT_Naming_Server::ft_root_context (void) const } FT_Naming::NamingManager_ptr -TAO_FT_Naming_Server::ft_naming_manager (void) const +TAO_FT_Naming_Server::ft_naming_manager () const { if (CORBA::is_nil (this->iors_[FT_GROUP].ref_)) { @@ -881,13 +881,13 @@ TAO_FT_Naming_Server::ft_naming_manager (void) const } const ACE_CString & -TAO_FT_Naming_Server::ft_endpoint (void) +TAO_FT_Naming_Server::ft_endpoint () { return this->ft_endpoint_; } const ACE_Time_Value & -TAO_FT_Naming_Server::ft_update_delay (void) +TAO_FT_Naming_Server::ft_update_delay () { return this->ft_update_delay_; } @@ -955,7 +955,7 @@ TAO_FT_Naming_Server::combine_iors (FT_Naming::EntityKind kind, CORBA::Object_pt } int -TAO_FT_Naming_Server::recover_iors (void) +TAO_FT_Naming_Server::recover_iors () { if (this->registered_) { diff --git a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_PG_Object_Group_Storable.cpp b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_PG_Object_Group_Storable.cpp index 6f05c3decc5..97a7f9cf109 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_PG_Object_Group_Storable.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_PG_Object_Group_Storable.cpp @@ -52,7 +52,7 @@ TAO::FT_PG_Object_Group_Storable::FT_PG_Object_Group_Storable { } -TAO::FT_PG_Object_Group_Storable::~FT_PG_Object_Group_Storable (void) +TAO::FT_PG_Object_Group_Storable::~FT_PG_Object_Group_Storable () { } @@ -79,7 +79,7 @@ TAO::FT_PG_Object_Group_Storable::propagate_update_notification } void -TAO::FT_PG_Object_Group_Storable::state_written (void) +TAO::FT_PG_Object_Group_Storable::state_written () { FT_Naming::ChangeType change_type; if (!this->file_created_) diff --git a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Persistent_Naming_Context.cpp b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Persistent_Naming_Context.cpp index 6e1601e8070..5ef67c277eb 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Persistent_Naming_Context.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Persistent_Naming_Context.cpp @@ -31,7 +31,7 @@ TAO_FT_Persistent_Naming_Context::TAO_FT_Persistent_Naming_Context ( } -TAO_FT_Persistent_Naming_Context::~TAO_FT_Persistent_Naming_Context (void) +TAO_FT_Persistent_Naming_Context::~TAO_FT_Persistent_Naming_Context () { // Perform appropriate cleanup based on the destruction level specified. } diff --git a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Persistent_Naming_Context_Factory.cpp b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Persistent_Naming_Context_Factory.cpp index e2c7b9f0a93..5d0fda3837f 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Persistent_Naming_Context_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Persistent_Naming_Context_Factory.cpp @@ -4,7 +4,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL /// Constructor. -TAO_FT_Persistent_Naming_Context_Factory::TAO_FT_Persistent_Naming_Context_Factory (void) +TAO_FT_Persistent_Naming_Context_Factory::TAO_FT_Persistent_Naming_Context_Factory () : TAO_Persistent_Naming_Context_Factory () { @@ -12,7 +12,7 @@ TAO_FT_Persistent_Naming_Context_Factory::TAO_FT_Persistent_Naming_Context_Facto /// Destructor. Does not deallocate the hash map: if an instance of /// this class goes out of scope, its hash_map remains in persistent storage. -TAO_FT_Persistent_Naming_Context_Factory::~TAO_FT_Persistent_Naming_Context_Factory (void) +TAO_FT_Persistent_Naming_Context_Factory::~TAO_FT_Persistent_Naming_Context_Factory () { } diff --git a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Random.cpp b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Random.cpp index 4ebab318def..7c2cf1a2134 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Random.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Random.cpp @@ -9,11 +9,11 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_FT_Random::TAO_FT_Random (void) +TAO_FT_Random::TAO_FT_Random () { } -TAO_FT_Random::~TAO_FT_Random (void) +TAO_FT_Random::~TAO_FT_Random () { } diff --git a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Round_Robin.cpp b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Round_Robin.cpp index ecfae28389a..d4246736ab0 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Round_Robin.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Round_Robin.cpp @@ -9,13 +9,13 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_FT_Round_Robin::TAO_FT_Round_Robin (void) +TAO_FT_Round_Robin::TAO_FT_Round_Robin () : lock_ (), location_index_map_ (TAO_PG_MAX_OBJECT_GROUPS) { } -TAO_FT_Round_Robin::~TAO_FT_Round_Robin (void) +TAO_FT_Round_Robin::~TAO_FT_Round_Robin () { } diff --git a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Storable_Naming_Context.cpp b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Storable_Naming_Context.cpp index 823990864b3..aaba0319349 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Storable_Naming_Context.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Storable_Naming_Context.cpp @@ -35,7 +35,7 @@ TAO_FT_Storable_Naming_Context::TAO_FT_Storable_Naming_Context (CORBA::ORB_ptr o } -TAO_FT_Storable_Naming_Context::~TAO_FT_Storable_Naming_Context (void) +TAO_FT_Storable_Naming_Context::~TAO_FT_Storable_Naming_Context () { // Perform appropriate cleanup based on the destruction level specified. } @@ -124,14 +124,14 @@ TAO_FT_Storable_Naming_Context::stale (bool is_stale) bool -TAO_FT_Storable_Naming_Context::stale (void) +TAO_FT_Storable_Naming_Context::stale () { return stale_; } void -TAO_FT_Storable_Naming_Context::context_written (void) +TAO_FT_Storable_Naming_Context::context_written () { FT_Naming::ChangeType change_type; diff --git a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Storable_Naming_Context_Factory.cpp b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Storable_Naming_Context_Factory.cpp index 65a0e759562..648ec3a7654 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Storable_Naming_Context_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Storable_Naming_Context_Factory.cpp @@ -24,7 +24,7 @@ TAO_FT_Storable_Naming_Context_Factory (size_t hash_table_size, /// Destructor. Does not deallocate the hash map: if an instance of /// this class goes out of scope, its hash_map remains in persistent storage. -TAO_FT_Storable_Naming_Context_Factory::~TAO_FT_Storable_Naming_Context_Factory (void) +TAO_FT_Storable_Naming_Context_Factory::~TAO_FT_Storable_Naming_Context_Factory () { } diff --git a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/nsgroup_svc.cpp b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/nsgroup_svc.cpp index 450be60c4c5..4af5d580395 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/nsgroup_svc.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/nsgroup_svc.cpp @@ -389,7 +389,7 @@ NS_group_svc::group_unbind (const ACE_TCHAR* path) * Displays all object groups that currently exist in the naming service. */ int -NS_group_svc::group_list (void) +NS_group_svc::group_list () { // KCS: The group list is independent of locations. I created a new operation in the diff --git a/TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.cpp b/TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.cpp index 3a7f45ccf79..16ebeaa7b85 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.cpp @@ -13,7 +13,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Bindings_Map::~TAO_Bindings_Map (void) +TAO_Bindings_Map::~TAO_Bindings_Map () { } @@ -33,19 +33,19 @@ TAO_Hash_Naming_Context::interface (TAO_Naming_Context *i) this->interface_ = i; } -TAO_Hash_Naming_Context::~TAO_Hash_Naming_Context (void) +TAO_Hash_Naming_Context::~TAO_Hash_Naming_Context () { delete context_; } TAO_SYNCH_RW_MUTEX& -TAO_Hash_Naming_Context::lock (void) +TAO_Hash_Naming_Context::lock () { return this->lock_; } PortableServer::POA_ptr -TAO_Hash_Naming_Context::_default_POA (void) +TAO_Hash_Naming_Context::_default_POA () { return PortableServer::POA::_duplicate (this->poa_.in ()); } @@ -546,7 +546,7 @@ TAO_Hash_Naming_Context::bind_new_context (const CosNaming::Name& n) } void -TAO_Hash_Naming_Context::destroy (void) +TAO_Hash_Naming_Context::destroy () { // Check to make sure this object didn't have <destroy> method // invoked on it. @@ -579,20 +579,20 @@ TAO_Hash_Naming_Context::destroy (void) } int -TAO_Hash_Naming_Context::root (void) +TAO_Hash_Naming_Context::root () { return (ACE_OS::strcmp (this->poa_id_.fast_rep (), TAO_ROOT_NAMING_CONTEXT) == 0); } int -TAO_Hash_Naming_Context::destroyed (void) +TAO_Hash_Naming_Context::destroyed () { return this->destroyed_; } TAO_Naming_Context * -TAO_Hash_Naming_Context::interface (void) +TAO_Hash_Naming_Context::interface () { return this->interface_; } diff --git a/TAO/orbsvcs/orbsvcs/Naming/Naming_Client.cpp b/TAO/orbsvcs/orbsvcs/Naming/Naming_Client.cpp index 92255b51454..c16509e5e0b 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Naming_Client.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/Naming_Client.cpp @@ -5,13 +5,13 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL CosNaming::NamingContext_ptr -TAO_Naming_Client::operator -> (void) const +TAO_Naming_Client::operator -> () const { return this->naming_context_.ptr (); } CosNaming::NamingContext_ptr -TAO_Naming_Client::get_context (void) const +TAO_Naming_Client::get_context () const { // Must duplicate this pointer so it can be stored in a _var. return CosNaming::NamingContext::_duplicate (this->naming_context_.in ()); @@ -41,12 +41,12 @@ TAO_Naming_Client::init (CORBA::ORB_ptr orb, ACE_Time_Value *timeout) return 0; } -TAO_Naming_Client::TAO_Naming_Client (void) +TAO_Naming_Client::TAO_Naming_Client () { // Do nothing } -TAO_Naming_Client::~TAO_Naming_Client (void) +TAO_Naming_Client::~TAO_Naming_Client () { // Do nothing } diff --git a/TAO/orbsvcs/orbsvcs/Naming/Naming_Context_Interface.cpp b/TAO/orbsvcs/orbsvcs/Naming/Naming_Context_Interface.cpp index 4bb6e7c4a8d..11858f0ece8 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Naming_Context_Interface.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/Naming_Context_Interface.cpp @@ -18,7 +18,7 @@ TAO_Naming_Context::TAO_Naming_Context (TAO_Naming_Context_Impl *impl) { } -TAO_Naming_Context::~TAO_Naming_Context (void) +TAO_Naming_Context::~TAO_Naming_Context () { delete impl_; } @@ -68,7 +68,7 @@ TAO_Naming_Context::unbind (const CosNaming::Name &n) } CosNaming::NamingContext_ptr -TAO_Naming_Context::new_context (void) +TAO_Naming_Context::new_context () { return impl_->new_context (); } @@ -80,7 +80,7 @@ TAO_Naming_Context::bind_new_context (const CosNaming::Name &n) } void -TAO_Naming_Context::destroy (void) +TAO_Naming_Context::destroy () { impl_->destroy (); } @@ -463,7 +463,7 @@ TAO_Naming_Context::stale (bool value) this->impl_->stale (value); } -TAO_Naming_Context_Impl::~TAO_Naming_Context_Impl (void) +TAO_Naming_Context_Impl::~TAO_Naming_Context_Impl () { } @@ -475,7 +475,7 @@ TAO_Naming_Context_Impl::stale (bool value) } bool -TAO_Naming_Context_Impl::stale (void) +TAO_Naming_Context_Impl::stale () { // Default implementation is to reply false return false; diff --git a/TAO/orbsvcs/orbsvcs/Naming/Naming_Loader.cpp b/TAO/orbsvcs/orbsvcs/Naming/Naming_Loader.cpp index b1b7a9da824..31cf92cecab 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Naming_Loader.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/Naming_Loader.cpp @@ -31,7 +31,7 @@ TAO_Naming_Loader::TAO_Naming_Loader (TAO_Naming_Server *server) ACE_NEW (naming_server_, TAO_Naming_Server); } -TAO_Naming_Loader::~TAO_Naming_Loader (void) +TAO_Naming_Loader::~TAO_Naming_Loader () { // Destroy the naming server that was created delete naming_server_; @@ -65,7 +65,7 @@ TAO_Naming_Loader::init (int argc, ACE_TCHAR *argv[]) } int -TAO_Naming_Loader::fini (void) +TAO_Naming_Loader::fini () { // Remove the Naming Service. if (this->naming_server_ == 0) diff --git a/TAO/orbsvcs/orbsvcs/Naming/Naming_Server.cpp b/TAO/orbsvcs/orbsvcs/Naming/Naming_Server.cpp index a0931cb7edc..448c6100d03 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Naming_Server.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/Naming_Server.cpp @@ -483,11 +483,7 @@ TAO_Naming_Server::init_new_naming (CORBA::ORB_ptr orb, TAO::Storable_Factory* pf = 0; ACE_CString directory (ACE_TEXT_ALWAYS_CHAR (persistence_location)); ACE_NEW_RETURN (pf, TAO::Storable_FlatFileFactory (directory), -1); -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO::Storable_Factory> persFactory(pf); -#else - auto_ptr<TAO::Storable_Factory> persFactory(pf); -#endif /* ACE_HAS_CPP11 */ // Use an auto_ptr to ensure that we clean up the factory in the case // of a failure in creating and registering the Activator. @@ -495,11 +491,7 @@ TAO_Naming_Server::init_new_naming (CORBA::ORB_ptr orb, this->storable_naming_context_factory (context_size); // Make sure we got a factory if (cf == 0) return -1; -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO_Storable_Naming_Context_Factory> contextFactory (cf); -#else - auto_ptr<TAO_Storable_Naming_Context_Factory> contextFactory (cf); -#endif /* ACE_HAS_CPP11 */ // This instance will either get deleted after recreate all or, // in the case of a servant activator's use, on destruction of the @@ -770,7 +762,7 @@ TAO_Naming_Server::storable_naming_context_factory (size_t context_size) } TAO_Persistent_Naming_Context_Factory * -TAO_Naming_Server::persistent_naming_context_factory (void) +TAO_Naming_Server::persistent_naming_context_factory () { #if defined (ACE_HAS_NEW_NOTHROW) return new (ACE_nothrow) TAO_Persistent_Naming_Context_Factory; @@ -780,7 +772,7 @@ TAO_Naming_Server::persistent_naming_context_factory (void) } int -TAO_Naming_Server::fini (void) +TAO_Naming_Server::fini () { // First get rid of the multi cast handler if (this->ior_multicast_) @@ -852,13 +844,13 @@ TAO_Naming_Server::fini (void) } char* -TAO_Naming_Server::naming_service_ior (void) +TAO_Naming_Server::naming_service_ior () { return CORBA::string_dup (this->iors_[ROOT].ior_.c_str()); } CosNaming::NamingContext_ptr -TAO_Naming_Server::operator-> (void) const +TAO_Naming_Server::operator-> () const { if (CORBA::is_nil (this->iors_[ROOT].ref_)) { @@ -872,7 +864,7 @@ TAO_Naming_Server::operator-> (void) const } -TAO_Naming_Server::~TAO_Naming_Server (void) +TAO_Naming_Server::~TAO_Naming_Server () { delete [] this->iors_; diff --git a/TAO/orbsvcs/orbsvcs/Naming/Naming_Service_Container.h b/TAO/orbsvcs/orbsvcs/Naming/Naming_Service_Container.h index 01d5a109d0b..fdca3733dba 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Naming_Service_Container.h +++ b/TAO/orbsvcs/orbsvcs/Naming/Naming_Service_Container.h @@ -86,7 +86,7 @@ public: int done (void) const; /// Dump the state of an object. - void dump (void) const; + void dump () const; // = STL styled iteration, compare, and reference functions. @@ -174,7 +174,7 @@ public: size_t size (void) const; /// Dump the state of an object. - void dump (void) const; + void dump () const; /// Reset the <ACE_Unbounded_List> to be empty. void reset (void); diff --git a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.cpp b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.cpp index ad4a4f071ab..896f31bc96f 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.cpp @@ -92,7 +92,7 @@ TAO_Persistent_Context_Index::TAO_Persistent_Context_Index { } -TAO_Persistent_Context_Index::~TAO_Persistent_Context_Index (void) +TAO_Persistent_Context_Index::~TAO_Persistent_Context_Index () { delete allocator_; delete context_impl_factory_; @@ -100,19 +100,19 @@ TAO_Persistent_Context_Index::~TAO_Persistent_Context_Index (void) } ACE_Allocator* -TAO_Persistent_Context_Index::allocator (void) +TAO_Persistent_Context_Index::allocator () { return allocator_; } CosNaming::NamingContext_ptr -TAO_Persistent_Context_Index::root_context (void) +TAO_Persistent_Context_Index::root_context () { return CosNaming::NamingContext::_duplicate (root_context_.in ()); } CORBA::ORB_ptr -TAO_Persistent_Context_Index::orb (void) +TAO_Persistent_Context_Index::orb () { return orb_.in (); } @@ -160,7 +160,7 @@ TAO_Persistent_Context_Index::init (size_t context_size) } int -TAO_Persistent_Context_Index::recreate_all (void) +TAO_Persistent_Context_Index::recreate_all () { CONTEXT_INDEX::ITERATOR *index_iter = 0; @@ -239,7 +239,7 @@ TAO_Persistent_Context_Index::create_naming_context_impl ( } int -TAO_Persistent_Context_Index::create_index (void) +TAO_Persistent_Context_Index::create_index () { // Make sure that the file name is of the legal length. if (ACE_OS::strlen (index_file_) >= MAXNAMELEN + MAXPATHLEN) diff --git a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Entries.cpp b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Entries.cpp index ae98a0f2d29..1946a0e3035 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Entries.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Entries.cpp @@ -11,7 +11,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Persistent_IntId::TAO_Persistent_IntId (void) +TAO_Persistent_IntId::TAO_Persistent_IntId () : ref_ (0), type_ (CosNaming::nobject) { @@ -30,7 +30,7 @@ TAO_Persistent_IntId::TAO_Persistent_IntId (const TAO_Persistent_IntId &rhs) type_ = rhs.type_; } -TAO_Persistent_IntId::~TAO_Persistent_IntId (void) +TAO_Persistent_IntId::~TAO_Persistent_IntId () { } @@ -45,7 +45,7 @@ TAO_Persistent_IntId::operator= (const TAO_Persistent_IntId &rhs) ref_ = rhs.ref_; } -TAO_Persistent_ExtId::TAO_Persistent_ExtId (void) +TAO_Persistent_ExtId::TAO_Persistent_ExtId () : id_ (0), kind_ (0) { @@ -65,7 +65,7 @@ TAO_Persistent_ExtId::TAO_Persistent_ExtId (const TAO_Persistent_ExtId &rhs) kind_ = rhs.kind_; } -TAO_Persistent_ExtId::~TAO_Persistent_ExtId (void) +TAO_Persistent_ExtId::~TAO_Persistent_ExtId () { } @@ -95,7 +95,7 @@ TAO_Persistent_ExtId::operator!= (const TAO_Persistent_ExtId &rhs) const } u_long -TAO_Persistent_ExtId::hash (void) const +TAO_Persistent_ExtId::hash () const { ACE_CString temp (id_); temp += kind_; @@ -104,18 +104,18 @@ TAO_Persistent_ExtId::hash (void) const } const char * -TAO_Persistent_ExtId::id (void) +TAO_Persistent_ExtId::id () { return id_; } const char * -TAO_Persistent_ExtId::kind (void) +TAO_Persistent_ExtId::kind () { return kind_; } -TAO_Persistent_Index_IntId::TAO_Persistent_Index_IntId (void) +TAO_Persistent_Index_IntId::TAO_Persistent_Index_IntId () : counter_ (0), hash_map_ (0) { @@ -135,7 +135,7 @@ TAO_Persistent_Index_IntId::TAO_Persistent_Index_IntId (const TAO_Persistent_Ind hash_map_ = rhs.hash_map_; } -TAO_Persistent_Index_IntId::~TAO_Persistent_Index_IntId (void) +TAO_Persistent_Index_IntId::~TAO_Persistent_Index_IntId () { } @@ -150,7 +150,7 @@ TAO_Persistent_Index_IntId::operator= (const TAO_Persistent_Index_IntId &rhs) hash_map_ = rhs.hash_map_; } -TAO_Persistent_Index_ExtId::TAO_Persistent_Index_ExtId (void) +TAO_Persistent_Index_ExtId::TAO_Persistent_Index_ExtId () : poa_id_ (0) { } @@ -165,7 +165,7 @@ TAO_Persistent_Index_ExtId::TAO_Persistent_Index_ExtId (const TAO_Persistent_Ind poa_id_ = rhs.poa_id_; } -TAO_Persistent_Index_ExtId::~TAO_Persistent_Index_ExtId (void) +TAO_Persistent_Index_ExtId::~TAO_Persistent_Index_ExtId () { } @@ -192,7 +192,7 @@ TAO_Persistent_Index_ExtId::operator!= (const TAO_Persistent_Index_ExtId &rhs) c } u_long -TAO_Persistent_Index_ExtId::hash (void) const +TAO_Persistent_Index_ExtId::hash () const { ACE_CString temp (poa_id_); return temp.hash (); diff --git a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context.cpp b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context.cpp index 8fdbbec5cd4..3dc96efb69f 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context.cpp @@ -70,31 +70,31 @@ TAO_Persistent_Bindings_Map::TAO_Persistent_Bindings_Map (CORBA::ORB_ptr orb) { } -TAO_Persistent_Bindings_Map::~TAO_Persistent_Bindings_Map (void) +TAO_Persistent_Bindings_Map::~TAO_Persistent_Bindings_Map () { } void -TAO_Persistent_Bindings_Map::destroy (void) +TAO_Persistent_Bindings_Map::destroy () { this->map_->ACE_Hash_Map_With_Allocator<TAO_Persistent_ExtId, TAO_Persistent_IntId>::~ACE_Hash_Map_With_Allocator (); this->allocator_->free (map_); } TAO_Persistent_Bindings_Map::HASH_MAP * -TAO_Persistent_Bindings_Map::map (void) +TAO_Persistent_Bindings_Map::map () { return this->map_; } size_t -TAO_Persistent_Bindings_Map::total_size (void) +TAO_Persistent_Bindings_Map::total_size () { return this->map_->total_size (); } size_t -TAO_Persistent_Bindings_Map::current_size (void) +TAO_Persistent_Bindings_Map::current_size () { return map_->current_size (); } @@ -260,7 +260,7 @@ TAO_Persistent_Naming_Context::init (size_t hash_table_size) return persistent_context_->open (hash_table_size, index_->allocator ()); } -TAO_Persistent_Naming_Context::~TAO_Persistent_Naming_Context (void) +TAO_Persistent_Naming_Context::~TAO_Persistent_Naming_Context () { // Perform appropriate cleanup based on the destruction level specified. @@ -349,7 +349,7 @@ TAO_Persistent_Naming_Context::make_new_context (PortableServer::POA_ptr poa, } CosNaming::NamingContext_ptr -TAO_Persistent_Naming_Context::new_context (void) +TAO_Persistent_Naming_Context::new_context () { // Check to make sure this object didn't have <destroy> method // invoked on it. diff --git a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context_Factory.cpp b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context_Factory.cpp index 994acadbd16..8d98362f74f 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context_Factory.cpp @@ -4,14 +4,14 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL /// Constructor. -TAO_Persistent_Naming_Context_Factory::TAO_Persistent_Naming_Context_Factory (void) +TAO_Persistent_Naming_Context_Factory::TAO_Persistent_Naming_Context_Factory () { } /// Destructor. Does not deallocate the hash map: if an instance of /// this class goes out of scope, its hash_map remains in persistent storage. -TAO_Persistent_Naming_Context_Factory::~TAO_Persistent_Naming_Context_Factory (void) +TAO_Persistent_Naming_Context_Factory::~TAO_Persistent_Naming_Context_Factory () { } diff --git a/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context.cpp b/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context.cpp index 10f8347bf49..9b113af9710 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context.cpp @@ -19,7 +19,7 @@ ACE_UINT32 TAO_Storable_Naming_Context::gcounter_; ACE_Auto_Ptr<TAO::Storable_Base> TAO_Storable_Naming_Context::gfl_; int TAO_Storable_Naming_Context::redundant_; -TAO_Storable_IntId::TAO_Storable_IntId (void) +TAO_Storable_IntId::TAO_Storable_IntId () : ref_ (CORBA::string_dup ("")), type_ (CosNaming::nobject) { @@ -38,7 +38,7 @@ TAO_Storable_IntId::TAO_Storable_IntId (const TAO_Storable_IntId &rhs) type_ = rhs.type_; } -TAO_Storable_IntId::~TAO_Storable_IntId (void) +TAO_Storable_IntId::~TAO_Storable_IntId () { } @@ -53,7 +53,7 @@ TAO_Storable_IntId::operator= (const TAO_Storable_IntId &rhs) ref_ = rhs.ref_; } -TAO_Storable_ExtId::TAO_Storable_ExtId (void) +TAO_Storable_ExtId::TAO_Storable_ExtId () : id_ (CORBA::string_dup ("")), kind_ (CORBA::string_dup ("")) { @@ -71,7 +71,7 @@ TAO_Storable_ExtId::TAO_Storable_ExtId (const TAO_Storable_ExtId &rhs) kind_ = rhs.kind_; } -TAO_Storable_ExtId::~TAO_Storable_ExtId (void) +TAO_Storable_ExtId::~TAO_Storable_ExtId () { } @@ -101,7 +101,7 @@ TAO_Storable_ExtId::operator!= (const TAO_Storable_ExtId &rhs) const } u_long -TAO_Storable_ExtId::hash (void) const +TAO_Storable_ExtId::hash () const { // @CJC I wager this could be optimized a bit better, but I'm not // sure how much it's called. At the very least, we could allocate @@ -114,13 +114,13 @@ TAO_Storable_ExtId::hash (void) const } const char * -TAO_Storable_ExtId::id (void) +TAO_Storable_ExtId::id () { return id_.in(); } const char * -TAO_Storable_ExtId::kind (void) +TAO_Storable_ExtId::kind () { return kind_.in(); } @@ -184,27 +184,27 @@ TAO_Storable_Bindings_Map::TAO_Storable_Bindings_Map (size_t hash_table_size, ACE_TRACE("TAO_Storable_Bindings_Map"); } -TAO_Storable_Bindings_Map::~TAO_Storable_Bindings_Map (void) +TAO_Storable_Bindings_Map::~TAO_Storable_Bindings_Map () { ACE_TRACE("~TAO_Storable_Bindings_Map"); } TAO_Storable_Bindings_Map::HASH_MAP & -TAO_Storable_Bindings_Map::map (void) +TAO_Storable_Bindings_Map::map () { ACE_TRACE("map"); return map_; } size_t -TAO_Storable_Bindings_Map::current_size (void) +TAO_Storable_Bindings_Map::current_size () { ACE_TRACE("current_size"); return map_.current_size (); } size_t -TAO_Storable_Bindings_Map::total_size (void) +TAO_Storable_Bindings_Map::total_size () { ACE_TRACE("total_size"); return map_.total_size (); @@ -305,7 +305,7 @@ File_Open_Lock_and_Check::~File_Open_Lock_and_Check () bool TAO_Storable_Naming_Context:: -File_Open_Lock_and_Check::object_obsolete (void) +File_Open_Lock_and_Check::object_obsolete () { // Query the underlying context if it is obsolete with respect @@ -315,7 +315,7 @@ File_Open_Lock_and_Check::object_obsolete (void) void TAO_Storable_Naming_Context:: -File_Open_Lock_and_Check::mark_object_current (void) +File_Open_Lock_and_Check::mark_object_current () { // Reset the stale flag context_->stale (false); @@ -402,7 +402,7 @@ TAO_Storable_Naming_Context::TAO_Storable_Naming_Context ( ACE_TRACE("TAO_Storable_Naming_Context"); } -TAO_Storable_Naming_Context::~TAO_Storable_Naming_Context (void) +TAO_Storable_Naming_Context::~TAO_Storable_Naming_Context () { ACE_TRACE("~TAO_Storable_Naming_Context"); @@ -430,7 +430,7 @@ TAO_Storable_Naming_Context::~TAO_Storable_Naming_Context (void) } void -TAO_Storable_Naming_Context::context_written (void) +TAO_Storable_Naming_Context::context_written () { // No-op. Overridden by derived class. } @@ -445,7 +445,7 @@ TAO_Storable_Naming_Context::is_obsolete (time_t stored_time) } void -TAO_Storable_Naming_Context::verify_not_destroyed (void) +TAO_Storable_Naming_Context::verify_not_destroyed () { File_Open_Lock_and_Check flck (this, SFG::ACCESSOR, false); if (this->destroyed_) @@ -539,7 +539,7 @@ TAO_Storable_Naming_Context::make_new_context ( } CosNaming::NamingContext_ptr -TAO_Storable_Naming_Context::new_context (void) +TAO_Storable_Naming_Context::new_context () { ACE_TRACE ("new_context"); @@ -836,7 +836,7 @@ TAO_Storable_Naming_Context::bind (const CosNaming::Name& n, } void -TAO_Storable_Naming_Context::destroy (void) +TAO_Storable_Naming_Context::destroy () { ACE_TRACE("TAO_Storable_Naming_Context::destroy"); ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX, diff --git a/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context_Factory.cpp b/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context_Factory.cpp index e86e2dc1ac3..573f1dc6676 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context_Factory.cpp @@ -14,7 +14,7 @@ TAO_Storable_Naming_Context_Factory::TAO_Storable_Naming_Context_Factory ( /// Destructor. Does not deallocate the hash map: if an instance of /// this class goes out of scope, its hash_map remains in persistent storage. -TAO_Storable_Naming_Context_Factory::~TAO_Storable_Naming_Context_Factory (void) +TAO_Storable_Naming_Context_Factory::~TAO_Storable_Naming_Context_Factory () { } diff --git a/TAO/orbsvcs/orbsvcs/Naming/Transient_Naming_Context.cpp b/TAO/orbsvcs/orbsvcs/Naming/Transient_Naming_Context.cpp index 0e56e61a49b..0836bd43139 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Transient_Naming_Context.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/Transient_Naming_Context.cpp @@ -65,24 +65,24 @@ TAO_Transient_Bindings_Map::TAO_Transient_Bindings_Map (size_t hash_table_size) { } -TAO_Transient_Bindings_Map::~TAO_Transient_Bindings_Map (void) +TAO_Transient_Bindings_Map::~TAO_Transient_Bindings_Map () { } TAO_Transient_Bindings_Map::HASH_MAP & -TAO_Transient_Bindings_Map::map (void) +TAO_Transient_Bindings_Map::map () { return map_; } size_t -TAO_Transient_Bindings_Map::current_size (void) +TAO_Transient_Bindings_Map::current_size () { return map_.current_size (); } size_t -TAO_Transient_Bindings_Map::total_size (void) +TAO_Transient_Bindings_Map::total_size () { return map_.total_size (); } @@ -130,7 +130,7 @@ TAO_Transient_Naming_Context::TAO_Transient_Naming_Context (PortableServer::POA_ context_ = transient_context_; } -TAO_Transient_Naming_Context::~TAO_Transient_Naming_Context (void) +TAO_Transient_Naming_Context::~TAO_Transient_Naming_Context () { } @@ -181,7 +181,7 @@ TAO_Transient_Naming_Context::make_new_context (PortableServer::POA_ptr poa, } CosNaming::NamingContext_ptr -TAO_Transient_Naming_Context::new_context (void) +TAO_Transient_Naming_Context::new_context () { // Generate a POA id for the new context. char poa_id[BUFSIZ]; diff --git a/TAO/orbsvcs/orbsvcs/Notify/Admin.cpp b/TAO/orbsvcs/orbsvcs/Notify/Admin.cpp index 3dc8a3af5fe..0ad5f026dc3 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Admin.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Admin.cpp @@ -99,7 +99,7 @@ TAO_Notify_Admin::subscribed_types (TAO_Notify_EventTypeSeq& subscribed_types) } int -TAO_Notify_Admin::shutdown (void) +TAO_Notify_Admin::shutdown () { if (TAO_Notify_Object::shutdown () == 1) return 1; @@ -209,7 +209,7 @@ TAO_Notify_Admin::load_child (const ACE_CString &type, } void -TAO_Notify_Admin::reconnect (void) +TAO_Notify_Admin::reconnect () { TAO_Notify::Reconnect_Worker<TAO_Notify_Proxy> wrk; this->proxy_container().collection()->for_each(&wrk); diff --git a/TAO/orbsvcs/orbsvcs/Notify/AdminProperties.cpp b/TAO/orbsvcs/orbsvcs/Notify/AdminProperties.cpp index 542749dcc13..9580d6f82e2 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/AdminProperties.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/AdminProperties.cpp @@ -8,7 +8,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_AdminProperties::TAO_Notify_AdminProperties (void) +TAO_Notify_AdminProperties::TAO_Notify_AdminProperties () : max_global_queue_length_ (CosNotification::MaxQueueLength, 0) , max_consumers_ (CosNotification::MaxConsumers, 0) , max_suppliers_ (CosNotification::MaxSuppliers, 0) @@ -72,7 +72,7 @@ TAO_Notify_AdminProperties::init () } CORBA::Boolean -TAO_Notify_AdminProperties::queue_full (void) +TAO_Notify_AdminProperties::queue_full () { ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->global_queue_lock_, 1); diff --git a/TAO/orbsvcs/orbsvcs/Notify/Any/AnyEvent.cpp b/TAO/orbsvcs/orbsvcs/Notify/Any/AnyEvent.cpp index 28871268029..598d4616b86 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Any/AnyEvent.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Any/AnyEvent.cpp @@ -23,7 +23,7 @@ TAO_Notify_AnyEvent_No_Copy::~TAO_Notify_AnyEvent_No_Copy () } const TAO_Notify_EventType& -TAO_Notify_AnyEvent_No_Copy::type (void) const +TAO_Notify_AnyEvent_No_Copy::type () const { return this->event_type_; } @@ -108,7 +108,7 @@ TAO_Notify_AnyEvent_No_Copy::unmarshal (TAO_InputCDR & cdr) } TAO_Notify_Event * -TAO_Notify_AnyEvent_No_Copy::copy (void) const +TAO_Notify_AnyEvent_No_Copy::copy () const { TAO_Notify_Event * new_event; ACE_NEW_THROW_EX (new_event, diff --git a/TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.cpp b/TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.cpp index 7f7780af34e..31fb4f2be48 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.cpp @@ -9,7 +9,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_CosEC_ProxyPushConsumer::TAO_Notify_CosEC_ProxyPushConsumer (void) +TAO_Notify_CosEC_ProxyPushConsumer::TAO_Notify_CosEC_ProxyPushConsumer () { } @@ -18,7 +18,7 @@ TAO_Notify_CosEC_ProxyPushConsumer::~TAO_Notify_CosEC_ProxyPushConsumer () } void -TAO_Notify_CosEC_ProxyPushConsumer::release (void) +TAO_Notify_CosEC_ProxyPushConsumer::release () { delete this; //@@ inform factory @@ -59,14 +59,14 @@ TAO_Notify_CosEC_ProxyPushConsumer::connect_push_supplier (CosEventComm::PushSup } void -TAO_Notify_CosEC_ProxyPushConsumer::disconnect_push_consumer (void) +TAO_Notify_CosEC_ProxyPushConsumer::disconnect_push_consumer () { TAO_Notify_CosEC_ProxyPushConsumer::Ptr guard( this ); this->destroy (); } const char * -TAO_Notify_CosEC_ProxyPushConsumer::get_proxy_type_name (void) const +TAO_Notify_CosEC_ProxyPushConsumer::get_proxy_type_name () const { return "ec_proxy_push_consumer"; } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.cpp b/TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.cpp index d911c4b2b2d..31456ab5d13 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.cpp @@ -5,7 +5,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_CosEC_ProxyPushSupplier::TAO_Notify_CosEC_ProxyPushSupplier (void) +TAO_Notify_CosEC_ProxyPushSupplier::TAO_Notify_CosEC_ProxyPushSupplier () { } @@ -14,7 +14,7 @@ TAO_Notify_CosEC_ProxyPushSupplier::~TAO_Notify_CosEC_ProxyPushSupplier () } void -TAO_Notify_CosEC_ProxyPushSupplier::release (void) +TAO_Notify_CosEC_ProxyPushSupplier::release () { delete this; @@ -36,14 +36,14 @@ TAO_Notify_CosEC_ProxyPushSupplier::connect_push_consumer (CosEventComm::PushCon } void -TAO_Notify_CosEC_ProxyPushSupplier::disconnect_push_supplier (void) +TAO_Notify_CosEC_ProxyPushSupplier::disconnect_push_supplier () { TAO_Notify_CosEC_ProxyPushSupplier::Ptr guard( this ); this->destroy (); } const char * -TAO_Notify_CosEC_ProxyPushSupplier::get_proxy_type_name (void) const +TAO_Notify_CosEC_ProxyPushSupplier::get_proxy_type_name () const { return "ec_proxy_push_supplier"; } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.cpp b/TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.cpp index e0ff8ad2b3f..613c87a9f18 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.cpp @@ -8,7 +8,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_ProxyPushConsumer::TAO_Notify_ProxyPushConsumer (void) +TAO_Notify_ProxyPushConsumer::TAO_Notify_ProxyPushConsumer () { } @@ -17,14 +17,14 @@ TAO_Notify_ProxyPushConsumer::~TAO_Notify_ProxyPushConsumer () } void -TAO_Notify_ProxyPushConsumer::release (void) +TAO_Notify_ProxyPushConsumer::release () { delete this; //@@ inform factory } CosNotifyChannelAdmin::ProxyType -TAO_Notify_ProxyPushConsumer::MyType (void) +TAO_Notify_ProxyPushConsumer::MyType () { return CosNotifyChannelAdmin::PUSH_ANY; } @@ -61,7 +61,7 @@ TAO_Notify_ProxyPushConsumer::connect_any_push_supplier (CosEventComm::PushSuppl this->self_change (); } -void TAO_Notify_ProxyPushConsumer::disconnect_push_consumer (void) +void TAO_Notify_ProxyPushConsumer::disconnect_push_consumer () { TAO_Notify_ProxyPushConsumer::Ptr guard( this ); this->destroy (); @@ -69,7 +69,7 @@ void TAO_Notify_ProxyPushConsumer::disconnect_push_consumer (void) } const char * -TAO_Notify_ProxyPushConsumer::get_proxy_type_name (void) const +TAO_Notify_ProxyPushConsumer::get_proxy_type_name () const { return "proxy_push_consumer"; } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.cpp b/TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.cpp index f30948eae05..a20b22359f3 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.cpp @@ -6,7 +6,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_ProxyPushSupplier::TAO_Notify_ProxyPushSupplier (void) +TAO_Notify_ProxyPushSupplier::TAO_Notify_ProxyPushSupplier () { } @@ -15,7 +15,7 @@ TAO_Notify_ProxyPushSupplier::~TAO_Notify_ProxyPushSupplier () } void -TAO_Notify_ProxyPushSupplier::release (void) +TAO_Notify_ProxyPushSupplier::release () { delete this; //@@ inform factory @@ -37,7 +37,7 @@ TAO_Notify_ProxyPushSupplier::connect_any_push_consumer (CosEventComm::PushConsu } void -TAO_Notify_ProxyPushSupplier::disconnect_push_supplier (void) +TAO_Notify_ProxyPushSupplier::disconnect_push_supplier () { TAO_Notify_ProxyPushSupplier::Ptr guard( this ); this->destroy (); @@ -45,13 +45,13 @@ TAO_Notify_ProxyPushSupplier::disconnect_push_supplier (void) } CosNotifyChannelAdmin::ProxyType -TAO_Notify_ProxyPushSupplier::MyType (void) +TAO_Notify_ProxyPushSupplier::MyType () { return CosNotifyChannelAdmin::PUSH_ANY; } const char * -TAO_Notify_ProxyPushSupplier::get_proxy_type_name (void) const +TAO_Notify_ProxyPushSupplier::get_proxy_type_name () const { return "proxy_push_supplier"; } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Any/PushConsumer.cpp b/TAO/orbsvcs/orbsvcs/Notify/Any/PushConsumer.cpp index d130e72d1e3..2f144d30e1e 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Any/PushConsumer.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Any/PushConsumer.cpp @@ -88,7 +88,7 @@ TAO_Notify_PushConsumer::init (CosEventComm::PushConsumer_ptr push_consumer) } void -TAO_Notify_PushConsumer::release (void) +TAO_Notify_PushConsumer::release () { delete this; //@@ inform factory @@ -129,7 +129,7 @@ TAO_Notify_PushConsumer::push (const CosNotification::EventBatch& event) } ACE_CString -TAO_Notify_PushConsumer::get_ior (void) const +TAO_Notify_PushConsumer::get_ior () const { ACE_CString result; CORBA::ORB_var orb = TAO_Notify_PROPERTIES::instance()->orb(); @@ -156,7 +156,7 @@ TAO_Notify_PushConsumer::reconnect_from_consumer (TAO_Notify_Consumer* old_consu } CORBA::Object_ptr -TAO_Notify_PushConsumer::get_consumer (void) +TAO_Notify_PushConsumer::get_consumer () { return CosEventComm::PushConsumer::_duplicate (this->push_consumer_.in ()); } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Any/PushSupplier.cpp b/TAO/orbsvcs/orbsvcs/Notify/Any/PushSupplier.cpp index 69db801841f..b2edf829cb4 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Any/PushSupplier.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Any/PushSupplier.cpp @@ -30,14 +30,14 @@ TAO_Notify_PushSupplier::init (CosEventComm::PushSupplier_ptr push_supplier) } void -TAO_Notify_PushSupplier::release (void) +TAO_Notify_PushSupplier::release () { delete this; //@@ inform factory } ACE_CString -TAO_Notify_PushSupplier::get_ior (void) const +TAO_Notify_PushSupplier::get_ior () const { ACE_CString result; CORBA::ORB_var orb = TAO_Notify_PROPERTIES::instance()->orb(); @@ -54,7 +54,7 @@ TAO_Notify_PushSupplier::get_ior (void) const } CORBA::Object_ptr -TAO_Notify_PushSupplier::get_supplier (void) +TAO_Notify_PushSupplier::get_supplier () { return CosEventComm::PushSupplier::_duplicate (this->push_supplier_.in ()); } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Buffering_Strategy.cpp b/TAO/orbsvcs/orbsvcs/Notify/Buffering_Strategy.cpp index 130e2fe785c..8721836d7e6 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Buffering_Strategy.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Buffering_Strategy.cpp @@ -50,7 +50,7 @@ TAO_Notify_Buffering_Strategy::update_qos_properties } void -TAO_Notify_Buffering_Strategy::shutdown (void) +TAO_Notify_Buffering_Strategy::shutdown () { ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->global_queue_lock_); @@ -67,7 +67,7 @@ TAO_Notify_Buffering_Strategy::shutdown (void) } ACE_Time_Value -TAO_Notify_Buffering_Strategy::oldest_event (void) +TAO_Notify_Buffering_Strategy::oldest_event () { ACE_Time_Value tv (ACE_Time_Value::max_time); ACE_Message_Block* mb = 0; @@ -91,13 +91,13 @@ TAO_Notify_Buffering_Strategy::oldest_event (void) } -TAO_Notify_Buffering_Strategy::Tracker::Tracker (void) +TAO_Notify_Buffering_Strategy::Tracker::Tracker () : child_ (0) { } -TAO_Notify_Buffering_Strategy::Tracker::~Tracker (void) +TAO_Notify_Buffering_Strategy::Tracker::~Tracker () { } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Builder.cpp b/TAO/orbsvcs/orbsvcs/Notify/Builder.cpp index d789e146bbb..4ba1ea9207d 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Builder.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Builder.cpp @@ -151,7 +151,7 @@ typedef TAO_Notify_Proxy_Builder_T<TAO_Notify_CosEC_ProxyPushSupplier , TAO_Notify_ConsumerAdmin> TAO_Notify_CosEC_ProxyPushSupplier_Builder; -TAO_Notify_Builder::TAO_Notify_Builder (void) +TAO_Notify_Builder::TAO_Notify_Builder () { // Init the static members. TAO_Notify_AnyEvent::event_type_ = TAO_Notify_EventType::special (); diff --git a/TAO/orbsvcs/orbsvcs/Notify/Consumer.cpp b/TAO/orbsvcs/orbsvcs/Notify/Consumer.cpp index c3bf761f86a..ae7f7f43f71 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Consumer.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Consumer.cpp @@ -58,19 +58,19 @@ TAO_Notify_Consumer::~TAO_Notify_Consumer () } CORBA::ULong -TAO_Notify_Consumer::_incr_refcnt (void) +TAO_Notify_Consumer::_incr_refcnt () { return this->add_reference(); } CORBA::ULong -TAO_Notify_Consumer::_decr_refcnt (void) +TAO_Notify_Consumer::_decr_refcnt () { return this->remove_reference(); } TAO_Notify_Proxy* -TAO_Notify_Consumer::proxy (void) +TAO_Notify_Consumer::proxy () { return this->proxy_supplier (); } @@ -82,7 +82,7 @@ TAO_Notify_Consumer::qos_changed (const TAO_Notify_QoSProperties& qos_properties } void -TAO_Notify_Consumer::resume (void) +TAO_Notify_Consumer::resume () { this->is_suspended_ = 0; @@ -468,7 +468,7 @@ TAO_Notify_Consumer::dispatch_batch (const CosNotification::EventBatch& batch) } void -TAO_Notify_Consumer::dispatch_pending (void) +TAO_Notify_Consumer::dispatch_pending () { if (DEBUG_LEVEL > 5) ORBSVCS_DEBUG ((LM_DEBUG, @@ -642,7 +642,7 @@ TAO_Notify_Consumer::schedule_timer (bool is_error) } void -TAO_Notify_Consumer::cancel_timer (void) +TAO_Notify_Consumer::cancel_timer () { if (this->timer_.isSet() && this->timer_id_ != -1) { @@ -677,7 +677,7 @@ TAO_Notify_Consumer::handle_timeout (const ACE_Time_Value&, const void*) } void -TAO_Notify_Consumer::shutdown (void) +TAO_Notify_Consumer::shutdown () { this->suspend(); if (this->timer_.isSet ()) @@ -701,13 +701,13 @@ TAO_Notify_Consumer::dispatch_updates_i (const CosNotification::EventTypeSeq& ad } TAO_SYNCH_MUTEX* -TAO_Notify_Consumer::proxy_lock (void) +TAO_Notify_Consumer::proxy_lock () { return &this->proxy_->lock_; } TAO_Notify_ProxySupplier* -TAO_Notify_Consumer::proxy_supplier (void) +TAO_Notify_Consumer::proxy_supplier () { return this->proxy_; } diff --git a/TAO/orbsvcs/orbsvcs/Notify/ConsumerAdmin.cpp b/TAO/orbsvcs/orbsvcs/Notify/ConsumerAdmin.cpp index 28e42513918..56b93b5206f 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/ConsumerAdmin.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/ConsumerAdmin.cpp @@ -31,7 +31,7 @@ TAO_Notify_ProxySupplier_Find_Worker; typedef TAO_Notify_Seq_Worker_T<TAO_Notify_Proxy> TAO_Notify_Proxy_Seq_Worker; -TAO_Notify_ConsumerAdmin::TAO_Notify_ConsumerAdmin (void) +TAO_Notify_ConsumerAdmin::TAO_Notify_ConsumerAdmin () : TAO_Notify_Admin () { } @@ -60,26 +60,26 @@ TAO_Notify_ConsumerAdmin::init (TAO_Notify_EventChannel *ec) } void -TAO_Notify_ConsumerAdmin::_add_ref (void) +TAO_Notify_ConsumerAdmin::_add_ref () { this->_incr_refcnt (); } void -TAO_Notify_ConsumerAdmin::_remove_ref (void) +TAO_Notify_ConsumerAdmin::_remove_ref () { this->_decr_refcnt (); } void -TAO_Notify_ConsumerAdmin::release (void) +TAO_Notify_ConsumerAdmin::release () { delete this; //@@ inform factory } void -TAO_Notify_ConsumerAdmin::destroy (void) +TAO_Notify_ConsumerAdmin::destroy () { this->shutdown (); this->ec_->remove (this); @@ -179,7 +179,7 @@ TAO_Notify_ConsumerAdmin::obtain_notification_push_supplier_with_qos (CosNotifyC } CosEventChannelAdmin::ProxyPushSupplier_ptr -TAO_Notify_ConsumerAdmin::obtain_push_supplier (void) +TAO_Notify_ConsumerAdmin::obtain_push_supplier () { CosEventChannelAdmin::ProxyPushSupplier_var proxy = TAO_Notify_PROPERTIES::instance()->builder()->build_proxy (this); @@ -188,25 +188,25 @@ TAO_Notify_ConsumerAdmin::obtain_push_supplier (void) } CosNotifyChannelAdmin::AdminID -TAO_Notify_ConsumerAdmin::MyID (void) +TAO_Notify_ConsumerAdmin::MyID () { return this->id (); } CosNotifyChannelAdmin::EventChannel_ptr -TAO_Notify_ConsumerAdmin::MyChannel (void) +TAO_Notify_ConsumerAdmin::MyChannel () { return this->ec_->_this (); } ::CosNotifyChannelAdmin::InterFilterGroupOperator -TAO_Notify_ConsumerAdmin::MyOperator (void) +TAO_Notify_ConsumerAdmin::MyOperator () { return this->filter_operator_; } CosNotifyChannelAdmin::ProxyIDSeq* -TAO_Notify_ConsumerAdmin::push_suppliers (void) +TAO_Notify_ConsumerAdmin::push_suppliers () { TAO_Notify_Proxy_Seq_Worker seq_worker; @@ -228,7 +228,7 @@ void TAO_Notify_ConsumerAdmin::set_qos (const CosNotification::QoSProperties & q CosNotification::QoSProperties* -TAO_Notify_ConsumerAdmin::get_qos (void) +TAO_Notify_ConsumerAdmin::get_qos () { return this->TAO_Notify_Object::get_qos (); } @@ -275,13 +275,13 @@ TAO_Notify_ConsumerAdmin::get_filter (CosNotifyFilter::FilterID filter) } ::CosNotifyFilter::FilterIDSeq* -TAO_Notify_ConsumerAdmin::get_all_filters (void) +TAO_Notify_ConsumerAdmin::get_all_filters () { return this->filter_admin_.get_all_filters (); } void -TAO_Notify_ConsumerAdmin::remove_all_filters (void) +TAO_Notify_ConsumerAdmin::remove_all_filters () { this->filter_admin_.remove_all_filters (); } @@ -289,7 +289,7 @@ TAO_Notify_ConsumerAdmin::remove_all_filters (void) /************ UNIMPLMENTED METHODS *************************/ CosNotifyFilter::MappingFilter_ptr -TAO_Notify_ConsumerAdmin::priority_filter (void) +TAO_Notify_ConsumerAdmin::priority_filter () { throw CORBA::NO_IMPLEMENT (); } @@ -302,7 +302,7 @@ TAO_Notify_ConsumerAdmin::priority_filter (CosNotifyFilter::MappingFilter_ptr /* } CosNotifyFilter::MappingFilter_ptr -TAO_Notify_ConsumerAdmin::lifetime_filter (void) +TAO_Notify_ConsumerAdmin::lifetime_filter () { throw CORBA::NO_IMPLEMENT (); @@ -315,7 +315,7 @@ TAO_Notify_ConsumerAdmin::lifetime_filter (CosNotifyFilter::MappingFilter_ptr /* } ::CosNotifyChannelAdmin::ProxyIDSeq* -TAO_Notify_ConsumerAdmin::pull_suppliers (void) +TAO_Notify_ConsumerAdmin::pull_suppliers () { throw CORBA::NO_IMPLEMENT (); } @@ -336,7 +336,7 @@ TAO_Notify_ConsumerAdmin::validate_qos (const CosNotification::QoSProperties & / } CosEventChannelAdmin::ProxyPullSupplier_ptr -TAO_Notify_ConsumerAdmin::obtain_pull_supplier (void) +TAO_Notify_ConsumerAdmin::obtain_pull_supplier () { throw CORBA::NO_IMPLEMENT (); } diff --git a/TAO/orbsvcs/orbsvcs/Notify/CosNotify_Initializer.cpp b/TAO/orbsvcs/orbsvcs/Notify/CosNotify_Initializer.cpp index 1b1abd51aa4..9b1f56e9c96 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/CosNotify_Initializer.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/CosNotify_Initializer.cpp @@ -3,7 +3,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_CosNotify_Initializer::TAO_Notify_CosNotify_Initializer (void) +TAO_Notify_CosNotify_Initializer::TAO_Notify_CosNotify_Initializer () { ACE_Service_Config::static_svcs ()->insert (&ace_svc_desc_TAO_CosNotify_Service); ACE_Service_Config::static_svcs ()->insert (&ace_svc_desc_TAO_Notify_Default_EMO_Factory_OLD); diff --git a/TAO/orbsvcs/orbsvcs/Notify/CosNotify_Service.cpp b/TAO/orbsvcs/orbsvcs/Notify/CosNotify_Service.cpp index 6f79de052cf..f5e9f05863e 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/CosNotify_Service.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/CosNotify_Service.cpp @@ -13,11 +13,11 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_CosNotify_Service::TAO_CosNotify_Service (void) +TAO_CosNotify_Service::TAO_CosNotify_Service () { } -TAO_CosNotify_Service::~TAO_CosNotify_Service (void) +TAO_CosNotify_Service::~TAO_CosNotify_Service () { } @@ -292,7 +292,7 @@ TAO_CosNotify_Service::set_threads (CosNotification::QoSProperties &qos, int thr } int -TAO_CosNotify_Service::fini (void) +TAO_CosNotify_Service::fini () { if (TAO_Notify_PROPERTIES::instance()->separate_dispatching_orb()) { @@ -449,7 +449,7 @@ TAO_CosNotify_Service::init_i2 (CORBA::ORB_ptr orb, CORBA::ORB_ptr dispatching_o } TAO_Notify_Factory* -TAO_CosNotify_Service::create_factory (void) +TAO_CosNotify_Service::create_factory () { TAO_Notify_Factory* factory = ACE_Dynamic_Service<TAO_Notify_Factory>::instance ("TAO_Notify_Factory"); if (factory == 0) @@ -462,7 +462,7 @@ TAO_CosNotify_Service::create_factory (void) } TAO_Notify_Builder* -TAO_CosNotify_Service::create_builder (void) +TAO_CosNotify_Service::create_builder () { TAO_Notify_Builder* builder = 0; ACE_NEW_THROW_EX (builder, @@ -486,14 +486,14 @@ TAO_CosNotify_Service::remove (TAO_Notify_EventChannelFactory* /*ecf*/) } TAO_Notify_Factory& -TAO_CosNotify_Service::factory (void) +TAO_CosNotify_Service::factory () { ACE_ASSERT( this->factory_.get() != 0 ); return *this->factory_; } TAO_Notify_Builder& -TAO_CosNotify_Service::builder (void) +TAO_CosNotify_Service::builder () { ACE_ASSERT( this->builder_.get() != 0 ); return *this->builder_; diff --git a/TAO/orbsvcs/orbsvcs/Notify/Default_Factory.cpp b/TAO/orbsvcs/orbsvcs/Notify/Default_Factory.cpp index a17a30f6aae..e594cef4ae0 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Default_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Default_Factory.cpp @@ -37,7 +37,7 @@ public: } }; -TAO_Notify_Default_Factory::TAO_Notify_Default_Factory (void) +TAO_Notify_Default_Factory::TAO_Notify_Default_Factory () { } diff --git a/TAO/orbsvcs/orbsvcs/Notify/ETCL_Filter.cpp b/TAO/orbsvcs/orbsvcs/Notify/ETCL_Filter.cpp index b9a8c147a14..63a375d9120 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/ETCL_Filter.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/ETCL_Filter.cpp @@ -11,7 +11,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_Constraint_Expr::TAO_Notify_Constraint_Expr (void) +TAO_Notify_Constraint_Expr::TAO_Notify_Constraint_Expr () { } @@ -86,7 +86,7 @@ TAO_Notify_Constraint_Expr::load_child ( void -TAO_Notify_Constraint_Expr::release (void) +TAO_Notify_Constraint_Expr::release () { delete this; //@@ inform factory @@ -124,7 +124,7 @@ TAO_Notify_ETCL_Filter::~TAO_Notify_ETCL_Filter () } char* -TAO_Notify_ETCL_Filter::constraint_grammar (void) +TAO_Notify_ETCL_Filter::constraint_grammar () { return CORBA::string_dup (this->grammar_.c_str ()); } @@ -147,7 +147,7 @@ TAO_Notify_ETCL_Filter::add_constraint_i (CosNotifyFilter::ConstraintID cnstr_id ACE_NEW_THROW_EX (notify_constr_expr, TAO_Notify_Constraint_Expr (), CORBA::NO_MEMORY ()); - auto_ptr <TAO_Notify_Constraint_Expr> auto_expr (notify_constr_expr); + std::unique_ptr <TAO_Notify_Constraint_Expr> auto_expr (notify_constr_expr); if (TAO_debug_level > 1) ORBSVCS_DEBUG ((LM_DEBUG, @@ -172,7 +172,7 @@ TAO_Notify_ETCL_Filter::add_constraint_i ACE_NEW_THROW_EX (notify_constr_expr, TAO_Notify_Constraint_Expr (), CORBA::NO_MEMORY ()); - auto_ptr <TAO_Notify_Constraint_Expr> auto_expr (notify_constr_expr); + std::unique_ptr <TAO_Notify_Constraint_Expr> auto_expr (notify_constr_expr); CosNotifyFilter::ConstraintExp const & expr = constraint.constraint_expression; @@ -364,7 +364,7 @@ TAO_Notify_ETCL_Filter::get_constraints ( } CosNotifyFilter::ConstraintInfoSeq * -TAO_Notify_ETCL_Filter::get_all_constraints (void) +TAO_Notify_ETCL_Filter::get_all_constraints () { ACE_GUARD_THROW_EX (TAO_SYNCH_MUTEX, ace_mon, this->lock_, CORBA::INTERNAL ()); @@ -404,7 +404,7 @@ TAO_Notify_ETCL_Filter::get_all_constraints (void) } void -TAO_Notify_ETCL_Filter::remove_all_constraints (void) +TAO_Notify_ETCL_Filter::remove_all_constraints () { ACE_GUARD_THROW_EX (TAO_SYNCH_MUTEX, ace_mon, this->lock_, CORBA::INTERNAL ()); @@ -413,7 +413,7 @@ TAO_Notify_ETCL_Filter::remove_all_constraints (void) } void -TAO_Notify_ETCL_Filter::remove_all_constraints_i (void) +TAO_Notify_ETCL_Filter::remove_all_constraints_i () { CONSTRAINT_EXPR_LIST::ITERATOR iter (this->constraint_expr_list_); CONSTRAINT_EXPR_LIST::ENTRY *entry; @@ -431,7 +431,7 @@ TAO_Notify_ETCL_Filter::remove_all_constraints_i (void) } void -TAO_Notify_ETCL_Filter::destroy (void) +TAO_Notify_ETCL_Filter::destroy () { ACE_GUARD_THROW_EX (TAO_SYNCH_MUTEX, ace_mon, this->lock_, CORBA::INTERNAL ()); @@ -507,7 +507,7 @@ TAO_Notify_ETCL_Filter::detach_callback ( } CosNotifyFilter::CallbackIDSeq * -TAO_Notify_ETCL_Filter::get_callbacks (void) +TAO_Notify_ETCL_Filter::get_callbacks () { throw CORBA::NO_IMPLEMENT (); } @@ -548,7 +548,7 @@ TAO_Notify_ETCL_Filter::save_persistent (TAO_Notify::Topology_Saver& saver) void -TAO_Notify_ETCL_Filter::release (void) +TAO_Notify_ETCL_Filter::release () { delete this; //@@ inform factory diff --git a/TAO/orbsvcs/orbsvcs/Notify/ETCL_FilterFactory.cpp b/TAO/orbsvcs/orbsvcs/Notify/ETCL_FilterFactory.cpp index 83223cc25c0..a5daa3611b9 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/ETCL_FilterFactory.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/ETCL_FilterFactory.cpp @@ -10,7 +10,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_ETCL_FilterFactory::TAO_Notify_ETCL_FilterFactory (void) : +TAO_Notify_ETCL_FilterFactory::TAO_Notify_ETCL_FilterFactory () : filter_poa_ (PortableServer::POA::_nil ()) { } @@ -59,7 +59,7 @@ TAO_Notify_ETCL_FilterFactory::create (PortableServer::POA_ptr filter_poa) } void -TAO_Notify_ETCL_FilterFactory::destroy (void) +TAO_Notify_ETCL_FilterFactory::destroy () { if (CORBA::is_nil(this->filter_poa_.in ())) return; @@ -241,7 +241,7 @@ TAO_Notify_ETCL_FilterFactory::load_child (const ACE_CString &type, void -TAO_Notify_ETCL_FilterFactory::release (void) +TAO_Notify_ETCL_FilterFactory::release () { delete this; //@@ inform factory diff --git a/TAO/orbsvcs/orbsvcs/Notify/Event.cpp b/TAO/orbsvcs/orbsvcs/Notify/Event.cpp index 0b75982cd13..d3f7ff5c047 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Event.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Event.cpp @@ -14,7 +14,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_Event::TAO_Notify_Event (void) +TAO_Notify_Event::TAO_Notify_Event () : priority_ (CosNotification::Priority, CosNotification::DefaultPriority) , timeout_ (CosNotification::Timeout) , reliable_ (CosNotification::EventReliability, true) @@ -32,7 +32,7 @@ TAO_Notify_Event::~TAO_Notify_Event () // ORBSVCS_DEBUG ((LM_DEBUG,"event:%x destroyed\n", this )); } void -TAO_Notify_Event::release (void) +TAO_Notify_Event::release () { delete this; } diff --git a/TAO/orbsvcs/orbsvcs/Notify/EventChannel.cpp b/TAO/orbsvcs/orbsvcs/Notify/EventChannel.cpp index c0e30c6fe10..35445ee3fcf 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/EventChannel.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/EventChannel.cpp @@ -40,7 +40,7 @@ TAO_Notify_SupplierAdmin_Find_Worker; typedef TAO_Notify_Seq_Worker_T<TAO_Notify_ConsumerAdmin> TAO_Notify_ConsumerAdmin_Seq_Worker; typedef TAO_Notify_Seq_Worker_T<TAO_Notify_SupplierAdmin> TAO_Notify_SupplierAdmin_Seq_Worker; -TAO_Notify_EventChannel::TAO_Notify_EventChannel (void) +TAO_Notify_EventChannel::TAO_Notify_EventChannel () : ecf_ (0) , ca_container_ (0) , sa_container_ (0) @@ -179,19 +179,19 @@ TAO_Notify_EventChannel::init (TAO_Notify::Topology_Parent* parent) void -TAO_Notify_EventChannel::_add_ref (void) +TAO_Notify_EventChannel::_add_ref () { this->_incr_refcnt (); } void -TAO_Notify_EventChannel::_remove_ref (void) +TAO_Notify_EventChannel::_remove_ref () { this->_decr_refcnt (); } void -TAO_Notify_EventChannel::release (void) +TAO_Notify_EventChannel::release () { delete this; //@@ inform factory @@ -204,7 +204,7 @@ TAO_Notify_EventChannel::cleanup_proxy (CosNotifyChannelAdmin::ProxyID, } int -TAO_Notify_EventChannel::shutdown (void) +TAO_Notify_EventChannel::shutdown () { int sd_ret = TAO_Notify_Object::shutdown (); @@ -221,7 +221,7 @@ TAO_Notify_EventChannel::shutdown (void) } void -TAO_Notify_EventChannel::destroy (void) +TAO_Notify_EventChannel::destroy () { TAO_Notify_EventChannel::Ptr guard( this ); @@ -260,19 +260,19 @@ TAO_Notify_EventChannel::set_qos (const CosNotification::QoSProperties & qos) } CosNotification::QoSProperties* -TAO_Notify_EventChannel::get_qos (void) +TAO_Notify_EventChannel::get_qos () { return this->TAO_Notify_Object::get_qos (); } CosNotifyChannelAdmin::EventChannelFactory_ptr -TAO_Notify_EventChannel::MyFactory (void) +TAO_Notify_EventChannel::MyFactory () { return this->ecf_->_this (); } CosNotifyChannelAdmin::ConsumerAdmin_ptr -TAO_Notify_EventChannel::default_consumer_admin (void) +TAO_Notify_EventChannel::default_consumer_admin () { if (CORBA::is_nil (default_consumer_admin_.in ())) { @@ -299,7 +299,7 @@ TAO_Notify_EventChannel::default_consumer_admin (void) } CosNotifyChannelAdmin::SupplierAdmin_ptr -TAO_Notify_EventChannel::default_supplier_admin (void) +TAO_Notify_EventChannel::default_supplier_admin () { if (CORBA::is_nil (default_supplier_admin_.in ())) { @@ -324,7 +324,7 @@ TAO_Notify_EventChannel::default_supplier_admin (void) } ::CosNotifyFilter::FilterFactory_ptr -TAO_Notify_EventChannel::default_filter_factory (void) +TAO_Notify_EventChannel::default_filter_factory () { return CosNotifyFilter::FilterFactory::_duplicate (this->default_filter_factory_.in ()); } @@ -384,7 +384,7 @@ TAO_Notify_EventChannel::get_supplieradmin (CosNotifyChannelAdmin::AdminID id) } CosNotifyChannelAdmin::AdminIDSeq* -TAO_Notify_EventChannel::get_all_consumeradmins (void) +TAO_Notify_EventChannel::get_all_consumeradmins () { TAO_Notify_ConsumerAdmin_Seq_Worker seq_worker; @@ -392,7 +392,7 @@ TAO_Notify_EventChannel::get_all_consumeradmins (void) } CosNotifyChannelAdmin::AdminIDSeq* -TAO_Notify_EventChannel::get_all_supplieradmins (void) +TAO_Notify_EventChannel::get_all_supplieradmins () { TAO_Notify_SupplierAdmin_Seq_Worker seq_worker; @@ -406,7 +406,7 @@ TAO_Notify_EventChannel::set_admin (const CosNotification::AdminProperties & adm } CosNotification::AdminProperties* -TAO_Notify_EventChannel::get_admin (void) +TAO_Notify_EventChannel::get_admin () { CosNotification::AdminProperties_var properties; @@ -420,13 +420,13 @@ TAO_Notify_EventChannel::get_admin (void) } CosEventChannelAdmin::ConsumerAdmin_ptr -TAO_Notify_EventChannel::for_consumers (void) +TAO_Notify_EventChannel::for_consumers () { return this->default_consumer_admin(); } CosEventChannelAdmin::SupplierAdmin_ptr -TAO_Notify_EventChannel::for_suppliers (void) +TAO_Notify_EventChannel::for_suppliers () { return this->default_supplier_admin (); } @@ -592,7 +592,7 @@ TAO_Notify_EventChannel::find_proxy_supplier (TAO_Notify::IdVec & id_path, size_ void -TAO_Notify_EventChannel::reconnect (void) +TAO_Notify_EventChannel::reconnect () { TAO_Notify::Reconnect_Worker<TAO_Notify_ConsumerAdmin> ca_wrk; this->ca_container().collection()->for_each(&ca_wrk); diff --git a/TAO/orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp b/TAO/orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp index a51e3da7ba7..ad4ff082cd8 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp @@ -45,7 +45,7 @@ TAO_Notify_EventChannel_Find_Worker; typedef TAO_Notify_Seq_Worker_T<TAO_Notify_EventChannel> TAO_Notify_EventChannel_Seq_Worker; -TAO_Notify_EventChannelFactory::TAO_Notify_EventChannelFactory (void) +TAO_Notify_EventChannelFactory::TAO_Notify_EventChannelFactory () : topology_save_seq_ (0) , topology_factory_(0) , reconnect_registry_(*this) @@ -58,7 +58,7 @@ TAO_Notify_EventChannelFactory::~TAO_Notify_EventChannelFactory () } void -TAO_Notify_EventChannelFactory::destroy (void) +TAO_Notify_EventChannelFactory::destroy () { if (this->shutdown () == 1) return; @@ -128,19 +128,19 @@ TAO_Notify_EventChannelFactory::init (PortableServer::POA_ptr poa) } void -TAO_Notify_EventChannelFactory::_add_ref (void) +TAO_Notify_EventChannelFactory::_add_ref () { this->_incr_refcnt (); } void -TAO_Notify_EventChannelFactory::_remove_ref (void) +TAO_Notify_EventChannelFactory::_remove_ref () { this->_decr_refcnt (); } void -TAO_Notify_EventChannelFactory::release (void) +TAO_Notify_EventChannelFactory::release () { delete this; //@@ inform factory @@ -154,7 +154,7 @@ TAO_Notify_EventChannelFactory::remove (TAO_Notify_EventChannel* event_channel) } int -TAO_Notify_EventChannelFactory::shutdown (void) +TAO_Notify_EventChannelFactory::shutdown () { this->stop_validator(); @@ -194,7 +194,7 @@ TAO_Notify_EventChannelFactory::create_named_channel ( } CosNotifyChannelAdmin::ChannelIDSeq* -TAO_Notify_EventChannelFactory::get_all_channels (void) +TAO_Notify_EventChannelFactory::get_all_channels () { TAO_Notify_EventChannel_Seq_Worker seq_worker; @@ -222,13 +222,13 @@ TAO_Notify_EventChannelFactory::set_topology_factory(TAO_Notify::Topology_Factor } void -TAO_Notify_EventChannelFactory::load_topology (void) +TAO_Notify_EventChannelFactory::load_topology () { this->loading_topology_ = true; if (this->topology_factory_ != 0) { // create_loader will open and load the persistence file for validation - auto_ptr<TAO_Notify::Topology_Loader> tl(this->topology_factory_->create_loader()); + std::unique_ptr<TAO_Notify::Topology_Loader> tl(this->topology_factory_->create_loader()); if (tl.get () != 0) { tl->load (this); @@ -292,7 +292,7 @@ TAO_Notify_EventChannelFactory::save_persistent (TAO_Notify::Topology_Saver& sav } void -TAO_Notify_EventChannelFactory::load_event_persistence (void) +TAO_Notify_EventChannelFactory::load_event_persistence () { TAO_Notify::Event_Persistence_Strategy * strategy = ACE_Dynamic_Service <TAO_Notify::Event_Persistence_Strategy>::instance ("Event_Persistence"); @@ -334,7 +334,7 @@ TAO_Notify_EventChannelFactory::load_event_persistence (void) } bool -TAO_Notify_EventChannelFactory::change_to_parent (void) +TAO_Notify_EventChannelFactory::change_to_parent () { bool saving = false; if (! this->loading_topology_) @@ -351,7 +351,7 @@ TAO_Notify_EventChannelFactory::change_to_parent (void) ACE_GUARD_THROW_EX (TAO_SYNCH_MUTEX, ace_mon, this->topology_save_lock_, CORBA::INTERNAL ()); if (seq == this->topology_save_seq_) { - auto_ptr<TAO_Notify::Topology_Saver> saver(this->topology_factory_->create_saver()); + std::unique_ptr<TAO_Notify::Topology_Saver> saver(this->topology_factory_->create_saver()); if (saver.get() != 0) { this->save_persistent(*saver); @@ -396,7 +396,7 @@ TAO_Notify_EventChannelFactory::load_child (const ACE_CString& type, } void -TAO_Notify_EventChannelFactory::reconnect (void) +TAO_Notify_EventChannelFactory::reconnect () { // Reconnect all children first TAO_Notify::Reconnect_Worker<TAO_Notify_EventChannel> wrk; @@ -434,13 +434,13 @@ TAO_Notify_EventChannelFactory::unregister_callback ( } CORBA::Boolean -TAO_Notify_EventChannelFactory::is_alive (void) +TAO_Notify_EventChannelFactory::is_alive () { return CORBA::Boolean (1); } void -TAO_Notify_EventChannelFactory::save_topology (void) +TAO_Notify_EventChannelFactory::save_topology () { this->self_change (); } @@ -497,7 +497,7 @@ TAO_Notify_EventChannelFactory::find_proxy_supplier (TAO_Notify::IdVec & id_path } CosNotifyChannelAdmin::EventChannelFactory_ptr -TAO_Notify_EventChannelFactory::activate_self (void) +TAO_Notify_EventChannelFactory::activate_self () { CORBA::Object_var obj = this->activate (this); this->channel_factory_ diff --git a/TAO/orbsvcs/orbsvcs/Notify/EventType.cpp b/TAO/orbsvcs/orbsvcs/Notify/EventType.cpp index 7ee8a94b6b3..cb8d189001d 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/EventType.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/EventType.cpp @@ -13,12 +13,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Notify_EventType -TAO_Notify_EventType::special (void) +TAO_Notify_EventType::special () { return TAO_Notify_EventType ("*", "%ALL"); } -TAO_Notify_EventType::TAO_Notify_EventType (void) +TAO_Notify_EventType::TAO_Notify_EventType () { } @@ -55,7 +55,7 @@ TAO_Notify_EventType::~TAO_Notify_EventType () } void -TAO_Notify_EventType::recompute_hash (void) +TAO_Notify_EventType::recompute_hash () { // @@ Pradeep: this code is bound to crash someday if the strings // are too long.... See if the hash_pjw () function can be modified @@ -112,14 +112,14 @@ TAO_Notify_EventType::operator!=(const TAO_Notify_EventType& event_type) const } CORBA::Boolean -TAO_Notify_EventType::is_special (void) const +TAO_Notify_EventType::is_special () const { return (this->domain_is_wildcard (this->event_type_.domain_name) && this->type_is_wildcard (this->event_type_.type_name)); } void -TAO_Notify_EventType::dump (void) const +TAO_Notify_EventType::dump () const { ORBSVCS_DEBUG ((LM_DEBUG, "(%s,%s)", diff --git a/TAO/orbsvcs/orbsvcs/Notify/EventType.h b/TAO/orbsvcs/orbsvcs/Notify/EventType.h index b5a0f316f9f..ca5bed88301 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/EventType.h +++ b/TAO/orbsvcs/orbsvcs/Notify/EventType.h @@ -67,7 +67,7 @@ public: const CosNotification::EventType& native (void) const; /// Helper to print contents. - void dump (void) const; + void dump () const; /// Initialize from an NVPList, return false on failure bool init(const TAO_Notify::NVPList& attrs); diff --git a/TAO/orbsvcs/orbsvcs/Notify/EventTypeSeq.cpp b/TAO/orbsvcs/orbsvcs/Notify/EventTypeSeq.cpp index 906e103d2cd..cd98e86503a 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/EventTypeSeq.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/EventTypeSeq.cpp @@ -10,7 +10,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_EventTypeSeq::TAO_Notify_EventTypeSeq (void) +TAO_Notify_EventTypeSeq::TAO_Notify_EventTypeSeq () { } @@ -243,7 +243,7 @@ TAO_Notify_EventTypeSeq::intersection (const TAO_Notify_EventTypeSeq& rhs, const } void -TAO_Notify_EventTypeSeq::dump (void) const +TAO_Notify_EventTypeSeq::dump () const { TAO_Notify_EventTypeSeq::CONST_ITERATOR iter (*this); @@ -303,7 +303,7 @@ TAO_Notify_EventTypeSeq::load_child (const ACE_CString &type, CORBA::Long id, } void -TAO_Notify_EventTypeSeq::release (void) +TAO_Notify_EventTypeSeq::release () { delete this; } diff --git a/TAO/orbsvcs/orbsvcs/Notify/EventTypeSeq.h b/TAO/orbsvcs/orbsvcs/Notify/EventTypeSeq.h index b011441347d..5ecbd009ffc 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/EventTypeSeq.h +++ b/TAO/orbsvcs/orbsvcs/Notify/EventTypeSeq.h @@ -64,7 +64,7 @@ public: void populate_no_special (CosNotification::EventTypeSeq& event_type) const; /// Print the contents. - void dump (void) const; + void dump () const; // TAO_Notify::Topology_Object diff --git a/TAO/orbsvcs/orbsvcs/Notify/Event_Manager.cpp b/TAO/orbsvcs/orbsvcs/Notify/Event_Manager.cpp index 3f279e612ea..0ad3ff2ca33 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Event_Manager.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Event_Manager.cpp @@ -55,7 +55,7 @@ protected: /********************************************************************************/ -TAO_Notify_Event_Manager::TAO_Notify_Event_Manager (void) +TAO_Notify_Event_Manager::TAO_Notify_Event_Manager () { } @@ -74,7 +74,7 @@ void TAO_Notify_Event_Manager::release() } void -TAO_Notify_Event_Manager::init (void) +TAO_Notify_Event_Manager::init () { ACE_ASSERT (this->consumer_map_.get() == 0); @@ -96,7 +96,7 @@ TAO_Notify_Event_Manager::init (void) } void -TAO_Notify_Event_Manager::shutdown (void) +TAO_Notify_Event_Manager::shutdown () { } @@ -231,27 +231,27 @@ TAO_Notify_Event_Manager::un_publish (TAO_Notify_ProxyConsumer* proxy_consumer, } TAO_Notify_Consumer_Map& -TAO_Notify_Event_Manager::consumer_map (void) +TAO_Notify_Event_Manager::consumer_map () { ACE_ASSERT( this->consumer_map_.get() != 0 ); return *this->consumer_map_; } TAO_Notify_Supplier_Map& -TAO_Notify_Event_Manager::supplier_map (void) +TAO_Notify_Event_Manager::supplier_map () { ACE_ASSERT( this->supplier_map_.get() != 0 ); return *this->supplier_map_; } const TAO_Notify_EventTypeSeq& -TAO_Notify_Event_Manager::offered_types (void) const +TAO_Notify_Event_Manager::offered_types () const { return this->supplier_map_->event_types (); } const TAO_Notify_EventTypeSeq& -TAO_Notify_Event_Manager::subscription_types (void) const +TAO_Notify_Event_Manager::subscription_types () const { return this->consumer_map_->event_types (); } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Event_Manager.h b/TAO/orbsvcs/orbsvcs/Notify/Event_Manager.h index db98b1d895f..c9281a4bffd 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Event_Manager.h +++ b/TAO/orbsvcs/orbsvcs/Notify/Event_Manager.h @@ -110,12 +110,10 @@ protected: void un_publish (TAO_Notify_ProxyConsumer* proxy_consumer, const TAO_Notify_EventTypeSeq& seq, TAO_Notify_EventTypeSeq& last_seq); private: - // Disallow copying and assignment; we don't need them - // and if we let the compiler generate them it needs the - // full declaration of the template arguments for ACE_Auto_Ptr<> - // below. - TAO_Notify_Event_Manager (TAO_Notify_Event_Manager&); - TAO_Notify_Event_Manager& operator= (TAO_Notify_Event_Manager&); + TAO_Notify_Event_Manager (const TAO_Notify_Event_Manager&) = delete; + TAO_Notify_Event_Manager& operator= (const TAO_Notify_Event_Manager&) = delete; + TAO_Notify_Event_Manager (TAO_Notify_Event_Manager&&) = delete; + TAO_Notify_Event_Manager& operator= (TAO_Notify_Event_Manager&&) = delete; /// Consumer Map ACE_Auto_Ptr< TAO_Notify_Consumer_Map > consumer_map_; diff --git a/TAO/orbsvcs/orbsvcs/Notify/Event_Persistence_Factory.cpp b/TAO/orbsvcs/orbsvcs/Notify/Event_Persistence_Factory.cpp index 0bfdbf409ec..3876f8b7463 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Event_Persistence_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Event_Persistence_Factory.cpp @@ -2,7 +2,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify::Event_Persistence_Factory::~Event_Persistence_Factory (void) +TAO_Notify::Event_Persistence_Factory::~Event_Persistence_Factory () { } diff --git a/TAO/orbsvcs/orbsvcs/Notify/FilterAdmin.cpp b/TAO/orbsvcs/orbsvcs/Notify/FilterAdmin.cpp index 441b3d556d0..64d570166d9 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/FilterAdmin.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/FilterAdmin.cpp @@ -15,13 +15,13 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL // Implementation skeleton constructor -TAO_Notify_FilterAdmin::TAO_Notify_FilterAdmin (void) +TAO_Notify_FilterAdmin::TAO_Notify_FilterAdmin () { } // Implementation skeleton destructor -TAO_Notify_FilterAdmin::~TAO_Notify_FilterAdmin (void) +TAO_Notify_FilterAdmin::~TAO_Notify_FilterAdmin () { } @@ -71,7 +71,7 @@ TAO_Notify_FilterAdmin::get_filter (CosNotifyFilter::FilterID filter_id) } CosNotifyFilter::FilterIDSeq* -TAO_Notify_FilterAdmin::get_all_filters (void) +TAO_Notify_FilterAdmin::get_all_filters () { ACE_GUARD_THROW_EX (TAO_SYNCH_MUTEX, ace_mon, this->lock_, CORBA::INTERNAL ()); @@ -104,7 +104,7 @@ TAO_Notify_FilterAdmin::get_all_filters (void) } void -TAO_Notify_FilterAdmin::remove_all_filters (void) +TAO_Notify_FilterAdmin::remove_all_filters () { ACE_GUARD_THROW_EX (TAO_SYNCH_MUTEX, ace_mon, this->lock_, CORBA::INTERNAL ()); @@ -174,7 +174,7 @@ TAO_Notify_FilterAdmin::load_child (const ACE_CString &type, CORBA::Long id, } void -TAO_Notify_FilterAdmin::release (void) +TAO_Notify_FilterAdmin::release () { delete this; } diff --git a/TAO/orbsvcs/orbsvcs/Notify/ID_Factory.cpp b/TAO/orbsvcs/orbsvcs/Notify/ID_Factory.cpp index eca1d32f6f3..b6c6ca41364 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/ID_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/ID_Factory.cpp @@ -6,7 +6,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_ID_Factory::TAO_Notify_ID_Factory (void) +TAO_Notify_ID_Factory::TAO_Notify_ID_Factory () : seed_ (0) { } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Method_Request.cpp b/TAO/orbsvcs/orbsvcs/Notify/Method_Request.cpp index e43bf8d3057..fdcd1075447 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Method_Request.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Method_Request.cpp @@ -5,12 +5,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_Method_Request::~TAO_Notify_Method_Request (void) +TAO_Notify_Method_Request::~TAO_Notify_Method_Request () { } TAO_Notify_Method_Request_Queueable * -TAO_Notify_Method_Request_Queueable::copy (void) +TAO_Notify_Method_Request_Queueable::copy () { return this; } @@ -57,7 +57,7 @@ TAO_Notify_Method_Request_Queueable::init (const TAO_Notify_Event* event) } const ACE_Time_Value& -TAO_Notify_Method_Request_Queueable::creation_time (void) const +TAO_Notify_Method_Request_Queueable::creation_time () const { return this->time_; } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.cpp b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.cpp index 3a420766747..f584e725bef 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.cpp @@ -57,7 +57,7 @@ TAO_Notify_Method_Request_Dispatch::~TAO_Notify_Method_Request_Dispatch () { } -int TAO_Notify_Method_Request_Dispatch::execute_i (void) +int TAO_Notify_Method_Request_Dispatch::execute_i () { if (this->proxy_supplier_->has_shutdown ()) return 0; // If we were shutdown while waiting in the queue, return with no action. @@ -210,7 +210,7 @@ TAO_Notify_Method_Request_Dispatch_Queueable::~TAO_Notify_Method_Request_Dispatc } int -TAO_Notify_Method_Request_Dispatch_Queueable::execute (void) +TAO_Notify_Method_Request_Dispatch_Queueable::execute () { return this->execute_i (); } @@ -231,13 +231,13 @@ TAO_Notify_Method_Request_Dispatch_No_Copy:: ~TAO_Notify_Method_Request_Dispatch } int -TAO_Notify_Method_Request_Dispatch_No_Copy::execute (void) +TAO_Notify_Method_Request_Dispatch_No_Copy::execute () { return this->execute_i (); } TAO_Notify_Method_Request_Queueable* -TAO_Notify_Method_Request_Dispatch_No_Copy::copy (void) +TAO_Notify_Method_Request_Dispatch_No_Copy::copy () { TAO_Notify_Method_Request_Queueable* request = 0; diff --git a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Event.cpp b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Event.cpp index 519b1ff0a47..590bbba4ffe 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Event.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Event.cpp @@ -83,7 +83,7 @@ TAO_Notify_Method_Request_Event_Queueable::~TAO_Notify_Method_Request_Event_Queu } int -TAO_Notify_Method_Request_Event_Queueable::execute (void) +TAO_Notify_Method_Request_Event_Queueable::execute () { ACE_ASSERT (false); return -1; diff --git a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Lookup.cpp b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Lookup.cpp index 2a3cf610e46..264f4ede97c 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Lookup.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Lookup.cpp @@ -54,7 +54,7 @@ TAO_Notify_Method_Request_Lookup::work ( } } -int TAO_Notify_Method_Request_Lookup::execute_i (void) +int TAO_Notify_Method_Request_Lookup::execute_i () { if (this->proxy_consumer_->has_shutdown ()) return 0; // If we were shutdown while waiting in the queue, return with no action. @@ -187,7 +187,7 @@ TAO_Notify_Method_Request_Lookup_Queueable::~TAO_Notify_Method_Request_Lookup_Qu } int -TAO_Notify_Method_Request_Lookup_Queueable::execute (void) +TAO_Notify_Method_Request_Lookup_Queueable::execute () { return this->execute_i (); } @@ -206,13 +206,13 @@ TAO_Notify_Method_Request_Lookup_No_Copy::~TAO_Notify_Method_Request_Lookup_No_C } int -TAO_Notify_Method_Request_Lookup_No_Copy::execute (void) +TAO_Notify_Method_Request_Lookup_No_Copy::execute () { return this->execute_i (); } TAO_Notify_Method_Request_Queueable* -TAO_Notify_Method_Request_Lookup_No_Copy::copy (void) +TAO_Notify_Method_Request_Lookup_No_Copy::copy () { TAO_Notify_Method_Request_Queueable* request; diff --git a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Shutdown.cpp b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Shutdown.cpp index 5a25e497aae..847a70616aa 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Shutdown.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Shutdown.cpp @@ -13,13 +13,13 @@ TAO_Notify_Method_Request_Shutdown::~TAO_Notify_Method_Request_Shutdown () } TAO_Notify_Method_Request_Queueable* -TAO_Notify_Method_Request_Shutdown::copy (void) +TAO_Notify_Method_Request_Shutdown::copy () { return new TAO_Notify_Method_Request_Shutdown (this->task_); } int -TAO_Notify_Method_Request_Shutdown::execute (void) +TAO_Notify_Method_Request_Shutdown::execute () { // Shut down the scheduler by deactivating the activation queue's // underlying message queue - should pop all worker threads off their diff --git a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates.cpp b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates.cpp index 14f93d48e73..3b4eee8bb9f 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates.cpp @@ -15,7 +15,7 @@ TAO_Notify_Method_Request_Updates::~TAO_Notify_Method_Request_Updates () } int -TAO_Notify_Method_Request_Updates::execute (void) +TAO_Notify_Method_Request_Updates::execute () { return this->execute_i (); } @@ -33,7 +33,7 @@ TAO_Notify_Method_Request_Updates_No_Copy::~TAO_Notify_Method_Request_Updates_No } TAO_Notify_Method_Request_Queueable* -TAO_Notify_Method_Request_Updates_No_Copy::copy (void) +TAO_Notify_Method_Request_Updates_No_Copy::copy () { TAO_Notify_Method_Request_Queueable* request = 0; @@ -45,7 +45,7 @@ TAO_Notify_Method_Request_Updates_No_Copy::copy (void) } int -TAO_Notify_Method_Request_Updates_No_Copy::execute (void) +TAO_Notify_Method_Request_Updates_No_Copy::execute () { return this->execute_i (); } diff --git a/TAO/orbsvcs/orbsvcs/Notify/MonitorControl/Control.cpp b/TAO/orbsvcs/orbsvcs/Notify/MonitorControl/Control.cpp index 73e63738be3..7ff8ac5455d 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/MonitorControl/Control.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/MonitorControl/Control.cpp @@ -2,7 +2,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_NS_Control::~TAO_NS_Control (void) +TAO_NS_Control::~TAO_NS_Control () { } @@ -12,7 +12,7 @@ TAO_NS_Control::TAO_NS_Control (const char* name) } const ACE_CString& -TAO_NS_Control::name (void) const +TAO_NS_Control::name () const { return this->name_; } diff --git a/TAO/orbsvcs/orbsvcs/Notify/MonitorControl/Control_Registry.cpp b/TAO/orbsvcs/orbsvcs/Notify/MonitorControl/Control_Registry.cpp index 2dce7e4ea36..6b767080a8d 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/MonitorControl/Control_Registry.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/MonitorControl/Control_Registry.cpp @@ -3,12 +3,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Control_Registry* -TAO_Control_Registry::instance (void) +TAO_Control_Registry::instance () { return TAO_Singleton<TAO_Control_Registry, TAO_SYNCH_MUTEX>::instance (); } -TAO_Control_Registry::~TAO_Control_Registry (void) +TAO_Control_Registry::~TAO_Control_Registry () { ACE_WRITE_GUARD (TAO_SYNCH_RW_MUTEX, guard, this->mutex_); @@ -67,7 +67,7 @@ TAO_Control_Registry::remove (const ACE_CString& name) } const TAO_Control_Registry::NameList& -TAO_Control_Registry::names (void) +TAO_Control_Registry::names () { if (this->name_cache_.length () == 0) { diff --git a/TAO/orbsvcs/orbsvcs/Notify/MonitorControl/MonitorManager.cpp b/TAO/orbsvcs/orbsvcs/Notify/MonitorControl/MonitorManager.cpp index cdee710b3d7..0c9a43b1f82 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/MonitorControl/MonitorManager.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/MonitorControl/MonitorManager.cpp @@ -16,7 +16,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_MonitorManager::TAO_MonitorManager (void) +TAO_MonitorManager::TAO_MonitorManager () : run_ (false) , initialized_ (false) { @@ -93,7 +93,7 @@ TAO_MonitorManager::init (int argc, ACE_TCHAR* argv[]) } int -TAO_MonitorManager::fini (void) +TAO_MonitorManager::fini () { if (!CORBA::is_nil (this->task_.orb_.in ())) { @@ -110,7 +110,7 @@ TAO_MonitorManager::fini (void) } int -TAO_MonitorManager::run (void) +TAO_MonitorManager::run () { bool activate = false; @@ -152,13 +152,13 @@ TAO_MonitorManager::run (void) } int -TAO_MonitorManager::resume (void) +TAO_MonitorManager::resume () { return this->run (); } void -TAO_MonitorManager::shutdown (void) +TAO_MonitorManager::shutdown () { TAO_MonitorManager* monitor = ACE_Dynamic_Service<TAO_MonitorManager>::instance ( @@ -170,7 +170,7 @@ TAO_MonitorManager::shutdown (void) } } -TAO_MonitorManager::ORBTask::ORBTask (void) +TAO_MonitorManager::ORBTask::ORBTask () : use_name_svc_ (true) , startup_barrier_ (2) // synch the parent with the single child thread , mc_orb_name_ (ACE_TEXT("TAO_MonitorAndControl")) @@ -178,7 +178,7 @@ TAO_MonitorManager::ORBTask::ORBTask (void) } int -TAO_MonitorManager::ORBTask::svc (void) +TAO_MonitorManager::ORBTask::svc () { try { diff --git a/TAO/orbsvcs/orbsvcs/Notify/MonitorControl/NotificationServiceMonitor_i.cpp b/TAO/orbsvcs/orbsvcs/Notify/MonitorControl/NotificationServiceMonitor_i.cpp index 03cbde82aab..e5ca866f620 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/MonitorControl/NotificationServiceMonitor_i.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/MonitorControl/NotificationServiceMonitor_i.cpp @@ -21,7 +21,7 @@ NotificationServiceMonitor_i::NotificationServiceMonitor_i (CORBA::ORB_ptr orb) } Monitor::NameList* -NotificationServiceMonitor_i::get_statistic_names (void) +NotificationServiceMonitor_i::get_statistic_names () { Monitor_Control_Types::NameList name_list = Monitor_Point_Registry::instance ()->names (); @@ -208,7 +208,7 @@ NotificationServiceMonitor_i::send_control_command (const char* name, } void -NotificationServiceMonitor_i::shutdown (void) +NotificationServiceMonitor_i::shutdown () { if (!CORBA::is_nil (this->orb_.in ())) { diff --git a/TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MC_Notify_Service.cpp b/TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MC_Notify_Service.cpp index 72063c91920..8994a77cfc0 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MC_Notify_Service.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MC_Notify_Service.cpp @@ -13,12 +13,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_MC_Notify_Service::~TAO_MC_Notify_Service (void) +TAO_MC_Notify_Service::~TAO_MC_Notify_Service () { } TAO_Notify_Factory* -TAO_MC_Notify_Service::create_factory (void) +TAO_MC_Notify_Service::create_factory () { TAO_MC_Default_Factory* factory = 0; ACE_NEW_THROW_EX (factory, diff --git a/TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorConsumerAdmin.cpp b/TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorConsumerAdmin.cpp index 6847580b12d..5d9275a1412 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorConsumerAdmin.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorConsumerAdmin.cpp @@ -51,7 +51,7 @@ private: CosNotifyChannelAdmin::AdminID id_; }; -TAO_MonitorConsumerAdmin::TAO_MonitorConsumerAdmin (void) +TAO_MonitorConsumerAdmin::TAO_MonitorConsumerAdmin () : stat_name_ (), control_name_ (), queue_size_ (0), @@ -59,7 +59,7 @@ TAO_MonitorConsumerAdmin::TAO_MonitorConsumerAdmin (void) { } -TAO_MonitorConsumerAdmin::~TAO_MonitorConsumerAdmin (void) +TAO_MonitorConsumerAdmin::~TAO_MonitorConsumerAdmin () { this->remove (); // The registry also manages this refcount. The pointer itself @@ -205,7 +205,7 @@ TAO_MonitorConsumerAdmin::count_queue_overflow ( } TAO_MonitorEventChannel * -TAO_MonitorConsumerAdmin::get_ec (void) const +TAO_MonitorConsumerAdmin::get_ec () const { TAO_MonitorEventChannel* ec = dynamic_cast<TAO_MonitorEventChannel*> (this->ec_.get ()); if (ec == 0) @@ -214,21 +214,21 @@ TAO_MonitorConsumerAdmin::get_ec (void) const } const ACE_CString & -TAO_MonitorConsumerAdmin::stat_name (void)const +TAO_MonitorConsumerAdmin::stat_name ()const { return stat_name_; } void -TAO_MonitorConsumerAdmin::destroy (void) +TAO_MonitorConsumerAdmin::destroy () { this->remove (); this->TAO_Notify_ConsumerAdmin::destroy (); } void -TAO_MonitorConsumerAdmin::remove (void) +TAO_MonitorConsumerAdmin::remove () { // First, make sure we can get down to the real ec type TAO_MonitorEventChannel* ec = diff --git a/TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorEventChannel.cpp b/TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorEventChannel.cpp index 5b9b6f9470b..92e23ce07d6 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorEventChannel.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorEventChannel.cpp @@ -39,7 +39,7 @@ public: { } - virtual void update (void) { + virtual void update () { if (this->type () == Monitor_Control_Types::MC_LIST) { Monitor_Control_Types::NameList list; @@ -75,7 +75,7 @@ public: { } - virtual void update (void) { + virtual void update () { Monitor_Control_Types::NameList list; this->interf_->get_timedout_consumers (&list); this->receive (list); @@ -97,7 +97,7 @@ public: { } - virtual void update (void) + virtual void update () { if (this->type () == Monitor_Control_Types::MC_LIST) { @@ -146,7 +146,7 @@ public: { } - virtual void update (void) + virtual void update () { this->receive (this->interf_->calculate_queue_size (this->count_)); } @@ -168,7 +168,7 @@ public: { } - virtual void update (void) + virtual void update () { this->receive (this->interf_->get_oldest_event ()); } @@ -187,7 +187,7 @@ public: { } - virtual void update (void) + virtual void update () { Monitor_Control_Types::NameList list; this->interf_->determine_slowest_consumer (&list); @@ -296,7 +296,7 @@ TAO_MonitorEventChannel::TAO_MonitorEventChannel (const char* name) this->add_stats (); } -TAO_MonitorEventChannel::~TAO_MonitorEventChannel (void) +TAO_MonitorEventChannel::~TAO_MonitorEventChannel () { ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->names_mutex_); @@ -318,7 +318,7 @@ TAO_MonitorEventChannel::~TAO_MonitorEventChannel (void) } const ACE_CString& -TAO_MonitorEventChannel::name (void) const +TAO_MonitorEventChannel::name () const { return this->name_; } @@ -1288,7 +1288,7 @@ TAO_MonitorEventChannel::determine_slowest_consumer ( } double -TAO_MonitorEventChannel::get_oldest_event (void) +TAO_MonitorEventChannel::get_oldest_event () { CosNotifyChannelAdmin::AdminIDSeq_var conadmin_ids = this->get_all_consumeradmins (); diff --git a/TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorEventChannelFactory.cpp b/TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorEventChannelFactory.cpp index d3de46ab273..753ace26855 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorEventChannelFactory.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorEventChannelFactory.cpp @@ -30,7 +30,7 @@ public: { } - virtual void update (void) + virtual void update () { if (this->type () == Monitor_Control_Types::MC_LIST) { @@ -151,7 +151,7 @@ TAO_MonitorEventChannelFactory::TAO_MonitorEventChannelFactory ( } } -TAO_MonitorEventChannelFactory::~TAO_MonitorEventChannelFactory (void) +TAO_MonitorEventChannelFactory::~TAO_MonitorEventChannelFactory () { Monitor_Point_Registry* instance = Monitor_Point_Registry::instance (); size_t size = this->stat_names_.size (); @@ -418,7 +418,7 @@ TAO_MonitorEventChannelFactory::Unbinder::Unbinder ( { } -TAO_MonitorEventChannelFactory::Unbinder::~Unbinder (void) +TAO_MonitorEventChannelFactory::Unbinder::~Unbinder () { if (!this->released_) { @@ -427,7 +427,7 @@ TAO_MonitorEventChannelFactory::Unbinder::~Unbinder (void) } void -TAO_MonitorEventChannelFactory::Unbinder::release (void) +TAO_MonitorEventChannelFactory::Unbinder::release () { this->released_ = true; } diff --git a/TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorSupplierAdmin.cpp b/TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorSupplierAdmin.cpp index b1e55e19a79..ffa6e2bb0e1 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorSupplierAdmin.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorSupplierAdmin.cpp @@ -41,11 +41,11 @@ private: CosNotifyChannelAdmin::AdminID id_; }; -TAO_MonitorSupplierAdmin::TAO_MonitorSupplierAdmin (void) +TAO_MonitorSupplierAdmin::TAO_MonitorSupplierAdmin () { } -TAO_MonitorSupplierAdmin::~TAO_MonitorSupplierAdmin (void) +TAO_MonitorSupplierAdmin::~TAO_MonitorSupplierAdmin () { // First, make sure we can get down to the real ec type TAO_MonitorEventChannel* ec = diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Interpreter.cpp b/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Interpreter.cpp index e0f0a0a8b38..c255704f3df 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Interpreter.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Interpreter.cpp @@ -6,11 +6,11 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_Constraint_Interpreter::TAO_Notify_Constraint_Interpreter (void) +TAO_Notify_Constraint_Interpreter::TAO_Notify_Constraint_Interpreter () { } -TAO_Notify_Constraint_Interpreter::~TAO_Notify_Constraint_Interpreter (void) +TAO_Notify_Constraint_Interpreter::~TAO_Notify_Constraint_Interpreter () { } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.cpp b/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.cpp index eb1e3c4e429..f26b3719927 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.cpp @@ -17,7 +17,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_Constraint_Visitor::TAO_Notify_Constraint_Visitor (void) +TAO_Notify_Constraint_Visitor::TAO_Notify_Constraint_Visitor () : implicit_id_ (TAO_Notify_Constraint_Visitor::EMPTY), implicit_ids_(implicit_ids_size_), filterable_data_(filterable_data_size_), diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_CO_Factory.cpp b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_CO_Factory.cpp index f0af71d982c..f9ca1b251e8 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_CO_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_CO_Factory.cpp @@ -3,7 +3,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL int -TAO_Notify_Default_CO_Factory::init_svc (void) +TAO_Notify_Default_CO_Factory::init_svc () { // NOP. return 0; diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_Collection_Factory.cpp b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_Collection_Factory.cpp index 21421e091e7..cf3fdb6e5d8 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_Collection_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_Collection_Factory.cpp @@ -3,7 +3,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL int -TAO_Notify_Default_Collection_Factory::init_svc (void) +TAO_Notify_Default_Collection_Factory::init_svc () { // NOP. return 0; diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_EMO_Factory.cpp b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_EMO_Factory.cpp index 44687d95c71..f8020100558 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_EMO_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_EMO_Factory.cpp @@ -3,7 +3,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL int -TAO_Notify_Default_EMO_Factory::init_svc (void) +TAO_Notify_Default_EMO_Factory::init_svc () { // NOP. return 0; diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_POA_Factory.cpp b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_POA_Factory.cpp index 6648d5e5ffd..c80e8358626 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_POA_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_POA_Factory.cpp @@ -3,7 +3,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL int -TAO_Notify_Default_POA_Factory::init_svc (void) +TAO_Notify_Default_POA_Factory::init_svc () { // NOP. return 0; diff --git a/TAO/orbsvcs/orbsvcs/Notify/Object.cpp b/TAO/orbsvcs/orbsvcs/Notify/Object.cpp index adb740a2803..3fe20a72ab3 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Object.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Object.cpp @@ -15,7 +15,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_Object::TAO_Notify_Object (void) +TAO_Notify_Object::TAO_Notify_Object () : poa_ (0) , proxy_poa_ (0) , own_proxy_poa_ (false) @@ -82,7 +82,7 @@ TAO_Notify_Object::activate ( void -TAO_Notify_Object::deactivate (void) +TAO_Notify_Object::deactivate () { try { @@ -100,7 +100,7 @@ TAO_Notify_Object::deactivate (void) } int -TAO_Notify_Object::shutdown (void) +TAO_Notify_Object::shutdown () { { ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 1); @@ -119,13 +119,13 @@ TAO_Notify_Object::shutdown (void) } CORBA::Object_ptr -TAO_Notify_Object::ref (void) +TAO_Notify_Object::ref () { return this->poa_->id_to_reference (this->id_); } void -TAO_Notify_Object::shutdown_worker_task (void) +TAO_Notify_Object::shutdown_worker_task () { // Only do this if we are the owner. TAO_Notify_Worker_Task::Ptr task( this->worker_task_ ); @@ -140,7 +140,7 @@ TAO_Notify_Object::shutdown_worker_task (void) } void -TAO_Notify_Object::destroy_proxy_poa (void) +TAO_Notify_Object::destroy_proxy_poa () { if (this->proxy_poa_ != 0) { @@ -166,7 +166,7 @@ TAO_Notify_Object::destroy_proxy_poa (void) } void -TAO_Notify_Object::destroy_object_poa (void) +TAO_Notify_Object::destroy_object_poa () { if (this->object_poa_ != 0) { @@ -192,7 +192,7 @@ TAO_Notify_Object::destroy_object_poa (void) } /// Shutdown the current poa. -void TAO_Notify_Object::destroy_poa (void) +void TAO_Notify_Object::destroy_poa () { this->poa_ = 0; } @@ -280,7 +280,7 @@ TAO_Notify_Object::set_qos (const CosNotification::QoSProperties & qos) } CosNotification::QoSProperties* -TAO_Notify_Object::get_qos (void) +TAO_Notify_Object::get_qos () { CosNotification::QoSProperties_var properties; @@ -311,7 +311,7 @@ TAO_Notify_Object::qos_changed (const TAO_Notify_QoSProperties& /*qos_properties } TAO_Notify_Timer* -TAO_Notify_Object::timer (void) +TAO_Notify_Object::timer () { ACE_ASSERT (worker_task_.get() != 0); return this->worker_task_->timer (); @@ -355,7 +355,7 @@ TAO_Notify_Object::load_attrs(const TAO_Notify::NVPList& attrs) } TAO_Notify_Worker_Task* -TAO_Notify_Object::get_worker_task (void) +TAO_Notify_Object::get_worker_task () { return this->worker_task_.get (); } diff --git a/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.cpp b/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.cpp index b81da9bd7dc..ddf7d362ecc 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.cpp @@ -13,16 +13,16 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_POA_Helper::TAO_Notify_POA_Helper (void) +TAO_Notify_POA_Helper::TAO_Notify_POA_Helper () { } -TAO_Notify_POA_Helper::~TAO_Notify_POA_Helper (void) +TAO_Notify_POA_Helper::~TAO_Notify_POA_Helper () { } ACE_CString -TAO_Notify_POA_Helper::get_unique_id (void) +TAO_Notify_POA_Helper::get_unique_id () { /// Factory for generating unique ids for the POAs. static TAO_Notify_ID_Factory poa_id_factory; @@ -234,7 +234,7 @@ TAO_Notify_POA_Helper::servant_to_reference ( void -TAO_Notify_POA_Helper::destroy (void) +TAO_Notify_POA_Helper::destroy () { poa_->destroy (true, false); // The <wait_for_completion> flag = 0 diff --git a/TAO/orbsvcs/orbsvcs/Notify/Peer.cpp b/TAO/orbsvcs/orbsvcs/Notify/Peer.cpp index d76ad81625d..894e03dc65a 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Peer.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Peer.cpp @@ -4,7 +4,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_Peer::TAO_Notify_Peer (void) +TAO_Notify_Peer::TAO_Notify_Peer () { } @@ -19,13 +19,13 @@ TAO_Notify_Peer::qos_changed (const TAO_Notify_QoSProperties& /*qos_properties*/ } void -TAO_Notify_Peer::shutdown (void) +TAO_Notify_Peer::shutdown () { // NOP. } void -TAO_Notify_Peer::handle_dispatch_exception (void) +TAO_Notify_Peer::handle_dispatch_exception () { // Sever all association when a remote client misbehaves. Other strategies like reties are possible but not implemented. this->proxy ()->destroy (); @@ -100,13 +100,13 @@ TAO_Notify_Peer::dispatch_updates (const TAO_Notify_EventTypeSeq & added, const } CORBA::ULong -TAO_Notify_Peer::_incr_refcnt (void) +TAO_Notify_Peer::_incr_refcnt () { return this->proxy ()->_incr_refcnt (); } CORBA::ULong -TAO_Notify_Peer::_decr_refcnt (void) +TAO_Notify_Peer::_decr_refcnt () { return this->proxy ()->_decr_refcnt (); } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Properties.cpp b/TAO/orbsvcs/orbsvcs/Notify/Properties.cpp index 73262ca1adc..fd1938022b2 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Properties.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Properties.cpp @@ -9,7 +9,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_Properties::TAO_Notify_Properties (void) +TAO_Notify_Properties::TAO_Notify_Properties () : factory_ (0) , builder_ (0) , orb_(0) @@ -39,14 +39,14 @@ TAO_Notify_Properties::~TAO_Notify_Properties () } TAO_Notify_Properties * -TAO_Notify_Properties::instance (void) +TAO_Notify_Properties::instance () { return ACE_Unmanaged_Singleton<TAO_Notify_Properties, TAO_SYNCH_MUTEX>::instance (); } void -TAO_Notify_Properties::close (void) +TAO_Notify_Properties::close () { ACE_Unmanaged_Singleton<TAO_Notify_Properties, TAO_SYNCH_MUTEX>::close (); diff --git a/TAO/orbsvcs/orbsvcs/Notify/PropertySeq.cpp b/TAO/orbsvcs/orbsvcs/Notify/PropertySeq.cpp index 27d5d57ae16..77d76160bad 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/PropertySeq.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/PropertySeq.cpp @@ -6,7 +6,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_PropertySeq::TAO_Notify_PropertySeq (void) +TAO_Notify_PropertySeq::TAO_Notify_PropertySeq () { } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Proxy.cpp b/TAO/orbsvcs/orbsvcs/Notify/Proxy.cpp index a82555e7620..ca6b2956649 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Proxy.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Proxy.cpp @@ -14,7 +14,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_Proxy::TAO_Notify_Proxy (void) +TAO_Notify_Proxy::TAO_Notify_Proxy () : updates_off_ (0) { } @@ -41,7 +41,7 @@ TAO_Notify_Proxy::activate (PortableServer::Servant servant, } void -TAO_Notify_Proxy::deactivate (void) +TAO_Notify_Proxy::deactivate () { ACE_ASSERT (this->proxy_poa() != 0 ); this->proxy_poa()->deactivate (this->id()); diff --git a/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer.cpp b/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer.cpp index 483546e7e7e..533dcced502 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer.cpp @@ -26,7 +26,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_ProxyConsumer::TAO_Notify_ProxyConsumer (void) +TAO_Notify_ProxyConsumer::TAO_Notify_ProxyConsumer () : supplier_admin_ (0) { } @@ -36,7 +36,7 @@ TAO_Notify_ProxyConsumer::~TAO_Notify_ProxyConsumer () } TAO_Notify_Peer* -TAO_Notify_ProxyConsumer::peer (void) +TAO_Notify_ProxyConsumer::peer () { return this->supplier (); } @@ -145,7 +145,7 @@ TAO_Notify_ProxyConsumer::supports_reliable_events () const } void -TAO_Notify_ProxyConsumer::disconnect (void) +TAO_Notify_ProxyConsumer::disconnect () { TAO_Notify_EventTypeSeq added; @@ -158,7 +158,7 @@ TAO_Notify_ProxyConsumer::disconnect (void) } int -TAO_Notify_ProxyConsumer::shutdown (void) +TAO_Notify_ProxyConsumer::shutdown () { if (this->TAO_Notify_Object::shutdown () == 1) return 1; @@ -174,7 +174,7 @@ TAO_Notify_ProxyConsumer::shutdown (void) } void -TAO_Notify_ProxyConsumer::destroy (void) +TAO_Notify_ProxyConsumer::destroy () { this->shutdown (); this->supplier_admin_->cleanup_proxy (this, false, false); diff --git a/TAO/orbsvcs/orbsvcs/Notify/ProxySupplier.cpp b/TAO/orbsvcs/orbsvcs/Notify/ProxySupplier.cpp index 46b2740b2e3..f655b71fada 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/ProxySupplier.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/ProxySupplier.cpp @@ -15,7 +15,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_ProxySupplier::TAO_Notify_ProxySupplier (void) +TAO_Notify_ProxySupplier::TAO_Notify_ProxySupplier () : consumer_admin_ (0) { } @@ -47,7 +47,7 @@ TAO_Notify_ProxySupplier::init (TAO_Notify_ConsumerAdmin* consumer_admin) } TAO_Notify_Peer* -TAO_Notify_ProxySupplier:: peer (void) +TAO_Notify_ProxySupplier:: peer () { return this->consumer (); } @@ -99,7 +99,7 @@ TAO_Notify_ProxySupplier::connect (TAO_Notify_Consumer *consumer) } void -TAO_Notify_ProxySupplier::disconnect (void) +TAO_Notify_ProxySupplier::disconnect () { TAO_Notify_EventTypeSeq added; @@ -112,7 +112,7 @@ TAO_Notify_ProxySupplier::disconnect (void) } int -TAO_Notify_ProxySupplier::shutdown (void) +TAO_Notify_ProxySupplier::shutdown () { if (this->TAO_Notify_Object::shutdown () == 1) return 1; @@ -128,7 +128,7 @@ TAO_Notify_ProxySupplier::shutdown (void) } void -TAO_Notify_ProxySupplier::destroy (void) +TAO_Notify_ProxySupplier::destroy () { this->destroy (false); } diff --git a/TAO/orbsvcs/orbsvcs/Notify/QoSProperties.cpp b/TAO/orbsvcs/orbsvcs/Notify/QoSProperties.cpp index 4a5e67a70c4..959ce7bd878 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/QoSProperties.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/QoSProperties.cpp @@ -9,7 +9,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_QoSProperties::TAO_Notify_QoSProperties (void) +TAO_Notify_QoSProperties::TAO_Notify_QoSProperties () : event_reliability_(CosNotification::EventReliability) , connection_reliability_(CosNotification::ConnectionReliability) , priority_ (CosNotification::Priority) diff --git a/TAO/orbsvcs/orbsvcs/Notify/RT_Builder.cpp b/TAO/orbsvcs/orbsvcs/Notify/RT_Builder.cpp index 4437626e758..b9efd07001e 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/RT_Builder.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/RT_Builder.cpp @@ -10,7 +10,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_RT_Builder::TAO_Notify_RT_Builder (void) +TAO_Notify_RT_Builder::TAO_Notify_RT_Builder () { } diff --git a/TAO/orbsvcs/orbsvcs/Notify/RT_Factory.cpp b/TAO/orbsvcs/orbsvcs/Notify/RT_Factory.cpp index 70a45839531..bb30c4bd9e9 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/RT_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/RT_Factory.cpp @@ -3,7 +3,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_RT_Factory::TAO_Notify_RT_Factory (void) +TAO_Notify_RT_Factory::TAO_Notify_RT_Factory () { } diff --git a/TAO/orbsvcs/orbsvcs/Notify/RT_Notify_Service.cpp b/TAO/orbsvcs/orbsvcs/Notify/RT_Notify_Service.cpp index 575205e48a4..17d3befb962 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/RT_Notify_Service.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/RT_Notify_Service.cpp @@ -9,7 +9,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_RT_Notify_Service::TAO_RT_Notify_Service (void) +TAO_RT_Notify_Service::TAO_RT_Notify_Service () { } @@ -53,7 +53,7 @@ TAO_RT_Notify_Service::init_i (CORBA::ORB_ptr orb) } TAO_Notify_Factory* -TAO_RT_Notify_Service::create_factory (void) +TAO_RT_Notify_Service::create_factory () { TAO_Notify_Factory* factory = ACE_Dynamic_Service<TAO_Notify_Factory>::instance ("TAO_Notify_Factory"); @@ -68,7 +68,7 @@ TAO_RT_Notify_Service::create_factory (void) } TAO_Notify_Builder* -TAO_RT_Notify_Service::create_builder (void) +TAO_RT_Notify_Service::create_builder () { TAO_Notify_Builder* builder = 0; ACE_NEW_THROW_EX (builder, diff --git a/TAO/orbsvcs/orbsvcs/Notify/RT_Properties.cpp b/TAO/orbsvcs/orbsvcs/Notify/RT_Properties.cpp index 8967dd68fa3..3f718315949 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/RT_Properties.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/RT_Properties.cpp @@ -7,7 +7,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_RT_Properties::TAO_Notify_RT_Properties (void) +TAO_Notify_RT_Properties::TAO_Notify_RT_Properties () { } @@ -16,7 +16,7 @@ TAO_Notify_RT_Properties::~TAO_Notify_RT_Properties () } TAO_Notify_RT_Properties * -TAO_Notify_RT_Properties::instance (void) +TAO_Notify_RT_Properties::instance () { // Hide the template instantiation to prevent multiple instances // from being created. diff --git a/TAO/orbsvcs/orbsvcs/Notify/Reactive_Task.cpp b/TAO/orbsvcs/orbsvcs/Notify/Reactive_Task.cpp index c23841d19cd..29217f504e7 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Reactive_Task.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Reactive_Task.cpp @@ -8,7 +8,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_Reactive_Task::TAO_Notify_Reactive_Task (void) +TAO_Notify_Reactive_Task::TAO_Notify_Reactive_Task () :timer_ (0) { } @@ -18,7 +18,7 @@ TAO_Notify_Reactive_Task::~TAO_Notify_Reactive_Task () } void -TAO_Notify_Reactive_Task::init (void) +TAO_Notify_Reactive_Task::init () { ACE_ASSERT (this->timer_.get() == 0); @@ -30,13 +30,13 @@ TAO_Notify_Reactive_Task::init (void) } void -TAO_Notify_Reactive_Task::release (void) +TAO_Notify_Reactive_Task::release () { delete this; //TODO: Release via factory. } void -TAO_Notify_Reactive_Task::shutdown (void) +TAO_Notify_Reactive_Task::shutdown () { } @@ -47,7 +47,7 @@ TAO_Notify_Reactive_Task::execute (TAO_Notify_Method_Request& method_request) } TAO_Notify_Timer* -TAO_Notify_Reactive_Task::timer (void) +TAO_Notify_Reactive_Task::timer () { return this->timer_.get(); } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Reconnection_Registry.cpp b/TAO/orbsvcs/orbsvcs/Notify/Reconnection_Registry.cpp index f1ffc62b480..6a8f3972cb4 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Reconnection_Registry.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Reconnection_Registry.cpp @@ -87,7 +87,7 @@ namespace TAO_Notify } CORBA::Boolean - Reconnection_Registry::is_alive (void) + Reconnection_Registry::is_alive () { return CORBA::Boolean(1); } @@ -231,7 +231,7 @@ namespace TAO_Notify } void - Reconnection_Registry::release (void) + Reconnection_Registry::release () { delete this; //@@ inform factory diff --git a/TAO/orbsvcs/orbsvcs/Notify/Refcountable.cpp b/TAO/orbsvcs/orbsvcs/Notify/Refcountable.cpp index d0d55f7050e..a57cd230a60 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Refcountable.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Refcountable.cpp @@ -62,7 +62,7 @@ TAO_Notify_Refcountable::diagnostic_dump( const char* title ) #endif /* TAO_NOTIFY_REFCOUNT_DIAGNOSTICS */ -TAO_Notify_Refcountable::TAO_Notify_Refcountable (void) +TAO_Notify_Refcountable::TAO_Notify_Refcountable () { } @@ -90,7 +90,7 @@ TAO_Notify_Refcountable::~TAO_Notify_Refcountable () CORBA::ULong -TAO_Notify_Refcountable::_incr_refcnt (void) +TAO_Notify_Refcountable::_incr_refcnt () { CORBA::Long refcount = ++this->refcount_; if (TAO_debug_level > 1 ) @@ -110,7 +110,7 @@ TAO_Notify_Refcountable::_incr_refcnt (void) } CORBA::ULong -TAO_Notify_Refcountable::_decr_refcnt (void) +TAO_Notify_Refcountable::_decr_refcnt () { CORBA::Long refcount = --this->refcount_; diff --git a/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip.cpp b/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip.cpp index 86134043cd8..b6e665a3f91 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip.cpp @@ -902,7 +902,7 @@ Routing_Slip::unmarshal (TAO_Notify_EventChannelFactory &ecf, TAO_InputCDR & cdr } void -Routing_Slip::reconnect (void) +Routing_Slip::reconnect () { Routing_Slip_Guard guard (this->internals_); enter_state_saved (guard); diff --git a/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Persistence_Manager.cpp b/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Persistence_Manager.cpp index 820ba315d17..7d76533d46b 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Persistence_Manager.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Persistence_Manager.cpp @@ -277,7 +277,7 @@ Routing_Slip_Persistence_Manager::Block_Header::Block_Header(Header_Type type) , data_size(0) { } -Routing_Slip_Persistence_Manager::Block_Header::~Block_Header (void) +Routing_Slip_Persistence_Manager::Block_Header::~Block_Header () { } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.cpp b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.cpp index b5e9fc336b3..74076bc8ecf 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.cpp @@ -8,7 +8,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_SequenceProxyPushConsumer::TAO_Notify_SequenceProxyPushConsumer (void) +TAO_Notify_SequenceProxyPushConsumer::TAO_Notify_SequenceProxyPushConsumer () :pacing_interval_ (CosNotification::PacingInterval) { } @@ -18,14 +18,14 @@ TAO_Notify_SequenceProxyPushConsumer::~TAO_Notify_SequenceProxyPushConsumer () } void -TAO_Notify_SequenceProxyPushConsumer::release (void) +TAO_Notify_SequenceProxyPushConsumer::release () { delete this; //@@ inform factory } CosNotifyChannelAdmin::ProxyType -TAO_Notify_SequenceProxyPushConsumer::MyType (void) +TAO_Notify_SequenceProxyPushConsumer::MyType () { return CosNotifyChannelAdmin::PUSH_SEQUENCE; } @@ -67,7 +67,7 @@ TAO_Notify_SequenceProxyPushConsumer::push_structured_events (const CosNotificat } void -TAO_Notify_SequenceProxyPushConsumer::disconnect_sequence_push_consumer (void) +TAO_Notify_SequenceProxyPushConsumer::disconnect_sequence_push_consumer () { TAO_Notify_SequenceProxyPushConsumer::Ptr guard( this ); this->destroy (); @@ -75,7 +75,7 @@ TAO_Notify_SequenceProxyPushConsumer::disconnect_sequence_push_consumer (void) } const char * -TAO_Notify_SequenceProxyPushConsumer::get_proxy_type_name (void) const +TAO_Notify_SequenceProxyPushConsumer::get_proxy_type_name () const { return "sequence_proxy_push_consumer"; } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.cpp b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.cpp index faf990d3aca..14db624738b 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.cpp @@ -6,7 +6,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_SequenceProxyPushSupplier::TAO_Notify_SequenceProxyPushSupplier (void) +TAO_Notify_SequenceProxyPushSupplier::TAO_Notify_SequenceProxyPushSupplier () { } @@ -15,7 +15,7 @@ TAO_Notify_SequenceProxyPushSupplier::~TAO_Notify_SequenceProxyPushSupplier () } void -TAO_Notify_SequenceProxyPushSupplier::release (void) +TAO_Notify_SequenceProxyPushSupplier::release () { delete this; //@@ inform factory @@ -37,7 +37,7 @@ TAO_Notify_SequenceProxyPushSupplier::connect_sequence_push_consumer (CosNotifyC } void -TAO_Notify_SequenceProxyPushSupplier::disconnect_sequence_push_supplier (void) +TAO_Notify_SequenceProxyPushSupplier::disconnect_sequence_push_supplier () { TAO_Notify_SequenceProxyPushSupplier::Ptr guard( this ); @@ -46,13 +46,13 @@ TAO_Notify_SequenceProxyPushSupplier::disconnect_sequence_push_supplier (void) } CosNotifyChannelAdmin::ProxyType -TAO_Notify_SequenceProxyPushSupplier::MyType (void) +TAO_Notify_SequenceProxyPushSupplier::MyType () { return CosNotifyChannelAdmin::PUSH_SEQUENCE; } const char * -TAO_Notify_SequenceProxyPushSupplier::get_proxy_type_name (void) const +TAO_Notify_SequenceProxyPushSupplier::get_proxy_type_name () const { return "sequence_proxy_push_supplier"; } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.cpp b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.cpp index 00a8f1805d0..212e85435c1 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.cpp @@ -86,7 +86,7 @@ TAO_Notify_SequencePushConsumer::init (CosNotifyComm::SequencePushConsumer_ptr p } void -TAO_Notify_SequencePushConsumer::release (void) +TAO_Notify_SequencePushConsumer::release () { delete this; //@@ inform factory @@ -309,7 +309,7 @@ TAO_Notify_SequencePushConsumer::push (const CosNotification::EventBatch& event_ } ACE_CString -TAO_Notify_SequencePushConsumer::get_ior (void) const +TAO_Notify_SequencePushConsumer::get_ior () const { ACE_CString result; CORBA::ORB_var orb = TAO_Notify_PROPERTIES::instance ()->orb (); @@ -335,7 +335,7 @@ TAO_Notify_SequencePushConsumer::reconnect_from_consumer (TAO_Notify_Consumer* o } CORBA::Object_ptr -TAO_Notify_SequencePushConsumer::get_consumer (void) +TAO_Notify_SequencePushConsumer::get_consumer () { return CosNotifyComm::SequencePushConsumer::_duplicate (this->push_consumer_.in ()); } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.cpp b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.cpp index 227d634859e..ef090ec4db5 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.cpp @@ -22,14 +22,14 @@ TAO_Notify_SequencePushSupplier::init (CosNotifyComm::SequencePushSupplier_ptr p } void -TAO_Notify_SequencePushSupplier::release (void) +TAO_Notify_SequencePushSupplier::release () { delete this; //@@ inform factory } ACE_CString -TAO_Notify_SequencePushSupplier::get_ior (void) const +TAO_Notify_SequencePushSupplier::get_ior () const { ACE_CString result; CORBA::ORB_var orb = TAO_Notify_PROPERTIES::instance()->orb(); @@ -46,7 +46,7 @@ TAO_Notify_SequencePushSupplier::get_ior (void) const } CORBA::Object_ptr -TAO_Notify_SequencePushSupplier::get_supplier (void) +TAO_Notify_SequencePushSupplier::get_supplier () { return CosNotifyComm::SequencePushSupplier::_duplicate (this->push_supplier_.in ()); } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Service.cpp b/TAO/orbsvcs/orbsvcs/Notify/Service.cpp index 42288ac9f09..04276d9b291 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Service.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Service.cpp @@ -3,12 +3,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_Service::~TAO_Notify_Service (void) +TAO_Notify_Service::~TAO_Notify_Service () { } TAO_Notify_Service* -TAO_Notify_Service::load_default (void) +TAO_Notify_Service::load_default () { static const char* services[] = { TAO_MC_NOTIFICATION_SERVICE_NAME, TAO_NOTIFICATION_SERVICE_NAME, diff --git a/TAO/orbsvcs/orbsvcs/Notify/Structured/RT_StructuredProxyPushSupplier.cpp b/TAO/orbsvcs/orbsvcs/Notify/Structured/RT_StructuredProxyPushSupplier.cpp index ea0aa2940e0..31230f40288 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Structured/RT_StructuredProxyPushSupplier.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Structured/RT_StructuredProxyPushSupplier.cpp @@ -5,7 +5,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_RT_StructuredProxyPushSupplier::TAO_Notify_RT_StructuredProxyPushSupplier (void) +TAO_Notify_RT_StructuredProxyPushSupplier::TAO_Notify_RT_StructuredProxyPushSupplier () { } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredEvent.cpp b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredEvent.cpp index c321d27da66..e882ee26710 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredEvent.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredEvent.cpp @@ -22,7 +22,7 @@ TAO_Notify_StructuredEvent_No_Copy::TAO_Notify_StructuredEvent_No_Copy (const Co } const TAO_Notify_EventType& -TAO_Notify_StructuredEvent_No_Copy::type (void) const +TAO_Notify_StructuredEvent_No_Copy::type () const { return this->type_; } @@ -53,7 +53,7 @@ TAO_Notify_StructuredEvent_No_Copy::unmarshal (TAO_InputCDR & cdr) } TAO_Notify_Event * -TAO_Notify_StructuredEvent_No_Copy::copy (void) const +TAO_Notify_StructuredEvent_No_Copy::copy () const { TAO_Notify_Event * new_event; ACE_NEW_THROW_EX (new_event, diff --git a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushConsumer.cpp b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushConsumer.cpp index dbfe3ba3127..8836af68ee3 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushConsumer.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushConsumer.cpp @@ -10,7 +10,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_StructuredProxyPushConsumer::TAO_Notify_StructuredProxyPushConsumer (void) +TAO_Notify_StructuredProxyPushConsumer::TAO_Notify_StructuredProxyPushConsumer () { } @@ -19,14 +19,14 @@ TAO_Notify_StructuredProxyPushConsumer::~TAO_Notify_StructuredProxyPushConsumer } void -TAO_Notify_StructuredProxyPushConsumer::release (void) +TAO_Notify_StructuredProxyPushConsumer::release () { delete this; //@@ inform factory } CosNotifyChannelAdmin::ProxyType -TAO_Notify_StructuredProxyPushConsumer::MyType (void) +TAO_Notify_StructuredProxyPushConsumer::MyType () { return CosNotifyChannelAdmin::PUSH_STRUCTURED; } @@ -63,7 +63,7 @@ TAO_Notify_StructuredProxyPushConsumer::push_structured_event (const CosNotifica } void -TAO_Notify_StructuredProxyPushConsumer::disconnect_structured_push_consumer (void) +TAO_Notify_StructuredProxyPushConsumer::disconnect_structured_push_consumer () { TAO_Notify_StructuredProxyPushConsumer::Ptr guard( this ); this->destroy (); @@ -71,7 +71,7 @@ TAO_Notify_StructuredProxyPushConsumer::disconnect_structured_push_consumer (voi } const char * -TAO_Notify_StructuredProxyPushConsumer::get_proxy_type_name (void) const +TAO_Notify_StructuredProxyPushConsumer::get_proxy_type_name () const { return "structured_proxy_push_consumer"; } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.cpp b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.cpp index 4cf50ad0d2f..367c25f3ae5 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.cpp @@ -9,7 +9,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_StructuredProxyPushSupplier::TAO_Notify_StructuredProxyPushSupplier (void) +TAO_Notify_StructuredProxyPushSupplier::TAO_Notify_StructuredProxyPushSupplier () { } @@ -18,14 +18,14 @@ TAO_Notify_StructuredProxyPushSupplier::~TAO_Notify_StructuredProxyPushSupplier } void -TAO_Notify_StructuredProxyPushSupplier::release (void) +TAO_Notify_StructuredProxyPushSupplier::release () { delete this; //@@ inform factory } CosNotifyChannelAdmin::ProxyType -TAO_Notify_StructuredProxyPushSupplier::MyType (void) +TAO_Notify_StructuredProxyPushSupplier::MyType () { return CosNotifyChannelAdmin::PUSH_STRUCTURED; } @@ -46,7 +46,7 @@ TAO_Notify_StructuredProxyPushSupplier::connect_structured_push_consumer (CosNot } void -TAO_Notify_StructuredProxyPushSupplier::disconnect_structured_push_supplier (void) +TAO_Notify_StructuredProxyPushSupplier::disconnect_structured_push_supplier () { TAO_Notify_StructuredProxyPushSupplier::Ptr guard( this ); @@ -55,7 +55,7 @@ TAO_Notify_StructuredProxyPushSupplier::disconnect_structured_push_supplier (voi } const char * -TAO_Notify_StructuredProxyPushSupplier::get_proxy_type_name (void) const +TAO_Notify_StructuredProxyPushSupplier::get_proxy_type_name () const { return "structured_proxy_push_supplier"; } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.cpp b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.cpp index 69d2a6334a3..cfd6d7b1246 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.cpp @@ -73,7 +73,7 @@ TAO_Notify_StructuredPushConsumer::init (CosNotifyComm::StructuredPushConsumer_p } void -TAO_Notify_StructuredPushConsumer::release (void) +TAO_Notify_StructuredPushConsumer::release () { delete this; //@@ inform factory @@ -161,7 +161,7 @@ TAO_Notify_StructuredPushConsumer::reconnect_from_consumer (TAO_Notify_Consumer* } ACE_CString -TAO_Notify_StructuredPushConsumer::get_ior (void) const +TAO_Notify_StructuredPushConsumer::get_ior () const { ACE_CString result; CORBA::ORB_var orb = TAO_Notify_PROPERTIES::instance()->orb(); @@ -178,7 +178,7 @@ TAO_Notify_StructuredPushConsumer::get_ior (void) const } CORBA::Object_ptr -TAO_Notify_StructuredPushConsumer::get_consumer (void) +TAO_Notify_StructuredPushConsumer::get_consumer () { return CosNotifyComm::StructuredPushConsumer::_duplicate (this->push_consumer_.in ()); } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.cpp b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.cpp index 92ab7846873..4eba099e25b 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.cpp @@ -22,14 +22,14 @@ TAO_Notify_StructuredPushSupplier::init (CosNotifyComm::StructuredPushSupplier_p } void -TAO_Notify_StructuredPushSupplier::release (void) +TAO_Notify_StructuredPushSupplier::release () { delete this; //@@ inform factory } ACE_CString -TAO_Notify_StructuredPushSupplier::get_ior (void) const +TAO_Notify_StructuredPushSupplier::get_ior () const { ACE_CString result; CORBA::ORB_var orb = TAO_Notify_PROPERTIES::instance()->orb(); @@ -46,7 +46,7 @@ TAO_Notify_StructuredPushSupplier::get_ior (void) const } CORBA::Object_ptr -TAO_Notify_StructuredPushSupplier::get_supplier (void) +TAO_Notify_StructuredPushSupplier::get_supplier () { return CosNotifyComm::StructuredPushSupplier::_duplicate (this->push_supplier_.in ()); } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Supplier.cpp b/TAO/orbsvcs/orbsvcs/Notify/Supplier.cpp index 98d4536a3ea..dca10de0f28 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Supplier.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Supplier.cpp @@ -28,7 +28,7 @@ TAO_Notify_Supplier::~TAO_Notify_Supplier () } TAO_Notify_Proxy* -TAO_Notify_Supplier::proxy (void) +TAO_Notify_Supplier::proxy () { return this->proxy_consumer (); } diff --git a/TAO/orbsvcs/orbsvcs/Notify/SupplierAdmin.cpp b/TAO/orbsvcs/orbsvcs/Notify/SupplierAdmin.cpp index 30406d7453a..cb20f513368 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/SupplierAdmin.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/SupplierAdmin.cpp @@ -27,7 +27,7 @@ TAO_Notify_ProxyConsumer_Find_Worker; typedef TAO_Notify_Seq_Worker_T<TAO_Notify_Proxy> TAO_Notify_Proxy_Seq_Worker; -TAO_Notify_SupplierAdmin::TAO_Notify_SupplierAdmin (void) +TAO_Notify_SupplierAdmin::TAO_Notify_SupplierAdmin () : TAO_Notify_Admin () { } @@ -54,26 +54,26 @@ TAO_Notify_SupplierAdmin::init (TAO_Notify_EventChannel *ec) } void -TAO_Notify_SupplierAdmin::_add_ref (void) +TAO_Notify_SupplierAdmin::_add_ref () { this->_incr_refcnt (); } void -TAO_Notify_SupplierAdmin::_remove_ref (void) +TAO_Notify_SupplierAdmin::_remove_ref () { this->_decr_refcnt (); } void -TAO_Notify_SupplierAdmin::release (void) +TAO_Notify_SupplierAdmin::release () { delete this; //@@ inform factory } void -TAO_Notify_SupplierAdmin::destroy (void) +TAO_Notify_SupplierAdmin::destroy () { this->shutdown (); this->ec_->remove (this); @@ -140,7 +140,7 @@ TAO_Notify_SupplierAdmin::set_qos (const CosNotification::QoSProperties & qos) } CosNotification::QoSProperties* -TAO_Notify_SupplierAdmin::get_qos (void) +TAO_Notify_SupplierAdmin::get_qos () { return this->TAO_Notify_Object::get_qos (); } @@ -177,7 +177,7 @@ TAO_Notify_SupplierAdmin::obtain_notification_push_consumer_with_qos (CosNotifyC CosEventChannelAdmin::ProxyPushConsumer_ptr -TAO_Notify_SupplierAdmin::obtain_push_consumer (void) +TAO_Notify_SupplierAdmin::obtain_push_consumer () { CosEventChannelAdmin::ProxyPushConsumer_var proxy = TAO_Notify_PROPERTIES::instance()->builder()->build_proxy (this); @@ -186,25 +186,25 @@ TAO_Notify_SupplierAdmin::obtain_push_consumer (void) } CosNotifyChannelAdmin::AdminID -TAO_Notify_SupplierAdmin::MyID (void) +TAO_Notify_SupplierAdmin::MyID () { return this->id (); } CosNotifyChannelAdmin::EventChannel_ptr -TAO_Notify_SupplierAdmin::MyChannel (void) +TAO_Notify_SupplierAdmin::MyChannel () { return this->ec_->_this (); } ::CosNotifyChannelAdmin::InterFilterGroupOperator -TAO_Notify_SupplierAdmin::MyOperator (void) +TAO_Notify_SupplierAdmin::MyOperator () { return this->filter_operator_; } CosNotifyChannelAdmin::ProxyIDSeq* -TAO_Notify_SupplierAdmin::push_consumers (void) +TAO_Notify_SupplierAdmin::push_consumers () { TAO_Notify_Proxy_Seq_Worker seq_worker; @@ -261,13 +261,13 @@ TAO_Notify_SupplierAdmin::get_filter (CosNotifyFilter::FilterID filter) } ::CosNotifyFilter::FilterIDSeq* -TAO_Notify_SupplierAdmin::get_all_filters (void) +TAO_Notify_SupplierAdmin::get_all_filters () { return this->filter_admin_.get_all_filters (); } void -TAO_Notify_SupplierAdmin::remove_all_filters (void) +TAO_Notify_SupplierAdmin::remove_all_filters () { this->filter_admin_.remove_all_filters (); } @@ -291,13 +291,13 @@ TAO_Notify_SupplierAdmin::find_proxy_consumer ( /************** UNIMPLEMENTED METHODS ***************/ CosEventChannelAdmin::ProxyPullConsumer_ptr -TAO_Notify_SupplierAdmin::obtain_pull_consumer (void) +TAO_Notify_SupplierAdmin::obtain_pull_consumer () { throw CORBA::NO_IMPLEMENT (); } CosNotifyChannelAdmin::ProxyIDSeq* -TAO_Notify_SupplierAdmin::pull_consumers (void) +TAO_Notify_SupplierAdmin::pull_consumers () { throw CORBA::NO_IMPLEMENT (); } diff --git a/TAO/orbsvcs/orbsvcs/Notify/ThreadPool_Task.cpp b/TAO/orbsvcs/orbsvcs/Notify/ThreadPool_Task.cpp index eebc10e0b92..7af192a0761 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/ThreadPool_Task.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/ThreadPool_Task.cpp @@ -11,7 +11,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_ThreadPool_Task::TAO_Notify_ThreadPool_Task (void) +TAO_Notify_ThreadPool_Task::TAO_Notify_ThreadPool_Task () : shutdown_ (false) { } @@ -27,13 +27,13 @@ TAO_Notify_ThreadPool_Task::init (int argc, ACE_TCHAR **argv) } TAO_Notify_Timer* -TAO_Notify_ThreadPool_Task::timer (void) +TAO_Notify_ThreadPool_Task::timer () { return this->timer_.get(); } TAO_Notify_Buffering_Strategy* -TAO_Notify_ThreadPool_Task::buffering_strategy (void) +TAO_Notify_ThreadPool_Task::buffering_strategy () { return this->buffering_strategy_.get (); } @@ -116,7 +116,7 @@ TAO_Notify_ThreadPool_Task::execute (TAO_Notify_Method_Request& method_request) } int -TAO_Notify_ThreadPool_Task::svc (void) +TAO_Notify_ThreadPool_Task::svc () { TAO_Notify_Method_Request_Queueable* method_request = 0; @@ -163,7 +163,7 @@ TAO_Notify_ThreadPool_Task::svc (void) } void -TAO_Notify_ThreadPool_Task::shutdown (void) +TAO_Notify_ThreadPool_Task::shutdown () { if (this->shutdown_) { @@ -176,7 +176,7 @@ TAO_Notify_ThreadPool_Task::shutdown (void) } void -TAO_Notify_ThreadPool_Task::release (void) +TAO_Notify_ThreadPool_Task::release () { delete this; } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Timer_Queue.cpp b/TAO/orbsvcs/orbsvcs/Notify/Timer_Queue.cpp index ed37ea1caca..a31eefeea3b 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Timer_Queue.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Timer_Queue.cpp @@ -2,7 +2,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_Timer_Queue::TAO_Notify_Timer_Queue (void) +TAO_Notify_Timer_Queue::TAO_Notify_Timer_Queue () { } @@ -11,7 +11,7 @@ TAO_Notify_Timer_Queue::~TAO_Notify_Timer_Queue () } void -TAO_Notify_Timer_Queue::release (void) +TAO_Notify_Timer_Queue::release () { delete this; //@@ inform factory @@ -36,7 +36,7 @@ TAO_Notify_Timer_Queue::cancel_timer (long timer_id) } ACE_Timer_Queue& -TAO_Notify_Timer_Queue::impl (void) +TAO_Notify_Timer_Queue::impl () { return this->timer_queue_; } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Timer_Reactor.cpp b/TAO/orbsvcs/orbsvcs/Notify/Timer_Reactor.cpp index ef42a417287..ad7e3990a49 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Timer_Reactor.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Timer_Reactor.cpp @@ -6,7 +6,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_Timer_Reactor::TAO_Notify_Timer_Reactor (void) +TAO_Notify_Timer_Reactor::TAO_Notify_Timer_Reactor () :reactor_ (0) { // Get the ORB @@ -20,7 +20,7 @@ TAO_Notify_Timer_Reactor::~TAO_Notify_Timer_Reactor () } void -TAO_Notify_Timer_Reactor::release (void) +TAO_Notify_Timer_Reactor::release () { delete this; //@@ inform factory diff --git a/TAO/orbsvcs/orbsvcs/Notify/Topology_Loader.cpp b/TAO/orbsvcs/orbsvcs/Notify/Topology_Loader.cpp index d061c815db5..66433ff114b 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Topology_Loader.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Topology_Loader.cpp @@ -11,7 +11,7 @@ TAO_Notify::Topology_Loader::~Topology_Loader () } void -TAO_Notify::Topology_Loader::close (void) +TAO_Notify::Topology_Loader::close () { } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Topology_Object.cpp b/TAO/orbsvcs/orbsvcs/Notify/Topology_Object.cpp index ec88590b269..a330f413c38 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Topology_Object.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Topology_Object.cpp @@ -15,12 +15,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL namespace TAO_Notify { - Topology_Savable::~Topology_Savable (void) + Topology_Savable::~Topology_Savable () { } void - Topology_Savable::reconnect (void) + Topology_Savable::reconnect () { } @@ -76,14 +76,14 @@ namespace TAO_Notify } bool - Topology_Object::self_change (void) + Topology_Object::self_change () { this->self_changed_ = true; return send_change (); } bool - Topology_Object::send_change (void) + Topology_Object::send_change () { bool saving = false; if (is_persistent ()) @@ -107,7 +107,7 @@ namespace TAO_Notify } bool - Topology_Object::send_deletion_change (void) + Topology_Object::send_deletion_change () { bool saving = false; if (is_persistent ()) @@ -120,7 +120,7 @@ namespace TAO_Notify } bool - Topology_Object::change_to_parent (void) + Topology_Object::change_to_parent () { bool result = false; Topology_Parent * parent = this->topology_parent(); diff --git a/TAO/orbsvcs/orbsvcs/Notify/Topology_Saver.cpp b/TAO/orbsvcs/orbsvcs/Notify/Topology_Saver.cpp index f8ba3dd7751..fc251d262a1 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Topology_Saver.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Topology_Saver.cpp @@ -7,7 +7,7 @@ TAO_Notify::Topology_Saver::~Topology_Saver () } void -TAO_Notify::Topology_Saver::close (void) +TAO_Notify::Topology_Saver::close () { } diff --git a/TAO/orbsvcs/orbsvcs/Notify/Validate_Client_Task.cpp b/TAO/orbsvcs/orbsvcs/Notify/Validate_Client_Task.cpp index 861ebfd7ef5..9a448d90ba1 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Validate_Client_Task.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Validate_Client_Task.cpp @@ -27,13 +27,13 @@ TAO_Notify_validate_client_Task:: } -TAO_Notify_validate_client_Task::~TAO_Notify_validate_client_Task (void) +TAO_Notify_validate_client_Task::~TAO_Notify_validate_client_Task () { } int -TAO_Notify_validate_client_Task::svc (void) +TAO_Notify_validate_client_Task::svc () { ACE_Time_Value due = ACE_OS::gettimeofday () + this->delay_; while (! this->shutdown_) @@ -74,7 +74,7 @@ TAO_Notify_validate_client_Task::svc (void) void -TAO_Notify_validate_client_Task::shutdown (void) +TAO_Notify_validate_client_Task::shutdown () { { ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, *(this->condition_.mutex())); diff --git a/TAO/orbsvcs/orbsvcs/Notify/Worker_Task.cpp b/TAO/orbsvcs/orbsvcs/Notify/Worker_Task.cpp index c9fdfc61130..2042dc05389 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Worker_Task.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/Worker_Task.cpp @@ -2,7 +2,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Notify_Worker_Task::TAO_Notify_Worker_Task (void) +TAO_Notify_Worker_Task::TAO_Notify_Worker_Task () { } diff --git a/TAO/orbsvcs/orbsvcs/Notify/XML_Loader.cpp b/TAO/orbsvcs/orbsvcs/Notify/XML_Loader.cpp index 5285d07672b..a0c4b0c7f22 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/XML_Loader.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/XML_Loader.cpp @@ -77,7 +77,7 @@ namespace TAO_Notify if (result) { this->live_ = false; - auto_ptr<ACEXML_FileCharStream> fstm (new ACEXML_FileCharStream); + std::unique_ptr<ACEXML_FileCharStream> fstm (new ACEXML_FileCharStream); // xml input source will take ownership if (fstm->open (this->file_name_.c_str ()) == 0) @@ -127,7 +127,7 @@ namespace TAO_Notify ACE_ASSERT (root != 0); this->live_ = true; - auto_ptr<ACEXML_FileCharStream> fstm (new ACEXML_FileCharStream); + std::unique_ptr<ACEXML_FileCharStream> fstm (new ACEXML_FileCharStream); // xml input source will take ownership if (fstm->open (this->file_name_.c_str ()) == 0) diff --git a/TAO/orbsvcs/orbsvcs/Notify/XML_Saver.cpp b/TAO/orbsvcs/orbsvcs/Notify/XML_Saver.cpp index 4f7207d4118..881c2be3515 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/XML_Saver.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/XML_Saver.cpp @@ -41,7 +41,7 @@ namespace TAO_Notify } void - XML_Saver::close (void) + XML_Saver::close () { if (this->close_out_ && this->output_ != 0) { diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/Fragments_Cleanup_Strategy.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/Fragments_Cleanup_Strategy.cpp index 456032c58ab..56258982147 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/Fragments_Cleanup_Strategy.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/Fragments_Cleanup_Strategy.cpp @@ -70,7 +70,7 @@ namespace namespace TAO_PG { - Fragments_Cleanup_Strategy::~Fragments_Cleanup_Strategy (void) + Fragments_Cleanup_Strategy::~Fragments_Cleanup_Strategy () { } diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/GOA.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/GOA.cpp index 22845604ce4..a409ee0873c 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/GOA.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/GOA.cpp @@ -82,7 +82,7 @@ TAO_GOA::TAO_GOA (const TAO_Root_POA::String &name, { } -TAO_GOA::~TAO_GOA (void) +TAO_GOA::~TAO_GOA () { } @@ -211,7 +211,7 @@ TAO_GOA::create_request_processing_policy (PortableServer::RequestProcessingPoli #endif /* TAO_HAS_MINIMUM_POA == 0 */ char * -TAO_GOA::the_name (void) +TAO_GOA::the_name () { char * name = this->TAO_Regular_POA::the_name (); @@ -219,7 +219,7 @@ TAO_GOA::the_name (void) } PortableServer::POA_ptr -TAO_GOA::the_parent (void) +TAO_GOA::the_parent () { PortableServer::POA_ptr parent = this->TAO_Regular_POA::the_parent (); @@ -227,7 +227,7 @@ TAO_GOA::the_parent (void) } PortableServer::POAList * -TAO_GOA::the_children (void) +TAO_GOA::the_children () { PortableServer::POAList *children = this->TAO_Regular_POA::the_children (); @@ -235,7 +235,7 @@ TAO_GOA::the_children (void) } PortableServer::POAManager_ptr -TAO_GOA::the_POAManager (void) +TAO_GOA::the_POAManager () { PortableServer::POAManager_ptr poa_manager = this->TAO_Regular_POA::the_POAManager (); @@ -246,7 +246,7 @@ TAO_GOA::the_POAManager (void) #if (TAO_HAS_MINIMUM_POA == 0) PortableServer::AdapterActivator_ptr -TAO_GOA::the_activator (void) +TAO_GOA::the_activator () { PortableServer::AdapterActivator_ptr activator = this->TAO_Regular_POA::the_activator (); @@ -260,7 +260,7 @@ TAO_GOA::the_activator (PortableServer::AdapterActivator_ptr adapter_activator) } PortableServer::ServantManager_ptr -TAO_GOA::get_servant_manager (void) +TAO_GOA::get_servant_manager () { PortableServer::ServantManager_ptr servant_manager = this->TAO_Regular_POA::get_servant_manager (); @@ -274,7 +274,7 @@ TAO_GOA::set_servant_manager (PortableServer::ServantManager_ptr imgr) } PortableServer::Servant -TAO_GOA::get_servant (void) +TAO_GOA::get_servant () { PortableServer::Servant servant = this->TAO_Regular_POA::get_servant (); @@ -378,7 +378,7 @@ TAO_GOA::id_to_reference (const PortableServer::ObjectId &oid) } CORBA::OctetSeq * -TAO_GOA::id (void) +TAO_GOA::id () { return this->TAO_Regular_POA::id (); } diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/MIOP.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/MIOP.cpp index 444629713cc..3522317ef20 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/MIOP.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/MIOP.cpp @@ -10,7 +10,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL namespace TAO { /*static*/ int - MIOP_Loader::Initializer (void) + MIOP_Loader::Initializer () { ACE_Service_Config::process_directive ( ace_svc_desc_TAO_PortableGroup_Loader); diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Default_Property_Validator.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Default_Property_Validator.cpp index d5d09e51d8e..92743a6b5b8 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Default_Property_Validator.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Default_Property_Validator.cpp @@ -3,7 +3,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_PG_Default_Property_Validator::TAO_PG_Default_Property_Validator (void) +TAO_PG_Default_Property_Validator::TAO_PG_Default_Property_Validator () : membership_ (1), factories_ (1) { @@ -14,7 +14,7 @@ TAO_PG_Default_Property_Validator::TAO_PG_Default_Property_Validator (void) this->factories_[0].id = CORBA::string_dup ("org.omg.PortableGroup.Factories"); } -TAO_PG_Default_Property_Validator::~TAO_PG_Default_Property_Validator (void) +TAO_PG_Default_Property_Validator::~TAO_PG_Default_Property_Validator () { } diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_FactoryRegistry.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_FactoryRegistry.cpp index 87f2526b88c..8be0a079531 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_FactoryRegistry.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_FactoryRegistry.cpp @@ -56,7 +56,7 @@ TAO::PG_FactoryRegistry::PG_FactoryRegistry (const char * name) { } -TAO::PG_FactoryRegistry::~PG_FactoryRegistry (void) +TAO::PG_FactoryRegistry::~PG_FactoryRegistry () { } @@ -111,7 +111,7 @@ const char * TAO::PG_FactoryRegistry::identity () const return this->identity_.c_str(); } -void TAO::PG_FactoryRegistry::_remove_ref (void) +void TAO::PG_FactoryRegistry::_remove_ref () { this->quit_state_ = GONE; } @@ -135,7 +135,7 @@ int TAO::PG_FactoryRegistry::idle (int & result) } -int TAO::PG_FactoryRegistry::fini (void) +int TAO::PG_FactoryRegistry::fini () { if (this->ior_output_file_ != 0) { @@ -284,7 +284,7 @@ void TAO::PG_FactoryRegistry::register_factory ( METHOD_ENTRY(TAO::PG_FactoryRegistry::register_factory); RoleInfo * role_info = 0; - auto_ptr<RoleInfo> safe_entry; + std::unique_ptr<RoleInfo> safe_entry; if (this->registry_.find(role, role_info) != 0) { ORBSVCS_DEBUG(( LM_DEBUG, diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.cpp index d4f2fdc2541..78225419532 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.cpp @@ -24,7 +24,7 @@ TAO_PG_GenericFactory::TAO_PG_GenericFactory ( this->object_group_manager_.generic_factory (this); } -TAO_PG_GenericFactory::~TAO_PG_GenericFactory (void) +TAO_PG_GenericFactory::~TAO_PG_GenericFactory () { TAO_PG_Factory_Map::iterator end = this->factory_map_.end (); diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Factory.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Factory.cpp index 4d5b68919d8..7d9d138d90e 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Factory.cpp @@ -59,7 +59,7 @@ TAO::PG_Group_Factory::PG_Group_Factory () { } -TAO::PG_Group_Factory::~PG_Group_Factory (void) +TAO::PG_Group_Factory::~PG_Group_Factory () { for (Group_Map_Iterator it = this->group_map_.begin (); it != this->group_map_.end (); @@ -325,7 +325,7 @@ TAO::PG_Group_Factory::groups_at_location ( } PortableGroup::ObjectGroups * -TAO::PG_Group_Factory::all_groups (void) +TAO::PG_Group_Factory::all_groups () { Group_Map & group_map = this->get_group_map (); CORBA::ULong const upper_limit = static_cast<CORBA::ULong> (group_map.current_size ()); diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Guard.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Guard.cpp index 9ec99126a3c..66d40b0fe15 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Guard.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Guard.cpp @@ -19,7 +19,7 @@ TAO_PG_Group_Guard::TAO_PG_Group_Guard ( { } -TAO_PG_Group_Guard::~TAO_PG_Group_Guard (void) +TAO_PG_Group_Guard::~TAO_PG_Group_Guard () { if (!this->released_) { @@ -41,7 +41,7 @@ TAO_PG_Group_Guard::~TAO_PG_Group_Guard (void) } void -TAO_PG_Group_Guard::release (void) +TAO_PG_Group_Guard::release () { this->released_ = true; } diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroupManager.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroupManager.cpp index b1705e94a87..72065e982b1 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroupManager.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroupManager.cpp @@ -12,7 +12,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_PG_ObjectGroupManager::TAO_PG_ObjectGroupManager (void) +TAO_PG_ObjectGroupManager::TAO_PG_ObjectGroupManager () : poa_ (), object_group_map_ (TAO_PG_MAX_OBJECT_GROUPS), location_map_ (TAO_PG_MAX_LOCATIONS), @@ -21,7 +21,7 @@ TAO_PG_ObjectGroupManager::TAO_PG_ObjectGroupManager (void) { } -TAO_PG_ObjectGroupManager::~TAO_PG_ObjectGroupManager (void) +TAO_PG_ObjectGroupManager::~TAO_PG_ObjectGroupManager () { for (TAO_PG_Location_Map::iterator i = this->location_map_.begin (); i != this->location_map_.end (); @@ -171,7 +171,7 @@ TAO_PG_ObjectGroupManager::add_member_i ( ENOMEM), CORBA::COMPLETED_NO)); - auto_ptr<TAO_PG_ObjectGroup_Array> safe_groups (groups); + std::unique_ptr<TAO_PG_ObjectGroup_Array> safe_groups (groups); // This should not fail! if (this->location_map_.bind (the_location, groups) != 0) @@ -490,7 +490,7 @@ TAO_PG_ObjectGroupManager::create_object_group ( ENOMEM), CORBA::COMPLETED_NO)); - auto_ptr<TAO_PG_ObjectGroup_Map_Entry> safe_group_entry (group_entry); + std::unique_ptr<TAO_PG_ObjectGroup_Map_Entry> safe_group_entry (group_entry); // Set the RepositoryId associated with the created ObjectGroup_Map // entry. diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Adapter_Factory.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Adapter_Factory.cpp index 4586255f5d4..3e660dde88e 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Adapter_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Adapter_Factory.cpp @@ -6,7 +6,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_PG_Object_Adapter_Factory::TAO_PG_Object_Adapter_Factory (void) +TAO_PG_Object_Adapter_Factory::TAO_PG_Object_Adapter_Factory () { } diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.cpp index 3b2a7dfc988..802d3f6f1f9 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.cpp @@ -41,7 +41,7 @@ TAO::PG_Object_Group::MemberInfo::MemberInfo ( { } -TAO::PG_Object_Group::MemberInfo::~MemberInfo (void) +TAO::PG_Object_Group::MemberInfo::~MemberInfo () { if( ! CORBA::is_nil (this->factory_.in())) { @@ -103,7 +103,7 @@ TAO::PG_Object_Group::PG_Object_Group ( { } -TAO::PG_Object_Group::~PG_Object_Group (void) +TAO::PG_Object_Group::~PG_Object_Group () { if (TAO_debug_level > 3) ORBSVCS_DEBUG ((LM_DEBUG, @@ -134,7 +134,7 @@ dump_ior (const char * base, #endif // may want this again someday PortableGroup::ObjectGroup_ptr -TAO::PG_Object_Group::reference (void) const +TAO::PG_Object_Group::reference () const { ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, guard, @@ -155,7 +155,7 @@ TAO::PG_Object_Group::get_group_specific_factories ( } const PortableGroup::Location & -TAO::PG_Object_Group::get_primary_location (void) +TAO::PG_Object_Group::get_primary_location () { ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, guard, @@ -450,7 +450,7 @@ TAO::PG_Object_Group::remove_member ( PortableGroup::ObjectGroupId -TAO::PG_Object_Group::get_object_group_id (void) const +TAO::PG_Object_Group::get_object_group_id () const { ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, guard, @@ -480,7 +480,7 @@ TAO::PG_Object_Group::get_properties ( PortableGroup::TypeId -TAO::PG_Object_Group::get_type_id (void) const +TAO::PG_Object_Group::get_type_id () const { ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, guard, @@ -494,7 +494,7 @@ TAO::PG_Object_Group::get_type_id (void) const // Internal method int -TAO::PG_Object_Group::increment_version (void) +TAO::PG_Object_Group::increment_version () { // assume internals is locked int result = 0; @@ -520,7 +520,7 @@ TAO::PG_Object_Group::increment_version (void) ////////////////// // Internal method void -TAO::PG_Object_Group::distribute_iogr (void) +TAO::PG_Object_Group::distribute_iogr () { // Check if the object group is configured to distribute if (!this->distribute_) @@ -584,7 +584,7 @@ TAO::PG_Object_Group::distribute_iogr (void) } PortableGroup::Locations * -TAO::PG_Object_Group::locations_of_members (void) +TAO::PG_Object_Group::locations_of_members () { ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, guard, @@ -640,7 +640,7 @@ TAO::PG_Object_Group::get_member_reference ( PortableGroup::MembershipStyleValue -TAO::PG_Object_Group::get_membership_style (void) const +TAO::PG_Object_Group::get_membership_style () const { PortableGroup::MembershipStyleValue membership_style = 0; if (!TAO::find (properties_, @@ -654,7 +654,7 @@ TAO::PG_Object_Group::get_membership_style (void) const PortableGroup::MinimumNumberMembersValue -TAO::PG_Object_Group::get_minimum_number_members (void) const +TAO::PG_Object_Group::get_minimum_number_members () const { PortableGroup::MinimumNumberMembersValue minimum_number_members = 0; if (!TAO::find (properties_, @@ -667,7 +667,7 @@ TAO::PG_Object_Group::get_minimum_number_members (void) const } PortableGroup::InitialNumberMembersValue -TAO::PG_Object_Group::get_initial_number_members (void) const +TAO::PG_Object_Group::get_initial_number_members () const { PortableGroup::InitialNumberMembersValue initial_number_members = 0; if (!TAO::find (properties_, @@ -859,7 +859,7 @@ TAO::PG_Object_Group::create_members (size_t count) } void -TAO::PG_Object_Group::initial_populate (void) +TAO::PG_Object_Group::initial_populate () { ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->internals_); @@ -876,7 +876,7 @@ TAO::PG_Object_Group::initial_populate (void) } void -TAO::PG_Object_Group::minimum_populate (void) +TAO::PG_Object_Group::minimum_populate () { ACE_GUARD (TAO_SYNCH_MUTEX, guard, this->internals_); @@ -913,13 +913,13 @@ TAO::PG_Object_Group::set_name (const char* group_name) } const char* -TAO::PG_Object_Group::get_name (void) +TAO::PG_Object_Group::get_name () { return group_name_; } void -TAO::PG_Object_Group::clear_members_map (void) +TAO::PG_Object_Group::clear_members_map () { for (MemberMap_Iterator it = this->members_.begin(); it != this->members_.end(); diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group_Storable.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group_Storable.cpp index e27cc9adfbb..a1822362dce 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group_Storable.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group_Storable.cpp @@ -307,7 +307,7 @@ TAO::PG_Object_Group_Storable::PG_Object_Group_Storable ( } } -TAO::PG_Object_Group_Storable::~PG_Object_Group_Storable (void) +TAO::PG_Object_Group_Storable::~PG_Object_Group_Storable () { if (destroyed_) { @@ -330,7 +330,7 @@ TAO::PG_Object_Group_Storable::set_destroyed (bool destroyed) } const PortableGroup::Location & -TAO::PG_Object_Group_Storable::get_primary_location (void) +TAO::PG_Object_Group_Storable::get_primary_location () { Object_Group_File_Guard fg (*this, SFG::ACCESSOR); return TAO::PG_Object_Group::get_primary_location (); @@ -369,7 +369,7 @@ TAO::PG_Object_Group_Storable::remove_member ( PortableGroup::Locations * -TAO::PG_Object_Group_Storable::locations_of_members (void) +TAO::PG_Object_Group_Storable::locations_of_members () { Object_Group_File_Guard fg (*this, SFG::ACCESSOR); return PG_Object_Group::locations_of_members (); @@ -397,14 +397,14 @@ TAO::PG_Object_Group_Storable::set_name (const char* group_name) } const char* -TAO::PG_Object_Group_Storable::get_name (void) +TAO::PG_Object_Group_Storable::get_name () { Object_Group_File_Guard fg (*this, SFG::ACCESSOR); return PG_Object_Group::get_name (); } void -TAO::PG_Object_Group_Storable::initial_populate (void) +TAO::PG_Object_Group_Storable::initial_populate () { Object_Group_File_Guard fg (*this, SFG::MUTATOR); PG_Object_Group::initial_populate (); @@ -412,7 +412,7 @@ TAO::PG_Object_Group_Storable::initial_populate (void) } void -TAO::PG_Object_Group_Storable::minimum_populate (void) +TAO::PG_Object_Group_Storable::minimum_populate () { Object_Group_File_Guard fg (*this, SFG::MUTATOR); PG_Object_Group::minimum_populate (); @@ -650,7 +650,7 @@ TAO::PG_Object_Group_Storable::stale () } void -TAO::PG_Object_Group_Storable::state_written (void) +TAO::PG_Object_Group_Storable::state_written () { // No-op. Overridden by derived class. } diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Servant_Dispatcher.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Servant_Dispatcher.cpp index 4e73825d981..80a0e8106a7 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Servant_Dispatcher.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Servant_Dispatcher.cpp @@ -3,7 +3,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_PG_Servant_Dispatcher::~TAO_PG_Servant_Dispatcher (void) +TAO_PG_Servant_Dispatcher::~TAO_PG_Servant_Dispatcher () { } diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Acceptor_Registry.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Acceptor_Registry.cpp index e3555148867..8b73a3b75d4 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Acceptor_Registry.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Acceptor_Registry.cpp @@ -12,11 +12,11 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_PortableGroup_Acceptor_Registry::TAO_PortableGroup_Acceptor_Registry (void) +TAO_PortableGroup_Acceptor_Registry::TAO_PortableGroup_Acceptor_Registry () { } -TAO_PortableGroup_Acceptor_Registry::~TAO_PortableGroup_Acceptor_Registry (void) +TAO_PortableGroup_Acceptor_Registry::~TAO_PortableGroup_Acceptor_Registry () { // Free the memory for the endpoints. Entry *entry; diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.cpp index 4fd1aabc5d6..94e4938aae6 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.cpp @@ -8,7 +8,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_PortableGroup_Loader::TAO_PortableGroup_Loader (void) +TAO_PortableGroup_Loader::TAO_PortableGroup_Loader () { } @@ -47,7 +47,7 @@ TAO_PortableGroup_Loader::init (int /*argc*/, } int -TAO_PortableGroup_Loader::Initializer (void) +TAO_PortableGroup_Loader::Initializer () { ACE_Service_Config::process_directive (ace_svc_desc_TAO_PortableGroup_Loader); ACE_Service_Config::process_directive (ace_svc_desc_TAO_MIOP_Resource_Factory); diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Request_Dispatcher.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Request_Dispatcher.cpp index ed7036f2259..4e2c4c5dfe6 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Request_Dispatcher.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Request_Dispatcher.cpp @@ -7,7 +7,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -PortableGroup_Request_Dispatcher::~PortableGroup_Request_Dispatcher (void) +PortableGroup_Request_Dispatcher::~PortableGroup_Request_Dispatcher () { } diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.cpp index 225346a2fa5..8d40234ec16 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.cpp @@ -11,7 +11,7 @@ TAO_Portable_Group_Map::TAO_Portable_Group_Map () } /// Destructor. -TAO_Portable_Group_Map::~TAO_Portable_Group_Map (void) +TAO_Portable_Group_Map::~TAO_Portable_Group_Map () { for (Iterator i = this->map_.begin (); i != this->map_.end (); diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.cpp index 451189b1a2c..914c86dad84 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.cpp @@ -28,7 +28,7 @@ TAO_UIPMC_Acceptor::TAO_UIPMC_Acceptor ( { } -TAO_UIPMC_Acceptor::~TAO_UIPMC_Acceptor (void) +TAO_UIPMC_Acceptor::~TAO_UIPMC_Acceptor () { // Make sure we are closed before we start destroying the // strategies. @@ -70,7 +70,7 @@ TAO_UIPMC_Acceptor::is_collocated (const TAO_Endpoint *) } int -TAO_UIPMC_Acceptor::close (void) +TAO_UIPMC_Acceptor::close () { return 0; } @@ -363,7 +363,7 @@ TAO_UIPMC_Acceptor::dotted_decimal_address ( } CORBA::ULong -TAO_UIPMC_Acceptor::endpoint_count (void) +TAO_UIPMC_Acceptor::endpoint_count () { return this->endpoint_count_; } diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connection_Handler.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connection_Handler.cpp index 8a4113bcbdd..600caa4254e 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connection_Handler.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connection_Handler.cpp @@ -46,7 +46,7 @@ TAO_UIPMC_Connection_Handler::TAO_UIPMC_Connection_Handler (TAO_ORB_Core *orb_co this->transport (specific_transport); } -TAO_UIPMC_Connection_Handler::~TAO_UIPMC_Connection_Handler (void) +TAO_UIPMC_Connection_Handler::~TAO_UIPMC_Connection_Handler () { delete this->transport (); int const result = @@ -62,7 +62,7 @@ TAO_UIPMC_Connection_Handler::~TAO_UIPMC_Connection_Handler (void) } const ACE_INET_Addr & -TAO_UIPMC_Connection_Handler::addr (void) const +TAO_UIPMC_Connection_Handler::addr () const { return this->addr_; } @@ -74,7 +74,7 @@ TAO_UIPMC_Connection_Handler::addr (const ACE_INET_Addr &addr) } const ACE_INET_Addr & -TAO_UIPMC_Connection_Handler::local_addr (void) const +TAO_UIPMC_Connection_Handler::local_addr () const { return this->local_addr_; } @@ -86,7 +86,7 @@ TAO_UIPMC_Connection_Handler::local_addr (const ACE_INET_Addr &addr) } u_long -TAO_UIPMC_Connection_Handler::send_hi_water_mark (void) const +TAO_UIPMC_Connection_Handler::send_hi_water_mark () const { return this->send_hi_water_mark_; } @@ -321,13 +321,13 @@ TAO_UIPMC_Connection_Handler::open (void*) } int -TAO_UIPMC_Connection_Handler::resume_handler (void) +TAO_UIPMC_Connection_Handler::resume_handler () { return ACE_Event_Handler::ACE_APPLICATION_RESUMES_HANDLER; } int -TAO_UIPMC_Connection_Handler::close_connection (void) +TAO_UIPMC_Connection_Handler::close_connection () { return this->close_connection_eh (this); } @@ -395,13 +395,13 @@ TAO_UIPMC_Connection_Handler::close (u_long flags) } int -TAO_UIPMC_Connection_Handler::release_os_resources (void) +TAO_UIPMC_Connection_Handler::release_os_resources () { return this->peer ().close (); } int -TAO_UIPMC_Connection_Handler::add_transport_to_cache (void) +TAO_UIPMC_Connection_Handler::add_transport_to_cache () { ACE_INET_Addr addr; diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connector.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connector.cpp index 0f810879769..7dfe87e1e95 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connector.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connector.cpp @@ -16,12 +16,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_UIPMC_Connector::TAO_UIPMC_Connector (void) +TAO_UIPMC_Connector::TAO_UIPMC_Connector () : TAO_Connector (IOP::TAG_UIPMC) { } -TAO_UIPMC_Connector::~TAO_UIPMC_Connector (void) +TAO_UIPMC_Connector::~TAO_UIPMC_Connector () { } @@ -38,7 +38,7 @@ TAO_UIPMC_Connector::open (TAO_ORB_Core *orb_core) } int -TAO_UIPMC_Connector::close (void) +TAO_UIPMC_Connector::close () { return 0; } @@ -293,7 +293,7 @@ TAO_UIPMC_Connector::create_profile (TAO_InputCDR& cdr) } TAO_Profile * -TAO_UIPMC_Connector::make_profile (void) +TAO_UIPMC_Connector::make_profile () { // The endpoint should be of the form: // N.n@host:port/object_key @@ -336,7 +336,7 @@ TAO_UIPMC_Connector::check_prefix (const char *endpoint) } char -TAO_UIPMC_Connector::object_key_delimiter (void) const +TAO_UIPMC_Connector::object_key_delimiter () const { return TAO_UIPMC_Profile::object_key_delimiter_; } diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.cpp index a2eeaa473e3..24d0573bb7d 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.cpp @@ -16,7 +16,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_UIPMC_Endpoint::TAO_UIPMC_Endpoint (void) +TAO_UIPMC_Endpoint::TAO_UIPMC_Endpoint () : TAO_Endpoint (IOP::TAG_UIPMC), host_ (), port_ (0), @@ -55,7 +55,7 @@ TAO_UIPMC_Endpoint::TAO_UIPMC_Endpoint (const CORBA::Octet class_d_address[4], this->update_object_addr (); } -TAO_UIPMC_Endpoint::~TAO_UIPMC_Endpoint (void) +TAO_UIPMC_Endpoint::~TAO_UIPMC_Endpoint () { delete this->next_; } @@ -72,7 +72,7 @@ TAO_UIPMC_Endpoint::object_addr (const ACE_INET_Addr &addr) } const char * -TAO_UIPMC_Endpoint::host (void) const +TAO_UIPMC_Endpoint::host () const { return this->host_.in (); } @@ -112,13 +112,13 @@ TAO_UIPMC_Endpoint::addr_to_string (char *buffer, size_t length) } TAO_Endpoint * -TAO_UIPMC_Endpoint::next (void) +TAO_UIPMC_Endpoint::next () { return this->next_; } TAO_Endpoint * -TAO_UIPMC_Endpoint::duplicate (void) +TAO_UIPMC_Endpoint::duplicate () { TAO_UIPMC_Endpoint *endpoint = 0; @@ -144,7 +144,7 @@ TAO_UIPMC_Endpoint::is_equivalent (const TAO_Endpoint *other_endpoint) } CORBA::ULong -TAO_UIPMC_Endpoint::hash (void) +TAO_UIPMC_Endpoint::hash () { if (this->hash_val_ != 0) return this->hash_val_; @@ -239,14 +239,14 @@ TAO_UIPMC_Endpoint::preferred_interfaces (TAO_ORB_Core *oc) } bool -TAO_UIPMC_Endpoint::is_preferred_network (void) const +TAO_UIPMC_Endpoint::is_preferred_network () const { return (this->preferred_path_.host.in () != 0 && this->preferred_path_.host.in ()[0] != 0); } const char * -TAO_UIPMC_Endpoint::preferred_network (void) const +TAO_UIPMC_Endpoint::preferred_network () const { return this->preferred_path_.host.in (); } diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Factory.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Factory.cpp index 465b82b3e27..a520483be08 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Factory.cpp @@ -12,7 +12,7 @@ static const char the_prefix[] = "uipmc"; TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_UIPMC_Protocol_Factory::TAO_UIPMC_Protocol_Factory (void) +TAO_UIPMC_Protocol_Factory::TAO_UIPMC_Protocol_Factory () : TAO_Protocol_Factory (IOP::TAG_UIPMC), // major_ (TAO_DEF_GIOP_MAJOR), // minor_ (TAO_DEF_GIOP_MINOR), @@ -21,7 +21,7 @@ TAO_UIPMC_Protocol_Factory::TAO_UIPMC_Protocol_Factory (void) { } -TAO_UIPMC_Protocol_Factory::~TAO_UIPMC_Protocol_Factory (void) +TAO_UIPMC_Protocol_Factory::~TAO_UIPMC_Protocol_Factory () { } @@ -33,19 +33,19 @@ TAO_UIPMC_Protocol_Factory::match_prefix (const ACE_CString &prefix) } const char * -TAO_UIPMC_Protocol_Factory::prefix (void) const +TAO_UIPMC_Protocol_Factory::prefix () const { return ::the_prefix; } char -TAO_UIPMC_Protocol_Factory::options_delimiter (void) const +TAO_UIPMC_Protocol_Factory::options_delimiter () const { return '/'; } TAO_Acceptor * -TAO_UIPMC_Protocol_Factory::make_acceptor (void) +TAO_UIPMC_Protocol_Factory::make_acceptor () { TAO_Acceptor *acceptor = 0; ACE_NEW_RETURN (acceptor, @@ -127,7 +127,7 @@ TAO_UIPMC_Protocol_Factory::init (int argc, } TAO_Connector * -TAO_UIPMC_Protocol_Factory::make_connector (void) +TAO_UIPMC_Protocol_Factory::make_connector () { // This is done only once when the library is loaded and // only on the client side. @@ -141,7 +141,7 @@ TAO_UIPMC_Protocol_Factory::make_connector (void) } int -TAO_UIPMC_Protocol_Factory::requires_explicit_endpoint (void) const +TAO_UIPMC_Protocol_Factory::requires_explicit_endpoint () const { // A multicast endpoint can't be picked automatically in the // pluggable protocol framework. It must be determined from diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Mcast_Connection_Handler.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Mcast_Connection_Handler.cpp index ada29cd487f..23535a98d17 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Mcast_Connection_Handler.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Mcast_Connection_Handler.cpp @@ -56,7 +56,7 @@ TAO_UIPMC_Mcast_Connection_Handler::TAO_UIPMC_Mcast_Connection_Handler ( this->transport (specific_transport); } -TAO_UIPMC_Mcast_Connection_Handler::~TAO_UIPMC_Mcast_Connection_Handler (void) +TAO_UIPMC_Mcast_Connection_Handler::~TAO_UIPMC_Mcast_Connection_Handler () { delete this->transport (); int const result = @@ -72,7 +72,7 @@ TAO_UIPMC_Mcast_Connection_Handler::~TAO_UIPMC_Mcast_Connection_Handler (void) } const ACE_INET_Addr & -TAO_UIPMC_Mcast_Connection_Handler::addr (void) const +TAO_UIPMC_Mcast_Connection_Handler::addr () const { return this->addr_; } @@ -84,7 +84,7 @@ TAO_UIPMC_Mcast_Connection_Handler::addr (const ACE_INET_Addr &addr) } const ACE_INET_Addr & -TAO_UIPMC_Mcast_Connection_Handler::local_addr (void) const +TAO_UIPMC_Mcast_Connection_Handler::local_addr () const { return this->local_addr_; } @@ -239,13 +239,13 @@ TAO_UIPMC_Mcast_Connection_Handler::open (void *) } int -TAO_UIPMC_Mcast_Connection_Handler::resume_handler (void) +TAO_UIPMC_Mcast_Connection_Handler::resume_handler () { return ACE_Event_Handler::ACE_APPLICATION_RESUMES_HANDLER; } int -TAO_UIPMC_Mcast_Connection_Handler::close_connection (void) +TAO_UIPMC_Mcast_Connection_Handler::close_connection () { return this->close_connection_eh (this); } @@ -314,13 +314,13 @@ TAO_UIPMC_Mcast_Connection_Handler::close (u_long flags) } int -TAO_UIPMC_Mcast_Connection_Handler::release_os_resources (void) +TAO_UIPMC_Mcast_Connection_Handler::release_os_resources () { return this->peer ().close (); } int -TAO_UIPMC_Mcast_Connection_Handler::add_transport_to_cache (void) +TAO_UIPMC_Mcast_Connection_Handler::add_transport_to_cache () { ACE_INET_Addr addr; diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Mcast_Transport.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Mcast_Transport.cpp index 71de66ca660..942408b46c3 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Mcast_Transport.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Mcast_Transport.cpp @@ -29,7 +29,7 @@ TAO_UIPMC_Mcast_Transport::TAO_UIPMC_Mcast_Transport ( TAO_UIPMC_Wait_Never (this)); } -TAO_UIPMC_Mcast_Transport::~TAO_UIPMC_Mcast_Transport (void) +TAO_UIPMC_Mcast_Transport::~TAO_UIPMC_Mcast_Transport () { // Cleanup all packets. this->cleanup_packets (false); @@ -88,13 +88,13 @@ TAO_UIPMC_Mcast_Transport::cleanup_packets (bool expired_only) } ACE_Event_Handler * -TAO_UIPMC_Mcast_Transport::event_handler_i (void) +TAO_UIPMC_Mcast_Transport::event_handler_i () { return this->connection_handler_; } TAO_Connection_Handler * -TAO_UIPMC_Mcast_Transport::connection_handler_i (void) +TAO_UIPMC_Mcast_Transport::connection_handler_i () { return this->connection_handler_; } @@ -605,7 +605,7 @@ TAO_UIPMC_Mcast_Transport::handle_input ( } int -TAO_UIPMC_Mcast_Transport::register_handler (void) +TAO_UIPMC_Mcast_Transport::register_handler () { // We never register the handler with the reactor // as we never need to be informed about any incoming data, diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Profile.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Profile.cpp index 5090520c7c5..3724b0ab006 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Profile.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Profile.cpp @@ -23,7 +23,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL const char TAO_UIPMC_Profile::object_key_delimiter_ = '/'; char -TAO_UIPMC_Profile::object_key_delimiter (void) const +TAO_UIPMC_Profile::object_key_delimiter () const { return TAO_UIPMC_Profile::object_key_delimiter_; } @@ -85,7 +85,7 @@ TAO_UIPMC_Profile::TAO_UIPMC_Profile (const CORBA::Octet class_d_address[4], this->addressing_mode_ = default_addressing_mode_; } -TAO_UIPMC_Profile::~TAO_UIPMC_Profile (void) +TAO_UIPMC_Profile::~TAO_UIPMC_Profile () { } @@ -157,7 +157,7 @@ TAO_UIPMC_Profile::decode (TAO_InputCDR& cdr) } int -TAO_UIPMC_Profile::decode_endpoints (void) +TAO_UIPMC_Profile::decode_endpoints () { ACE_NOTSUP_RETURN (-1); } @@ -528,25 +528,25 @@ TAO_UIPMC_Profile::hash (CORBA::ULong max) } TAO_Endpoint* -TAO_UIPMC_Profile::endpoint (void) +TAO_UIPMC_Profile::endpoint () { return &this->endpoint_; } int -TAO_UIPMC_Profile::encode_endpoints (void) +TAO_UIPMC_Profile::encode_endpoints () { return 1; } CORBA::ULong -TAO_UIPMC_Profile::endpoint_count (void) const +TAO_UIPMC_Profile::endpoint_count () const { return 1; } char * -TAO_UIPMC_Profile::to_string (void) const +TAO_UIPMC_Profile::to_string () const { // corbaloc:miop:1.0@1.0-group_id-1-1/host:port @@ -617,13 +617,13 @@ TAO_UIPMC_Profile::to_string (void) const } const char * -TAO_UIPMC_Profile::prefix (void) +TAO_UIPMC_Profile::prefix () { return ::the_prefix; } IOP::TaggedProfile & -TAO_UIPMC_Profile::create_tagged_profile (void) +TAO_UIPMC_Profile::create_tagged_profile () { // Check whether we have already created the TaggedProfile if (this->tagged_profile_.profile_data.length () == 0) @@ -695,7 +695,7 @@ TAO_UIPMC_Profile::set_group_info ( } void -TAO_UIPMC_Profile::update_cached_group_component (void) +TAO_UIPMC_Profile::update_cached_group_component () { PortableGroup::TagGroupTaggedComponent group; @@ -770,7 +770,7 @@ TAO_UIPMC_Profile::request_target_specifier ( } int -TAO_UIPMC_Profile::supports_multicast (void) const +TAO_UIPMC_Profile::supports_multicast () const { // Yes! We support multicast! return 1; diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport.cpp index e156ec4c373..d7a8006d3df 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport.cpp @@ -35,18 +35,18 @@ TAO_UIPMC_Transport::TAO_UIPMC_Transport ( this->uuid_hash_ = uuid.to_string ()->hash (); } -TAO_UIPMC_Transport::~TAO_UIPMC_Transport (void) +TAO_UIPMC_Transport::~TAO_UIPMC_Transport () { } ACE_Event_Handler * -TAO_UIPMC_Transport::event_handler_i (void) +TAO_UIPMC_Transport::event_handler_i () { return this->connection_handler_; } TAO_Connection_Handler * -TAO_UIPMC_Transport::connection_handler_i (void) +TAO_UIPMC_Transport::connection_handler_i () { return this->connection_handler_; } @@ -421,7 +421,7 @@ TAO_UIPMC_Transport::recv ( } int -TAO_UIPMC_Transport::register_handler (void) +TAO_UIPMC_Transport::register_handler () { // We never register the handler with the reactor // as we never need to be informed about any incoming data, diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport_Recv_Packet.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport_Recv_Packet.cpp index c72f45795f1..c0d9b19aa45 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport_Recv_Packet.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport_Recv_Packet.cpp @@ -16,20 +16,20 @@ namespace TAO_PG { } - UIPMC_Recv_Packet_Cleanup_Guard::~UIPMC_Recv_Packet_Cleanup_Guard (void) + UIPMC_Recv_Packet_Cleanup_Guard::~UIPMC_Recv_Packet_Cleanup_Guard () { // Cleanup only expired packets. this->transport_->cleanup_packets (true); } - UIPMC_Recv_Packet::UIPMC_Recv_Packet (void) + UIPMC_Recv_Packet::UIPMC_Recv_Packet () : last_fragment_id_ (0) , data_length_ (0) , started_ (ACE_OS::gettimeofday ()) { } - UIPMC_Recv_Packet::~UIPMC_Recv_Packet (void) + UIPMC_Recv_Packet::~UIPMC_Recv_Packet () { for (Fragments_Map::iterator iter = this->fragments_.begin (); iter != this->fragments_.end (); @@ -100,13 +100,13 @@ namespace TAO_PG } ACE_Time_Value const & - UIPMC_Recv_Packet::started (void) const + UIPMC_Recv_Packet::started () const { return this->started_; } CORBA::ULong - UIPMC_Recv_Packet::data_length (void) const + UIPMC_Recv_Packet::data_length () const { return this->data_length_; } diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Wait_Never.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Wait_Never.cpp index a539bfecc1d..1c6f19f8f98 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Wait_Never.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Wait_Never.cpp @@ -10,24 +10,24 @@ TAO_UIPMC_Wait_Never::TAO_UIPMC_Wait_Never (TAO_Transport *transport) { } -TAO_UIPMC_Wait_Never::~TAO_UIPMC_Wait_Never (void) +TAO_UIPMC_Wait_Never::~TAO_UIPMC_Wait_Never () { } int -TAO_UIPMC_Wait_Never::register_handler (void) +TAO_UIPMC_Wait_Never::register_handler () { return -1; } bool -TAO_UIPMC_Wait_Never::non_blocking (void) const +TAO_UIPMC_Wait_Never::non_blocking () const { return true; } bool -TAO_UIPMC_Wait_Never::can_process_upcalls (void) const +TAO_UIPMC_Wait_Never::can_process_upcalls () const { return true; } diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/miop_resource.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/miop_resource.cpp index c9ae98313b7..7cf473067bf 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/miop_resource.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/miop_resource.cpp @@ -9,7 +9,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_MIOP_Resource_Factory::TAO_MIOP_Resource_Factory (void) +TAO_MIOP_Resource_Factory::TAO_MIOP_Resource_Factory () : fragments_cleanup_strategy_type_ (TAO_MIOP_CLEANUP_TIME_BOUND) , fragments_cleanup_bound_ (-1) , fragments_cleanup_strategy_ (0) @@ -24,7 +24,7 @@ TAO_MIOP_Resource_Factory::TAO_MIOP_Resource_Factory (void) { } -TAO_MIOP_Resource_Factory::~TAO_MIOP_Resource_Factory (void) +TAO_MIOP_Resource_Factory::~TAO_MIOP_Resource_Factory () { delete this->fragments_cleanup_strategy_; } @@ -284,7 +284,7 @@ TAO_MIOP_Resource_Factory::init (int argc, ACE_TCHAR *argv[]) } TAO_PG::Fragments_Cleanup_Strategy * -TAO_MIOP_Resource_Factory::fragments_cleanup_strategy (void) const +TAO_MIOP_Resource_Factory::fragments_cleanup_strategy () const { if (this->fragments_cleanup_strategy_ == 0) { @@ -330,19 +330,19 @@ TAO_MIOP_Resource_Factory::fragments_cleanup_strategy (void) const } u_long -TAO_MIOP_Resource_Factory::max_fragment_size (void) const +TAO_MIOP_Resource_Factory::max_fragment_size () const { return this->max_fragment_size_; } u_long -TAO_MIOP_Resource_Factory::max_fragments (void) const +TAO_MIOP_Resource_Factory::max_fragments () const { return this->max_fragments_; } u_long -TAO_MIOP_Resource_Factory::max_fragment_rate (void) const +TAO_MIOP_Resource_Factory::max_fragment_rate () const { // If "max_fragment_rate_" is not specified (i.e. zero) // use the same value as "max_fragment_size_". @@ -352,31 +352,31 @@ TAO_MIOP_Resource_Factory::max_fragment_rate (void) const } u_long -TAO_MIOP_Resource_Factory::send_hi_water_mark (void) const +TAO_MIOP_Resource_Factory::send_hi_water_mark () const { return this->send_hi_water_mark_; } u_long -TAO_MIOP_Resource_Factory::send_buffer_size (void) const +TAO_MIOP_Resource_Factory::send_buffer_size () const { return send_buffer_size_; } u_long -TAO_MIOP_Resource_Factory::receive_buffer_size (void) const +TAO_MIOP_Resource_Factory::receive_buffer_size () const { return receive_buffer_size_; } bool -TAO_MIOP_Resource_Factory::enable_throttling (void) const +TAO_MIOP_Resource_Factory::enable_throttling () const { return enable_throttling_; } bool -TAO_MIOP_Resource_Factory::enable_eager_dequeue (void) const +TAO_MIOP_Resource_Factory::enable_eager_dequeue () const { return enable_eager_dequeue_; } diff --git a/TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp b/TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp index 2cba0dcae08..6a639dd6394 100644 --- a/TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp +++ b/TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp @@ -20,7 +20,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL // = Methods to deal with ACE_Hash_Map_Manager. -CosProperty_Hash_Key::CosProperty_Hash_Key (void) +CosProperty_Hash_Key::CosProperty_Hash_Key () { } @@ -47,20 +47,20 @@ CosProperty_Hash_Key::operator == (const CosProperty_Hash_Key &hash_key) const } u_long -CosProperty_Hash_Key::hash (void) const +CosProperty_Hash_Key::hash () const { u_long ret = ACE::hash_pjw (this->pname_); return ret; } -CosProperty_Hash_Key::~CosProperty_Hash_Key (void) +CosProperty_Hash_Key::~CosProperty_Hash_Key () { } //====================================================================== -CosProperty_Hash_Value::CosProperty_Hash_Value (void) +CosProperty_Hash_Value::CosProperty_Hash_Value () { } @@ -77,19 +77,19 @@ CosProperty_Hash_Value::CosProperty_Hash_Value (const CosProperty_Hash_Value &sr { } -CosProperty_Hash_Value::~CosProperty_Hash_Value (void) +CosProperty_Hash_Value::~CosProperty_Hash_Value () { } //====================================================================== // Constructor. -TAO_PropertySetFactory::TAO_PropertySetFactory (void) +TAO_PropertySetFactory::TAO_PropertySetFactory () { } // Destructor. -TAO_PropertySetFactory::~TAO_PropertySetFactory (void) +TAO_PropertySetFactory::~TAO_PropertySetFactory () { } @@ -99,7 +99,7 @@ TAO_PropertySetFactory::~TAO_PropertySetFactory (void) // things. CosPropertyService::PropertySet_ptr -TAO_PropertySetFactory::create_propertyset (void) +TAO_PropertySetFactory::create_propertyset () { // New a TAO_PropertySet. TAO_PropertySet *new_set; @@ -201,7 +201,7 @@ TAO_PropertySetFactory::create_initial_propertyset (const CosPropertyService::Pr } // Destructor. -TAO_PropertySetDefFactory::~TAO_PropertySetDefFactory (void) +TAO_PropertySetDefFactory::~TAO_PropertySetDefFactory () { // Release all the new'ed products. for (CORBA::ULong pi = 0; @@ -213,7 +213,7 @@ TAO_PropertySetDefFactory::~TAO_PropertySetDefFactory (void) //====================================================================== // Constrctor. -TAO_PropertySetDefFactory::TAO_PropertySetDefFactory (void) +TAO_PropertySetDefFactory::TAO_PropertySetDefFactory () { } @@ -223,7 +223,7 @@ TAO_PropertySetDefFactory::TAO_PropertySetDefFactory (void) // delete all these New'ed things. CosPropertyService::PropertySetDef_ptr -TAO_PropertySetDefFactory::create_propertysetdef (void) +TAO_PropertySetDefFactory::create_propertysetdef () { // New a TAO_PropertySetDef. TAO_PropertySetDef *new_set; @@ -330,7 +330,7 @@ TAO_PropertySetDefFactory::create_initial_propertysetdef (const CosPropertyServi // Makes default sized hash_table_. All the sequences are set the max // length as 0. -TAO_PropertySet::TAO_PropertySet (void) +TAO_PropertySet::TAO_PropertySet () { } @@ -397,7 +397,7 @@ TAO_PropertySet::TAO_PropertySet (const CosPropertyService::Properties initial_p // Destructor. All sequences will be deleted. -TAO_PropertySet::~TAO_PropertySet (void) +TAO_PropertySet::~TAO_PropertySet () { } @@ -625,7 +625,7 @@ TAO_PropertySet::define_properties (const CosPropertyService::Properties &nprope CORBA::ULong -TAO_PropertySet::get_number_of_properties (void) +TAO_PropertySet::get_number_of_properties () { return static_cast<CORBA::ULong> (this->hash_table_.current_size ()); } @@ -990,7 +990,7 @@ TAO_PropertySet::delete_properties (const CosPropertyService::PropertyNames &pro CORBA::Boolean -TAO_PropertySet::delete_all_properties (void) +TAO_PropertySet::delete_all_properties () { // Get all the property names in a names' sequence. CosPropertyService::PropertyNames *names_ptr = 0; @@ -1043,7 +1043,7 @@ TAO_PropertySet::operator= (const TAO_PropertySet &) // Makes default sized hash_table_. -TAO_PropertySetDef::TAO_PropertySetDef (void) +TAO_PropertySetDef::TAO_PropertySetDef () { } @@ -1082,7 +1082,7 @@ TAO_PropertySetDef::TAO_PropertySetDef (const CosPropertyService::PropertyDefs i // Destructor. -TAO_PropertySetDef::~TAO_PropertySetDef (void) +TAO_PropertySetDef::~TAO_PropertySetDef () { } @@ -1521,7 +1521,7 @@ TAO_PropertyNamesIterator::TAO_PropertyNamesIterator (TAO_PropertySet &property_ // Destructor. -TAO_PropertyNamesIterator::~TAO_PropertyNamesIterator (void) +TAO_PropertyNamesIterator::~TAO_PropertyNamesIterator () { } @@ -1529,7 +1529,7 @@ TAO_PropertyNamesIterator::~TAO_PropertyNamesIterator (void) // one exists. void -TAO_PropertyNamesIterator::reset (void) +TAO_PropertyNamesIterator::reset () { this->iterator_ = this->iterator_.map ().begin (); } @@ -1589,7 +1589,7 @@ TAO_PropertyNamesIterator::next_n (CORBA::ULong how_many, } void -TAO_PropertyNamesIterator::destroy (void) +TAO_PropertyNamesIterator::destroy () { // Remove self from POA. Because of reference counting, the POA // will automatically delete the servant when all pending requests @@ -1609,12 +1609,12 @@ TAO_PropertiesIterator::TAO_PropertiesIterator (TAO_PropertySet &property_set) { } -TAO_PropertiesIterator::~TAO_PropertiesIterator (void) +TAO_PropertiesIterator::~TAO_PropertiesIterator () { } void -TAO_PropertiesIterator::reset (void) +TAO_PropertiesIterator::reset () { this->iterator_ = this->iterator_.map ().begin (); } @@ -1681,7 +1681,7 @@ TAO_PropertiesIterator::next_n (CORBA::ULong how_many, } void -TAO_PropertiesIterator::destroy (void) +TAO_PropertiesIterator::destroy () { // Remove self from POA. Because of reference counting, the POA // will automatically delete the servant when all pending requests diff --git a/TAO/orbsvcs/orbsvcs/Runtime_Scheduler.cpp b/TAO/orbsvcs/orbsvcs/Runtime_Scheduler.cpp index f90a7ee5404..5538284fe7f 100644 --- a/TAO/orbsvcs/orbsvcs/Runtime_Scheduler.cpp +++ b/TAO/orbsvcs/orbsvcs/Runtime_Scheduler.cpp @@ -422,7 +422,7 @@ ACE_Runtime_Scheduler::dispatch_configuration (RtecScheduler::Preemption_Priorit // to the number returned, inclusive. RtecScheduler::Preemption_Priority_t -ACE_Runtime_Scheduler::last_scheduled_priority (void) +ACE_Runtime_Scheduler::last_scheduled_priority () { // throw an exception if a valid schedule has not been loaded if (config_count_ <= 0) diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Acceptor.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Acceptor.cpp index a22952b17a2..4ab2c1e9f72 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Acceptor.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Acceptor.cpp @@ -4,7 +4,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO::IIOP_SSL_Acceptor::IIOP_SSL_Acceptor (void) +TAO::IIOP_SSL_Acceptor::IIOP_SSL_Acceptor () : TAO_IIOP_Acceptor (), base_acceptor_ (), creation_strategy_ (0), @@ -13,7 +13,7 @@ TAO::IIOP_SSL_Acceptor::IIOP_SSL_Acceptor (void) { } -TAO::IIOP_SSL_Acceptor::~IIOP_SSL_Acceptor (void) +TAO::IIOP_SSL_Acceptor::~IIOP_SSL_Acceptor () { // Make sure we are closed before we start destroying the // strategies. @@ -25,7 +25,7 @@ TAO::IIOP_SSL_Acceptor::~IIOP_SSL_Acceptor (void) } int -TAO::IIOP_SSL_Acceptor::close (void) +TAO::IIOP_SSL_Acceptor::close () { return this->base_acceptor_.close (); } diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.cpp index 4622a9ac7a8..0b01d3824f8 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.cpp @@ -74,7 +74,7 @@ TAO::IIOP_SSL_Connection_Handler::IIOP_SSL_Connection_Handler ( this->transport (specific_transport); } -TAO::IIOP_SSL_Connection_Handler::~IIOP_SSL_Connection_Handler (void) +TAO::IIOP_SSL_Connection_Handler::~IIOP_SSL_Connection_Handler () { } diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.cpp index 3029c05c3e5..d2023356c48 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.cpp @@ -15,14 +15,14 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO::IIOP_SSL_Connector::IIOP_SSL_Connector (void) +TAO::IIOP_SSL_Connector::IIOP_SSL_Connector () : TAO_IIOP_Connector (), connect_strategy_ (), base_connector_ (0) { } -TAO::IIOP_SSL_Connector::~IIOP_SSL_Connector (void) +TAO::IIOP_SSL_Connector::~IIOP_SSL_Connector () { } @@ -58,7 +58,7 @@ TAO::IIOP_SSL_Connector::open (TAO_ORB_Core *orb_core) } int -TAO::IIOP_SSL_Connector::close (void) +TAO::IIOP_SSL_Connector::close () { delete this->base_connector_.creation_strategy (); delete this->base_connector_.concurrency_strategy (); diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Transport.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Transport.cpp index 353c0b82c9d..2e2c03fbe04 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Transport.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Transport.cpp @@ -18,7 +18,7 @@ TAO::IIOP_SSL_Transport::IIOP_SSL_Transport ( TAO::SSLIOP::Util::current (orb_core); } -TAO::IIOP_SSL_Transport::~IIOP_SSL_Transport (void) +TAO::IIOP_SSL_Transport::~IIOP_SSL_Transport () { } diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.cpp index f4eee04b4de..c89130859f2 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.cpp @@ -82,7 +82,7 @@ TAO::SSLIOP::Acceptor::Acceptor (::Security::QOP qop, CSIIOP::NoProtection); } -TAO::SSLIOP::Acceptor::~Acceptor (void) +TAO::SSLIOP::Acceptor::~Acceptor () { // Make sure we are closed before we start destroying the // strategies. @@ -351,7 +351,7 @@ TAO::SSLIOP::Acceptor::is_collocated (const TAO_Endpoint *endpoint) } int -TAO::SSLIOP::Acceptor::close (void) +TAO::SSLIOP::Acceptor::close () { int r = this->ssl_acceptor_.close (); if (this->IIOP_SSL_Acceptor::close () != 0) diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ClientCredentials.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ClientCredentials.cpp index e8842aa4a16..1486707d257 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ClientCredentials.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ClientCredentials.cpp @@ -12,24 +12,24 @@ TAO::SSLIOP::ClientCredentials::ClientCredentials ( { } -TAO::SSLIOP::ClientCredentials::~ClientCredentials (void) +TAO::SSLIOP::ClientCredentials::~ClientCredentials () { } SecurityLevel3::CredentialsType -TAO::SSLIOP::ClientCredentials::creds_type (void) +TAO::SSLIOP::ClientCredentials::creds_type () { return SecurityLevel3::CT_ClientCredentials; } char * -TAO::SSLIOP::ClientCredentials::context_id (void) +TAO::SSLIOP::ClientCredentials::context_id () { throw CORBA::NO_IMPLEMENT (); } SecurityLevel3::Principal * -TAO::SSLIOP::ClientCredentials::client_principal (void) +TAO::SSLIOP::ClientCredentials::client_principal () { throw CORBA::NO_IMPLEMENT (); } @@ -47,7 +47,7 @@ TAO::SSLIOP::ClientCredentials::client_restricted_resources () } SecurityLevel3::Principal * -TAO::SSLIOP::ClientCredentials::target_principal (void) +TAO::SSLIOP::ClientCredentials::target_principal () { throw CORBA::NO_IMPLEMENT (); } @@ -65,7 +65,7 @@ TAO::SSLIOP::ClientCredentials::target_restricted_resources () } SecurityLevel3::OwnCredentials_ptr -TAO::SSLIOP::ClientCredentials::parent_credentials (void) +TAO::SSLIOP::ClientCredentials::parent_credentials () { SecurityLevel3::OwnCredentials_ptr creds = SecurityLevel3::OwnCredentials::_nil (); @@ -92,19 +92,19 @@ TAO::SSLIOP::ClientCredentials::client_authentication () } CORBA::Boolean -TAO::SSLIOP::ClientCredentials::target_authentication (void) +TAO::SSLIOP::ClientCredentials::target_authentication () { throw CORBA::NO_IMPLEMENT (); } CORBA::Boolean -TAO::SSLIOP::ClientCredentials::confidentiality (void) +TAO::SSLIOP::ClientCredentials::confidentiality () { throw CORBA::NO_IMPLEMENT (); } CORBA::Boolean -TAO::SSLIOP::ClientCredentials::integrity (void) +TAO::SSLIOP::ClientCredentials::integrity () { // TAO's SSLIOP pluggable transport always provides integrity. Note // that if we diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.cpp index f37b77c9682..2244fb35e51 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.cpp @@ -51,7 +51,7 @@ TAO::SSLIOP::Connection_Handler::Connection_Handler (TAO_ORB_Core *orb_core) this->transport (specific_transport); } -TAO::SSLIOP::Connection_Handler::~Connection_Handler (void) +TAO::SSLIOP::Connection_Handler::~Connection_Handler () { delete this->transport (); int const result = @@ -245,13 +245,13 @@ TAO::SSLIOP::Connection_Handler::open (void *) } int -TAO::SSLIOP::Connection_Handler::resume_handler (void) +TAO::SSLIOP::Connection_Handler::resume_handler () { return ACE_Event_Handler::ACE_APPLICATION_RESUMES_HANDLER; } int -TAO::SSLIOP::Connection_Handler::close_connection (void) +TAO::SSLIOP::Connection_Handler::close_connection () { return this->close_connection_eh (this); } @@ -313,7 +313,7 @@ TAO::SSLIOP::Connection_Handler::close (u_long flags) } int -TAO::SSLIOP::Connection_Handler::release_os_resources (void) +TAO::SSLIOP::Connection_Handler::release_os_resources () { return this->peer().close (); } @@ -326,7 +326,7 @@ TAO::SSLIOP::Connection_Handler::pos_io_hook (int & return_value) } int -TAO::SSLIOP::Connection_Handler::add_transport_to_cache (void) +TAO::SSLIOP::Connection_Handler::add_transport_to_cache () { ACE_INET_Addr addr; @@ -459,7 +459,7 @@ TAO::SSLIOP::Connection_Handler::handle_write_ready (const ACE_Time_Value *t) } bool -TAO::SSLIOP::Connection_Handler::check_host (void) +TAO::SSLIOP::Connection_Handler::check_host () { ACE_SSL_Context *ssl_ctx = ACE_SSL_Context::instance (); ACE_INET_Addr remote_addr; diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.cpp index 6aebd8005d2..458198a14c7 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.cpp @@ -70,7 +70,7 @@ TAO::SSLIOP::Connector::open (TAO_ORB_Core *orb_core) } int -TAO::SSLIOP::Connector::close (void) +TAO::SSLIOP::Connector::close () { (void) this->TAO::IIOP_SSL_Connector::close (); @@ -214,7 +214,7 @@ TAO::SSLIOP::Connector::create_profile (TAO_InputCDR& cdr) } TAO_Profile * -TAO::SSLIOP::Connector::make_profile (void) +TAO::SSLIOP::Connector::make_profile () { // The endpoint should be of the form: // N.n@host:port/object_key @@ -236,7 +236,7 @@ TAO::SSLIOP::Connector::make_profile (void) TAO_Profile * -TAO::SSLIOP::Connector::make_secure_profile (void) +TAO::SSLIOP::Connector::make_secure_profile () { // The endpoint should be of the form: // N.n@host:port/object_key diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.cpp index ea8462ccf68..20e4069f82a 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.cpp @@ -70,30 +70,30 @@ TAO::SSLIOP_Credentials::SSLIOP_Credentials (::X509 *cert, ::EVP_PKEY *evp) } } -TAO::SSLIOP_Credentials::~SSLIOP_Credentials (void) +TAO::SSLIOP_Credentials::~SSLIOP_Credentials () { } char * -TAO::SSLIOP_Credentials::creds_id (void) +TAO::SSLIOP_Credentials::creds_id () { return CORBA::string_dup (this->id_.in ()); } SecurityLevel3::CredentialsUsage -TAO::SSLIOP_Credentials::creds_usage (void) +TAO::SSLIOP_Credentials::creds_usage () { return SecurityLevel3::CU_Indefinite; } TimeBase::UtcT -TAO::SSLIOP_Credentials::expiry_time (void) +TAO::SSLIOP_Credentials::expiry_time () { return this->expiry_time_; } SecurityLevel3::CredentialsState -TAO::SSLIOP_Credentials::creds_state (void) +TAO::SSLIOP_Credentials::creds_state () { const ::X509 *x = this->x509_.in (); @@ -181,7 +181,7 @@ TAO::SSLIOP_Credentials::operator== (const TAO::SSLIOP_Credentials &rhs) } CORBA::ULong -TAO::SSLIOP_Credentials::hash (void) const +TAO::SSLIOP_Credentials::hash () const { ::X509 * x509 = this->x509_.in (); @@ -219,7 +219,7 @@ tao_TAO_SSLIOP_Credentials_release (TAO::SSLIOP::Credentials_ptr p) } TAO::SSLIOP::Credentials_ptr -tao_TAO_SSLIOP_Credentials_nil (void) +tao_TAO_SSLIOP_Credentials_nil () { return TAO::SSLIOP_Credentials::_nil (); } diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirer.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirer.cpp index 0528fe63f03..e9821f0c25a 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirer.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirer.cpp @@ -76,12 +76,12 @@ TAO::SSLIOP::CredentialsAcquirer::CredentialsAcquirer ( { } -TAO::SSLIOP::CredentialsAcquirer::~CredentialsAcquirer (void) +TAO::SSLIOP::CredentialsAcquirer::~CredentialsAcquirer () { } char * -TAO::SSLIOP::CredentialsAcquirer::acquisition_method (void) +TAO::SSLIOP::CredentialsAcquirer::acquisition_method () { this->check_validity (); @@ -89,7 +89,7 @@ TAO::SSLIOP::CredentialsAcquirer::acquisition_method (void) } SecurityLevel3::AcquisitionStatus -TAO::SSLIOP::CredentialsAcquirer::current_status (void) +TAO::SSLIOP::CredentialsAcquirer::current_status () { this->check_validity (); @@ -97,7 +97,7 @@ TAO::SSLIOP::CredentialsAcquirer::current_status (void) } CORBA::ULong -TAO::SSLIOP::CredentialsAcquirer::nth_iteration (void) +TAO::SSLIOP::CredentialsAcquirer::nth_iteration () { this->check_validity (); @@ -170,7 +170,7 @@ TAO::SSLIOP::CredentialsAcquirer::get_credentials (CORBA::Boolean on_list) } void -TAO::SSLIOP::CredentialsAcquirer::destroy (void) +TAO::SSLIOP::CredentialsAcquirer::destroy () { this->check_validity (); @@ -188,7 +188,7 @@ TAO::SSLIOP::CredentialsAcquirer::destroy (void) } void -TAO::SSLIOP::CredentialsAcquirer::check_validity (void) +TAO::SSLIOP::CredentialsAcquirer::check_validity () { ACE_GUARD (TAO_SYNCH_MUTEX, guard, diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current.cpp index c0141239c3f..32e419fd1ce 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current.cpp @@ -13,7 +13,7 @@ TAO::SSLIOP::Current::Current (TAO_ORB_Core *orb_core) { } -TAO::SSLIOP::Current::~Current (void) +TAO::SSLIOP::Current::~Current () { } @@ -78,7 +78,7 @@ TAO::SSLIOP::Current::get_peer_certificate_chain () } CORBA::Boolean -TAO::SSLIOP::Current::no_context (void) +TAO::SSLIOP::Current::no_context () { return (this->implementation () == 0 ? true : false); } @@ -127,7 +127,7 @@ TAO::SSLIOP::Current::_duplicate (TAO::SSLIOP::Current_ptr obj) } const char * -TAO::SSLIOP::Current::_interface_repository_id (void) const +TAO::SSLIOP::Current::_interface_repository_id () const { return "IDL:TAO/SSLIOP/Current:1.0"; } @@ -147,7 +147,7 @@ tao_TAO_SSLIOP_Current_release (TAO::SSLIOP::Current_ptr p) } TAO::SSLIOP::Current_ptr -tao_TAO_SSLIOP_Current_nil (void) +tao_TAO_SSLIOP_Current_nil () { return TAO::SSLIOP::Current::_nil (); } diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current_Impl.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current_Impl.cpp index 00a811a558b..672bc44fcd5 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current_Impl.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current_Impl.cpp @@ -13,7 +13,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO::SSLIOP::Current_Impl::~Current_Impl (void) +TAO::SSLIOP::Current_Impl::~Current_Impl () { } @@ -43,7 +43,7 @@ TAO::SSLIOP::Current_Impl::client_credentials () } CORBA::Boolean -TAO::SSLIOP::Current_Impl::request_is_local (void) +TAO::SSLIOP::Current_Impl::request_is_local () { throw CORBA::NO_IMPLEMENT (); } @@ -115,7 +115,7 @@ TAO::SSLIOP::Current_Impl::get_peer_certificate_chain ( } CORBA::ULong -TAO::SSLIOP::Current_Impl::tag (void) const +TAO::SSLIOP::Current_Impl::tag () const { return ::SSLIOP::TAG_SSL_SEC_TRANS; } diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Endpoint.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Endpoint.cpp index 077725fc096..ac09e5b1cab 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Endpoint.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Endpoint.cpp @@ -97,7 +97,7 @@ TAO_SSLIOP_Endpoint::operator= (const TAO_SSLIOP_Endpoint &other) return *this; } -TAO_SSLIOP_Endpoint::~TAO_SSLIOP_Endpoint (void) +TAO_SSLIOP_Endpoint::~TAO_SSLIOP_Endpoint () { if (this->destroy_iiop_endpoint_) delete this->iiop_endpoint_; @@ -125,7 +125,7 @@ TAO_SSLIOP_Endpoint::addr_to_string (char *buffer, size_t length) TAO_Endpoint * -TAO_SSLIOP_Endpoint::next (void) +TAO_SSLIOP_Endpoint::next () { return this->next_; } @@ -170,7 +170,7 @@ TAO_SSLIOP_Endpoint::is_equivalent (const TAO_Endpoint *other_endpoint) } TAO_Endpoint * -TAO_SSLIOP_Endpoint::duplicate (void) +TAO_SSLIOP_Endpoint::duplicate () { TAO_SSLIOP_Endpoint *endpoint = 0; @@ -190,7 +190,7 @@ TAO_SSLIOP_Endpoint::duplicate (void) } CORBA::ULong -TAO_SSLIOP_Endpoint::hash (void) +TAO_SSLIOP_Endpoint::hash () { // there is actually the potential for a race of the inverse case, // since setting the security attributes will reset the hash_val_, @@ -230,7 +230,7 @@ TAO_SSLIOP_Endpoint::hash (void) const ACE_INET_Addr & -TAO_SSLIOP_Endpoint::object_addr (void) const +TAO_SSLIOP_Endpoint::object_addr () const { // The object_addr_ is initialized here, rather than at IOR decode // time for several reasons: @@ -345,7 +345,7 @@ TAO_SSLIOP_Synthetic_Endpoint::is_equivalent (const TAO_Endpoint *other_endpoint } TAO_Endpoint * -TAO_SSLIOP_Synthetic_Endpoint::duplicate (void) +TAO_SSLIOP_Synthetic_Endpoint::duplicate () { TAO_SSLIOP_Synthetic_Endpoint *endpoint = 0; diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Factory.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Factory.cpp index 907e7246983..9f42eb0efb2 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Factory.cpp @@ -230,7 +230,7 @@ TAO::SSLIOP::Protocol_Factory::pem_passwd_cb (char *buf, int size, int , void *t return len; } -TAO::SSLIOP::Protocol_Factory::Protocol_Factory (void) +TAO::SSLIOP::Protocol_Factory::Protocol_Factory () : TAO_Protocol_Factory (IOP::TAG_INTERNET_IOP), qop_ (::Security::SecQOPIntegrityAndConfidentiality), timeout_ (TAO::SSLIOP::ACCEPT_TIMEOUT), @@ -238,7 +238,7 @@ TAO::SSLIOP::Protocol_Factory::Protocol_Factory (void) { } -TAO::SSLIOP::Protocol_Factory::~Protocol_Factory (void) +TAO::SSLIOP::Protocol_Factory::~Protocol_Factory () { } @@ -251,7 +251,7 @@ TAO::SSLIOP::Protocol_Factory::match_prefix (const ACE_CString &prefix) } const char * -TAO::SSLIOP::Protocol_Factory::prefix (void) const +TAO::SSLIOP::Protocol_Factory::prefix () const { // Note: This method doesn't seem to be used anywhere. Moreover, // keeping it may make things more confusing - a Factory can @@ -261,13 +261,13 @@ TAO::SSLIOP::Protocol_Factory::prefix (void) const } char -TAO::SSLIOP::Protocol_Factory::options_delimiter (void) const +TAO::SSLIOP::Protocol_Factory::options_delimiter () const { return '/'; } TAO_Acceptor * -TAO::SSLIOP::Protocol_Factory::make_acceptor (void) +TAO::SSLIOP::Protocol_Factory::make_acceptor () { TAO_Acceptor *acceptor = 0; @@ -797,7 +797,7 @@ TAO::SSLIOP::Protocol_Factory::init (int argc, ACE_TCHAR* argv[]) } int -TAO::SSLIOP::Protocol_Factory::register_orb_initializer (void) +TAO::SSLIOP::Protocol_Factory::register_orb_initializer () { try { @@ -853,7 +853,7 @@ TAO::SSLIOP::Protocol_Factory::register_orb_initializer (void) TAO_Connector * -TAO::SSLIOP::Protocol_Factory::make_connector (void) +TAO::SSLIOP::Protocol_Factory::make_connector () { TAO::SSLIOP::Connector *connector = 0; @@ -864,7 +864,7 @@ TAO::SSLIOP::Protocol_Factory::make_connector (void) } int -TAO::SSLIOP::Protocol_Factory::requires_explicit_endpoint (void) const +TAO::SSLIOP::Protocol_Factory::requires_explicit_endpoint () const { return 0; } diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Invocation_Interceptor.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Invocation_Interceptor.cpp index 4e0324ffd9a..12496c1adf8 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Invocation_Interceptor.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Invocation_Interceptor.cpp @@ -47,7 +47,7 @@ TAO::SSLIOP::Server_Invocation_Interceptor::Server_Invocation_Interceptor ( this->sec2manager_ = SecurityLevel2::SecurityManager::_narrow (obj.in ()); } -TAO::SSLIOP::Server_Invocation_Interceptor::~Server_Invocation_Interceptor (void) +TAO::SSLIOP::Server_Invocation_Interceptor::~Server_Invocation_Interceptor () { } diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ORBInitializer.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ORBInitializer.cpp index 58d9e0e5078..a4fefe04827 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ORBInitializer.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ORBInitializer.cpp @@ -169,7 +169,7 @@ TAO::SSLIOP::ORBInitializer::post_init ( TAO::SSLIOP::CredentialsAcquirerFactory, CORBA::NO_MEMORY ()); - auto_ptr<TAO::SSLIOP::CredentialsAcquirerFactory> safe_factory; + std::unique_ptr<TAO::SSLIOP::CredentialsAcquirerFactory> safe_factory; tao_curator->register_acquirer_factory ("SL3TLS", factory); diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OwnCredentials.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OwnCredentials.cpp index 8604d6ba2cb..be7540ea0a6 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OwnCredentials.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OwnCredentials.cpp @@ -7,7 +7,7 @@ TAO::SSLIOP::OwnCredentials::OwnCredentials (X509 *cert, EVP_PKEY *evp) { } -TAO::SSLIOP::OwnCredentials::~OwnCredentials (void) +TAO::SSLIOP::OwnCredentials::~OwnCredentials () { } @@ -28,26 +28,26 @@ TAO::SSLIOP::OwnCredentials::_narrow (CORBA::Object_ptr obj) } TAO::SSLIOP::OwnCredentials_ptr -TAO::SSLIOP::OwnCredentials::_nil (void) +TAO::SSLIOP::OwnCredentials::_nil () { return (OwnCredentials *) 0; } SecurityLevel3::CredentialsType -TAO::SSLIOP::OwnCredentials::creds_type (void) +TAO::SSLIOP::OwnCredentials::creds_type () { return SecurityLevel3::CT_OwnCredentials; } SecurityLevel3::CredsInitiator_ptr -TAO::SSLIOP::OwnCredentials::creds_initiator (void) +TAO::SSLIOP::OwnCredentials::creds_initiator () { throw CORBA::NO_IMPLEMENT (); } SecurityLevel3::CredsAcceptor_ptr -TAO::SSLIOP::OwnCredentials::creds_acceptor (void) +TAO::SSLIOP::OwnCredentials::creds_acceptor () { throw CORBA::NO_IMPLEMENT (); } diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.cpp index dcca6d01808..91ebb0db443 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.cpp @@ -56,7 +56,7 @@ TAO_SSLIOP_Profile::TAO_SSLIOP_Profile (TAO_ORB_Core * orb_core, int ssl_only) this->ssl_endpoint_.iiop_endpoint (&this->endpoint_, true); } -TAO_SSLIOP_Profile::~TAO_SSLIOP_Profile (void) +TAO_SSLIOP_Profile::~TAO_SSLIOP_Profile () { // Clean up the list of endpoints since we own it. // Skip the head, since it is not dynamically allocated. @@ -190,7 +190,7 @@ TAO_SSLIOP_Profile::do_is_equivalent (const TAO_Profile * other_profile) } TAO_Endpoint* -TAO_SSLIOP_Profile::endpoint (void) +TAO_SSLIOP_Profile::endpoint () { return &this->ssl_endpoint_; } @@ -209,7 +209,7 @@ TAO_SSLIOP_Profile::add_endpoint (TAO_SSLIOP_Endpoint * endp) } int -TAO_SSLIOP_Profile::encode_endpoints (void) +TAO_SSLIOP_Profile::encode_endpoints () { // If we have more than one endpoint, we encode info about others // into a tagged component for wire transfer. @@ -266,7 +266,7 @@ TAO_SSLIOP_Profile::encode_endpoints (void) } int -TAO_SSLIOP_Profile::decode_tagged_endpoints (void) +TAO_SSLIOP_Profile::decode_tagged_endpoints () { IOP::TaggedComponent tagged_component; tagged_component.tag = TAO::TAG_SSL_ENDPOINTS; diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_TargetCredentials.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_TargetCredentials.cpp index fff54f524b9..c203fdc7d5e 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_TargetCredentials.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_TargetCredentials.cpp @@ -10,19 +10,19 @@ TAO::SSLIOP::TargetCredentials::TargetCredentials (::X509 *cert, SecurityLevel3::CredentialsType -TAO::SSLIOP::TargetCredentials::creds_type (void) +TAO::SSLIOP::TargetCredentials::creds_type () { return SecurityLevel3::CT_TargetCredentials; } char * -TAO::SSLIOP::TargetCredentials::context_id (void) +TAO::SSLIOP::TargetCredentials::context_id () { throw CORBA::NO_IMPLEMENT (); } SecurityLevel3::Principal * -TAO::SSLIOP::TargetCredentials::client_principal (void) +TAO::SSLIOP::TargetCredentials::client_principal () { throw CORBA::NO_IMPLEMENT (); } @@ -40,7 +40,7 @@ TAO::SSLIOP::TargetCredentials::client_restricted_resources () } SecurityLevel3::Principal * -TAO::SSLIOP::TargetCredentials::target_principal (void) +TAO::SSLIOP::TargetCredentials::target_principal () { throw CORBA::NO_IMPLEMENT (); } @@ -58,49 +58,49 @@ TAO::SSLIOP::TargetCredentials::target_restricted_resources () } SecurityLevel3::OwnCredentials_ptr -TAO::SSLIOP::TargetCredentials::parent_credentials (void) +TAO::SSLIOP::TargetCredentials::parent_credentials () { throw CORBA::NO_IMPLEMENT (); } CORBA::Boolean -TAO::SSLIOP::TargetCredentials::client_authentication (void) +TAO::SSLIOP::TargetCredentials::client_authentication () { throw CORBA::NO_IMPLEMENT (); } CORBA::Boolean -TAO::SSLIOP::TargetCredentials::target_authentication (void) +TAO::SSLIOP::TargetCredentials::target_authentication () { throw CORBA::NO_IMPLEMENT (); } CORBA::Boolean -TAO::SSLIOP::TargetCredentials::confidentiality (void) +TAO::SSLIOP::TargetCredentials::confidentiality () { throw CORBA::NO_IMPLEMENT (); } CORBA::Boolean -TAO::SSLIOP::TargetCredentials::integrity (void) +TAO::SSLIOP::TargetCredentials::integrity () { throw CORBA::NO_IMPLEMENT (); } CORBA::Boolean -TAO::SSLIOP::TargetCredentials::target_embodied (void) +TAO::SSLIOP::TargetCredentials::target_embodied () { throw CORBA::NO_IMPLEMENT (); } CORBA::Boolean -TAO::SSLIOP::TargetCredentials::target_endorsed (void) +TAO::SSLIOP::TargetCredentials::target_endorsed () { throw CORBA::NO_IMPLEMENT (); } void -TAO::SSLIOP::TargetCredentials::release (void) +TAO::SSLIOP::TargetCredentials::release () { throw CORBA::NO_IMPLEMENT (); } diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Transport.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Transport.cpp index 3a123c382f7..e9df6979bb0 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Transport.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Transport.cpp @@ -27,18 +27,18 @@ TAO::SSLIOP::Transport::Transport ( { } -TAO::SSLIOP::Transport::~Transport (void) +TAO::SSLIOP::Transport::~Transport () { } ACE_Event_Handler * -TAO::SSLIOP::Transport::event_handler_i (void) +TAO::SSLIOP::Transport::event_handler_i () { return this->connection_handler_; } TAO_Connection_Handler * -TAO::SSLIOP::Transport::connection_handler_i (void) +TAO::SSLIOP::Transport::connection_handler_i () { return this->connection_handler_; } diff --git a/TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp b/TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp index da9d83b8e5d..f80cd66be75 100644 --- a/TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp +++ b/TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp @@ -11,7 +11,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -ACE_Config_Scheduler::ACE_Config_Scheduler (void) +ACE_Config_Scheduler::ACE_Config_Scheduler () #if defined (TAO_USES_STRATEGY_SCHEDULER) : scheduler_strategy_ (static_cast<RtecScheduler::Preemption_Priority_t> (TAO_MIN_CRITICAL_PRIORITY)) , impl (new ACE_Strategy_Scheduler (scheduler_strategy_)) @@ -22,7 +22,7 @@ ACE_Config_Scheduler::ACE_Config_Scheduler (void) // impl->output_level (10); } -ACE_Config_Scheduler::~ACE_Config_Scheduler (void) +ACE_Config_Scheduler::~ACE_Config_Scheduler () { delete impl; } @@ -438,7 +438,7 @@ void ACE_Config_Scheduler::dispatch_configuration (RtecScheduler::Preemption_Pri RtecScheduler::Preemption_Priority_t -ACE_Config_Scheduler::last_scheduled_priority (void) +ACE_Config_Scheduler::last_scheduled_priority () { RtecScheduler::Preemption_Priority_t priority = impl->minimum_priority_queue (); diff --git a/TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp b/TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp index 3cdc82216da..f1844bed135 100644 --- a/TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp +++ b/TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp @@ -1237,7 +1237,7 @@ ACE_DynScheduler::propagate_dispatches ( ACE_DynScheduler::status_t -ACE_DynScheduler::calculate_utilization_params (void) +ACE_DynScheduler::calculate_utilization_params () { critical_set_frame_size_ = 0; utilization_ = 0.0; @@ -1307,7 +1307,7 @@ ACE_DynScheduler::update_priority_level_params () } ACE_DynScheduler::status_t -ACE_DynScheduler::setup_task_entries (void) +ACE_DynScheduler::setup_task_entries () { // store number of tasks, based on registrations tasks (static_cast<u_int> (rt_info_entries_.size ())); @@ -1384,7 +1384,7 @@ ACE_DynScheduler::setup_task_entries (void) } ACE_DynScheduler::status_t -ACE_DynScheduler::relate_task_entries (void) +ACE_DynScheduler::relate_task_entries () { status_t status = SUCCEEDED; @@ -1584,7 +1584,7 @@ ACE_DynScheduler::identify_threads (ACE_CString & unresolved_locals, } ACE_DynScheduler::status_t -ACE_DynScheduler::check_dependency_cycles (void) +ACE_DynScheduler::check_dependency_cycles () { status_t return_status = SUCCEEDED; @@ -1748,7 +1748,7 @@ ACE_DynScheduler::schedule_dispatches (ACE_Unbounded_Set<RtecScheduler::Scheduli // calls internal dispatch scheduling method. ACE_DynScheduler::status_t -ACE_DynScheduler::store_assigned_info (void) +ACE_DynScheduler::store_assigned_info () { for (u_int i = 0; i < dispatch_entry_count_; ++i) { diff --git a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.cpp b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.cpp index 4bf6aede47c..b50d9381218 100644 --- a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.cpp +++ b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.cpp @@ -705,7 +705,7 @@ effective_exec_multiplier (CORBA::Long l) /////////////////////////// -TAO_Reconfig_Sched_Entry_Visitor::~TAO_Reconfig_Sched_Entry_Visitor (void) +TAO_Reconfig_Sched_Entry_Visitor::~TAO_Reconfig_Sched_Entry_Visitor () { } @@ -910,7 +910,7 @@ enabled_state (RtecScheduler::RT_Info_Enabled_Type_t et) //////////////////////////////////////////// -TAO_RT_Info_Tuple_Visitor::~TAO_RT_Info_Tuple_Visitor (void) +TAO_RT_Info_Tuple_Visitor::~TAO_RT_Info_Tuple_Visitor () { } diff --git a/TAO/orbsvcs/orbsvcs/Sched/SchedEntry.cpp b/TAO/orbsvcs/orbsvcs/Sched/SchedEntry.cpp index 8f851f9b415..9cfb8e0b5da 100644 --- a/TAO/orbsvcs/orbsvcs/Sched/SchedEntry.cpp +++ b/TAO/orbsvcs/orbsvcs/Sched/SchedEntry.cpp @@ -21,7 +21,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Task_Entry::Task_Entry (void) +Task_Entry::Task_Entry () : rt_info_ (0), effective_period_(0), dfs_status_ (NOT_VISITED), @@ -35,7 +35,7 @@ Task_Entry::Task_Entry (void) { } -Task_Entry::~Task_Entry (void) +Task_Entry::~Task_Entry () { // Zero out the task entry ACT in the corresponding rt_info rt_info_->volatile_token = 0; @@ -758,7 +758,7 @@ Dispatch_Proxy_Iterator::first (u_int sub_frame) // and -1 if an error occurred. int -Dispatch_Proxy_Iterator::last (void) +Dispatch_Proxy_Iterator::last () { // use the last call current_call_ = number_of_calls_ - 1; @@ -775,7 +775,7 @@ Dispatch_Proxy_Iterator::last (void) // and -1 if an error occurred. int -Dispatch_Proxy_Iterator::advance (void) +Dispatch_Proxy_Iterator::advance () { int result = 1; @@ -814,7 +814,7 @@ Dispatch_Proxy_Iterator::advance (void) // and -1 if an error occurred. int -Dispatch_Proxy_Iterator::retreat (void) +Dispatch_Proxy_Iterator::retreat () { int result = 1; @@ -851,7 +851,7 @@ Dispatch_Proxy_Iterator::retreat (void) // returns the adjusted arrival time of the virtual entry RtecScheduler::Time -Dispatch_Proxy_Iterator::arrival (void) const +Dispatch_Proxy_Iterator::arrival () const { Dispatch_Entry_Link *link; if (iter_.done () @@ -868,7 +868,7 @@ Dispatch_Proxy_Iterator::arrival (void) const // returns the adjusted deadline time of the virtual entry RtecScheduler::Time -Dispatch_Proxy_Iterator::deadline (void) const +Dispatch_Proxy_Iterator::deadline () const { Dispatch_Entry_Link *link; if (iter_.done () @@ -885,7 +885,7 @@ Dispatch_Proxy_Iterator::deadline (void) const // returns the scheduler priority of the virtual entry Dispatch_Proxy_Iterator::Preemption_Priority -Dispatch_Proxy_Iterator::priority (void) const +Dispatch_Proxy_Iterator::priority () const { Dispatch_Entry_Link *link; @@ -900,7 +900,7 @@ Dispatch_Proxy_Iterator::priority (void) const // returns the OS priority of the virtual entry Dispatch_Proxy_Iterator::OS_Priority -Dispatch_Proxy_Iterator::OS_priority (void) const +Dispatch_Proxy_Iterator::OS_priority () const { Dispatch_Entry_Link *link; if (iter_.done () diff --git a/TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.cpp b/TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.cpp index d301b963454..c1bb16f71c5 100644 --- a/TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.cpp +++ b/TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.cpp @@ -613,7 +613,7 @@ ACE_Scheduler_Strategy::ACE_Scheduler_Strategy ( { } -ACE_Scheduler_Strategy::~ACE_Scheduler_Strategy (void) +ACE_Scheduler_Strategy::~ACE_Scheduler_Strategy () { } diff --git a/TAO/orbsvcs/orbsvcs/Scheduler_Factory.cpp b/TAO/orbsvcs/orbsvcs/Scheduler_Factory.cpp index 1190037fc93..8d1618b975b 100644 --- a/TAO/orbsvcs/orbsvcs/Scheduler_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Scheduler_Factory.cpp @@ -105,7 +105,7 @@ struct ACE_Scheduler_Factory_Data // applications; must be set by either the application or Event // Channel. - ACE_Scheduler_Factory_Data (void) + ACE_Scheduler_Factory_Data () : scheduler_ (TAO_SF_config_count, TAO_SF_config_info, TAO_SF_entry_count, @@ -140,7 +140,7 @@ int ACE_Scheduler_Factory::use_runtime (int cc, } static RtecScheduler::Scheduler_ptr -static_server (void) +static_server () { RtecScheduler::Scheduler_ptr server_ = 0; @@ -221,7 +221,7 @@ ACE_Scheduler_Factory::server (RtecScheduler::Scheduler_ptr sptr) } RtecScheduler::Scheduler_ptr -ACE_Scheduler_Factory::server (void) +ACE_Scheduler_Factory::server () { if (server_ == 0 && TAO_SF_entry_count != -1) server_ = static_server (); @@ -730,7 +730,7 @@ ACE_Scheduler_Factory::log_scheduling_tuples( #endif /* HPUX && !g++ */ RtecScheduler::Preemption_Priority_t -ACE_Scheduler_Factory::preemption_priority (void) +ACE_Scheduler_Factory::preemption_priority () { // Return whatever we've got. The application or Event Channel is // responsible for making sure that it was set. diff --git a/TAO/orbsvcs/orbsvcs/Security/SL2_EstablishTrustPolicy.cpp b/TAO/orbsvcs/orbsvcs/Security/SL2_EstablishTrustPolicy.cpp index 99e681eb61a..09273977362 100644 --- a/TAO/orbsvcs/orbsvcs/Security/SL2_EstablishTrustPolicy.cpp +++ b/TAO/orbsvcs/orbsvcs/Security/SL2_EstablishTrustPolicy.cpp @@ -10,7 +10,7 @@ TAO::Security::EstablishTrustPolicy::EstablishTrustPolicy ( { } -TAO::Security::EstablishTrustPolicy::~EstablishTrustPolicy (void) +TAO::Security::EstablishTrustPolicy::~EstablishTrustPolicy () { } @@ -21,7 +21,7 @@ TAO::Security::EstablishTrustPolicy::policy_type () } CORBA::Policy_ptr -TAO::Security::EstablishTrustPolicy::copy (void) +TAO::Security::EstablishTrustPolicy::copy () { TAO::Security::EstablishTrustPolicy *policy = 0; ACE_NEW_THROW_EX (policy, @@ -36,12 +36,12 @@ TAO::Security::EstablishTrustPolicy::copy (void) } void -TAO::Security::EstablishTrustPolicy::destroy (void) +TAO::Security::EstablishTrustPolicy::destroy () { } ::Security::EstablishTrust -TAO::Security::EstablishTrustPolicy::trust (void) +TAO::Security::EstablishTrustPolicy::trust () { return this->trust_; } diff --git a/TAO/orbsvcs/orbsvcs/Security/SL2_QOPPolicy.cpp b/TAO/orbsvcs/orbsvcs/Security/SL2_QOPPolicy.cpp index 9d41415ebd2..6fac5016428 100644 --- a/TAO/orbsvcs/orbsvcs/Security/SL2_QOPPolicy.cpp +++ b/TAO/orbsvcs/orbsvcs/Security/SL2_QOPPolicy.cpp @@ -9,18 +9,18 @@ TAO::Security::QOPPolicy::QOPPolicy (::Security::QOP qop) { } -TAO::Security::QOPPolicy::~QOPPolicy (void) +TAO::Security::QOPPolicy::~QOPPolicy () { } CORBA::PolicyType -TAO::Security::QOPPolicy::policy_type (void) +TAO::Security::QOPPolicy::policy_type () { return ::Security::SecQOPPolicy; } CORBA::Policy_ptr -TAO::Security::QOPPolicy::copy (void) +TAO::Security::QOPPolicy::copy () { TAO::Security::QOPPolicy * policy = 0; ACE_NEW_THROW_EX (policy, @@ -35,12 +35,12 @@ TAO::Security::QOPPolicy::copy (void) } void -TAO::Security::QOPPolicy::destroy (void) +TAO::Security::QOPPolicy::destroy () { } Security::QOP -TAO::Security::QOPPolicy::qop (void) +TAO::Security::QOPPolicy::qop () { return this->qop_; } diff --git a/TAO/orbsvcs/orbsvcs/Security/SL2_SecurityManager.cpp b/TAO/orbsvcs/orbsvcs/Security/SL2_SecurityManager.cpp index 0dfb18dcc59..6590858dfe5 100644 --- a/TAO/orbsvcs/orbsvcs/Security/SL2_SecurityManager.cpp +++ b/TAO/orbsvcs/orbsvcs/Security/SL2_SecurityManager.cpp @@ -27,7 +27,7 @@ TAO::Security::SecurityManager::SecurityManager (/* unknown */) this->access_decision_ = ad; } -TAO::Security::SecurityManager::~SecurityManager (void) +TAO::Security::SecurityManager::~SecurityManager () { } @@ -315,7 +315,7 @@ TAO::Security::AccessDecision::remove_object } CORBA::Boolean -TAO::Security::AccessDecision::default_decision (void) +TAO::Security::AccessDecision::default_decision () { return this->default_allowance_decision_; } @@ -327,7 +327,7 @@ TAO::Security::AccessDecision::default_decision (CORBA::Boolean d) } CORBA::Boolean -TAO::Security::AccessDecision::default_collocated_decision (void) +TAO::Security::AccessDecision::default_collocated_decision () { return this->default_collocated_decision_; } diff --git a/TAO/orbsvcs/orbsvcs/Security/SL3_ContextEstablishmentPolicy.cpp b/TAO/orbsvcs/orbsvcs/Security/SL3_ContextEstablishmentPolicy.cpp index 525dcf71228..9f1af843b94 100644 --- a/TAO/orbsvcs/orbsvcs/Security/SL3_ContextEstablishmentPolicy.cpp +++ b/TAO/orbsvcs/orbsvcs/Security/SL3_ContextEstablishmentPolicy.cpp @@ -18,7 +18,7 @@ TAO::SL3::ContextEstablishmentPolicy::ContextEstablishmentPolicy ( { } -TAO::SL3::ContextEstablishmentPolicy::~ContextEstablishmentPolicy (void) +TAO::SL3::ContextEstablishmentPolicy::~ContextEstablishmentPolicy () { } @@ -29,7 +29,7 @@ TAO::SL3::ContextEstablishmentPolicy::creds_directive () } SecurityLevel3::OwnCredentialsList * -TAO::SL3::ContextEstablishmentPolicy::creds_list (void) +TAO::SL3::ContextEstablishmentPolicy::creds_list () { SecurityLevel3::OwnCredentialsList * creds = 0; @@ -71,7 +71,7 @@ TAO::SL3::ContextEstablishmentPolicy::policy_type () } CORBA::Policy_ptr -TAO::SL3::ContextEstablishmentPolicy::copy (void) +TAO::SL3::ContextEstablishmentPolicy::copy () { CORBA::Policy_ptr p = CORBA::Policy_ptr (); ACE_NEW_THROW_EX (p, diff --git a/TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsAcquirerFactory.cpp b/TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsAcquirerFactory.cpp index 3cd971c403d..37104fb3940 100644 --- a/TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsAcquirerFactory.cpp +++ b/TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsAcquirerFactory.cpp @@ -2,7 +2,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO::SL3::CredentialsAcquirerFactory::~CredentialsAcquirerFactory (void) +TAO::SL3::CredentialsAcquirerFactory::~CredentialsAcquirerFactory () { } diff --git a/TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsCurator.cpp b/TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsCurator.cpp index 82d65bfe788..a1f9556ebb6 100644 --- a/TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsCurator.cpp +++ b/TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsCurator.cpp @@ -11,14 +11,14 @@ namespace TAO } } -TAO::SL3::CredentialsCurator::CredentialsCurator (void) +TAO::SL3::CredentialsCurator::CredentialsCurator () : lock_ (), acquirer_factories_ (), credentials_table_ (TAO::SL3::CREDENTIALS_TABLE_SIZE) { } -TAO::SL3::CredentialsCurator::~CredentialsCurator (void) +TAO::SL3::CredentialsCurator::~CredentialsCurator () { const Factory_Iterator fend = this->acquirer_factories_.end (); for (Factory_Iterator i = this->acquirer_factories_.begin (); @@ -62,13 +62,13 @@ TAO::SL3::CredentialsCurator::_narrow (CORBA::Object_ptr obj) } TAO::SL3::CredentialsCurator_ptr -TAO::SL3::CredentialsCurator::_nil (void) +TAO::SL3::CredentialsCurator::_nil () { return (CredentialsCurator *) 0; } SecurityLevel3::AcquisitionMethodList * -TAO::SL3::CredentialsCurator::supported_methods (void) +TAO::SL3::CredentialsCurator::supported_methods () { SecurityLevel3::AcquisitionMethodList * list; ACE_NEW_THROW_EX (list, @@ -115,7 +115,7 @@ TAO::SL3::CredentialsCurator::acquire_credentials ( } SecurityLevel3::OwnCredentialsList * -TAO::SL3::CredentialsCurator::default_creds_list (void) +TAO::SL3::CredentialsCurator::default_creds_list () { SecurityLevel3::OwnCredentialsList * list; ACE_NEW_THROW_EX (list, @@ -146,7 +146,7 @@ TAO::SL3::CredentialsCurator::default_creds_list (void) } SecurityLevel3::CredentialsIdList * -TAO::SL3::CredentialsCurator::default_creds_ids (void) +TAO::SL3::CredentialsCurator::default_creds_ids () { SecurityLevel3::CredentialsIdList * list; ACE_NEW_THROW_EX (list, diff --git a/TAO/orbsvcs/orbsvcs/Security/SL3_ObjectCredentialsPolicy.cpp b/TAO/orbsvcs/orbsvcs/Security/SL3_ObjectCredentialsPolicy.cpp index f8f99982eff..ddda19ce6e9 100644 --- a/TAO/orbsvcs/orbsvcs/Security/SL3_ObjectCredentialsPolicy.cpp +++ b/TAO/orbsvcs/orbsvcs/Security/SL3_ObjectCredentialsPolicy.cpp @@ -8,12 +8,12 @@ TAO::SL3::ObjectCredentialsPolicy::ObjectCredentialsPolicy ( { } -TAO::SL3::ObjectCredentialsPolicy::~ObjectCredentialsPolicy (void) +TAO::SL3::ObjectCredentialsPolicy::~ObjectCredentialsPolicy () { } SecurityLevel3::OwnCredentialsList * -TAO::SL3::ObjectCredentialsPolicy::creds_list (void) +TAO::SL3::ObjectCredentialsPolicy::creds_list () { SecurityLevel3::OwnCredentialsList * creds = 0; @@ -31,7 +31,7 @@ TAO::SL3::ObjectCredentialsPolicy::policy_type () } CORBA::Policy_ptr -TAO::SL3::ObjectCredentialsPolicy::copy (void) +TAO::SL3::ObjectCredentialsPolicy::copy () { CORBA::Policy_ptr p = CORBA::Policy_ptr (); ACE_NEW_THROW_EX (p, @@ -42,7 +42,7 @@ TAO::SL3::ObjectCredentialsPolicy::copy (void) } void -TAO::SL3::ObjectCredentialsPolicy::destroy (void) +TAO::SL3::ObjectCredentialsPolicy::destroy () { this->creds_list_.length (0); } diff --git a/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent.cpp b/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent.cpp index 582564c8aee..95bc274c937 100644 --- a/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent.cpp +++ b/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent.cpp @@ -14,12 +14,12 @@ TAO::SL3::SecurityCurrent::SecurityCurrent (size_t tss_slot, } -TAO::SL3::SecurityCurrent::~SecurityCurrent (void) +TAO::SL3::SecurityCurrent::~SecurityCurrent () { } SecurityLevel3::ClientCredentials_ptr -TAO::SL3::SecurityCurrent::client_credentials (void) +TAO::SL3::SecurityCurrent::client_credentials () { TAO::SL3::SecurityCurrent_Impl * impl = this->implementation (); @@ -33,7 +33,7 @@ TAO::SL3::SecurityCurrent::client_credentials (void) } CORBA::Boolean -TAO::SL3::SecurityCurrent::request_is_local (void) +TAO::SL3::SecurityCurrent::request_is_local () { TAO::SL3::SecurityCurrent_Impl * impl = this->implementation (); diff --git a/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.cpp b/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.cpp index 2dfaeb1645f..e9518af55ba 100644 --- a/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.cpp +++ b/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.cpp @@ -3,7 +3,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO::SL3::SecurityCurrent_Impl::~SecurityCurrent_Impl (void) +TAO::SL3::SecurityCurrent_Impl::~SecurityCurrent_Impl () { } diff --git a/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityManager.cpp b/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityManager.cpp index a0cc037bf31..9e1e1850e0a 100644 --- a/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityManager.cpp +++ b/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityManager.cpp @@ -10,7 +10,7 @@ TAO::SL3::SecurityManager::SecurityManager ( { } -TAO::SL3::SecurityManager::~SecurityManager (void) +TAO::SL3::SecurityManager::~SecurityManager () { } diff --git a/TAO/orbsvcs/orbsvcs/Security/Security_Current.cpp b/TAO/orbsvcs/orbsvcs/Security/Security_Current.cpp index 8ea7bb61737..2cde77f2465 100644 --- a/TAO/orbsvcs/orbsvcs/Security/Security_Current.cpp +++ b/TAO/orbsvcs/orbsvcs/Security/Security_Current.cpp @@ -16,7 +16,7 @@ TAO_Security_Current::TAO_Security_Current (size_t tss_slot, { } -TAO_Security_Current::~TAO_Security_Current (void) +TAO_Security_Current::~TAO_Security_Current () { } @@ -50,7 +50,7 @@ TAO_Security_Current::received_credentials () } int -TAO_Security_Current::init (void) +TAO_Security_Current::init () { int result = 0; diff --git a/TAO/orbsvcs/orbsvcs/Security/Security_Current_Impl.cpp b/TAO/orbsvcs/orbsvcs/Security/Security_Current_Impl.cpp index 0a6350f675f..75c6442c097 100644 --- a/TAO/orbsvcs/orbsvcs/Security/Security_Current_Impl.cpp +++ b/TAO/orbsvcs/orbsvcs/Security/Security_Current_Impl.cpp @@ -3,7 +3,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO::Security::Current_Impl::~Current_Impl (void) +TAO::Security::Current_Impl::~Current_Impl () { } diff --git a/TAO/orbsvcs/orbsvcs/Time/TAO_TIO.cpp b/TAO/orbsvcs/orbsvcs/Time/TAO_TIO.cpp index 6336278865f..aeb74e75716 100644 --- a/TAO/orbsvcs/orbsvcs/Time/TAO_TIO.cpp +++ b/TAO/orbsvcs/orbsvcs/Time/TAO_TIO.cpp @@ -11,14 +11,14 @@ TAO_TIO::TAO_TIO (TimeBase::TimeT lower, } // Destructor. -TAO_TIO::~TAO_TIO (void) +TAO_TIO::~TAO_TIO () { } // This is the get method for the attribute time interval. TimeBase::IntervalT -TAO_TIO::time_interval (void) +TAO_TIO::time_interval () { return attr_time_interval; } @@ -234,7 +234,7 @@ TAO_TIO::overlaps (CosTime::TIO_ptr tio, } CosTime::UTO_ptr -TAO_TIO::time (void) +TAO_TIO::time () { TAO_UTO *uto = 0; diff --git a/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.cpp b/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.cpp index a87bc724459..ee81b1d322f 100644 --- a/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.cpp +++ b/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.cpp @@ -32,7 +32,7 @@ TAO_Time_Service_Clerk::TAO_Time_Service_Clerk (int timer_value, // Destructor. -TAO_Time_Service_Clerk::~TAO_Time_Service_Clerk (void) +TAO_Time_Service_Clerk::~TAO_Time_Service_Clerk () { } @@ -40,7 +40,7 @@ TAO_Time_Service_Clerk::~TAO_Time_Service_Clerk (void) // in a UTO. CosTime::UTO_ptr -TAO_Time_Service_Clerk::universal_time (void) +TAO_Time_Service_Clerk::universal_time () { TAO_UTO *uto = 0; @@ -59,7 +59,7 @@ TAO_Time_Service_Clerk::universal_time (void) // implemented currently. CosTime::UTO_ptr -TAO_Time_Service_Clerk::secure_universal_time (void) +TAO_Time_Service_Clerk::secure_universal_time () { throw CORBA::NO_IMPLEMENT (); } @@ -120,7 +120,7 @@ TAO_Time_Service_Clerk::new_interval (TimeBase::TimeT lower, } CORBA::ULongLong -TAO_Time_Service_Clerk::get_time (void) +TAO_Time_Service_Clerk::get_time () { // Globally sync. time is the latest global time plus the time // elapsed since last updation was done. @@ -137,7 +137,7 @@ TAO_Time_Service_Clerk::get_time (void) // Returns the time displacement factor in minutes. // This is displacement from the GMT. CORBA::Short -TAO_Time_Service_Clerk::time_displacement_factor (void) +TAO_Time_Service_Clerk::time_displacement_factor () { return time_displacement_factor_; } @@ -151,7 +151,7 @@ TAO_Time_Service_Clerk::time_displacement_factor (CORBA::Short tdf) // GET method for inaccuracy. TimeBase::InaccuracyT -TAO_Time_Service_Clerk::inaccuracy (void) +TAO_Time_Service_Clerk::inaccuracy () { return this->inaccuracy_; } diff --git a/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.cpp b/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.cpp index d9fdf300e57..1433cac6262 100644 --- a/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.cpp +++ b/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.cpp @@ -11,12 +11,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL // Constructor. -TAO_Time_Service_Server::TAO_Time_Service_Server (void) +TAO_Time_Service_Server::TAO_Time_Service_Server () { } // Destructor. -TAO_Time_Service_Server::~TAO_Time_Service_Server (void) +TAO_Time_Service_Server::~TAO_Time_Service_Server () { } @@ -24,7 +24,7 @@ TAO_Time_Service_Server::~TAO_Time_Service_Server (void) // inaccuracy in a UTO. CosTime::UTO_ptr -TAO_Time_Service_Server::universal_time (void) +TAO_Time_Service_Server::universal_time () { TAO_UTO *uto = 0; @@ -51,7 +51,7 @@ TAO_Time_Service_Server::universal_time (void) // implemented currently. CosTime::UTO_ptr -TAO_Time_Service_Server::secure_universal_time (void) +TAO_Time_Service_Server::secure_universal_time () { throw CORBA::NO_IMPLEMENT (); } diff --git a/TAO/orbsvcs/orbsvcs/Time/TAO_UTO.cpp b/TAO/orbsvcs/orbsvcs/Time/TAO_UTO.cpp index 11461266cf6..73007d9845b 100644 --- a/TAO/orbsvcs/orbsvcs/Time/TAO_UTO.cpp +++ b/TAO/orbsvcs/orbsvcs/Time/TAO_UTO.cpp @@ -24,14 +24,14 @@ TAO_UTO::TAO_UTO (TimeBase::TimeT time, // Destructor. -TAO_UTO::~TAO_UTO (void) +TAO_UTO::~TAO_UTO () { } // Get Method for the readonly attribute time. TimeBase::TimeT -TAO_UTO::time (void) +TAO_UTO::time () { return attr_utc_time_.time; } @@ -39,7 +39,7 @@ TAO_UTO::time (void) // Get method for the readonly attribute inaccuracy. TimeBase::InaccuracyT -TAO_UTO::inaccuracy (void) +TAO_UTO::inaccuracy () { // Construct the Inaccuracy from the // inacchi and inacclo. @@ -53,7 +53,7 @@ TAO_UTO::inaccuracy (void) // Get method for the readonly attribute tdf. TimeBase::TdfT -TAO_UTO::tdf (void) +TAO_UTO::tdf () { return attr_utc_time_.tdf; } @@ -61,7 +61,7 @@ TAO_UTO::tdf (void) // Get method for the readonly attribute utc_time. TimeBase::UtcT -TAO_UTO::utc_time (void) +TAO_UTO::utc_time () { return attr_utc_time_; } @@ -70,7 +70,7 @@ TAO_UTO::utc_time (void) // the Base Time, UTC and Distributed Time Sync. Algos. [3]. CosTime::UTO_ptr -TAO_UTO::absolute_time (void) +TAO_UTO::absolute_time () { return CosTime::UTO::_nil (); } @@ -176,7 +176,7 @@ TAO_UTO::time_to_interval (CosTime::UTO_ptr uto) // time value in the UTO. CosTime::TIO_ptr -TAO_UTO::interval (void) +TAO_UTO::interval () { TAO_TIO *tio = 0; diff --git a/TAO/orbsvcs/orbsvcs/Time/Timer_Helper.cpp b/TAO/orbsvcs/orbsvcs/Time/Timer_Helper.cpp index 3264a707ddd..2dfdaaf37df 100644 --- a/TAO/orbsvcs/orbsvcs/Time/Timer_Helper.cpp +++ b/TAO/orbsvcs/orbsvcs/Time/Timer_Helper.cpp @@ -10,7 +10,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Timer_Helper::Timer_Helper (void) +Timer_Helper::Timer_Helper () : clerk_ (0) { } @@ -21,7 +21,7 @@ Timer_Helper::Timer_Helper (TAO_Time_Service_Clerk *clerk) } -Timer_Helper::~Timer_Helper (void) +Timer_Helper::~Timer_Helper () { } diff --git a/TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.cpp b/TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.cpp index 5205633818b..b48aa8e55f7 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.cpp +++ b/TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.cpp @@ -51,7 +51,7 @@ TAO_Constraint_Interpreter (TAO_Constraint_Validator& validator, } } -TAO_Constraint_Interpreter::~TAO_Constraint_Interpreter (void) +TAO_Constraint_Interpreter::~TAO_Constraint_Interpreter () { } @@ -225,7 +225,7 @@ remove_offer (CosTrading::Offer*& offer) size_t -TAO_Preference_Interpreter::num_offers (void) +TAO_Preference_Interpreter::num_offers () { return this->offers_.size (); } diff --git a/TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.h b/TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.h index 521827604cc..6905df54a60 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.h +++ b/TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.h @@ -134,9 +134,10 @@ public: typedef ACE_Unbounded_Queue<Preference_Info> Ordered_Offers; private: - /// Disallow copying. - TAO_Preference_Interpreter (const TAO_Preference_Interpreter&); - TAO_Preference_Interpreter& operator= (const TAO_Preference_Interpreter&); + TAO_Preference_Interpreter (const TAO_Preference_Interpreter&) = delete; + TAO_Preference_Interpreter& operator= (const TAO_Preference_Interpreter&) = delete; + TAO_Preference_Interpreter (TAO_Preference_Interpreter&&) = delete; + TAO_Preference_Interpreter& operator= (TAO_Preference_Interpreter&&) = delete; /// The ordered list of offers. Ordered_Offers offers_; diff --git a/TAO/orbsvcs/orbsvcs/Trader/Constraint_Nodes.cpp b/TAO/orbsvcs/orbsvcs/Trader/Constraint_Nodes.cpp index 8ea8c4946c2..3d20afdd2bd 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Constraint_Nodes.cpp +++ b/TAO/orbsvcs/orbsvcs/Trader/Constraint_Nodes.cpp @@ -37,7 +37,7 @@ TAO_Binary_Constraint (TAO_Expression_Type op_type, { } -TAO_Binary_Constraint::~TAO_Binary_Constraint (void) +TAO_Binary_Constraint::~TAO_Binary_Constraint () { delete left_; delete right_; @@ -194,13 +194,13 @@ visit_in (TAO_Constraint_Visitor* visitor, TAO_Constraint* -TAO_Binary_Constraint::left_operand (void) const +TAO_Binary_Constraint::left_operand () const { return this->left_; } TAO_Constraint* -TAO_Binary_Constraint::right_operand (void) const +TAO_Binary_Constraint::right_operand () const { return this->right_; } @@ -213,7 +213,7 @@ TAO_Unary_Constraint (TAO_Expression_Type op_type, { } -TAO_Unary_Constraint::~TAO_Unary_Constraint (void) +TAO_Unary_Constraint::~TAO_Unary_Constraint () { delete operand_; } @@ -254,7 +254,7 @@ TAO_Unary_Constraint::accept (TAO_Constraint_Visitor* visitor) } TAO_Constraint* -TAO_Unary_Constraint::operand (void) +TAO_Unary_Constraint::operand () { return this->operand_; } @@ -265,7 +265,7 @@ TAO_Property_Constraint (const char* name) { } -TAO_Property_Constraint::~TAO_Property_Constraint (void) +TAO_Property_Constraint::~TAO_Property_Constraint () { CORBA::string_free (this->name_); } @@ -277,18 +277,18 @@ TAO_Property_Constraint::accept (TAO_Constraint_Visitor* visitor) } TAO_Expression_Type -TAO_Property_Constraint::expr_type (void) const +TAO_Property_Constraint::expr_type () const { return TAO_IDENT; } const char* -TAO_Property_Constraint::name (void) const +TAO_Property_Constraint::name () const { return name_; } -TAO_Literal_Constraint::TAO_Literal_Constraint (void) +TAO_Literal_Constraint::TAO_Literal_Constraint () : type_ (TAO_UNKNOWN) { } @@ -415,7 +415,7 @@ TAO_Literal_Constraint::TAO_Literal_Constraint (const char* str) this->op_.str_ = CORBA::string_dup (str); } -TAO_Literal_Constraint::~TAO_Literal_Constraint (void) +TAO_Literal_Constraint::~TAO_Literal_Constraint () { if (this->type_ == TAO_STRING) CORBA::string_free (this->op_.str_); @@ -433,12 +433,12 @@ TAO_Literal_Constraint::operator= (const TAO_Literal_Constraint& co) this->copy (co); } -TAO_Literal_Constraint::operator CORBA::Boolean (void) const +TAO_Literal_Constraint::operator CORBA::Boolean () const { return (this->type_ == TAO_BOOLEAN) ? this->op_.bool_ : 0; } -TAO_Literal_Constraint::operator CORBA::ULongLong (void) const +TAO_Literal_Constraint::operator CORBA::ULongLong () const { CORBA::ULongLong return_value = 0; @@ -458,7 +458,7 @@ TAO_Literal_Constraint::operator CORBA::ULongLong (void) const return return_value; } -TAO_Literal_Constraint::operator CORBA::LongLong (void) const +TAO_Literal_Constraint::operator CORBA::LongLong () const { CORBA::LongLong return_value = 0; @@ -481,7 +481,7 @@ TAO_Literal_Constraint::operator CORBA::LongLong (void) const return return_value; } -TAO_Literal_Constraint::operator CORBA::Double (void) const +TAO_Literal_Constraint::operator CORBA::Double () const { CORBA::Double return_value = 0.0; @@ -495,12 +495,12 @@ TAO_Literal_Constraint::operator CORBA::Double (void) const return return_value; } -TAO_Literal_Constraint::operator const char* (void) const +TAO_Literal_Constraint::operator const char* () const { return (this->type_ == TAO_STRING) ? this->op_.str_ : 0; } -TAO_Literal_Constraint::operator const CORBA::Any* (void) const +TAO_Literal_Constraint::operator const CORBA::Any* () const { return (this->type_ == TAO_SEQUENCE) ? this->op_.any_ : 0; } diff --git a/TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.cpp b/TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.cpp index 8772fbd39d4..a066079520c 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.cpp +++ b/TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.cpp @@ -9,12 +9,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Constraint_Evaluator::Operand_Queue::Operand_Queue (void) +TAO_Constraint_Evaluator::Operand_Queue::Operand_Queue () { } TAO_Literal_Constraint& -TAO_Constraint_Evaluator::Operand_Queue::get_left_operand (void) +TAO_Constraint_Evaluator::Operand_Queue::get_left_operand () { TAO_Literal_Constraint* left_operand = 0; this->get (left_operand, 1); @@ -22,7 +22,7 @@ TAO_Constraint_Evaluator::Operand_Queue::get_left_operand (void) } TAO_Literal_Constraint& -TAO_Constraint_Evaluator::Operand_Queue::get_right_operand (void) +TAO_Constraint_Evaluator::Operand_Queue::get_right_operand () { TAO_Literal_Constraint* right_operand = 0; this->get (right_operand); @@ -30,7 +30,7 @@ TAO_Constraint_Evaluator::Operand_Queue::get_right_operand (void) } TAO_Literal_Constraint& -TAO_Constraint_Evaluator::Operand_Queue::get_operand (void) +TAO_Constraint_Evaluator::Operand_Queue::get_operand () { TAO_Literal_Constraint* operand = 0; this->get (operand); @@ -38,13 +38,13 @@ TAO_Constraint_Evaluator::Operand_Queue::get_operand (void) } void -TAO_Constraint_Evaluator::Operand_Queue::dequeue_operand (void) +TAO_Constraint_Evaluator::Operand_Queue::dequeue_operand () { TAO_Literal_Constraint operand; this->dequeue_head (operand); } -TAO_Constraint_Evaluator::TAO_Constraint_Evaluator (void) +TAO_Constraint_Evaluator::TAO_Constraint_Evaluator () { // No-Op. } @@ -759,12 +759,12 @@ operator () (TAO_DynSequence_i& dyn_any, } TAO_Constraint_Validator:: -TAO_Constraint_Validator (void) +TAO_Constraint_Validator () { // No-Op. } -TAO_Constraint_Validator::~TAO_Constraint_Validator (void) +TAO_Constraint_Validator::~TAO_Constraint_Validator () { for (TAO_Typecode_Table::iterator type_iter (this->type_map_); ! type_iter.done (); diff --git a/TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.h b/TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.h index 0351c364934..c4546897636 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.h +++ b/TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.h @@ -344,12 +344,12 @@ private: CORBA::Boolean sequence_does_contain (CORBA::Any* sequence, TAO_Literal_Constraint& element); - /// Disallow copying. - TAO_Constraint_Evaluator (const TAO_Constraint_Evaluator&); - TAO_Constraint_Evaluator& operator= (const TAO_Constraint_Evaluator&); + TAO_Constraint_Evaluator (const TAO_Constraint_Evaluator&) = delete; + TAO_Constraint_Evaluator& operator= (const TAO_Constraint_Evaluator&) = delete; + TAO_Constraint_Evaluator (TAO_Constraint_Evaluator&&) = delete; + TAO_Constraint_Evaluator& operator= (TAO_Constraint_Evaluator&&) = delete; protected: - /// The map of property names to their values for a property. TAO_Lookup_Table props_; diff --git a/TAO/orbsvcs/orbsvcs/Trader/Constraint_l.cpp b/TAO/orbsvcs/orbsvcs/Trader/Constraint_l.cpp index fc4038822dd..9d0429b6b46 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Constraint_l.cpp +++ b/TAO/orbsvcs/orbsvcs/Trader/Constraint_l.cpp @@ -373,11 +373,11 @@ YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size ); void yy_delete_buffer ( YY_BUFFER_STATE b ); void yy_flush_buffer ( YY_BUFFER_STATE b ); void yypush_buffer_state ( YY_BUFFER_STATE new_buffer ); -void yypop_buffer_state ( void ); +void yypop_buffer_state ( ); -static void yyensure_buffer_stack ( void ); -static void yy_load_buffer_state ( void ); +static void yyensure_buffer_stack ( ); +static void yy_load_buffer_state ( ); static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file ); #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER ) @@ -435,9 +435,9 @@ extern char *yytext; -static yy_state_type yy_get_previous_state ( void ); +static yy_state_type yy_get_previous_state ( ); static yy_state_type yy_try_NUL_trans ( yy_state_type current_state ); -static int yy_get_next_buffer ( void ); +static int yy_get_next_buffer ( ); static void yynoreturn yy_fatal_error ( const char* msg ); @@ -651,18 +651,18 @@ static CORBA::ULongLong trader_strtoull(const char* str, unsigned int base); -static int yy_init_globals ( void ); +static int yy_init_globals ( ); /* Accessor methods to globals. These are made visible to non-reentrant scanners for convenience. */ -int yylex_destroy ( void ); +int yylex_destroy ( ); -int yyget_debug ( void ); +int yyget_debug ( ); @@ -670,7 +670,7 @@ void yyset_debug ( int debug_flag ); -YY_EXTRA_TYPE yyget_extra ( void ); +YY_EXTRA_TYPE yyget_extra ( ); @@ -678,7 +678,7 @@ void yyset_extra ( YY_EXTRA_TYPE user_defined ); -FILE *yyget_in ( void ); +FILE *yyget_in ( ); @@ -686,7 +686,7 @@ void yyset_in ( FILE * _in_str ); -FILE *yyget_out ( void ); +FILE *yyget_out ( ); @@ -694,15 +694,15 @@ void yyset_out ( FILE * _out_str ); - int yyget_leng ( void ); + int yyget_leng ( ); -char *yyget_text ( void ); +char *yyget_text ( ); -int yyget_lineno ( void ); +int yyget_lineno ( ); @@ -856,7 +856,7 @@ static int input ( void ); -extern int yylex (void); +extern int yylex (); #define YY_DECL int yylex (void) #endif /* !YY_DECL */ @@ -1298,7 +1298,7 @@ case YY_STATE_EOF(INITIAL): * EOB_ACT_CONTINUE_SCAN - continue scanning from current position * EOB_ACT_END_OF_FILE - end of file */ -static int yy_get_next_buffer (void) +static int yy_get_next_buffer () { char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; char *source = (yytext_ptr); @@ -1437,7 +1437,7 @@ static int yy_get_next_buffer (void) /* yy_get_previous_state - get the state just before the EOB char was reached */ - static yy_state_type yy_get_previous_state (void) + static yy_state_type yy_get_previous_state () { yy_state_type yy_current_state; char *yy_cp; @@ -1667,7 +1667,7 @@ static int yy_get_next_buffer (void) } -static void yy_load_buffer_state (void) +static void yy_load_buffer_state () { (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; @@ -1821,7 +1821,7 @@ void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) * The next element becomes the new top. * */ -void yypop_buffer_state (void) +void yypop_buffer_state () { if (!YY_CURRENT_BUFFER) return; @@ -1841,7 +1841,7 @@ void yypop_buffer_state (void) /* Allocates the stack if it does not exist. * Guarantees space for at least one push. */ -static void yyensure_buffer_stack (void) +static void yyensure_buffer_stack () { yy_size_t num_to_alloc; @@ -2027,7 +2027,7 @@ static void yynoreturn yy_fatal_error (const char* msg ) /** Get the current line number. * */ -int yyget_lineno (void) +int yyget_lineno () { @@ -2041,7 +2041,7 @@ int yyget_lineno (void) /** Get the input stream. * */ -FILE *yyget_in (void) +FILE *yyget_in () { return yyin; } @@ -2051,7 +2051,7 @@ FILE *yyget_in (void) /** Get the output stream. * */ -FILE *yyget_out (void) +FILE *yyget_out () { return yyout; } @@ -2061,7 +2061,7 @@ FILE *yyget_out (void) /** Get the length of the current token. * */ -int yyget_leng (void) +int yyget_leng () { return yyleng; } @@ -2071,7 +2071,7 @@ int yyget_leng (void) * */ -char *yyget_text (void) +char *yyget_text () { return yytext; } @@ -2116,7 +2116,7 @@ void yyset_out (FILE * _out_str ) -int yyget_debug (void) +int yyget_debug () { return yy_flex_debug; } @@ -2130,7 +2130,7 @@ void yyset_debug (int _bdebug ) -static int yy_init_globals (void) +static int yy_init_globals () { /* Initialization is the same as for the non-reentrant scanner. * This function is called from yylex_destroy(), so don't allocate here. @@ -2167,7 +2167,7 @@ static int yy_init_globals (void) /* yylex_destroy is for both reentrant and non-reentrant scanners. */ -int yylex_destroy (void) +int yylex_destroy () { /* Pop the buffer stack, destroying each element. */ diff --git a/TAO/orbsvcs/orbsvcs/Trader/Interpreter.cpp b/TAO/orbsvcs/orbsvcs/Trader/Interpreter.cpp index fb982f6a424..2c4cb219d93 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Interpreter.cpp +++ b/TAO/orbsvcs/orbsvcs/Trader/Interpreter.cpp @@ -5,12 +5,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_SYNCH_MUTEX TAO_Interpreter::parserMutex__; -TAO_Interpreter::TAO_Interpreter (void) +TAO_Interpreter::TAO_Interpreter () : root_ (0) { } -TAO_Interpreter::~TAO_Interpreter (void) +TAO_Interpreter::~TAO_Interpreter () { delete root_; } diff --git a/TAO/orbsvcs/orbsvcs/Trader/Offer_Database.cpp b/TAO/orbsvcs/orbsvcs/Trader/Offer_Database.cpp index 9e1246a55a1..576b8544083 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Offer_Database.cpp +++ b/TAO/orbsvcs/orbsvcs/Trader/Offer_Database.cpp @@ -8,12 +8,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL template <class LOCK_TYPE> -TAO_Offer_Database<LOCK_TYPE>::TAO_Offer_Database (void) +TAO_Offer_Database<LOCK_TYPE>::TAO_Offer_Database () { } template <class LOCK_TYPE> -TAO_Offer_Database<LOCK_TYPE>::~TAO_Offer_Database (void) +TAO_Offer_Database<LOCK_TYPE>::~TAO_Offer_Database () { ACE_WRITE_GUARD (LOCK_TYPE, ace_mon, this->db_lock_); @@ -220,7 +220,7 @@ lookup_offer (const char* type, CORBA::ULong id) } template <class LOCK_TYPE> TAO_Offer_Id_Iterator* -TAO_Offer_Database<LOCK_TYPE>::retrieve_all_offer_ids (void) +TAO_Offer_Database<LOCK_TYPE>::retrieve_all_offer_ids () { ACE_READ_GUARD_RETURN (LOCK_TYPE, ace_mon, this->db_lock_, 0); @@ -328,7 +328,7 @@ TAO_Service_Offer_Iterator (const char* type, } template <class LOCK_TYPE> -TAO_Service_Offer_Iterator<LOCK_TYPE>::~TAO_Service_Offer_Iterator (void) +TAO_Service_Offer_Iterator<LOCK_TYPE>::~TAO_Service_Offer_Iterator () { this->stm_.db_lock_.release (); @@ -340,7 +340,7 @@ TAO_Service_Offer_Iterator<LOCK_TYPE>::~TAO_Service_Offer_Iterator (void) } template <class LOCK_TYPE> CosTrading::OfferId -TAO_Service_Offer_Iterator<LOCK_TYPE>::get_id (void) +TAO_Service_Offer_Iterator<LOCK_TYPE>::get_id () { return (this->offer_iter_ != 0) ? TAO_Offer_Database<LOCK_TYPE>::generate_offer_id (this->type_, (**this->offer_iter_).ext_id_) @@ -348,20 +348,20 @@ TAO_Service_Offer_Iterator<LOCK_TYPE>::get_id (void) } template <class LOCK_TYPE> int -TAO_Service_Offer_Iterator<LOCK_TYPE>::has_more_offers (void) +TAO_Service_Offer_Iterator<LOCK_TYPE>::has_more_offers () { return (this->offer_iter_ != 0) ? ! this->offer_iter_->done () : 0; } template <class LOCK_TYPE> CosTrading::Offer* -TAO_Service_Offer_Iterator<LOCK_TYPE>::get_offer (void) +TAO_Service_Offer_Iterator<LOCK_TYPE>::get_offer () { return (this->offer_iter_ != 0) ? (**this->offer_iter_).int_id_ : 0; } template <class LOCK_TYPE> void -TAO_Service_Offer_Iterator<LOCK_TYPE>::next_offer (void) +TAO_Service_Offer_Iterator<LOCK_TYPE>::next_offer () { if (this->offer_iter_ != 0) this->offer_iter_->advance (); diff --git a/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.cpp b/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.cpp index 465445a518b..e79269ae7b3 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.cpp +++ b/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.cpp @@ -7,12 +7,12 @@ TAO_Offer_Iterator::TAO_Offer_Iterator (const TAO_Property_Filter& pfilter) { } -TAO_Offer_Iterator::~TAO_Offer_Iterator (void) +TAO_Offer_Iterator::~TAO_Offer_Iterator () { } void -TAO_Offer_Iterator::destroy (void) +TAO_Offer_Iterator::destroy () { // Remove self from POA @@ -31,7 +31,7 @@ TAO_Query_Only_Offer_Iterator(const TAO_Property_Filter& pfilter) { } -TAO_Query_Only_Offer_Iterator::~TAO_Query_Only_Offer_Iterator(void) +TAO_Query_Only_Offer_Iterator::~TAO_Query_Only_Offer_Iterator() { } @@ -44,7 +44,7 @@ TAO_Query_Only_Offer_Iterator::add_offer (CosTrading::OfferId offer_id, } CORBA::ULong -TAO_Query_Only_Offer_Iterator::max_left (void) +TAO_Query_Only_Offer_Iterator::max_left () { return static_cast<CORBA::ULong> (this->offers_.size ()); } @@ -71,11 +71,11 @@ TAO_Query_Only_Offer_Iterator::next_n (CORBA::ULong n, return offers_in_sequence != 0; } -TAO_Offer_Iterator_Collection::TAO_Offer_Iterator_Collection (void) +TAO_Offer_Iterator_Collection::TAO_Offer_Iterator_Collection () { } -TAO_Offer_Iterator_Collection::~TAO_Offer_Iterator_Collection (void) +TAO_Offer_Iterator_Collection::~TAO_Offer_Iterator_Collection () { while (! this->iters_.is_empty ()) { @@ -157,7 +157,7 @@ TAO_Offer_Iterator_Collection::next_n (CORBA::ULong n, } void -TAO_Offer_Iterator_Collection::destroy (void) +TAO_Offer_Iterator_Collection::destroy () { // Destroy all iterators in the collection. for (Offer_Iters::ITERATOR iters_iter (this->iters_); @@ -182,16 +182,16 @@ TAO_Offer_Iterator_Collection::destroy (void) } CORBA::ULong -TAO_Offer_Iterator_Collection::max_left (void) +TAO_Offer_Iterator_Collection::max_left () { throw CosTrading::UnknownMaxLeft(); } -TAO_Offer_Id_Iterator::TAO_Offer_Id_Iterator (void) +TAO_Offer_Id_Iterator::TAO_Offer_Id_Iterator () { } -TAO_Offer_Id_Iterator::~TAO_Offer_Id_Iterator (void) +TAO_Offer_Id_Iterator::~TAO_Offer_Id_Iterator () { int return_value = 0; @@ -207,13 +207,13 @@ TAO_Offer_Id_Iterator::~TAO_Offer_Id_Iterator (void) } CORBA::ULong -TAO_Offer_Id_Iterator::max_left (void) +TAO_Offer_Id_Iterator::max_left () { return static_cast<CORBA::ULong> (this->ids_.size ()); } void -TAO_Offer_Id_Iterator::destroy (void) +TAO_Offer_Id_Iterator::destroy () { // Remove self from POA diff --git a/TAO/orbsvcs/orbsvcs/Trader/Service_Type_Repository.cpp b/TAO/orbsvcs/orbsvcs/Trader/Service_Type_Repository.cpp index 6e6c27cfb33..c64338e52ed 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Service_Type_Repository.cpp +++ b/TAO/orbsvcs/orbsvcs/Trader/Service_Type_Repository.cpp @@ -16,7 +16,7 @@ TAO_Service_Type_Repository::TAO_Service_Type_Repository (ACE_Lock* lock) ACE_Lock_Adapter<ACE_Null_Mutex>); } -TAO_Service_Type_Repository::~TAO_Service_Type_Repository (void) +TAO_Service_Type_Repository::~TAO_Service_Type_Repository () { { // Make sure not to throw exceptions in destructors... @@ -35,7 +35,7 @@ TAO_Service_Type_Repository::~TAO_Service_Type_Repository (void) } CosTradingRepos::ServiceTypeRepository::IncarnationNumber -TAO_Service_Type_Repository::incarnation (void) +TAO_Service_Type_Repository::incarnation () { CosTradingRepos::ServiceTypeRepository::IncarnationNumber inc_num; diff --git a/TAO/orbsvcs/orbsvcs/Trader/Trader.cpp b/TAO/orbsvcs/orbsvcs/Trader/Trader.cpp index 3d36b2862af..5ca9f7b1236 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Trader.cpp +++ b/TAO/orbsvcs/orbsvcs/Trader/Trader.cpp @@ -11,7 +11,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Trader_Base::TAO_Trader_Base (void) +TAO_Trader_Base::TAO_Trader_Base () : trading_components_ (*this), import_attributes_ (*this), support_attributes_ (*this), @@ -19,54 +19,54 @@ TAO_Trader_Base::TAO_Trader_Base (void) { } -TAO_Trader_Base::~TAO_Trader_Base (void) +TAO_Trader_Base::~TAO_Trader_Base () { } TAO_Import_Attributes_i & -TAO_Trader_Base::import_attributes (void) +TAO_Trader_Base::import_attributes () { return this->import_attributes_; } const TAO_Import_Attributes_i & -TAO_Trader_Base::import_attributes (void) const +TAO_Trader_Base::import_attributes () const { return this->import_attributes_; } TAO_Support_Attributes_i & -TAO_Trader_Base::support_attributes (void) +TAO_Trader_Base::support_attributes () { return this->support_attributes_; } const TAO_Support_Attributes_i & -TAO_Trader_Base::support_attributes (void) const +TAO_Trader_Base::support_attributes () const { return this->support_attributes_; } TAO_Link_Attributes_i & -TAO_Trader_Base::link_attributes (void) +TAO_Trader_Base::link_attributes () { return this->link_attributes_; } const TAO_Link_Attributes_i & -TAO_Trader_Base::link_attributes (void) const +TAO_Trader_Base::link_attributes () const { return this->link_attributes_; } TAO_Trading_Components_i & -TAO_Trader_Base::trading_components (void) +TAO_Trader_Base::trading_components () { return this->trading_components_; } const TAO_Trading_Components_i & -TAO_Trader_Base::trading_components (void) const +TAO_Trader_Base::trading_components () const { return this->trading_components_; } @@ -157,7 +157,7 @@ TAO_Trader_Base::is_valid_identifier_name (const char* ident) return return_value; } -TAO_Lockable::~TAO_Lockable (void) +TAO_Lockable::~TAO_Lockable () { } @@ -172,12 +172,12 @@ TAO_Support_Attributes_i (TAO_Lockable &locker) { } -TAO_Support_Attributes_i::~TAO_Support_Attributes_i (void) +TAO_Support_Attributes_i::~TAO_Support_Attributes_i () { } CORBA::Boolean -TAO_Support_Attributes_i::supports_modifiable_properties (void) const +TAO_Support_Attributes_i::supports_modifiable_properties () const { ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), 0); @@ -193,7 +193,7 @@ supports_modifiable_properties (CORBA::Boolean new_value) } CORBA::Boolean -TAO_Support_Attributes_i::supports_dynamic_properties (void) const +TAO_Support_Attributes_i::supports_dynamic_properties () const { ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), 0); @@ -210,7 +210,7 @@ supports_dynamic_properties (CORBA::Boolean new_value) } CORBA::Boolean -TAO_Support_Attributes_i::supports_proxy_offers (void) const +TAO_Support_Attributes_i::supports_proxy_offers () const { ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), 0); @@ -227,7 +227,7 @@ supports_proxy_offers (CORBA::Boolean new_value) } CosTrading::TypeRepository_ptr -TAO_Support_Attributes_i::type_repos (void) const +TAO_Support_Attributes_i::type_repos () const { ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), CosTrading::TypeRepository::_nil ()); @@ -248,7 +248,7 @@ type_repos (CosTrading::TypeRepository_ptr new_value) } CosTradingRepos::ServiceTypeRepository_ptr -TAO_Support_Attributes_i::service_type_repos (void) const +TAO_Support_Attributes_i::service_type_repos () const { return this->service_type_repos_.ptr (); } @@ -272,12 +272,12 @@ TAO_Import_Attributes_i (TAO_Lockable &locker) } -TAO_Import_Attributes_i::~TAO_Import_Attributes_i (void) +TAO_Import_Attributes_i::~TAO_Import_Attributes_i () { } CORBA::ULong -TAO_Import_Attributes_i::def_search_card (void) const +TAO_Import_Attributes_i::def_search_card () const { ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), 10); return this->def_search_card_; @@ -295,7 +295,7 @@ TAO_Import_Attributes_i::def_search_card (CORBA::ULong new_value) } CORBA::ULong -TAO_Import_Attributes_i::max_search_card (void) const +TAO_Import_Attributes_i::max_search_card () const { ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), 10); return this->max_search_card_; @@ -313,7 +313,7 @@ TAO_Import_Attributes_i::max_search_card (CORBA::ULong new_value) } CORBA::ULong -TAO_Import_Attributes_i::def_match_card (void) const +TAO_Import_Attributes_i::def_match_card () const { ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), 10); return this->def_match_card_; @@ -331,7 +331,7 @@ TAO_Import_Attributes_i::def_match_card (CORBA::ULong new_value) } CORBA::ULong -TAO_Import_Attributes_i::max_match_card (void) const +TAO_Import_Attributes_i::max_match_card () const { ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), 10); return this->max_match_card_; @@ -348,7 +348,7 @@ TAO_Import_Attributes_i::max_match_card (CORBA::ULong new_value) } CORBA::ULong -TAO_Import_Attributes_i::def_return_card (void) const +TAO_Import_Attributes_i::def_return_card () const { ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), 10); return this->def_return_card_; @@ -366,7 +366,7 @@ TAO_Import_Attributes_i::def_return_card (CORBA::ULong new_value) } CORBA::ULong -TAO_Import_Attributes_i::max_return_card (void) const +TAO_Import_Attributes_i::max_return_card () const { ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), 10); return this->max_return_card_; @@ -383,7 +383,7 @@ TAO_Import_Attributes_i::max_return_card (CORBA::ULong new_value) } CORBA::ULong -TAO_Import_Attributes_i::max_list (void) const +TAO_Import_Attributes_i::max_list () const { ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), 0); return this->max_list_; @@ -397,7 +397,7 @@ TAO_Import_Attributes_i::max_list (CORBA::ULong new_value) } CORBA::ULong -TAO_Import_Attributes_i::def_hop_count (void) const +TAO_Import_Attributes_i::def_hop_count () const { ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), 0); return this->def_hop_count_; @@ -415,7 +415,7 @@ TAO_Import_Attributes_i::def_hop_count (CORBA::ULong new_value) } CORBA::ULong -TAO_Import_Attributes_i::max_hop_count (void) const +TAO_Import_Attributes_i::max_hop_count () const { ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), 0); return this->max_hop_count_; @@ -432,7 +432,7 @@ TAO_Import_Attributes_i::max_hop_count (CORBA::ULong new_value) } CosTrading::FollowOption -TAO_Import_Attributes_i::def_follow_policy (void) const +TAO_Import_Attributes_i::def_follow_policy () const { ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), CosTrading::local_only); return this->def_follow_policy_; @@ -450,7 +450,7 @@ TAO_Import_Attributes_i::def_follow_policy (CosTrading::FollowOption new_value) } CosTrading::FollowOption -TAO_Import_Attributes_i::max_follow_policy (void) const +TAO_Import_Attributes_i::max_follow_policy () const { ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), CosTrading::local_only); return this->max_follow_policy_; @@ -477,12 +477,12 @@ TAO_Trading_Components_i::TAO_Trading_Components_i (TAO_Lockable &locker) { } -TAO_Trading_Components_i::~TAO_Trading_Components_i (void) +TAO_Trading_Components_i::~TAO_Trading_Components_i () { } CosTrading::Lookup_ptr -TAO_Trading_Components_i::lookup_if (void) const +TAO_Trading_Components_i::lookup_if () const { ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), CosTrading::Lookup::_nil ()); @@ -497,7 +497,7 @@ TAO_Trading_Components_i::lookup_if (CosTrading::Lookup_ptr new_value) } CosTrading::Register_ptr -TAO_Trading_Components_i::register_if (void) const +TAO_Trading_Components_i::register_if () const { ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), CosTrading::Register::_nil ()); @@ -512,7 +512,7 @@ TAO_Trading_Components_i::register_if (CosTrading::Register_ptr new_value) } CosTrading::Link_ptr -TAO_Trading_Components_i::link_if (void) const +TAO_Trading_Components_i::link_if () const { ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), CosTrading::Link::_nil ()); @@ -527,7 +527,7 @@ TAO_Trading_Components_i::link_if (CosTrading::Link_ptr new_value) } CosTrading::Proxy_ptr -TAO_Trading_Components_i::proxy_if (void) const +TAO_Trading_Components_i::proxy_if () const { ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), CosTrading::Proxy::_nil ()); @@ -542,7 +542,7 @@ TAO_Trading_Components_i::proxy_if (CosTrading::Proxy_ptr new_value) } CosTrading::Admin_ptr -TAO_Trading_Components_i::admin_if (void) const +TAO_Trading_Components_i::admin_if () const { ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), CosTrading::Admin::_nil ()); @@ -563,12 +563,12 @@ TAO_Link_Attributes_i::TAO_Link_Attributes_i (TAO_Lockable &locker) { } -TAO_Link_Attributes_i::~TAO_Link_Attributes_i (void) +TAO_Link_Attributes_i::~TAO_Link_Attributes_i () { } CosTrading::FollowOption -TAO_Link_Attributes_i::max_link_follow_policy (void) const +TAO_Link_Attributes_i::max_link_follow_policy () const { ACE_READ_GUARD_RETURN (ACE_Lock, ace_mon, this->locker_.lock (), CosTrading::local_only); @@ -661,7 +661,7 @@ TAO_Trader_Factory::TAO_Trader_Factory (int& argc, ACE_TCHAR** argv) } TAO_Trader_Factory::TAO_TRADER * -TAO_Trader_Factory::manufacture_trader (void) +TAO_Trader_Factory::manufacture_trader () { typedef TAO_Trader<ACE_Null_Mutex, ACE_Null_Mutex> TRADER; diff --git a/TAO/orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp b/TAO/orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp index 7a676905862..67941639ea2 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp +++ b/TAO/orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp @@ -22,7 +22,7 @@ TAO_Lookup (TAO_Trader<TRADER_LOCK_TYPE,MAP_LOCK_TYPE> &trader) } template <class TRADER_LOCK_TYPE, class MAP_LOCK_TYPE> -TAO_Lookup<TRADER_LOCK_TYPE,MAP_LOCK_TYPE>::~TAO_Lookup (void) +TAO_Lookup<TRADER_LOCK_TYPE,MAP_LOCK_TYPE>::~TAO_Lookup () { ACE_GUARD (TRADER_LOCK_TYPE, trader_mon, this->lock_); for (Request_Ids::ITERATOR riter (this->request_ids_); @@ -790,7 +790,7 @@ TAO_Register<TRADER_LOCK_TYPE,MAP_LOCK_TYPE>::TAO_Register (TAO_Trader<TRADER_LO } template <class TRADER_LOCK_TYPE, class MAP_LOCK_TYPE> -TAO_Register<TRADER_LOCK_TYPE,MAP_LOCK_TYPE>::~TAO_Register (void) +TAO_Register<TRADER_LOCK_TYPE,MAP_LOCK_TYPE>::~TAO_Register () { } @@ -1162,13 +1162,13 @@ TAO_Admin (TAO_Trader<TRADER_LOCK_TYPE,MAP_LOCK_TYPE> &trader) } template <class TRADER_LOCK_TYPE, class MAP_LOCK_TYPE> -TAO_Admin<TRADER_LOCK_TYPE,MAP_LOCK_TYPE>::~TAO_Admin (void) +TAO_Admin<TRADER_LOCK_TYPE,MAP_LOCK_TYPE>::~TAO_Admin () { } template <class TRADER_LOCK_TYPE, class MAP_LOCK_TYPE> CosTrading::Admin::OctetSeq * -TAO_Admin<TRADER_LOCK_TYPE,MAP_LOCK_TYPE>::request_id_stem (void) +TAO_Admin<TRADER_LOCK_TYPE,MAP_LOCK_TYPE>::request_id_stem () { ACE_GUARD_RETURN (TRADER_LOCK_TYPE, trader_mon, this->lock_, 0); @@ -1454,7 +1454,7 @@ TAO_Link<TRADER_LOCK_TYPE,MAP_LOCK_TYPE>::TAO_Link (TAO_Trader<TRADER_LOCK_TYPE, } template <class TRADER_LOCK_TYPE, class MAP_LOCK_TYPE> -TAO_Link<TRADER_LOCK_TYPE,MAP_LOCK_TYPE>::~TAO_Link (void) +TAO_Link<TRADER_LOCK_TYPE,MAP_LOCK_TYPE>::~TAO_Link () { } @@ -1564,7 +1564,7 @@ TAO_Link<TRADER_LOCK_TYPE,MAP_LOCK_TYPE>::describe_link (const char *name) template <class TRADER_LOCK_TYPE, class MAP_LOCK_TYPE> CosTrading::LinkNameSeq* -TAO_Link<TRADER_LOCK_TYPE,MAP_LOCK_TYPE>::list_links (void) +TAO_Link<TRADER_LOCK_TYPE,MAP_LOCK_TYPE>::list_links () { // Allocate space for the link names. size_t size = this->links_.current_size (); @@ -1632,7 +1632,7 @@ TAO_Proxy (TAO_Trader<TRADER_LOCK_TYPE,MAP_LOCK_TYPE> &trader) } template <class TRADER_LOCK_TYPE, class MAP_LOCK_TYPE> -TAO_Proxy<TRADER_LOCK_TYPE,MAP_LOCK_TYPE>::~TAO_Proxy (void) +TAO_Proxy<TRADER_LOCK_TYPE,MAP_LOCK_TYPE>::~TAO_Proxy () { } diff --git a/TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.cpp b/TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.cpp index 0221981bceb..f252f630e24 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.cpp +++ b/TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.cpp @@ -117,13 +117,13 @@ TAO_Policy_Creator::request_id (const CosTrading::Admin::OctetSeq& request_id) policy.value <<= request_id; } -TAO_Policy_Creator::operator const CosTrading::PolicySeq& (void) const +TAO_Policy_Creator::operator const CosTrading::PolicySeq& () const { return this->policies_; } const CosTrading::PolicySeq& -TAO_Policy_Creator::policy_seq (void) const +TAO_Policy_Creator::policy_seq () const { return this->policies_; } @@ -214,7 +214,7 @@ TAO_Property_Evaluator(CosTrading::Offer& offer, this->dp_cache_[i] = 0; } -TAO_Property_Evaluator::~TAO_Property_Evaluator (void) +TAO_Property_Evaluator::~TAO_Property_Evaluator () { // Clean up the results of any dynamic properties. for (CORBA::ULong i = 0; i < this->props_.length (); i++) @@ -424,7 +424,7 @@ TAO_Property_Evaluator_By_Name::get_property (const char* property_name) return property; } -TAO_Dynamic_Property::~TAO_Dynamic_Property (void) +TAO_Dynamic_Property::~TAO_Dynamic_Property () { } @@ -462,7 +462,7 @@ construct_dynamic_prop (const char* name, } void -TAO_Dynamic_Property::destroy (void) +TAO_Dynamic_Property::destroy () { if (this->prop_.in () != CosTradingDynamic::DynamicPropEval::_nil ()) { @@ -553,7 +553,7 @@ TAO_Policies::TAO_Policies (TAO_Trader_Base& trader, } } -TAO_Policies::~TAO_Policies (void) +TAO_Policies::~TAO_Policies () { } @@ -610,19 +610,19 @@ TAO_Policies::ulong_prop (POLICY_TYPE pol) const } CORBA::ULong -TAO_Policies::search_card (void) const +TAO_Policies::search_card () const { return this->ulong_prop (SEARCH_CARD); } CORBA::ULong -TAO_Policies::match_card (void) const +TAO_Policies::match_card () const { return this->ulong_prop (MATCH_CARD); } CORBA::ULong -TAO_Policies::return_card (void) const +TAO_Policies::return_card () const { return this->ulong_prop (RETURN_CARD); } @@ -679,32 +679,32 @@ TAO_Policies::boolean_prop (POLICY_TYPE pol) const CORBA::Boolean -TAO_Policies::use_modifiable_properties (void) const +TAO_Policies::use_modifiable_properties () const { return this->boolean_prop (USE_MODIFIABLE_PROPERTIES); } CORBA::Boolean -TAO_Policies::use_dynamic_properties (void) const +TAO_Policies::use_dynamic_properties () const { return this->boolean_prop (USE_DYNAMIC_PROPERTIES); } CORBA::Boolean -TAO_Policies::use_proxy_offers (void) const +TAO_Policies::use_proxy_offers () const { return this->boolean_prop (USE_PROXY_OFFERS); } CORBA::Boolean -TAO_Policies::exact_type_match (void) const +TAO_Policies::exact_type_match () const { return this->boolean_prop (EXACT_TYPE_MATCH); } const CosTrading::TraderName* -TAO_Policies::starting_trader (void) const +TAO_Policies::starting_trader () const { const CosTrading::TraderName* trader_name = 0; @@ -731,7 +731,7 @@ TAO_Policies::starting_trader (void) const } CosTrading::FollowOption -TAO_Policies::link_follow_rule (void) const +TAO_Policies::link_follow_rule () const { CosTrading::FollowOption return_value = this->trader_.import_attributes ().def_follow_policy (); @@ -783,13 +783,13 @@ TAO_Policies::link_follow_rule (const CosTrading::Link::LinkInfo& link_info) con } CORBA::ULong -TAO_Policies::hop_count (void) const +TAO_Policies::hop_count () const { return this->ulong_prop (HOP_COUNT); } const CosTrading::Admin::OctetSeq* -TAO_Policies::request_id (void) const +TAO_Policies::request_id () const { const CosTrading::Admin::OctetSeq* request_id = 0; @@ -1023,7 +1023,7 @@ TAO_Offer_Modifier (const char* type_name, } } -TAO_Offer_Modifier::~TAO_Offer_Modifier (void) +TAO_Offer_Modifier::~TAO_Offer_Modifier () { for (TAO_Typecode_Table::iterator type_iter (this->prop_types_); ! type_iter.done (); @@ -1296,13 +1296,13 @@ TAO_Offer_Filter::ok_to_consider (CosTrading::Offer* offer) } CORBA::Boolean -TAO_Offer_Filter::ok_to_consider_more (void) +TAO_Offer_Filter::ok_to_consider_more () { return this->search_card_ > 0 && this->match_card_ > 0; } void -TAO_Offer_Filter::matched_offer (void) +TAO_Offer_Filter::matched_offer () { this->match_card_--; this->return_card_--; @@ -1323,19 +1323,19 @@ TAO_Offer_Filter::matched_offer (void) } CORBA::ULong -TAO_Offer_Filter::search_card_remaining (void) const +TAO_Offer_Filter::search_card_remaining () const { return this->search_card_; } CORBA::ULong -TAO_Offer_Filter::match_card_remaining (void) const +TAO_Offer_Filter::match_card_remaining () const { return this->match_card_; } CosTrading::PolicyNameSeq* -TAO_Offer_Filter::limits_applied (void) +TAO_Offer_Filter::limits_applied () { int i = 0; CORBA::ULong size = static_cast<CORBA::ULong> (this->limits_.size ()); diff --git a/TAO/orbsvcs/orbsvcs/Trader/Trading_Loader.cpp b/TAO/orbsvcs/orbsvcs/Trader/Trading_Loader.cpp index c321b73ab89..6c2fb4ef839 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Trading_Loader.cpp +++ b/TAO/orbsvcs/orbsvcs/Trader/Trading_Loader.cpp @@ -30,7 +30,7 @@ -TAO_Trading_Loader::TAO_Trading_Loader (void) +TAO_Trading_Loader::TAO_Trading_Loader () : federate_ (0), ior_output_file_ (0), bootstrapper_ (0) @@ -74,7 +74,7 @@ TAO_Trading_Loader::TAO_Trading_Loader (void) } } -TAO_Trading_Loader::~TAO_Trading_Loader (void) +TAO_Trading_Loader::~TAO_Trading_Loader () { // Destructor } @@ -112,7 +112,7 @@ TAO_Trading_Loader::init (int argc, ACE_TCHAR *argv[]) } int -TAO_Trading_Loader::fini (void) +TAO_Trading_Loader::fini () { try { @@ -178,7 +178,7 @@ TAO_Trading_Loader::fini (void) } int -TAO_Trading_Loader::run (void) +TAO_Trading_Loader::run () { int return_value = this->orb_manager_.run (); @@ -198,9 +198,9 @@ TAO_Trading_Loader::create_object (CORBA::ORB_ptr orb_ptr, this->orb_manager_.activate_poa_manager (); // Create a Trader Object and set its Service Type Repository. - auto_ptr<TAO_Trader_Factory::TAO_TRADER> auto_trader (TAO_Trader_Factory::create_trader (argc, argv)); + std::unique_ptr<TAO_Trader_Factory::TAO_TRADER> auto_trader (TAO_Trader_Factory::create_trader (argc, argv)); - this->trader_ = auto_trader; + this->trader_ = std::move(auto_trader); TAO_Support_Attributes_i &sup_attr = this->trader_->support_attributes (); @@ -266,7 +266,7 @@ TAO_Trading_Loader::create_object (CORBA::ORB_ptr orb_ptr, } int -TAO_Trading_Loader::bootstrap_to_federation (void) +TAO_Trading_Loader::bootstrap_to_federation () { // If all traders follow this strategy, it creates a complete graph // of all known traders on a multicast network. @@ -364,7 +364,7 @@ TAO_Trading_Loader::bootstrap_to_federation (void) } int -TAO_Trading_Loader::init_multicast_server (void) +TAO_Trading_Loader::init_multicast_server () { #if defined (ACE_HAS_IP_MULTICAST) // Get reactor instance from TAO. diff --git a/TAO/orbsvcs/orbsvcs/Trader/Trading_Loader.h b/TAO/orbsvcs/orbsvcs/Trader/Trading_Loader.h index 0eae04554d0..6006017b4be 100644 --- a/TAO/orbsvcs/orbsvcs/Trader/Trading_Loader.h +++ b/TAO/orbsvcs/orbsvcs/Trader/Trading_Loader.h @@ -27,7 +27,7 @@ #include "tao/Object_Loader.h" #include "tao/Utils/ORB_Manager.h" -#include "ace/Auto_Ptr.h" +#include <utility> class TAO_Trading_Serv_Export TAO_Trading_Loader : public TAO_Object_Loader { @@ -56,7 +56,6 @@ public: ACE_TCHAR *argv[]); protected: - /// Enable the Trading Service to answer multicast requests for its /// IOR. int init_multicast_server (void); @@ -71,7 +70,7 @@ protected: TAO_ORB_Manager orb_manager_; /// Pointer to the linked trader. - auto_ptr<TAO_Trader_Factory::TAO_TRADER> trader_; + std::unique_ptr<TAO_Trader_Factory::TAO_TRADER> trader_; /// Service Type Repository used by the trading service. TAO_Service_Type_Repository type_repos_; @@ -96,9 +95,10 @@ protected: CORBA::Boolean bootstrapper_; private: - // Disallow copying and assignment. - TAO_Trading_Loader (const TAO_Trading_Loader &); - TAO_Trading_Loader &operator= (const TAO_Trading_Loader &); + TAO_Trading_Loader (const TAO_Trading_Loader &) = delete; + TAO_Trading_Loader &operator= (const TAO_Trading_Loader &) = delete; + TAO_Trading_Loader (TAO_Trading_Loader &&) = delete; + TAO_Trading_Loader &operator= (TAO_Trading_Loader &&) = delete; }; ACE_FACTORY_DECLARE (TAO_Trading_Serv, TAO_Trading_Loader) diff --git a/TAO/tao/Abstract_Servant_Base.h b/TAO/tao/Abstract_Servant_Base.h index 2fb670808a4..9b53e14563b 100644 --- a/TAO/tao/Abstract_Servant_Base.h +++ b/TAO/tao/Abstract_Servant_Base.h @@ -70,25 +70,25 @@ class TAO_Export TAO_Abstract_ServantBase { public: /// Destructor - virtual ~TAO_Abstract_ServantBase (void); + virtual ~TAO_Abstract_ServantBase (); /// Local implementation of the CORBA::Object::_is_a method. virtual CORBA::Boolean _is_a (const char* logical_type_id) = 0; #if (TAO_HAS_MINIMUM_CORBA == 0) /// Default @c _non_existent: always returns false. - virtual CORBA::Boolean _non_existent (void) = 0; + virtual CORBA::Boolean _non_existent () = 0; #if !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) /// Query the Interface Repository. - virtual CORBA::InterfaceDef_ptr _get_interface (void) = 0; + virtual CORBA::InterfaceDef_ptr _get_interface () = 0; /// Default @c _get_component: always returns nil. - virtual CORBA::Object_ptr _get_component (void) = 0; + virtual CORBA::Object_ptr _get_component () = 0; #endif /// Default @c _repository_id - virtual char * _repository_id (void) = 0; + virtual char * _repository_id () = 0; #endif /* TAO_HAS_MINIMUM_CORBA */ //@{ @@ -96,21 +96,21 @@ public: * @name Reference Counting Operations */ /// Increase reference count by one. - virtual void _add_ref (void) = 0; + virtual void _add_ref () = 0; /** * Decreases reference count by one; if the resulting reference * count equals zero, _remove_ref invokes delete on its this pointer * in order to destroy the servant. */ - virtual void _remove_ref (void) = 0; + virtual void _remove_ref () = 0; /// Returns the current reference count value. - virtual CORBA::ULong _refcount_value (void) const = 0; + virtual CORBA::ULong _refcount_value () const = 0; //@} /// This is an auxiliary method for _this() and _narrow(). - virtual TAO_Stub *_create_stub (void) = 0; + virtual TAO_Stub *_create_stub () = 0; /// Find an operation in the operation table and return a /// TAO_Skeleton which can be used to make upcalls @@ -137,7 +137,7 @@ public: protected: /// Default constructor, only derived classes can be created. - TAO_Abstract_ServantBase (void); + TAO_Abstract_ServantBase (); /// Copy constructor, protected so no instances can be created. TAO_Abstract_ServantBase (const TAO_Abstract_ServantBase &); @@ -157,7 +157,7 @@ protected: TAO::Portable_Server::Servant_Upcall *servant_upcall) = 0; /// Get this interface's repository id (TAO specific). - virtual const char *_interface_repository_id (void) const = 0; + virtual const char *_interface_repository_id () const = 0; }; TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/tao/Acceptor_Filter.h b/TAO/tao/Acceptor_Filter.h index d5c4415de3c..1f1f1d095ac 100644 --- a/TAO/tao/Acceptor_Filter.h +++ b/TAO/tao/Acceptor_Filter.h @@ -44,7 +44,7 @@ class TAO_Acceptor; class TAO_Export TAO_Acceptor_Filter { public: - virtual ~TAO_Acceptor_Filter (void); + virtual ~TAO_Acceptor_Filter (); /** * Populate @a mprofile with profiles. Profiles are created for diff --git a/TAO/tao/Acceptor_Registry.h b/TAO/tao/Acceptor_Registry.h index 771982dd41e..dc0124ae18a 100644 --- a/TAO/tao/Acceptor_Registry.h +++ b/TAO/tao/Acceptor_Registry.h @@ -60,10 +60,10 @@ class TAO_Export TAO_Acceptor_Registry { public: /// Default constructor. - TAO_Acceptor_Registry (void); + TAO_Acceptor_Registry (); /// Default destructor. - ~TAO_Acceptor_Registry (void); + ~TAO_Acceptor_Registry (); /// Initialize all registered acceptors. Return -1 on error. int open (TAO_ORB_Core *orb_core, @@ -72,10 +72,10 @@ public: bool ignore_address); /// Close all open acceptors. - int close_all (void); + int close_all (); /// Returns the total number of endpoints in all of its acceptors. - size_t endpoint_count (void); + size_t endpoint_count (); /// Check if there is at least one profile in @a mprofile that /// corresponds to a collocated object. @@ -85,8 +85,8 @@ public: TAO_Acceptor *get_acceptor (CORBA::ULong tag); // = Iterator. - TAO_AcceptorSetIterator begin (void); - TAO_AcceptorSetIterator end (void); + TAO_AcceptorSetIterator begin (); + TAO_AcceptorSetIterator end (); private: ACE_UNIMPLEMENTED_FUNC (TAO_Acceptor_Registry (const TAO_Acceptor_Registry &)) diff --git a/TAO/tao/Adapter.h b/TAO/tao/Adapter.h index 41f12d50af0..e9f0556a7d5 100644 --- a/TAO/tao/Adapter.h +++ b/TAO/tao/Adapter.h @@ -45,10 +45,10 @@ class TAO_ServerRequest; class TAO_Export TAO_Adapter { public: - virtual ~TAO_Adapter (void); + virtual ~TAO_Adapter (); /// Initialize the Adapter - virtual void open (void) = 0; + virtual void open () = 0; /// The ORB is shutting down, destroy any resources attached to this /// adapter. @@ -63,7 +63,7 @@ public: * Adapters at higher priority are used first, the first adapter * that matches a key is used to dispatch a request. */ - virtual int priority (void) const = 0; + virtual int priority () const = 0; /// Return the status.... virtual int dispatch (TAO::ObjectKey &key, @@ -94,14 +94,14 @@ public: /// Return the name, i.e. the object id used to resolve it in the /// ORB. - virtual const char *name (void) const = 0; + virtual const char *name () const = 0; /** * Return the root of the Object Adapter. * Each adapter defines its own IDL interface accessed through the * method above. */ - virtual CORBA::Object_ptr root (void) = 0; + virtual CORBA::Object_ptr root () = 0; /// Create a collocated object using the given profile and stub. virtual CORBA::Object_ptr create_collocated_object (TAO_Stub *, diff --git a/TAO/tao/Adapter_Factory.h b/TAO/tao/Adapter_Factory.h index 876864a2240..20105ad3964 100644 --- a/TAO/tao/Adapter_Factory.h +++ b/TAO/tao/Adapter_Factory.h @@ -33,7 +33,7 @@ class TAO_Export TAO_Adapter_Factory : public ACE_Service_Object { public: /// Destructor - virtual ~TAO_Adapter_Factory (void); + virtual ~TAO_Adapter_Factory (); /// Create a new adapter virtual TAO_Adapter *create (TAO_ORB_Core *orb_core) = 0; diff --git a/TAO/tao/Adapter_Registry.h b/TAO/tao/Adapter_Registry.h index 421fc0b234a..037f59e23d2 100644 --- a/TAO/tao/Adapter_Registry.h +++ b/TAO/tao/Adapter_Registry.h @@ -51,7 +51,7 @@ public: explicit TAO_Adapter_Registry (TAO_ORB_Core *); /// Close the - ~TAO_Adapter_Registry (void); + ~TAO_Adapter_Registry (); /** * Close each of of the Adapters and then cleanup the Registry. diff --git a/TAO/tao/Allocator.h b/TAO/tao/Allocator.h index c4b68cd521f..6209d77710e 100644 --- a/TAO/tao/Allocator.h +++ b/TAO/tao/Allocator.h @@ -35,7 +35,7 @@ namespace TAO { public: - virtual ~TAO_Allocator (void) {} + virtual ~TAO_Allocator () {} virtual handler_type *allocate () = 0; virtual void release (handler_type *ptr) = 0; diff --git a/TAO/tao/AnyTypeCode/Alias_TypeCode.h b/TAO/tao/AnyTypeCode/Alias_TypeCode.h index d617283dbb0..4b525902eb6 100644 --- a/TAO/tao/AnyTypeCode/Alias_TypeCode.h +++ b/TAO/tao/AnyTypeCode/Alias_TypeCode.h @@ -66,8 +66,8 @@ namespace TAO //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -82,10 +82,10 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; - virtual CORBA::TypeCode_ptr content_type_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual char const * id_i () const; + virtual char const * name_i () const; + virtual CORBA::TypeCode_ptr content_type_i () const; private: /// Base attributes for this @c TypeCode containing the diff --git a/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.cpp b/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.cpp index 6a89a9dcb7b..48e0a7a074e 100644 --- a/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.cpp +++ b/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.cpp @@ -57,14 +57,14 @@ TAO::TypeCode::Alias<char const *, void TAO::TypeCode::Alias<char const *, CORBA::TypeCode_ptr const *, - TAO::Null_RefCount_Policy>::tao_duplicate (void) + TAO::Null_RefCount_Policy>::tao_duplicate () { } void TAO::TypeCode::Alias<char const *, CORBA::TypeCode_ptr const *, - TAO::Null_RefCount_Policy>::tao_release (void) + TAO::Null_RefCount_Policy>::tao_release () { } @@ -100,7 +100,7 @@ TAO::TypeCode::Alias<char const *, CORBA::TypeCode_ptr TAO::TypeCode::Alias<char const *, CORBA::TypeCode_ptr const *, - TAO::Null_RefCount_Policy>::get_compact_typecode_i (void) const + TAO::Null_RefCount_Policy>::get_compact_typecode_i () const { TAO_TypeCodeFactory_Adapter * const adapter = ACE_Dynamic_Service<TAO_TypeCodeFactory_Adapter>::instance ( @@ -132,7 +132,7 @@ TAO::TypeCode::Alias<char const *, char const * TAO::TypeCode::Alias<char const *, CORBA::TypeCode_ptr const *, - TAO::Null_RefCount_Policy>::id_i (void) const + TAO::Null_RefCount_Policy>::id_i () const { // Ownership is retained by the TypeCode, as required by the C++ // mapping. @@ -142,7 +142,7 @@ TAO::TypeCode::Alias<char const *, char const * TAO::TypeCode::Alias<char const *, CORBA::TypeCode_ptr const *, - TAO::Null_RefCount_Policy>::name_i (void) const + TAO::Null_RefCount_Policy>::name_i () const { // Ownership is retained by the TypeCode, as required by the C++ // mapping. @@ -152,7 +152,7 @@ TAO::TypeCode::Alias<char const *, CORBA::TypeCode_ptr TAO::TypeCode::Alias<char const *, CORBA::TypeCode_ptr const *, - TAO::Null_RefCount_Policy>::content_type_i (void) const + TAO::Null_RefCount_Policy>::content_type_i () const { return CORBA::TypeCode::_duplicate ( diff --git a/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.h b/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.h index 05a8f675fac..96c9bac0238 100644 --- a/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.h +++ b/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.h @@ -69,8 +69,8 @@ namespace TAO */ //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -85,10 +85,10 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; - virtual CORBA::TypeCode_ptr content_type_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual char const * id_i () const; + virtual char const * name_i () const; + virtual CORBA::TypeCode_ptr content_type_i () const; private: /// Base attributes for this @c TypeCode containing the diff --git a/TAO/tao/AnyTypeCode/Any.cpp b/TAO/tao/AnyTypeCode/Any.cpp index b74124189a3..45e7c8c7c51 100644 --- a/TAO/tao/AnyTypeCode/Any.cpp +++ b/TAO/tao/AnyTypeCode/Any.cpp @@ -23,7 +23,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL using namespace TAO; -CORBA::Any::Any (void) +CORBA::Any::Any () : impl_ (0) { } @@ -37,7 +37,7 @@ CORBA::Any::Any (const CORBA::Any &rhs) } } -CORBA::Any::~Any (void) +CORBA::Any::~Any () { if (this->impl_ != 0) { @@ -80,7 +80,7 @@ CORBA::Any::replace (TAO::Any_Impl *new_impl) } CORBA::TypeCode_ptr -CORBA::Any::type (void) const +CORBA::Any::type () const { if (this->impl_ != 0) { @@ -91,7 +91,7 @@ CORBA::Any::type (void) const } CORBA::TypeCode_ptr -CORBA::Any::_tao_get_typecode (void) const +CORBA::Any::_tao_get_typecode () const { if (this->impl_ != 0) { @@ -116,7 +116,7 @@ CORBA::Any::_tao_set_typecode (const CORBA::TypeCode_ptr tc) } int -CORBA::Any::_tao_byte_order (void) const +CORBA::Any::_tao_byte_order () const { if (this->impl_ != 0) { diff --git a/TAO/tao/AnyTypeCode/Any.h b/TAO/tao/AnyTypeCode/Any.h index 2f644c9ad78..9f879820950 100644 --- a/TAO/tao/AnyTypeCode/Any.h +++ b/TAO/tao/AnyTypeCode/Any.h @@ -66,13 +66,13 @@ namespace CORBA typedef Any_var _var_type; typedef Any_out _out_type; - Any (void); + Any (); Any (const Any &); - ~Any (void); + ~Any (); Any &operator= (const Any &); - TAO::Any_Impl *impl (void) const; + TAO::Any_Impl *impl () const; /// Used in our destruction if we ourselves are stored in an Any. static void _tao_any_destructor (void *); @@ -146,19 +146,19 @@ namespace CORBA void replace (TAO::Any_Impl *); /// Return TypeCode of the element stored in the Any. - TypeCode_ptr type (void) const; + TypeCode_ptr type () const; /// For use along with <<= of a value of aliased type when the alias must /// be preserved. void type (TypeCode_ptr); /// TAO extension, does not return a duplicate. - CORBA::TypeCode_ptr _tao_get_typecode (void) const; + CORBA::TypeCode_ptr _tao_get_typecode () const; /// TAO extension. void _tao_set_typecode (const CORBA::TypeCode_ptr); - int _tao_byte_order (void) const; + int _tao_byte_order () const; private: CORBA::Boolean checked_to_object (CORBA::Object_ptr &) const; @@ -184,10 +184,10 @@ namespace CORBA class TAO_AnyTypeCode_Export Any_var { public: - Any_var (void); + Any_var (); Any_var (Any *a); Any_var (const Any_var &); - ~Any_var (void); + ~Any_var (); Any_var &operator= (Any *); @@ -200,7 +200,7 @@ namespace CORBA Any_var &operator= (const Any_var &); /// Arrow operator (smart pointer). - Any *operator-> (void); + Any *operator-> (); /// Cast. operator const Any *() const; @@ -209,19 +209,19 @@ namespace CORBA operator Any *&(); /// For in Any parameter. - const Any &in (void) const; + const Any &in () const; /// For inout Any parameter. - Any &inout (void); + Any &inout (); /// For out Any parameter. - Any *&out (void); + Any *&out (); /// For Any return type. - Any *_retn (void); + Any *_retn (); /// TAO specific extension - Any *ptr (void) const; + Any *ptr () const; private: /// Holds the Any. Any *ptr_; @@ -252,9 +252,9 @@ namespace CORBA operator Any *&(); /// Return underlying instance. - Any *& ptr (void); + Any *& ptr (); - Any *operator-> (void); + Any *operator-> (); private: /// Assignment from _var disallowed. diff --git a/TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.cpp b/TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.cpp index cb8beef4ed0..7c9a1911696 100644 --- a/TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.cpp +++ b/TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.cpp @@ -287,7 +287,7 @@ TAO_AnyTypeCode_Adapter_Impl::insert_into_any (CORBA::Any * any, const CORBA::WS } int -TAO_AnyTypeCode_Adapter_Impl::Initializer (void) +TAO_AnyTypeCode_Adapter_Impl::Initializer () { // The TAO::Unknown_IDL_Type::lock_i () is a PRIVATE thread unsafe singleton // which we need to initialise before Unknown_IDL_Types are used in a diff --git a/TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.h b/TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.h index ab8c7d6d3f6..566233eb0cf 100644 --- a/TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.h +++ b/TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.h @@ -32,7 +32,7 @@ class TAO_AnyTypeCode_Export TAO_AnyTypeCode_Adapter_Impl { public: // Used to force the initialization of the code. - static int Initializer (void); + static int Initializer (); #define ANYTYPECODE__EXCEPTION_LIST \ TAO_SYSTEM_EXCEPTION (UNKNOWN) \ diff --git a/TAO/tao/AnyTypeCode/Any_Array_Impl_T.cpp b/TAO/tao/AnyTypeCode/Any_Array_Impl_T.cpp index 48dfb7e9f17..9222c88dbce 100644 --- a/TAO/tao/AnyTypeCode/Any_Array_Impl_T.cpp +++ b/TAO/tao/AnyTypeCode/Any_Array_Impl_T.cpp @@ -93,11 +93,7 @@ TAO::Any_Array_Impl_T<T_slice, T_forany>::extract (const CORBA::Any & any, T_forany::tao_alloc ()), false); -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO::Any_Array_Impl_T<T_slice, T_forany> > replacement_safety (replacement); -#else - auto_ptr<TAO::Any_Array_Impl_T<T_slice, T_forany> > replacement_safety (replacement); -#endif /* ACE_HAS_CPP11 */ // We know this will work since the unencoded case is covered above. TAO::Unknown_IDL_Type * const unk = diff --git a/TAO/tao/AnyTypeCode/Any_Basic_Impl.cpp b/TAO/tao/AnyTypeCode/Any_Basic_Impl.cpp index ace666a3009..8273695fffd 100644 --- a/TAO/tao/AnyTypeCode/Any_Basic_Impl.cpp +++ b/TAO/tao/AnyTypeCode/Any_Basic_Impl.cpp @@ -66,7 +66,7 @@ namespace TAO } } - Any_Basic_Impl::~Any_Basic_Impl (void) + Any_Basic_Impl::~Any_Basic_Impl () { } @@ -116,11 +116,7 @@ namespace TAO TAO::Any_Basic_Impl *replacement = TAO::Any_Basic_Impl::create_empty (any_tc); -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO::Any_Basic_Impl> replacement_safety (replacement); -#else - auto_ptr<TAO::Any_Basic_Impl> replacement_safety (replacement); -#endif /* ACE_HAS_CPP11 */ // We know this will work since the unencoded case is covered above. TAO::Unknown_IDL_Type * const unk = diff --git a/TAO/tao/AnyTypeCode/Any_Basic_Impl.h b/TAO/tao/AnyTypeCode/Any_Basic_Impl.h index ab18778fc0f..c2796c62777 100644 --- a/TAO/tao/AnyTypeCode/Any_Basic_Impl.h +++ b/TAO/tao/AnyTypeCode/Any_Basic_Impl.h @@ -40,7 +40,7 @@ namespace TAO Any_Basic_Impl (CORBA::TypeCode_ptr, void *value); - virtual ~Any_Basic_Impl (void); + virtual ~Any_Basic_Impl (); static void insert (CORBA::Any &, CORBA::TypeCode_ptr, diff --git a/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.cpp b/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.cpp index a45b3b2481b..7e82b968f9f 100644 --- a/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.cpp +++ b/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.cpp @@ -78,11 +78,7 @@ TAO::Any_Basic_Impl_T<T>::extract (const CORBA::Any & any, TAO::Any_Basic_Impl_T<T> * const replacement = TAO::Any_Basic_Impl_T<T>::create_empty (any_tc); -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO::Any_Basic_Impl_T<T> > replacement_safety (replacement); -#else - auto_ptr<TAO::Any_Basic_Impl_T<T> > replacement_safety (replacement); -#endif /* ACE_HAS_CPP11 */ // We know this will work since the unencoded case is covered above. TAO::Unknown_IDL_Type * const unk = diff --git a/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.h b/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.h index dd1395d764d..fdd7343bbaf 100644 --- a/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.h +++ b/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.h @@ -37,7 +37,7 @@ namespace TAO public: Any_Basic_Impl_T (CORBA::TypeCode_ptr, const T & val); - virtual ~Any_Basic_Impl_T (void); + virtual ~Any_Basic_Impl_T (); static void insert (CORBA::Any &, CORBA::TypeCode_ptr, @@ -50,7 +50,7 @@ namespace TAO CORBA::Boolean demarshal_value (TAO_InputCDR &); virtual void _tao_decode (TAO_InputCDR &); - virtual const void *value (void) const; + virtual const void *value () const; static Any_Basic_Impl_T<T> *create_empty (CORBA::TypeCode_ptr); private: diff --git a/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.cpp b/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.cpp index 42cc10a0066..41bb34ba6aa 100644 --- a/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.cpp +++ b/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.cpp @@ -158,11 +158,7 @@ TAO::Any_Dual_Impl_T<T>::replace (TAO_InputCDR &cdr, ACE_NEW_RETURN (empty_value, T, false); -#if defined (ACE_HAS_CPP11) std::unique_ptr<T> empty_value_safety (empty_value); -#else - auto_ptr<T> empty_value_safety (empty_value); -#endif /* ACE_HAS_CPP11 */ TAO::Any_Dual_Impl_T<T> *replacement = 0; ACE_NEW_RETURN (replacement, TAO::Any_Dual_Impl_T<T> (destructor, @@ -170,11 +166,7 @@ TAO::Any_Dual_Impl_T<T>::replace (TAO_InputCDR &cdr, empty_value), false); -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO::Any_Dual_Impl_T<T> > replacement_safety (replacement); -#else - auto_ptr<TAO::Any_Dual_Impl_T<T> > replacement_safety (replacement); -#endif /* ACE_HAS_CPP11 */ CORBA::Boolean const good_decode = replacement->demarshal_value (cdr); diff --git a/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.h b/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.h index 4d35f4add89..dd627266355 100644 --- a/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.h +++ b/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.h @@ -45,7 +45,7 @@ namespace TAO CORBA::TypeCode_ptr, const T &); Any_Dual_Impl_T (CORBA::TypeCode_ptr); - virtual ~Any_Dual_Impl_T (void); + virtual ~Any_Dual_Impl_T (); static void insert (CORBA::Any &, _tao_destructor, @@ -64,8 +64,8 @@ namespace TAO CORBA::Boolean demarshal_value (TAO_InputCDR &); virtual void _tao_decode (TAO_InputCDR &); - virtual const void *value (void) const; - virtual void free_value (void); + virtual const void *value () const; + virtual void free_value (); protected: void value (const T &); diff --git a/TAO/tao/AnyTypeCode/Any_Impl.cpp b/TAO/tao/AnyTypeCode/Any_Impl.cpp index 3633d68739f..b1867d468e3 100644 --- a/TAO/tao/AnyTypeCode/Any_Impl.cpp +++ b/TAO/tao/AnyTypeCode/Any_Impl.cpp @@ -22,7 +22,7 @@ TAO::Any_Impl::Any_Impl (_tao_destructor destructor, { } -TAO::Any_Impl::~Any_Impl (void) +TAO::Any_Impl::~Any_Impl () { } @@ -56,20 +56,20 @@ TAO::Any_Impl::marshal (TAO_OutputCDR &cdr) } void -TAO::Any_Impl::free_value (void) +TAO::Any_Impl::free_value () { // We always have to do this. ::CORBA::release (this->type_); } CORBA::TypeCode_ptr -TAO::Any_Impl::type (void) const +TAO::Any_Impl::type () const { return CORBA::TypeCode::_duplicate (this->type_); } CORBA::TypeCode_ptr -TAO::Any_Impl::_tao_get_typecode (void) const +TAO::Any_Impl::_tao_get_typecode () const { return this->type_; } @@ -82,7 +82,7 @@ TAO::Any_Impl::type (CORBA::TypeCode_ptr tc) } int -TAO::Any_Impl::_tao_byte_order (void) const +TAO::Any_Impl::_tao_byte_order () const { return TAO_ENCAP_BYTE_ORDER; } @@ -102,13 +102,13 @@ TAO::Any_Impl::_tao_any_wstring_destructor (void *x) } void -TAO::Any_Impl::_add_ref (void) +TAO::Any_Impl::_add_ref () { ++this->refcount_; } void -TAO::Any_Impl::_remove_ref (void) +TAO::Any_Impl::_remove_ref () { CORBA::ULong const new_count = --this->refcount_; @@ -145,7 +145,7 @@ TAO::Any_Impl::to_abstract_base (CORBA::AbstractBase_ptr &) const } bool -TAO::Any_Impl::encoded (void) const +TAO::Any_Impl::encoded () const { return this->encoded_; } diff --git a/TAO/tao/AnyTypeCode/Any_Impl.h b/TAO/tao/AnyTypeCode/Any_Impl.h index 2446ec37368..622ade7405c 100644 --- a/TAO/tao/AnyTypeCode/Any_Impl.h +++ b/TAO/tao/AnyTypeCode/Any_Impl.h @@ -22,15 +22,7 @@ #include "tao/AnyTypeCode/TAO_AnyTypeCode_Export.h" #include "tao/Basic_Types.h" - -#if defined (ACE_HAS_CPP11) -# include <atomic> -#else -# include "ace/Synch_Traits.h" -# include "ace/Null_Mutex.h" -# include "ace/Thread_Mutex.h" -# include "ace/Atomic_Op.h" -#endif /* ACE_HAS_CPP11 */ +#include <atomic> TAO_BEGIN_VERSIONED_NAMESPACE_DECL @@ -69,16 +61,16 @@ namespace TAO CORBA::Boolean marshal (TAO_OutputCDR &); virtual CORBA::Boolean marshal_value (TAO_OutputCDR &) = 0; - virtual void free_value (void); + virtual void free_value (); - CORBA::TypeCode_ptr type (void) const; - CORBA::TypeCode_ptr _tao_get_typecode (void) const; + CORBA::TypeCode_ptr type () const; + CORBA::TypeCode_ptr _tao_get_typecode () const; void type (CORBA::TypeCode_ptr); - virtual int _tao_byte_order (void) const; + virtual int _tao_byte_order () const; - virtual void _add_ref (void); - virtual void _remove_ref (void); + virtual void _add_ref (); + virtual void _remove_ref (); /// Used to release these CORBA basic types. static void _tao_any_string_destructor (void *); @@ -90,13 +82,13 @@ namespace TAO virtual CORBA::Boolean to_value (CORBA::ValueBase *&) const; virtual CORBA::Boolean to_abstract_base (CORBA::AbstractBase_ptr &) const; - bool encoded (void) const; + bool encoded () const; protected: Any_Impl (_tao_destructor, CORBA::TypeCode_ptr, bool encoded = false); - virtual ~Any_Impl (void); + virtual ~Any_Impl (); TAO::Any_Impl::_tao_destructor value_destructor_; CORBA::TypeCode_ptr type_; @@ -104,11 +96,7 @@ namespace TAO private: /// Reference counter. -#if defined (ACE_HAS_CPP11) std::atomic<uint32_t> refcount_; -#else - ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> refcount_; -#endif /* ACE_HAS_CPP11 */ }; } diff --git a/TAO/tao/AnyTypeCode/Any_Impl_T.cpp b/TAO/tao/AnyTypeCode/Any_Impl_T.cpp index f389796bff3..c0ba6c2d82b 100644 --- a/TAO/tao/AnyTypeCode/Any_Impl_T.cpp +++ b/TAO/tao/AnyTypeCode/Any_Impl_T.cpp @@ -91,11 +91,7 @@ TAO::Any_Impl_T<T>::extract (const CORBA::Any & any, 0), false); -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO::Any_Impl_T<T> > replacement_safety (replacement); -#else - auto_ptr<TAO::Any_Impl_T<T> > replacement_safety (replacement); -#endif /* ACE_HAS_CPP11 */ // We know this will work since the unencoded case is covered above. TAO::Unknown_IDL_Type * const unk = diff --git a/TAO/tao/AnyTypeCode/Any_Impl_T.h b/TAO/tao/AnyTypeCode/Any_Impl_T.h index 3be4db172f9..c69f916df91 100644 --- a/TAO/tao/AnyTypeCode/Any_Impl_T.h +++ b/TAO/tao/AnyTypeCode/Any_Impl_T.h @@ -43,7 +43,7 @@ namespace TAO Any_Impl_T (_tao_destructor destructor, CORBA::TypeCode_ptr, T * const); - virtual ~Any_Impl_T (void); + virtual ~Any_Impl_T (); static void insert (CORBA::Any &, _tao_destructor destructor, @@ -61,8 +61,8 @@ namespace TAO virtual CORBA::Boolean marshal_value (TAO_OutputCDR &); CORBA::Boolean demarshal_value (TAO_InputCDR &); virtual void _tao_decode (TAO_InputCDR & ); - virtual const void *value (void) const; - virtual void free_value (void); + virtual const void *value () const; + virtual void free_value (); private: T * value_; diff --git a/TAO/tao/AnyTypeCode/Any_Special_Impl_T.cpp b/TAO/tao/AnyTypeCode/Any_Special_Impl_T.cpp index a5cdeb3239d..b728b74f42c 100644 --- a/TAO/tao/AnyTypeCode/Any_Special_Impl_T.cpp +++ b/TAO/tao/AnyTypeCode/Any_Special_Impl_T.cpp @@ -129,11 +129,7 @@ TAO::Any_Special_Impl_T<T, from_T, to_T>::extract (const CORBA::Any & any, bound), false); -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO::Any_Special_Impl_T<T, from_T, to_T> > replacement_safety (replacement); -#else - auto_ptr<TAO::Any_Special_Impl_T<T, from_T, to_T> > replacement_safety (replacement); -#endif /* ACE_HAS_CPP11 */ // We know this will work since the unencoded case is covered above. TAO::Unknown_IDL_Type * const unk = diff --git a/TAO/tao/AnyTypeCode/Any_Special_Impl_T.h b/TAO/tao/AnyTypeCode/Any_Special_Impl_T.h index 19631ca8c2d..c57d09c7a04 100644 --- a/TAO/tao/AnyTypeCode/Any_Special_Impl_T.h +++ b/TAO/tao/AnyTypeCode/Any_Special_Impl_T.h @@ -37,7 +37,7 @@ namespace TAO CORBA::TypeCode_ptr, T * const, CORBA::ULong bound); - virtual ~Any_Special_Impl_T (void); + virtual ~Any_Special_Impl_T (); static void insert (CORBA::Any &, _tao_destructor destructor, @@ -54,8 +54,8 @@ namespace TAO CORBA::Boolean demarshal_value (TAO_InputCDR &); virtual void _tao_decode (TAO_InputCDR &); - virtual const void *value (void) const; - virtual void free_value (void); + virtual const void *value () const; + virtual void free_value (); private: T * value_; diff --git a/TAO/tao/AnyTypeCode/Any_SystemException.cpp b/TAO/tao/AnyTypeCode/Any_SystemException.cpp index 2e06f71b942..1e905894b64 100644 --- a/TAO/tao/AnyTypeCode/Any_SystemException.cpp +++ b/TAO/tao/AnyTypeCode/Any_SystemException.cpp @@ -40,7 +40,7 @@ TAO::Any_SystemException::Any_SystemException (CORBA::TypeCode_ptr tc) { } -TAO::Any_SystemException::~Any_SystemException (void) +TAO::Any_SystemException::~Any_SystemException () { } @@ -116,11 +116,7 @@ TAO::Any_SystemException::extract (const CORBA::Any & any, empty_value), false); -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO::Any_SystemException > replacement_safety (replacement); -#else - auto_ptr<TAO::Any_SystemException > replacement_safety (replacement); -#endif /* ACE_HAS_CPP11 */ // We know this will work since the unencoded case is covered above. TAO::Unknown_IDL_Type * const unk = @@ -152,7 +148,7 @@ TAO::Any_SystemException::extract (const CORBA::Any & any, } void -TAO::Any_SystemException::free_value (void) +TAO::Any_SystemException::free_value () { if (this->value_destructor_ != 0) { @@ -165,7 +161,7 @@ TAO::Any_SystemException::free_value (void) } const void * -TAO::Any_SystemException::value (void) const +TAO::Any_SystemException::value () const { return this->value_; } diff --git a/TAO/tao/AnyTypeCode/Any_SystemException.h b/TAO/tao/AnyTypeCode/Any_SystemException.h index 2cb231476f4..622e5e501d4 100644 --- a/TAO/tao/AnyTypeCode/Any_SystemException.h +++ b/TAO/tao/AnyTypeCode/Any_SystemException.h @@ -50,7 +50,7 @@ namespace TAO Any_SystemException (CORBA::TypeCode_ptr); - virtual ~Any_SystemException (void); + virtual ~Any_SystemException (); static void insert (CORBA::Any &, _tao_destructor, @@ -71,8 +71,8 @@ namespace TAO virtual CORBA::Boolean marshal_value (TAO_OutputCDR &); CORBA::Boolean demarshal_value (TAO_InputCDR &); - virtual const void *value (void) const; - virtual void free_value (void); + virtual const void *value () const; + virtual void free_value (); protected: CORBA::SystemException *value_; diff --git a/TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.cpp b/TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.cpp index 72e818c8ca7..bacd24e67d5 100644 --- a/TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.cpp +++ b/TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.cpp @@ -14,7 +14,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO::Unknown_IDL_Type::LOCK const -TAO::Unknown_IDL_Type::lock_i (void) +TAO::Unknown_IDL_Type::lock_i () { static LOCK base_lock_ (new ACE_Lock_Adapter<TAO_SYNCH_MUTEX>()); return base_lock_; @@ -49,7 +49,7 @@ TAO::Unknown_IDL_Type::Unknown_IDL_Type (CORBA::TypeCode_ptr tc) { } -TAO::Unknown_IDL_Type::~Unknown_IDL_Type (void) +TAO::Unknown_IDL_Type::~Unknown_IDL_Type () { } @@ -81,25 +81,25 @@ TAO::Unknown_IDL_Type::marshal_value (TAO_OutputCDR & cdr) } const void * -TAO::Unknown_IDL_Type::value (void) const +TAO::Unknown_IDL_Type::value () const { return this->cdr_.start (); } void -TAO::Unknown_IDL_Type::free_value (void) +TAO::Unknown_IDL_Type::free_value () { ::CORBA::release (this->type_); } TAO_InputCDR & -TAO::Unknown_IDL_Type::_tao_get_cdr (void) +TAO::Unknown_IDL_Type::_tao_get_cdr () { return this->cdr_; } int -TAO::Unknown_IDL_Type::_tao_byte_order (void) const +TAO::Unknown_IDL_Type::_tao_byte_order () const { return this->cdr_.byte_order (); } diff --git a/TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.h b/TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.h index b313a294ef0..a26f7f02240 100644 --- a/TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.h +++ b/TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.h @@ -43,14 +43,14 @@ namespace TAO Unknown_IDL_Type (CORBA::TypeCode_ptr); - virtual ~Unknown_IDL_Type (void); + virtual ~Unknown_IDL_Type (); virtual CORBA::Boolean marshal_value (TAO_OutputCDR &); - virtual const void *value (void) const; - virtual void free_value (void); + virtual const void *value () const; + virtual void free_value (); - virtual TAO_InputCDR &_tao_get_cdr (void); - virtual int _tao_byte_order (void) const; + virtual TAO_InputCDR &_tao_get_cdr (); + virtual int _tao_byte_order () const; virtual void _tao_decode (TAO_InputCDR &); @@ -79,7 +79,7 @@ namespace TAO typedef ACE_Refcounted_Auto_Ptr<ACE_Lock, ACE_Lock_Adapter<TAO_SYNCH_MUTEX> > LOCK; - static LOCK const lock_i (void); + static LOCK const lock_i (); LOCK const lock_; mutable TAO_InputCDR cdr_; }; diff --git a/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.cpp b/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.cpp index 1cf8645c5a2..6792fb8b35f 100644 --- a/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.cpp +++ b/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.cpp @@ -16,7 +16,7 @@ TAO::TypeCode::Empty_Param::tao_marshal (TAO_OutputCDR &, CORBA::ULong) const } void -TAO::TypeCode::Empty_Param::tao_duplicate (void) +TAO::TypeCode::Empty_Param::tao_duplicate () { // No-op since empty parameter TypeCodes are never created // dynamically, meaning there is no need to implement reference @@ -24,7 +24,7 @@ TAO::TypeCode::Empty_Param::tao_duplicate (void) } void -TAO::TypeCode::Empty_Param::tao_release (void) +TAO::TypeCode::Empty_Param::tao_release () { // No-op since empty parameter TypeCodes are never created // dynamically, meaning there is no need to implement reference @@ -58,7 +58,7 @@ TAO::TypeCode::Empty_Param::equivalent_i (CORBA::TypeCode_ptr tc) const } CORBA::TypeCode_ptr -TAO::TypeCode::Empty_Param::get_compact_typecode_i (void) const +TAO::TypeCode::Empty_Param::get_compact_typecode_i () const { // Already compact since parameter list is empty. diff --git a/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.h b/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.h index d0ef4e370c2..ba194eff926 100644 --- a/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.h +++ b/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.h @@ -60,8 +60,8 @@ namespace TAO //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -76,7 +76,7 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; }; } // End namespace TypeCode diff --git a/TAO/tao/AnyTypeCode/Enum_TypeCode.h b/TAO/tao/AnyTypeCode/Enum_TypeCode.h index dbd05818165..245bb43c630 100644 --- a/TAO/tao/AnyTypeCode/Enum_TypeCode.h +++ b/TAO/tao/AnyTypeCode/Enum_TypeCode.h @@ -63,8 +63,8 @@ namespace TAO */ //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -78,10 +78,10 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; - virtual CORBA::ULong member_count_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual char const * id_i () const; + virtual char const * name_i () const; + virtual CORBA::ULong member_count_i () const; virtual char const * member_name_i (CORBA::ULong index) const; //@} diff --git a/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.cpp b/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.cpp index 75fb4ee17c8..81af701debf 100644 --- a/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.cpp +++ b/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.cpp @@ -58,14 +58,14 @@ TAO::TypeCode::Enum<char const *, void TAO::TypeCode::Enum<char const *, char const * const *, - TAO::Null_RefCount_Policy>::tao_duplicate (void) + TAO::Null_RefCount_Policy>::tao_duplicate () { } void TAO::TypeCode::Enum<char const *, char const * const *, - TAO::Null_RefCount_Policy>::tao_release (void) + TAO::Null_RefCount_Policy>::tao_release () { } @@ -124,7 +124,7 @@ CORBA::TypeCode_ptr TAO::TypeCode::Enum<char const *, char const * const *, TAO::Null_RefCount_Policy>::get_compact_typecode_i ( - void) const + ) const { ACE_Array_Base<CORBA::String_var> tc_enumerators (this->nenumerators_); @@ -161,7 +161,7 @@ char const * TAO::TypeCode::Enum<char const *, char const * const *, TAO::Null_RefCount_Policy>::id_i ( - void) const + ) const { // Ownership is retained by the TypeCode, as required by the C++ // mapping. @@ -172,7 +172,7 @@ char const * TAO::TypeCode::Enum<char const *, char const * const *, TAO::Null_RefCount_Policy>::name_i ( - void) const + ) const { // Ownership is retained by the TypeCode, as required by the C++ // mapping. @@ -183,7 +183,7 @@ CORBA::ULong TAO::TypeCode::Enum<char const *, char const * const *, TAO::Null_RefCount_Policy>::member_count_i ( - void) const + ) const { return this->nenumerators_; } diff --git a/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.h b/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.h index 8fd342a90ef..4e35dc18586 100644 --- a/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.h +++ b/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.h @@ -69,8 +69,8 @@ namespace TAO //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -84,10 +84,10 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; - virtual CORBA::ULong member_count_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual char const * id_i () const; + virtual char const * name_i () const; + virtual CORBA::ULong member_count_i () const; virtual char const * member_name_i (CORBA::ULong index) const; //@} diff --git a/TAO/tao/AnyTypeCode/Fixed_TypeCode.h b/TAO/tao/AnyTypeCode/Fixed_TypeCode.h index 56a6b685fa0..e84730b2469 100644 --- a/TAO/tao/AnyTypeCode/Fixed_TypeCode.h +++ b/TAO/tao/AnyTypeCode/Fixed_TypeCode.h @@ -57,8 +57,8 @@ namespace TAO */ //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -73,9 +73,9 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual CORBA::UShort fixed_digits_i (void) const; - virtual CORBA::UShort fixed_scale_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual CORBA::UShort fixed_digits_i () const; + virtual CORBA::UShort fixed_scale_i () const; private: /// The number of significant digits. diff --git a/TAO/tao/AnyTypeCode/Indirected_Type_TypeCode.cpp b/TAO/tao/AnyTypeCode/Indirected_Type_TypeCode.cpp index ec34f735087..93a88f1bbc7 100644 --- a/TAO/tao/AnyTypeCode/Indirected_Type_TypeCode.cpp +++ b/TAO/tao/AnyTypeCode/Indirected_Type_TypeCode.cpp @@ -24,7 +24,7 @@ TAO::TypeCode::Indirected_Type::tao_marshal (TAO_OutputCDR & cdr, } void -TAO::TypeCode::Indirected_Type::tao_duplicate (void) +TAO::TypeCode::Indirected_Type::tao_duplicate () { ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->mutex_); @@ -39,7 +39,7 @@ TAO::TypeCode::Indirected_Type::tao_duplicate (void) } void -TAO::TypeCode::Indirected_Type::tao_release (void) +TAO::TypeCode::Indirected_Type::tao_release () { unsigned long newcount; CORBA::TypeCode_ptr curmaster; @@ -103,25 +103,25 @@ TAO::TypeCode::Indirected_Type::equivalent_i ( } CORBA::TypeCode_ptr -TAO::TypeCode::Indirected_Type::get_compact_typecode_i (void) const +TAO::TypeCode::Indirected_Type::get_compact_typecode_i () const { return this->recursive_tc_ ? this->recursive_tc_->get_compact_typecode () : 0; } char const * -TAO::TypeCode::Indirected_Type::id_i (void) const +TAO::TypeCode::Indirected_Type::id_i () const { return this->id_.in (); } char const * -TAO::TypeCode::Indirected_Type::name_i (void) const +TAO::TypeCode::Indirected_Type::name_i () const { return this->recursive_tc_ ? this->recursive_tc_->name () : 0; } CORBA::ULong -TAO::TypeCode::Indirected_Type::member_count_i (void) const +TAO::TypeCode::Indirected_Type::member_count_i () const { return this->recursive_tc_ ? this->recursive_tc_->member_count () : 0; } @@ -147,13 +147,13 @@ TAO::TypeCode::Indirected_Type::member_visibility_i (CORBA::ULong index) const } CORBA::ValueModifier -TAO::TypeCode::Indirected_Type::type_modifier_i (void) const +TAO::TypeCode::Indirected_Type::type_modifier_i () const { return this->recursive_tc_ ? this->recursive_tc_->type_modifier () : 0; } CORBA::TypeCode_ptr -TAO::TypeCode::Indirected_Type::concrete_base_type_i (void) const +TAO::TypeCode::Indirected_Type::concrete_base_type_i () const { return this->recursive_tc_ ? this->recursive_tc_->concrete_base_type () : 0; } @@ -165,13 +165,13 @@ TAO::TypeCode::Indirected_Type::member_label_i (CORBA::ULong index) const } CORBA::TypeCode_ptr -TAO::TypeCode::Indirected_Type::discriminator_type_i (void) const +TAO::TypeCode::Indirected_Type::discriminator_type_i () const { return this->recursive_tc_ ? this->recursive_tc_->discriminator_type () : 0; } CORBA::Long -TAO::TypeCode::Indirected_Type::default_index_i (void) const +TAO::TypeCode::Indirected_Type::default_index_i () const { return this->recursive_tc_ ? this->recursive_tc_->default_index () : 0; } diff --git a/TAO/tao/AnyTypeCode/Indirected_Type_TypeCode.h b/TAO/tao/AnyTypeCode/Indirected_Type_TypeCode.h index b72f0d14f2e..4d810a4150a 100644 --- a/TAO/tao/AnyTypeCode/Indirected_Type_TypeCode.h +++ b/TAO/tao/AnyTypeCode/Indirected_Type_TypeCode.h @@ -64,8 +64,8 @@ namespace TAO //@{ virtual bool tao_marshal_kind (TAO_OutputCDR & cdr) const; virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} /// Setter for recursive reference. @@ -83,10 +83,10 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; - virtual CORBA::ULong member_count_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual char const * id_i () const; + virtual char const * name_i () const; + virtual CORBA::ULong member_count_i () const; virtual char const * member_name_i (CORBA::ULong index) const; virtual CORBA::TypeCode_ptr member_type_i (CORBA::ULong index) const; //@} @@ -101,8 +101,8 @@ namespace TAO */ //@{ virtual CORBA::Any * member_label_i (CORBA::ULong index) const; - virtual CORBA::TypeCode_ptr discriminator_type_i (void) const; - virtual CORBA::Long default_index_i (void) const; + virtual CORBA::TypeCode_ptr discriminator_type_i () const; + virtual CORBA::Long default_index_i () const; //@} /** @@ -115,8 +115,8 @@ namespace TAO */ //@{ virtual CORBA::Visibility member_visibility_i (CORBA::ULong index) const; - virtual CORBA::ValueModifier type_modifier_i (void) const; - virtual CORBA::TypeCode_ptr concrete_base_type_i (void) const; + virtual CORBA::ValueModifier type_modifier_i () const; + virtual CORBA::TypeCode_ptr concrete_base_type_i () const; //@} private: diff --git a/TAO/tao/AnyTypeCode/Marshal.cpp b/TAO/tao/AnyTypeCode/Marshal.cpp index 965d22e645c..b7274bcd458 100644 --- a/TAO/tao/AnyTypeCode/Marshal.cpp +++ b/TAO/tao/AnyTypeCode/Marshal.cpp @@ -21,7 +21,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Marshal_Object::~TAO_Marshal_Object (void) +TAO_Marshal_Object::~TAO_Marshal_Object () { } diff --git a/TAO/tao/AnyTypeCode/Marshal.h b/TAO/tao/AnyTypeCode/Marshal.h index 09a5705b113..6c6bee37e03 100644 --- a/TAO/tao/AnyTypeCode/Marshal.h +++ b/TAO/tao/AnyTypeCode/Marshal.h @@ -75,10 +75,10 @@ class TAO_AnyTypeCode_Export TAO_Marshal_Object { public: /// constructor - TAO_Marshal_Object (void); + TAO_Marshal_Object (); /// destructor - virtual ~TAO_Marshal_Object (void); + virtual ~TAO_Marshal_Object (); /// skip entry point, it allocates the right kind of Marshal_Object /// and invokes skip on it. @@ -111,7 +111,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_Primitive: public TAO_Marshal_Object { public: - TAO_Marshal_Primitive (void); + TAO_Marshal_Primitive (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, @@ -133,7 +133,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_Any: public TAO_Marshal_Object { public: - TAO_Marshal_Any (void); + TAO_Marshal_Any (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, @@ -155,7 +155,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_TypeCode: public TAO_Marshal_Object { public: - TAO_Marshal_TypeCode (void); + TAO_Marshal_TypeCode (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, @@ -177,7 +177,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_Principal: public TAO_Marshal_Object { public: - TAO_Marshal_Principal (void); + TAO_Marshal_Principal (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, @@ -199,7 +199,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_ObjRef: public TAO_Marshal_Object { public: - TAO_Marshal_ObjRef (void); + TAO_Marshal_ObjRef (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, @@ -221,7 +221,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_Struct : public TAO_Marshal_Object { public: - TAO_Marshal_Struct (void); + TAO_Marshal_Struct (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, @@ -243,7 +243,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_Union: public TAO_Marshal_Object { public: - TAO_Marshal_Union (void); + TAO_Marshal_Union (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, @@ -265,7 +265,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_String: public TAO_Marshal_Object { public: - TAO_Marshal_String (void); + TAO_Marshal_String (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, @@ -287,7 +287,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_Sequence: public TAO_Marshal_Object { public: - TAO_Marshal_Sequence (void); + TAO_Marshal_Sequence (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, @@ -309,7 +309,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_Array: public TAO_Marshal_Object { public: - TAO_Marshal_Array (void); + TAO_Marshal_Array (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, @@ -331,7 +331,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_Alias: public TAO_Marshal_Object { public: - TAO_Marshal_Alias (void); + TAO_Marshal_Alias (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, @@ -353,7 +353,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_Except: public TAO_Marshal_Object { public: - TAO_Marshal_Except (void); + TAO_Marshal_Except (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, @@ -375,7 +375,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_WString : public TAO_Marshal_Object { public: - TAO_Marshal_WString (void); + TAO_Marshal_WString (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, @@ -397,7 +397,7 @@ public: class TAO_AnyTypeCode_Export TAO_Marshal_Value: public TAO_Marshal_Object { public: - TAO_Marshal_Value (void); + TAO_Marshal_Value (); /// skip operation virtual TAO::traverse_status skip (CORBA::TypeCode_ptr tc, diff --git a/TAO/tao/AnyTypeCode/Marshal.inl b/TAO/tao/AnyTypeCode/Marshal.inl index 281a0225f2f..54d26c68102 100644 --- a/TAO/tao/AnyTypeCode/Marshal.inl +++ b/TAO/tao/AnyTypeCode/Marshal.inl @@ -3,77 +3,77 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE -TAO_Marshal_Object::TAO_Marshal_Object (void) +TAO_Marshal_Object::TAO_Marshal_Object () { } ACE_INLINE -TAO_Marshal_Primitive::TAO_Marshal_Primitive (void) +TAO_Marshal_Primitive::TAO_Marshal_Primitive () { } ACE_INLINE -TAO_Marshal_Any::TAO_Marshal_Any (void) +TAO_Marshal_Any::TAO_Marshal_Any () { } ACE_INLINE -TAO_Marshal_Principal::TAO_Marshal_Principal (void) +TAO_Marshal_Principal::TAO_Marshal_Principal () { } ACE_INLINE -TAO_Marshal_TypeCode::TAO_Marshal_TypeCode (void) +TAO_Marshal_TypeCode::TAO_Marshal_TypeCode () { } ACE_INLINE -TAO_Marshal_ObjRef::TAO_Marshal_ObjRef (void) +TAO_Marshal_ObjRef::TAO_Marshal_ObjRef () { } ACE_INLINE -TAO_Marshal_Struct::TAO_Marshal_Struct (void) +TAO_Marshal_Struct::TAO_Marshal_Struct () { } ACE_INLINE -TAO_Marshal_Union::TAO_Marshal_Union (void) +TAO_Marshal_Union::TAO_Marshal_Union () { } ACE_INLINE -TAO_Marshal_String::TAO_Marshal_String (void) +TAO_Marshal_String::TAO_Marshal_String () { } ACE_INLINE -TAO_Marshal_Sequence::TAO_Marshal_Sequence (void) +TAO_Marshal_Sequence::TAO_Marshal_Sequence () { } ACE_INLINE -TAO_Marshal_Array::TAO_Marshal_Array (void) +TAO_Marshal_Array::TAO_Marshal_Array () { } ACE_INLINE -TAO_Marshal_Alias::TAO_Marshal_Alias (void) +TAO_Marshal_Alias::TAO_Marshal_Alias () { } ACE_INLINE -TAO_Marshal_Except::TAO_Marshal_Except (void) +TAO_Marshal_Except::TAO_Marshal_Except () { } ACE_INLINE -TAO_Marshal_WString::TAO_Marshal_WString (void) +TAO_Marshal_WString::TAO_Marshal_WString () { } ACE_INLINE -TAO_Marshal_Value::TAO_Marshal_Value (void) +TAO_Marshal_Value::TAO_Marshal_Value () : nested_processing_ (false) { } diff --git a/TAO/tao/AnyTypeCode/NVList.cpp b/TAO/tao/AnyTypeCode/NVList.cpp index 927ae22006c..7c0571e618f 100644 --- a/TAO/tao/AnyTypeCode/NVList.cpp +++ b/TAO/tao/AnyTypeCode/NVList.cpp @@ -23,13 +23,13 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL // Reference counting for DII Request object CORBA::ULong -CORBA::NamedValue::_incr_refcount (void) +CORBA::NamedValue::_incr_refcount () { return ++this->refcount_; } CORBA::ULong -CORBA::NamedValue::_decr_refcount (void) +CORBA::NamedValue::_decr_refcount () { CORBA::ULong const new_count = --this->refcount_; @@ -39,7 +39,7 @@ CORBA::NamedValue::_decr_refcount (void) return new_count; } -CORBA::NamedValue::~NamedValue (void) +CORBA::NamedValue::~NamedValue () { if (this->name_) { @@ -52,13 +52,13 @@ CORBA::NamedValue::~NamedValue (void) // **************************************************************** CORBA::ULong -CORBA::NVList::_incr_refcount (void) +CORBA::NVList::_incr_refcount () { return ++this->refcount_; } CORBA::ULong -CORBA::NVList::_decr_refcount (void) +CORBA::NVList::_decr_refcount () { CORBA::ULong const new_count = --this->refcount_; @@ -68,7 +68,7 @@ CORBA::NVList::_decr_refcount (void) return new_count; } -CORBA::NVList::~NVList (void) +CORBA::NVList::~NVList () { // initialize an iterator and delete each NamedValue ACE_Unbounded_Queue_Iterator<CORBA::NamedValue_ptr> iter (this->values_); @@ -402,7 +402,7 @@ CORBA::NVList::_tao_decode (TAO_InputCDR &incoming, int flag) } ptrdiff_t -CORBA::NVList::_tao_target_alignment (void) +CORBA::NVList::_tao_target_alignment () { ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, @@ -426,17 +426,13 @@ CORBA::NVList::_tao_target_alignment (void) } void -CORBA::NVList::evaluate (void) +CORBA::NVList::evaluate () { ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); if (this->incoming_ != 0) { -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO_InputCDR> incoming (this->incoming_); -#else - auto_ptr<TAO_InputCDR> incoming (this->incoming_); -#endif /* ACE_HAS_CPP11 */ this->incoming_ = 0; this->_tao_decode (*(incoming.get ()), this->incoming_flag_); @@ -444,7 +440,7 @@ CORBA::NVList::evaluate (void) } CORBA::Boolean -CORBA::NVList::_lazy_has_arguments (void) const +CORBA::NVList::_lazy_has_arguments () const { if (this->incoming_ != 0) { diff --git a/TAO/tao/AnyTypeCode/NVList.h b/TAO/tao/AnyTypeCode/NVList.h index 001a1d7691d..989df82cd99 100644 --- a/TAO/tao/AnyTypeCode/NVList.h +++ b/TAO/tao/AnyTypeCode/NVList.h @@ -26,11 +26,7 @@ #include "ace/Unbounded_Queue.h" #include "ace/Thread_Mutex.h" -#if defined (ACE_HAS_CPP11) -# include <atomic> -#else -# include "ace/Atomic_Op.h" -#endif /* ACE_HAS_CPP11 */ +#include <atomic> TAO_BEGIN_VERSIONED_NAMESPACE_DECL @@ -84,21 +80,21 @@ namespace CORBA public: /// optional name - const char * name (void) const; + const char * name () const; /// return the value - Any_ptr value (void) const; + Any_ptr value () const; /// return the parameter mode flag - Flags flags (void) const; + Flags flags () const; // The pseudo object static methods.. static NamedValue * _duplicate (NamedValue *); - static NamedValue * _nil (void); + static NamedValue * _nil (); // = Reference counting. - ULong _incr_refcount (void); - ULong _decr_refcount (void); + ULong _incr_refcount (); + ULong _decr_refcount (); // Useful for template programming. typedef NamedValue_ptr _ptr_type; @@ -111,20 +107,16 @@ namespace CORBA * Protected destructor to enforce proper memory management * through the reference counting mechanism. */ - ~NamedValue (void); + ~NamedValue (); private: /// private constructor. Cannot be directly instantiated other than /// by its friends. - NamedValue (void); + NamedValue (); private: /// Reference counter. -#if defined (ACE_HAS_CPP11) std::atomic<uint32_t> refcount_; -#else - ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> refcount_; -#endif /* ACE_HAS_CPP11 */ /// holds the value Any any_; @@ -165,7 +157,7 @@ namespace CORBA public: /// return the current number of elements in the list - ULong count (void) const; + ULong count () const; /// add an element and just initialize the flags NamedValue_ptr add (Flags); @@ -193,11 +185,11 @@ namespace CORBA // The pseudo object static methods.. static NVList * _duplicate (NVList *); - static NVList * _nil (void); + static NVList * _nil (); // = Reference counting. - ULong _incr_refcount (void); - ULong _decr_refcount (void); + ULong _incr_refcount (); + ULong _decr_refcount (); // = TAO Extensions: @@ -223,14 +215,14 @@ namespace CORBA * re-alignment. * It returns ACE_CDR::MAX_ALIGNMENT to indicate errors. */ - ptrdiff_t _tao_target_alignment (void); + ptrdiff_t _tao_target_alignment (); /** * If this list is used by a DII request, this will tell us if * our CDR stream contains any marshaled arguments (needed for * GIOP 1.2). */ - Boolean _lazy_has_arguments (void) const; + Boolean _lazy_has_arguments () const; // Useful for template programming. typedef NVList_ptr _ptr_type; @@ -243,12 +235,12 @@ namespace CORBA * Protected destructor to enforce proper memory management * through the reference counting mechanism. */ - ~NVList (void); + ~NVList (); private: /// Constructor - cannot be instantiated directly other than /// through the CORBA::ORB::create_list method - NVList (void); + NVList (); /// Helper to increase the list size. This is used by all the add_ /// methods of the NVList class @@ -256,7 +248,7 @@ namespace CORBA /// Lazy evaluation routine to fill up the Anys in the NVList from /// the CDR stream. - void evaluate (void); + void evaluate (); private: /// Internal list of parameters stored as NamedValues @@ -266,11 +258,7 @@ namespace CORBA ULong max_; /// Reference counter. -#if defined (ACE_HAS_CPP11) std::atomic<uint32_t> refcount_; -#else - ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> refcount_; -#endif /* ACE_HAS_CPP11 */ /// Protects the incoming pointer. TAO_SYNCH_MUTEX lock_; diff --git a/TAO/tao/AnyTypeCode/NVList_Adapter_Impl.cpp b/TAO/tao/AnyTypeCode/NVList_Adapter_Impl.cpp index d170907e390..a9d1940a8df 100644 --- a/TAO/tao/AnyTypeCode/NVList_Adapter_Impl.cpp +++ b/TAO/tao/AnyTypeCode/NVList_Adapter_Impl.cpp @@ -55,7 +55,7 @@ TAO_NVList_Adapter_Impl::create_named_value (CORBA::NamedValue_ptr &nv) } int -TAO_NVList_Adapter_Impl::Initializer (void) +TAO_NVList_Adapter_Impl::Initializer () { return ACE_Service_Config::process_directive (ace_svc_desc_TAO_NVList_Adapter_Impl); } diff --git a/TAO/tao/AnyTypeCode/NVList_Adapter_Impl.h b/TAO/tao/AnyTypeCode/NVList_Adapter_Impl.h index aca4292e926..5ad1d79264e 100644 --- a/TAO/tao/AnyTypeCode/NVList_Adapter_Impl.h +++ b/TAO/tao/AnyTypeCode/NVList_Adapter_Impl.h @@ -36,7 +36,7 @@ public: virtual void create_named_value (CORBA::NamedValue_ptr &nv); /// Used to force the initialization of the NVList adapter - static int Initializer (void); + static int Initializer (); }; static int TAO_Requires_NVList_Adapter_Impl_Initializer = diff --git a/TAO/tao/AnyTypeCode/Null_RefCount_Policy.h b/TAO/tao/AnyTypeCode/Null_RefCount_Policy.h index 09b696a606c..6dd3b5e1fa0 100644 --- a/TAO/tao/AnyTypeCode/Null_RefCount_Policy.h +++ b/TAO/tao/AnyTypeCode/Null_RefCount_Policy.h @@ -66,10 +66,10 @@ namespace TAO public: /// No-op reference increment. - void add_ref (void) { } + void add_ref () { } /// No-op reference decrement. - void remove_ref (void) { } + void remove_ref () { } }; diff --git a/TAO/tao/AnyTypeCode/Objref_TypeCode.h b/TAO/tao/AnyTypeCode/Objref_TypeCode.h index 59e1abf4e3c..5a43981c0f2 100644 --- a/TAO/tao/AnyTypeCode/Objref_TypeCode.h +++ b/TAO/tao/AnyTypeCode/Objref_TypeCode.h @@ -69,8 +69,8 @@ namespace TAO //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -86,9 +86,9 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual char const * id_i () const; + virtual char const * name_i () const; protected: /// Base attributes (@c id and @c name). diff --git a/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.cpp b/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.cpp index 2502e71169d..9022c9ce878 100644 --- a/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.cpp +++ b/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.cpp @@ -38,13 +38,13 @@ TAO::TypeCode::Objref<char const *, TAO::Null_RefCount_Policy>::tao_marshal ( void TAO::TypeCode::Objref<char const *, - TAO::Null_RefCount_Policy>::tao_duplicate (void) + TAO::Null_RefCount_Policy>::tao_duplicate () { } void TAO::TypeCode::Objref<char const *, - TAO::Null_RefCount_Policy>::tao_release (void) + TAO::Null_RefCount_Policy>::tao_release () { } @@ -70,7 +70,7 @@ TAO::TypeCode::Objref<char const *, TAO::Null_RefCount_Policy>::equivalent_i ( CORBA::TypeCode_ptr TAO::TypeCode::Objref<char const *, - TAO::Null_RefCount_Policy>::get_compact_typecode_i (void) const + TAO::Null_RefCount_Policy>::get_compact_typecode_i () const { TAO_TypeCodeFactory_Adapter * const adapter = ACE_Dynamic_Service<TAO_TypeCodeFactory_Adapter>::instance ( @@ -116,7 +116,7 @@ TAO::TypeCode::Objref<char const *, char const * TAO::TypeCode::Objref<char const *, TAO::Null_RefCount_Policy>::id_i ( - void) const + ) const { // Ownership is retained by the TypeCode, as required by the C++ // mapping. @@ -125,7 +125,7 @@ TAO::TypeCode::Objref<char const *, TAO::Null_RefCount_Policy>::id_i ( char const * TAO::TypeCode::Objref<char const *, TAO::Null_RefCount_Policy>::name_i ( - void) const + ) const { // Ownership is retained by the TypeCode, as required by the C++ // mapping. diff --git a/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.h b/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.h index 0887c074809..8166b24edbe 100644 --- a/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.h +++ b/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.h @@ -73,8 +73,8 @@ namespace TAO //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -90,9 +90,9 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual char const * id_i () const; + virtual char const * name_i () const; protected: /// Base attributes (@c id and @c name). diff --git a/TAO/tao/AnyTypeCode/Recursive_Type_TypeCode.h b/TAO/tao/AnyTypeCode/Recursive_Type_TypeCode.h index 403529e8650..d8482d33599 100644 --- a/TAO/tao/AnyTypeCode/Recursive_Type_TypeCode.h +++ b/TAO/tao/AnyTypeCode/Recursive_Type_TypeCode.h @@ -143,7 +143,7 @@ namespace TAO { public: Reset (CORBA::ULong & flag) : flag_ (flag) { } - ~Reset (void) { this->flag_ = 0; } + ~Reset () { this->flag_ = 0; } private: CORBA::ULong & flag_; }; diff --git a/TAO/tao/AnyTypeCode/Sequence_TypeCode.h b/TAO/tao/AnyTypeCode/Sequence_TypeCode.h index 9b621ac9bd3..154a4d41742 100644 --- a/TAO/tao/AnyTypeCode/Sequence_TypeCode.h +++ b/TAO/tao/AnyTypeCode/Sequence_TypeCode.h @@ -60,8 +60,8 @@ namespace TAO */ //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -76,9 +76,9 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual CORBA::ULong length_i (void) const; - virtual CORBA::TypeCode_ptr content_type_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual CORBA::ULong length_i () const; + virtual CORBA::TypeCode_ptr content_type_i () const; private: /// Element type of the sequence. diff --git a/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.cpp b/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.cpp index 99f8e26c3bf..5ef1aec82db 100644 --- a/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.cpp +++ b/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.cpp @@ -48,13 +48,13 @@ TAO::TypeCode::Sequence<CORBA::TypeCode_ptr const *, void TAO::TypeCode::Sequence<CORBA::TypeCode_ptr const *, - TAO::Null_RefCount_Policy>::tao_duplicate (void) + TAO::Null_RefCount_Policy>::tao_duplicate () { } void TAO::TypeCode::Sequence<CORBA::TypeCode_ptr const *, - TAO::Null_RefCount_Policy>::tao_release (void) + TAO::Null_RefCount_Policy>::tao_release () { } @@ -105,7 +105,7 @@ TAO::TypeCode::Sequence<CORBA::TypeCode_ptr const *, CORBA::TypeCode_ptr TAO::TypeCode::Sequence<CORBA::TypeCode_ptr const *, TAO::Null_RefCount_Policy>::get_compact_typecode_i ( - void) const + ) const { // Already compact since tk_sequence and tk_array TypeCodes have no // name or member names, meaning that we can simply call @@ -126,7 +126,7 @@ TAO::TypeCode::Sequence<CORBA::TypeCode_ptr const *, CORBA::ULong TAO::TypeCode::Sequence<CORBA::TypeCode_ptr const *, TAO::Null_RefCount_Policy>::length_i ( - void) const + ) const { return this->length_; } @@ -134,7 +134,7 @@ TAO::TypeCode::Sequence<CORBA::TypeCode_ptr const *, CORBA::TypeCode_ptr TAO::TypeCode::Sequence<CORBA::TypeCode_ptr const *, TAO::Null_RefCount_Policy>::content_type_i ( - void) const + ) const { return CORBA::TypeCode::_duplicate ( diff --git a/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.h b/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.h index 2750c37ab74..11c76119774 100644 --- a/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.h +++ b/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.h @@ -65,8 +65,8 @@ namespace TAO //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -81,9 +81,9 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual CORBA::ULong length_i (void) const; - virtual CORBA::TypeCode_ptr content_type_i ( void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual CORBA::ULong length_i () const; + virtual CORBA::TypeCode_ptr content_type_i ( ) const; private: /// Element type of the sequence. diff --git a/TAO/tao/AnyTypeCode/String_TypeCode.h b/TAO/tao/AnyTypeCode/String_TypeCode.h index 507ad7ba137..8ca53f95e6e 100644 --- a/TAO/tao/AnyTypeCode/String_TypeCode.h +++ b/TAO/tao/AnyTypeCode/String_TypeCode.h @@ -59,8 +59,8 @@ namespace TAO //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -75,8 +75,8 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual CORBA::ULong length_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual CORBA::ULong length_i () const; private: /// Length of the @c string. A length of zero indicates an diff --git a/TAO/tao/AnyTypeCode/String_TypeCode_Static.cpp b/TAO/tao/AnyTypeCode/String_TypeCode_Static.cpp index 90b9344e529..83f28c3add9 100644 --- a/TAO/tao/AnyTypeCode/String_TypeCode_Static.cpp +++ b/TAO/tao/AnyTypeCode/String_TypeCode_Static.cpp @@ -24,12 +24,12 @@ TAO::TypeCode::String<TAO::Null_RefCount_Policy>::tao_marshal ( } void -TAO::TypeCode::String<TAO::Null_RefCount_Policy>::tao_duplicate (void) +TAO::TypeCode::String<TAO::Null_RefCount_Policy>::tao_duplicate () { } void -TAO::TypeCode::String<TAO::Null_RefCount_Policy>::tao_release (void) +TAO::TypeCode::String<TAO::Null_RefCount_Policy>::tao_release () { } @@ -57,7 +57,7 @@ TAO::TypeCode::String<TAO::Null_RefCount_Policy>::equivalent_i ( CORBA::TypeCode_ptr TAO::TypeCode::String<TAO::Null_RefCount_Policy>::get_compact_typecode_i ( - void) const + ) const { // Already compact since tk_string and tk_wstring TypeCodes have no // name or member names, meaning that we can simply call @@ -71,7 +71,7 @@ TAO::TypeCode::String<TAO::Null_RefCount_Policy>::get_compact_typecode_i ( CORBA::ULong TAO::TypeCode::String<TAO::Null_RefCount_Policy>::length_i ( - void) const + ) const { return this->length_; } diff --git a/TAO/tao/AnyTypeCode/String_TypeCode_Static.h b/TAO/tao/AnyTypeCode/String_TypeCode_Static.h index 8fb262cb65d..388644be81b 100644 --- a/TAO/tao/AnyTypeCode/String_TypeCode_Static.h +++ b/TAO/tao/AnyTypeCode/String_TypeCode_Static.h @@ -62,8 +62,8 @@ namespace TAO //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -78,8 +78,8 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual CORBA::ULong length_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual CORBA::ULong length_i () const; private: /// Length of the @c string. A length of zero indicates an diff --git a/TAO/tao/AnyTypeCode/Struct_TypeCode.h b/TAO/tao/AnyTypeCode/Struct_TypeCode.h index 3234062e624..4e5fb375edf 100644 --- a/TAO/tao/AnyTypeCode/Struct_TypeCode.h +++ b/TAO/tao/AnyTypeCode/Struct_TypeCode.h @@ -72,8 +72,8 @@ namespace TAO */ //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} /// Accessor for fields_ @@ -91,10 +91,10 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; - virtual CORBA::ULong member_count_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual char const * id_i () const; + virtual char const * name_i () const; + virtual CORBA::ULong member_count_i () const; virtual char const * member_name_i (CORBA::ULong index) const; virtual CORBA::TypeCode_ptr member_type_i (CORBA::ULong index) const; //@} diff --git a/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.cpp b/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.cpp index 212bd380a39..fb6853c958e 100644 --- a/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.cpp +++ b/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.cpp @@ -83,7 +83,7 @@ TAO::TypeCode::Struct<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const *, - TAO::Null_RefCount_Policy>::tao_duplicate (void) + TAO::Null_RefCount_Policy>::tao_duplicate () { } @@ -92,7 +92,7 @@ TAO::TypeCode::Struct<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const *, - TAO::Null_RefCount_Policy>::tao_release (void) + TAO::Null_RefCount_Policy>::tao_release () { } @@ -181,7 +181,7 @@ TAO::TypeCode::Struct<char const *, TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const *, TAO::Null_RefCount_Policy>::get_compact_typecode_i ( - void) const + ) const { ACE_Array_Base<Struct_Field<CORBA::String_var, CORBA::TypeCode_var> > @@ -229,7 +229,7 @@ TAO::TypeCode::Struct<char const *, TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const *, TAO::Null_RefCount_Policy>::id_i ( - void) const + ) const { // Ownership is retained by the TypeCode, as required by the C++ // mapping. @@ -241,7 +241,7 @@ TAO::TypeCode::Struct<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const *, - TAO::Null_RefCount_Policy>::name_i (void) const + TAO::Null_RefCount_Policy>::name_i () const { // Ownership is retained by the TypeCode, as required by the C++ // mapping. @@ -253,7 +253,7 @@ TAO::TypeCode::Struct<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const *, - TAO::Null_RefCount_Policy>::member_count_i (void) const + TAO::Null_RefCount_Policy>::member_count_i () const { return this->nfields_; } diff --git a/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.h b/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.h index aa800a6b537..06bbd178928 100644 --- a/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.h +++ b/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.h @@ -78,8 +78,8 @@ namespace TAO //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -94,10 +94,10 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; - virtual CORBA::ULong member_count_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual char const * id_i () const; + virtual char const * name_i () const; + virtual CORBA::ULong member_count_i () const; virtual char const * member_name_i (CORBA::ULong index) const; virtual CORBA::TypeCode_ptr member_type_i (CORBA::ULong index) const; //@} diff --git a/TAO/tao/AnyTypeCode/True_RefCount_Policy.cpp b/TAO/tao/AnyTypeCode/True_RefCount_Policy.cpp index 3f25a04ed14..97662a84f02 100644 --- a/TAO/tao/AnyTypeCode/True_RefCount_Policy.cpp +++ b/TAO/tao/AnyTypeCode/True_RefCount_Policy.cpp @@ -7,7 +7,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO::True_RefCount_Policy::~True_RefCount_Policy (void) +TAO::True_RefCount_Policy::~True_RefCount_Policy () { } diff --git a/TAO/tao/AnyTypeCode/True_RefCount_Policy.h b/TAO/tao/AnyTypeCode/True_RefCount_Policy.h index e1198f14cbe..257032630fc 100644 --- a/TAO/tao/AnyTypeCode/True_RefCount_Policy.h +++ b/TAO/tao/AnyTypeCode/True_RefCount_Policy.h @@ -25,11 +25,7 @@ #include "tao/orbconf.h" #include "ace/Thread_Mutex.h" -#if defined (ACE_HAS_CPP11) -# include <atomic> -#else -# include "ace/Atomic_Op.h" -#endif /* ACE_HAS_CPP11 */ +#include <atomic> TAO_BEGIN_VERSIONED_NAMESPACE_DECL @@ -75,7 +71,7 @@ namespace TAO public: /// Increase the reference count on this object. - void add_ref (void); + void add_ref (); /// Decrease the reference count on this object. /** @@ -83,7 +79,7 @@ namespace TAO * reference count drops to zero, call @c operator @c delete() * on this object. */ - void remove_ref (void); + void remove_ref (); protected: /// Constructor. @@ -91,7 +87,7 @@ namespace TAO * @note This constructor is protected since it not meant to be * instantiated/used as a standalone object. */ - True_RefCount_Policy (void); + True_RefCount_Policy (); /// Destructor. /** @@ -100,15 +96,11 @@ namespace TAO * zero, i.e. when @c remove_ref() calls @c operator * @c delete @c this. */ - virtual ~True_RefCount_Policy (void); + virtual ~True_RefCount_Policy (); private: /// Reference counter. -#if defined (ACE_HAS_CPP11) std::atomic<uint32_t> refcount_; -#else - ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> refcount_; -#endif /* ACE_HAS_CPP11 */ }; } // End namespace TAO diff --git a/TAO/tao/AnyTypeCode/TypeCode.cpp b/TAO/tao/AnyTypeCode/TypeCode.cpp index b8277a895cc..53108bd3b91 100644 --- a/TAO/tao/AnyTypeCode/TypeCode.cpp +++ b/TAO/tao/AnyTypeCode/TypeCode.cpp @@ -13,7 +13,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -CORBA::TypeCode::~TypeCode (void) +CORBA::TypeCode::~TypeCode () { } @@ -113,19 +113,19 @@ CORBA::TypeCode::equivalent (TypeCode_ptr tc) const } char const * -CORBA::TypeCode::id_i (void) const +CORBA::TypeCode::id_i () const { throw ::CORBA::TypeCode::BadKind (); } char const * -CORBA::TypeCode::name_i (void) const +CORBA::TypeCode::name_i () const { throw ::CORBA::TypeCode::BadKind (); } CORBA::ULong -CORBA::TypeCode::member_count_i (void) const +CORBA::TypeCode::member_count_i () const { throw ::CORBA::TypeCode::BadKind (); } @@ -149,37 +149,37 @@ CORBA::TypeCode::member_label_i (CORBA::ULong /* index */) const } CORBA::TypeCode_ptr -CORBA::TypeCode::discriminator_type_i (void) const +CORBA::TypeCode::discriminator_type_i () const { throw ::CORBA::TypeCode::BadKind (); } CORBA::Long -CORBA::TypeCode::default_index_i (void) const +CORBA::TypeCode::default_index_i () const { throw ::CORBA::TypeCode::BadKind (); } CORBA::ULong -CORBA::TypeCode::length_i (void) const +CORBA::TypeCode::length_i () const { throw ::CORBA::TypeCode::BadKind (); } CORBA::TypeCode_ptr -CORBA::TypeCode::content_type_i (void) const +CORBA::TypeCode::content_type_i () const { throw ::CORBA::TypeCode::BadKind (); } CORBA::UShort -CORBA::TypeCode::fixed_digits_i (void) const +CORBA::TypeCode::fixed_digits_i () const { throw ::CORBA::TypeCode::BadKind (); } CORBA::UShort -CORBA::TypeCode::fixed_scale_i (void) const +CORBA::TypeCode::fixed_scale_i () const { throw ::CORBA::TypeCode::BadKind (); } @@ -191,20 +191,20 @@ CORBA::TypeCode::member_visibility_i (CORBA::ULong /* index */) const } CORBA::ValueModifier -CORBA::TypeCode::type_modifier_i (void) const +CORBA::TypeCode::type_modifier_i () const { throw ::CORBA::TypeCode::BadKind (); } CORBA::TypeCode_ptr -CORBA::TypeCode::concrete_base_type_i (void) const +CORBA::TypeCode::concrete_base_type_i () const { throw ::CORBA::TypeCode::BadKind (); } // --------------------------------------------------------------- -CORBA::TypeCode::Bounds::Bounds (void) +CORBA::TypeCode::Bounds::Bounds () : CORBA::UserException ("IDL:omg.org/CORBA/TypeCode/Bounds:1.0", "Bounds") { @@ -217,7 +217,7 @@ CORBA::TypeCode::Bounds::_downcast (CORBA::Exception *ex) } CORBA::Exception * -CORBA::TypeCode::Bounds::_alloc (void) +CORBA::TypeCode::Bounds::_alloc () { CORBA::Exception *retval = 0; ACE_NEW_RETURN (retval, ::CORBA::TypeCode::Bounds, 0); @@ -225,7 +225,7 @@ CORBA::TypeCode::Bounds::_alloc (void) } CORBA::Exception * -CORBA::TypeCode::Bounds::_tao_duplicate (void) const +CORBA::TypeCode::Bounds::_tao_duplicate () const { CORBA::Exception *result; ACE_NEW_RETURN (result, @@ -235,7 +235,7 @@ CORBA::TypeCode::Bounds::_tao_duplicate (void) const } void -CORBA::TypeCode::Bounds::_raise (void) const +CORBA::TypeCode::Bounds::_raise () const { throw *this; } @@ -258,7 +258,7 @@ CORBA::TypeCode::Bounds::_tao_decode (TAO_InputCDR &) // **************************************************************** -CORBA::TypeCode::BadKind::BadKind (void) +CORBA::TypeCode::BadKind::BadKind () : CORBA::UserException ("IDL:omg.org/CORBA/TypeCode/BadKind:1.0", "BadKind") { @@ -271,7 +271,7 @@ CORBA::TypeCode::BadKind::_downcast (CORBA::Exception *ex) } CORBA::Exception * -CORBA::TypeCode::BadKind::_tao_duplicate (void) const +CORBA::TypeCode::BadKind::_tao_duplicate () const { CORBA::Exception *result = 0; ACE_NEW_RETURN (result, @@ -281,7 +281,7 @@ CORBA::TypeCode::BadKind::_tao_duplicate (void) const } void -CORBA::TypeCode::BadKind::_raise (void) const +CORBA::TypeCode::BadKind::_raise () const { throw *this; } @@ -402,7 +402,7 @@ namespace TAO } CORBA::TypeCode_ptr - Objref_Traits<CORBA::TypeCode>::nil (void) + Objref_Traits<CORBA::TypeCode>::nil () { return CORBA::TypeCode::_nil (); } diff --git a/TAO/tao/AnyTypeCode/TypeCode.h b/TAO/tao/AnyTypeCode/TypeCode.h index d7701ab1c50..9a21085a314 100644 --- a/TAO/tao/AnyTypeCode/TypeCode.h +++ b/TAO/tao/AnyTypeCode/TypeCode.h @@ -70,14 +70,14 @@ namespace CORBA public: /// Constructor. - Bounds (void); + Bounds (); static Bounds * _downcast (CORBA::Exception * ex); - static CORBA::Exception * _alloc (void); + static CORBA::Exception * _alloc (); - virtual CORBA::Exception * _tao_duplicate (void) const; + virtual CORBA::Exception * _tao_duplicate () const; - virtual void _raise (void) const; + virtual void _raise () const; virtual void _tao_encode (TAO_OutputCDR & cdr) const; virtual void _tao_decode (TAO_InputCDR & cdr); @@ -96,14 +96,14 @@ namespace CORBA { public: - BadKind (void); + BadKind (); static BadKind * _downcast (CORBA::Exception * ex); - static CORBA::Exception * _alloc (void); + static CORBA::Exception * _alloc (); - virtual CORBA::Exception * _tao_duplicate (void) const; + virtual CORBA::Exception * _tao_duplicate () const; - virtual void _raise (void) const; + virtual void _raise () const; virtual void _tao_encode (TAO_OutputCDR & cdr) const; virtual void _tao_decode (TAO_InputCDR & cdr); @@ -123,7 +123,7 @@ namespace CORBA static CORBA::TypeCode_ptr _duplicate (CORBA::TypeCode_ptr tc); /// Returns a NULL typecode. - static CORBA::TypeCode_ptr _nil (void); + static CORBA::TypeCode_ptr _nil (); /** * @name @c CORBA::TypeCode Methods @@ -158,7 +158,7 @@ namespace CORBA Boolean equivalent (TypeCode_ptr tc) const; /// The kind of @c TypeCode. - TCKind kind (void) const; + TCKind kind () const; /// Return @c TypeCode stripped of optional @c name and /// @c member_name fields. @@ -180,7 +180,7 @@ namespace CORBA * the TAO_IDL compiler by invoking it with its "-Gt" * (i.e. enable optimized TypeCodes) command line option. */ - TypeCode_ptr get_compact_typecode (void) const; + TypeCode_ptr get_compact_typecode () const; /// The @c RepositoryId globally identifying the type. /** @@ -206,7 +206,7 @@ namespace CORBA * is required by the C++ mapping. In particular, ownership * is maintained by the @c TypeCode. */ - char const * id (void) const; + char const * id () const; /// The simple name identifying the type within its enclosing /// scope. @@ -233,7 +233,7 @@ namespace CORBA * behavior is required by the C++ mapping. In particular, * ownership is maintained by the @c TypeCode. */ - char const * name (void) const; + char const * name () const; /// The type member count. /** @@ -246,7 +246,7 @@ namespace CORBA * @li @c tk_except * @li @c tk_event */ - ULong member_count (void) const; + ULong member_count () const; /// The type member name. /** @@ -292,7 +292,7 @@ namespace CORBA * * @li @c tk_union */ - TypeCode_ptr discriminator_type (void) const; + TypeCode_ptr discriminator_type () const; /// The index of the default union member. /** @@ -300,7 +300,7 @@ namespace CORBA * * @li @c tk_union */ - Long default_index (void) const; + Long default_index () const; /// The length of the type. /** @@ -311,7 +311,7 @@ namespace CORBA * @li @c tk_sequence * @li @c tk_array */ - ULong length (void) const; + ULong length () const; /// The underlying content type. /** @@ -322,7 +322,7 @@ namespace CORBA * @li @c tk_value_box * @li @c tk_alias */ - TypeCode_ptr content_type (void) const; + TypeCode_ptr content_type () const; /// The number of significant digits. /** @@ -330,7 +330,7 @@ namespace CORBA * * @li @c tk_fixed */ - UShort fixed_digits (void) const; + UShort fixed_digits () const; /// The scale factor. /** @@ -338,7 +338,7 @@ namespace CORBA * * @li @c tk_fixed */ - UShort fixed_scale (void) const; + UShort fixed_scale () const; /// The @c Visibility of the @c valuetype or @c eventtype member /// corresponding to index @a index. @@ -358,7 +358,7 @@ namespace CORBA * @li @c tk_value * @li @c tk_event */ - ValueModifier type_modifier (void) const; + ValueModifier type_modifier () const; /// The @c TypeCode corresponding to the concrete base /// @c valuetype or @c eventtype. @@ -372,7 +372,7 @@ namespace CORBA * @c valuetype or @c eventtype. * @c CORBA::TypeCode::_nil() if no concrete base exists. */ - TypeCode_ptr concrete_base_type (void) const; + TypeCode_ptr concrete_base_type () const; //@} /// Marshal the @c TypeCode @c TCKind. @@ -411,10 +411,10 @@ namespace CORBA CORBA::ULong offset) const = 0; /// Increase the reference count on this @c TypeCode. - virtual void tao_duplicate (void) = 0; + virtual void tao_duplicate () = 0; /// Decrease the reference count on this object. - virtual void tao_release (void) = 0; + virtual void tao_release () = 0; /// Destruction callback for Anys. static void _tao_any_destructor (void * x); @@ -432,7 +432,7 @@ namespace CORBA * Protected destructor to enforce proper memory management * through the reference counting mechanism. */ - virtual ~TypeCode (void); + virtual ~TypeCode (); /** * @name @c TypeCode Template Methods @@ -453,23 +453,23 @@ namespace CORBA //@{ virtual Boolean equal_i (TypeCode_ptr tc) const = 0; virtual Boolean equivalent_i (TypeCode_ptr tc) const = 0; - virtual TypeCode_ptr get_compact_typecode_i (void) const = 0; + virtual TypeCode_ptr get_compact_typecode_i () const = 0; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; - virtual ULong member_count_i (void) const; + virtual char const * id_i () const; + virtual char const * name_i () const; + virtual ULong member_count_i () const; virtual char const * member_name_i (ULong index) const; virtual TypeCode_ptr member_type_i (ULong index) const; virtual Any * member_label_i (ULong index) const; - virtual TypeCode_ptr discriminator_type_i (void) const; - virtual Long default_index_i (void) const; - virtual ULong length_i (void) const; - virtual TypeCode_ptr content_type_i (void) const; - virtual UShort fixed_digits_i (void) const; - virtual UShort fixed_scale_i (void) const; + virtual TypeCode_ptr discriminator_type_i () const; + virtual Long default_index_i () const; + virtual ULong length_i () const; + virtual TypeCode_ptr content_type_i () const; + virtual UShort fixed_digits_i () const; + virtual UShort fixed_scale_i () const; virtual Visibility member_visibility_i (ULong index) const; - virtual ValueModifier type_modifier_i (void) const; - virtual TypeCode_ptr concrete_base_type_i (void) const; + virtual ValueModifier type_modifier_i () const; + virtual TypeCode_ptr concrete_base_type_i () const; //@} private: @@ -549,7 +549,7 @@ namespace TAO { static ::CORBA::TypeCode_ptr duplicate (::CORBA::TypeCode_ptr); static void release (::CORBA::TypeCode_ptr); - static ::CORBA::TypeCode_ptr nil (void); + static ::CORBA::TypeCode_ptr nil (); static CORBA::Boolean marshal (::CORBA::TypeCode_ptr p, TAO_OutputCDR & cdr); }; diff --git a/TAO/tao/AnyTypeCode/TypeCode_Base_Attributes.h b/TAO/tao/AnyTypeCode/TypeCode_Base_Attributes.h index 1616339555c..193de495ea3 100644 --- a/TAO/tao/AnyTypeCode/TypeCode_Base_Attributes.h +++ b/TAO/tao/AnyTypeCode/TypeCode_Base_Attributes.h @@ -51,11 +51,11 @@ namespace TAO Base_Attributes (char const * id); /// Get the @c RepositoryId globally identifying the type. - char const * id (void) const; + char const * id () const; /// Get the simple name identifying the type within its /// enclosing scope. - char const * name (void) const; + char const * name () const; /// Set the simple name identifying the type within its /// enclosing scope. diff --git a/TAO/tao/AnyTypeCode/TypeCode_CDR_Extraction.cpp b/TAO/tao/AnyTypeCode/TypeCode_CDR_Extraction.cpp index b3d656e61cb..e80e1c653a4 100644 --- a/TAO/tao/AnyTypeCode/TypeCode_CDR_Extraction.cpp +++ b/TAO/tao/AnyTypeCode/TypeCode_CDR_Extraction.cpp @@ -44,7 +44,7 @@ namespace TAO struct TC_Info { /// Constructor. - TC_Info (void) : id (0), type () {} + TC_Info () : id (0), type () {} /// Repository ID. char const * id; diff --git a/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.h b/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.h index da96f1360cd..1e420b17592 100644 --- a/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.h +++ b/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.h @@ -60,20 +60,20 @@ namespace TAO /** * Constructor used when creating dynamic @c union @c TypeCodes. */ - Case (void); + Case (); /// Destructor. - virtual ~Case (void); + virtual ~Case (); /// Cloning/copying operation. - virtual Case * clone (void) const = 0; + virtual Case * clone () const = 0; /// Return the IDL @c union case label value embedded within a /// @c CORBA::Any. - virtual CORBA::Any * label (void) const = 0; + virtual CORBA::Any * label () const = 0; /// Get the name of the @c union case/member. - char const * name (void) const; + char const * name () const; /// Set the name of the @c union case/member. void name (char const * the_name); @@ -83,7 +83,7 @@ namespace TAO * @note The reference count is not manipulated by this method, * i.e., ownership is retained by this class. */ - CORBA::TypeCode_ptr type (void) const; + CORBA::TypeCode_ptr type () const; /// Set the @c CORBA::TypeCode of the @c union case/member. /** diff --git a/TAO/tao/AnyTypeCode/TypeCode_Case_Enum_T.h b/TAO/tao/AnyTypeCode/TypeCode_Case_Enum_T.h index de360a3cdcb..b44435db95f 100644 --- a/TAO/tao/AnyTypeCode/TypeCode_Case_Enum_T.h +++ b/TAO/tao/AnyTypeCode/TypeCode_Case_Enum_T.h @@ -71,8 +71,8 @@ namespace TAO * @see @c TAO::TypeCode::Case */ //@{ - Case<StringType, TypeCodeType> * clone (void) const; - virtual CORBA::Any * label (void) const; + Case<StringType, TypeCodeType> * clone () const; + virtual CORBA::Any * label () const; virtual bool marshal_label (TAO_OutputCDR & cdr) const; virtual bool equal_label (CORBA::ULong index, CORBA::TypeCode_ptr tc) const; diff --git a/TAO/tao/AnyTypeCode/TypeCode_Case_T.h b/TAO/tao/AnyTypeCode/TypeCode_Case_T.h index d6ab4a1ab36..973edcffb32 100644 --- a/TAO/tao/AnyTypeCode/TypeCode_Case_T.h +++ b/TAO/tao/AnyTypeCode/TypeCode_Case_T.h @@ -108,8 +108,8 @@ namespace TAO * @see @c TAO::TypeCode::Case */ //@{ - Case<StringType, TypeCodeType> * clone (void) const; - virtual CORBA::Any * label (void) const; + Case<StringType, TypeCodeType> * clone () const; + virtual CORBA::Any * label () const; virtual bool marshal_label (TAO_OutputCDR & cdr) const; virtual bool equal_label (CORBA::ULong index, CORBA::TypeCode_ptr tc) const; diff --git a/TAO/tao/AnyTypeCode/Union_TypeCode.h b/TAO/tao/AnyTypeCode/Union_TypeCode.h index 31855ed90a4..99cc7cf771a 100644 --- a/TAO/tao/AnyTypeCode/Union_TypeCode.h +++ b/TAO/tao/AnyTypeCode/Union_TypeCode.h @@ -76,12 +76,12 @@ namespace TAO //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} /// Accessor for cases_ - const CaseArrayType& cases(void) const; + const CaseArrayType& cases() const; protected: /** @@ -94,15 +94,15 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; - virtual CORBA::ULong member_count_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual char const * id_i () const; + virtual char const * name_i () const; + virtual CORBA::ULong member_count_i () const; virtual char const * member_name_i (CORBA::ULong index) const; virtual CORBA::TypeCode_ptr member_type_i (CORBA::ULong index) const; virtual CORBA::Any * member_label_i (CORBA::ULong index) const; - virtual CORBA::TypeCode_ptr discriminator_type_i (void) const; - virtual CORBA::Long default_index_i (void) const; + virtual CORBA::TypeCode_ptr discriminator_type_i () const; + virtual CORBA::Long default_index_i () const; //@} protected: diff --git a/TAO/tao/AnyTypeCode/Union_TypeCode_Static.cpp b/TAO/tao/AnyTypeCode/Union_TypeCode_Static.cpp index 14193893e5e..d702bec5bfc 100644 --- a/TAO/tao/AnyTypeCode/Union_TypeCode_Static.cpp +++ b/TAO/tao/AnyTypeCode/Union_TypeCode_Static.cpp @@ -78,7 +78,7 @@ TAO::TypeCode::Union<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Case<char const *, CORBA::TypeCode_ptr const *> const * const *, - TAO::Null_RefCount_Policy>::tao_duplicate (void) + TAO::Null_RefCount_Policy>::tao_duplicate () { } @@ -87,7 +87,7 @@ TAO::TypeCode::Union<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Case<char const *, CORBA::TypeCode_ptr const *> const * const *, - TAO::Null_RefCount_Policy>::tao_release (void) + TAO::Null_RefCount_Policy>::tao_release () { } @@ -198,7 +198,7 @@ TAO::TypeCode::Union<char const *, TAO::TypeCode::Case<char const *, CORBA::TypeCode_ptr const *> const * const *, TAO::Null_RefCount_Policy>::get_compact_typecode_i ( - void) const + ) const { // typedef ACE::Value_Ptr<TAO::TypeCode::Case<CORBA::String_var, // CORBA::TypeCode_var> > elem_type; @@ -253,7 +253,7 @@ TAO::TypeCode::Union<char const *, TAO::TypeCode::Case<char const *, CORBA::TypeCode_ptr const *> const * const *, TAO::Null_RefCount_Policy>::id_i ( - void) const + ) const { // Ownership is retained by the TypeCode, as required by the C++ // mapping. @@ -265,7 +265,7 @@ TAO::TypeCode::Union<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Case<char const *, CORBA::TypeCode_ptr const *> const * const *, - TAO::Null_RefCount_Policy>::name_i (void) const + TAO::Null_RefCount_Policy>::name_i () const { // Ownership is retained by the TypeCode, as required by the C++ // mapping. @@ -277,7 +277,7 @@ TAO::TypeCode::Union<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Case<char const *, CORBA::TypeCode_ptr const *> const * const *, - TAO::Null_RefCount_Policy>::member_count_i (void) const + TAO::Null_RefCount_Policy>::member_count_i () const { return this->ncases_; } @@ -352,7 +352,7 @@ TAO::TypeCode::Union<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Case<char const *, CORBA::TypeCode_ptr const *> const * const *, - TAO::Null_RefCount_Policy>::discriminator_type_i (void) const + TAO::Null_RefCount_Policy>::discriminator_type_i () const { return CORBA::TypeCode::_duplicate ( @@ -364,7 +364,7 @@ TAO::TypeCode::Union<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Case<char const *, CORBA::TypeCode_ptr const *> const * const *, - TAO::Null_RefCount_Policy>::default_index_i (void) const + TAO::Null_RefCount_Policy>::default_index_i () const { return this->default_index_; } diff --git a/TAO/tao/AnyTypeCode/Union_TypeCode_Static.h b/TAO/tao/AnyTypeCode/Union_TypeCode_Static.h index 180747f1428..e624fcbece0 100644 --- a/TAO/tao/AnyTypeCode/Union_TypeCode_Static.h +++ b/TAO/tao/AnyTypeCode/Union_TypeCode_Static.h @@ -80,8 +80,8 @@ namespace TAO //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -95,15 +95,15 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; - virtual CORBA::ULong member_count_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual char const * id_i () const; + virtual char const * name_i () const; + virtual CORBA::ULong member_count_i () const; virtual char const * member_name_i (CORBA::ULong index) const; virtual CORBA::TypeCode_ptr member_type_i (CORBA::ULong index) const; virtual CORBA::Any * member_label_i (CORBA::ULong index) const; - virtual CORBA::TypeCode_ptr discriminator_type_i (void) const; - virtual CORBA::Long default_index_i (void) const; + virtual CORBA::TypeCode_ptr discriminator_type_i () const; + virtual CORBA::Long default_index_i () const; //@} private: diff --git a/TAO/tao/AnyTypeCode/Value_TypeCode.h b/TAO/tao/AnyTypeCode/Value_TypeCode.h index c454d0cbe1a..836403fd08d 100644 --- a/TAO/tao/AnyTypeCode/Value_TypeCode.h +++ b/TAO/tao/AnyTypeCode/Value_TypeCode.h @@ -76,12 +76,12 @@ namespace TAO //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} /// Accessor for concrete_base_ - const TypeCodeType& concrete_base(void) const; + const TypeCodeType& concrete_base() const; /// Accessor for fields_ const FieldArrayType& fields() const; @@ -98,15 +98,15 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; - virtual CORBA::ULong member_count_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual char const * id_i () const; + virtual char const * name_i () const; + virtual CORBA::ULong member_count_i () const; virtual char const * member_name_i (CORBA::ULong index) const; virtual CORBA::TypeCode_ptr member_type_i (CORBA::ULong index) const; virtual CORBA::Visibility member_visibility_i (CORBA::ULong index) const; - virtual CORBA::ValueModifier type_modifier_i (void) const; - virtual CORBA::TypeCode_ptr concrete_base_type_i (void) const; + virtual CORBA::ValueModifier type_modifier_i () const; + virtual CORBA::TypeCode_ptr concrete_base_type_i () const; //@} protected: diff --git a/TAO/tao/AnyTypeCode/Value_TypeCode_Static.cpp b/TAO/tao/AnyTypeCode/Value_TypeCode_Static.cpp index 311b8f541a8..54d40980a78 100644 --- a/TAO/tao/AnyTypeCode/Value_TypeCode_Static.cpp +++ b/TAO/tao/AnyTypeCode/Value_TypeCode_Static.cpp @@ -87,7 +87,7 @@ TAO::TypeCode::Value<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Value_Field<char const *, CORBA::TypeCode_ptr const *> const *, - TAO::Null_RefCount_Policy>::tao_duplicate (void) + TAO::Null_RefCount_Policy>::tao_duplicate () { } @@ -96,7 +96,7 @@ TAO::TypeCode::Value<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Value_Field<char const *, CORBA::TypeCode_ptr const *> const *, - TAO::Null_RefCount_Policy>::tao_release (void) + TAO::Null_RefCount_Policy>::tao_release () { } @@ -224,7 +224,7 @@ TAO::TypeCode::Value<char const *, TAO::TypeCode::Value_Field<char const *, CORBA::TypeCode_ptr const *> const *, TAO::Null_RefCount_Policy>::get_compact_typecode_i ( - void) const + ) const { ACE_Array_Base<Value_Field<CORBA::String_var, CORBA::TypeCode_var> > tc_fields (this->nfields_); @@ -275,7 +275,7 @@ TAO::TypeCode::Value<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Value_Field<char const *, CORBA::TypeCode_ptr const *> const *, - TAO::Null_RefCount_Policy>::id_i (void) const + TAO::Null_RefCount_Policy>::id_i () const { // Ownership is retained by the TypeCode, as required by the C++ // mapping. @@ -287,7 +287,7 @@ TAO::TypeCode::Value<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Value_Field<char const *, CORBA::TypeCode_ptr const *> const *, - TAO::Null_RefCount_Policy>::name_i (void) const + TAO::Null_RefCount_Policy>::name_i () const { // Ownership is retained by the TypeCode, as required by the C++ // mapping. @@ -299,7 +299,7 @@ TAO::TypeCode::Value<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Value_Field<char const *, CORBA::TypeCode_ptr const *> const *, - TAO::Null_RefCount_Policy>::member_count_i (void) const + TAO::Null_RefCount_Policy>::member_count_i () const { return this->nfields_; } @@ -355,7 +355,7 @@ TAO::TypeCode::Value<char const *, CORBA::TypeCode_ptr const *, TAO::TypeCode::Value_Field<char const *, CORBA::TypeCode_ptr const *> const *, - TAO::Null_RefCount_Policy>::type_modifier_i (void) const + TAO::Null_RefCount_Policy>::type_modifier_i () const { return this->type_modifier_; } @@ -366,7 +366,7 @@ TAO::TypeCode::Value<char const *, TAO::TypeCode::Value_Field<char const *, CORBA::TypeCode_ptr const *> const *, TAO::Null_RefCount_Policy>::concrete_base_type_i ( - void) const + ) const { return CORBA::TypeCode::_duplicate ( diff --git a/TAO/tao/AnyTypeCode/Value_TypeCode_Static.h b/TAO/tao/AnyTypeCode/Value_TypeCode_Static.h index b159728edb8..e269498b648 100644 --- a/TAO/tao/AnyTypeCode/Value_TypeCode_Static.h +++ b/TAO/tao/AnyTypeCode/Value_TypeCode_Static.h @@ -79,8 +79,8 @@ namespace TAO */ //@{ virtual bool tao_marshal (TAO_OutputCDR & cdr, CORBA::ULong offset) const; - virtual void tao_duplicate (void); - virtual void tao_release (void); + virtual void tao_duplicate (); + virtual void tao_release (); //@} protected: @@ -95,15 +95,15 @@ namespace TAO //@{ virtual CORBA::Boolean equal_i (CORBA::TypeCode_ptr tc) const; virtual CORBA::Boolean equivalent_i (CORBA::TypeCode_ptr tc) const; - virtual CORBA::TypeCode_ptr get_compact_typecode_i (void) const; - virtual char const * id_i (void) const; - virtual char const * name_i (void) const; - virtual CORBA::ULong member_count_i (void) const; + virtual CORBA::TypeCode_ptr get_compact_typecode_i () const; + virtual char const * id_i () const; + virtual char const * name_i () const; + virtual CORBA::ULong member_count_i () const; virtual char const * member_name_i (CORBA::ULong index) const; virtual CORBA::TypeCode_ptr member_type_i (CORBA::ULong index) const; virtual CORBA::Visibility member_visibility_i (CORBA::ULong index) const; - virtual CORBA::ValueModifier type_modifier_i (void) const; - virtual CORBA::TypeCode_ptr concrete_base_type_i (void) const; + virtual CORBA::ValueModifier type_modifier_i () const; + virtual CORBA::TypeCode_ptr concrete_base_type_i () const; //@} private: diff --git a/TAO/tao/AnyTypeCode_Adapter.h b/TAO/tao/AnyTypeCode_Adapter.h index 395fdb7df83..e7e793c952c 100644 --- a/TAO/tao/AnyTypeCode_Adapter.h +++ b/TAO/tao/AnyTypeCode_Adapter.h @@ -62,7 +62,7 @@ class TAO_Export TAO_AnyTypeCode_Adapter : public ACE_Service_Object { public: - virtual ~TAO_AnyTypeCode_Adapter (void); + virtual ~TAO_AnyTypeCode_Adapter (); #define ANYTYPECODE__EXCEPTION_LIST \ TAO_SYSTEM_EXCEPTION (UNKNOWN) \ diff --git a/TAO/tao/Argument.h b/TAO/tao/Argument.h index 96b084c29b5..f47baa2a74f 100644 --- a/TAO/tao/Argument.h +++ b/TAO/tao/Argument.h @@ -51,7 +51,7 @@ namespace TAO public: /// Destructor. - virtual ~Argument (void); + virtual ~Argument (); /// Marshal the argument into the given CDR output stream. /** @@ -66,7 +66,7 @@ namespace TAO virtual CORBA::Boolean demarshal (TAO_InputCDR &); /// Template method to clone a TAO Argument - virtual Argument* clone (void); + virtual Argument* clone (); #if TAO_HAS_INTERCEPTORS == 1 @@ -86,7 +86,7 @@ namespace TAO virtual void interceptor_value (CORBA::Any *) const; /// Get the parameter mode of this argument - virtual CORBA::ParameterMode mode (void) const = 0; + virtual CORBA::ParameterMode mode () const = 0; //@} #endif /* TAO_HAS_INTERCEPTORS == 1 */ @@ -97,7 +97,7 @@ namespace TAO class TAO_Export InArgument : public Argument { public: - virtual CORBA::ParameterMode mode (void) const; + virtual CORBA::ParameterMode mode () const; }; #else typedef Argument InArgument; @@ -107,7 +107,7 @@ namespace TAO class TAO_Export InoutArgument : public Argument { public: - virtual CORBA::ParameterMode mode (void) const; + virtual CORBA::ParameterMode mode () const; }; #else typedef Argument InoutArgument; @@ -117,7 +117,7 @@ namespace TAO class TAO_Export OutArgument : public Argument { public: - virtual CORBA::ParameterMode mode (void) const; + virtual CORBA::ParameterMode mode () const; }; #else typedef Argument OutArgument; @@ -127,7 +127,7 @@ namespace TAO class TAO_Export RetArgument : public Argument { public: - virtual CORBA::ParameterMode mode (void) const; + virtual CORBA::ParameterMode mode () const; }; #else typedef Argument RetArgument; @@ -136,7 +136,7 @@ namespace TAO class TAO_Export Void_Return_Argument : public RetArgument { public: - virtual Argument* clone (void); + virtual Argument* clone (); }; } diff --git a/TAO/tao/Array_Traits_T.h b/TAO/tao/Array_Traits_T.h index 086cd3eacc1..33a79646a44 100644 --- a/TAO/tao/Array_Traits_T.h +++ b/TAO/tao/Array_Traits_T.h @@ -37,7 +37,7 @@ struct array_traits TAO::Array_Traits<forany_type>::free (value); } - inline static slice_type * alloc (void) + inline static slice_type * alloc () { return TAO::Array_Traits<forany_type>::alloc (); } diff --git a/TAO/tao/Array_VarOut_T.h b/TAO/tao/Array_VarOut_T.h index 294c0c21a37..78ac9ed7eff 100644 --- a/TAO/tao/Array_VarOut_T.h +++ b/TAO/tao/Array_VarOut_T.h @@ -49,10 +49,10 @@ public: typedef T_slice _slice_type; typedef TAG _tag_type; - TAO_Array_Forany_T (void); + TAO_Array_Forany_T (); TAO_Array_Forany_T (_slice_type *, CORBA::Boolean nocopy = false); TAO_Array_Forany_T (const TAO_Array_Forany_T<T,T_slice,TAG> &); - ~TAO_Array_Forany_T (void); + ~TAO_Array_Forany_T (); static void _tao_any_destructor (void *); @@ -72,14 +72,14 @@ public: typedef _slice_type *& _retn_arg_type; // in, inout, out, _retn - _in_type in (void) const; - _inout_type inout (void); - _out_type out (void); - _retn_type _retn (void); - _slice_type * ptr (void) const; - CORBA::Boolean nocopy (void) const; - - static _slice_type * tao_alloc (void); + _in_type in () const; + _inout_type inout (); + _out_type out (); + _retn_type _retn (); + _slice_type * ptr () const; + CORBA::Boolean nocopy () const; + + static _slice_type * tao_alloc (); private: typedef TAO_Array_Forany_T<T,T_slice,TAG> FORANY; _slice_type * ptr_; @@ -99,10 +99,10 @@ public: typedef T_slice const & _const_subscript_type; typedef T_slice & _subscript_type; - TAO_Array_Var_Base_T (void); + TAO_Array_Var_Base_T (); TAO_Array_Var_Base_T (_slice_type *); TAO_Array_Var_Base_T (const TAO_Array_Var_Base_T<T,T_slice,TAG> &); - ~TAO_Array_Var_Base_T (void); + ~TAO_Array_Var_Base_T (); _subscript_type operator[] (CORBA::ULong index); _const_subscript_type operator[] (CORBA::ULong index) const; @@ -114,13 +114,13 @@ public: typedef _slice_type *& _retn_arg_type; // in, inout, out, _retn - _in_type in (void) const; - _inout_type inout (void); - _retn_type _retn (void); - _retn_arg_type _retn_arg (void); + _in_type in () const; + _inout_type inout (); + _retn_type _retn (); + _retn_arg_type _retn_arg (); // TAO extension. - _retn_type ptr (void) const; + _retn_type ptr () const; protected: typedef TAO_Array_Forany_T<T,T_slice,TAG> FORANY; _slice_type * ptr_; @@ -139,7 +139,7 @@ public: typedef T_slice _slice_type; typedef T_slice *_out_type; - TAO_FixedArray_Var_T (void); + TAO_FixedArray_Var_T (); TAO_FixedArray_Var_T (_slice_type *); TAO_FixedArray_Var_T (const TAO_FixedArray_Var_T<T,T_slice,TAG> &); @@ -147,7 +147,7 @@ public: TAO_FixedArray_Var_T<T,T_slice,TAG> &operator= ( const TAO_FixedArray_Var_T<T,T_slice,TAG> &); - _out_type out (void); + _out_type out (); private: // Some compilers don't look into the base class when parsing @@ -168,7 +168,7 @@ public: typedef T_slice _slice_type; typedef T_slice *&_out_type; - TAO_VarArray_Var_T (void); + TAO_VarArray_Var_T (); TAO_VarArray_Var_T (_slice_type *); TAO_VarArray_Var_T (const TAO_VarArray_Var_T<T,T_slice,TAG> &); @@ -176,7 +176,7 @@ public: TAO_VarArray_Var_T<T,T_slice,TAG> &operator= ( const TAO_VarArray_Var_T<T,T_slice,TAG> &); - _out_type out (void); + _out_type out (); operator _slice_type *& (); @@ -208,7 +208,7 @@ public: TAO_Array_Out_T<T,T_var,T_slice,TAG> &operator= (_slice_type *); operator _slice_type *& (); - _slice_type *& ptr (void); + _slice_type *& ptr (); _slice_type & operator[] (CORBA::ULong index); const _slice_type & operator[] (CORBA::ULong index) const; diff --git a/TAO/tao/Asynch_Reply_Dispatcher_Base.h b/TAO/tao/Asynch_Reply_Dispatcher_Base.h index ca07c546f93..ada4e29eacb 100644 --- a/TAO/tao/Asynch_Reply_Dispatcher_Base.h +++ b/TAO/tao/Asynch_Reply_Dispatcher_Base.h @@ -70,11 +70,11 @@ public: * Why are we clumping everything in one method. Answer is we need * atomicity? */ - bool try_dispatch_reply (void); + bool try_dispatch_reply (); protected: /// Destructor. - virtual ~TAO_Asynch_Reply_Dispatcher_Base (void); + virtual ~TAO_Asynch_Reply_Dispatcher_Base (); private: void operator= (const TAO_Asynch_Reply_Dispatcher_Base &); diff --git a/TAO/tao/Basic_Argument_T.h b/TAO/tao/Basic_Argument_T.h index 8af4f039df8..806620dc950 100644 --- a/TAO/tao/Basic_Argument_T.h +++ b/TAO/tao/Basic_Argument_T.h @@ -39,7 +39,7 @@ namespace TAO #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S arg (void) const; + S arg () const; protected: S const & x_; @@ -58,9 +58,9 @@ namespace TAO { public: In_Basic_Clonable_Argument_T (S const & x); - virtual ~In_Basic_Clonable_Argument_T (void); + virtual ~In_Basic_Clonable_Argument_T (); - virtual Argument* clone (void); + virtual Argument* clone (); private: bool is_clone_; @@ -84,7 +84,7 @@ namespace TAO #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S & arg (void); + S & arg (); private: S & x_; @@ -107,7 +107,7 @@ namespace TAO #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S & arg (void); + S & arg (); private: S & x_; @@ -124,16 +124,16 @@ namespace TAO class Ret_Basic_Argument_T : public RetArgument { public: - Ret_Basic_Argument_T (void); + Ret_Basic_Argument_T (); virtual CORBA::Boolean demarshal (TAO_InputCDR &); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S & arg (void); + S & arg (); - S excp (void); - S retn (void); + S excp (); + S retn (); private: S x_; diff --git a/TAO/tao/Bind_Dispatcher_Guard.h b/TAO/tao/Bind_Dispatcher_Guard.h index 13ffed795ee..d1e26eedb8b 100644 --- a/TAO/tao/Bind_Dispatcher_Guard.h +++ b/TAO/tao/Bind_Dispatcher_Guard.h @@ -29,10 +29,10 @@ public: TAO_Reply_Dispatcher* rd, TAO_Transport_Mux_Strategy* tms); - ~TAO_Bind_Dispatcher_Guard (void); + ~TAO_Bind_Dispatcher_Guard (); /// Returns 0 if successful and non-zero otherwise. - int unbind_dispatcher (void); + int unbind_dispatcher (); /// State information enum TAO_Bind_Dispatcher_Status @@ -44,7 +44,7 @@ public: }; /// Get status - TAO_Bind_Dispatcher_Status status (void) const; + TAO_Bind_Dispatcher_Status status () const; /// Set status void status (TAO_Bind_Dispatcher_Status status); diff --git a/TAO/tao/Bind_Dispatcher_Guard.inl b/TAO/tao/Bind_Dispatcher_Guard.inl index 3068dfd7608..f38bc197f40 100644 --- a/TAO/tao/Bind_Dispatcher_Guard.inl +++ b/TAO/tao/Bind_Dispatcher_Guard.inl @@ -22,13 +22,13 @@ TAO_Bind_Dispatcher_Guard::status (TAO_Bind_Dispatcher_Status s) } ACE_INLINE TAO_Bind_Dispatcher_Guard::TAO_Bind_Dispatcher_Status -TAO_Bind_Dispatcher_Guard::status (void) const +TAO_Bind_Dispatcher_Guard::status () const { return this->status_; } ACE_INLINE int -TAO_Bind_Dispatcher_Guard::unbind_dispatcher (void) +TAO_Bind_Dispatcher_Guard::unbind_dispatcher () { int const retval = this->tms_->unbind_dispatcher (this->request_id_); diff --git a/TAO/tao/Bounded_Basic_String_Sequence_T.h b/TAO/tao/Bounded_Basic_String_Sequence_T.h index b3c667e962a..a249e9110ff 100644 --- a/TAO/tao/Bounded_Basic_String_Sequence_T.h +++ b/TAO/tao/Bounded_Basic_String_Sequence_T.h @@ -37,7 +37,7 @@ public: typedef details::generic_sequence<value_type, allocation_traits, element_traits> implementation_type; // @copydoc TAO::details::generic_sequence::generic_sequence() - inline bounded_basic_string_sequence(void) + inline bounded_basic_string_sequence() : impl_() {} // @copydoc TAO::details::generic_sequence::generic_sequence() diff --git a/TAO/tao/Buffer_Allocator_T.h b/TAO/tao/Buffer_Allocator_T.h index bed4622609c..723de777a9e 100644 --- a/TAO/tao/Buffer_Allocator_T.h +++ b/TAO/tao/Buffer_Allocator_T.h @@ -39,7 +39,7 @@ namespace TAO typedef alloc_type ALLOC_TYPE; TAO_Buffer_Allocator (alloc_type *allocator); - virtual handler_type *allocate (void); + virtual handler_type *allocate (); virtual void release (handler_type *ptr); private: alloc_type* allocator_; diff --git a/TAO/tao/CDR.h b/TAO/tao/CDR.h index f7406c6000d..1b1168c5cf2 100644 --- a/TAO/tao/CDR.h +++ b/TAO/tao/CDR.h @@ -163,7 +163,7 @@ public: ACE_CDR::Octet minor_version = TAO_DEF_GIOP_MINOR); /// Destructor. - ~TAO_OutputCDR (void); + ~TAO_OutputCDR (); // @todo do we want a special method to write an array of // strings and wstrings? @@ -190,7 +190,7 @@ public: ACE_CDR::ULong pending_length); /// Are there more data fragments to come? - bool more_fragments (void) const; + bool more_fragments () const; /// Specify whether there are more data fragments to come. void more_fragments (bool more); @@ -202,16 +202,16 @@ public: ACE_Time_Value * timeout); /// Fragmented message request ID. - CORBA::ULong request_id (void) const; + CORBA::ULong request_id () const; /// Stub object associated with the request. - TAO_Stub * stub (void) const; + TAO_Stub * stub () const; /// Message semantics (twoway, oneway, reply) - TAO_Message_Semantics message_semantics (void) const; + TAO_Message_Semantics message_semantics () const; /// Maximum time to wait for outgoing message to be sent. - ACE_Time_Value * timeout (void) const; + ACE_Time_Value * timeout () const; //@} /// These methods are used by valuetype indirection support. @@ -240,9 +240,10 @@ public: int offset (char* pos); private: - // disallow copying... - TAO_OutputCDR (const TAO_OutputCDR& rhs); - TAO_OutputCDR& operator= (const TAO_OutputCDR& rhs); + TAO_OutputCDR (const TAO_OutputCDR&rhs) = delete; + TAO_OutputCDR& operator= (const TAO_OutputCDR&) = delete; + TAO_OutputCDR (TAO_OutputCDR&&) = delete; + TAO_OutputCDR& operator= (TAO_OutputCDR&&) = delete; private: /** @@ -408,17 +409,15 @@ public: TAO_InputCDR (ACE_InputCDR::Transfer_Contents rhs, TAO_ORB_Core* orb_core = 0); -#if defined (ACE_HAS_CPP11) TAO_InputCDR& operator= (const TAO_InputCDR&) = default; -#endif /* ACE_HAS_CPP11 */ /// Destructor - virtual ~TAO_InputCDR (void); + virtual ~TAO_InputCDR (); // = TAO specific methods. /// Accessor - TAO_ORB_Core *orb_core (void) const; + TAO_ORB_Core *orb_core () const; ACE_Message_Block::Message_Flags clr_mb_flags( ACE_Message_Block::Message_Flags less_flags ); diff --git a/TAO/tao/CDR.inl b/TAO/tao/CDR.inl index c4fb156fcc5..08d0efeae3e 100644 --- a/TAO/tao/CDR.inl +++ b/TAO/tao/CDR.inl @@ -454,14 +454,10 @@ ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &os, ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &os, const std::string &x) { -#if defined (ACE_HAS_CPP11) return os.fragment_stream (ACE_CDR::OCTET_ALIGN, sizeof (char)) && static_cast<ACE_OutputCDR &> (os) << x; -#else - return os << x.c_str (); -#endif } ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &os, @@ -479,16 +475,12 @@ ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &os, ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &os, const std::wstring &x) { -#if defined (ACE_HAS_CPP11) return os.fragment_stream ((sizeof (CORBA::WChar) == 2 ? ACE_CDR::SHORT_ALIGN : ACE_CDR::LONG_ALIGN), sizeof (CORBA::WChar)) && static_cast<ACE_OutputCDR &> (os) << x; -#else - return os << x.c_str (); -#endif } ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &os, diff --git a/TAO/tao/CORBA_String.h b/TAO/tao/CORBA_String.h index 81dd555f150..5e308bc9ad2 100644 --- a/TAO/tao/CORBA_String.h +++ b/TAO/tao/CORBA_String.h @@ -52,7 +52,7 @@ namespace TAO typedef TAO::details::string_traits_base <character_type> s_traits; /// Default constructor. - inline String_var (void) : ptr_ (0) + inline String_var () : ptr_ (0) { } @@ -72,7 +72,7 @@ namespace TAO } /// Destructor. - inline ~String_var (void) + inline ~String_var () { s_traits::release (this->ptr_); } @@ -128,19 +128,19 @@ namespace TAO } /// For in parameter. - inline const character_type *in (void) const + inline const character_type *in () const { return this->ptr_; } /// For inout parameter. - inline character_type *&inout (void) + inline character_type *&inout () { return this->ptr_; } /// For out parameter. - inline character_type *&out (void) + inline character_type *&out () { s_traits::release (this->ptr_); this->ptr_ = 0; @@ -148,7 +148,7 @@ namespace TAO } /// For string of return type. - inline character_type *_retn (void) + inline character_type *_retn () { character_type *temp = this->ptr_; this->ptr_ = 0; @@ -225,7 +225,7 @@ namespace TAO } /// Return underlying instance. - inline character_type *&ptr (void) + inline character_type *&ptr () { return this->ptr_; } diff --git a/TAO/tao/Cache_Entries_T.cpp b/TAO/tao/Cache_Entries_T.cpp index e047a890c89..2b3bd726512 100644 --- a/TAO/tao/Cache_Entries_T.cpp +++ b/TAO/tao/Cache_Entries_T.cpp @@ -25,7 +25,7 @@ namespace TAO } template <typename TRANSPORT_TYPE> - Cache_IntId_T<TRANSPORT_TYPE>::~Cache_IntId_T (void) + Cache_IntId_T<TRANSPORT_TYPE>::~Cache_IntId_T () { if (this->transport_) this->transport_->remove_reference (); diff --git a/TAO/tao/Cache_Entries_T.h b/TAO/tao/Cache_Entries_T.h index a4762e34cc8..ed391738a38 100644 --- a/TAO/tao/Cache_Entries_T.h +++ b/TAO/tao/Cache_Entries_T.h @@ -65,7 +65,7 @@ namespace TAO typedef TRANSPORT_TYPE transport_type; /// Constructor. - Cache_IntId_T (void); + Cache_IntId_T (); /// Constructor. Cache_IntId_T (transport_type *transport); @@ -74,7 +74,7 @@ namespace TAO Cache_IntId_T (const Cache_IntId_T & rhs); /// Destructor. - ~Cache_IntId_T (void); + ~Cache_IntId_T (); /// Assignment operator (does copy memory). Cache_IntId_T& operator= (const Cache_IntId_T &rhs); @@ -86,16 +86,16 @@ namespace TAO bool operator!= (const Cache_IntId_T &rhs) const; /// Return the underlying transport - transport_type *transport (void); + transport_type *transport (); /// Return the underlying transport - const transport_type *transport (void) const; + const transport_type *transport () const; /// Set recycle_state. void recycle_state (Cache_Entries_State new_state); /// Get recycle_state. - Cache_Entries_State recycle_state (void) const; + Cache_Entries_State recycle_state () const; /// Relinquish ownership of the TAO_Transport object associated with /// this Cache_IntId_T. @@ -106,10 +106,10 @@ namespace TAO * This method really only exists to get around inadequacies * in the Transport_Cache_Map_Manager interface. */ - transport_type *relinquish_transport (void); + transport_type *relinquish_transport (); /// Get the connected flag - bool is_connected (void) const; + bool is_connected () const; /// Set the connected flag void is_connected (bool connected); @@ -144,7 +144,7 @@ namespace TAO typedef TRANSPORT_DESCRIPTOR_TYPE transport_descriptor_type; /// Constructor. - Cache_ExtId_T (void); + Cache_ExtId_T (); /// Constructor. explicit Cache_ExtId_T (transport_descriptor_type *prop); @@ -153,7 +153,7 @@ namespace TAO Cache_ExtId_T (const Cache_ExtId_T & rhs); /// Destructor. - ~Cache_ExtId_T (void); + ~Cache_ExtId_T (); // = Assignment and comparison operators. /// Assignment operator (does copy memory). @@ -167,24 +167,24 @@ namespace TAO /// hash function is required in order for this class to be usable by /// ACE_Hash_Map_Manager_Ex. - u_long hash (void) const; + u_long hash () const; /// Make a deep copy of the underlying pointer - void duplicate (void); + void duplicate (); /// Return the index value - CORBA::ULong index (void) const; + CORBA::ULong index () const; /// Set the index value. This calls should not be used by any users /// but for the TAO_Transport_Cache_Manager class. void index (CORBA::ULong index); /// Increment the index value - void incr_index (void); + void incr_index (); // = Accessors /// Get the underlying the property pointer - transport_descriptor_type *property (void) const; + transport_descriptor_type *property () const; private: /// A property object that we represent. diff --git a/TAO/tao/Cache_Entries_T.inl b/TAO/tao/Cache_Entries_T.inl index 1b4121eef81..411c7d0e0ff 100644 --- a/TAO/tao/Cache_Entries_T.inl +++ b/TAO/tao/Cache_Entries_T.inl @@ -7,7 +7,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL namespace TAO { template <typename TRANSPORT_TYPE> ACE_INLINE - Cache_IntId_T<TRANSPORT_TYPE>::Cache_IntId_T (void) + Cache_IntId_T<TRANSPORT_TYPE>::Cache_IntId_T () : transport_ (0), recycle_state_ (ENTRY_UNKNOWN), is_connected_ (false) @@ -37,21 +37,21 @@ namespace TAO template <typename TRANSPORT_TYPE> ACE_INLINE typename Cache_IntId_T<TRANSPORT_TYPE>::transport_type * - Cache_IntId_T<TRANSPORT_TYPE>::transport (void) + Cache_IntId_T<TRANSPORT_TYPE>::transport () { return this->transport_; } template <typename TRANSPORT_TYPE> ACE_INLINE const typename Cache_IntId_T<TRANSPORT_TYPE>::transport_type * - Cache_IntId_T<TRANSPORT_TYPE>::transport (void) const + Cache_IntId_T<TRANSPORT_TYPE>::transport () const { return this->transport_; } template <typename TRANSPORT_TYPE> ACE_INLINE bool - Cache_IntId_T<TRANSPORT_TYPE>::is_connected (void) const + Cache_IntId_T<TRANSPORT_TYPE>::is_connected () const { return this->is_connected_; } @@ -64,14 +64,14 @@ namespace TAO } template <typename TRANSPORT_TYPE> ACE_INLINE Cache_Entries_State - Cache_IntId_T<TRANSPORT_TYPE>::recycle_state (void) const + Cache_IntId_T<TRANSPORT_TYPE>::recycle_state () const { return this->recycle_state_; } template <typename TRANSPORT_TYPE> ACE_INLINE typename Cache_IntId_T<TRANSPORT_TYPE>::transport_type * - Cache_IntId_T<TRANSPORT_TYPE>::relinquish_transport (void) + Cache_IntId_T<TRANSPORT_TYPE>::relinquish_transport () { // Yield ownership of the TAO_Transport object. transport_type *val = this->transport_; @@ -98,7 +98,7 @@ namespace TAO /*******************************************************/ template <typename TRANSPORT_DESCRIPTOR_TYPE> ACE_INLINE - Cache_ExtId_T<TRANSPORT_DESCRIPTOR_TYPE>::Cache_ExtId_T (void) + Cache_ExtId_T<TRANSPORT_DESCRIPTOR_TYPE>::Cache_ExtId_T () : transport_property_ (0), is_delete_ (false), index_ (0) @@ -116,7 +116,7 @@ namespace TAO } template <typename TRANSPORT_DESCRIPTOR_TYPE> ACE_INLINE - Cache_ExtId_T<TRANSPORT_DESCRIPTOR_TYPE>::~Cache_ExtId_T (void) + Cache_ExtId_T<TRANSPORT_DESCRIPTOR_TYPE>::~Cache_ExtId_T () { if (this->is_delete_) delete this->transport_property_; @@ -173,13 +173,13 @@ namespace TAO } template <typename TRANSPORT_DESCRIPTOR_TYPE> ACE_INLINE u_long - Cache_ExtId_T<TRANSPORT_DESCRIPTOR_TYPE>::hash (void) const + Cache_ExtId_T<TRANSPORT_DESCRIPTOR_TYPE>::hash () const { return (this->transport_property_->hash () + this->index_); } template <typename TRANSPORT_DESCRIPTOR_TYPE> ACE_INLINE void - Cache_ExtId_T<TRANSPORT_DESCRIPTOR_TYPE>::duplicate (void) + Cache_ExtId_T<TRANSPORT_DESCRIPTOR_TYPE>::duplicate () { transport_descriptor_type *prop = 0; @@ -199,7 +199,7 @@ namespace TAO template <typename TRANSPORT_DESCRIPTOR_TYPE> ACE_INLINE CORBA::ULong - Cache_ExtId_T<TRANSPORT_DESCRIPTOR_TYPE>::index (void) const + Cache_ExtId_T<TRANSPORT_DESCRIPTOR_TYPE>::index () const { return this->index_; } @@ -212,14 +212,14 @@ namespace TAO } template <typename TRANSPORT_DESCRIPTOR_TYPE> ACE_INLINE void - Cache_ExtId_T<TRANSPORT_DESCRIPTOR_TYPE>::incr_index (void) + Cache_ExtId_T<TRANSPORT_DESCRIPTOR_TYPE>::incr_index () { ++this->index_; } template <typename TRANSPORT_DESCRIPTOR_TYPE> ACE_INLINE typename Cache_ExtId_T<TRANSPORT_DESCRIPTOR_TYPE>::transport_descriptor_type * - Cache_ExtId_T<TRANSPORT_DESCRIPTOR_TYPE>::property (void) const + Cache_ExtId_T<TRANSPORT_DESCRIPTOR_TYPE>::property () const { return this->transport_property_; } diff --git a/TAO/tao/Cleanup_Func_Registry.h b/TAO/tao/Cleanup_Func_Registry.h index f3b02cd4b4c..0970e3a39cd 100644 --- a/TAO/tao/Cleanup_Func_Registry.h +++ b/TAO/tao/Cleanup_Func_Registry.h @@ -40,10 +40,10 @@ class TAO_Export TAO_Cleanup_Func_Registry public: /// Constructor. - TAO_Cleanup_Func_Registry (void); + TAO_Cleanup_Func_Registry (); /// Return the number of registered cleanup functions. - size_t size (void) const; + size_t size () const; protected: /// Register a cleanup function. The number of slot the cleanup diff --git a/TAO/tao/ClientRequestInterceptor_Adapter.h b/TAO/tao/ClientRequestInterceptor_Adapter.h index 3ada82f83da..67f3e884033 100644 --- a/TAO/tao/ClientRequestInterceptor_Adapter.h +++ b/TAO/tao/ClientRequestInterceptor_Adapter.h @@ -63,7 +63,7 @@ namespace TAO : public RequestInterceptor_Adapter { public: - virtual ~ClientRequestInterceptor_Adapter (void); + virtual ~ClientRequestInterceptor_Adapter (); /** * @name PortableInterceptor Client Side Interception Points diff --git a/TAO/tao/ClientRequestInterceptor_Adapter_Factory.h b/TAO/tao/ClientRequestInterceptor_Adapter_Factory.h index 0ca15b73e70..0f514b2e3d1 100644 --- a/TAO/tao/ClientRequestInterceptor_Adapter_Factory.h +++ b/TAO/tao/ClientRequestInterceptor_Adapter_Factory.h @@ -40,9 +40,9 @@ class TAO_Export TAO_ClientRequestInterceptor_Adapter_Factory : public ACE_Service_Object { public: - virtual ~TAO_ClientRequestInterceptor_Adapter_Factory (void); + virtual ~TAO_ClientRequestInterceptor_Adapter_Factory (); - virtual TAO::ClientRequestInterceptor_Adapter *create (void) = 0; + virtual TAO::ClientRequestInterceptor_Adapter *create () = 0; }; TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/tao/Client_Strategy_Factory.h b/TAO/tao/Client_Strategy_Factory.h index 6ff11c9df61..e59d0ee66ee 100644 --- a/TAO/tao/Client_Strategy_Factory.h +++ b/TAO/tao/Client_Strategy_Factory.h @@ -58,16 +58,16 @@ class TAO_Export TAO_Client_Strategy_Factory : public ACE_Service_Object public: /// Destructor - virtual ~TAO_Client_Strategy_Factory (void); + virtual ~TAO_Client_Strategy_Factory (); /// Create the correct client request muxing strategy. virtual TAO_Transport_Mux_Strategy *create_transport_mux_strategy (TAO_Transport *transport) = 0; /// Create the correct lock for request muxing strategy. - virtual ACE_Lock *create_transport_mux_strategy_lock (void) = 0; + virtual ACE_Lock *create_transport_mux_strategy_lock () = 0; /// Return the size of the reply dispatcher table - virtual int reply_dispatcher_table_size (void) const = 0; + virtual int reply_dispatcher_table_size () const = 0; /// Create the correct client wait_for_reply strategy. virtual TAO_Wait_Strategy *create_wait_strategy (TAO_Transport *transport) = 0; @@ -83,20 +83,20 @@ public: }; /// Return the selected connection strategy option. - virtual Connect_Strategy connect_strategy (void) const = 0; + virtual Connect_Strategy connect_strategy () const = 0; /// Does the client allow any form of callback? - virtual int allow_callback (void) = 0; + virtual int allow_callback () = 0; /// Cleanup options for wait strategy. /** * Only applicable to RW wait strategy */ - virtual bool use_cleanup_options (void) const = 0; + virtual bool use_cleanup_options () const = 0; /// Return the parameters used to optionally retry invocation /// after an exception occurs. - virtual const TAO::Invocation_Retry_Params &invocation_retry_params (void) const = 0; + virtual const TAO::Invocation_Retry_Params &invocation_retry_params () const = 0; /// Return the value to be used as the default sync scope for the ORB virtual Messaging::SyncScope sync_scope () const = 0; diff --git a/TAO/tao/CodecFactory/CodecFactory.h b/TAO/tao/CodecFactory/CodecFactory.h index 80e79b20b7c..36729d3dcb3 100644 --- a/TAO/tao/CodecFactory/CodecFactory.h +++ b/TAO/tao/CodecFactory/CodecFactory.h @@ -38,7 +38,7 @@ public: ACE_TCHAR *argv []); /// Used to force the initialization of the ORB code. - static int Initializer (void); + static int Initializer (); }; static int diff --git a/TAO/tao/Codeset/UTF16_BOM_Translator.cpp b/TAO/tao/Codeset/UTF16_BOM_Translator.cpp index 0d0169cdd11..db3df08c895 100644 --- a/TAO/tao/Codeset/UTF16_BOM_Translator.cpp +++ b/TAO/tao/Codeset/UTF16_BOM_Translator.cpp @@ -170,7 +170,6 @@ ACE_CDR::Boolean TAO_UTF16_BOM_Translator::read_wstring (ACE_InputCDR &cdr, std::wstring &x) { -#if defined (ACE_HAS_CPP11) ACE_CDR::ULong len; if (!this->read_4 (cdr, &len)) return false; @@ -227,9 +226,6 @@ TAO_UTF16_BOM_Translator::read_wstring (ACE_InputCDR &cdr, } x.clear (); return false; -#else - return this->ACE_WChar_Codeset_Translator::read_wstring (cdr, x); -#endif } #endif diff --git a/TAO/tao/Codeset/UTF8_Latin1_Translator.cpp b/TAO/tao/Codeset/UTF8_Latin1_Translator.cpp index 6da6df8f67a..44f03eb740c 100644 --- a/TAO/tao/Codeset/UTF8_Latin1_Translator.cpp +++ b/TAO/tao/Codeset/UTF8_Latin1_Translator.cpp @@ -121,7 +121,6 @@ ACE_CDR::Boolean TAO_UTF8_Latin1_Translator::read_string (ACE_InputCDR &cdr, std::string &x) { -#if defined (ACE_HAS_CPP11) ACE_CDR::ULong len; if (!cdr.read_ulong (len)) return false; @@ -161,9 +160,6 @@ TAO_UTF8_Latin1_Translator::read_string (ACE_InputCDR &cdr, x.clear (); return false; -#else - return this->ACE_Char_Codeset_Translator::read_string (cdr, x); -#endif } ACE_CDR::Boolean diff --git a/TAO/tao/Condition.h b/TAO/tao/Condition.h index 0d7a1fd63c4..0b8c59e41b5 100644 --- a/TAO/tao/Condition.h +++ b/TAO/tao/Condition.h @@ -51,10 +51,10 @@ public: /// A default constructor. Since no lock is provided by the user, /// one will be created internally. - TAO_Condition (void); + TAO_Condition (); /// Implicitly destroy the condition variable. - ~TAO_Condition (void); + ~TAO_Condition (); // = Lock accessors. /** @@ -66,7 +66,7 @@ public: int wait (const ACE_Time_Value *abstime); /// Block on condition. - int wait (void); + int wait (); /** * Block on condition or until absolute time-of-day has passed. If @@ -79,17 +79,17 @@ public: int wait (MUTEX &mutex, const ACE_Time_Value *abstime = 0); /// Signal one waiting thread. - int signal (void); + int signal (); /// Signal *all* waiting threads. - int broadcast (void); + int broadcast (); // = Utility methods. /// Explicitly destroy the condition variable. - int remove (void); + int remove (); /// Returns a reference to the underlying mutex_; - MUTEX *mutex (void); + MUTEX *mutex (); private: ACE_UNIMPLEMENTED_FUNC (TAO_Condition (const TAO_Condition<MUTEX> &)) diff --git a/TAO/tao/Connection_Purging_Strategy.h b/TAO/tao/Connection_Purging_Strategy.h index dc790a99e80..845b8222ffb 100644 --- a/TAO/tao/Connection_Purging_Strategy.h +++ b/TAO/tao/Connection_Purging_Strategy.h @@ -42,10 +42,10 @@ public: TAO_Connection_Purging_Strategy (int cache_maximum); /// The destructor - virtual ~TAO_Connection_Purging_Strategy (void); + virtual ~TAO_Connection_Purging_Strategy (); /// Return the maximum number of cache entries - virtual int cache_maximum (void) const; + virtual int cache_maximum () const; /// Sub-classes must implement these methods virtual void update_item (TAO_Transport& transport) = 0; diff --git a/TAO/tao/Connector_Registry.cpp b/TAO/tao/Connector_Registry.cpp index d093150da0f..6de1485a595 100644 --- a/TAO/tao/Connector_Registry.cpp +++ b/TAO/tao/Connector_Registry.cpp @@ -64,11 +64,7 @@ TAO_Connector_Registry::open (TAO_ORB_Core *orb_core) factory != end; ++factory) { -#if defined (ACE_HAS_CPP11) std::unique_ptr <TAO_Connector> connector ((*factory)->factory ()->make_connector ()); -#else - auto_ptr <TAO_Connector> connector ((*factory)->factory ()->make_connector ()); -#endif /* ACE_HAS_CPP11 */ if (connector.get ()) { diff --git a/TAO/tao/Connector_Registry.h b/TAO/tao/Connector_Registry.h index f9ff5707a93..6a644e300f8 100644 --- a/TAO/tao/Connector_Registry.h +++ b/TAO/tao/Connector_Registry.h @@ -81,9 +81,10 @@ public: TAO_ConnectorSetIterator end (void) const; private: - // Disallow copying and assignment. - TAO_Connector_Registry (const TAO_Connector_Registry&); - void operator= (const TAO_Connector_Registry&); + TAO_Connector_Registry (const TAO_Connector_Registry&) = delete; + void operator= (const TAO_Connector_Registry&) = delete; + TAO_Connector_Registry (TAO_Connector_Registry&&) = delete; + void operator= (TAO_Connector_Registry&&) = delete; private: /// List of connectors that are currently open. diff --git a/TAO/tao/DynamicAny/DynAnyFactory.cpp b/TAO/tao/DynamicAny/DynAnyFactory.cpp index c741c9d4f56..eb03d1253a7 100644 --- a/TAO/tao/DynamicAny/DynAnyFactory.cpp +++ b/TAO/tao/DynamicAny/DynAnyFactory.cpp @@ -24,7 +24,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL // Constructor from typecode -TAO_DynAnyFactory::TAO_DynAnyFactory (void) +TAO_DynAnyFactory::TAO_DynAnyFactory () { } diff --git a/TAO/tao/DynamicAny/DynAnyFactory.h b/TAO/tao/DynamicAny/DynAnyFactory.h index 22c902b6f5d..08864b9686e 100644 --- a/TAO/tao/DynamicAny/DynAnyFactory.h +++ b/TAO/tao/DynamicAny/DynAnyFactory.h @@ -39,7 +39,7 @@ class TAO_DynamicAny_Export TAO_DynAnyFactory { public: /// Constructor. - TAO_DynAnyFactory (void); + TAO_DynAnyFactory (); // = The DynamicAnyFactory methods. virtual DynamicAny::DynAny_ptr create_dyn_any (const CORBA::Any & value); diff --git a/TAO/tao/DynamicAny/DynAny_i.cpp b/TAO/tao/DynamicAny/DynAny_i.cpp index bdca250de2c..3506b030283 100644 --- a/TAO/tao/DynamicAny/DynAny_i.cpp +++ b/TAO/tao/DynamicAny/DynAny_i.cpp @@ -20,7 +20,7 @@ TAO_DynAny_i::TAO_DynAny_i (CORBA::Boolean allow_truncation) { } -TAO_DynAny_i::~TAO_DynAny_i (void) +TAO_DynAny_i::~TAO_DynAny_i () { } @@ -165,7 +165,7 @@ TAO_DynAny_i::set_to_default_value (CORBA::TypeCode_ptr tc) } void -TAO_DynAny_i::init_common (void) +TAO_DynAny_i::init_common () { this->ref_to_component_ = false; this->container_is_destroying_ = false; @@ -236,7 +236,7 @@ TAO_DynAny_i::from_any (const CORBA::Any &any) } CORBA::Any_ptr -TAO_DynAny_i::to_any (void) +TAO_DynAny_i::to_any () { if (this->destroyed_) { @@ -794,7 +794,7 @@ TAO_DynAny_i::equal (DynamicAny::DynAny_ptr rhs) } void -TAO_DynAny_i::destroy (void) +TAO_DynAny_i::destroy () { if (this->destroyed_) { @@ -809,7 +809,7 @@ TAO_DynAny_i::destroy (void) DynamicAny::DynAny_ptr -TAO_DynAny_i::current_component (void) +TAO_DynAny_i::current_component () { if (this->destroyed_) { diff --git a/TAO/tao/DynamicAny/DynAny_i.h b/TAO/tao/DynamicAny/DynAny_i.h index 2488649d5b4..5530cf49d8e 100644 --- a/TAO/tao/DynamicAny/DynAny_i.h +++ b/TAO/tao/DynamicAny/DynAny_i.h @@ -43,7 +43,7 @@ public: TAO_DynAny_i (CORBA::Boolean allow_truncation=true); /// Destructor. - ~TAO_DynAny_i (void); + ~TAO_DynAny_i (); /// Initialize using just a TypeCode void init (CORBA::TypeCode_ptr tc); @@ -58,13 +58,13 @@ public: virtual void from_any (const CORBA::Any & value); - virtual CORBA::Any * to_any (void); + virtual CORBA::Any * to_any (); virtual CORBA::Boolean equal (DynamicAny::DynAny_ptr dyn_any); - virtual void destroy (void); + virtual void destroy (); - virtual DynamicAny::DynAny_ptr current_component (void); + virtual DynamicAny::DynAny_ptr current_component (); private: /// Check if the typecode is acceptable. @@ -74,7 +74,7 @@ private: void set_to_default_value (CORBA::TypeCode_ptr tc); /// Called by both versions of init(). - void init_common (void); + void init_common (); // Use copy() or assign() instead of these. TAO_DynAny_i (const TAO_DynAny_i &src); diff --git a/TAO/tao/DynamicAny/DynArray_i.cpp b/TAO/tao/DynamicAny/DynArray_i.cpp index c70f37b1763..574102cc3b2 100644 --- a/TAO/tao/DynamicAny/DynArray_i.cpp +++ b/TAO/tao/DynamicAny/DynArray_i.cpp @@ -16,12 +16,12 @@ TAO_DynArray_i::TAO_DynArray_i (CORBA::Boolean allow_truncation) { } -TAO_DynArray_i::~TAO_DynArray_i (void) +TAO_DynArray_i::~TAO_DynArray_i () { } void -TAO_DynArray_i::init_common (void) +TAO_DynArray_i::init_common () { this->ref_to_component_ = false; this->container_is_destroying_ = false; @@ -131,7 +131,7 @@ TAO_DynArray_i::init (CORBA::TypeCode_ptr tc) } CORBA::TypeCode_ptr -TAO_DynArray_i::get_element_type (void) +TAO_DynArray_i::get_element_type () { CORBA::TypeCode_var element_type = CORBA::TypeCode::_duplicate (this->type_.in ()); @@ -182,7 +182,7 @@ TAO_DynArray_i::_narrow (CORBA::Object_ptr _tao_objref) // **************************************************************** DynamicAny::AnySeq * -TAO_DynArray_i::get_elements (void) +TAO_DynArray_i::get_elements () { if (this->destroyed_) { @@ -255,7 +255,7 @@ TAO_DynArray_i::set_elements (const DynamicAny::AnySeq & value) } DynamicAny::DynAnySeq * -TAO_DynArray_i::get_elements_as_dyn_any (void) +TAO_DynArray_i::get_elements_as_dyn_any () { if (this->destroyed_) { @@ -401,7 +401,7 @@ TAO_DynArray_i::from_any (const CORBA::Any& any) } CORBA::Any_ptr -TAO_DynArray_i::to_any (void) +TAO_DynArray_i::to_any () { if (this->destroyed_) { @@ -501,7 +501,7 @@ TAO_DynArray_i::equal (DynamicAny::DynAny_ptr rhs) } void -TAO_DynArray_i::destroy (void) +TAO_DynArray_i::destroy () { if (this->destroyed_) { @@ -523,7 +523,7 @@ TAO_DynArray_i::destroy (void) } DynamicAny::DynAny_ptr -TAO_DynArray_i::current_component (void) +TAO_DynArray_i::current_component () { if (this->destroyed_) { diff --git a/TAO/tao/DynamicAny/DynArray_i.h b/TAO/tao/DynamicAny/DynArray_i.h index 6a512602212..01cb6eb8447 100644 --- a/TAO/tao/DynamicAny/DynArray_i.h +++ b/TAO/tao/DynamicAny/DynArray_i.h @@ -45,7 +45,7 @@ public: TAO_DynArray_i (CORBA::Boolean allow_truncation=true); /// Destructor. - ~TAO_DynArray_i (void); + ~TAO_DynArray_i (); /// Initialize using just a TypeCode. void init (CORBA::TypeCode_ptr tc); @@ -58,11 +58,11 @@ public: // = Functions specific to DynArray. - virtual DynamicAny::AnySeq * get_elements (void); + virtual DynamicAny::AnySeq * get_elements (); virtual void set_elements (const DynamicAny::AnySeq & value); - virtual DynamicAny::DynAnySeq * get_elements_as_dyn_any (void); + virtual DynamicAny::DynAnySeq * get_elements_as_dyn_any (); virtual void set_elements_as_dyn_any (const DynamicAny::DynAnySeq & value); @@ -70,23 +70,23 @@ public: virtual void from_any (const CORBA::Any & value); - virtual CORBA::Any * to_any (void); + virtual CORBA::Any * to_any (); virtual CORBA::Boolean equal (DynamicAny::DynAny_ptr dyn_any); - virtual void destroy (void); + virtual void destroy (); - virtual DynamicAny::DynAny_ptr current_component (void); + virtual DynamicAny::DynAny_ptr current_component (); private: /// Returns the type of elements contained in the array. - CORBA::TypeCode_ptr get_element_type (void); + CORBA::TypeCode_ptr get_element_type (); /// Gets the length of the array from the typecode. CORBA::ULong get_tc_length (CORBA::TypeCode_ptr tc); /// Called by both versions of init(). - void init_common (void); + void init_common (); // Use copy() or assign() instead of these. TAO_DynArray_i (const TAO_DynArray_i &src); diff --git a/TAO/tao/DynamicAny/DynCommon.cpp b/TAO/tao/DynamicAny/DynCommon.cpp index 530d84b8426..d101bd51339 100644 --- a/TAO/tao/DynamicAny/DynCommon.cpp +++ b/TAO/tao/DynamicAny/DynCommon.cpp @@ -34,12 +34,12 @@ TAO_DynCommon::TAO_DynCommon (CORBA::Boolean allow_truncation) { } -TAO_DynCommon::~TAO_DynCommon (void) +TAO_DynCommon::~TAO_DynCommon () { } CORBA::TypeCode_ptr -TAO_DynCommon::type (void) +TAO_DynCommon::type () { if (this->destroyed_) { @@ -395,61 +395,61 @@ TAO_DynCommon::insert_val (CORBA::ValueBase *value) // **************************************************************** CORBA::Boolean -TAO_DynCommon::get_boolean (void) +TAO_DynCommon::get_boolean () { return TAO::DynAnyBasicTypeUtils<CORBA::Boolean>::get_value (this); } CORBA::Octet -TAO_DynCommon::get_octet (void) +TAO_DynCommon::get_octet () { return TAO::DynAnyBasicTypeUtils<CORBA::Octet>::get_value (this); } CORBA::Char -TAO_DynCommon::get_char (void) +TAO_DynCommon::get_char () { return TAO::DynAnyBasicTypeUtils<CORBA::Char>::get_value (this); } CORBA::Short -TAO_DynCommon::get_short (void) +TAO_DynCommon::get_short () { return TAO::DynAnyBasicTypeUtils<CORBA::Short>::get_value (this); } CORBA::UShort -TAO_DynCommon::get_ushort (void) +TAO_DynCommon::get_ushort () { return TAO::DynAnyBasicTypeUtils<CORBA::UShort>::get_value (this); } CORBA::Long -TAO_DynCommon::get_long (void) +TAO_DynCommon::get_long () { return TAO::DynAnyBasicTypeUtils<CORBA::Long>::get_value (this); } CORBA::ULong -TAO_DynCommon::get_ulong (void) +TAO_DynCommon::get_ulong () { return TAO::DynAnyBasicTypeUtils<CORBA::ULong>::get_value (this); } CORBA::Float -TAO_DynCommon::get_float (void) +TAO_DynCommon::get_float () { return TAO::DynAnyBasicTypeUtils<CORBA::Float>::get_value (this); } CORBA::Double -TAO_DynCommon::get_double (void) +TAO_DynCommon::get_double () { return TAO::DynAnyBasicTypeUtils<CORBA::Double>::get_value (this); } char * -TAO_DynCommon::get_string (void) +TAO_DynCommon::get_string () { if (this->destroyed_) { @@ -493,7 +493,7 @@ TAO_DynCommon::get_string (void) } CORBA::Object_ptr -TAO_DynCommon::get_reference (void) +TAO_DynCommon::get_reference () { if (this->destroyed_) { @@ -521,7 +521,7 @@ TAO_DynCommon::get_reference (void) } CORBA::TypeCode_ptr -TAO_DynCommon::get_typecode (void) +TAO_DynCommon::get_typecode () { if (this->destroyed_) { @@ -548,25 +548,25 @@ TAO_DynCommon::get_typecode (void) } CORBA::LongLong -TAO_DynCommon::get_longlong (void) +TAO_DynCommon::get_longlong () { return TAO::DynAnyBasicTypeUtils<CORBA::LongLong>::get_value (this); } CORBA::ULongLong -TAO_DynCommon::get_ulonglong (void) +TAO_DynCommon::get_ulonglong () { return TAO::DynAnyBasicTypeUtils<CORBA::ULongLong>::get_value (this); } CORBA::LongDouble -TAO_DynCommon::get_longdouble (void) +TAO_DynCommon::get_longdouble () { return TAO::DynAnyBasicTypeUtils<CORBA::LongDouble>::get_value (this); } CORBA::WChar -TAO_DynCommon::get_wchar (void) +TAO_DynCommon::get_wchar () { if (this->destroyed_) { @@ -593,7 +593,7 @@ TAO_DynCommon::get_wchar (void) } CORBA::WChar * -TAO_DynCommon::get_wstring (void) +TAO_DynCommon::get_wstring () { if (this->destroyed_) { @@ -627,7 +627,7 @@ TAO_DynCommon::get_wstring (void) } CORBA::Any_ptr -TAO_DynCommon::get_any (void) +TAO_DynCommon::get_any () { if (this->destroyed_) { @@ -661,7 +661,7 @@ TAO_DynCommon::get_any (void) // @@@ (JP) TODO - optimize - this version was intended by the OMG to // have fewer Any/DynAny conversions than get_any, not more. DynamicAny::DynAny_ptr -TAO_DynCommon::get_dyn_any (void) +TAO_DynCommon::get_dyn_any () { if (this->destroyed_) { @@ -678,7 +678,7 @@ TAO_DynCommon::get_dyn_any (void) } CORBA::ValueBase * -TAO_DynCommon::get_val (void) +TAO_DynCommon::get_val () { if (this->destroyed_) { @@ -759,7 +759,7 @@ TAO_DynCommon::seek (CORBA::Long slot) } void -TAO_DynCommon::rewind (void) +TAO_DynCommon::rewind () { if (this->destroyed_) { @@ -770,7 +770,7 @@ TAO_DynCommon::rewind (void) } CORBA::Boolean -TAO_DynCommon::next (void) +TAO_DynCommon::next () { if (this->destroyed_) { @@ -793,7 +793,7 @@ TAO_DynCommon::next (void) } DynamicAny::DynAny_ptr -TAO_DynCommon::copy (void) +TAO_DynCommon::copy () { if (this->destroyed_) { @@ -812,7 +812,7 @@ TAO_DynCommon::copy (void) } CORBA::ULong -TAO_DynCommon::component_count (void) +TAO_DynCommon::component_count () { if (this->destroyed_) { @@ -898,7 +898,7 @@ TAO_DynCommon::insert_abstract (CORBA::AbstractBase_ptr value) } CORBA::AbstractBase_ptr -TAO_DynCommon::get_abstract (void) +TAO_DynCommon::get_abstract () { if (this->destroyed_) { @@ -1031,7 +1031,7 @@ TAO_DynCommon::insert_wchar_seq (const CORBA::WCharSeq &value) // **************************************************************** CORBA::BooleanSeq * -TAO_DynCommon::get_boolean_seq (void) +TAO_DynCommon::get_boolean_seq () { const CORBA::BooleanSeq *owned = TAO::DynAnyBasicTypeUtils<CORBA::BooleanSeq>::get_value (this); @@ -1039,7 +1039,7 @@ TAO_DynCommon::get_boolean_seq (void) } CORBA::OctetSeq * -TAO_DynCommon::get_octet_seq (void) +TAO_DynCommon::get_octet_seq () { const CORBA::OctetSeq *owned = TAO::DynAnyBasicTypeUtils<CORBA::OctetSeq>::get_value (this); @@ -1047,7 +1047,7 @@ TAO_DynCommon::get_octet_seq (void) } CORBA::CharSeq * -TAO_DynCommon::get_char_seq (void) +TAO_DynCommon::get_char_seq () { const CORBA::CharSeq *owned = TAO::DynAnyBasicTypeUtils<CORBA::CharSeq>::get_value (this); @@ -1055,7 +1055,7 @@ TAO_DynCommon::get_char_seq (void) } CORBA::ShortSeq * -TAO_DynCommon::get_short_seq (void) +TAO_DynCommon::get_short_seq () { const CORBA::ShortSeq *owned = TAO::DynAnyBasicTypeUtils<CORBA::ShortSeq>::get_value (this); @@ -1063,7 +1063,7 @@ TAO_DynCommon::get_short_seq (void) } CORBA::UShortSeq * -TAO_DynCommon::get_ushort_seq (void) +TAO_DynCommon::get_ushort_seq () { const CORBA::UShortSeq *owned = TAO::DynAnyBasicTypeUtils<CORBA::UShortSeq>::get_value (this); @@ -1071,7 +1071,7 @@ TAO_DynCommon::get_ushort_seq (void) } CORBA::LongSeq * -TAO_DynCommon::get_long_seq (void) +TAO_DynCommon::get_long_seq () { const CORBA::LongSeq *owned = TAO::DynAnyBasicTypeUtils<CORBA::LongSeq>::get_value (this); @@ -1079,7 +1079,7 @@ TAO_DynCommon::get_long_seq (void) } CORBA::ULongSeq * -TAO_DynCommon::get_ulong_seq (void) +TAO_DynCommon::get_ulong_seq () { const CORBA::ULongSeq *owned = TAO::DynAnyBasicTypeUtils<CORBA::ULongSeq>::get_value (this); @@ -1087,7 +1087,7 @@ TAO_DynCommon::get_ulong_seq (void) } CORBA::FloatSeq * -TAO_DynCommon::get_float_seq (void) +TAO_DynCommon::get_float_seq () { const CORBA::FloatSeq *owned = TAO::DynAnyBasicTypeUtils<CORBA::FloatSeq>::get_value (this); @@ -1095,7 +1095,7 @@ TAO_DynCommon::get_float_seq (void) } CORBA::DoubleSeq * -TAO_DynCommon::get_double_seq (void) +TAO_DynCommon::get_double_seq () { const CORBA::DoubleSeq *owned = TAO::DynAnyBasicTypeUtils<CORBA::DoubleSeq>::get_value (this); @@ -1103,7 +1103,7 @@ TAO_DynCommon::get_double_seq (void) } CORBA::LongLongSeq * -TAO_DynCommon::get_longlong_seq (void) +TAO_DynCommon::get_longlong_seq () { const CORBA::LongLongSeq *owned = TAO::DynAnyBasicTypeUtils<CORBA::LongLongSeq>::get_value (this); @@ -1111,7 +1111,7 @@ TAO_DynCommon::get_longlong_seq (void) } CORBA::ULongLongSeq * -TAO_DynCommon::get_ulonglong_seq (void) +TAO_DynCommon::get_ulonglong_seq () { const CORBA::ULongLongSeq *owned = TAO::DynAnyBasicTypeUtils<CORBA::ULongLongSeq>::get_value (this); @@ -1119,7 +1119,7 @@ TAO_DynCommon::get_ulonglong_seq (void) } CORBA::LongDoubleSeq * -TAO_DynCommon::get_longdouble_seq (void) +TAO_DynCommon::get_longdouble_seq () { const CORBA::LongDoubleSeq *owned = TAO::DynAnyBasicTypeUtils<CORBA::LongDoubleSeq>::get_value (this); @@ -1127,7 +1127,7 @@ TAO_DynCommon::get_longdouble_seq (void) } CORBA::WCharSeq * -TAO_DynCommon::get_wchar_seq (void) +TAO_DynCommon::get_wchar_seq () { const CORBA::WCharSeq *owned = TAO::DynAnyBasicTypeUtils<CORBA::WCharSeq>::get_value (this); @@ -1268,19 +1268,19 @@ TAO_DynCommon::is_basic_type_seq (CORBA::TypeCode_ptr tc) } CORBA::Boolean -TAO_DynCommon::has_components (void) const +TAO_DynCommon::has_components () const { return this->has_components_; } CORBA::Boolean -TAO_DynCommon::destroyed (void) const +TAO_DynCommon::destroyed () const { return this->destroyed_; } CORBA::Any & -TAO_DynCommon::the_any (void) +TAO_DynCommon::the_any () { return this->any_; } diff --git a/TAO/tao/DynamicAny/DynCommon.h b/TAO/tao/DynamicAny/DynCommon.h index 4d8da9d2790..0d11430f27c 100644 --- a/TAO/tao/DynamicAny/DynCommon.h +++ b/TAO/tao/DynamicAny/DynCommon.h @@ -35,11 +35,11 @@ public: TAO_DynCommon (CORBA::Boolean allow_truncation); /// Destructor. - virtual ~TAO_DynCommon (void); + virtual ~TAO_DynCommon (); // = Some functions common to all Dynamic Any types. - virtual CORBA::TypeCode_ptr type (void); + virtual CORBA::TypeCode_ptr type (); virtual void assign (DynamicAny::DynAny_ptr dyn_any); @@ -81,59 +81,59 @@ public: virtual void insert_val (CORBA::ValueBase * value); - virtual CORBA::Boolean get_boolean (void); + virtual CORBA::Boolean get_boolean (); - virtual CORBA::Octet get_octet (void); + virtual CORBA::Octet get_octet (); - virtual CORBA::Char get_char (void); + virtual CORBA::Char get_char (); - virtual CORBA::Short get_short (void); + virtual CORBA::Short get_short (); - virtual CORBA::UShort get_ushort (void); + virtual CORBA::UShort get_ushort (); - virtual CORBA::Long get_long (void); + virtual CORBA::Long get_long (); - virtual CORBA::ULong get_ulong (void); + virtual CORBA::ULong get_ulong (); - virtual CORBA::Float get_float (void); + virtual CORBA::Float get_float (); - virtual CORBA::Double get_double (void); + virtual CORBA::Double get_double (); - virtual char * get_string (void); + virtual char * get_string (); - virtual CORBA::Object_ptr get_reference (void); + virtual CORBA::Object_ptr get_reference (); - virtual CORBA::TypeCode_ptr get_typecode (void); + virtual CORBA::TypeCode_ptr get_typecode (); - virtual CORBA::LongLong get_longlong (void); + virtual CORBA::LongLong get_longlong (); - virtual CORBA::ULongLong get_ulonglong (void); + virtual CORBA::ULongLong get_ulonglong (); - virtual CORBA::LongDouble get_longdouble (void); + virtual CORBA::LongDouble get_longdouble (); - virtual CORBA::WChar get_wchar (void); + virtual CORBA::WChar get_wchar (); - virtual CORBA::WChar * get_wstring (void); + virtual CORBA::WChar * get_wstring (); - virtual CORBA::Any * get_any (void); + virtual CORBA::Any * get_any (); - virtual DynamicAny::DynAny_ptr get_dyn_any (void); + virtual DynamicAny::DynAny_ptr get_dyn_any (); - virtual CORBA::ValueBase * get_val (void); + virtual CORBA::ValueBase * get_val (); virtual CORBA::Boolean seek (CORBA::Long index); - virtual void rewind (void); + virtual void rewind (); - virtual CORBA::Boolean next (void); + virtual CORBA::Boolean next (); - virtual DynamicAny::DynAny_ptr copy (void); + virtual DynamicAny::DynAny_ptr copy (); - virtual CORBA::ULong component_count (void); + virtual CORBA::ULong component_count (); virtual void insert_abstract (CORBA::AbstractBase_ptr value); - virtual CORBA::AbstractBase_ptr get_abstract (void); + virtual CORBA::AbstractBase_ptr get_abstract (); virtual void insert_boolean_seq (const CORBA::BooleanSeq & value); @@ -161,31 +161,31 @@ public: virtual void insert_wchar_seq (const CORBA::WCharSeq & value); - virtual CORBA::BooleanSeq * get_boolean_seq (void); + virtual CORBA::BooleanSeq * get_boolean_seq (); - virtual CORBA::OctetSeq * get_octet_seq (void); + virtual CORBA::OctetSeq * get_octet_seq (); - virtual CORBA::CharSeq * get_char_seq (void); + virtual CORBA::CharSeq * get_char_seq (); - virtual CORBA::ShortSeq * get_short_seq (void); + virtual CORBA::ShortSeq * get_short_seq (); - virtual CORBA::UShortSeq * get_ushort_seq (void); + virtual CORBA::UShortSeq * get_ushort_seq (); - virtual CORBA::LongSeq * get_long_seq (void); + virtual CORBA::LongSeq * get_long_seq (); - virtual CORBA::ULongSeq * get_ulong_seq (void); + virtual CORBA::ULongSeq * get_ulong_seq (); - virtual CORBA::FloatSeq * get_float_seq (void); + virtual CORBA::FloatSeq * get_float_seq (); - virtual CORBA::DoubleSeq * get_double_seq (void); + virtual CORBA::DoubleSeq * get_double_seq (); - virtual CORBA::LongLongSeq * get_longlong_seq (void); + virtual CORBA::LongLongSeq * get_longlong_seq (); - virtual CORBA::ULongLongSeq * get_ulonglong_seq (void); + virtual CORBA::ULongLongSeq * get_ulonglong_seq (); - virtual CORBA::LongDoubleSeq * get_longdouble_seq (void); + virtual CORBA::LongDoubleSeq * get_longdouble_seq (); - virtual CORBA::WCharSeq * get_wchar_seq (void); + virtual CORBA::WCharSeq * get_wchar_seq (); /// This sets one of two flags in this base class. CORBA 2.4.2 /// requires that destroy() do nothing if it is called on @@ -208,9 +208,9 @@ public: // Accessors - CORBA::Boolean has_components (void) const; - CORBA::Boolean destroyed (void) const; - CORBA::Any &the_any (void); + CORBA::Boolean has_components () const; + CORBA::Boolean destroyed () const; + CORBA::Any &the_any (); // Mutators diff --git a/TAO/tao/DynamicAny/DynEnum_i.cpp b/TAO/tao/DynamicAny/DynEnum_i.cpp index bb5529b24b6..7f25e22f02d 100644 --- a/TAO/tao/DynamicAny/DynEnum_i.cpp +++ b/TAO/tao/DynamicAny/DynEnum_i.cpp @@ -16,12 +16,12 @@ TAO_DynEnum_i::TAO_DynEnum_i (CORBA::Boolean allow_truncation) { } -TAO_DynEnum_i::~TAO_DynEnum_i (void) +TAO_DynEnum_i::~TAO_DynEnum_i () { } void -TAO_DynEnum_i::init_common (void) +TAO_DynEnum_i::init_common () { this->ref_to_component_ = false; this->container_is_destroying_ = false; @@ -103,7 +103,7 @@ TAO_DynEnum_i::_narrow (CORBA::Object_ptr _tao_objref) // **************************************************************** char * -TAO_DynEnum_i::get_as_string (void) +TAO_DynEnum_i::get_as_string () { CORBA::TypeCode_var ct = TAO_DynAnyFactory::strip_alias (this->type_.in ()); @@ -143,7 +143,7 @@ TAO_DynEnum_i::set_as_string (const char *value_as_string) } CORBA::ULong -TAO_DynEnum_i::get_as_ulong (void) +TAO_DynEnum_i::get_as_ulong () { return this->value_; } @@ -205,7 +205,7 @@ TAO_DynEnum_i::from_any (const CORBA::Any& any) } CORBA::Any_ptr -TAO_DynEnum_i::to_any (void) +TAO_DynEnum_i::to_any () { TAO_OutputCDR out_cdr; @@ -269,7 +269,7 @@ TAO_DynEnum_i::equal (DynamicAny::DynAny_ptr rhs) } void -TAO_DynEnum_i::destroy (void) +TAO_DynEnum_i::destroy () { if (this->destroyed_) { @@ -283,7 +283,7 @@ TAO_DynEnum_i::destroy (void) } DynamicAny::DynAny_ptr -TAO_DynEnum_i::current_component (void) +TAO_DynEnum_i::current_component () { if (this->destroyed_) { diff --git a/TAO/tao/DynamicAny/DynEnum_i.h b/TAO/tao/DynamicAny/DynEnum_i.h index 471cd24ce6d..6d05d6d7fae 100644 --- a/TAO/tao/DynamicAny/DynEnum_i.h +++ b/TAO/tao/DynamicAny/DynEnum_i.h @@ -45,7 +45,7 @@ public: TAO_DynEnum_i (CORBA::Boolean allow_truncation=true); /// Destructor. - ~TAO_DynEnum_i (void); + ~TAO_DynEnum_i (); /// Initialize using just a TypeCode. void init (CORBA::TypeCode_ptr tc); @@ -58,11 +58,11 @@ public: // = Functions specific to DynEnum. - virtual char * get_as_string (void); + virtual char * get_as_string (); virtual void set_as_string (const char * value); - virtual CORBA::ULong get_as_ulong (void); + virtual CORBA::ULong get_as_ulong (); virtual void set_as_ulong (CORBA::ULong value); @@ -70,17 +70,17 @@ public: virtual void from_any (const CORBA::Any & value); - virtual CORBA::Any * to_any (void); + virtual CORBA::Any * to_any (); virtual CORBA::Boolean equal (DynamicAny::DynAny_ptr dyn_any); - virtual void destroy (void); + virtual void destroy (); - virtual DynamicAny::DynAny_ptr current_component (void); + virtual DynamicAny::DynAny_ptr current_component (); private: // Called by both versions of init(). - void init_common (void); + void init_common (); // = Use copy() or assign() instead of these. TAO_DynEnum_i (const TAO_DynEnum_i &src); diff --git a/TAO/tao/DynamicAny/DynSequence_i.cpp b/TAO/tao/DynamicAny/DynSequence_i.cpp index 702fb10a131..749a3b79e93 100644 --- a/TAO/tao/DynamicAny/DynSequence_i.cpp +++ b/TAO/tao/DynamicAny/DynSequence_i.cpp @@ -16,12 +16,12 @@ TAO_DynSequence_i::TAO_DynSequence_i (CORBA::Boolean allow_truncation) { } -TAO_DynSequence_i::~TAO_DynSequence_i (void) +TAO_DynSequence_i::~TAO_DynSequence_i () { } void -TAO_DynSequence_i::init_common (void) +TAO_DynSequence_i::init_common () { this->ref_to_component_ = false; this->container_is_destroying_ = false; @@ -137,7 +137,7 @@ TAO_DynSequence_i::_narrow (CORBA::Object_ptr _tao_objref) // **************************************************************** CORBA::TypeCode_ptr -TAO_DynSequence_i::get_element_type (void) +TAO_DynSequence_i::get_element_type () { CORBA::TypeCode_var element_type = CORBA::TypeCode::_duplicate (this->type_.in ()); @@ -161,7 +161,7 @@ TAO_DynSequence_i::get_element_type (void) // = Functions specific to DynSequence. CORBA::ULong -TAO_DynSequence_i::get_length (void) +TAO_DynSequence_i::get_length () { if (this->destroyed_) { @@ -247,7 +247,7 @@ TAO_DynSequence_i::set_length (CORBA::ULong length) } DynamicAny::AnySeq * -TAO_DynSequence_i::get_elements (void) +TAO_DynSequence_i::get_elements () { if (this->destroyed_) { @@ -360,7 +360,7 @@ TAO_DynSequence_i::set_elements (const DynamicAny::AnySeq & value) } DynamicAny::DynAnySeq * -TAO_DynSequence_i::get_elements_as_dyn_any (void) +TAO_DynSequence_i::get_elements_as_dyn_any () { if (this->destroyed_) { @@ -562,7 +562,7 @@ TAO_DynSequence_i::from_any (const CORBA::Any & any) } CORBA::Any_ptr -TAO_DynSequence_i::to_any (void) +TAO_DynSequence_i::to_any () { if (this->destroyed_) { @@ -668,7 +668,7 @@ TAO_DynSequence_i::equal (DynamicAny::DynAny_ptr rhs) } void -TAO_DynSequence_i::destroy (void) +TAO_DynSequence_i::destroy () { if (this->destroyed_) { @@ -690,7 +690,7 @@ TAO_DynSequence_i::destroy (void) } DynamicAny::DynAny_ptr -TAO_DynSequence_i::current_component (void) +TAO_DynSequence_i::current_component () { if (this->destroyed_) { diff --git a/TAO/tao/DynamicAny/DynSequence_i.h b/TAO/tao/DynamicAny/DynSequence_i.h index f76bc51aa9d..276a39f7022 100644 --- a/TAO/tao/DynamicAny/DynSequence_i.h +++ b/TAO/tao/DynamicAny/DynSequence_i.h @@ -44,7 +44,7 @@ public: TAO_DynSequence_i (CORBA::Boolean allow_truncation=true); /// Destructor. - ~TAO_DynSequence_i (void); + ~TAO_DynSequence_i (); /// Initialize using just a TypeCode. void init (CORBA::TypeCode_ptr tc); @@ -57,15 +57,15 @@ public: // = Functions specific to DynSequence. - virtual CORBA::ULong get_length (void); + virtual CORBA::ULong get_length (); virtual void set_length (CORBA::ULong len); - virtual DynamicAny::AnySeq * get_elements (void); + virtual DynamicAny::AnySeq * get_elements (); virtual void set_elements (const DynamicAny::AnySeq & value); - virtual DynamicAny::DynAnySeq * get_elements_as_dyn_any (void); + virtual DynamicAny::DynAnySeq * get_elements_as_dyn_any (); virtual void set_elements_as_dyn_any (const DynamicAny::DynAnySeq & value); @@ -74,20 +74,20 @@ public: virtual void from_any (const CORBA::Any & value); - virtual CORBA::Any * to_any (void); + virtual CORBA::Any * to_any (); virtual CORBA::Boolean equal (DynamicAny::DynAny_ptr dyn_any); - virtual void destroy (void); + virtual void destroy (); - virtual DynamicAny::DynAny_ptr current_component (void); + virtual DynamicAny::DynAny_ptr current_component (); private: // Utility, turns the type of elements contained in the sequence. - CORBA::TypeCode_ptr get_element_type (void); + CORBA::TypeCode_ptr get_element_type (); // Called by both versions of init(). - void init_common (void); + void init_common (); // = Use copy() or assign() instead of these TAO_DynSequence_i (const TAO_DynSequence_i &src); diff --git a/TAO/tao/DynamicAny/DynStruct_i.cpp b/TAO/tao/DynamicAny/DynStruct_i.cpp index 0301858b44c..bfa40f2874e 100644 --- a/TAO/tao/DynamicAny/DynStruct_i.cpp +++ b/TAO/tao/DynamicAny/DynStruct_i.cpp @@ -16,7 +16,7 @@ TAO_DynStruct_i::TAO_DynStruct_i (CORBA::Boolean allow_truncation) { } -TAO_DynStruct_i::~TAO_DynStruct_i (void) +TAO_DynStruct_i::~TAO_DynStruct_i () { } @@ -34,7 +34,7 @@ TAO_DynStruct_i::check_typecode (CORBA::TypeCode_ptr tc) } void -TAO_DynStruct_i::init_common (void) +TAO_DynStruct_i::init_common () { this->ref_to_component_ = false; this->container_is_destroying_ = false; @@ -179,7 +179,7 @@ TAO_DynStruct_i::_narrow (CORBA::Object_ptr _tao_objref) // **************************************************************** DynamicAny::FieldName -TAO_DynStruct_i::current_member_name (void) +TAO_DynStruct_i::current_member_name () { if (this->destroyed_) { @@ -208,7 +208,7 @@ TAO_DynStruct_i::current_member_name (void) // Returns the unaliased TCKind. CORBA::TCKind -TAO_DynStruct_i::current_member_kind (void) +TAO_DynStruct_i::current_member_kind () { if (this->destroyed_) { @@ -238,7 +238,7 @@ TAO_DynStruct_i::current_member_kind (void) } DynamicAny::NameValuePairSeq * -TAO_DynStruct_i::get_members (void) +TAO_DynStruct_i::get_members () { if (this->destroyed_) { @@ -334,7 +334,7 @@ TAO_DynStruct_i::set_members (const DynamicAny::NameValuePairSeq & values) } DynamicAny::NameDynAnyPairSeq * -TAO_DynStruct_i::get_members_as_dyn_any (void) +TAO_DynStruct_i::get_members_as_dyn_any () { if (this->destroyed_) { @@ -506,7 +506,7 @@ TAO_DynStruct_i::from_any (const CORBA::Any & any) } CORBA::Any_ptr -TAO_DynStruct_i::to_any (void) +TAO_DynStruct_i::to_any () { if (this->destroyed_) { @@ -615,7 +615,7 @@ TAO_DynStruct_i::equal (DynamicAny::DynAny_ptr rhs) } void -TAO_DynStruct_i::destroy (void) +TAO_DynStruct_i::destroy () { if (this->destroyed_) { @@ -637,7 +637,7 @@ TAO_DynStruct_i::destroy (void) } DynamicAny::DynAny_ptr -TAO_DynStruct_i::current_component (void) +TAO_DynStruct_i::current_component () { if (this->destroyed_) { diff --git a/TAO/tao/DynamicAny/DynStruct_i.h b/TAO/tao/DynamicAny/DynStruct_i.h index f390cda7a22..ba993d6c84c 100644 --- a/TAO/tao/DynamicAny/DynStruct_i.h +++ b/TAO/tao/DynamicAny/DynStruct_i.h @@ -44,7 +44,7 @@ public: TAO_DynStruct_i (CORBA::Boolean allow_truncation=true); /// Destructor. - ~TAO_DynStruct_i (void); + ~TAO_DynStruct_i (); /// Initialize using just a TypeCode. void init (CORBA::TypeCode_ptr tc); @@ -57,15 +57,15 @@ public: // = Functions specific to DynStruct. - virtual DynamicAny::FieldName current_member_name (void); + virtual DynamicAny::FieldName current_member_name (); - virtual CORBA::TCKind current_member_kind (void); + virtual CORBA::TCKind current_member_kind (); - virtual DynamicAny::NameValuePairSeq *get_members (void); + virtual DynamicAny::NameValuePairSeq *get_members (); virtual void set_members (const DynamicAny::NameValuePairSeq& value); - virtual DynamicAny::NameDynAnyPairSeq * get_members_as_dyn_any (void); + virtual DynamicAny::NameDynAnyPairSeq * get_members_as_dyn_any (); virtual void set_members_as_dyn_any ( const DynamicAny::NameDynAnyPairSeq & value); @@ -74,13 +74,13 @@ public: virtual void from_any (const CORBA::Any & value); - virtual CORBA::Any * to_any (void); + virtual CORBA::Any * to_any (); virtual CORBA::Boolean equal (DynamicAny::DynAny_ptr dyn_any); - virtual void destroy (void); + virtual void destroy (); - virtual DynamicAny::DynAny_ptr current_component (void); + virtual DynamicAny::DynAny_ptr current_component (); private: /// Check if the typecode is acceptable. @@ -91,7 +91,7 @@ private: void set_from_any (const CORBA::Any &any); /// Called by both versions of init(). - void init_common (void); + void init_common (); // = Use copy() or assign() instead of these. TAO_DynStruct_i (const TAO_DynStruct_i &src); diff --git a/TAO/tao/DynamicAny/DynUnion_i.cpp b/TAO/tao/DynamicAny/DynUnion_i.cpp index d8e1165b480..bba6b5e1a72 100644 --- a/TAO/tao/DynamicAny/DynUnion_i.cpp +++ b/TAO/tao/DynamicAny/DynUnion_i.cpp @@ -18,12 +18,12 @@ TAO_DynUnion_i::TAO_DynUnion_i (CORBA::Boolean allow_truncation) { } -TAO_DynUnion_i::~TAO_DynUnion_i (void) +TAO_DynUnion_i::~TAO_DynUnion_i () { } void -TAO_DynUnion_i::init_common (void) +TAO_DynUnion_i::init_common () { this->ref_to_component_ = false; this->container_is_destroying_ = false; @@ -283,7 +283,7 @@ TAO_DynUnion_i::set_from_any (const CORBA::Any & any) // **************************************************************** DynamicAny::DynAny_ptr -TAO_DynUnion_i::get_discriminator (void) +TAO_DynUnion_i::get_discriminator () { if (this->destroyed_) { @@ -425,7 +425,7 @@ TAO_DynUnion_i::set_discriminator (DynamicAny::DynAny_ptr value) } void -TAO_DynUnion_i::set_to_default_member (void) +TAO_DynUnion_i::set_to_default_member () { if (this->destroyed_) { @@ -468,7 +468,7 @@ TAO_DynUnion_i::set_to_default_member (void) } void -TAO_DynUnion_i::set_to_no_active_member (void) +TAO_DynUnion_i::set_to_no_active_member () { if (this->destroyed_) { @@ -517,7 +517,7 @@ TAO_DynUnion_i::set_to_no_active_member (void) } CORBA::Boolean -TAO_DynUnion_i::has_no_active_member (void) +TAO_DynUnion_i::has_no_active_member () { if (this->destroyed_) { @@ -529,7 +529,7 @@ TAO_DynUnion_i::has_no_active_member (void) } CORBA::TCKind -TAO_DynUnion_i::discriminator_kind (void) +TAO_DynUnion_i::discriminator_kind () { if (this->destroyed_) { @@ -543,7 +543,7 @@ TAO_DynUnion_i::discriminator_kind (void) } DynamicAny::DynAny_ptr -TAO_DynUnion_i::member (void) +TAO_DynUnion_i::member () { if (this->destroyed_) { @@ -566,7 +566,7 @@ TAO_DynUnion_i::member (void) } char * -TAO_DynUnion_i::member_name (void) +TAO_DynUnion_i::member_name () { if (this->destroyed_) { @@ -587,7 +587,7 @@ TAO_DynUnion_i::member_name (void) } CORBA::TCKind -TAO_DynUnion_i::member_kind (void) +TAO_DynUnion_i::member_kind () { if (this->destroyed_) { @@ -640,7 +640,7 @@ TAO_DynUnion_i::from_any (const CORBA::Any& any) } CORBA::Any_ptr -TAO_DynUnion_i::to_any (void) +TAO_DynUnion_i::to_any () { if (this->destroyed_) { @@ -770,7 +770,7 @@ TAO_DynUnion_i::equal (DynamicAny::DynAny_ptr rhs) } void -TAO_DynUnion_i::destroy (void) +TAO_DynUnion_i::destroy () { if (this->destroyed_) { @@ -797,7 +797,7 @@ TAO_DynUnion_i::destroy (void) } DynamicAny::DynAny_ptr -TAO_DynUnion_i::current_component (void) +TAO_DynUnion_i::current_component () { if (this->destroyed_) { diff --git a/TAO/tao/DynamicAny/DynUnion_i.h b/TAO/tao/DynamicAny/DynUnion_i.h index e12129861e0..27436f421af 100644 --- a/TAO/tao/DynamicAny/DynUnion_i.h +++ b/TAO/tao/DynamicAny/DynUnion_i.h @@ -43,7 +43,7 @@ public: TAO_DynUnion_i (CORBA::Boolean allow_truncation=true); /// Destructor. - ~TAO_DynUnion_i (void); + ~TAO_DynUnion_i (); /// Constructor taking an Any argument. void init (const CORBA::Any& any); @@ -56,35 +56,35 @@ public: // = Functions specific to DynUnion. - virtual DynamicAny::DynAny_ptr get_discriminator (void); + virtual DynamicAny::DynAny_ptr get_discriminator (); virtual void set_discriminator (DynamicAny::DynAny_ptr d); - virtual void set_to_default_member (void); + virtual void set_to_default_member (); - virtual void set_to_no_active_member (void); + virtual void set_to_no_active_member (); - virtual CORBA::Boolean has_no_active_member (void); + virtual CORBA::Boolean has_no_active_member (); - virtual CORBA::TCKind discriminator_kind (void); + virtual CORBA::TCKind discriminator_kind (); - virtual DynamicAny::DynAny_ptr member (void); + virtual DynamicAny::DynAny_ptr member (); - virtual char * member_name (void); + virtual char * member_name (); - virtual CORBA::TCKind member_kind (void); + virtual CORBA::TCKind member_kind (); // = DynAny common functions not implemented in class TAO_DynCommon. virtual void from_any (const CORBA::Any & value); - virtual CORBA::Any * to_any (void); + virtual CORBA::Any * to_any (); virtual CORBA::Boolean equal (DynamicAny::DynAny_ptr dyn_any); - virtual void destroy (void); + virtual void destroy (); - virtual DynamicAny::DynAny_ptr current_component (void); + virtual DynamicAny::DynAny_ptr current_component (); private: /// Code common to the constructor from an Any arg and the member @@ -92,7 +92,7 @@ private: void set_from_any (const CORBA::Any &any); /// Called by both versions of init(). - void init_common (void); + void init_common (); /// Iterative check for label value match. CORBA::Boolean label_match (const CORBA::Any &my_any, diff --git a/TAO/tao/DynamicAny/DynValueBox_i.cpp b/TAO/tao/DynamicAny/DynValueBox_i.cpp index e4c4711cfec..4b522011808 100644 --- a/TAO/tao/DynamicAny/DynValueBox_i.cpp +++ b/TAO/tao/DynamicAny/DynValueBox_i.cpp @@ -18,12 +18,12 @@ TAO_DynValueBox_i::TAO_DynValueBox_i (CORBA::Boolean allow_truncation) { } -TAO_DynValueBox_i::~TAO_DynValueBox_i (void) +TAO_DynValueBox_i::~TAO_DynValueBox_i () { } void -TAO_DynValueBox_i::set_to_value (void) +TAO_DynValueBox_i::set_to_value () { if (CORBA::is_nil (this->boxed_.in ())) { @@ -87,7 +87,7 @@ TAO_DynValueBox_i::_narrow (CORBA::Object_ptr _tao_objref) } CORBA::Any * -TAO_DynValueBox_i::get_boxed_value (void) +TAO_DynValueBox_i::get_boxed_value () { if (this->destroyed_) { @@ -127,7 +127,7 @@ TAO_DynValueBox_i::set_boxed_value (const CORBA::Any & boxed) } DynamicAny::DynAny_ptr -TAO_DynValueBox_i::get_boxed_value_as_dyn_any (void) +TAO_DynValueBox_i::get_boxed_value_as_dyn_any () { if (this->destroyed_) { @@ -216,7 +216,7 @@ TAO_DynValueBox_i::equal (DynamicAny::DynAny_ptr rhs) } void -TAO_DynValueBox_i::destroy (void) +TAO_DynValueBox_i::destroy () { if (this->destroyed_) { @@ -237,7 +237,7 @@ TAO_DynValueBox_i::destroy (void) } DynamicAny::DynAny_ptr -TAO_DynValueBox_i::current_component (void) +TAO_DynValueBox_i::current_component () { if (this->destroyed_) { @@ -324,7 +324,7 @@ TAO_DynValueBox_i::set_from_any (const CORBA::Any & any) } CORBA::Any_ptr -TAO_DynValueBox_i::to_any (void) +TAO_DynValueBox_i::to_any () { if (this->destroyed_) { diff --git a/TAO/tao/DynamicAny/DynValueBox_i.h b/TAO/tao/DynamicAny/DynValueBox_i.h index 992fa8aedb4..3dadf64cb6c 100644 --- a/TAO/tao/DynamicAny/DynValueBox_i.h +++ b/TAO/tao/DynamicAny/DynValueBox_i.h @@ -39,7 +39,7 @@ public: TAO_DynValueBox_i (CORBA::Boolean allow_truncation=true); /// Destructor. - ~TAO_DynValueBox_i (void); + ~TAO_DynValueBox_i (); /// Initialize using just a TypeCode. void init (CORBA::TypeCode_ptr tc); @@ -51,27 +51,27 @@ public: static TAO_DynValueBox_i *_narrow (CORBA::Object_ptr obj); // = Functions specific to DynValueBox. - virtual CORBA::Any * get_boxed_value (void); + virtual CORBA::Any * get_boxed_value (); virtual void set_boxed_value (const CORBA::Any & boxed); - virtual DynamicAny::DynAny_ptr get_boxed_value_as_dyn_any (void); + virtual DynamicAny::DynAny_ptr get_boxed_value_as_dyn_any (); virtual void set_boxed_value_as_dyn_any (DynamicAny::DynAny_ptr boxed); // = DynAny common functions not implemented in class TAO_DynCommon. virtual void from_any (const CORBA::Any & value); - virtual CORBA::Any * to_any (void); + virtual CORBA::Any * to_any (); virtual CORBA::Boolean equal (DynamicAny::DynAny_ptr dyn_any); - virtual void destroy (void); + virtual void destroy (); - virtual DynamicAny::DynAny_ptr current_component (void); + virtual DynamicAny::DynAny_ptr current_component (); // = DynValueCommon needed to be provided here - virtual void set_to_value (void); + virtual void set_to_value (); private: /// Check if the typecode is acceptable. diff --git a/TAO/tao/DynamicAny/DynValueCommon_i.cpp b/TAO/tao/DynamicAny/DynValueCommon_i.cpp index 08400a45e9a..7a105953409 100644 --- a/TAO/tao/DynamicAny/DynValueCommon_i.cpp +++ b/TAO/tao/DynamicAny/DynValueCommon_i.cpp @@ -11,18 +11,18 @@ TAO_DynValueCommon_i::TAO_DynValueCommon_i (CORBA::Boolean allow_truncation) { } -TAO_DynValueCommon_i::~TAO_DynValueCommon_i (void) +TAO_DynValueCommon_i::~TAO_DynValueCommon_i () { } CORBA::Boolean -TAO_DynValueCommon_i::is_null (void) +TAO_DynValueCommon_i::is_null () { return this->is_null_; } void -TAO_DynValueCommon_i::set_to_null (void) +TAO_DynValueCommon_i::set_to_null () { this->is_null_ = true; this->component_count_ = 0u; @@ -30,7 +30,7 @@ TAO_DynValueCommon_i::set_to_null (void) } void -TAO_DynValueCommon_i::init_common (void) +TAO_DynValueCommon_i::init_common () { this->ref_to_component_ = false; this->container_is_destroying_ = false; diff --git a/TAO/tao/DynamicAny/DynValueCommon_i.h b/TAO/tao/DynamicAny/DynValueCommon_i.h index 30cc907773d..7dbf099ecbf 100644 --- a/TAO/tao/DynamicAny/DynValueCommon_i.h +++ b/TAO/tao/DynamicAny/DynValueCommon_i.h @@ -39,20 +39,20 @@ public: TAO_DynValueCommon_i (CORBA::Boolean allow_truncation=true); /// Destructor. - ~TAO_DynValueCommon_i (void); + ~TAO_DynValueCommon_i (); // = LocalObject methods. static TAO_DynValueCommon_i *_narrow (CORBA::Object_ptr obj); /// Called by DynValue and DynValueBox init() functions. - void init_common (void); + void init_common (); // = Functions specific to DynValueCommon. - virtual CORBA::Boolean is_null (void); + virtual CORBA::Boolean is_null (); - virtual void set_to_null (void); + virtual void set_to_null (); - virtual void set_to_value (void) = 0; + virtual void set_to_value () = 0; private: // = Use copy() or assign() instead of these. diff --git a/TAO/tao/DynamicAny/DynValue_i.cpp b/TAO/tao/DynamicAny/DynValue_i.cpp index 6f319728c3d..728b5614b1a 100644 --- a/TAO/tao/DynamicAny/DynValue_i.cpp +++ b/TAO/tao/DynamicAny/DynValue_i.cpp @@ -21,7 +21,7 @@ TAO_DynValue_i::TAO_DynValue_i (CORBA::Boolean allow_truncation) { } -TAO_DynValue_i::~TAO_DynValue_i (void) +TAO_DynValue_i::~TAO_DynValue_i () { } @@ -205,7 +205,7 @@ TAO_DynValue_i::get_member_name ( } void -TAO_DynValue_i::set_to_value (void) +TAO_DynValue_i::set_to_value () { this->component_count_ = static_cast <CORBA::ULong> (this->da_members_.size ()); @@ -234,7 +234,7 @@ TAO_DynValue_i::_narrow (CORBA::Object_ptr _tao_objref) } DynamicAny::FieldName -TAO_DynValue_i::current_member_name (void) +TAO_DynValue_i::current_member_name () { if (this->destroyed_) { @@ -253,7 +253,7 @@ TAO_DynValue_i::current_member_name (void) } CORBA::TCKind -TAO_DynValue_i::current_member_kind (void) +TAO_DynValue_i::current_member_kind () { if (this->destroyed_) { @@ -273,7 +273,7 @@ TAO_DynValue_i::current_member_kind (void) } DynamicAny::NameValuePairSeq * -TAO_DynValue_i::get_members (void) +TAO_DynValue_i::get_members () { if (this->destroyed_) { @@ -351,7 +351,7 @@ TAO_DynValue_i::set_members ( } DynamicAny::NameDynAnyPairSeq * -TAO_DynValue_i::get_members_as_dyn_any (void) +TAO_DynValue_i::get_members_as_dyn_any () { if (this->destroyed_) { @@ -491,7 +491,7 @@ TAO_DynValue_i::equal (DynamicAny::DynAny_ptr rhs) } void -TAO_DynValue_i::destroy (void) +TAO_DynValue_i::destroy () { if (this->destroyed_) { @@ -519,7 +519,7 @@ TAO_DynValue_i::destroy (void) } DynamicAny::DynAny_ptr -TAO_DynValue_i::current_component (void) +TAO_DynValue_i::current_component () { if (this->destroyed_) { @@ -602,7 +602,7 @@ TAO_DynValue_i::insert_val (CORBA::ValueBase *value) // which then will be wrong type for the valuetype // output we want. CORBA::ValueBase * -TAO_DynValue_i::get_val (void) +TAO_DynValue_i::get_val () { if (this->destroyed_) { @@ -626,7 +626,7 @@ TAO_DynValue_i::get_val (void) } CORBA::Any_ptr -TAO_DynValue_i::to_any (void) +TAO_DynValue_i::to_any () { if (this->destroyed_) { diff --git a/TAO/tao/DynamicAny/DynValue_i.h b/TAO/tao/DynamicAny/DynValue_i.h index ce0194f7211..f3f8884342e 100644 --- a/TAO/tao/DynamicAny/DynValue_i.h +++ b/TAO/tao/DynamicAny/DynValue_i.h @@ -39,7 +39,7 @@ public: TAO_DynValue_i (CORBA::Boolean allow_truncation=true); /// Destructor. - ~TAO_DynValue_i (void); + ~TAO_DynValue_i (); /// Initialize using an Any. void init (const CORBA::Any& any); @@ -54,15 +54,15 @@ public: static TAO_DynValue_i *_narrow (CORBA::Object_ptr obj); // = Functions specific to DynValue. - virtual DynamicAny::FieldName current_member_name (void); + virtual DynamicAny::FieldName current_member_name (); - virtual CORBA::TCKind current_member_kind (void); + virtual CORBA::TCKind current_member_kind (); - virtual DynamicAny::NameValuePairSeq * get_members (void); + virtual DynamicAny::NameValuePairSeq * get_members (); virtual void set_members (const DynamicAny::NameValuePairSeq & value); - virtual DynamicAny::NameDynAnyPairSeq * get_members_as_dyn_any (void); + virtual DynamicAny::NameDynAnyPairSeq * get_members_as_dyn_any (); virtual void set_members_as_dyn_any ( const DynamicAny::NameDynAnyPairSeq & value); @@ -70,20 +70,20 @@ public: // = DynAny common functions not implemented in class TAO_DynCommon. virtual void from_any (const CORBA::Any & value); - virtual CORBA::Any * to_any (void); + virtual CORBA::Any * to_any (); virtual CORBA::Boolean equal (DynamicAny::DynAny_ptr dyn_any); - virtual void destroy (void); + virtual void destroy (); - virtual DynamicAny::DynAny_ptr current_component (void); + virtual DynamicAny::DynAny_ptr current_component (); virtual void insert_val (CORBA::ValueBase * value); - virtual CORBA::ValueBase * get_val (void); + virtual CORBA::ValueBase * get_val (); // = DynValueCommon needed to be provided here - virtual void set_to_value (void); + virtual void set_to_value (); private: /// List of base types. diff --git a/TAO/tao/DynamicAny/DynamicAny.cpp b/TAO/tao/DynamicAny/DynamicAny.cpp index 1b6128a6254..ccb3723a2b5 100644 --- a/TAO/tao/DynamicAny/DynamicAny.cpp +++ b/TAO/tao/DynamicAny/DynamicAny.cpp @@ -12,7 +12,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_DynamicAny_Loader::TAO_DynamicAny_Loader (void) +TAO_DynamicAny_Loader::TAO_DynamicAny_Loader () { } @@ -29,7 +29,7 @@ TAO_DynamicAny_Loader::create_object (CORBA::ORB_ptr, } int -TAO_DynamicAny_Loader::Initializer (void) +TAO_DynamicAny_Loader::Initializer () { return ACE_Service_Config::process_directive (ace_svc_desc_TAO_DynamicAny_Loader); } diff --git a/TAO/tao/DynamicAny/DynamicAny.h b/TAO/tao/DynamicAny/DynamicAny.h index 6d8059ff461..6c64249fdca 100644 --- a/TAO/tao/DynamicAny/DynamicAny.h +++ b/TAO/tao/DynamicAny/DynamicAny.h @@ -32,7 +32,7 @@ class TAO_DynamicAny_Export TAO_DynamicAny_Loader : public TAO_Object_Loader { public: /// Constructor - TAO_DynamicAny_Loader (void); + TAO_DynamicAny_Loader (); /// Creates a DynamicAny factory and returns it. virtual CORBA::Object_ptr create_object (CORBA::ORB_ptr orb, @@ -40,7 +40,7 @@ public: ACE_TCHAR *argv []); /// Used to force the initialization of the ORB code. - static int Initializer (void); + static int Initializer (); }; static int diff --git a/TAO/tao/DynamicInterface/AMH_DSI_Response_Handler.cpp b/TAO/tao/DynamicInterface/AMH_DSI_Response_Handler.cpp index bd5ebe7efa6..52bf4e2517a 100644 --- a/TAO/tao/DynamicInterface/AMH_DSI_Response_Handler.cpp +++ b/TAO/tao/DynamicInterface/AMH_DSI_Response_Handler.cpp @@ -302,11 +302,7 @@ TAO_AMH_DSI_Exception_Holder::_tao_unmarshal ( void TAO_AMH_DSI_Exception_Holder::raise_invoke () { -#if defined (ACE_HAS_CPP11) std::unique_ptr< ::CORBA::Exception> safety (this->exception_); -#else - auto_ptr< ::CORBA::Exception> safety (this->exception_); -#endif /* ACE_HAS_CPP11 */ this->exception_->_raise (); } diff --git a/TAO/tao/DynamicInterface/Context.h b/TAO/tao/DynamicInterface/Context.h index 4076983b754..dd9eb9cfc5a 100644 --- a/TAO/tao/DynamicInterface/Context.h +++ b/TAO/tao/DynamicInterface/Context.h @@ -31,11 +31,7 @@ #include "tao/default_environment.h" #include "ace/Unbounded_Queue.h" -#if defined (ACE_HAS_CPP11) -# include <atomic> -#else -# include "ace/Atomic_Op.h" -#endif /* ACE_HAS_CPP11 */ +#include <atomic> TAO_BEGIN_VERSIONED_NAMESPACE_DECL @@ -113,11 +109,7 @@ namespace CORBA private: /// Reference counter. -#if defined (ACE_HAS_CPP11) std::atomic<uint32_t> refcount_; -#else - ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> refcount_; -#endif /* ACE_HAS_CPP11 */ }; /** @@ -182,11 +174,7 @@ namespace CORBA ContextList &operator= (const ContextList &); /// Reference counter. -#if defined (ACE_HAS_CPP11) std::atomic<uint32_t> refcount_; -#else - ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> refcount_; -#endif /* ACE_HAS_CPP11 */ /// Internal list of typecodes. ACE_Unbounded_Queue<char *> ctx_list_; diff --git a/TAO/tao/DynamicInterface/ExceptionList.h b/TAO/tao/DynamicInterface/ExceptionList.h index db7200985ed..a59a7b059eb 100644 --- a/TAO/tao/DynamicInterface/ExceptionList.h +++ b/TAO/tao/DynamicInterface/ExceptionList.h @@ -30,11 +30,7 @@ #include "tao/Pseudo_VarOut_T.h" #include "ace/Unbounded_Queue.h" -#if defined (ACE_HAS_CPP11) -# include <atomic> -#else -# include "ace/Atomic_Op.h" -#endif /* ACE_HAS_CPP11 */ +#include <atomic> TAO_BEGIN_VERSIONED_NAMESPACE_DECL @@ -106,11 +102,7 @@ namespace CORBA ExceptionList &operator= (const ExceptionList &); /// Reference counter. -#if defined (ACE_HAS_CPP11) std::atomic<uint32_t> refcount_; -#else - ACE_Atomic_Op<TAO_SYNCH_MUTEX, CORBA::ULong> refcount_; -#endif /* ACE_HAS_CPP11 */ /// Internal list of typecodes. ACE_Unbounded_Queue<CORBA::TypeCode_ptr> tc_list_; diff --git a/TAO/tao/DynamicInterface/Request.h b/TAO/tao/DynamicInterface/Request.h index 6613188666b..19054aa74c2 100644 --- a/TAO/tao/DynamicInterface/Request.h +++ b/TAO/tao/DynamicInterface/Request.h @@ -40,11 +40,7 @@ #endif /* TAO_HAS_AMI */ #include "ace/SString.h" -#if defined (ACE_HAS_CPP11) -# include <atomic> -#else -# include "ace/Atomic_Op.h" -#endif /* ACE_HAS_CPP11 */ +#include <atomic> TAO_BEGIN_VERSIONED_NAMESPACE_DECL @@ -248,11 +244,7 @@ namespace CORBA CORBA::Context_ptr ctx_; /// Reference counting. -#if defined (ACE_HAS_CPP11) std::atomic<uint32_t> refcount_; -#else - ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> refcount_; -#endif /* ACE_HAS_CPP11 */ /// Protect the response_received_. TAO_SYNCH_MUTEX lock_; diff --git a/TAO/tao/DynamicInterface/Server_Request.h b/TAO/tao/DynamicInterface/Server_Request.h index 555e1c4f8f7..8532a92c237 100644 --- a/TAO/tao/DynamicInterface/Server_Request.h +++ b/TAO/tao/DynamicInterface/Server_Request.h @@ -29,11 +29,7 @@ #include "tao/TAO_Server_Request.h" #include "tao/CDR.h" -#if defined (ACE_HAS_CPP11) -# include <atomic> -#else -# include "ace/Atomic_Op.h" -#endif /* ACE_HAS_CPP11 */ +#include <atomic> TAO_BEGIN_VERSIONED_NAMESPACE_DECL @@ -150,11 +146,7 @@ namespace CORBA CORBA::Any_ptr exception_; /// Reference counting. -#if defined (ACE_HAS_CPP11) std::atomic<uint32_t> refcount_; -#else - ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> refcount_; -#endif /* ACE_HAS_CPP11 */ /// Request from the ORB. TAO_ServerRequest &orb_server_request_; diff --git a/TAO/tao/Dynamic_TP/DTP_Task.cpp b/TAO/tao/Dynamic_TP/DTP_Task.cpp index 5dac916eede..80a3bbd2dd2 100644 --- a/TAO/tao/Dynamic_TP/DTP_Task.cpp +++ b/TAO/tao/Dynamic_TP/DTP_Task.cpp @@ -345,7 +345,7 @@ TAO_DTP_Task::svc (void) ACE_TEXT ("TAO (%P|%t) - DTP_Task::svc() ") ACE_TEXT ("Decrementing busy_threads_. ") ACE_TEXT ("Busy thread count:%d\n"), - this->busy_threads_.value())); + this->busy_threads_.load())); } ACE_Time_Value tmp_sec = this->thread_idle_time_.to_absolute_time(); @@ -385,7 +385,7 @@ TAO_DTP_Task::svc (void) ACE_TEXT ("TAO (%P|%t) - DTP_Task::svc() ") ACE_TEXT ("Incrementing busy_threads_. ") ACE_TEXT ("Busy thread count:%d\n"), - this->busy_threads_.value ())); + this->busy_threads_.load ())); } } } diff --git a/TAO/tao/Dynamic_TP/DTP_Task.h b/TAO/tao/Dynamic_TP/DTP_Task.h index 73dfeff8651..c39e3b57772 100644 --- a/TAO/tao/Dynamic_TP/DTP_Task.h +++ b/TAO/tao/Dynamic_TP/DTP_Task.h @@ -31,6 +31,7 @@ #include "ace/Synch.h" #include "ace/Containers_T.h" #include "ace/Vector_T.h" +#include <atomic> TAO_BEGIN_VERSIONED_NAMESPACE_DECL @@ -177,7 +178,7 @@ private: size_t num_queue_requests_; /// The number of currently active worker threads. - ACE_Atomic_Op <TAO_SYNCH_MUTEX, unsigned long> busy_threads_; + std::atomic<unsigned long> busy_threads_; /// The queue of pending servant requests (a.k.a. the "request queue"). TAO::CSD::TP_Queue queue_; diff --git a/TAO/tao/Dynamic_TP/DTP_Thread_Pool.cpp b/TAO/tao/Dynamic_TP/DTP_Thread_Pool.cpp index a51873958c1..bfc7bcc1a0d 100644 --- a/TAO/tao/Dynamic_TP/DTP_Thread_Pool.cpp +++ b/TAO/tao/Dynamic_TP/DTP_Thread_Pool.cpp @@ -519,11 +519,7 @@ CORBA::ULong TAO_DTP_Thread_Pool_Manager::create_threadpool_helper (TAO_DTP_Thread_Pool *thread_pool) { // Make sure of safe deletion in case of errors. -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO_DTP_Thread_Pool> safe_thread_pool (thread_pool); -#else - auto_ptr<TAO_DTP_Thread_Pool> safe_thread_pool (thread_pool); -#endif /* ACE_HAS_CPP11 */ // Open the pool. thread_pool->open (); diff --git a/TAO/tao/Dynamic_TP/DTP_Thread_Pool.h b/TAO/tao/Dynamic_TP/DTP_Thread_Pool.h index 2ba8a45bf58..df83f5f3124 100644 --- a/TAO/tao/Dynamic_TP/DTP_Thread_Pool.h +++ b/TAO/tao/Dynamic_TP/DTP_Thread_Pool.h @@ -241,7 +241,6 @@ public: // @} private: - /// @name Helpers // @{ @@ -253,7 +252,6 @@ private: // @} private: - TAO_ORB_Core &orb_core_; THREAD_POOLS thread_pools_; diff --git a/TAO/tao/Environment.h b/TAO/tao/Environment.h index 8b3e2269022..d381afd7329 100644 --- a/TAO/tao/Environment.h +++ b/TAO/tao/Environment.h @@ -74,7 +74,7 @@ namespace CORBA public: /// The default constructor. The environment will hold no /// exceptions. - Environment (void); + Environment (); /// Copy constructor. Environment (const Environment &ACE_TRY_ENV); @@ -83,11 +83,11 @@ namespace CORBA Environment &operator=(const Environment &ACE_TRY_ENV); /// Destructor, release the exception. - ~Environment (void); + ~Environment (); /// Some static methods that need to be defined in every pseudo object static Environment * _duplicate (Environment *); - static Environment * _nil (void); + static Environment * _nil (); /// Return the contained CORBA::Exception. /** @@ -98,7 +98,7 @@ namespace CORBA * "C++ Language Mapping" (formal/00-01-02). Section 1.27 * Environment (page 1-113) */ - CORBA::Exception* exception (void) const; + CORBA::Exception* exception () const; /// Set the contained CORBA::Exception to @a ex /** @@ -114,20 +114,20 @@ namespace CORBA /// Return if the exception is a user exception or a system /// exception. - int exception_type (void) const; + int exception_type () const; /// return the repository ID for the exception. - const char *exception_id (void) const; + const char *exception_id () const; /// Clear the exception. - void clear (void); + void clear (); /// Print the exception to output determined by f. This function /// is not CORBA compliant. void print_exception (const char *info, FILE *f=stdout) const; // = Obtain a default environment to use with TAO. - static CORBA::Environment &default_environment (void); + static CORBA::Environment &default_environment (); // Useful for template programming. typedef CORBA::Environment_ptr _ptr_type; diff --git a/TAO/tao/Exception.h b/TAO/tao/Exception.h index 3e20fd0b4e5..cec1728c15d 100644 --- a/TAO/tao/Exception.h +++ b/TAO/tao/Exception.h @@ -110,25 +110,25 @@ namespace CORBA Exception (const Exception &src); /// Destructor. - virtual ~Exception (void); + virtual ~Exception (); // = To throw the exception (when using the standard mapping). - virtual void _raise (void) const = 0; + virtual void _raise () const = 0; // = The static narrow operations. static Exception * _downcast (Exception * x); static Exception const * _downcast (Exception const * x); /// Return the repository ID of the Exception. - virtual const char * _rep_id (void) const; + virtual const char * _rep_id () const; /// Return the name of the Exception. - virtual const char * _name (void) const; + virtual const char * _name () const; // = These are TAO-specific extensions. /// Will be overridden in the concrete derived classes. - virtual CORBA::TypeCode_ptr _tao_type (void) const = 0; + virtual CORBA::TypeCode_ptr _tao_type () const = 0; /// Print the exception to output determined by @a f. /** @@ -146,7 +146,7 @@ namespace CORBA /// Returns a string containing information about the exception. This /// function is not CORBA compliant. - virtual ACE_CString _info (void) const = 0; + virtual ACE_CString _info () const = 0; virtual void _tao_encode (TAO_OutputCDR &cdr) const = 0; @@ -177,11 +177,11 @@ namespace CORBA * }; * </PRE> */ - virtual CORBA::Exception *_tao_duplicate (void) const = 0; + virtual CORBA::Exception *_tao_duplicate () const = 0; protected: /// Default constructor. - Exception (void); + Exception (); /// Assignment operator. Exception & operator = (const Exception & src); diff --git a/TAO/tao/Exception_Data.h b/TAO/tao/Exception_Data.h index e10b104bf0c..071d6cfd8dc 100644 --- a/TAO/tao/Exception_Data.h +++ b/TAO/tao/Exception_Data.h @@ -35,7 +35,7 @@ namespace TAO // Function pointer returning a pointer to CORBA::Exception. This is used to // describe the allocator for user-defined exceptions that are used internally // by the interpreter. - typedef CORBA::Exception* (*TAO_Exception_Alloc) (void); + typedef CORBA::Exception* (*TAO_Exception_Alloc) (); /** * @struct Exception_Data diff --git a/TAO/tao/Fault_Tolerance_Service.h b/TAO/tao/Fault_Tolerance_Service.h index 5a6e4c7e7e4..e7bd1f7e1af 100644 --- a/TAO/tao/Fault_Tolerance_Service.h +++ b/TAO/tao/Fault_Tolerance_Service.h @@ -41,16 +41,16 @@ class TAO_Export TAO_Fault_Tolerance_Service public: /// Ctor - TAO_Fault_Tolerance_Service (void); + TAO_Fault_Tolerance_Service (); /// Dtor - ~TAO_Fault_Tolerance_Service (void); + ~TAO_Fault_Tolerance_Service (); /// Initialize the internal data structures void init (TAO_ORB_Core *orb_core); /// Return the underlying callback object - TAO_Service_Callbacks *service_callback (void); + TAO_Service_Callbacks *service_callback (); private: void operator= (const TAO_Fault_Tolerance_Service &); diff --git a/TAO/tao/Fixed_Array_Argument_T.h b/TAO/tao/Fixed_Array_Argument_T.h index a33d537d286..83b5f0a45c9 100644 --- a/TAO/tao/Fixed_Array_Argument_T.h +++ b/TAO/tao/Fixed_Array_Argument_T.h @@ -41,7 +41,7 @@ namespace TAO #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - typename S_forany::_slice_type const * arg (void) const; + typename S_forany::_slice_type const * arg () const; protected: S_forany x_; @@ -60,9 +60,9 @@ namespace TAO { public: In_Fixed_Array_Clonable_Argument_T (const typename S_forany::_slice_type * x); - virtual ~In_Fixed_Array_Clonable_Argument_T (void); + virtual ~In_Fixed_Array_Clonable_Argument_T (); - virtual Argument* clone (void); + virtual Argument* clone (); private: bool is_clone_; @@ -86,7 +86,7 @@ namespace TAO #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - typename S_forany::_slice_type * arg (void); + typename S_forany::_slice_type * arg (); private: S_forany x_; @@ -109,7 +109,7 @@ namespace TAO #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - typename S_forany::_slice_type *& arg (void); + typename S_forany::_slice_type *& arg (); private: S_forany x_; @@ -127,16 +127,16 @@ namespace TAO class Ret_Fixed_Array_Argument_T : public RetArgument { public: - Ret_Fixed_Array_Argument_T (void); + Ret_Fixed_Array_Argument_T (); virtual CORBA::Boolean demarshal (TAO_InputCDR &); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - typename S_forany::_slice_type *& arg (void); + typename S_forany::_slice_type *& arg (); - typename S_forany::_slice_type * excp (void); - typename S_forany::_slice_type * retn (void); + typename S_forany::_slice_type * excp (); + typename S_forany::_slice_type * retn (); private: S_var x_; diff --git a/TAO/tao/Fixed_Size_Argument_T.h b/TAO/tao/Fixed_Size_Argument_T.h index 706229b5a46..6369762f23d 100644 --- a/TAO/tao/Fixed_Size_Argument_T.h +++ b/TAO/tao/Fixed_Size_Argument_T.h @@ -39,7 +39,7 @@ namespace TAO #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S const & arg (void) const; + S const & arg () const; protected: S const * x_; @@ -58,9 +58,9 @@ namespace TAO { public: In_Fixed_Size_Clonable_Argument_T (S const & x); - virtual ~In_Fixed_Size_Clonable_Argument_T (void); + virtual ~In_Fixed_Size_Clonable_Argument_T (); - virtual Argument* clone (void); + virtual Argument* clone (); private: bool is_clone_; @@ -84,7 +84,7 @@ namespace TAO #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S & arg (void); + S & arg (); private: S * x_; @@ -107,7 +107,7 @@ namespace TAO #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S & arg (void); + S & arg (); private: S & x_; @@ -124,15 +124,15 @@ namespace TAO class Ret_Fixed_Size_Argument_T : public RetArgument { public: - Ret_Fixed_Size_Argument_T (void); + Ret_Fixed_Size_Argument_T (); virtual CORBA::Boolean demarshal (TAO_InputCDR &); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S & arg (void); - S excp (void); - S retn (void); + S & arg (); + S excp (); + S retn (); protected: S x_; diff --git a/TAO/tao/GIOP_Fragmentation_Strategy.h b/TAO/tao/GIOP_Fragmentation_Strategy.h index be6d1f43034..47ff70e4865 100644 --- a/TAO/tao/GIOP_Fragmentation_Strategy.h +++ b/TAO/tao/GIOP_Fragmentation_Strategy.h @@ -38,10 +38,10 @@ class TAO_Export TAO_GIOP_Fragmentation_Strategy { public: /// Constructor - TAO_GIOP_Fragmentation_Strategy (void) {} + TAO_GIOP_Fragmentation_Strategy () {} /// Destructor. - virtual ~TAO_GIOP_Fragmentation_Strategy (void); + virtual ~TAO_GIOP_Fragmentation_Strategy (); /// Fragment the (potentially partially) encoded GIOP message. /** @@ -68,9 +68,10 @@ public: ACE_CDR::ULong pending_length) = 0; private: - // Disallow copying and assignment. - TAO_GIOP_Fragmentation_Strategy (TAO_GIOP_Fragmentation_Strategy const &); - void operator= (TAO_GIOP_Fragmentation_Strategy const &); + TAO_GIOP_Fragmentation_Strategy (TAO_GIOP_Fragmentation_Strategy const &) = delete; + void operator= (TAO_GIOP_Fragmentation_Strategy const &) = delete; + TAO_GIOP_Fragmentation_Strategy (TAO_GIOP_Fragmentation_Strategy&&) = delete; + void operator= (TAO_GIOP_Fragmentation_Strategy &&) = delete; }; TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/tao/GIOP_Message_Base.h b/TAO/tao/GIOP_Message_Base.h index f726e620176..73faaaa4a49 100644 --- a/TAO/tao/GIOP_Message_Base.h +++ b/TAO/tao/GIOP_Message_Base.h @@ -54,7 +54,7 @@ public: size_t input_cdr_size = ACE_CDR::DEFAULT_BUFSIZE); /// Destructor - ~TAO_GIOP_Message_Base (void); + ~TAO_GIOP_Message_Base (); /// Initialize the underlying state object based on the @a major and /// @a minor revision numbers @@ -121,13 +121,13 @@ public: const CORBA::Exception &x); /// Header length - size_t header_length (void) const; + size_t header_length () const; /// The header length of a fragment size_t fragment_header_length ( const TAO_GIOP_Message_Version& giop_version) const; - TAO_OutputCDR &out_stream (void); + TAO_OutputCDR &out_stream (); /// Consolidate fragmented message with associated fragments, being /// stored within this class. If reliable transport is used (like @@ -149,7 +149,7 @@ public: int discard_fragmented_message (const TAO_Queued_Data *cancel_request); /// Outgoing GIOP message fragmentation strategy. - TAO_GIOP_Fragmentation_Strategy * fragmentation_strategy (void); + TAO_GIOP_Fragmentation_Strategy * fragmentation_strategy (); /// Is the messaging object ready for processing BiDirectional /// request/response? diff --git a/TAO/tao/GIOP_Message_Generator_Parser.h b/TAO/tao/GIOP_Message_Generator_Parser.h index 78a429daa0a..7a901a16a41 100644 --- a/TAO/tao/GIOP_Message_Generator_Parser.h +++ b/TAO/tao/GIOP_Message_Generator_Parser.h @@ -46,7 +46,7 @@ class TAO_ServerRequest; class TAO_GIOP_Message_Generator_Parser { public: - virtual ~TAO_GIOP_Message_Generator_Parser (void); + virtual ~TAO_GIOP_Message_Generator_Parser (); /// Write the request header in to @a msg virtual bool write_request_header ( @@ -93,15 +93,15 @@ public: TAO_Pluggable_Reply_Params ¶ms); /// Our versions - virtual CORBA::Octet major_version (void) const = 0; - virtual CORBA::Octet minor_version (void) const = 0; + virtual CORBA::Octet major_version () const = 0; + virtual CORBA::Octet minor_version () const = 0; /// Is the messaging object ready for processing BiDirectional /// request/response? - virtual bool is_ready_for_bidirectional (void) const; + virtual bool is_ready_for_bidirectional () const; /// The header length of a fragment - virtual size_t fragment_header_length (void) const = 0; + virtual size_t fragment_header_length () const = 0; }; TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/tao/GIOP_Message_Generator_Parser_10.h b/TAO/tao/GIOP_Message_Generator_Parser_10.h index 936913a0b27..b4c277bb3d2 100644 --- a/TAO/tao/GIOP_Message_Generator_Parser_10.h +++ b/TAO/tao/GIOP_Message_Generator_Parser_10.h @@ -75,11 +75,11 @@ public: TAO_Pluggable_Reply_Params ¶ms); /// Our versions - virtual CORBA::Octet major_version (void) const; - virtual CORBA::Octet minor_version (void) const; + virtual CORBA::Octet major_version () const; + virtual CORBA::Octet minor_version () const; /// The header length of a fragment - virtual size_t fragment_header_length (void) const; + virtual size_t fragment_header_length () const; }; TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/tao/GIOP_Message_Generator_Parser_11.h b/TAO/tao/GIOP_Message_Generator_Parser_11.h index 23f5c33822c..b63749b7a5d 100644 --- a/TAO/tao/GIOP_Message_Generator_Parser_11.h +++ b/TAO/tao/GIOP_Message_Generator_Parser_11.h @@ -34,7 +34,7 @@ class TAO_GIOP_Message_Generator_Parser_11 { public: /// Our minor version - virtual CORBA::Octet minor_version (void) const; + virtual CORBA::Octet minor_version () const; }; TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/tao/GIOP_Message_Generator_Parser_12.h b/TAO/tao/GIOP_Message_Generator_Parser_12.h index b188879bdfb..8bfb114ce92 100644 --- a/TAO/tao/GIOP_Message_Generator_Parser_12.h +++ b/TAO/tao/GIOP_Message_Generator_Parser_12.h @@ -77,15 +77,15 @@ public: TAO_Pluggable_Reply_Params ¶ms); /// Our versions - virtual CORBA::Octet major_version (void) const; - virtual CORBA::Octet minor_version (void) const; + virtual CORBA::Octet major_version () const; + virtual CORBA::Octet minor_version () const; /// Is the messaging object ready for processing BiDirectional /// request/response? - virtual bool is_ready_for_bidirectional (void) const; + virtual bool is_ready_for_bidirectional () const; /// The header length of a fragment - virtual size_t fragment_header_length (void) const; + virtual size_t fragment_header_length () const; private: /// Marshall the TargetSpecification diff --git a/TAO/tao/GIOP_Message_State.h b/TAO/tao/GIOP_Message_State.h index 8245ff6842b..0619ff42814 100644 --- a/TAO/tao/GIOP_Message_State.h +++ b/TAO/tao/GIOP_Message_State.h @@ -39,7 +39,7 @@ class TAO_Export TAO_GIOP_Message_State { public: /// Constructor - TAO_GIOP_Message_State (void); + TAO_GIOP_Message_State (); /// Parse the message header. /// @@ -50,27 +50,27 @@ public: int parse_message_header (ACE_Message_Block &incoming); /// Return the message size - CORBA::ULong message_size (void) const; + CORBA::ULong message_size () const; /// Return the message size - CORBA::ULong payload_size (void) const; + CORBA::ULong payload_size () const; /// Return the byte order information - CORBA::Octet byte_order (void) const; + CORBA::Octet byte_order () const; /// Return the message type - GIOP::MsgType message_type (void) const; + GIOP::MsgType message_type () const; /// Return the more fragments - CORBA::Boolean more_fragments (void) const; + CORBA::Boolean more_fragments () const; void more_fragments (CORBA::Boolean fragment); /// Get the GIOP version - TAO_GIOP_Message_Version const &giop_version (void) const; + TAO_GIOP_Message_Version const &giop_version () const; /// Return the compressed information - CORBA::Boolean compressed (void) const; + CORBA::Boolean compressed () const; private: /// Parse the message header. diff --git a/TAO/tao/GIOP_Message_Version.h b/TAO/tao/GIOP_Message_Version.h index 517c40658fa..4605ad57ff4 100644 --- a/TAO/tao/GIOP_Message_Version.h +++ b/TAO/tao/GIOP_Message_Version.h @@ -41,13 +41,13 @@ public: CORBA::Octet major; /// Get major version number - CORBA::Octet major_version (void) const; + CORBA::Octet major_version () const; /// Minor version number CORBA::Octet minor; /// Get minor version number - CORBA::Octet minor_version (void) const; + CORBA::Octet minor_version () const; /// Copy constructor TAO_GIOP_Message_Version (const TAO_GIOP_Message_Version &src); diff --git a/TAO/tao/Generic_Sequence_T.h b/TAO/tao/Generic_Sequence_T.h index 33e507af217..07a46d0d6f4 100644 --- a/TAO/tao/Generic_Sequence_T.h +++ b/TAO/tao/Generic_Sequence_T.h @@ -78,7 +78,7 @@ public: typedef range_checking<value_type,true> range; /// Default constructor. - generic_sequence(void) + generic_sequence() : maximum_(allocation_traits::default_maximum()) , length_(0) , buffer_(allocation_traits::default_buffer_allocation()) diff --git a/TAO/tao/IORInterceptor_Adapter.h b/TAO/tao/IORInterceptor_Adapter.h index f15092f2e8a..f85484f38a0 100644 --- a/TAO/tao/IORInterceptor_Adapter.h +++ b/TAO/tao/IORInterceptor_Adapter.h @@ -59,7 +59,7 @@ class TAO_Root_POA; class TAO_Export TAO_IORInterceptor_Adapter { public: - virtual ~TAO_IORInterceptor_Adapter (void); + virtual ~TAO_IORInterceptor_Adapter (); virtual void add_interceptor ( PortableInterceptor::IORInterceptor_ptr interceptor) = 0; @@ -68,7 +68,7 @@ public: PortableInterceptor::IORInterceptor_ptr interceptor, const CORBA::PolicyList& policies) = 0; - virtual void destroy_interceptors (void) = 0; + virtual void destroy_interceptors () = 0; /// Call the IORInterceptor::establish_components() method on all /// registered IORInterceptors. diff --git a/TAO/tao/IORManipulation/IORManipulation.cpp b/TAO/tao/IORManipulation/IORManipulation.cpp index 37b5284328f..8eac641e59e 100644 --- a/TAO/tao/IORManipulation/IORManipulation.cpp +++ b/TAO/tao/IORManipulation/IORManipulation.cpp @@ -46,11 +46,7 @@ TAO_IOR_Manipulation_impl::merge_iors ( // get the profile lists, start by initialize the composite reference // by using the first Object. Then for each subsequent Object verify // they are the same type and they do not have duplicate profiles. -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO_MProfile> tmp_pfiles (iors[0]->_stubobj ()->make_profiles ()); -#else - auto_ptr<TAO_MProfile> tmp_pfiles (iors[0]->_stubobj ()->make_profiles ()); -#endif /* ACE_HAS_CPP11 */ if (Merged_Profiles.add_profiles (tmp_pfiles.get ())< 0) throw TAO_IOP::Invalid_IOR (); CORBA::String_var id = @@ -145,11 +141,7 @@ TAO_IOR_Manipulation_impl::remove_profiles ( // initialize with estimated pfile count. TAO_MProfile Diff_Profiles (count); -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO_MProfile> tmp_pfiles (group->_stubobj ()->make_profiles ()); -#else - auto_ptr<TAO_MProfile> tmp_pfiles (group->_stubobj ()->make_profiles ()); -#endif /* ACE_HAS_CPP11 */ if (Diff_Profiles.add_profiles (tmp_pfiles.get ()) < 0) throw TAO_IOP::Invalid_IOR (); @@ -277,13 +269,8 @@ TAO_IOR_Manipulation_impl::is_in_ior ( CORBA::ULong count = 0; TAO_Profile *pfile1 = 0; TAO_Profile *pfile2 = 0; -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO_MProfile> tmp_pfiles1 (ior1->_stubobj ()->make_profiles ()); std::unique_ptr<TAO_MProfile> tmp_pfiles2 (ior2->_stubobj ()->make_profiles ()); -#else - auto_ptr<TAO_MProfile> tmp_pfiles1 (ior1->_stubobj ()->make_profiles ()); - auto_ptr<TAO_MProfile> tmp_pfiles2 (ior2->_stubobj ()->make_profiles ()); -#endif /* ACE_HAS_CPP11 */ tmp_pfiles1->rewind (); while ((pfile1 = tmp_pfiles1->get_next ()) != 0) diff --git a/TAO/tao/Incoming_Message_Queue.h b/TAO/tao/Incoming_Message_Queue.h index 2ad553aad59..fd128efea0c 100644 --- a/TAO/tao/Incoming_Message_Queue.h +++ b/TAO/tao/Incoming_Message_Queue.h @@ -55,15 +55,15 @@ public: TAO_Incoming_Message_Queue (TAO_ORB_Core *orb_core); /// Destructor. - ~TAO_Incoming_Message_Queue (void); + ~TAO_Incoming_Message_Queue (); /// Adding and deleting a node from the queue. - TAO_Queued_Data *dequeue_head (void); - TAO_Queued_Data *dequeue_tail (void); + TAO_Queued_Data *dequeue_head (); + TAO_Queued_Data *dequeue_tail (); int enqueue_tail (TAO_Queued_Data *nd); /// Return the length of the queue.. - CORBA::ULong queue_length (void) const; + CORBA::ULong queue_length () const; private: diff --git a/TAO/tao/Intrusive_Ref_Count_Base_T.h b/TAO/tao/Intrusive_Ref_Count_Base_T.h index c4c6f181b75..69108c9836f 100644 --- a/TAO/tao/Intrusive_Ref_Count_Base_T.h +++ b/TAO/tao/Intrusive_Ref_Count_Base_T.h @@ -20,12 +20,7 @@ #include /**/ "tao/Versioned_Namespace.h" #include "tao/Basic_Types.h" - -#if defined (ACE_HAS_CPP11) -# include <atomic> -#else -# include "ace/Atomic_Op.h" -#endif /* ACE_HAS_CPP11 */ +#include <atomic> TAO_BEGIN_VERSIONED_NAMESPACE_DECL @@ -43,20 +38,16 @@ template <class ACE_LOCK> class TAO_Intrusive_Ref_Count_Base { public: - virtual ~TAO_Intrusive_Ref_Count_Base (void); + virtual ~TAO_Intrusive_Ref_Count_Base (); - void _add_ref (void); - void _remove_ref (void); + void _add_ref (); + void _remove_ref (); protected: - TAO_Intrusive_Ref_Count_Base (void); + TAO_Intrusive_Ref_Count_Base (); private: -#if defined (ACE_HAS_CPP11) std::atomic<uint32_t> refcount_; -#else - ACE_Atomic_Op<ACE_LOCK, unsigned long> refcount_; -#endif /* ACE_HAS_CPP11 */ // Prevent copying/assignment. TAO_Intrusive_Ref_Count_Base (const TAO_Intrusive_Ref_Count_Base&); diff --git a/TAO/tao/Intrusive_Ref_Count_Handle_T.h b/TAO/tao/Intrusive_Ref_Count_Handle_T.h index 1974d07e2bf..2b293e14b47 100644 --- a/TAO/tao/Intrusive_Ref_Count_Handle_T.h +++ b/TAO/tao/Intrusive_Ref_Count_Handle_T.h @@ -65,7 +65,7 @@ class TAO_Intrusive_Ref_Count_Handle public: /// Default Constructor - enters the "nil" state. - TAO_Intrusive_Ref_Count_Handle (void); + TAO_Intrusive_Ref_Count_Handle (); /// Ctor - By default, takes ownership of passed-in "copy" of reference /// to T. But the second argument (bool) can be changed from @@ -83,7 +83,7 @@ public: TAO_Intrusive_Ref_Count_Handle (const TAO_Intrusive_Ref_Count_Handle& b); /// Destructor - ~TAO_Intrusive_Ref_Count_Handle (void); + ~TAO_Intrusive_Ref_Count_Handle (); /// Assignment Operator with T* argument. /// Takes ownership of passed-in "copy" of reference to T. @@ -99,21 +99,21 @@ public: /// Returns true if underlying pointer is NULL (0). /// Returns false otherwise. - bool is_nil (void) const; + bool is_nil () const; /// Used to pass the underlying pointer as an "IN" argument to a method. - T* in (void) const; + T* in () const; /// Used to pass the underlying pointer as an "IN/OUT" argument to a method. - T*& inout (void); + T*& inout (); /// Used to pass the underlying pointer as an "OUT" argument to a method. - T*& out (void); + T*& out (); /// Used to take-away the underlying pointer from this smart pointer object. /// Caller becomes responsibe for the returned "copy" to the reference. /// Always leaves the smart pointer in the "nil" state upon return. - T* _retn (void); + T* _retn (); /// Equality operator allows the refcounted object to be used generically /// as a contained object @@ -124,14 +124,14 @@ private: /// Claim a "copy" of the reference-counted object by adding /// one to its reference counter. Do nothing if this smart pointer /// object is currently in the "nil" state. - void claim (void); + void claim (); /// Drop our "copy" of the reference-counted object by removing /// one from its reference counter. Do nothing if this smart pointer /// object is currently in the "nil" state. /// Note that this method will always leave this smart pointer /// in the "nil" state upon its return. - void drop (void); + void drop (); /// The underlying pointer to the (intrusively) reference-counted object. /// Set to 0 when this smart pointer is in the "nil" state. Otherwise, diff --git a/TAO/tao/Intrusive_Ref_Count_Object_T.h b/TAO/tao/Intrusive_Ref_Count_Object_T.h index c3429bb15e9..1d97550e93e 100644 --- a/TAO/tao/Intrusive_Ref_Count_Object_T.h +++ b/TAO/tao/Intrusive_Ref_Count_Object_T.h @@ -38,13 +38,13 @@ class TAO_Intrusive_Ref_Count_Object : public TAO_Intrusive_Ref_Count_Base <ACE_ public: /// take ownership of obj. TAO_Intrusive_Ref_Count_Object (OBJ* obj); - virtual ~TAO_Intrusive_Ref_Count_Object (void); + virtual ~TAO_Intrusive_Ref_Count_Object (); OBJ* get () const; private: // Prevent default constructor used. - TAO_Intrusive_Ref_Count_Object (void); + TAO_Intrusive_Ref_Count_Object (); // Prevent copying/assignment. TAO_Intrusive_Ref_Count_Object (const TAO_Intrusive_Ref_Count_Object&); diff --git a/TAO/tao/Invocation_Adapter.h b/TAO/tao/Invocation_Adapter.h index 68e9bc4d40b..9f2304da7f4 100644 --- a/TAO/tao/Invocation_Adapter.h +++ b/TAO/tao/Invocation_Adapter.h @@ -111,7 +111,7 @@ namespace TAO TAO::Invocation_Mode mode = TAO_SYNCHRONOUS_INVOCATION, bool has_in_args = true); - virtual ~Invocation_Adapter (void); + virtual ~Invocation_Adapter (); /// Invoke the target, and used by the generated code. /** @@ -231,7 +231,7 @@ namespace TAO bool get_timeout (TAO_Stub *stub, ACE_Time_Value &val); /// Helper method that extracts TAO_Stub from the target object. - TAO_Stub *get_stub (void) const; + TAO_Stub *get_stub () const; /// Helper method that takes care of setting the profiles within /// the stub object if the target gets forwarded @@ -245,7 +245,7 @@ namespace TAO private: /// Don't allow default initializations - Invocation_Adapter (void); + Invocation_Adapter (); // Prevent copying Invocation_Adapter (Invocation_Adapter const &); diff --git a/TAO/tao/Invocation_Base.h b/TAO/tao/Invocation_Base.h index 91e2c97e768..c44772a678d 100644 --- a/TAO/tao/Invocation_Base.h +++ b/TAO/tao/Invocation_Base.h @@ -57,11 +57,11 @@ namespace TAO class TAO_Export Invocation_Base { public: - virtual ~Invocation_Base (void); + virtual ~Invocation_Base (); /// Accessor and mutator methods //@{ - TAO_Stub *stub (void) const; + TAO_Stub *stub () const; /// Accessor and mutator methods for forwarded object /// locations. @@ -69,7 +69,7 @@ namespace TAO * These access methods have to be public so that the * PortableInterceptor can use them */ - CORBA::Object_ptr forwarded_reference (void); + CORBA::Object_ptr forwarded_reference (); void forwarded_reference (CORBA::Object_ptr o); /// Accessors for the service context list. @@ -78,33 +78,33 @@ namespace TAO * elsewhere. Providing this accessor helps the PI to access this * list in both remote and collocated mode. */ - TAO_Service_Context &request_service_context (void); - TAO_Service_Context &reply_service_context (void); + TAO_Service_Context &request_service_context (); + TAO_Service_Context &reply_service_context (); /// Return the forwarded object location by loosing ownership. - CORBA::Object_ptr steal_forwarded_reference (void); + CORBA::Object_ptr steal_forwarded_reference (); /// Return the effective target of the invocation. /** * Please see the PortableInterceptor specification in the CORBA * spec to understand what effective target means. */ - CORBA::Object_ptr effective_target (void) const; + CORBA::Object_ptr effective_target () const; /// Return the target object - CORBA::Object_ptr target (void) const; + CORBA::Object_ptr target () const; /// Does this invocation return a response? - CORBA::Boolean response_expected (void) const; + CORBA::Boolean response_expected () const; /// Accessor of reply_status of the invocation. - GIOP::ReplyStatusType reply_status (void) const; + GIOP::ReplyStatusType reply_status () const; /// Mutator of reply_status of the invocation. void reply_status (GIOP::ReplyStatusType s); /// The operaton details of the invocation - TAO_Operation_Details &operation_details (void); + TAO_Operation_Details &operation_details (); //@} protected: @@ -174,19 +174,19 @@ namespace TAO * code must be able to modify this value and use that value * at a later time without being forced to use TSS. */ - size_t &stack_size (void); + size_t &stack_size (); - CORBA::Exception *caught_exception (void); + CORBA::Exception *caught_exception (); /// Change the exception status. void exception (CORBA::Exception *exception); /// Invocation status. - TAO::Invocation_Status invoke_status (void) const; + TAO::Invocation_Status invoke_status () const; /// Mutator to set the invocation status. void invoke_status (Invocation_Status s); - PortableInterceptor::ReplyStatus pi_reply_status (void) const; + PortableInterceptor::ReplyStatus pi_reply_status () const; /// Accessor used to determine if the current invocation is part /// of a remote request, and if not, it will be considered to be @@ -196,22 +196,22 @@ namespace TAO protected: /// Helper method to invoke send_request interception call to all /// the registered interceptors. - Invocation_Status send_request_interception (void); + Invocation_Status send_request_interception (); /// Helper method to invoke receive_reply interception call to all /// the registered interceptors. - Invocation_Status receive_reply_interception (void); + Invocation_Status receive_reply_interception (); /// Helper method to invoke receive_other interception call to all /// the registered interceptors. - Invocation_Status receive_other_interception (void); + Invocation_Status receive_other_interception (); /// Helper methods to handle interception calls when exceptions /// are thrown by the PortableInterceptor. PortableInterceptor::ReplyStatus handle_any_exception (CORBA::Exception * e); - PortableInterceptor::ReplyStatus handle_all_exception (void); + PortableInterceptor::ReplyStatus handle_all_exception (); protected: /// The client requestor adapter diff --git a/TAO/tao/Load_Protocol_Factory_T.h b/TAO/tao/Load_Protocol_Factory_T.h index 29a2519aa05..af0c7f18731 100644 --- a/TAO/tao/Load_Protocol_Factory_T.h +++ b/TAO/tao/Load_Protocol_Factory_T.h @@ -33,11 +33,7 @@ namespace TAO const char *name) { TAO_Protocol_Factory *protocol_factory = 0; -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO_Protocol_Factory> safe_protocol_factory; -#else - auto_ptr<TAO_Protocol_Factory> safe_protocol_factory; -#endif /* ACE_HAS_CPP11 */ TAO_Protocol_Item *item = 0; diff --git a/TAO/tao/LocalObject.h b/TAO/tao/LocalObject.h index 0e11bcd646d..bd6732bd654 100644 --- a/TAO/tao/LocalObject.h +++ b/TAO/tao/LocalObject.h @@ -46,13 +46,13 @@ namespace CORBA public: /// Destructor - virtual ~LocalObject (void); + virtual ~LocalObject (); /// Increment the ref count static LocalObject_ptr _duplicate (LocalObject_ptr obj); /// Return a NIL object - static LocalObject_ptr _nil (void); + static LocalObject_ptr _nil (); /** * @todo Narrowing a LocalObject to a CORBA::Object is broken @@ -66,17 +66,17 @@ namespace CORBA #if (TAO_HAS_MINIMUM_CORBA == 0) /// Always returns false. - virtual CORBA::Boolean _non_existent (void); + virtual CORBA::Boolean _non_existent (); /// Get the repository id. - virtual char * _repository_id (void); + virtual char * _repository_id (); #if ! defined (CORBA_E_COMPACT) && ! defined (CORBA_E_MICRO) /// Gets info about object from the Interface Repository. - virtual CORBA::InterfaceDef_ptr _get_interface (void); + virtual CORBA::InterfaceDef_ptr _get_interface (); /// Throws NO_IMPLEMENT. - virtual CORBA::Object_ptr _get_component (void); + virtual CORBA::Object_ptr _get_component (); virtual void _create_request (CORBA::Context_ptr ctx, const char * operation, @@ -139,12 +139,12 @@ namespace CORBA */ virtual CORBA::Boolean _is_equivalent (CORBA::Object_ptr other_obj); - virtual CORBA::ORB_ptr _get_orb (void); + virtual CORBA::ORB_ptr _get_orb (); // = TAO extensions /// Throws CORBA::NO_IMPLEMENT. - virtual TAO::ObjectKey * _key (void); + virtual TAO::ObjectKey * _key (); /// Useful for template programming. typedef LocalObject_ptr _ptr_type; @@ -156,7 +156,7 @@ namespace CORBA /** * Make it protected to prevent instantiation of this class. */ - LocalObject (void); + LocalObject (); private: /** diff --git a/TAO/tao/MMAP_Allocator.h b/TAO/tao/MMAP_Allocator.h index 11f2a09c8f0..2967593191a 100644 --- a/TAO/tao/MMAP_Allocator.h +++ b/TAO/tao/MMAP_Allocator.h @@ -58,9 +58,10 @@ public: off_t offset (void * p); private: - // Disallow copying. - TAO_MMAP_Allocator (TAO_MMAP_Allocator const &); - void operator= (TAO_MMAP_Allocator const &); + TAO_MMAP_Allocator (TAO_MMAP_Allocator const &) = delete; + void operator= (TAO_MMAP_Allocator const &) = delete; + TAO_MMAP_Allocator (TAO_MMAP_Allocator &&) = delete; + void operator= (TAO_MMAP_Allocator &&) = delete; }; TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/tao/MProfile.h b/TAO/tao/MProfile.h index 7d3aa640e01..d00ce8384b7 100644 --- a/TAO/tao/MProfile.h +++ b/TAO/tao/MProfile.h @@ -69,7 +69,7 @@ public: /// Destructor: decrements reference count on all references /// profiles! - ~TAO_MProfile (void); + ~TAO_MProfile (); /// Inits MProfile to hold sz TAO_Profiles. /// NOT THREAD SAFE @@ -88,20 +88,20 @@ public: int grow (CORBA::ULong sz); /// Treat as a circular list. - TAO_Profile *get_cnext (void); + TAO_Profile *get_cnext (); /// Get next profile in list, return 0 at end of list. - TAO_Profile *get_next (void); + TAO_Profile *get_next (); /// Assume a circular list of profiles. - TAO_Profile *get_cprev (void); + TAO_Profile *get_cprev (); /// Get previous profile, stop at beginning of list and return 0. - TAO_Profile *get_prev (void); + TAO_Profile *get_prev (); /// Return a pointer to the current profile, will not increment /// reference pointer. - TAO_Profile *get_current_profile (void); + TAO_Profile *get_current_profile (); /// Return a pointer to the profile referenced by handle void. TAO_Profile *get_profile (TAO_PHandle handle); @@ -109,24 +109,24 @@ public: // rem_profile (TAO_PHandle handle); let's wait. /// Returns the index for the current profile. - TAO_PHandle get_current_handle (void); + TAO_PHandle get_current_handle (); /// Returns the index for the current profile. - TAO_PHandle get_current_handle (void) const; + TAO_PHandle get_current_handle () const; /// Returns the number of profiles stored in the list (last_+1). - CORBA::ULong profile_count (void) const; + CORBA::ULong profile_count () const; /// return the maximum number of profiles that can be stored in this /// container, (size_+1) - CORBA::ULong size (void) const; + CORBA::ULong size () const; /// Return the profile at position <slot>. If <slot> is out of range /// it returns 0. const TAO_Profile* get_profile (CORBA::ULong slot) const; /// Sets the current slot back to 0. - void rewind (void); + void rewind (); /// Return the index of this entry or -1 if it can not be added. /// reference count on profile in incremented! @@ -151,7 +151,7 @@ public: void forward_from (TAO_MProfile *mprofiles); /// Returns a pointer to the profile which was forwarded. - TAO_MProfile *forward_from (void); + TAO_MProfile *forward_from (); /** * Returns true of there is at least one profile in first which @@ -171,7 +171,7 @@ public: protected: /// This method handle the dynamic allocation of the data member /// <policy_list_>. - void create_policy_list (void); + void create_policy_list (); public: /// Sets the policies list associated with the profiles @@ -180,11 +180,11 @@ public: /// Gets the policies list associated with the profiles /// owned by the TAO_MProfile. - CORBA::PolicyList *policy_list (void); + CORBA::PolicyList *policy_list (); protected: /// Initialize the policy list, demarsharling the policy. - void init_policy_list (void); + void init_policy_list (); protected: /// Stores the policy list for the profile of this MProfile. @@ -200,12 +200,12 @@ protected: protected: /// Return the complete list of profiles, this object retains /// ownership! - TAO_Profile **pfiles (void) const; + TAO_Profile **pfiles () const; private: /// Helper method to implement the destructor - void cleanup (void); + void cleanup (); /// A helper to give_profile to be used when share is true. This /// method is used primarily to help the corbaloc parser create a diff --git a/TAO/tao/Messaging/AMH_Response_Handler.cpp b/TAO/tao/Messaging/AMH_Response_Handler.cpp index ed3b08b2b17..f1ab26afb16 100644 --- a/TAO/tao/Messaging/AMH_Response_Handler.cpp +++ b/TAO/tao/Messaging/AMH_Response_Handler.cpp @@ -29,7 +29,7 @@ TAO_AMH_Response_Handler::TAO_AMH_Response_Handler () { } -TAO_AMH_Response_Handler::~TAO_AMH_Response_Handler (void) +TAO_AMH_Response_Handler::~TAO_AMH_Response_Handler () { this->transport_->remove_reference (); @@ -86,7 +86,7 @@ TAO_AMH_Response_Handler::init(TAO_ServerRequest &server_request, } void -TAO_AMH_Response_Handler::_tao_rh_init_reply (void) +TAO_AMH_Response_Handler::_tao_rh_init_reply () { { ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->mutex_); @@ -126,7 +126,7 @@ TAO_AMH_Response_Handler::_tao_rh_init_reply (void) } void -TAO_AMH_Response_Handler::_tao_rh_send_reply (void) +TAO_AMH_Response_Handler::_tao_rh_send_reply () { { ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->mutex_); @@ -311,7 +311,7 @@ TAO_AMH_Response_Handler::_tao_rh_send_location_forward (CORBA::Object_ptr fwd, } void -TAO_AMH_Response_Handler::_remove_ref (void) +TAO_AMH_Response_Handler::_remove_ref () { if (--this->refcount_ == 0) { diff --git a/TAO/tao/Messaging/AMH_Response_Handler.h b/TAO/tao/Messaging/AMH_Response_Handler.h index 703728eba77..a7fbfbcbe69 100644 --- a/TAO/tao/Messaging/AMH_Response_Handler.h +++ b/TAO/tao/Messaging/AMH_Response_Handler.h @@ -74,7 +74,7 @@ public: * Releases the transport and in case of an error, sends the appropriate * exception back to the client */ - virtual ~TAO_AMH_Response_Handler (void); + virtual ~TAO_AMH_Response_Handler (); /** * Stores necessary information from a TAO_Server_Request onto the heap @@ -84,17 +84,17 @@ public: /// @name Mutators for refcount //@{ - virtual void _remove_ref (void); + virtual void _remove_ref (); //@} protected: /// Sets up the various parameters in anticipation of returning a reply /// to the client. return/OUT/INOUT arguments are marshalled into the /// Output stream after this method has been called. - void _tao_rh_init_reply (void); + void _tao_rh_init_reply (); /// Sends the marshalled reply back to the client. - void _tao_rh_send_reply (void); + void _tao_rh_send_reply (); /// Send back an exception to the client. void _tao_rh_send_exception (const CORBA::Exception &ex); diff --git a/TAO/tao/Messaging/AMH_Skeletons.cpp b/TAO/tao/Messaging/AMH_Skeletons.cpp index f2781a1b81e..284ad831305 100644 --- a/TAO/tao/Messaging/AMH_Skeletons.cpp +++ b/TAO/tao/Messaging/AMH_Skeletons.cpp @@ -22,7 +22,7 @@ #include "tao/TAO_Server_Request.h" void -_is_a_amh_Upcall_Command::execute (void) +_is_a_amh_Upcall_Command::execute () { TAO::SArg_Traits< ::ACE_InputCDR::to_boolean>::ret_arg_type retval = TAO::Portable_Server::get_ret_arg< ::ACE_InputCDR::to_boolean> ( @@ -83,7 +83,7 @@ TAO_AMH_Skeletons::_is_a_amh_skel (TAO_ServerRequest & server_request, #if (TAO_HAS_MINIMUM_CORBA == 0) void -_non_existent_amh_Upcall_Command::execute (void) +_non_existent_amh_Upcall_Command::execute () { TAO::SArg_Traits< ::ACE_InputCDR::to_boolean>::ret_arg_type retval = TAO::Portable_Server::get_ret_arg< ::ACE_InputCDR::to_boolean> ( @@ -163,7 +163,7 @@ TAO_AMH_Skeletons::_interface_amh_skel (TAO_ServerRequest & server_request, } void -_get_component_amh_Upcall_Command::execute (void) +_get_component_amh_Upcall_Command::execute () { TAO::SArg_Traits< ::CORBA::Object>::ret_arg_type retval = TAO::Portable_Server::get_ret_arg< ::CORBA::Object> ( @@ -214,7 +214,7 @@ TAO_AMH_Skeletons::_component_amh_skel (TAO_ServerRequest & server_request, void -_repository_id_amh_Upcall_Command::execute (void) +_repository_id_amh_Upcall_Command::execute () { TAO::SArg_Traits< char *>::ret_arg_type retval = TAO::Portable_Server::get_ret_arg< char *> ( diff --git a/TAO/tao/Messaging/AMH_Skeletons.h b/TAO/tao/Messaging/AMH_Skeletons.h index 3157a9c6793..fa6aa742f03 100644 --- a/TAO/tao/Messaging/AMH_Skeletons.h +++ b/TAO/tao/Messaging/AMH_Skeletons.h @@ -61,7 +61,7 @@ public: , args_ (args) {} - virtual void execute (void); + virtual void execute (); private: TAO_ServantBase * const servant_; @@ -89,7 +89,7 @@ public: { } - virtual void execute (void); + virtual void execute (); private: TAO_ServantBase * const servant_; TAO_Operation_Details const * const operation_details_; @@ -116,7 +116,7 @@ public: { } - virtual void execute (void); + virtual void execute (); private: TAO_ServantBase * const servant_; @@ -144,7 +144,7 @@ public: { } - virtual void execute (void); + virtual void execute (); private: TAO_ServantBase * const servant_; diff --git a/TAO/tao/Messaging/AMI_Arguments_Converter_Impl.cpp b/TAO/tao/Messaging/AMI_Arguments_Converter_Impl.cpp index d47234ebb0d..ff0302be5d1 100644 --- a/TAO/tao/Messaging/AMI_Arguments_Converter_Impl.cpp +++ b/TAO/tao/Messaging/AMI_Arguments_Converter_Impl.cpp @@ -120,7 +120,7 @@ TAO_AMI_Arguments_Converter_Impl::handle_corba_exception ( // Initialization and registration of dynamic service object. int -TAO_AMI_Arguments_Converter_Impl::Initializer (void) +TAO_AMI_Arguments_Converter_Impl::Initializer () { return ACE_Service_Config::process_directive ( ace_svc_desc_TAO_AMI_Arguments_Converter_Impl); diff --git a/TAO/tao/Messaging/AMI_Arguments_Converter_Impl.h b/TAO/tao/Messaging/AMI_Arguments_Converter_Impl.h index 6f0ebd8cb1f..59a5ead3ebc 100644 --- a/TAO/tao/Messaging/AMI_Arguments_Converter_Impl.h +++ b/TAO/tao/Messaging/AMI_Arguments_Converter_Impl.h @@ -58,7 +58,7 @@ public: CORBA::Exception *exception); // Used to force the initialization of the ORB code. - static int Initializer (void); + static int Initializer (); }; static int diff --git a/TAO/tao/Messaging/Asynch_Invocation_Adapter.h b/TAO/tao/Messaging/Asynch_Invocation_Adapter.h index c6af67798b7..7175889b3a4 100644 --- a/TAO/tao/Messaging/Asynch_Invocation_Adapter.h +++ b/TAO/tao/Messaging/Asynch_Invocation_Adapter.h @@ -94,7 +94,7 @@ namespace TAO private: /// Don't allow default initializations - Asynch_Invocation_Adapter (void); + Asynch_Invocation_Adapter (); Asynch_Invocation_Adapter (const Asynch_Invocation_Adapter &); Asynch_Invocation_Adapter & operator= (const Asynch_Invocation_Adapter &); diff --git a/TAO/tao/Messaging/Asynch_Reply_Dispatcher.cpp b/TAO/tao/Messaging/Asynch_Reply_Dispatcher.cpp index 31e20589456..a85a96033e8 100644 --- a/TAO/tao/Messaging/Asynch_Reply_Dispatcher.cpp +++ b/TAO/tao/Messaging/Asynch_Reply_Dispatcher.cpp @@ -23,7 +23,7 @@ TAO_Asynch_Reply_Dispatcher::TAO_Asynch_Reply_Dispatcher ( } // Destructor. -TAO_Asynch_Reply_Dispatcher::~TAO_Asynch_Reply_Dispatcher (void) +TAO_Asynch_Reply_Dispatcher::~TAO_Asynch_Reply_Dispatcher () { } @@ -147,7 +147,7 @@ TAO_Asynch_Reply_Dispatcher::dispatch_reply (TAO_Pluggable_Reply_Params ¶ms) } void -TAO_Asynch_Reply_Dispatcher::connection_closed (void) +TAO_Asynch_Reply_Dispatcher::connection_closed () { try { @@ -196,7 +196,7 @@ TAO_Asynch_Reply_Dispatcher::connection_closed (void) // AMI Timeout Handling Begin void -TAO_Asynch_Reply_Dispatcher::reply_timed_out (void) +TAO_Asynch_Reply_Dispatcher::reply_timed_out () { try { diff --git a/TAO/tao/Messaging/Asynch_Reply_Dispatcher.h b/TAO/tao/Messaging/Asynch_Reply_Dispatcher.h index 392487aa8a4..9ecb3b3abb5 100644 --- a/TAO/tao/Messaging/Asynch_Reply_Dispatcher.h +++ b/TAO/tao/Messaging/Asynch_Reply_Dispatcher.h @@ -42,17 +42,17 @@ public: ACE_Allocator *allocator); /// Destructor. - virtual ~TAO_Asynch_Reply_Dispatcher (void); + virtual ~TAO_Asynch_Reply_Dispatcher (); /// @name The Reply Dispatcher methods //@{ virtual int dispatch_reply (TAO_Pluggable_Reply_Params ¶ms); - virtual void connection_closed (void); + virtual void connection_closed (); //@} /// Inform that the reply timed out - virtual void reply_timed_out (void); + virtual void reply_timed_out (); /// Install the timeout handler long schedule_timer (CORBA::ULong request_id, diff --git a/TAO/tao/Messaging/Buffering_Constraint_Policy.cpp b/TAO/tao/Messaging/Buffering_Constraint_Policy.cpp index f6f4993050e..ed468eb16fa 100644 --- a/TAO/tao/Messaging/Buffering_Constraint_Policy.cpp +++ b/TAO/tao/Messaging/Buffering_Constraint_Policy.cpp @@ -31,7 +31,7 @@ TAO_Buffering_Constraint_Policy::TAO_Buffering_Constraint_Policy (const TAO_Buff } CORBA::PolicyType -TAO_Buffering_Constraint_Policy::policy_type (void) +TAO_Buffering_Constraint_Policy::policy_type () { return TAO::BUFFERING_CONSTRAINT_POLICY_TYPE; } @@ -53,7 +53,7 @@ TAO_Buffering_Constraint_Policy::create (const CORBA::Any& val) TAO_Buffering_Constraint_Policy * -TAO_Buffering_Constraint_Policy::clone (void) const +TAO_Buffering_Constraint_Policy::clone () const { TAO_Buffering_Constraint_Policy *copy = 0; ACE_NEW_RETURN (copy, @@ -63,13 +63,13 @@ TAO_Buffering_Constraint_Policy::clone (void) const } TAO::BufferingConstraint -TAO_Buffering_Constraint_Policy::buffering_constraint (void) +TAO_Buffering_Constraint_Policy::buffering_constraint () { return this->buffering_constraint_; } CORBA::Policy_ptr -TAO_Buffering_Constraint_Policy::copy (void) +TAO_Buffering_Constraint_Policy::copy () { TAO_Buffering_Constraint_Policy* servant = 0; ACE_NEW_THROW_EX (servant, @@ -80,12 +80,12 @@ TAO_Buffering_Constraint_Policy::copy (void) } void -TAO_Buffering_Constraint_Policy::destroy (void) +TAO_Buffering_Constraint_Policy::destroy () { } TAO_Cached_Policy_Type -TAO_Buffering_Constraint_Policy::_tao_cached_type (void) const +TAO_Buffering_Constraint_Policy::_tao_cached_type () const { return TAO_CACHED_POLICY_BUFFERING_CONSTRAINT; } diff --git a/TAO/tao/Messaging/Buffering_Constraint_Policy.h b/TAO/tao/Messaging/Buffering_Constraint_Policy.h index 63e207ab560..f65dc35667f 100644 --- a/TAO/tao/Messaging/Buffering_Constraint_Policy.h +++ b/TAO/tao/Messaging/Buffering_Constraint_Policy.h @@ -54,22 +54,22 @@ public: static CORBA::Policy_ptr create (const CORBA::Any& val); /// Returns a copy of @c this. - virtual TAO_Buffering_Constraint_Policy *clone (void) const; + virtual TAO_Buffering_Constraint_Policy *clone () const; // = The TAO::Buffering_Constraint_Policy methods - virtual TAO::BufferingConstraint buffering_constraint (void); + virtual TAO::BufferingConstraint buffering_constraint (); void get_buffering_constraint (TAO::BufferingConstraint &) const; - virtual CORBA::PolicyType policy_type (void); + virtual CORBA::PolicyType policy_type (); - virtual CORBA::Policy_ptr copy (void); + virtual CORBA::Policy_ptr copy (); - virtual void destroy (void); + virtual void destroy (); /// Return the cached policy type for this policy. - virtual TAO_Cached_Policy_Type _tao_cached_type (void) const; + virtual TAO_Cached_Policy_Type _tao_cached_type () const; private: /// The attribute diff --git a/TAO/tao/Messaging/Connection_Timeout_Policy_i.cpp b/TAO/tao/Messaging/Connection_Timeout_Policy_i.cpp index ee9cbf65964..d8ebe3a5c3d 100644 --- a/TAO/tao/Messaging/Connection_Timeout_Policy_i.cpp +++ b/TAO/tao/Messaging/Connection_Timeout_Policy_i.cpp @@ -32,13 +32,13 @@ TAO_ConnectionTimeoutPolicy::TAO_ConnectionTimeoutPolicy ( } TimeBase::TimeT -TAO_ConnectionTimeoutPolicy::relative_expiry (void) +TAO_ConnectionTimeoutPolicy::relative_expiry () { return this->relative_expiry_; } CORBA::PolicyType -TAO_ConnectionTimeoutPolicy::policy_type (void) +TAO_ConnectionTimeoutPolicy::policy_type () { return TAO::CONNECTION_TIMEOUT_POLICY_TYPE; } @@ -119,7 +119,7 @@ TAO_ConnectionTimeoutPolicy::create (const CORBA::Any& val) } TAO_ConnectionTimeoutPolicy * -TAO_ConnectionTimeoutPolicy::clone (void) const +TAO_ConnectionTimeoutPolicy::clone () const { TAO_ConnectionTimeoutPolicy *copy = 0; ACE_NEW_RETURN (copy, @@ -129,7 +129,7 @@ TAO_ConnectionTimeoutPolicy::clone (void) const } CORBA::Policy_ptr -TAO_ConnectionTimeoutPolicy::copy (void) +TAO_ConnectionTimeoutPolicy::copy () { // Future policy implementors: notice how the following code is // exception safe! @@ -143,12 +143,12 @@ TAO_ConnectionTimeoutPolicy::copy (void) } void -TAO_ConnectionTimeoutPolicy::destroy (void) +TAO_ConnectionTimeoutPolicy::destroy () { } TAO_Cached_Policy_Type -TAO_ConnectionTimeoutPolicy::_tao_cached_type (void) const +TAO_ConnectionTimeoutPolicy::_tao_cached_type () const { return TAO_CACHED_POLICY_CONNECTION_TIMEOUT; } diff --git a/TAO/tao/Messaging/Connection_Timeout_Policy_i.h b/TAO/tao/Messaging/Connection_Timeout_Policy_i.h index 839d5024450..02a182a3a54 100644 --- a/TAO/tao/Messaging/Connection_Timeout_Policy_i.h +++ b/TAO/tao/Messaging/Connection_Timeout_Policy_i.h @@ -64,22 +64,22 @@ public: static CORBA::Policy_ptr create (const CORBA::Any& val); /// Returns a copy of <this>. - virtual TAO_ConnectionTimeoutPolicy *clone (void) const; + virtual TAO_ConnectionTimeoutPolicy *clone () const; // = The TAO::ConnectionTinoutPolicy methods - virtual TimeBase::TimeT relative_expiry (void); + virtual TimeBase::TimeT relative_expiry (); - virtual CORBA::PolicyType policy_type (void); + virtual CORBA::PolicyType policy_type (); - virtual CORBA::Policy_ptr copy (void); + virtual CORBA::Policy_ptr copy (); - virtual void destroy (void); + virtual void destroy (); /// Change the CORBA representation to the ACE representation. void set_time_value (ACE_Time_Value &time_value); /// Return the cached policy type for this policy. - virtual TAO_Cached_Policy_Type _tao_cached_type (void) const; + virtual TAO_Cached_Policy_Type _tao_cached_type () const; private: /// The attribute diff --git a/TAO/tao/Messaging/ExceptionHolder_i.cpp b/TAO/tao/Messaging/ExceptionHolder_i.cpp index d96e916f00c..12378b020b4 100644 --- a/TAO/tao/Messaging/ExceptionHolder_i.cpp +++ b/TAO/tao/Messaging/ExceptionHolder_i.cpp @@ -11,7 +11,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL namespace TAO { - ExceptionHolder::ExceptionHolder (void) : + ExceptionHolder::ExceptionHolder () : data_ (0), count_ (0), char_translator_ (0), @@ -47,7 +47,7 @@ namespace TAO this->count_ = exceptions_count; } - void ExceptionHolder::raise_exception (void) + void ExceptionHolder::raise_exception () { TAO_InputCDR _tao_in ((const char*) this->marshaled_exception ().get_buffer (), this->marshaled_exception ().length (), @@ -138,7 +138,7 @@ namespace TAO } CORBA::ValueBase* - ExceptionHolder::_copy_value (void) + ExceptionHolder::_copy_value () { TAO::ExceptionHolder* ret_val = 0; ACE_NEW_THROW_EX (ret_val, @@ -156,7 +156,7 @@ namespace TAO } CORBA::ValueBase * - ExceptionHolderFactory::create_for_unmarshal (void) + ExceptionHolderFactory::create_for_unmarshal () { TAO::ExceptionHolder* ret_val = 0; ACE_NEW_THROW_EX (ret_val, diff --git a/TAO/tao/Messaging/ExceptionHolder_i.h b/TAO/tao/Messaging/ExceptionHolder_i.h index f60bc86a0b0..0a1bda88ebb 100644 --- a/TAO/tao/Messaging/ExceptionHolder_i.h +++ b/TAO/tao/Messaging/ExceptionHolder_i.h @@ -45,7 +45,7 @@ namespace TAO public virtual ::CORBA::DefaultValueRefCountBase { public: - ExceptionHolder (void); + ExceptionHolder (); ExceptionHolder ( ::CORBA::Boolean is_system_exception, @@ -59,16 +59,16 @@ namespace TAO void set_exception_data (::TAO::Exception_Data* data, ::CORBA::ULong exceptions_count); - virtual void raise_exception (void); + virtual void raise_exception (); virtual void raise_exception_with_list ( const ::Dynamic::ExceptionList & exc_list); - virtual CORBA::ValueBase* _copy_value (void); + virtual CORBA::ValueBase* _copy_value (); protected: - virtual ~ExceptionHolder (void); + virtual ~ExceptionHolder (); private: TAO::Exception_Data* data_; @@ -88,7 +88,7 @@ namespace TAO public virtual CORBA::ValueFactoryBase { public: - virtual CORBA::ValueBase * create_for_unmarshal (void); + virtual CORBA::ValueBase * create_for_unmarshal (); }; } diff --git a/TAO/tao/Messaging/Messaging.cpp b/TAO/tao/Messaging/Messaging.cpp index afc92538ba0..afa6ebef8a8 100644 --- a/TAO/tao/Messaging/Messaging.cpp +++ b/TAO/tao/Messaging/Messaging.cpp @@ -7,7 +7,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL int -TAO_Messaging_Initializer::init (void) +TAO_Messaging_Initializer::init () { return ACE_Service_Config::process_directive (ace_svc_desc_TAO_Messaging_Loader); } diff --git a/TAO/tao/Messaging/Messaging.h b/TAO/tao/Messaging/Messaging.h index d9520e92332..7a3aa49b9a0 100644 --- a/TAO/tao/Messaging/Messaging.h +++ b/TAO/tao/Messaging/Messaging.h @@ -33,7 +33,7 @@ class TAO_Messaging_Export TAO_Messaging_Initializer { public: /// Used to force the initialisation of the ORB code. - static int init (void); + static int init (); }; static const int TAO_Requires_Messaging_Initializer = TAO_Messaging_Initializer::init (); diff --git a/TAO/tao/Messaging/Messaging_Loader.cpp b/TAO/tao/Messaging/Messaging_Loader.cpp index bd25ad2d9e2..4b17c72cfa3 100644 --- a/TAO/tao/Messaging/Messaging_Loader.cpp +++ b/TAO/tao/Messaging/Messaging_Loader.cpp @@ -8,12 +8,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Messaging_Loader::TAO_Messaging_Loader (void) +TAO_Messaging_Loader::TAO_Messaging_Loader () : initialized_ (false) { } -TAO_Messaging_Loader::~TAO_Messaging_Loader (void) +TAO_Messaging_Loader::~TAO_Messaging_Loader () { } diff --git a/TAO/tao/Messaging/Messaging_Loader.h b/TAO/tao/Messaging/Messaging_Loader.h index aa9b3247527..8229dd7a1c8 100644 --- a/TAO/tao/Messaging/Messaging_Loader.h +++ b/TAO/tao/Messaging/Messaging_Loader.h @@ -29,10 +29,10 @@ class TAO_Messaging_Export TAO_Messaging_Loader : public ACE_Service_Object { public: /// Constructor. - TAO_Messaging_Loader (void); + TAO_Messaging_Loader (); /// Destructor. - virtual ~TAO_Messaging_Loader (void); + virtual ~TAO_Messaging_Loader (); /// Initialize the Messaging loader hooks. virtual int init (int argc, ACE_TCHAR* []); diff --git a/TAO/tao/Messaging/Messaging_Policy_i.cpp b/TAO/tao/Messaging/Messaging_Policy_i.cpp index a3aadf66749..6bb83e9eee6 100644 --- a/TAO/tao/Messaging/Messaging_Policy_i.cpp +++ b/TAO/tao/Messaging/Messaging_Policy_i.cpp @@ -34,13 +34,13 @@ TAO_RelativeRoundtripTimeoutPolicy::TAO_RelativeRoundtripTimeoutPolicy ( } TimeBase::TimeT -TAO_RelativeRoundtripTimeoutPolicy::relative_expiry (void) +TAO_RelativeRoundtripTimeoutPolicy::relative_expiry () { return this->relative_expiry_; } CORBA::PolicyType -TAO_RelativeRoundtripTimeoutPolicy::policy_type (void) +TAO_RelativeRoundtripTimeoutPolicy::policy_type () { return Messaging::RELATIVE_RT_TIMEOUT_POLICY_TYPE; } @@ -121,7 +121,7 @@ TAO_RelativeRoundtripTimeoutPolicy::create (const CORBA::Any& val) } TAO_RelativeRoundtripTimeoutPolicy * -TAO_RelativeRoundtripTimeoutPolicy::clone (void) const +TAO_RelativeRoundtripTimeoutPolicy::clone () const { TAO_RelativeRoundtripTimeoutPolicy *copy = 0; ACE_NEW_RETURN (copy, @@ -131,7 +131,7 @@ TAO_RelativeRoundtripTimeoutPolicy::clone (void) const } CORBA::Policy_ptr -TAO_RelativeRoundtripTimeoutPolicy::copy (void) +TAO_RelativeRoundtripTimeoutPolicy::copy () { // Future policy implementors: notice how the following code is // exception safe! @@ -145,12 +145,12 @@ TAO_RelativeRoundtripTimeoutPolicy::copy (void) } void -TAO_RelativeRoundtripTimeoutPolicy::destroy (void) +TAO_RelativeRoundtripTimeoutPolicy::destroy () { } TAO_Cached_Policy_Type -TAO_RelativeRoundtripTimeoutPolicy::_tao_cached_type (void) const +TAO_RelativeRoundtripTimeoutPolicy::_tao_cached_type () const { return TAO_CACHED_POLICY_RELATIVE_ROUNDTRIP_TIMEOUT; } @@ -200,7 +200,7 @@ TAO_Sync_Scope_Policy::TAO_Sync_Scope_Policy (const TAO_Sync_Scope_Policy &rhs) } CORBA::PolicyType -TAO_Sync_Scope_Policy::policy_type (void) +TAO_Sync_Scope_Policy::policy_type () { return Messaging::SYNC_SCOPE_POLICY_TYPE; } @@ -268,7 +268,7 @@ TAO_Sync_Scope_Policy::create (const CORBA::Any& val) } TAO_Sync_Scope_Policy * -TAO_Sync_Scope_Policy::clone (void) const +TAO_Sync_Scope_Policy::clone () const { TAO_Sync_Scope_Policy *copy = 0; ACE_NEW_RETURN (copy, @@ -278,13 +278,13 @@ TAO_Sync_Scope_Policy::clone (void) const } Messaging::SyncScope -TAO_Sync_Scope_Policy::synchronization (void) +TAO_Sync_Scope_Policy::synchronization () { return this->synchronization_; } CORBA::Policy_ptr -TAO_Sync_Scope_Policy::copy (void) +TAO_Sync_Scope_Policy::copy () { TAO_Sync_Scope_Policy *servant = 0; ACE_NEW_THROW_EX (servant, @@ -295,11 +295,11 @@ TAO_Sync_Scope_Policy::copy (void) } void -TAO_Sync_Scope_Policy::destroy (void) +TAO_Sync_Scope_Policy::destroy () { } TAO_Cached_Policy_Type -TAO_Sync_Scope_Policy::_tao_cached_type (void) const +TAO_Sync_Scope_Policy::_tao_cached_type () const { return TAO_CACHED_POLICY_SYNC_SCOPE; } diff --git a/TAO/tao/Messaging/Messaging_Policy_i.h b/TAO/tao/Messaging/Messaging_Policy_i.h index ba8ad68fcc5..27901cb7115 100644 --- a/TAO/tao/Messaging/Messaging_Policy_i.h +++ b/TAO/tao/Messaging/Messaging_Policy_i.h @@ -57,22 +57,22 @@ public: static CORBA::Policy_ptr create (const CORBA::Any& val); /// Returns a copy of @c this. - virtual TAO_RelativeRoundtripTimeoutPolicy *clone (void) const; + virtual TAO_RelativeRoundtripTimeoutPolicy *clone () const; // = The Messaging::RelativeRoundtripTimeoutPolicy methods - virtual TimeBase::TimeT relative_expiry (void); + virtual TimeBase::TimeT relative_expiry (); - virtual CORBA::PolicyType policy_type (void); + virtual CORBA::PolicyType policy_type (); - virtual CORBA::Policy_ptr copy (void); + virtual CORBA::Policy_ptr copy (); - virtual void destroy (void); + virtual void destroy (); /// Change the CORBA representation to the ACE representation. void set_time_value (ACE_Time_Value &time_value); /// Return the cached policy type for this policy. - virtual TAO_Cached_Policy_Type _tao_cached_type (void) const; + virtual TAO_Cached_Policy_Type _tao_cached_type () const; private: /// The attribute @@ -117,22 +117,22 @@ public: static CORBA::Policy_ptr create (const CORBA::Any& val); /// Returns a copy of <this>. - virtual TAO_Sync_Scope_Policy *clone (void) const; + virtual TAO_Sync_Scope_Policy *clone () const; // = The Messaging::SyncScopePolicy methods. - virtual Messaging::SyncScope synchronization (void); + virtual Messaging::SyncScope synchronization (); void get_synchronization (Messaging::SyncScope &synchronization) const; - virtual CORBA::PolicyType policy_type (void); + virtual CORBA::PolicyType policy_type (); - virtual CORBA::Policy_ptr copy (void); + virtual CORBA::Policy_ptr copy (); - virtual void destroy (void); + virtual void destroy (); // Return the cached policy type for this policy. - virtual TAO_Cached_Policy_Type _tao_cached_type (void) const; + virtual TAO_Cached_Policy_Type _tao_cached_type () const; private: /// The attribute diff --git a/TAO/tao/Muxed_TMS.h b/TAO/tao/Muxed_TMS.h index c31dbb46898..58bbe6fdbf3 100644 --- a/TAO/tao/Muxed_TMS.h +++ b/TAO/tao/Muxed_TMS.h @@ -51,11 +51,11 @@ public: TAO_Muxed_TMS (TAO_Transport *transport); /// Destructor. - virtual ~TAO_Muxed_TMS (void); + virtual ~TAO_Muxed_TMS (); /// Generate and return an unique request id for the current /// invocation. - virtual CORBA::ULong request_id (void); + virtual CORBA::ULong request_id (); // = Please read the documentation in the TAO_Transport_Mux_Strategy // class. @@ -66,10 +66,10 @@ public: virtual int dispatch_reply (TAO_Pluggable_Reply_Params ¶ms); virtual int reply_timed_out (CORBA::ULong request_id); - virtual bool idle_after_send (void); - virtual bool idle_after_reply (void); - virtual void connection_closed (void); - virtual bool has_request (void); + virtual bool idle_after_send (); + virtual bool idle_after_reply (); + virtual void connection_closed (); + virtual bool has_request (); private: void operator= (const TAO_Muxed_TMS &); @@ -97,7 +97,7 @@ private: /// Table of <Request ID, Reply Dispatcher> pairs. REQUEST_DISPATCHER_TABLE dispatcher_table_; - int clear_cache_i (void); + int clear_cache_i (); }; TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/tao/NVList_Adapter.h b/TAO/tao/NVList_Adapter.h index 22d33393918..7b961a81f0e 100644 --- a/TAO/tao/NVList_Adapter.h +++ b/TAO/tao/NVList_Adapter.h @@ -40,7 +40,7 @@ namespace CORBA class TAO_Export TAO_NVList_Adapter : public ACE_Service_Object { public: - virtual ~TAO_NVList_Adapter (void); + virtual ~TAO_NVList_Adapter (); virtual void create_list (CORBA::Long count, CORBA::NVList_ptr &new_list) = 0; diff --git a/TAO/tao/Nested_Upcall_Guard.h b/TAO/tao/Nested_Upcall_Guard.h index 60c95f9e8ca..3673bae0fde 100644 --- a/TAO/tao/Nested_Upcall_Guard.h +++ b/TAO/tao/Nested_Upcall_Guard.h @@ -84,9 +84,10 @@ namespace TAO private: Nested_Upcall_Guard (void); - /// Disallow copying and assignment. - Nested_Upcall_Guard (const Nested_Upcall_Guard&); - Nested_Upcall_Guard &operator= (const Nested_Upcall_Guard&); + Nested_Upcall_Guard (const Nested_Upcall_Guard&) = delete; + Nested_Upcall_Guard &operator= (const Nested_Upcall_Guard&) = delete; + Nested_Upcall_Guard (Nested_Upcall_Guard&&) = delete; + Nested_Upcall_Guard &operator= (Nested_Upcall_Guard&&) = delete; private: /// Pointer to the transport that we plan to use. diff --git a/TAO/tao/Null_Fragmentation_Strategy.h b/TAO/tao/Null_Fragmentation_Strategy.h index a24b532a95d..6efc37b0450 100644 --- a/TAO/tao/Null_Fragmentation_Strategy.h +++ b/TAO/tao/Null_Fragmentation_Strategy.h @@ -45,9 +45,10 @@ public: virtual int fragment (TAO_OutputCDR &, ACE_CDR::ULong, ACE_CDR::ULong); private: - // Disallow copying and assignment. - TAO_Null_Fragmentation_Strategy (TAO_Null_Fragmentation_Strategy const &); - void operator= (TAO_Null_Fragmentation_Strategy const &); + TAO_Null_Fragmentation_Strategy (TAO_Null_Fragmentation_Strategy const &) = delete; + void operator= (TAO_Null_Fragmentation_Strategy const &) = delete; + TAO_Null_Fragmentation_Strategy (TAO_Null_Fragmentation_Strategy &&) = delete; + void operator= (TAO_Null_Fragmentation_Strategy &&) = delete; }; TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/tao/ORB.h b/TAO/tao/ORB.h index 96650f39713..81e5633180d 100644 --- a/TAO/tao/ORB.h +++ b/TAO/tao/ORB.h @@ -35,11 +35,7 @@ #include "ace/Thread_Mutex.h" #include "ace/Guard_T.h" -#if defined (ACE_HAS_CPP11) -# include <atomic> -#else -# include "ace/Atomic_Op.h" -#endif /* ACE_HAS_CPP11 */ +#include <atomic> TAO_BEGIN_VERSIONED_NAMESPACE_DECL @@ -171,18 +167,18 @@ namespace CORBA class TAO_Export InvalidName : public CORBA::UserException { public: - InvalidName (void); + InvalidName (); InvalidName (const InvalidName &); - ~InvalidName (void); + ~InvalidName (); InvalidName &operator= (const InvalidName &); static InvalidName *_downcast (CORBA::Exception *); - static CORBA::Exception *_alloc (void); + static CORBA::Exception *_alloc (); - virtual CORBA::Exception *_tao_duplicate (void) const; + virtual CORBA::Exception *_tao_duplicate () const; - virtual void _raise (void) const; + virtual void _raise () const; virtual void _tao_encode (TAO_OutputCDR &) const; @@ -209,10 +205,10 @@ namespace CORBA /// Returns a pointer to a nil ORB, i.e., an non-existent ORB. This /// can be used for initialization or in comparisons. - static CORBA::ORB_ptr _nil (void); + static CORBA::ORB_ptr _nil (); /// Return this ORB's ORBid. - char * id (void); + char * id (); /** * Turn a string-ified object reference back into an object @@ -284,7 +280,7 @@ namespace CORBA void get_next_response (CORBA::Request_ptr &req); - CORBA::Boolean poll_next_response (void); + CORBA::Boolean poll_next_response (); /// The ORB TypeCode creation functions. @@ -381,7 +377,7 @@ namespace CORBA * If an error occurs during initialization or at runtime, a CORBA * system exception will be thrown. */ - void run (void); + void run (); /** * Instructs the ORB to initialize itself and run its event loop in @@ -417,7 +413,7 @@ namespace CORBA /// Returns an indication of whether the ORB needs to perform some /// work. - CORBA::Boolean work_pending (void); + CORBA::Boolean work_pending (); /// Returns an indication of whether the ORB needs to perform some /// work but will look for work pending for no more than the @@ -434,7 +430,7 @@ namespace CORBA * is not present; this behavior can be modified by passing an * appropriate @c ACE_Time_Value as described in run(). **/ - void perform_work (void); + void perform_work (); void perform_work (ACE_Time_Value &tv); void perform_work (ACE_Time_Value *tv); @@ -460,7 +456,7 @@ namespace CORBA * the ORB in one thread and trying to service a request in another * thread are not well defined. TAO does not support such cases. */ - void destroy (void); + void destroy (); /** * This method acts as a mini-bootstrapping Naming Service, which is @@ -492,7 +488,7 @@ namespace CORBA /// Returns a sequence of ObjectIds that lists which objects have /// references available via the initial references mechanism. - CORBA::ORB::ObjectIdList_ptr list_initial_services (void); + CORBA::ORB::ObjectIdList_ptr list_initial_services (); #if !defined(CORBA_E_MICRO) CORBA::Policy_ptr create_policy (CORBA::PolicyType type, @@ -510,18 +506,18 @@ namespace CORBA #endif /// Reference counting... - unsigned long _incr_refcount (void); - unsigned long _decr_refcount (void); - unsigned long _refcount (void) const; + unsigned long _incr_refcount (); + unsigned long _decr_refcount (); + unsigned long _refcount () const; /// Set the IOR flag. void _use_omg_ior_format (CORBA::Boolean ior); /// Get the IOR flag. - CORBA::Boolean _use_omg_ior_format (void); + CORBA::Boolean _use_omg_ior_format (); /// Get the ORB core. - TAO_ORB_Core *orb_core (void) const; + TAO_ORB_Core *orb_core () const; /// Factory method that creates an ORB. static CORBA::ORB_ptr _tao_make_ORB (TAO_ORB_Core * orb_core); @@ -532,7 +528,7 @@ namespace CORBA typedef ORB_out _out_type; /// Get the Timeout value - ACE_Time_Value *get_timeout (void); + ACE_Time_Value *get_timeout (); protected: // We must be created via the @c CORBA::ORB_init() function. @@ -543,13 +539,13 @@ namespace CORBA * Protected destructor to enforce proper memory management * through the reference counting mechanism. */ - ~ORB (void); + ~ORB (); /// Resolve the Policy Manager for this ORB. - CORBA::Object_ptr resolve_policy_manager (void); + CORBA::Object_ptr resolve_policy_manager (); /// Resolve the Policy Current for this thread. - CORBA::Object_ptr resolve_policy_current (void); + CORBA::Object_ptr resolve_policy_current (); private: /// Resolve the given service based on the service ID. @@ -568,7 +564,7 @@ namespace CORBA /// Check if ORB has shutdown. If it has, throw the appropriate /// exception. - void check_shutdown (void); + void check_shutdown (); /// Set the timeout value void set_timeout (ACE_Time_Value * timeout); @@ -576,11 +572,7 @@ namespace CORBA private: /// Maintains a reference count of number of instantiations of the /// ORB. -#if defined (ACE_HAS_CPP11) std::atomic<uint32_t> refcount_; -#else - ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> refcount_; -#endif /* ACE_HAS_CPP11 */ /// The ORB_Core that created us.... TAO_ORB_Core * orb_core_; diff --git a/TAO/tao/ORB.inl b/TAO/tao/ORB.inl index b46a2f83819..1043a54de32 100644 --- a/TAO/tao/ORB.inl +++ b/TAO/tao/ORB.inl @@ -26,11 +26,7 @@ CORBA::ORB::_incr_refcount (void) ACE_INLINE unsigned long CORBA::ORB::_refcount (void) const { -#if defined (ACE_HAS_CPP11) return this->refcount_; -#else - return this->refcount_.value (); -#endif /* ACE_HAS_CPP11 */ } ACE_INLINE unsigned long diff --git a/TAO/tao/ORBInitializer_Registry_Adapter.h b/TAO/tao/ORBInitializer_Registry_Adapter.h index 69b2f23f059..7c973c2b44f 100644 --- a/TAO/tao/ORBInitializer_Registry_Adapter.h +++ b/TAO/tao/ORBInitializer_Registry_Adapter.h @@ -46,7 +46,7 @@ namespace TAO : public ACE_Service_Object { public: - virtual ~ORBInitializer_Registry_Adapter (void); + virtual ~ORBInitializer_Registry_Adapter (); /// Register an ORBInitializer with the underlying ORBInitializer /// array. diff --git a/TAO/tao/ORB_Core.cpp b/TAO/tao/ORB_Core.cpp index ac09508d440..cb2d45bff86 100644 --- a/TAO/tao/ORB_Core.cpp +++ b/TAO/tao/ORB_Core.cpp @@ -1966,11 +1966,7 @@ TAO_ORB_Core::root_poa () if (CORBA::is_nil (this->root_poa_.in ())) { -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO_Adapter> poa_adapter (factory->create (this)); -#else - auto_ptr<TAO_Adapter> poa_adapter (factory->create (this)); -#endif /* ACE_HAS_CPP11 */ poa_adapter->open (); // @@ Not exception safe diff --git a/TAO/tao/ORB_Core.h b/TAO/tao/ORB_Core.h index 4437dc95601..35b2b599763 100644 --- a/TAO/tao/ORB_Core.h +++ b/TAO/tao/ORB_Core.h @@ -41,11 +41,7 @@ #include "ace/Lock_Adapter_T.h" #include "ace/TSS_T.h" #include "ace/Service_Config.h" -#if defined (ACE_HAS_CPP11) -# include <atomic> -#else -# include "ace/Atomic_Op.h" -#endif /* ACE_HAS_CPP11 */ +#include <atomic> ACE_BEGIN_VERSIONED_NAMESPACE_DECL class ACE_Data_Block; @@ -171,7 +167,7 @@ public: TAO_ORB_Core (const char* id, ACE_Intrusive_Auto_Ptr<ACE_Service_Gestalt> g); /// Accessor for the ORB parameters. - TAO_ORB_Parameters *orb_params (void); + TAO_ORB_Parameters *orb_params (); /** * @todo @@ -186,46 +182,46 @@ public: */ /// Accessor to the POA current. //@{ - CORBA::Object_ptr poa_current(void); + CORBA::Object_ptr poa_current(); //@} /// Get the connector registry - TAO_Connector_Registry *connector_registry (void); + TAO_Connector_Registry *connector_registry (); /// Get the IOR parser registry - TAO_Parser_Registry *parser_registry (void); + TAO_Parser_Registry *parser_registry (); /// Return pointer to the policy factory registry associated with /// this ORB core. - TAO::PolicyFactory_Registry_Adapter *policy_factory_registry (void); + TAO::PolicyFactory_Registry_Adapter *policy_factory_registry (); /// Return pointer to the orb initializer registry associated with /// this ORB core. Tries to load the PI library if it is not loaded /// yet - TAO::ORBInitializer_Registry_Adapter *orbinitializer_registry (void); + TAO::ORBInitializer_Registry_Adapter *orbinitializer_registry (); TAO_ZIOP_Adapter *ziop_adapter () const; void ziop_adapter (TAO_ZIOP_Adapter *adapter); - TAO_Service_Context_Registry &service_context_registry (void); + TAO_Service_Context_Registry &service_context_registry (); /// Get the protocol factories - TAO_ProtocolFactorySet *protocol_factories (void); + TAO_ProtocolFactorySet *protocol_factories (); /// Get pointer to the ORB. - CORBA::ORB_ptr orb (void); + CORBA::ORB_ptr orb (); /// Wrappers that forward the request to the concurrency strategy. - ACE_Reactor *reactor (void); + ACE_Reactor *reactor (); /// Get the ACE_Thread_Manager - ACE_Thread_Manager *thr_mgr (void); + ACE_Thread_Manager *thr_mgr (); /// Return the RootPOA, or try to load it if not initialized already. - CORBA::Object_ptr root_poa (void); + CORBA::Object_ptr root_poa (); /// Get the adapter registry - TAO_Adapter_Registry &adapter_registry (void); + TAO_Adapter_Registry &adapter_registry (); /// @name Collocation Strategies as configured by the user //@{ @@ -250,17 +246,17 @@ public: /// Set/get the collocation flags //@{ void optimize_collocation_objects (CORBA::Boolean opt); - CORBA::Boolean optimize_collocation_objects (void) const; + CORBA::Boolean optimize_collocation_objects () const; void use_global_collocation (CORBA::Boolean opt); - CORBA::Boolean use_global_collocation (void) const; + CORBA::Boolean use_global_collocation () const; - CORBA::ULong get_collocation_strategy (void) const; + CORBA::ULong get_collocation_strategy () const; //@} /// Get the adapter named "RootPOA" and cache the result, this is an /// optimization for the POA. - TAO_Adapter *poa_adapter (void); + TAO_Adapter *poa_adapter (); /** * @name Access to Factories @@ -272,31 +268,31 @@ public: */ //@{ /// Returns pointer to the resource factory. - TAO_Resource_Factory *resource_factory (void); + TAO_Resource_Factory *resource_factory (); /// Returns pointer to the factory for creating gui resources - TAO::GUIResource_Factory *gui_resource_factory (void); + TAO::GUIResource_Factory *gui_resource_factory (); /// Returns pointer to the client factory. - TAO_Client_Strategy_Factory *client_factory (void); + TAO_Client_Strategy_Factory *client_factory (); /// Returns pointer to the server factory. - TAO_Server_Strategy_Factory *server_factory (void); + TAO_Server_Strategy_Factory *server_factory (); /// Returns pointer to the Protocols_Hooks. - TAO_Protocols_Hooks *protocols_hooks (void); + TAO_Protocols_Hooks *protocols_hooks (); /// Returns a pointer to the Thread Lane Resources Manager. - TAO_Thread_Lane_Resources_Manager &thread_lane_resources_manager (void); + TAO_Thread_Lane_Resources_Manager &thread_lane_resources_manager (); /// Returns a pointer to the Collocation Resolver. - TAO_Collocation_Resolver &collocation_resolver (void); + TAO_Collocation_Resolver &collocation_resolver (); /// Returns a pointer to the Stub factory. - TAO_Stub_Factory *stub_factory (void); + TAO_Stub_Factory *stub_factory (); /// Returns a pointer to the endpoint selector factory. - TAO_Endpoint_Selector_Factory *endpoint_selector_factory (void); + TAO_Endpoint_Selector_Factory *endpoint_selector_factory (); //@} @@ -315,41 +311,41 @@ public: const char *network_priority_protocols_hooks_name); /// Gets the value of TAO_ORB_Core::protocols_hooks__ - TAO_Protocols_Hooks * get_protocols_hooks (void); + TAO_Protocols_Hooks * get_protocols_hooks (); /// Gets the value of TAO_ORB_Core::network_priority_protocols_hooks__ TAO_Network_Priority_Protocols_Hooks * - get_network_priority_protocols_hooks (void); + get_network_priority_protocols_hooks (); /// Sets the value of TAO_ORB_Core::dynamic_adapter_name_. static void dynamic_adapter_name (const char *name); /// Gets the value of TAO_ORB_Core::dynamic_adapter_name_. - static const char *dynamic_adapter_name (void); + static const char *dynamic_adapter_name (); /// Sets the value of TAO_ORB_Core::ifr_client_adapter_name_. static void ifr_client_adapter_name (const char *name); /// Gets the value of TAO_ORB_Core::ifr_client_adapter_name_. - static const char *ifr_client_adapter_name (void); + static const char *ifr_client_adapter_name (); /// Sets the value of TAO_ORB_Core::typecodefactory_adapter_name_. static void typecodefactory_adapter_name (const char *name); /// Gets the value of TAO_ORB_Core::typecodefactory_adapter_name_. - static const char *typecodefactory_adapter_name (void); + static const char *typecodefactory_adapter_name (); /// Sets the value of TAO_ORB_Core::iorinterceptor_adapter_factory_name_. static void iorinterceptor_adapter_factory_name (const char *name); /// Gets the value of TAO_ORB_Core::iorinterceptor_adapter_factory_name_. - static const char *iorinterceptor_adapter_factory_name (void); + static const char *iorinterceptor_adapter_factory_name (); /// Sets the value of TAO_ORB_Core::valuetype_adapter_factory_name. static void valuetype_adapter_factory_name (const char *name); /// Gets the value of TAO_ORB_Core::valuetype_adapter_factory_name. - static const char *valuetype_adapter_factory_name (void); + static const char *valuetype_adapter_factory_name (); /// See if we have a collocated address, if yes, return the POA /// associated with the address. @@ -358,46 +354,46 @@ public: /// This allocator is always TSS and has no locks. It is intended /// for allocating the ACE_Data_Blocks used in *outgoing* CDR /// streams. - ACE_Allocator *output_cdr_dblock_allocator (void); + ACE_Allocator *output_cdr_dblock_allocator (); /// This allocator is always TSS and has no locks. It is intended /// for allocating the buffers used in *outgoing* CDR streams. - ACE_Allocator *output_cdr_buffer_allocator (void); + ACE_Allocator *output_cdr_buffer_allocator (); /// This allocator is always TSS and has no locks. It is intended /// for allocating the ACE_Data_Blocks used in *outgoing* CDR /// streams. - ACE_Allocator *output_cdr_msgblock_allocator (void); + ACE_Allocator *output_cdr_msgblock_allocator (); /// This allocator is global, may or may not have locks. It is /// intended for allocating the ACE_Data_Blocks used in *incoming* /// CDR streams. - ACE_Allocator *input_cdr_dblock_allocator (void); + ACE_Allocator *input_cdr_dblock_allocator (); /// This allocator is always global and has no locks. It is intended /// for allocating the buffers used in *incoming* CDR streams. - ACE_Allocator *input_cdr_buffer_allocator (void); + ACE_Allocator *input_cdr_buffer_allocator (); /// This allocator is always global and has no locks. It is intended /// for allocating the buffers used in *incoming* CDR streams. - ACE_Allocator *input_cdr_msgblock_allocator (void); + ACE_Allocator *input_cdr_msgblock_allocator (); /// This allocator is always global and has no locks. It is intended /// for allocating the buffers used to queue messages in /// transports. - ACE_Allocator *transport_message_buffer_allocator (void); + ACE_Allocator *transport_message_buffer_allocator (); /// The Message Blocks used for input CDRs must have appropriate /// locking strategies. ACE_Data_Block *create_input_cdr_data_block (size_t size); /// Return the locking strategy used for the data blocks. - ACE_Lock *locking_strategy (void); + ACE_Lock *locking_strategy (); #if (TAO_HAS_CORBA_MESSAGING == 1) /// Accessor method for the default_policies_ - TAO_Policy_Set *get_default_policies (void); + TAO_Policy_Set *get_default_policies (); /// Get a policy. First, check the ORB-level Policy Manager, then /// check the ORB defaults. @@ -437,19 +433,19 @@ public: * tradeoffs and take a decision. */ //@{ - CORBA::Environment *default_environment (void) const; + CORBA::Environment *default_environment () const; void default_environment (CORBA::Environment*); //@} #if (TAO_HAS_CORBA_MESSAGING == 1) /// Return the Policy_Manager for this ORB. - TAO_Policy_Manager *policy_manager (void); + TAO_Policy_Manager *policy_manager (); /// Accesors to the policy current, this object should be kept in /// TSS storage. The POA has to reset the policy current object on /// every upcall. - TAO_Policy_Current &policy_current (void); + TAO_Policy_Current &policy_current (); #endif /* TAO_HAS_CORBA_MESSAGING == 1 */ @@ -540,7 +536,7 @@ public: Messaging::SyncScope &scope); /// Return the default sync scope configured for this ORB - Messaging::SyncScope default_sync_scope (void); + Messaging::SyncScope default_sync_scope (); /// Handle to the factory for protocols_hooks_.. TAO_Protocols_Hooks *protocols_hooks_; @@ -549,7 +545,7 @@ public: TAO_Network_Priority_Protocols_Hooks *network_priority_protocols_hooks_; /// Obtain the TSS resources of this orb. - TAO_ORB_Core_TSS_Resources* get_tss_resources (void); + TAO_ORB_Core_TSS_Resources* get_tss_resources (); /// Obtain the TSS resource in the given slot. void* get_tss_resource (size_t slot_id); @@ -567,13 +563,13 @@ public: void tss_cleanup (ACE_Array_Base<void *> &ts_objects); /// Get access to the leader_follower class. - TAO_Leader_Follower &leader_follower (void); + TAO_Leader_Follower &leader_follower (); /// Get access to the leader follower strategy. - TAO_LF_Strategy &lf_strategy (void); + TAO_LF_Strategy &lf_strategy (); /// Get access to the thread lane resources. - TAO_Thread_Lane_Resources &lane_resources (void); + TAO_Thread_Lane_Resources &lane_resources (); /// Run the event loop. int run (ACE_Time_Value *tv, int perform_work); @@ -582,13 +578,13 @@ public: void shutdown (CORBA::Boolean wait_for_completion); /// Get the shutdown flag value - bool has_shutdown (void) const; + bool has_shutdown () const; /// Shutdown the ORB and free resources - void destroy (void); + void destroy (); /// Check if ORB has shutdown. If it has, throw an exception. - void check_shutdown (void); + void check_shutdown (); /// Returns the @a timeout value used by the server threads to poll /// the shutdown flag. If the return value is zero then the server @@ -628,53 +624,53 @@ public: CORBA::Long reinitialize_object (TAO_Stub *stub); /// Return ORBid string. - const char *orbid (void) const; + const char *orbid () const; /// Set/Get the IOR of the Implementation Repository service. //@{ - CORBA::Object_ptr implrepo_service (void); + CORBA::Object_ptr implrepo_service (); void implrepo_service (const CORBA::Object_ptr ir); //@} /// Do we attempt to register with the Implementation Repository - CORBA::Boolean use_implrepo (void); + CORBA::Boolean use_implrepo (); /// Do we put the ImR's endpoints into persistent object references we create - CORBA::Boolean imr_endpoints_in_ior (void); + CORBA::Boolean imr_endpoints_in_ior (); /// Resolve the TypeCodeFactory DLL. - CORBA::Object_ptr resolve_typecodefactory (void); + CORBA::Object_ptr resolve_typecodefactory (); #if TAO_HAS_INTERCEPTORS == 1 /// Resolve the PICurrent. - CORBA::Object_ptr resolve_picurrent (void); + CORBA::Object_ptr resolve_picurrent (); #endif /* TAO_HAS_INTERCEPTORS == 1 */ /// Resolve POA Current. - CORBA::Object_ptr resolve_poa_current (void); + CORBA::Object_ptr resolve_poa_current (); /// Resolve the CodecFactory DLL. - CORBA::Object_ptr resolve_codecfactory (void); + CORBA::Object_ptr resolve_codecfactory (); /// Resolve the Compression DLL. - CORBA::Object_ptr resolve_compression_manager (void); + CORBA::Object_ptr resolve_compression_manager (); /// Resolve the Dynamic Any Factory - CORBA::Object_ptr resolve_dynanyfactory (void); + CORBA::Object_ptr resolve_dynanyfactory (); /// Resolve the IOR Manipulation reference for this ORB. - CORBA::Object_ptr resolve_ior_manipulation (void); + CORBA::Object_ptr resolve_ior_manipulation (); - TAO_ZIOP_Adapter* ziop_adapter_i (void); + TAO_ZIOP_Adapter* ziop_adapter_i (); /// Resolve the IOR Table reference for this ORB. - CORBA::Object_ptr resolve_ior_table (void); + CORBA::Object_ptr resolve_ior_table (); /// Resolve the Async IOR Table reference for this ORB. - CORBA::Object_ptr resolve_async_ior_table (void); + CORBA::Object_ptr resolve_async_ior_table (); /// Resolve the Monitor reference for this ORB. - CORBA::Object_ptr resolve_monitor (void); + CORBA::Object_ptr resolve_monitor (); /// Resolve an initial reference via the -ORBInitRef and // -ORBDefaultInitRef options. @@ -682,20 +678,20 @@ public: #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0 /// Resolve the RT ORB reference for this ORB. - CORBA::Object_ptr resolve_rt_orb (void); + CORBA::Object_ptr resolve_rt_orb (); #endif /// Resolve the RT Current flyweight for this ORB. /// Return server_id string. - const char *server_id (void) const; + const char *server_id () const; /// List all the service known by the ORB - CORBA::ORB_ObjectIdList *list_initial_references (void); + CORBA::ORB_ObjectIdList *list_initial_references (); /// Reference counting... - unsigned long _incr_refcnt (void); - unsigned long _decr_refcnt (void); - unsigned long _refcnt (void) const; + unsigned long _incr_refcnt (); + unsigned long _decr_refcnt (); + unsigned long _refcnt () const; /// Register the handle of an open connection with the ORB Core /// handle set. This handle set will be used to explicitly remove @@ -748,12 +744,12 @@ public: CORBA::ULong hash_service (TAO_Profile *this_p, CORBA::ULong max); /// Return a reference to the Fault Tolerant service object. - TAO_Fault_Tolerance_Service &fault_tolerance_service (void); + TAO_Fault_Tolerance_Service &fault_tolerance_service (); /// Transmit the entire TAG_FT_GROUP component data from a server IOGR as /// a FT_GROUP_VERSION tagged service context on requests to that IOGR instead /// of just the group version. - CORBA::Boolean ft_send_extended_sc (void); + CORBA::Boolean ft_send_extended_sc (); /// Raise a comm failure exception if a service is not loaded, else /// delegate to the service to see what the service has to do for @@ -782,7 +778,7 @@ public: #if TAO_HAS_INTERCEPTORS == 1 /// Return a pointer to the cached TAO::PICurrent object. - CORBA::Object_ptr pi_current (void); + CORBA::Object_ptr pi_current (); /// Set the pointer to the cached TAO::PICurrent object. void pi_current (CORBA::Object_ptr current); @@ -807,11 +803,11 @@ public: /// Get the Client Request Interceptor adapter. /// Will not create a new one if not available yet. - TAO::ClientRequestInterceptor_Adapter *clientrequestinterceptor_adapter (void); + TAO::ClientRequestInterceptor_Adapter *clientrequestinterceptor_adapter (); /// Get the Server Request Interceptor adapter. /// Will not create a new one if not available yet. - TAO::ServerRequestInterceptor_Adapter *serverrequestinterceptor_adapter (void); + TAO::ServerRequestInterceptor_Adapter *serverrequestinterceptor_adapter (); #endif /* TAO_HAS_INTERCEPTORS */ @@ -820,7 +816,7 @@ public: //@} /// Return the valuetype adapter - TAO_Valuetype_Adapter *valuetype_adapter (void); + TAO_Valuetype_Adapter *valuetype_adapter (); #if !defined(CORBA_E_MICRO) /// Value factory operations (CORBA 2.3 ptc/98-10-05 Ch. 4.2 p.4-7) @@ -839,25 +835,25 @@ public: /// Get the IOR Interceptor adapter. If not created, this method will try /// to create one. - TAO_IORInterceptor_Adapter *ior_interceptor_adapter (void); + TAO_IORInterceptor_Adapter *ior_interceptor_adapter (); /// Set and Get methods to indicate whether a BiDir IIOP policy has /// been set in the POA. /// @note At present, the value will be true even if one of the POA's /// is set with the Bi Dir GIOP policy. - CORBA::Boolean bidir_giop_policy (void); + CORBA::Boolean bidir_giop_policy (); void bidir_giop_policy (CORBA::Boolean); /// Return the table that maps object key/name to de-stringified /// object reference. It is needed for supporting local objects in /// the resolve_initial_references() mechanism. - TAO_Object_Ref_Table &object_ref_table (void); + TAO_Object_Ref_Table &object_ref_table (); /// Acceessor to the table that stores the object_keys. - TAO::ObjectKey_Table &object_key_table (void); + TAO::ObjectKey_Table &object_key_table (); /// Return the current request dispatcher strategy. - TAO_Request_Dispatcher *request_dispatcher (void); + TAO_Request_Dispatcher *request_dispatcher (); /// Set a new request dispatcher. The ORB Core retains ownership /// of the request dispatcher once it gets it. Currently, this only @@ -876,15 +872,15 @@ public: * The flushing strategies are stateless, therefore, there is only * one per ORB. */ - TAO_Flushing_Strategy *flushing_strategy (void); + TAO_Flushing_Strategy *flushing_strategy (); /// Get Code Set Manager - TAO_Codeset_Manager *codeset_manager (void); + TAO_Codeset_Manager *codeset_manager (); typedef ACE_Array_Map<ACE_CString, ACE_CString> InitRefMap; /// Return a pointer to the -ORBInitRef map. - InitRefMap * init_ref_map (void); + InitRefMap * init_ref_map (); /// Set the ORB related to the orb_id as the default ORB and not the /// ORB that is first binded in the ORB Table @@ -918,7 +914,7 @@ protected: /// Destructor is protected since the ORB Core is a reference /// counted object. - ~TAO_ORB_Core (void); + ~TAO_ORB_Core (); /// Initialize the guts of the ORB Core. It is intended that this be /// called by CORBA::ORB_init(). @@ -926,7 +922,7 @@ protected: /// Final termination hook, typically called by CORBA::ORB's /// destructor. - int fini (void); + int fini (); /// Routine that creates a ACE_Data_Block given the lock and allocators. ACE_Data_Block *create_data_block_i (size_t size, @@ -935,48 +931,48 @@ protected: ACE_Lock *lock); /// Obtain and cache the typecode factory object reference. - void resolve_typecodefactory_i (void); + void resolve_typecodefactory_i (); /// Obtain and cache the poa current. - void resolve_poa_current_i (void); + void resolve_poa_current_i (); #if TAO_HAS_INTERCEPTORS == 1 /// Obtain and cache the picurrent factory object reference. - void resolve_picurrent_i (void); + void resolve_picurrent_i (); /// Get the Client Request Interceptor adapter. /// If not created, this method will try to create one if needed. - TAO::ClientRequestInterceptor_Adapter *clientrequestinterceptor_adapter_i (void); + TAO::ClientRequestInterceptor_Adapter *clientrequestinterceptor_adapter_i (); /// Get the Server Request Interceptor adapter. /// If not created, this method will try to create one if needed. - TAO::ServerRequestInterceptor_Adapter *serverrequestinterceptor_adapter_i (void); + TAO::ServerRequestInterceptor_Adapter *serverrequestinterceptor_adapter_i (); #endif /* TAO_HAS_INTERCEPTORS */ /// Obtain and cache the codec factory object reference. - void resolve_codecfactory_i (void); + void resolve_codecfactory_i (); /// Obtain and cache the compression manager object reference. - void resolve_compression_manager_i (void); + void resolve_compression_manager_i (); /// Obtain and cache the dynamic any factory object reference. - void resolve_dynanyfactory_i (void); + void resolve_dynanyfactory_i (); /// Obtain and cache the IORManipulation factory object reference. - void resolve_iormanipulation_i (void); + void resolve_iormanipulation_i (); /// Obtain and cache the Monitor object reference. - void resolve_monitor_i (void); + void resolve_monitor_i (); /// Search the Dynamic service list for well known services that has /// callbacks which can be dynamically loaded. - void services_callbacks_init (void); + void services_callbacks_init (); /// Helper method that invokes Interceptor::destroy() on all /// registered interceptors when ORB::destroy() is called. Prevents /// exceptions from propagating up the call chain. - void destroy_interceptors (void); + void destroy_interceptors (); /// Pointer to the list of protocol loaded into this ORB instance. /// Helper method to hold the common code part for -ORBEndpoint and @@ -986,11 +982,11 @@ protected: /// Return pointer to the policy factory registry associated with /// this ORB core. - TAO::PolicyFactory_Registry_Adapter *policy_factory_registry_i (void); + TAO::PolicyFactory_Registry_Adapter *policy_factory_registry_i (); /// Return pointer to the orb initializer registry associated with /// this ORB core. - TAO::ORBInitializer_Registry_Adapter *orbinitializer_registry_i (void); + TAO::ORBInitializer_Registry_Adapter *orbinitializer_registry_i (); /// Common code from ::initialize_object and ::reinitialize_object CORBA::Long initialize_object_i (TAO_Stub *the_stub, @@ -1005,10 +1001,10 @@ private: //@} /// Obtain and cache the ior table object reference. - void resolve_ior_table_i (void); + void resolve_ior_table_i (); /// Obtain and cache the async ior table object reference. - void resolve_async_ior_table_i (void); + void resolve_async_ior_table_i (); /// Checks to see whether collocation optimizations have to be /// applied on objects in the @a other_orb @@ -1211,11 +1207,7 @@ protected: #endif /* TAO_HAS_BUFFERING_CONSTRAINT_POLICY == 1 */ /// Number of outstanding references to this object. -#if defined (ACE_HAS_CPP11) std::atomic<uint32_t> refcount_; -#else - ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> refcount_; -#endif /* ACE_HAS_CPP11 */ /// Registry containing all registered policy factories. TAO::PolicyFactory_Registry_Adapter *policy_factory_registry_; @@ -1306,7 +1298,7 @@ class TAO_Export TAO_ORB_Core_Static_Resources : public ACE_Service_Object public: /// Return the context-specific singleton instance. - static TAO_ORB_Core_Static_Resources* instance (void); + static TAO_ORB_Core_Static_Resources* instance (); public: /** @@ -1376,7 +1368,7 @@ public: //private: /// Constructor. - TAO_ORB_Core_Static_Resources (void); + TAO_ORB_Core_Static_Resources (); TAO_ORB_Core_Static_Resources& operator= (const TAO_ORB_Core_Static_Resources&); @@ -1392,7 +1384,7 @@ private: /// Obtain an instance of the first ORB core registered in the ORB /// table. -TAO_Export TAO_ORB_Core * TAO_ORB_Core_instance (void); +TAO_Export TAO_ORB_Core * TAO_ORB_Core_instance (); // **************************************************************** diff --git a/TAO/tao/ORB_Core.inl b/TAO/tao/ORB_Core.inl index f68d3beef3d..f6ebac0549d 100644 --- a/TAO/tao/ORB_Core.inl +++ b/TAO/tao/ORB_Core.inl @@ -19,11 +19,7 @@ TAO_ORB_Core::_incr_refcnt (void) ACE_INLINE unsigned long TAO_ORB_Core::_refcnt (void) const { -#if defined (ACE_HAS_CPP11) return this->refcount_; -#else - return this->refcount_.value (); -#endif /* ACE_HAS_CPP11 */ } ACE_INLINE unsigned long diff --git a/TAO/tao/ORB_Core_Auto_Ptr.h b/TAO/tao/ORB_Core_Auto_Ptr.h index ec7eb332909..0b7a3f6f6a3 100644 --- a/TAO/tao/ORB_Core_Auto_Ptr.h +++ b/TAO/tao/ORB_Core_Auto_Ptr.h @@ -45,7 +45,7 @@ public: explicit TAO_ORB_Core_Auto_Ptr (TAO_ORB_Core *p = 0); TAO_ORB_Core_Auto_Ptr (TAO_ORB_Core_Auto_Ptr &ap); TAO_ORB_Core_Auto_Ptr &operator= (TAO_ORB_Core_Auto_Ptr &rhs); - ~TAO_ORB_Core_Auto_Ptr (void); + ~TAO_ORB_Core_Auto_Ptr (); //@} /** @@ -53,8 +53,8 @@ public: */ //@{ TAO_ORB_Core &operator *() const; - TAO_ORB_Core *get (void) const; - TAO_ORB_Core *release (void); + TAO_ORB_Core *get () const; + TAO_ORB_Core *release (); void reset (TAO_ORB_Core *p = 0); TAO_ORB_Core *operator-> () const; //@} diff --git a/TAO/tao/ORB_Core_TSS_Resources.h b/TAO/tao/ORB_Core_TSS_Resources.h index f5c12f9dd32..01e5a60de9c 100644 --- a/TAO/tao/ORB_Core_TSS_Resources.h +++ b/TAO/tao/ORB_Core_TSS_Resources.h @@ -41,13 +41,13 @@ class TAO_Export TAO_ORB_Core_TSS_Resources public: /// Constructor - TAO_ORB_Core_TSS_Resources (void); + TAO_ORB_Core_TSS_Resources (); /// destructor - ~TAO_ORB_Core_TSS_Resources (void); + ~TAO_ORB_Core_TSS_Resources (); /// Cleans TSS resources. - void fini (void); + void fini (); private: diff --git a/TAO/tao/ORB_Table.h b/TAO/tao/ORB_Table.h index c1e5ed0d60e..8841c8d34a3 100644 --- a/TAO/tao/ORB_Table.h +++ b/TAO/tao/ORB_Table.h @@ -67,7 +67,7 @@ namespace TAO * @note See the note in the class description for an explanation * of why this constructor is not protected. */ - ORB_Table (void); + ORB_Table (); typedef ACE_Array_Map<CORBA::String_var, ORB_Core_Ref_Counter, @@ -82,8 +82,8 @@ namespace TAO * @name The canonical ACE_Map methods. */ //@{ - iterator begin (void); - iterator end (void); + iterator begin (); + iterator end (); int bind (const char *orb_id, ::TAO_ORB_Core *orb_core); /// Return @c TAO_ORB_Core corresponding to ORB with given @a @@ -99,10 +99,10 @@ namespace TAO /// Obtain the first ORB for the @c ORB_Core_instance() /// implementation. - ::TAO_ORB_Core * first_orb (void); + ::TAO_ORB_Core * first_orb (); /// Return a unique instance - static ORB_Table * instance (void); + static ORB_Table * instance (); /// Set the ORB related to the orb_id as the default ORB and not the /// ORB that is first binded. @@ -113,10 +113,10 @@ namespace TAO void not_default (char const * orb_id); /// Accessor to the underlying table_ - Table * table (void); + Table * table (); /// Return reference to underlying lock. - TAO_SYNCH_MUTEX & lock (void); + TAO_SYNCH_MUTEX & lock (); private: @@ -158,13 +158,13 @@ namespace TAO public: /// Constructor. - ORB_Core_Ref_Counter (void); + ORB_Core_Ref_Counter (); /// Constructor. ORB_Core_Ref_Counter (::TAO_ORB_Core * core); /// Destructor. - ~ORB_Core_Ref_Counter (void); + ~ORB_Core_Ref_Counter (); /// Copy constructor. ORB_Core_Ref_Counter (ORB_Core_Ref_Counter const & rhs); @@ -173,7 +173,7 @@ namespace TAO void operator= (ORB_Core_Ref_Counter const & rhs); /// ORB_Core pointer accessor. - ::TAO_ORB_Core * core (void) const { return this->core_; } + ::TAO_ORB_Core * core () const { return this->core_; } private: ::TAO_ORB_Core * core_; diff --git a/TAO/tao/Object.cpp b/TAO/tao/Object.cpp index d89c8df39e3..f1be9002e7d 100644 --- a/TAO/tao/Object.cpp +++ b/TAO/tao/Object.cpp @@ -110,11 +110,7 @@ CORBA::Object::_remove_ref () CORBA::ULong CORBA::Object::_refcount_value() const { -#if defined (ACE_HAS_CPP11) return this->refcount_; -#else - return this->refcount_.value (); -#endif /* ACE_HAS_CPP11 */ } void diff --git a/TAO/tao/Object.h b/TAO/tao/Object.h index 92c2e499c85..c7f9752374f 100644 --- a/TAO/tao/Object.h +++ b/TAO/tao/Object.h @@ -30,11 +30,7 @@ #include "tao/Object_Argument_T.h" #include "tao/Arg_Traits_T.h" #include "tao/Any_Insert_Policy_T.h" -#if defined (ACE_HAS_CPP11) -# include <atomic> -#else -# include "ace/Atomic_Op.h" -#endif /* ACE_HAS_CPP11 */ +#include <atomic> #if defined (HPUX) && defined (IOR) /* HP-UX 11.11 defines IOR in /usr/include/pa/inline.h @@ -102,7 +98,7 @@ namespace CORBA { public: /// Destructor. - virtual ~Object (void); + virtual ~Object (); /** * @name Spec defined methods @@ -115,7 +111,7 @@ namespace CORBA static CORBA::Object_ptr _duplicate (CORBA::Object_ptr obj); /// Return a NULL object. - static CORBA::Object_ptr _nil (void); + static CORBA::Object_ptr _nil (); /// No-op it is just here to simplify some templates. static CORBA::Object_ptr _narrow (CORBA::Object_ptr obj); @@ -131,7 +127,7 @@ namespace CORBA /// The repository ID for the most derived class, this is an /// implementation method and does no remote invocations! - virtual const char* _interface_repository_id (void) const; + virtual const char* _interface_repository_id () const; /** * Return a (potentially non-unique) hash value for this object. @@ -152,18 +148,18 @@ namespace CORBA #if (TAO_HAS_MINIMUM_CORBA == 0) - virtual CORBA::Boolean _non_existent (void); + virtual CORBA::Boolean _non_existent (); #if ! defined (CORBA_E_COMPACT) && ! defined (CORBA_E_MICRO) /// Get info about the object from the Interface Repository. - virtual InterfaceDef_ptr _get_interface (void); + virtual InterfaceDef_ptr _get_interface (); /// Get info about the object from the Interface Repository. - virtual CORBA::Object_ptr _get_component (void); + virtual CORBA::Object_ptr _get_component (); #endif /// Get the repository id. - virtual char * _repository_id (void); + virtual char * _repository_id (); #if ! defined (CORBA_E_COMPACT) && ! defined (CORBA_E_MICRO) // DII operations to create a request. @@ -217,7 +213,7 @@ namespace CORBA #endif /* TAO_HAS_CORBA_MESSAGING == 1 */ - virtual CORBA::ORB_ptr _get_orb (void); + virtual CORBA::ORB_ptr _get_orb (); /** * @name Reference Count Management @@ -227,13 +223,13 @@ namespace CORBA */ //@{ /// Increment the reference count. - virtual void _add_ref (void); + virtual void _add_ref (); /// Decrement the reference count. - virtual void _remove_ref (void); + virtual void _remove_ref (); /// Get the refcount - virtual CORBA::ULong _refcount_value (void) const; + virtual CORBA::ULong _refcount_value () const; //@} // Useful for template programming. @@ -251,15 +247,15 @@ namespace CORBA /// Accessor for the cached servant reference held on the stub /// if this object is collocated - virtual TAO_Abstract_ServantBase *_servant (void) const; + virtual TAO_Abstract_ServantBase *_servant () const; /// Is this object collocated with the servant? /// Note this does not return this->is_collocated_ but will instead /// query the underlying stub for its collocation status - virtual CORBA::Boolean _is_collocated (void) const; + virtual CORBA::Boolean _is_collocated () const; /// Is this a local object? - virtual CORBA::Boolean _is_local (void) const; + virtual CORBA::Boolean _is_local () const; /// Used in the implementation of CORBA::Any static void _tao_any_destructor (void*); @@ -272,7 +268,7 @@ namespace CORBA /// Return the object key as an out parameter. Caller should release /// return value when finished with it. - virtual TAO::ObjectKey *_key (void); + virtual TAO::ObjectKey *_key (); /// Constructor Object (TAO_Stub *p, @@ -283,8 +279,8 @@ namespace CORBA Object (IOP::IOR *ior, TAO_ORB_Core *orb_core); /// Get the underlying stub object. - virtual TAO_Stub *_stubobj (void) const; - virtual TAO_Stub *_stubobj (void); + virtual TAO_Stub *_stubobj () const; + virtual TAO_Stub *_stubobj (); /// Set the proxy broker. virtual void _proxy_broker (TAO::Object_Proxy_Broker *proxy_broker); @@ -304,10 +300,10 @@ namespace CORBA #endif /* GEN_OSTREAM_OPS */ /// Accessor to the flag.. - CORBA::Boolean is_evaluated (void) const; + CORBA::Boolean is_evaluated () const; /// Accessor for the ORB_Core.. - TAO_ORB_Core *orb_core (void) const; + TAO_ORB_Core *orb_core () const; /// Accessors for the underlying IOP::IOR's. /** @@ -315,14 +311,14 @@ namespace CORBA * the IOR. This is useful for cases when one wants to initialize * a new CORBA Object */ - IOP::IOR *steal_ior (void); + IOP::IOR *steal_ior (); - const IOP::IOR &ior (void) const; + const IOP::IOR &ior () const; //@} End of TAO-specific methods.. /// Can this object be stringified? - virtual bool can_convert_to_ior (void) const; + virtual bool can_convert_to_ior () const; /// A hook to allow users to provide custom object stringification. /// @note This method is intended to be used by classes that @@ -331,7 +327,7 @@ namespace CORBA const char* ior_prefix) const; /// Wrapper for _remove_ref(), naming convention for templatizing. - void _decr_refcount (void); + void _decr_refcount (); protected: /// Initializing a local object. @@ -412,7 +408,7 @@ namespace TAO { static CORBA::Object_ptr duplicate (CORBA::Object_ptr); static void release (CORBA::Object_ptr); - static CORBA::Object_ptr nil (void); + static CORBA::Object_ptr nil (); static CORBA::Boolean marshal (const CORBA::Object_ptr p, TAO_OutputCDR & cdr); }; @@ -429,7 +425,7 @@ namespace TAO /// library is present. extern TAO_Export TAO::Object_Proxy_Broker * - (*_TAO_Object_Proxy_Broker_Factory_function_pointer) (void); + (*_TAO_Object_Proxy_Broker_Factory_function_pointer) (); TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR&, const CORBA::Object*); diff --git a/TAO/tao/ObjectKey_Table.h b/TAO/tao/ObjectKey_Table.h index d467e6d2711..55fa8ddcc0c 100644 --- a/TAO/tao/ObjectKey_Table.h +++ b/TAO/tao/ObjectKey_Table.h @@ -87,12 +87,12 @@ namespace TAO { public: /// Default Constructor and destructor.. - ObjectKey_Table (void); + ObjectKey_Table (); - ~ObjectKey_Table (void); + ~ObjectKey_Table (); /// Iterates and unbinds the contents of the table. - int destroy (void); + int destroy (); /// Bind the ObjectKey in the table. /** diff --git a/TAO/tao/Object_Argument_T.h b/TAO/tao/Object_Argument_T.h index 5befb04c321..a2e2937c869 100644 --- a/TAO/tao/Object_Argument_T.h +++ b/TAO/tao/Object_Argument_T.h @@ -41,7 +41,7 @@ namespace TAO #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S_ptr arg (void) const; + S_ptr arg () const; protected: S_ptr x_; @@ -67,9 +67,9 @@ namespace TAO { public: In_Object_Clonable_Argument_T (S_ptr x); - virtual ~In_Object_Clonable_Argument_T (void); + virtual ~In_Object_Clonable_Argument_T (); - virtual Argument* clone (void); + virtual Argument* clone (); private: bool is_clone_; @@ -94,7 +94,7 @@ namespace TAO #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S_ptr & arg (void); + S_ptr & arg (); private: S_ptr & x_; @@ -118,7 +118,7 @@ namespace TAO #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S_out arg (void); + S_out arg (); private: S_ptr & x_; @@ -137,16 +137,16 @@ namespace TAO { public: - Ret_Object_Argument_T (void); + Ret_Object_Argument_T (); virtual CORBA::Boolean demarshal (TAO_InputCDR &); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S_ptr & arg (void); + S_ptr & arg (); - S_ptr excp (void); - S_ptr retn (void); + S_ptr excp (); + S_ptr retn (); private: S_var x_; diff --git a/TAO/tao/Object_KeyC.h b/TAO/tao/Object_KeyC.h index 9854f40b8d0..3ad8a251c09 100644 --- a/TAO/tao/Object_KeyC.h +++ b/TAO/tao/Object_KeyC.h @@ -84,7 +84,7 @@ namespace TAO > { public: - ObjectKey (void); + ObjectKey (); ObjectKey (CORBA::ULong max); ObjectKey ( CORBA::ULong max, @@ -92,13 +92,11 @@ namespace TAO CORBA::Octet* buffer, CORBA::Boolean release = false ); -#if defined (ACE_HAS_CPP11) ObjectKey (const ObjectKey &) = default; ObjectKey (ObjectKey &&) = default; ObjectKey& operator= (const ObjectKey &) = default; ObjectKey& operator= (ObjectKey &&) = default; -#endif /* ACE_HAS_CPP11 */ - ~ObjectKey (void); + ~ObjectKey (); typedef ObjectKey_var _var_type; diff --git a/TAO/tao/Object_Loader.h b/TAO/tao/Object_Loader.h index a40fe96d375..cbed00313fb 100644 --- a/TAO/tao/Object_Loader.h +++ b/TAO/tao/Object_Loader.h @@ -48,7 +48,7 @@ class TAO_Export TAO_Object_Loader : public ACE_Service_Object { public: /// The destructor - virtual ~TAO_Object_Loader (void); + virtual ~TAO_Object_Loader (); /** * Create and activate a new object into the orb. diff --git a/TAO/tao/Object_Proxy_Broker.h b/TAO/tao/Object_Proxy_Broker.h index 8c6057e6e3a..27fc4c656d2 100644 --- a/TAO/tao/Object_Proxy_Broker.h +++ b/TAO/tao/Object_Proxy_Broker.h @@ -50,7 +50,7 @@ namespace TAO { public: /// Destructor - virtual ~Object_Proxy_Broker (void); + virtual ~Object_Proxy_Broker (); virtual CORBA::Boolean _is_a (CORBA::Object_ptr target, const char *logical_type_id) = 0; diff --git a/TAO/tao/Object_Ref_Table.h b/TAO/tao/Object_Ref_Table.h index 24b90a68ece..fb7ca8039ae 100644 --- a/TAO/tao/Object_Ref_Table.h +++ b/TAO/tao/Object_Ref_Table.h @@ -56,7 +56,7 @@ public: typedef Table::iterator iterator; /// Constructor - TAO_Object_Ref_Table (void); + TAO_Object_Ref_Table (); /** * Register an object reference with the table, and map the given @@ -78,18 +78,18 @@ public: CORBA::Object_ptr resolve_initial_reference (const char * id); /// Explicitly destroy the contents of the object reference table. - void destroy (void); + void destroy (); /** * @name Forward Iterators */ //@{ - iterator begin (void); - iterator end (void); + iterator begin (); + iterator end (); //@} /// Return the current size of the underlying table. - size_t current_size (void) const; + size_t current_size () const; private: /** @@ -102,9 +102,10 @@ private: //@} private: - // Disallow copying and assignment. - TAO_Object_Ref_Table (const TAO_Object_Ref_Table &); - void operator= (const TAO_Object_Ref_Table &); + TAO_Object_Ref_Table (const TAO_Object_Ref_Table &) = delete; + void operator= (const TAO_Object_Ref_Table &) = delete; + TAO_Object_Ref_Table (TAO_Object_Ref_Table &&) = delete; + void operator= (TAO_Object_Ref_Table &&) = delete; private: /// The implementation. diff --git a/TAO/tao/Object_Reference_Const_Sequence_Element_T.h b/TAO/tao/Object_Reference_Const_Sequence_Element_T.h index 9f32df30fed..31f3aa3226e 100644 --- a/TAO/tao/Object_Reference_Const_Sequence_Element_T.h +++ b/TAO/tao/Object_Reference_Const_Sequence_Element_T.h @@ -45,12 +45,12 @@ public: { } - inline operator object_reference_type * (void) const + inline operator object_reference_type * () const { return *this->element_; } - inline object_reference_type * in (void) const + inline object_reference_type * in () const { return *this->element_; } diff --git a/TAO/tao/Object_Reference_Sequence_Element_T.h b/TAO/tao/Object_Reference_Sequence_Element_T.h index c1d04e108fb..08e283e91e7 100644 --- a/TAO/tao/Object_Reference_Sequence_Element_T.h +++ b/TAO/tao/Object_Reference_Sequence_Element_T.h @@ -89,11 +89,11 @@ public: return *this->element_; } - inline object_reference_type *in (void) const { + inline object_reference_type *in () const { return *this->element_; } - inline object_reference_type *&inout (void) const { + inline object_reference_type *&inout () const { return *this->element_; } diff --git a/TAO/tao/Objref_VarOut_T.h b/TAO/tao/Objref_VarOut_T.h index 95c88afbe54..3d31c1cc941 100644 --- a/TAO/tao/Objref_VarOut_T.h +++ b/TAO/tao/Objref_VarOut_T.h @@ -47,14 +47,14 @@ template <typename T> class TAO_Objref_Var_T : private TAO_Base_var { public: - TAO_Objref_Var_T (void); + TAO_Objref_Var_T (); TAO_Objref_Var_T (T * p) : ptr_ (p) {} TAO_Objref_Var_T (const TAO_Objref_Var_T<T> &); - ~TAO_Objref_Var_T (void); + ~TAO_Objref_Var_T (); TAO_Objref_Var_T<T> & operator= (T *); TAO_Objref_Var_T<T> & operator= (const TAO_Objref_Var_T<T> &); - T * operator-> (void) const; + T * operator-> () const; /// Cast operators. operator T * const & () const; @@ -66,17 +66,17 @@ public: typedef T *& _out_type; typedef T * _retn_type; - _in_type in (void) const; - _inout_type inout (void); - _out_type out (void); - _retn_type _retn (void); + _in_type in () const; + _inout_type inout (); + _out_type out (); + _retn_type _retn (); /// TAO extension. - _retn_type ptr (void) const; + _retn_type ptr () const; protected: T * ptr_; - void free (void); + void free (); void reset (T *); private: @@ -105,8 +105,8 @@ public: /// Cast operator. operator T *& (); - T *& ptr (void); - T * operator-> (void); + T *& ptr (); + T * operator-> (); private: T *& ptr_; diff --git a/TAO/tao/On_Demand_Fragmentation_Strategy.h b/TAO/tao/On_Demand_Fragmentation_Strategy.h index ef893a8849a..a695f89f735 100644 --- a/TAO/tao/On_Demand_Fragmentation_Strategy.h +++ b/TAO/tao/On_Demand_Fragmentation_Strategy.h @@ -52,9 +52,10 @@ public: ACE_CDR::ULong pending_length); private: - // Disallow copying and assignment. - TAO_On_Demand_Fragmentation_Strategy (TAO_On_Demand_Fragmentation_Strategy const &); - void operator= (TAO_On_Demand_Fragmentation_Strategy const &); + TAO_On_Demand_Fragmentation_Strategy (TAO_On_Demand_Fragmentation_Strategy const &) = delete; + void operator= (TAO_On_Demand_Fragmentation_Strategy const &) = delete; + TAO_On_Demand_Fragmentation_Strategy (TAO_On_Demand_Fragmentation_Strategy &&) = delete; + void operator= (TAO_On_Demand_Fragmentation_Strategy &&) = delete; private: /// Pointer to the underlying transport object. diff --git a/TAO/tao/PI/ClientRequestDetails.h b/TAO/tao/PI/ClientRequestDetails.h index 2aa46394c6a..9907aa92961 100644 --- a/TAO/tao/PI/ClientRequestDetails.h +++ b/TAO/tao/PI/ClientRequestDetails.h @@ -49,8 +49,7 @@ namespace TAO class ClientRequestDetails { public: - - ClientRequestDetails (void); + ClientRequestDetails (); void apply_policies (const CORBA::PolicyList& policies); @@ -61,7 +60,6 @@ namespace TAO bool should_be_processed (bool is_remote_request) const; private: - /// The ProcessingMode setting that can be adjusted via the /// PortableInterceptor::ProcessingModePolicy. PortableInterceptor::ProcessingMode processing_mode_; diff --git a/TAO/tao/PI/ClientRequestInfo.cpp b/TAO/tao/PI/ClientRequestInfo.cpp index fc7a4980394..d2b95eb562e 100644 --- a/TAO/tao/PI/ClientRequestInfo.cpp +++ b/TAO/tao/PI/ClientRequestInfo.cpp @@ -31,7 +31,7 @@ TAO_ClientRequestInfo::TAO_ClientRequestInfo (TAO::Invocation_Base *inv) } void -TAO_ClientRequestInfo::setup_picurrent (void) +TAO_ClientRequestInfo::setup_picurrent () { // Retrieve the thread scope current (no TSS access incurred yet). CORBA::Object_ptr pi_current_obj = @@ -75,7 +75,7 @@ TAO_ClientRequestInfo::get_service_context_i ( } CORBA::Object_ptr -TAO_ClientRequestInfo::target (void) +TAO_ClientRequestInfo::target () { this->check_validity (); @@ -83,7 +83,7 @@ TAO_ClientRequestInfo::target (void) } CORBA::Object_ptr -TAO_ClientRequestInfo::effective_target (void) +TAO_ClientRequestInfo::effective_target () { this->check_validity (); @@ -91,7 +91,7 @@ TAO_ClientRequestInfo::effective_target (void) } IOP::TaggedProfile * -TAO_ClientRequestInfo::effective_profile (void) +TAO_ClientRequestInfo::effective_profile () { this->check_validity (); @@ -128,7 +128,7 @@ TAO_ClientRequestInfo::effective_profile (void) // exception from an Any. This method is in place just to be compliant // with the spec. CORBA::Any * -TAO_ClientRequestInfo::received_exception (void) +TAO_ClientRequestInfo::received_exception () { this->check_validity (); @@ -163,7 +163,7 @@ TAO_ClientRequestInfo::received_exception (void) } char * -TAO_ClientRequestInfo::received_exception_id (void) +TAO_ClientRequestInfo::received_exception_id () { this->check_validity (); @@ -309,7 +309,7 @@ TAO_ClientRequestInfo::add_request_service_context ( } CORBA::ULong -TAO_ClientRequestInfo::request_id (void) +TAO_ClientRequestInfo::request_id () { this->check_validity (); @@ -393,7 +393,7 @@ TAO_ClientRequestInfo::request_id (void) } char * -TAO_ClientRequestInfo::operation (void) +TAO_ClientRequestInfo::operation () { this->check_validity (); @@ -401,7 +401,7 @@ TAO_ClientRequestInfo::operation (void) } Dynamic::ParameterList * -TAO_ClientRequestInfo::arguments (void) +TAO_ClientRequestInfo::arguments () { this->check_validity (); @@ -443,7 +443,7 @@ TAO_ClientRequestInfo::parameter_list (Dynamic::ParameterList ¶m_list) } Dynamic::ExceptionList * -TAO_ClientRequestInfo::exceptions (void) +TAO_ClientRequestInfo::exceptions () { this->check_validity (); @@ -481,7 +481,7 @@ TAO_ClientRequestInfo::exception_list (Dynamic::ExceptionList &exception_list) } Dynamic::ContextList * -TAO_ClientRequestInfo::contexts (void) +TAO_ClientRequestInfo::contexts () { this->check_validity (); @@ -489,7 +489,7 @@ TAO_ClientRequestInfo::contexts (void) } Dynamic::RequestContext * -TAO_ClientRequestInfo::operation_context (void) +TAO_ClientRequestInfo::operation_context () { this->check_validity (); @@ -497,7 +497,7 @@ TAO_ClientRequestInfo::operation_context (void) } CORBA::Any * -TAO_ClientRequestInfo::result (void) +TAO_ClientRequestInfo::result () { this->check_validity (); @@ -526,7 +526,7 @@ TAO_ClientRequestInfo::result (CORBA::Any *any) } CORBA::Boolean -TAO_ClientRequestInfo::response_expected (void) +TAO_ClientRequestInfo::response_expected () { this->check_validity (); @@ -534,7 +534,7 @@ TAO_ClientRequestInfo::response_expected (void) } Messaging::SyncScope -TAO_ClientRequestInfo::sync_scope (void) +TAO_ClientRequestInfo::sync_scope () { this->check_validity (); @@ -542,7 +542,7 @@ TAO_ClientRequestInfo::sync_scope (void) } PortableInterceptor::ReplyStatus -TAO_ClientRequestInfo::reply_status (void) +TAO_ClientRequestInfo::reply_status () { this->check_validity (); @@ -558,7 +558,7 @@ TAO_ClientRequestInfo::reply_status (void) } CORBA::Object_ptr -TAO_ClientRequestInfo::forward_reference (void) +TAO_ClientRequestInfo::forward_reference () { this->check_validity (); @@ -606,7 +606,7 @@ TAO_ClientRequestInfo::get_reply_service_context (IOP::ServiceId id) } void -TAO_ClientRequestInfo::check_validity (void) +TAO_ClientRequestInfo::check_validity () { if (this->invocation_ == 0) throw ::CORBA::BAD_INV_ORDER (CORBA::OMGVMCID | 14, CORBA::COMPLETED_NO); @@ -619,7 +619,7 @@ TAO_ClientRequestInfo::tao_ft_expiration_time (TimeBase::TimeT time) } TimeBase::TimeT -TAO_ClientRequestInfo::tao_ft_expiration_time (void) const +TAO_ClientRequestInfo::tao_ft_expiration_time () const { return this->invocation_->operation_details ().ft_expiration_time (); } @@ -631,7 +631,7 @@ TAO_ClientRequestInfo::tao_ft_retention_id (CORBA::Long request_id) } CORBA::Long -TAO_ClientRequestInfo::tao_ft_retention_id (void) const +TAO_ClientRequestInfo::tao_ft_retention_id () const { return this->invocation_->operation_details ().ft_retention_id (); } diff --git a/TAO/tao/PI/ClientRequestInfo.h b/TAO/tao/PI/ClientRequestInfo.h index 00f692f7ffc..fe41ecb1f83 100644 --- a/TAO/tao/PI/ClientRequestInfo.h +++ b/TAO/tao/PI/ClientRequestInfo.h @@ -75,34 +75,34 @@ public: /// Return an ID unique to the current request. This request ID may /// or may not be the same as the GIOP request ID. - virtual CORBA::ULong request_id (void); + virtual CORBA::ULong request_id (); /// Return the operation name for the current request. - virtual char * operation (void); + virtual char * operation (); /// Return the list of arguments passed to the current operation. - virtual Dynamic::ParameterList * arguments (void); + virtual Dynamic::ParameterList * arguments (); /// Return the list of exceptions the current operation is capable /// of throwing. - virtual Dynamic::ExceptionList * exceptions (void); + virtual Dynamic::ExceptionList * exceptions (); - virtual Dynamic::ContextList * contexts (void); + virtual Dynamic::ContextList * contexts (); - virtual Dynamic::RequestContext * operation_context (void); + virtual Dynamic::RequestContext * operation_context (); /// Return the result of the current request. If there is no return /// value then an Any with tk_void TypeCode is returned. This is /// method is not valid for oneway operations. - virtual CORBA::Any * result (void); + virtual CORBA::Any * result (); /// Returns true for a two-way operation, and false otherwise. - virtual CORBA::Boolean response_expected (void); + virtual CORBA::Boolean response_expected (); /// Return the sync_scope policy value for the current one-way /// operation. If the operation is not a one-way, a /// CORBA::BAD_INV_ORDER exception is thrown. - virtual Messaging::SyncScope sync_scope (void); + virtual Messaging::SyncScope sync_scope (); /// Return the reply status for the current request. /** @@ -110,11 +110,11 @@ public: * SYSTEM_EXCEPTION, USER_EXCEPTION, LOCATION_FORWARD, * TRANSPORT_RETRY, UNKNOWN. */ - virtual PortableInterceptor::ReplyStatus reply_status (void); + virtual PortableInterceptor::ReplyStatus reply_status (); /// If the reply status is PortableInterceptor::LOCATION_FORWARD or /// return the object reference to which the request was forwarded. - virtual CORBA::Object_ptr forward_reference (void); + virtual CORBA::Object_ptr forward_reference (); virtual CORBA::Any * get_slot (PortableInterceptor::SlotId id); @@ -129,23 +129,23 @@ public: /// Return the (initial, non-forwarded, or permanently forwarded) /// object reference of the target. - virtual CORBA::Object_ptr target (void); + virtual CORBA::Object_ptr target (); /// Return the object reference for the current target. The target /// may change in the even of a location forward. - virtual CORBA::Object_ptr effective_target (void); + virtual CORBA::Object_ptr effective_target (); - virtual IOP::TaggedProfile * effective_profile (void); + virtual IOP::TaggedProfile * effective_profile (); /// Return an Any containing the received exception, if any. /// Otherwise, throw a CORBA::BAD_INV_ORDER exception. /** * @note There is no trivial way to extract the exception from an Any. */ - virtual CORBA::Any * received_exception (void); + virtual CORBA::Any * received_exception (); /// Return the repository ID for the received exception. - virtual char * received_exception_id (void); + virtual char * received_exception_id (); /// Return the first IOP::TaggedComponent that matches the given /// IOP::ComponentId in the object reference for the current @@ -176,20 +176,19 @@ public: void tao_ft_expiration_time (TimeBase::TimeT time); /// Get the absolute FT expiration time for this request - TimeBase::TimeT tao_ft_expiration_time (void) const; + TimeBase::TimeT tao_ft_expiration_time () const; /// Set the FT request retention ID for this request. void tao_ft_retention_id (CORBA::Long request_id); /// Get the FT request retention ID for this request. - CORBA::Long tao_ft_retention_id (void) const; + CORBA::Long tao_ft_retention_id () const; /* * End proprietary FT methods. */ private: - bool parameter_list (Dynamic::ParameterList ¶m_list); bool exception_list (Dynamic::ExceptionList &exception_list); @@ -198,11 +197,11 @@ private: /// Check if this ClientRequestInfo object is called within the /// context of a request. - void check_validity (void); + void check_validity (); /// Setup thread scope and request scope /// PortableInterceptor::Current objects. - void setup_picurrent (void); + void setup_picurrent (); /// Helper method to get the request and response service contexts. IOP::ServiceContext *get_service_context_i ( diff --git a/TAO/tao/PI/ClientRequestInterceptor_Adapter_Impl.cpp b/TAO/tao/PI/ClientRequestInterceptor_Adapter_Impl.cpp index 6d746b2ea5a..2c4a2db3e32 100644 --- a/TAO/tao/PI/ClientRequestInterceptor_Adapter_Impl.cpp +++ b/TAO/tao/PI/ClientRequestInterceptor_Adapter_Impl.cpp @@ -255,7 +255,7 @@ namespace TAO } void - ClientRequestInterceptor_Adapter_Impl::destroy_interceptors (void) + ClientRequestInterceptor_Adapter_Impl::destroy_interceptors () { this->interceptor_list_.destroy_interceptors (); } diff --git a/TAO/tao/PI/ClientRequestInterceptor_Adapter_Impl.h b/TAO/tao/PI/ClientRequestInterceptor_Adapter_Impl.h index de01f6487f1..3f1c10c7af9 100644 --- a/TAO/tao/PI/ClientRequestInterceptor_Adapter_Impl.h +++ b/TAO/tao/PI/ClientRequestInterceptor_Adapter_Impl.h @@ -64,7 +64,7 @@ namespace TAO , public TAO_RequestInterceptor_Adapter_Impl { public: - ClientRequestInterceptor_Adapter_Impl (void); + ClientRequestInterceptor_Adapter_Impl (); /** * @name PortableInterceptor Client Side Interception Points @@ -101,7 +101,7 @@ namespace TAO PortableInterceptor::ClientRequestInterceptor_ptr interceptor, const CORBA::PolicyList& policies); - virtual void destroy_interceptors (void); + virtual void destroy_interceptors (); virtual PortableInterceptor::ReplyStatus pi_reply_status ( TAO::Invocation_Base const &invocation_base); diff --git a/TAO/tao/PI/ClientRequestInterceptor_Factory_Impl.cpp b/TAO/tao/PI/ClientRequestInterceptor_Factory_Impl.cpp index 2b85812b366..10260d213a7 100644 --- a/TAO/tao/PI/ClientRequestInterceptor_Factory_Impl.cpp +++ b/TAO/tao/PI/ClientRequestInterceptor_Factory_Impl.cpp @@ -20,7 +20,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO::ClientRequestInterceptor_Adapter* -TAO_ClientRequestInterceptor_Adapter_Factory_Impl::create (void) +TAO_ClientRequestInterceptor_Adapter_Factory_Impl::create () { TAO::ClientRequestInterceptor_Adapter_Impl* obj = 0; ACE_NEW_RETURN (obj, diff --git a/TAO/tao/PI/ClientRequestInterceptor_Factory_Impl.h b/TAO/tao/PI/ClientRequestInterceptor_Factory_Impl.h index 75b079061b3..2166b6491a8 100644 --- a/TAO/tao/PI/ClientRequestInterceptor_Factory_Impl.h +++ b/TAO/tao/PI/ClientRequestInterceptor_Factory_Impl.h @@ -38,7 +38,7 @@ class TAO_PI_Export TAO_ClientRequestInterceptor_Adapter_Factory_Impl : public TAO_ClientRequestInterceptor_Adapter_Factory { public: - virtual TAO::ClientRequestInterceptor_Adapter *create (void); + virtual TAO::ClientRequestInterceptor_Adapter *create (); }; ACE_STATIC_SVC_DECLARE (TAO_ClientRequestInterceptor_Adapter_Factory_Impl) diff --git a/TAO/tao/PI/DLL_Resident_ORB_Initializer.h b/TAO/tao/PI/DLL_Resident_ORB_Initializer.h index 338bfbf4f58..306e088b265 100644 --- a/TAO/tao/PI/DLL_Resident_ORB_Initializer.h +++ b/TAO/tao/PI/DLL_Resident_ORB_Initializer.h @@ -51,13 +51,9 @@ namespace PortableInterceptor const ACE_TCHAR * dll_name); virtual ~DLL_Resident_ORB_Initializer (); - virtual void pre_init ( - ::PortableInterceptor::ORBInitInfo_ptr info - ); + virtual void pre_init (::PortableInterceptor::ORBInitInfo_ptr info); - virtual void post_init ( - ::PortableInterceptor::ORBInitInfo_ptr info - ); + virtual void post_init (::PortableInterceptor::ORBInitInfo_ptr info); private: PortableInterceptor::ORBInitializer_var initializer_; diff --git a/TAO/tao/PI/Interceptor_List_T.h b/TAO/tao/PI/Interceptor_List_T.h index 77da79213eb..e8fd6b39c04 100644 --- a/TAO/tao/PI/Interceptor_List_T.h +++ b/TAO/tao/PI/Interceptor_List_T.h @@ -60,7 +60,7 @@ namespace TAO }; /// Constructor. - Interceptor_List (void); + Interceptor_List (); void add_interceptor (InterceptorType_ptr_type i); @@ -68,7 +68,7 @@ namespace TAO void add_interceptor (InterceptorType_ptr_type i, const CORBA::PolicyList& policies); - void destroy_interceptors (void); + void destroy_interceptors (); /// Return the registered interceptor in sequence element @a index. RegisteredInterceptor& registered_interceptor (size_t index); @@ -76,7 +76,7 @@ namespace TAO /// Return the interceptor in sequence element @a index. InterceptorType_ptr_type interceptor (size_t index); - size_t size (void) const; + size_t size () const; private: typedef ACE_Array_Base<RegisteredInterceptor > RegisteredArray; diff --git a/TAO/tao/PI/ORBInitInfo.cpp b/TAO/tao/PI/ORBInitInfo.cpp index 1006abbccec..aba8e1fb7b8 100644 --- a/TAO/tao/PI/ORBInitInfo.cpp +++ b/TAO/tao/PI/ORBInitInfo.cpp @@ -35,7 +35,7 @@ TAO::Objref_Traits<TAO_ORBInitInfo>::release (TAO_ORBInitInfo_ptr p) } TAO_ORBInitInfo_ptr -TAO::Objref_Traits<TAO_ORBInitInfo>::nil (void) +TAO::Objref_Traits<TAO_ORBInitInfo>::nil () { return TAO_ORBInitInfo::_nil (); } @@ -61,12 +61,12 @@ TAO_ORBInitInfo::TAO_ORBInitInfo (TAO_ORB_Core *orb_core, { } -TAO_ORBInitInfo::~TAO_ORBInitInfo (void) +TAO_ORBInitInfo::~TAO_ORBInitInfo () { } CORBA::StringSeq * -TAO_ORBInitInfo::arguments (void) +TAO_ORBInitInfo::arguments () { this->check_validity (); @@ -94,7 +94,7 @@ TAO_ORBInitInfo::arguments (void) } char * -TAO_ORBInitInfo::orb_id (void) +TAO_ORBInitInfo::orb_id () { this->check_validity (); @@ -104,7 +104,7 @@ TAO_ORBInitInfo::orb_id (void) } IOP::CodecFactory_ptr -TAO_ORBInitInfo::codec_factory (void) +TAO_ORBInitInfo::codec_factory () { if (CORBA::is_nil (this->codec_factory_.in ())) { @@ -277,7 +277,7 @@ TAO_ORBInitInfo::add_ior_interceptor_with_policy ( } PortableInterceptor::SlotId -TAO_ORBInitInfo::allocate_slot_id (void) +TAO_ORBInitInfo::allocate_slot_id () { this->check_validity (); @@ -333,7 +333,7 @@ TAO_ORBInitInfo::allocate_tss_slot_id (ACE_CLEANUP_FUNC cleanup) } void -TAO_ORBInitInfo::check_validity (void) +TAO_ORBInitInfo::check_validity () { if (this->orb_core_ == 0) { @@ -348,7 +348,7 @@ TAO_ORBInitInfo::check_validity (void) } CORBA::ORB_ptr -TAO_ORBInitInfo::_get_orb (void) +TAO_ORBInitInfo::_get_orb () { this->check_validity (); @@ -379,7 +379,7 @@ TAO_ORBInitInfo::_duplicate (TAO_ORBInitInfo_ptr obj) return obj; } -const char* TAO_ORBInitInfo::_interface_repository_id (void) const +const char* TAO_ORBInitInfo::_interface_repository_id () const { return "IDL:TAO_ORBInitInfo:1.0"; } diff --git a/TAO/tao/PI/ORBInitInfo.h b/TAO/tao/PI/ORBInitInfo.h index 4dc4efdca3f..a8b960f33d4 100644 --- a/TAO/tao/PI/ORBInitInfo.h +++ b/TAO/tao/PI/ORBInitInfo.h @@ -71,14 +71,14 @@ public: //@{ /// Return the argument vector for the ORB currently being /// initialized as a string sequence. - virtual CORBA::StringSeq * arguments (void); + virtual CORBA::StringSeq * arguments (); /// Return the ORBid for the ORB currently being initialized. - virtual char * orb_id (void); + virtual char * orb_id (); /// Return the CodecFactory for the ORB currently being /// initialized. - virtual IOP::CodecFactory_ptr codec_factory (void); + virtual IOP::CodecFactory_ptr codec_factory (); /// Register a mapping between a string and a corresponding object /// reference with the ORB being initialized. @@ -132,7 +132,7 @@ public: /// Reserve a slot in table found within the /// PortableInterceptor::Current object. - virtual PortableInterceptor::SlotId allocate_slot_id (void); + virtual PortableInterceptor::SlotId allocate_slot_id (); /// Register a policy factory of the given policy type with the ORB /// currently being initialized. @@ -140,7 +140,7 @@ public: CORBA::PolicyType type, PortableInterceptor::PolicyFactory_ptr policy_factory); - virtual CORBA::ORB_ptr _get_orb (void); + virtual CORBA::ORB_ptr _get_orb (); //@} /** @@ -171,18 +171,18 @@ public: * * @note Only use this method if you know what you are doing. */ - TAO_ORB_Core *orb_core (void) const; + TAO_ORB_Core *orb_core () const; /// Invalidate this ORBInitInfo instance. /** * @note This method is only meant to be called by the * CORBA::ORB_init() function. */ - void invalidate (void); + void invalidate (); /// Return the number of allocated slots in for the PICurrent /// object. - PortableInterceptor::SlotId slot_count (void) const; + PortableInterceptor::SlotId slot_count () const; //@} /** @@ -202,24 +202,24 @@ public: static TAO_ORBInitInfo_ptr _unchecked_narrow (CORBA::Object_ptr obj); - static TAO_ORBInitInfo_ptr _nil (void) + static TAO_ORBInitInfo_ptr _nil () { return (TAO_ORBInitInfo_ptr)0; } //@} - virtual const char* _interface_repository_id (void) const; + virtual const char* _interface_repository_id () const; protected: /// Destructor is protected to enforce proper memory management /// through the reference counting mechanism. - ~TAO_ORBInitInfo (void); + ~TAO_ORBInitInfo (); /// Check if this ORBInitInfo instance is valid. Once post_init() /// has been called on each of the ORBInitializers, this ORBInitInfo /// is no longer valid. Throw an exception in that case. - void check_validity (void); + void check_validity (); private: @@ -258,7 +258,7 @@ namespace TAO { static TAO_ORBInitInfo_ptr duplicate (TAO_ORBInitInfo_ptr); static void release (TAO_ORBInitInfo_ptr); - static TAO_ORBInitInfo_ptr nil (void); + static TAO_ORBInitInfo_ptr nil (); static CORBA::Boolean marshal (TAO_ORBInitInfo_ptr p, TAO_OutputCDR & cdr); }; } diff --git a/TAO/tao/PI/ORBInitializer_Registry_Impl.cpp b/TAO/tao/PI/ORBInitializer_Registry_Impl.cpp index c74c4f5e385..f21bc49245c 100644 --- a/TAO/tao/PI/ORBInitializer_Registry_Impl.cpp +++ b/TAO/tao/PI/ORBInitializer_Registry_Impl.cpp @@ -16,7 +16,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO::ORBInitializer_Registry::ORBInitializer_Registry (void) +TAO::ORBInitializer_Registry::ORBInitializer_Registry () : lock_ (), initializers_ () { @@ -66,7 +66,7 @@ TAO::ORBInitializer_Registry::init (int, ACE_TCHAR *[]) } int -TAO::ORBInitializer_Registry::fini (void) +TAO::ORBInitializer_Registry::fini () { ACE_GUARD_RETURN (TAO_SYNCH_RECURSIVE_MUTEX, guard, diff --git a/TAO/tao/PI/ORBInitializer_Registry_Impl.h b/TAO/tao/PI/ORBInitializer_Registry_Impl.h index f6c9de7cd2c..40156abfe85 100644 --- a/TAO/tao/PI/ORBInitializer_Registry_Impl.h +++ b/TAO/tao/PI/ORBInitializer_Registry_Impl.h @@ -43,7 +43,7 @@ namespace TAO : public ORBInitializer_Registry_Adapter { public: - ORBInitializer_Registry (void); + ORBInitializer_Registry (); /// Added to provide registration for the several static service /// objects, brought in with this ORBInitializer_Registry @@ -57,7 +57,7 @@ namespace TAO /// Service config fini method, release all ORBInitializers at this /// moment - virtual int fini (void); + virtual int fini (); /// Register an ORBInitializer with the underlying ORBInitializer /// array. @@ -81,8 +81,8 @@ namespace TAO private: // Prevent copying - ORBInitializer_Registry (const ORBInitializer_Registry &); - void operator= (const ORBInitializer_Registry &); + ORBInitializer_Registry (const ORBInitializer_Registry &) = delete; + void operator= (const ORBInitializer_Registry &) = delete; private: TAO_SYNCH_RECURSIVE_MUTEX lock_; diff --git a/TAO/tao/PI/PI.cpp b/TAO/tao/PI/PI.cpp index 4a8dde4d7a1..319c44c812a 100644 --- a/TAO/tao/PI/PI.cpp +++ b/TAO/tao/PI/PI.cpp @@ -15,7 +15,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL // This one is used during static initialization while the other is used // when PI is a shared library. int -TAO_PI_Init::Initializer (void) +TAO_PI_Init::Initializer () { #if TAO_HAS_INTERCEPTORS == 1 ACE_Service_Config::process_directive (ace_svc_desc_TAO_ClientRequestInterceptor_Adapter_Factory_Impl); diff --git a/TAO/tao/PI/PI.h b/TAO/tao/PI/PI.h index 2d0f9cbe662..addfd85df07 100644 --- a/TAO/tao/PI/PI.h +++ b/TAO/tao/PI/PI.h @@ -31,7 +31,7 @@ class TAO_PI_Export TAO_PI_Init public: /// Used to force the initialization of the ORB code. - static int Initializer (void); + static int Initializer (); }; #if defined (TAO_AS_STATIC_LIBS) || (defined (ACE_VXWORKS) && !defined (__RTP__)) diff --git a/TAO/tao/PI/PICurrent.cpp b/TAO/tao/PI/PICurrent.cpp index 2a673e1eb3f..86bb1f2c632 100644 --- a/TAO/tao/PI/PICurrent.cpp +++ b/TAO/tao/PI/PICurrent.cpp @@ -20,10 +20,6 @@ TAO::PICurrent::PICurrent (TAO_ORB_Core &orb_core) { } -TAO::PICurrent::~PICurrent (void) -{ -} - CORBA::Any * TAO::PICurrent::get_slot (PortableInterceptor::SlotId identifier) { @@ -50,14 +46,14 @@ namespace } TAO::PICurrent_Impl * -TAO::PICurrent::tsc (void) +TAO::PICurrent::tsc () { TAO::PICurrent_Impl *impl = static_cast<TAO::PICurrent_Impl *> ( this->orb_core_.get_tss_resource (this->tss_slot_)); // If this TSS has not yet been set-up, give it it's own PICurrent_Impl. - if (0 == impl) + if (!impl) { ACE_NEW_THROW_EX (impl, TAO::PICurrent_Impl (&this->orb_core_, this->tss_slot_), @@ -89,7 +85,7 @@ TAO::PICurrent::check_validity (const PortableInterceptor::SlotId &identifier) } CORBA::ORB_ptr -TAO::PICurrent::_get_orb (void) +TAO::PICurrent::_get_orb () { return CORBA::ORB::_duplicate (this->orb_core_.orb ()); } diff --git a/TAO/tao/PI/PICurrent.h b/TAO/tao/PI/PICurrent.h index c5fb1391941..78ae7d699ec 100644 --- a/TAO/tao/PI/PICurrent.h +++ b/TAO/tao/PI/PICurrent.h @@ -76,14 +76,14 @@ namespace TAO const CORBA::Any & data); //@} - virtual CORBA::ORB_ptr _get_orb (void); + virtual CORBA::ORB_ptr _get_orb (); /// Number of slots allocated in the slot table. - PortableInterceptor::SlotId slot_count (void) const; + PortableInterceptor::SlotId slot_count () const; /// Retrieve the PICurrent implementation from TSS, i.e. the thread /// scope current (TSC). - PICurrent_Impl * tsc (void); + PICurrent_Impl * tsc (); /// Verify the validity of the given SlotId. void check_validity (const PortableInterceptor::SlotId &identifier); @@ -98,14 +98,14 @@ namespace TAO * counted, and should not be destroyed using delete() by anything * other than the reference counting mechanism. */ - virtual ~PICurrent (void); + virtual ~PICurrent () = default; private: /// Prevent copying through the copy constructor and the assignment /// operator. //@{ - PICurrent (const PICurrent &); - void operator= (const PICurrent &); + PICurrent (const PICurrent &) = delete; + void operator= (const PICurrent &) = delete; //@} private: diff --git a/TAO/tao/PI/PICurrent_Impl.cpp b/TAO/tao/PI/PICurrent_Impl.cpp index 3c3ae41dd95..9f8ccaba8f8 100644 --- a/TAO/tao/PI/PICurrent_Impl.cpp +++ b/TAO/tao/PI/PICurrent_Impl.cpp @@ -171,7 +171,7 @@ TAO::PICurrent_Impl::~PICurrent_Impl () } void -TAO::PICurrent_Impl::push (void) +TAO::PICurrent_Impl::push () { if (this->orb_core_) // We have a stack to adjust { @@ -197,7 +197,7 @@ TAO::PICurrent_Impl::push (void) } void -TAO::PICurrent_Impl::pop (void) +TAO::PICurrent_Impl::pop () { if (this->orb_core_) // We have a stack to adjust { diff --git a/TAO/tao/PI/PICurrent_Impl.h b/TAO/tao/PI/PICurrent_Impl.h index 3d22b82bb1e..7819fdda9cc 100644 --- a/TAO/tao/PI/PICurrent_Impl.h +++ b/TAO/tao/PI/PICurrent_Impl.h @@ -52,7 +52,7 @@ namespace TAO size_t tss_slot= 0, PICurrent_Impl *pop= 0); /// Destructor. - ~PICurrent_Impl (void); + ~PICurrent_Impl (); /// Retrieve information stored in the slot table at the given /// SlotId. @@ -66,10 +66,10 @@ namespace TAO void take_lazy_copy (PICurrent_Impl *p); /// Push a new PICurrent_Impl on stack - void push (void); + void push (); /// Pop old PICurrent_Impl from stack - void pop (void); + void pop (); private: /// Force this object to convert from a logical (referenced) @@ -97,8 +97,8 @@ namespace TAO /// Prevent copying through the copy constructor and the assignment /// operator. //@{ - PICurrent_Impl (const PICurrent_Impl &); - void operator= (const PICurrent_Impl &); + PICurrent_Impl (const PICurrent_Impl &) = delete; + void operator= (const PICurrent_Impl &) = delete; //@} private: diff --git a/TAO/tao/PI/PI_ORBInitializer.cpp b/TAO/tao/PI/PI_ORBInitializer.cpp index 5aa02eea3a9..123d4f54ea8 100644 --- a/TAO/tao/PI/PI_ORBInitializer.cpp +++ b/TAO/tao/PI/PI_ORBInitializer.cpp @@ -16,7 +16,6 @@ TAO_PI_ORBInitializer::pre_init (PortableInterceptor::ORBInitInfo_ptr) { } - void TAO_PI_ORBInitializer::post_init (PortableInterceptor::ORBInitInfo_ptr info) { @@ -39,7 +38,6 @@ TAO_PI_ORBInitializer::post_init (PortableInterceptor::ORBInitInfo_ptr info) this->register_policy_factories (info); } - void TAO_PI_ORBInitializer::register_policy_factories ( PortableInterceptor::ORBInitInfo_ptr info) diff --git a/TAO/tao/PI/PI_ORBInitializer.h b/TAO/tao/PI/PI_ORBInitializer.h index 082f9a3fdc5..8a7af55048d 100644 --- a/TAO/tao/PI/PI_ORBInitializer.h +++ b/TAO/tao/PI/PI_ORBInitializer.h @@ -37,7 +37,6 @@ class TAO_PI_Export TAO_PI_ORBInitializer public virtual ::CORBA::LocalObject { public: - /** * @name PortableInterceptor::ORBInitializer methods * @@ -51,7 +50,6 @@ public: //@} private: - /// Register PortableInterceptor policy factories. void register_policy_factories (PortableInterceptor::ORBInitInfo_ptr info); diff --git a/TAO/tao/PI/PI_PolicyFactory.h b/TAO/tao/PI/PI_PolicyFactory.h index fac7f3071af..85236c1f2cf 100644 --- a/TAO/tao/PI/PI_PolicyFactory.h +++ b/TAO/tao/PI/PI_PolicyFactory.h @@ -34,8 +34,7 @@ class TAO_PI_Export TAO_PI_PolicyFactory public virtual ::CORBA::LocalObject { public: - CORBA::Policy_ptr create_policy (CORBA::PolicyType type, - const CORBA::Any & value); + CORBA::Policy_ptr create_policy (CORBA::PolicyType type, const CORBA::Any & value); }; TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/tao/PI/PolicyFactoryC.cpp b/TAO/tao/PI/PolicyFactoryC.cpp index cf36dafbbb1..eb614ce9dbb 100644 --- a/TAO/tao/PI/PolicyFactoryC.cpp +++ b/TAO/tao/PI/PolicyFactoryC.cpp @@ -63,7 +63,7 @@ TAO::Objref_Traits<PortableInterceptor::PolicyFactory>::release ( } PortableInterceptor::PolicyFactory_ptr -TAO::Objref_Traits<PortableInterceptor::PolicyFactory>::nil (void) +TAO::Objref_Traits<PortableInterceptor::PolicyFactory>::nil () { return PortableInterceptor::PolicyFactory::_nil (); } @@ -77,10 +77,10 @@ TAO::Objref_Traits<PortableInterceptor::PolicyFactory>::marshal ( return ::CORBA::Object::marshal (p, cdr); } -PortableInterceptor::PolicyFactory::PolicyFactory (void) +PortableInterceptor::PolicyFactory::PolicyFactory () {} -PortableInterceptor::PolicyFactory::~PolicyFactory (void) +PortableInterceptor::PolicyFactory::~PolicyFactory () {} PortableInterceptor::PolicyFactory_ptr @@ -146,7 +146,7 @@ PortableInterceptor::PolicyFactory::_is_a (const char *value) } } -const char* PortableInterceptor::PolicyFactory::_interface_repository_id (void) const +const char* PortableInterceptor::PolicyFactory::_interface_repository_id () const { return "IDL:omg.org/PortableInterceptor/PolicyFactory:1.0"; } diff --git a/TAO/tao/PI/PolicyFactoryC.h b/TAO/tao/PI/PolicyFactoryC.h index 0b2dfabc75b..f97f52df981 100644 --- a/TAO/tao/PI/PolicyFactoryC.h +++ b/TAO/tao/PI/PolicyFactoryC.h @@ -106,7 +106,7 @@ namespace PortableInterceptor ); - static PolicyFactory_ptr _nil (void) + static PolicyFactory_ptr _nil () { return static_cast<PolicyFactory_ptr> (0); } @@ -137,14 +137,14 @@ namespace PortableInterceptor ); - virtual const char* _interface_repository_id (void) const; + virtual const char* _interface_repository_id () const; virtual ::CORBA::Boolean marshal (TAO_OutputCDR &cdr); protected: // Abstract or local interface only. - PolicyFactory (void); + PolicyFactory (); - virtual ~PolicyFactory (void); + virtual ~PolicyFactory (); private: // Private and unimplemented for concrete interfaces. @@ -179,7 +179,7 @@ namespace TAO static void release ( ::PortableInterceptor::PolicyFactory_ptr ); - static ::PortableInterceptor::PolicyFactory_ptr nil (void); + static ::PortableInterceptor::PolicyFactory_ptr nil (); static ::CORBA::Boolean marshal ( ::PortableInterceptor::PolicyFactory_ptr p, TAO_OutputCDR & cdr diff --git a/TAO/tao/PI/PolicyFactory_Loader.cpp b/TAO/tao/PI/PolicyFactory_Loader.cpp index 81cd0387879..252e0f9f1cf 100644 --- a/TAO/tao/PI/PolicyFactory_Loader.cpp +++ b/TAO/tao/PI/PolicyFactory_Loader.cpp @@ -17,7 +17,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO::PolicyFactory_Registry_Adapter* -TAO_PolicyFactory_Loader::create (void) +TAO_PolicyFactory_Loader::create () { TAO::PolicyFactory_Registry_Adapter* obj = 0; ACE_NEW_RETURN (obj, @@ -27,7 +27,7 @@ TAO_PolicyFactory_Loader::create (void) } int -TAO_PolicyFactory_Loader::Initializer (void) +TAO_PolicyFactory_Loader::Initializer () { return ACE_Service_Config::process_directive (ace_svc_desc_TAO_PolicyFactory_Loader); } diff --git a/TAO/tao/PI/PolicyFactory_Loader.h b/TAO/tao/PI/PolicyFactory_Loader.h index d96c7d39abd..98ad244420f 100644 --- a/TAO/tao/PI/PolicyFactory_Loader.h +++ b/TAO/tao/PI/PolicyFactory_Loader.h @@ -31,10 +31,10 @@ class TAO_PI_Export TAO_PolicyFactory_Loader { public: /// Creates a Codec factory and returns it. - virtual TAO::PolicyFactory_Registry_Adapter* create (void); + virtual TAO::PolicyFactory_Registry_Adapter* create (); /// Used to force the initialization of the ORB code. - static int Initializer (void); + static int Initializer (); }; static int diff --git a/TAO/tao/PI/PolicyFactory_Registry.cpp b/TAO/tao/PI/PolicyFactory_Registry.cpp index 0ff905feef5..fc8d396aece 100644 --- a/TAO/tao/PI/PolicyFactory_Registry.cpp +++ b/TAO/tao/PI/PolicyFactory_Registry.cpp @@ -6,12 +6,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_PolicyFactory_Registry::TAO_PolicyFactory_Registry (void) +TAO_PolicyFactory_Registry::TAO_PolicyFactory_Registry () : factories_ (TAO_DEFAULT_POLICY_FACTORY_REGISTRY_SIZE) { } -TAO_PolicyFactory_Registry::~TAO_PolicyFactory_Registry (void) +TAO_PolicyFactory_Registry::~TAO_PolicyFactory_Registry () { const TABLE::iterator end (this->factories_.end ()); diff --git a/TAO/tao/PI/PolicyFactory_Registry.h b/TAO/tao/PI/PolicyFactory_Registry.h index ddd26b87151..9ea5fb17330 100644 --- a/TAO/tao/PI/PolicyFactory_Registry.h +++ b/TAO/tao/PI/PolicyFactory_Registry.h @@ -39,7 +39,6 @@ class TAO_PolicyFactory_Registry : public TAO::PolicyFactory_Registry_Adapter { public: - /** * The type of table that maps policy type to policy factory. * @@ -51,16 +50,14 @@ public: */ typedef ACE_Map_Manager<CORBA::PolicyType, PortableInterceptor::PolicyFactory_ptr, - ACE_Null_Mutex> - TABLE; + ACE_Null_Mutex> TABLE; public: - /// Constructor - TAO_PolicyFactory_Registry (void); + TAO_PolicyFactory_Registry (); /// Destructor. Releases duplicated PolicyFactory references. - ~TAO_PolicyFactory_Registry (void); + ~TAO_PolicyFactory_Registry (); /// Register a PolicyFactory with the underlying PolicyFactory /// sequence. This method should only be called during ORB @@ -83,10 +80,8 @@ public: bool factory_exists (CORBA::PolicyType & type) const; private: - /// The table that maps policy type to policy factory. TABLE factories_; - }; TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/tao/PI/ProcessingModePolicy.cpp b/TAO/tao/PI/ProcessingModePolicy.cpp index 046e5014ac4..85938fec13d 100644 --- a/TAO/tao/PI/ProcessingModePolicy.cpp +++ b/TAO/tao/PI/ProcessingModePolicy.cpp @@ -17,9 +17,9 @@ TAO_ProcessingModePolicy::TAO_ProcessingModePolicy } CORBA::Policy_ptr -TAO_ProcessingModePolicy::copy (void) +TAO_ProcessingModePolicy::copy () { - TAO_ProcessingModePolicy *copy = 0; + TAO_ProcessingModePolicy *copy {}; ACE_NEW_THROW_EX (copy, TAO_ProcessingModePolicy (this->processing_mode_), CORBA::NO_MEMORY ()); @@ -28,18 +28,18 @@ TAO_ProcessingModePolicy::copy (void) } void -TAO_ProcessingModePolicy::destroy (void) +TAO_ProcessingModePolicy::destroy () { } PortableInterceptor::ProcessingMode -TAO_ProcessingModePolicy::processing_mode (void) +TAO_ProcessingModePolicy::processing_mode () { return processing_mode_; } CORBA::PolicyType -TAO_ProcessingModePolicy::policy_type (void) +TAO_ProcessingModePolicy::policy_type () { return PortableInterceptor::PROCESSING_MODE_POLICY_TYPE; } diff --git a/TAO/tao/PI/ProcessingModePolicy.h b/TAO/tao/PI/ProcessingModePolicy.h index ce6d12690db..ecc270c8e3d 100644 --- a/TAO/tao/PI/ProcessingModePolicy.h +++ b/TAO/tao/PI/ProcessingModePolicy.h @@ -44,13 +44,13 @@ public: /// Constructor. TAO_ProcessingModePolicy (PortableInterceptor::ProcessingMode mode); - virtual PortableInterceptor::ProcessingMode processing_mode (void); + virtual PortableInterceptor::ProcessingMode processing_mode (); - virtual CORBA::PolicyType policy_type (void); + virtual CORBA::PolicyType policy_type (); - virtual CORBA::Policy_ptr copy (void); + virtual CORBA::Policy_ptr copy (); - virtual void destroy (void); + virtual void destroy (); private: /// The attribute diff --git a/TAO/tao/PI/RequestInfo_Util.cpp b/TAO/tao/PI/RequestInfo_Util.cpp index 29ec2f53511..adb2c7c0597 100644 --- a/TAO/tao/PI/RequestInfo_Util.cpp +++ b/TAO/tao/PI/RequestInfo_Util.cpp @@ -13,7 +13,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL Dynamic::ParameterList * -TAO_RequestInfo_Util::make_parameter_list (void) +TAO_RequestInfo_Util::make_parameter_list () { Dynamic::ParameterList *parameter_list = 0; ACE_NEW_THROW_EX (parameter_list, @@ -30,7 +30,7 @@ TAO_RequestInfo_Util::make_parameter_list (void) } Dynamic::ExceptionList * -TAO_RequestInfo_Util::make_exception_list (void) +TAO_RequestInfo_Util::make_exception_list () { Dynamic::ExceptionList *exception_list = 0; ACE_NEW_THROW_EX (exception_list, @@ -47,7 +47,7 @@ TAO_RequestInfo_Util::make_exception_list (void) } Dynamic::ContextList * -TAO_RequestInfo_Util::make_context_list (void) +TAO_RequestInfo_Util::make_context_list () { Dynamic::ContextList *context_list = 0; ACE_NEW_THROW_EX (context_list, @@ -64,7 +64,7 @@ TAO_RequestInfo_Util::make_context_list (void) } Dynamic::RequestContext * -TAO_RequestInfo_Util::make_request_context (void) +TAO_RequestInfo_Util::make_request_context () { Dynamic::RequestContext *request_context = 0; ACE_NEW_THROW_EX (request_context, diff --git a/TAO/tao/PI/RequestInfo_Util.h b/TAO/tao/PI/RequestInfo_Util.h index b0c48d878bf..56537358735 100644 --- a/TAO/tao/PI/RequestInfo_Util.h +++ b/TAO/tao/PI/RequestInfo_Util.h @@ -60,13 +60,13 @@ public: * class. */ //@{ - static Dynamic::ParameterList * make_parameter_list (void); + static Dynamic::ParameterList * make_parameter_list (); - static Dynamic::ExceptionList * make_exception_list (void); + static Dynamic::ExceptionList * make_exception_list (); - static Dynamic::ContextList * make_context_list (void); + static Dynamic::ContextList * make_context_list (); - static Dynamic::RequestContext * make_request_context (void); + static Dynamic::RequestContext * make_request_context (); static CORBA::Any * make_any (CORBA::Boolean tk_void_any); //@} diff --git a/TAO/tao/PI/RequestInterceptor_Adapter_Impl.cpp b/TAO/tao/PI/RequestInterceptor_Adapter_Impl.cpp index ce14ce596b4..b9c074cd79e 100644 --- a/TAO/tao/PI/RequestInterceptor_Adapter_Impl.cpp +++ b/TAO/tao/PI/RequestInterceptor_Adapter_Impl.cpp @@ -20,7 +20,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_RequestInterceptor_Adapter_Impl::~TAO_RequestInterceptor_Adapter_Impl (void) +TAO_RequestInterceptor_Adapter_Impl::~TAO_RequestInterceptor_Adapter_Impl () { } diff --git a/TAO/tao/PI/RequestInterceptor_Adapter_Impl.h b/TAO/tao/PI/RequestInterceptor_Adapter_Impl.h index a3ff67558ef..44d76c58261 100644 --- a/TAO/tao/PI/RequestInterceptor_Adapter_Impl.h +++ b/TAO/tao/PI/RequestInterceptor_Adapter_Impl.h @@ -43,7 +43,7 @@ class TAO_PI_Export TAO_RequestInterceptor_Adapter_Impl : public TAO::RequestInterceptor_Adapter { public: - ~TAO_RequestInterceptor_Adapter_Impl (void); + ~TAO_RequestInterceptor_Adapter_Impl (); void popTSC (TAO_ORB_Core *orb_core); void pushTSC (TAO_ORB_Core *orb_core); diff --git a/TAO/tao/PI_Server/PICurrent_Guard.cpp b/TAO/tao/PI_Server/PICurrent_Guard.cpp index 87500e8ff82..61f12fffadf 100644 --- a/TAO/tao/PI_Server/PICurrent_Guard.cpp +++ b/TAO/tao/PI_Server/PICurrent_Guard.cpp @@ -53,7 +53,7 @@ TAO::PICurrent_Guard::PICurrent_Guard (TAO_ServerRequest &server_request, } } -TAO::PICurrent_Guard::~PICurrent_Guard (void) +TAO::PICurrent_Guard::~PICurrent_Guard () { if (this->src_ != 0 && this->dest_ != 0 && this->src_ != this->dest_) diff --git a/TAO/tao/PI_Server/PICurrent_Guard.h b/TAO/tao/PI_Server/PICurrent_Guard.h index 8eaee4ec81d..16014c78dca 100644 --- a/TAO/tao/PI_Server/PICurrent_Guard.h +++ b/TAO/tao/PI_Server/PICurrent_Guard.h @@ -72,7 +72,7 @@ namespace TAO * points are invoked, and after the starting and intermediate (if * any) interception points are invoked. */ - ~PICurrent_Guard (void); + ~PICurrent_Guard (); private: diff --git a/TAO/tao/PI_Server/PI_Server.cpp b/TAO/tao/PI_Server/PI_Server.cpp index 0c222f5d26b..322d9be2505 100644 --- a/TAO/tao/PI_Server/PI_Server.cpp +++ b/TAO/tao/PI_Server/PI_Server.cpp @@ -6,7 +6,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL int -TAO_PI_Server_Init::Initializer (void) +TAO_PI_Server_Init::Initializer () { #if TAO_HAS_INTERCEPTORS == 1 ACE_Service_Config::process_directive (ace_svc_desc_TAO_ServerRequestInterceptor_Adapter_Factory_Impl); diff --git a/TAO/tao/PI_Server/PI_Server.h b/TAO/tao/PI_Server/PI_Server.h index 63b7f2b2281..f38922a5209 100644 --- a/TAO/tao/PI_Server/PI_Server.h +++ b/TAO/tao/PI_Server/PI_Server.h @@ -31,7 +31,7 @@ class TAO_PI_Server_Export TAO_PI_Server_Init public: /// Used to force the initialization of the ORB code. - static int Initializer (void); + static int Initializer (); }; static int diff --git a/TAO/tao/PI_Server/PI_Server_Loader.cpp b/TAO/tao/PI_Server/PI_Server_Loader.cpp index 6971657efc8..3c38f5cf1fd 100644 --- a/TAO/tao/PI_Server/PI_Server_Loader.cpp +++ b/TAO/tao/PI_Server/PI_Server_Loader.cpp @@ -8,12 +8,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_PI_Server_Loader::TAO_PI_Server_Loader (void) +TAO_PI_Server_Loader::TAO_PI_Server_Loader () : initialized_ (false) { } -TAO_PI_Server_Loader::~TAO_PI_Server_Loader (void) +TAO_PI_Server_Loader::~TAO_PI_Server_Loader () { } diff --git a/TAO/tao/PI_Server/PI_Server_Loader.h b/TAO/tao/PI_Server/PI_Server_Loader.h index b7079eb7c0d..d466c9a2564 100644 --- a/TAO/tao/PI_Server/PI_Server_Loader.h +++ b/TAO/tao/PI_Server/PI_Server_Loader.h @@ -27,10 +27,10 @@ class TAO_PI_Server_Export TAO_PI_Server_Loader : public ACE_Service_Object { public: /// Constructor. - TAO_PI_Server_Loader (void); + TAO_PI_Server_Loader (); /// Destructor. - virtual ~TAO_PI_Server_Loader (void); + virtual ~TAO_PI_Server_Loader (); /// Initialize the PI_Server loader hooks. virtual int init (int argc, ACE_TCHAR* []); diff --git a/TAO/tao/PI_Server/ServerInterceptorAdapter.cpp b/TAO/tao/PI_Server/ServerInterceptorAdapter.cpp index b2863450ee9..93470b44b2d 100644 --- a/TAO/tao/PI_Server/ServerInterceptorAdapter.cpp +++ b/TAO/tao/PI_Server/ServerInterceptorAdapter.cpp @@ -15,7 +15,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO::ServerRequestInterceptor_Adapter_Impl::ServerRequestInterceptor_Adapter_Impl (void) +TAO::ServerRequestInterceptor_Adapter_Impl::ServerRequestInterceptor_Adapter_Impl () { } @@ -506,13 +506,13 @@ TAO::ServerRequestInterceptor_Adapter_Impl::add_interceptor ( } void -TAO::ServerRequestInterceptor_Adapter_Impl::destroy_interceptors (void) +TAO::ServerRequestInterceptor_Adapter_Impl::destroy_interceptors () { this->interceptor_list_.destroy_interceptors (); } TAO::PICurrent_Impl * -TAO::ServerRequestInterceptor_Adapter_Impl::allocate_pi_current (void) +TAO::ServerRequestInterceptor_Adapter_Impl::allocate_pi_current () { TAO::PICurrent_Impl *pi = 0; ACE_NEW_RETURN (pi, diff --git a/TAO/tao/PI_Server/ServerInterceptorAdapter.h b/TAO/tao/PI_Server/ServerInterceptorAdapter.h index 6a5b7f25d12..15630621c6a 100644 --- a/TAO/tao/PI_Server/ServerInterceptorAdapter.h +++ b/TAO/tao/PI_Server/ServerInterceptorAdapter.h @@ -68,7 +68,7 @@ namespace TAO { public: /// Constructor. - ServerRequestInterceptor_Adapter_Impl (void); + ServerRequestInterceptor_Adapter_Impl (); /** * @name PortableInterceptor Server Side Interception Points @@ -154,9 +154,9 @@ namespace TAO PortableInterceptor::ServerRequestInterceptor_ptr interceptor, const CORBA::PolicyList& policies); - virtual void destroy_interceptors (void); + virtual void destroy_interceptors (); - virtual TAO::PICurrent_Impl *allocate_pi_current (void); + virtual TAO::PICurrent_Impl *allocate_pi_current (); virtual void deallocate_pi_current (TAO::PICurrent_Impl *picurrent); diff --git a/TAO/tao/PI_Server/ServerRequestDetails.h b/TAO/tao/PI_Server/ServerRequestDetails.h index 1727d249013..69ea625353f 100644 --- a/TAO/tao/PI_Server/ServerRequestDetails.h +++ b/TAO/tao/PI_Server/ServerRequestDetails.h @@ -49,7 +49,7 @@ namespace TAO class ServerRequestDetails { public: - ServerRequestDetails (void); + ServerRequestDetails (); void apply_policies (const CORBA::PolicyList& policies); diff --git a/TAO/tao/PI_Server/ServerRequestInfo.cpp b/TAO/tao/PI_Server/ServerRequestInfo.cpp index 93d297ca0c4..418c92be0b1 100644 --- a/TAO/tao/PI_Server/ServerRequestInfo.cpp +++ b/TAO/tao/PI_Server/ServerRequestInfo.cpp @@ -27,7 +27,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL CORBA::ULong -TAO::ServerRequestInfo::request_id (void) +TAO::ServerRequestInfo::request_id () { // The request ID returned by this method need not correspond to the // GIOP request ID sent with the client request. The request ID @@ -65,15 +65,15 @@ TAO::ServerRequestInfo::request_id (void) } char * -TAO::ServerRequestInfo::operation (void) +TAO::ServerRequestInfo::operation () { return CORBA::string_dup (this->server_request_.operation ()); } Dynamic::ParameterList * -TAO::ServerRequestInfo::arguments (void) +TAO::ServerRequestInfo::arguments () { - if (this->args_ == 0) + if (!this->args_) { throw ::CORBA::BAD_INV_ORDER (CORBA::OMGVMCID | 14, CORBA::COMPLETED_NO); } @@ -115,9 +115,9 @@ TAO::ServerRequestInfo::arguments (void) } Dynamic::ExceptionList * -TAO::ServerRequestInfo::exceptions (void) +TAO::ServerRequestInfo::exceptions () { - if (this->args_ == 0) + if (!this->args_) { throw ::CORBA::BAD_INV_ORDER (CORBA::OMGVMCID | 14, CORBA::COMPLETED_NO); } @@ -145,21 +145,21 @@ TAO::ServerRequestInfo::exceptions (void) } Dynamic::ContextList * -TAO::ServerRequestInfo::contexts (void) +TAO::ServerRequestInfo::contexts () { throw ::CORBA::BAD_INV_ORDER (CORBA::OMGVMCID | 14, CORBA::COMPLETED_NO); } Dynamic::RequestContext * -TAO::ServerRequestInfo::operation_context (void) +TAO::ServerRequestInfo::operation_context () { throw ::CORBA::BAD_INV_ORDER (CORBA::OMGVMCID | 14, CORBA::COMPLETED_NO); } CORBA::Any * -TAO::ServerRequestInfo::result (void) +TAO::ServerRequestInfo::result () { - if (this->args_ == 0) + if (!this->args_) { throw ::CORBA::BAD_INV_ORDER (CORBA::OMGVMCID | 14, CORBA::COMPLETED_NO); } @@ -167,8 +167,7 @@ TAO::ServerRequestInfo::result (void) // Generate the result on demand. static CORBA::Boolean const tk_void_any = true; - CORBA::Any * result_any = - TAO_RequestInfo_Util::make_any (tk_void_any); + CORBA::Any * result_any = TAO_RequestInfo_Util::make_any (tk_void_any); CORBA::Any_var safe_result_any = result_any; @@ -181,35 +180,41 @@ TAO::ServerRequestInfo::result (void) } CORBA::Boolean -TAO::ServerRequestInfo::response_expected (void) +TAO::ServerRequestInfo::response_expected () { return this->server_request_.response_expected (); } Messaging::SyncScope -TAO::ServerRequestInfo::sync_scope (void) +TAO::ServerRequestInfo::sync_scope () { if (this->server_request_.sync_with_server ()) + { return Messaging::SYNC_WITH_SERVER; + } throw ::CORBA::BAD_INV_ORDER (CORBA::OMGVMCID | 14, CORBA::COMPLETED_NO); } PortableInterceptor::ReplyStatus -TAO::ServerRequestInfo::reply_status (void) +TAO::ServerRequestInfo::reply_status () { if (this->server_request_.pi_reply_status () == -1) + { // A reply hasn't been received yet. throw ::CORBA::BAD_INV_ORDER (CORBA::OMGVMCID | 14, CORBA::COMPLETED_NO); + } return this->server_request_.pi_reply_status (); } CORBA::Object_ptr -TAO::ServerRequestInfo::forward_reference (void) +TAO::ServerRequestInfo::forward_reference () { if (this->server_request_.pi_reply_status () != PortableInterceptor::LOCATION_FORWARD) + { throw ::CORBA::BAD_INV_ORDER (CORBA::OMGVMCID | 14, CORBA::COMPLETED_NO); + } // TAO_ServerRequest::forward_location() already duplicates the // object reference. There is no need to duplicate it here. @@ -227,7 +232,7 @@ TAO::ServerRequestInfo::get_slot (PortableInterceptor::SlotId id) TAO::PICurrent *pi_current = dynamic_cast <TAO::PICurrent*> (pi_current_obj); - if (pi_current == 0) + if (!pi_current) throw ::CORBA::INTERNAL (); pi_current->check_validity (id); @@ -236,7 +241,6 @@ TAO::ServerRequestInfo::get_slot (PortableInterceptor::SlotId id) TAO::PICurrent_Impl *rsc = this->server_request_.rs_pi_current (); return rsc->get_slot (id); - } IOP::ServiceContext * @@ -280,7 +284,7 @@ TAO::ServerRequestInfo::get_service_context_i ( // exception from an Any. This method is in place just to be compliant // with the spec. CORBA::Any * -TAO::ServerRequestInfo::sending_exception (void) +TAO::ServerRequestInfo::sending_exception () { if (this->server_request_.pi_reply_status () != PortableInterceptor::SYSTEM_EXCEPTION && this->server_request_.pi_reply_status () != PortableInterceptor::USER_EXCEPTION) @@ -291,8 +295,7 @@ TAO::ServerRequestInfo::sending_exception (void) // The spec says that if it is a user exception which cannot be // inserted then the UNKNOWN exception should be thrown with minor // code 1. - - CORBA::Any * temp = 0; + CORBA::Any * temp {}; ACE_NEW_THROW_EX (temp, CORBA::Any, @@ -304,56 +307,61 @@ TAO::ServerRequestInfo::sending_exception (void) CORBA::Any_var caught_exception_var = temp; - if (this->server_request_.caught_exception () != 0) + if (this->server_request_.caught_exception ()) + { (*temp) <<= *(this->server_request_.caught_exception ()); + } return caught_exception_var._retn (); } char * -TAO::ServerRequestInfo::server_id (void) +TAO::ServerRequestInfo::server_id () { - if (this->servant_upcall_ != 0) - return - CORBA::string_dup (this->server_request_.orb_core ()->server_id ()); + if (this->servant_upcall_) + { + return CORBA::string_dup (this->server_request_.orb_core ()->server_id ()); + } throw ::CORBA::BAD_INV_ORDER (CORBA::OMGVMCID | 14, CORBA::COMPLETED_NO); } char * -TAO::ServerRequestInfo::orb_id (void) +TAO::ServerRequestInfo::orb_id () { - if (this->servant_upcall_ != 0) - return - CORBA::string_dup (this->server_request_.orb_core ()->orbid ()); + if (this->servant_upcall_) + { + return CORBA::string_dup (this->server_request_.orb_core ()->orbid ()); + } throw ::CORBA::BAD_INV_ORDER (CORBA::OMGVMCID | 14, CORBA::COMPLETED_NO); } PortableInterceptor::AdapterName * -TAO::ServerRequestInfo::adapter_name (void) +TAO::ServerRequestInfo::adapter_name () { // The adapter_name attribute defines a name for the object adapter // that services requests for the invoked object. In the case of the // POA, the adapter_name is the sequence of names from the root POA // to the POA that services the request. The root POA is not named // in this sequence. - if (this->servant_upcall_ != 0) - return - this->servant_upcall_->poa ().adapter_name (); + if (this->servant_upcall_) + { + return this->servant_upcall_->poa ().adapter_name (); + } throw ::CORBA::BAD_INV_ORDER (CORBA::OMGVMCID | 14, CORBA::COMPLETED_NO); } PortableInterceptor::ObjectId * -TAO::ServerRequestInfo::object_id (void) +TAO::ServerRequestInfo::object_id () { if (this->servant_upcall_ != 0) { const PortableServer::ObjectId &id = this->servant_upcall_->user_id (); - PortableInterceptor::ObjectId *tmp = 0; + PortableInterceptor::ObjectId *tmp {}; ACE_NEW_THROW_EX (tmp, PortableInterceptor::ObjectId, @@ -385,21 +393,25 @@ TAO::ServerRequestInfo::object_id (void) } CORBA::OctetSeq * -TAO::ServerRequestInfo::adapter_id (void) +TAO::ServerRequestInfo::adapter_id () { - if (this->servant_upcall_ != 0) + if (this->servant_upcall_) + { return this->servant_upcall_->poa ().id (); + } throw ::CORBA::BAD_INV_ORDER (CORBA::OMGVMCID | 14, CORBA::COMPLETED_NO); } char * -TAO::ServerRequestInfo::target_most_derived_interface (void) +TAO::ServerRequestInfo::target_most_derived_interface () { - PortableServer::Servant const servant = - (this->servant_upcall_ == 0 - ? 0 - : this->servant_upcall_->servant ()); + if (this->servant_upcall_ == 0) + { + throw ::CORBA::BAD_INV_ORDER (CORBA::OMGVMCID | 14, CORBA::COMPLETED_NO); + } + + PortableServer::Servant const servant = this->servant_upcall_->servant (); if (servant == 0) { @@ -446,7 +458,7 @@ TAO::ServerRequestInfo::set_slot (PortableInterceptor::SlotId id, TAO::PICurrent *pi_current = dynamic_cast <TAO::PICurrent*> (pi_current_obj); - if (pi_current == 0) + if (!pi_current) throw ::CORBA::INTERNAL (); pi_current->check_validity (id); @@ -460,11 +472,13 @@ TAO::ServerRequestInfo::set_slot (PortableInterceptor::SlotId id, CORBA::Boolean TAO::ServerRequestInfo::target_is_a (const char * id) { + if (this->servant_upcall_ == 0) + { + throw ::CORBA::BAD_INV_ORDER (CORBA::OMGVMCID | 14, CORBA::COMPLETED_NO); + } + // Implemented in the generated skeleton. - PortableServer::Servant const servant = - (this->servant_upcall_ == 0 - ? 0 - : this->servant_upcall_->servant ()); + PortableServer::Servant const servant = this->servant_upcall_->servant (); if (servant == 0) { diff --git a/TAO/tao/PI_Server/ServerRequestInfo.h b/TAO/tao/PI_Server/ServerRequestInfo.h index 98b1267f71a..279a231b79c 100644 --- a/TAO/tao/PI_Server/ServerRequestInfo.h +++ b/TAO/tao/PI_Server/ServerRequestInfo.h @@ -80,34 +80,34 @@ namespace TAO /// Return an ID unique to the current request. This request ID may /// or may not be the same as the GIOP request ID. - virtual CORBA::ULong request_id (void); + virtual CORBA::ULong request_id (); /// Return the operation name for the current request. - virtual char * operation (void); + virtual char * operation (); /// Return the list of arguments passed to the current operation. - virtual Dynamic::ParameterList * arguments (void); + virtual Dynamic::ParameterList * arguments (); /// Return the list of exceptions the current operation is capable /// of throwing. - virtual Dynamic::ExceptionList * exceptions (void); + virtual Dynamic::ExceptionList * exceptions (); - virtual Dynamic::ContextList * contexts (void); + virtual Dynamic::ContextList * contexts (); - virtual Dynamic::RequestContext * operation_context (void); + virtual Dynamic::RequestContext * operation_context (); /// Return the result of the current request. If there is no /// return value then an @c Any with @c tk_void @c TypeCode is /// returned. This method is not valid for oneway operations. - virtual CORBA::Any * result (void); + virtual CORBA::Any * result (); /// Returns @c true for a two-way operation, and @c false otherwise. - virtual CORBA::Boolean response_expected (void); + virtual CORBA::Boolean response_expected (); /// Return the @c sync_scope policy value for the current one-way /// operation. If the operation is not a one-way, a /// @c CORBA::BAD_INV_ORDER exception is thrown. - virtual Messaging::SyncScope sync_scope (void); + virtual Messaging::SyncScope sync_scope (); /// Return the reply status for the current request. /** @@ -115,12 +115,12 @@ namespace TAO * @c SYSTEM_EXCEPTION, @c USER_EXCEPTION, @c LOCATION_FORWARD, * @c TRANSPORT_RETRY, @c UNKNOWN.. */ - virtual PortableInterceptor::ReplyStatus reply_status (void); + virtual PortableInterceptor::ReplyStatus reply_status (); /// If the reply status is /// @c PortableInterceptor::LOCATION_FORWARD return the /// object reference to which the request was forwarded. - virtual CORBA::Object_ptr forward_reference (void); + virtual CORBA::Object_ptr forward_reference (); /// Retrieve data from the "request scope" @c PICurrent object. virtual CORBA::Any * get_slot (PortableInterceptor::SlotId id); @@ -141,29 +141,29 @@ namespace TAO * @note There is no trivial way to extract the exception from an * @c Any. */ - virtual CORBA::Any * sending_exception (void); + virtual CORBA::Any * sending_exception (); /// Return the @c ObjectId for the target object. - virtual PortableInterceptor::ObjectId * object_id (void); + virtual PortableInterceptor::ObjectId * object_id (); /// Return the @c AdapterId for the POA handling the current /// request. - virtual CORBA::OctetSeq * adapter_id (void); + virtual CORBA::OctetSeq * adapter_id (); /// Return the server_id of the server. The value is passed to /// the ORB via @c -ORBServerId parameter. - virtual char * server_id (void); + virtual char * server_id (); /// Return the ORBId value that is passed to the @c ORB_init /// call. - virtual char * orb_id (void); + virtual char * orb_id (); /// Return the name of the object adapter that services requests /// for the invoked object. - virtual PortableInterceptor::AdapterName * adapter_name (void); + virtual PortableInterceptor::AdapterName * adapter_name (); /// Return the most derived interface of the target object. - virtual char * target_most_derived_interface (void); + virtual char * target_most_derived_interface (); /// Return the policy of the given type in effect for the current /// request. @@ -207,7 +207,7 @@ namespace TAO /// Return a reference to the underlying @c TAO_ServerRequest /// object. - TAO_ServerRequest &server_request (void); + TAO_ServerRequest &server_request (); protected: /// Helper method to get the request and response service diff --git a/TAO/tao/PI_Server/ServerRequestInterceptorC.cpp b/TAO/tao/PI_Server/ServerRequestInterceptorC.cpp index 30d7fe51d1a..80f6f6100b5 100644 --- a/TAO/tao/PI_Server/ServerRequestInterceptorC.cpp +++ b/TAO/tao/PI_Server/ServerRequestInterceptorC.cpp @@ -64,7 +64,7 @@ TAO::Objref_Traits<PortableInterceptor::ServerRequestInterceptor>::release ( } PortableInterceptor::ServerRequestInterceptor_ptr -TAO::Objref_Traits<PortableInterceptor::ServerRequestInterceptor>::nil (void) +TAO::Objref_Traits<PortableInterceptor::ServerRequestInterceptor>::nil () { return PortableInterceptor::ServerRequestInterceptor::_nil (); } @@ -78,10 +78,10 @@ TAO::Objref_Traits<PortableInterceptor::ServerRequestInterceptor>::marshal ( return ::CORBA::Object::marshal (p, cdr); } -PortableInterceptor::ServerRequestInterceptor::ServerRequestInterceptor (void) +PortableInterceptor::ServerRequestInterceptor::ServerRequestInterceptor () {} -PortableInterceptor::ServerRequestInterceptor::~ServerRequestInterceptor (void) +PortableInterceptor::ServerRequestInterceptor::~ServerRequestInterceptor () {} PortableInterceptor::ServerRequestInterceptor_ptr @@ -156,7 +156,7 @@ PortableInterceptor::ServerRequestInterceptor::_is_a ( } } -const char* PortableInterceptor::ServerRequestInterceptor::_interface_repository_id (void) const +const char* PortableInterceptor::ServerRequestInterceptor::_interface_repository_id () const { return "IDL:omg.org/PortableInterceptor/ServerRequestInterceptor:1.0"; } diff --git a/TAO/tao/PI_Server/ServerRequestInterceptorC.h b/TAO/tao/PI_Server/ServerRequestInterceptorC.h index 676567e42ef..4dce9d6cc6a 100644 --- a/TAO/tao/PI_Server/ServerRequestInterceptorC.h +++ b/TAO/tao/PI_Server/ServerRequestInterceptorC.h @@ -131,7 +131,7 @@ namespace PortableInterceptor ); - static ServerRequestInterceptor_ptr _nil (void) + static ServerRequestInterceptor_ptr _nil () { return static_cast<ServerRequestInterceptor_ptr> (0); } @@ -203,14 +203,14 @@ namespace PortableInterceptor ); - virtual const char* _interface_repository_id (void) const; + virtual const char* _interface_repository_id () const; virtual ::CORBA::Boolean marshal (TAO_OutputCDR &cdr); protected: // Abstract or local interface only. - ServerRequestInterceptor (void); + ServerRequestInterceptor (); - virtual ~ServerRequestInterceptor (void); + virtual ~ServerRequestInterceptor (); private: // Private and unimplemented for concrete interfaces. @@ -245,7 +245,7 @@ namespace TAO static void release ( ::PortableInterceptor::ServerRequestInfo_ptr ); - static ::PortableInterceptor::ServerRequestInfo_ptr nil (void); + static ::PortableInterceptor::ServerRequestInfo_ptr nil (); static ::CORBA::Boolean marshal ( ::PortableInterceptor::ServerRequestInfo_ptr p, TAO_OutputCDR & cdr @@ -266,7 +266,7 @@ namespace TAO static void release ( ::PortableInterceptor::ServerRequestInterceptor_ptr ); - static ::PortableInterceptor::ServerRequestInterceptor_ptr nil (void); + static ::PortableInterceptor::ServerRequestInterceptor_ptr nil (); static ::CORBA::Boolean marshal ( ::PortableInterceptor::ServerRequestInterceptor_ptr p, TAO_OutputCDR & cdr diff --git a/TAO/tao/PI_Server/ServerRequestInterceptor_Factory_Impl.cpp b/TAO/tao/PI_Server/ServerRequestInterceptor_Factory_Impl.cpp index f04d2565187..c4123f9b325 100644 --- a/TAO/tao/PI_Server/ServerRequestInterceptor_Factory_Impl.cpp +++ b/TAO/tao/PI_Server/ServerRequestInterceptor_Factory_Impl.cpp @@ -20,7 +20,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO::ServerRequestInterceptor_Adapter* -TAO_ServerRequestInterceptor_Adapter_Factory_Impl::create (void) +TAO_ServerRequestInterceptor_Adapter_Factory_Impl::create () { TAO::ServerRequestInterceptor_Adapter_Impl* obj = 0; ACE_NEW_RETURN (obj, diff --git a/TAO/tao/PI_Server/ServerRequestInterceptor_Factory_Impl.h b/TAO/tao/PI_Server/ServerRequestInterceptor_Factory_Impl.h index 7c7abdab60b..9cacd9b0172 100644 --- a/TAO/tao/PI_Server/ServerRequestInterceptor_Factory_Impl.h +++ b/TAO/tao/PI_Server/ServerRequestInterceptor_Factory_Impl.h @@ -38,7 +38,7 @@ class TAO_PI_Server_Export TAO_ServerRequestInterceptor_Adapter_Factory_Impl : public TAO_ServerRequestInterceptor_Adapter_Factory { public: - virtual TAO::ServerRequestInterceptor_Adapter *create (void); + virtual TAO::ServerRequestInterceptor_Adapter *create (); }; diff --git a/TAO/tao/Parser_Registry.h b/TAO/tao/Parser_Registry.h index daacd764291..91c355f9bf0 100644 --- a/TAO/tao/Parser_Registry.h +++ b/TAO/tao/Parser_Registry.h @@ -45,10 +45,10 @@ class TAO_Export TAO_Parser_Registry { public: /// Default constructor. - TAO_Parser_Registry (void); + TAO_Parser_Registry (); /// Dstructor. - ~TAO_Parser_Registry (void); + ~TAO_Parser_Registry (); /// Initialize the parser registry with the list of known protocols. /// Invoked by the ORB during startup. @@ -60,8 +60,8 @@ public: // = Iterator. typedef TAO_IOR_Parser** Parser_Iterator; - Parser_Iterator begin (void) const; - Parser_Iterator end (void) const; + Parser_Iterator begin () const; + Parser_Iterator end () const; private: diff --git a/TAO/tao/Pluggable_Messaging_Utils.h b/TAO/tao/Pluggable_Messaging_Utils.h index 484ccbd5925..6cab6a91408 100644 --- a/TAO/tao/Pluggable_Messaging_Utils.h +++ b/TAO/tao/Pluggable_Messaging_Utils.h @@ -41,7 +41,7 @@ class TAO_Export TAO_Pluggable_Reply_Params_Base { public: /// Constructor. - TAO_Pluggable_Reply_Params_Base (void); + TAO_Pluggable_Reply_Params_Base (); /// The IOP service context list. IOP::ServiceContextList svc_ctx_; @@ -66,17 +66,17 @@ public: * a service context list and would like to pass on their contents * without a copy. */ - IOP::ServiceContextList &service_context_notowned (void); + IOP::ServiceContextList &service_context_notowned (); void service_context_notowned (IOP::ServiceContextList *svc); /// A flag that indicates if there is any data is going to get /// marshalled in the reply CORBA::Boolean argument_flag_; - GIOP::ReplyStatusType reply_status (void) const; + GIOP::ReplyStatusType reply_status () const; void reply_status (GIOP::ReplyStatusType status); - GIOP::LocateStatusType locate_reply_status (void) const; + GIOP::LocateStatusType locate_reply_status () const; void locate_reply_status (GIOP::LocateStatusType status); protected: diff --git a/TAO/tao/PolicyFactory_Registry_Adapter.h b/TAO/tao/PolicyFactory_Registry_Adapter.h index 275a419cbc2..e359b804871 100644 --- a/TAO/tao/PolicyFactory_Registry_Adapter.h +++ b/TAO/tao/PolicyFactory_Registry_Adapter.h @@ -53,7 +53,7 @@ namespace TAO class TAO_Export PolicyFactory_Registry_Adapter { public: - virtual ~PolicyFactory_Registry_Adapter (void); + virtual ~PolicyFactory_Registry_Adapter (); /// Register a PolicyFactory with the underlying PolicyFactory /// sequence. This method should only be called during ORB diff --git a/TAO/tao/PolicyFactory_Registry_Factory.h b/TAO/tao/PolicyFactory_Registry_Factory.h index bc214fe55ba..19b6e383f72 100644 --- a/TAO/tao/PolicyFactory_Registry_Factory.h +++ b/TAO/tao/PolicyFactory_Registry_Factory.h @@ -34,9 +34,9 @@ class TAO_Export TAO_PolicyFactory_Registry_Factory : public ACE_Service_Object { public: - virtual ~TAO_PolicyFactory_Registry_Factory (void); + virtual ~TAO_PolicyFactory_Registry_Factory (); - virtual TAO::PolicyFactory_Registry_Adapter* create (void) = 0; + virtual TAO::PolicyFactory_Registry_Adapter* create () = 0; }; TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/tao/Policy_Current_Impl.h b/TAO/tao/Policy_Current_Impl.h index 98aaebff6f1..d370f8a7255 100644 --- a/TAO/tao/Policy_Current_Impl.h +++ b/TAO/tao/Policy_Current_Impl.h @@ -36,7 +36,7 @@ class TAO_Policy_Current_Impl { public: - TAO_Policy_Current_Impl (void); + TAO_Policy_Current_Impl (); /// Obtain a single policy. CORBA::Policy_ptr get_policy (CORBA::PolicyType policy); diff --git a/TAO/tao/Policy_Manager.h b/TAO/tao/Policy_Manager.h index 619fb506e3f..97a2fea0484 100644 --- a/TAO/tao/Policy_Manager.h +++ b/TAO/tao/Policy_Manager.h @@ -54,9 +54,10 @@ public: CORBA::SetOverrideType set_add); private: - // Disallow copying. - TAO_Policy_Manager (TAO_Policy_Manager const &); - TAO_Policy_Manager & operator= (TAO_Policy_Manager const &); + TAO_Policy_Manager (TAO_Policy_Manager const &) = delete; + TAO_Policy_Manager & operator= (TAO_Policy_Manager const &) = delete; + TAO_Policy_Manager (TAO_Policy_Manager &&) = delete; + TAO_Policy_Manager & operator= (TAO_Policy_Manager &&) = delete; private: /// Protect access diff --git a/TAO/tao/Policy_Set.h b/TAO/tao/Policy_Set.h index 36d8d6c7bc7..1e415564ecd 100644 --- a/TAO/tao/Policy_Set.h +++ b/TAO/tao/Policy_Set.h @@ -48,7 +48,7 @@ public: TAO_Policy_Set (const TAO_Policy_Set &rhs); /// Destructor - ~TAO_Policy_Set (void); + ~TAO_Policy_Set (); /// Copy the state from @a source, it uses the copy() operator to /// obtain independent copies of all the policies. @@ -93,14 +93,14 @@ public: /// @c CORBA::Policy::_nil () is returned if the policy doesn't /// exist. CORBA::Policy *get_policy_by_index (CORBA::ULong index) const; - CORBA::ULong num_policies (void) const; + CORBA::ULong num_policies () const; private: TAO_Policy_Set & operator= (const TAO_Policy_Set&); /// Remove and destroy all the policy objects owned by this policy /// manager. - void cleanup_i (void); + void cleanup_i (); /// Utility method to determine if a policy's scope is compatible with ours. CORBA::Boolean compatible_scope (TAO_Policy_Scope policy_scope) const; diff --git a/TAO/tao/Policy_Validator.h b/TAO/tao/Policy_Validator.h index b4ae5a0b7ad..8b26beb62f3 100644 --- a/TAO/tao/Policy_Validator.h +++ b/TAO/tao/Policy_Validator.h @@ -54,7 +54,7 @@ public: TAO_Policy_Validator (TAO_ORB_Core &orb_core); /// Destructor. - virtual ~TAO_Policy_Validator (void); + virtual ~TAO_Policy_Validator (); /** * Validate that the policies in the specified set diff --git a/TAO/tao/PortableServer/Acceptor_Filter_Factory.h b/TAO/tao/PortableServer/Acceptor_Filter_Factory.h index 383f423fe73..88fa02f2182 100644 --- a/TAO/tao/PortableServer/Acceptor_Filter_Factory.h +++ b/TAO/tao/PortableServer/Acceptor_Filter_Factory.h @@ -50,12 +50,12 @@ class TAO_PortableServer_Export TAO_Acceptor_Filter_Factory : public ACE_Service_Object { public: - virtual ~TAO_Acceptor_Filter_Factory(void); + virtual ~TAO_Acceptor_Filter_Factory(); virtual TAO_Acceptor_Filter* create_object (TAO_POA_Manager& poamanager); /// Static initializer ensures the factory is loaded - static int initialize (void); + static int initialize (); }; diff --git a/TAO/tao/PortableServer/Active_Object_Map.cpp b/TAO/tao/PortableServer/Active_Object_Map.cpp index b556fa72579..bd30f17ad50 100644 --- a/TAO/tao/PortableServer/Active_Object_Map.cpp +++ b/TAO/tao/PortableServer/Active_Object_Map.cpp @@ -116,11 +116,7 @@ TAO_Active_Object_Map::TAO_Active_Object_Map ( } // Give ownership to the auto pointer. -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO_Id_Uniqueness_Strategy> new_id_uniqueness_strategy (id_uniqueness_strategy); -#else - auto_ptr<TAO_Id_Uniqueness_Strategy> new_id_uniqueness_strategy (id_uniqueness_strategy); -#endif /* ACE_HAS_CPP11 */ TAO_Lifespan_Strategy *lifespan_strategy = 0; @@ -144,11 +140,7 @@ TAO_Active_Object_Map::TAO_Active_Object_Map ( } // Give ownership to the auto pointer. -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO_Lifespan_Strategy> new_lifespan_strategy (lifespan_strategy); -#else - auto_ptr<TAO_Lifespan_Strategy> new_lifespan_strategy (lifespan_strategy); -#endif /* ACE_HAS_CPP11 */ TAO_Id_Assignment_Strategy *id_assignment_strategy = 0; @@ -183,11 +175,7 @@ TAO_Active_Object_Map::TAO_Active_Object_Map ( } // Give ownership to the auto pointer. -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO_Id_Assignment_Strategy> new_id_assignment_strategy (id_assignment_strategy); -#else - auto_ptr<TAO_Id_Assignment_Strategy> new_id_assignment_strategy (id_assignment_strategy); -#endif /* ACE_HAS_CPP11 */ TAO_Id_Hint_Strategy *id_hint_strategy = 0; if ((user_id_policy @@ -209,11 +197,7 @@ TAO_Active_Object_Map::TAO_Active_Object_Map ( } // Give ownership to the auto pointer. -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO_Id_Hint_Strategy> new_id_hint_strategy (id_hint_strategy); -#else - auto_ptr<TAO_Id_Hint_Strategy> new_id_hint_strategy (id_hint_strategy); -#endif /* ACE_HAS_CPP11 */ servant_map *sm = 0; if (unique_id_policy) @@ -247,11 +231,7 @@ TAO_Active_Object_Map::TAO_Active_Object_Map ( } // Give ownership to the auto pointer. -#if defined (ACE_HAS_CPP11) std::unique_ptr<servant_map> new_servant_map (sm); -#else - auto_ptr<servant_map> new_servant_map (sm); -#endif /* ACE_HAS_CPP11 */ user_id_map *uim = 0; if (user_id_policy @@ -321,11 +301,7 @@ TAO_Active_Object_Map::TAO_Active_Object_Map ( } // Give ownership to the auto pointer. -#if defined (ACE_HAS_CPP11) std::unique_ptr<user_id_map> new_user_id_map (uim); -#else - auto_ptr<user_id_map> new_user_id_map (uim); -#endif /* ACE_HAS_CPP11 */ id_uniqueness_strategy->set_active_object_map (this); lifespan_strategy->set_active_object_map (this); @@ -333,21 +309,12 @@ TAO_Active_Object_Map::TAO_Active_Object_Map ( // Finally everything is fine. Make sure to take ownership away // from the auto pointer. -#if defined (ACE_HAS_CPP11) this->id_uniqueness_strategy_ = std::move(new_id_uniqueness_strategy); this->lifespan_strategy_ = std::move(new_lifespan_strategy); this->id_assignment_strategy_ = std::move(new_id_assignment_strategy); this->id_hint_strategy_ = std::move(new_id_hint_strategy); this->servant_map_ = std::move(new_servant_map); this->user_id_map_ = std::move(new_user_id_map); -#else - this->id_uniqueness_strategy_ = new_id_uniqueness_strategy; - this->lifespan_strategy_ = new_lifespan_strategy; - this->id_assignment_strategy_ = new_id_assignment_strategy; - this->id_hint_strategy_ = new_id_hint_strategy; - this->servant_map_ = new_servant_map; - this->user_id_map_ = new_user_id_map; -#endif /* ACE_HAS_CPP11 */ #if defined (TAO_HAS_MONITOR_POINTS) && (TAO_HAS_MONITOR_POINTS == 1) ACE_NEW (this->monitor_, diff --git a/TAO/tao/PortableServer/Active_Object_Map.h b/TAO/tao/PortableServer/Active_Object_Map.h index a37e2fcaee5..d2b688d7dd6 100644 --- a/TAO/tao/PortableServer/Active_Object_Map.h +++ b/TAO/tao/PortableServer/Active_Object_Map.h @@ -57,7 +57,7 @@ public: const TAO_Server_Strategy_Factory::Active_Object_Map_Creation_Parameters &creation_parameters); /// Destructor. - ~TAO_Active_Object_Map (void); + ~TAO_Active_Object_Map (); /// Must be used with UNIQUE_ID policy. int @@ -179,11 +179,11 @@ public: /// Size of the map. size_t - current_size (void); + current_size (); /// Can be used with any policy. static size_t - system_id_size (void); + system_id_size (); /// Set the system id size. static void @@ -237,46 +237,22 @@ public: #endif /* TAO_HAS_MINIMUM_POA_MAPS == 0 */ /// Id map. -#if defined (ACE_HAS_CPP11) std::unique_ptr<user_id_map> user_id_map_; -#else - auto_ptr<user_id_map> user_id_map_; -#endif /* ACE_HAS_CPP11 */ /// Servant map. -#if defined (ACE_HAS_CPP11) std::unique_ptr<servant_map> servant_map_; -#else - auto_ptr<servant_map> servant_map_; -#endif /* ACE_HAS_CPP11 */ /// Id uniqueness strategy. -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO_Id_Uniqueness_Strategy> id_uniqueness_strategy_; -#else - auto_ptr<TAO_Id_Uniqueness_Strategy> id_uniqueness_strategy_; -#endif /* ACE_HAS_CPP11 */ /// Lifespan strategy. -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO_Lifespan_Strategy> lifespan_strategy_; -#else - auto_ptr<TAO_Lifespan_Strategy> lifespan_strategy_; -#endif /* ACE_HAS_CPP11 */ /// Id assignment strategy. -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO_Id_Assignment_Strategy> id_assignment_strategy_; -#else - auto_ptr<TAO_Id_Assignment_Strategy> id_assignment_strategy_; -#endif /* ACE_HAS_CPP11 */ /// Id hint strategy. -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO_Id_Hint_Strategy> id_hint_strategy_; -#else - auto_ptr<TAO_Id_Hint_Strategy> id_hint_strategy_; -#endif /* ACE_HAS_CPP11 */ /// Flag to see if we are using active maps in this active object /// map. @@ -302,7 +278,7 @@ class TAO_Id_Uniqueness_Strategy { public: /// Virtual destructor. - virtual ~TAO_Id_Uniqueness_Strategy (void); + virtual ~TAO_Id_Uniqueness_Strategy (); /// Must be used with UNIQUE_ID policy. virtual int @@ -461,7 +437,7 @@ class TAO_Lifespan_Strategy public: /// Virtual destructor. - virtual ~TAO_Lifespan_Strategy (void); + virtual ~TAO_Lifespan_Strategy (); /// Can be used with any policy. virtual int @@ -533,7 +509,7 @@ class TAO_Id_Assignment_Strategy { public: /// Virtual destructor. - virtual ~TAO_Id_Assignment_Strategy (void); + virtual ~TAO_Id_Assignment_Strategy (); /// Must be used with SYSTEM_ID policy. virtual int @@ -620,7 +596,7 @@ class TAO_Id_Hint_Strategy { public: /// Virtual destructor. - virtual ~TAO_Id_Hint_Strategy (void); + virtual ~TAO_Id_Hint_Strategy (); /// Find the user id from the system id. virtual int @@ -642,7 +618,7 @@ public: /// How big is the hint generated by this strategy? virtual size_t - hint_size (void) = 0; + hint_size () = 0; /// Get the system id associated with this entry. virtual int @@ -663,7 +639,7 @@ public: TAO_Active_Hint_Strategy (CORBA::ULong map_size); /// Virtual destructor. - virtual ~TAO_Active_Hint_Strategy (void); + virtual ~TAO_Active_Hint_Strategy (); virtual int recover_key (const PortableServer::ObjectId &system_id, @@ -680,7 +656,7 @@ public: TAO_Active_Object_Map_Entry *&entry); virtual size_t - hint_size (void); + hint_size (); virtual int system_id (PortableServer::ObjectId_out system_id, @@ -705,7 +681,7 @@ class TAO_No_Hint_Strategy : public TAO_Id_Hint_Strategy { public: /// Virtual destructor. - virtual ~TAO_No_Hint_Strategy (void); + virtual ~TAO_No_Hint_Strategy (); virtual int recover_key (const PortableServer::ObjectId &system_id, @@ -722,7 +698,7 @@ public: TAO_Active_Object_Map_Entry *&entry); virtual size_t - hint_size (void); + hint_size (); virtual int system_id (PortableServer::ObjectId_out system_id, diff --git a/TAO/tao/PortableServer/Active_Object_Map_Entry.h b/TAO/tao/PortableServer/Active_Object_Map_Entry.h index 8fc2c4504d8..45429d8b0e8 100644 --- a/TAO/tao/PortableServer/Active_Object_Map_Entry.h +++ b/TAO/tao/PortableServer/Active_Object_Map_Entry.h @@ -35,7 +35,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL struct TAO_Active_Object_Map_Entry { /// Default constructor. - TAO_Active_Object_Map_Entry (void); + TAO_Active_Object_Map_Entry (); /// User id. PortableServer::ObjectId user_id_; diff --git a/TAO/tao/PortableServer/Active_Policy_Strategies.h b/TAO/tao/PortableServer/Active_Policy_Strategies.h index 2e38ebd132e..b683ed244eb 100644 --- a/TAO/tao/PortableServer/Active_Policy_Strategies.h +++ b/TAO/tao/PortableServer/Active_Policy_Strategies.h @@ -50,26 +50,26 @@ namespace TAO class Active_Policy_Strategies { public: - Active_Policy_Strategies (void); + Active_Policy_Strategies (); void update (Cached_Policies &policies, TAO_Root_POA* poa); - void cleanup (void); + void cleanup (); - ThreadStrategy *thread_strategy (void) const; + ThreadStrategy *thread_strategy () const; - RequestProcessingStrategy *request_processing_strategy (void) const; + RequestProcessingStrategy *request_processing_strategy () const; - IdAssignmentStrategy *id_assignment_strategy (void) const; + IdAssignmentStrategy *id_assignment_strategy () const; - IdUniquenessStrategy *id_uniqueness_strategy (void) const; + IdUniquenessStrategy *id_uniqueness_strategy () const; - LifespanStrategy *lifespan_strategy (void) const; + LifespanStrategy *lifespan_strategy () const; - ImplicitActivationStrategy *implicit_activation_strategy (void) const; + ImplicitActivationStrategy *implicit_activation_strategy () const; - ServantRetentionStrategy *servant_retention_strategy (void) const; + ServantRetentionStrategy *servant_retention_strategy () const; private: ThreadStrategy *thread_strategy_; @@ -97,9 +97,9 @@ namespace TAO { public: Active_Policy_Strategies_Cleanup_Guard (Active_Policy_Strategies *p); - ~Active_Policy_Strategies_Cleanup_Guard (void); + ~Active_Policy_Strategies_Cleanup_Guard (); - Active_Policy_Strategies *_retn (void); + Active_Policy_Strategies *_retn (); private: Active_Policy_Strategies *ptr_; diff --git a/TAO/tao/PortableServer/Basic_SArgument_T.h b/TAO/tao/PortableServer/Basic_SArgument_T.h index ab9d9e0e694..634f04ef1e3 100644 --- a/TAO/tao/PortableServer/Basic_SArgument_T.h +++ b/TAO/tao/PortableServer/Basic_SArgument_T.h @@ -34,13 +34,13 @@ namespace TAO class In_Basic_SArgument_T : public InArgument { public: - In_Basic_SArgument_T (void); + In_Basic_SArgument_T (); virtual CORBA::Boolean demarshal (TAO_InputCDR &); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S arg (void) const; + S arg () const; private: S x_; @@ -56,14 +56,14 @@ namespace TAO class Inout_Basic_SArgument_T : public InoutArgument { public: - Inout_Basic_SArgument_T (void); + Inout_Basic_SArgument_T (); virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr); virtual CORBA::Boolean demarshal (TAO_InputCDR &); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S & arg (void); + S & arg (); private: S x_; @@ -79,13 +79,13 @@ namespace TAO class Out_Basic_SArgument_T : public OutArgument { public: - Out_Basic_SArgument_T (void); + Out_Basic_SArgument_T (); virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S & arg (void); + S & arg (); private: S x_; @@ -101,13 +101,13 @@ namespace TAO class Ret_Basic_SArgument_T : public RetArgument { public: - Ret_Basic_SArgument_T (void); + Ret_Basic_SArgument_T (); virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S & arg (void); + S & arg (); private: S x_; diff --git a/TAO/tao/PortableServer/Collocated_Arguments_Converter.h b/TAO/tao/PortableServer/Collocated_Arguments_Converter.h index 384db9dc465..656de9a53d2 100644 --- a/TAO/tao/PortableServer/Collocated_Arguments_Converter.h +++ b/TAO/tao/PortableServer/Collocated_Arguments_Converter.h @@ -41,7 +41,7 @@ class TAO_PortableServer_Export Collocated_Arguments_Converter : { public: - virtual ~Collocated_Arguments_Converter (void); + virtual ~Collocated_Arguments_Converter (); virtual void convert_request (TAO_ServerRequest & server_request, TAO::Argument * const args[], diff --git a/TAO/tao/PortableServer/Collocated_Object_Proxy_Broker.cpp b/TAO/tao/PortableServer/Collocated_Object_Proxy_Broker.cpp index 572842ebe02..fa862566239 100644 --- a/TAO/tao/PortableServer/Collocated_Object_Proxy_Broker.cpp +++ b/TAO/tao/PortableServer/Collocated_Object_Proxy_Broker.cpp @@ -210,13 +210,13 @@ namespace TAO // ----------------------------------------------------- TAO::Collocated_Object_Proxy_Broker * -the_tao_collocated_object_proxy_broker (void) +the_tao_collocated_object_proxy_broker () { static TAO::Collocated_Object_Proxy_Broker the_broker; return &the_broker; } -TAO::Object_Proxy_Broker * _TAO_collocation_Object_Proxy_Broker_Factory (void) +TAO::Object_Proxy_Broker * _TAO_collocation_Object_Proxy_Broker_Factory () { return the_tao_collocated_object_proxy_broker (); } diff --git a/TAO/tao/PortableServer/Collocated_Object_Proxy_Broker.h b/TAO/tao/PortableServer/Collocated_Object_Proxy_Broker.h index 45c29fc8f13..fcd7e2f0db8 100644 --- a/TAO/tao/PortableServer/Collocated_Object_Proxy_Broker.h +++ b/TAO/tao/PortableServer/Collocated_Object_Proxy_Broker.h @@ -66,7 +66,7 @@ namespace TAO /// This function is used to access the unique instance of strategized /// proxy broker. All the CORBA::Object share the proxy broker. -TAO::Collocated_Object_Proxy_Broker *the_tao_collocated_object_proxy_broker (void); +TAO::Collocated_Object_Proxy_Broker *the_tao_collocated_object_proxy_broker (); TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/tao/PortableServer/Creation_Time.h b/TAO/tao/PortableServer/Creation_Time.h index 18de6b7250e..4b13c32be55 100644 --- a/TAO/tao/PortableServer/Creation_Time.h +++ b/TAO/tao/PortableServer/Creation_Time.h @@ -35,13 +35,13 @@ namespace TAO public: explicit Creation_Time (const ACE_Time_Value &creation_time); - Creation_Time (void); + Creation_Time (); void creation_time (const void *creation_time); - const void *creation_time (void) const; + const void *creation_time () const; - static CORBA::ULong creation_time_length (void); + static CORBA::ULong creation_time_length (); bool operator== (const Creation_Time &rhs) const; @@ -76,7 +76,7 @@ namespace TAO { public: - Temporary_Creation_Time (void); + Temporary_Creation_Time (); void creation_time (const void *creation_time); diff --git a/TAO/tao/PortableServer/Default_Acceptor_Filter.cpp b/TAO/tao/PortableServer/Default_Acceptor_Filter.cpp index 7c4a1d1412e..ec9ae61a7a8 100644 --- a/TAO/tao/PortableServer/Default_Acceptor_Filter.cpp +++ b/TAO/tao/PortableServer/Default_Acceptor_Filter.cpp @@ -6,7 +6,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Default_Acceptor_Filter::TAO_Default_Acceptor_Filter (void) +TAO_Default_Acceptor_Filter::TAO_Default_Acceptor_Filter () { } diff --git a/TAO/tao/PortableServer/Default_Acceptor_Filter.h b/TAO/tao/PortableServer/Default_Acceptor_Filter.h index 5e811e4f16e..c440b985c5d 100644 --- a/TAO/tao/PortableServer/Default_Acceptor_Filter.h +++ b/TAO/tao/PortableServer/Default_Acceptor_Filter.h @@ -41,7 +41,7 @@ class TAO_PortableServer_Export TAO_Default_Acceptor_Filter : public TAO_Acceptor_Filter { public: - TAO_Default_Acceptor_Filter (void); + TAO_Default_Acceptor_Filter (); /// Populate @a mprofile with all available endpoints. virtual int fill_profile (const TAO::ObjectKey &object_key, diff --git a/TAO/tao/PortableServer/Default_Policy_Validator.cpp b/TAO/tao/PortableServer/Default_Policy_Validator.cpp index 1c852f9d8a4..84c6d9f06a2 100644 --- a/TAO/tao/PortableServer/Default_Policy_Validator.cpp +++ b/TAO/tao/PortableServer/Default_Policy_Validator.cpp @@ -12,7 +12,7 @@ TAO_POA_Default_Policy_Validator::TAO_POA_Default_Policy_Validator ( { } -TAO_POA_Default_Policy_Validator::~TAO_POA_Default_Policy_Validator (void) +TAO_POA_Default_Policy_Validator::~TAO_POA_Default_Policy_Validator () { } diff --git a/TAO/tao/PortableServer/Default_Policy_Validator.h b/TAO/tao/PortableServer/Default_Policy_Validator.h index 5642928e9d0..e0f17e71dd4 100644 --- a/TAO/tao/PortableServer/Default_Policy_Validator.h +++ b/TAO/tao/PortableServer/Default_Policy_Validator.h @@ -35,7 +35,7 @@ public: TAO_POA_Default_Policy_Validator (TAO_ORB_Core &orb_core); /// Destructor. - ~TAO_POA_Default_Policy_Validator (void); + ~TAO_POA_Default_Policy_Validator (); protected: /** diff --git a/TAO/tao/PortableServer/Default_Servant_Dispatcher.cpp b/TAO/tao/PortableServer/Default_Servant_Dispatcher.cpp index ec83ebed582..ff020b8af2d 100644 --- a/TAO/tao/PortableServer/Default_Servant_Dispatcher.cpp +++ b/TAO/tao/PortableServer/Default_Servant_Dispatcher.cpp @@ -5,7 +5,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Default_Servant_Dispatcher::~TAO_Default_Servant_Dispatcher (void) +TAO_Default_Servant_Dispatcher::~TAO_Default_Servant_Dispatcher () { } diff --git a/TAO/tao/PortableServer/Default_Servant_Dispatcher.h b/TAO/tao/PortableServer/Default_Servant_Dispatcher.h index 20abb7509be..a77043c28d2 100644 --- a/TAO/tao/PortableServer/Default_Servant_Dispatcher.h +++ b/TAO/tao/PortableServer/Default_Servant_Dispatcher.h @@ -34,7 +34,7 @@ class TAO_PortableServer_Export TAO_Default_Servant_Dispatcher : public TAO_Servant_Dispatcher { public: - virtual ~TAO_Default_Servant_Dispatcher (void); + virtual ~TAO_Default_Servant_Dispatcher (); /// Pre_invoke remote request. void pre_invoke_remote_request ( diff --git a/TAO/tao/PortableServer/Fixed_Array_SArgument_T.h b/TAO/tao/PortableServer/Fixed_Array_SArgument_T.h index 6b29a0872b6..45c969025fb 100644 --- a/TAO/tao/PortableServer/Fixed_Array_SArgument_T.h +++ b/TAO/tao/PortableServer/Fixed_Array_SArgument_T.h @@ -36,13 +36,13 @@ namespace TAO class In_Fixed_Array_SArgument_T : public InArgument { public: - In_Fixed_Array_SArgument_T (void); + In_Fixed_Array_SArgument_T (); virtual CORBA::Boolean demarshal (TAO_InputCDR &); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - typename S_forany::_slice_type const * arg (void) const; + typename S_forany::_slice_type const * arg () const; private: mutable typename S_forany::_array_type x_; @@ -58,14 +58,14 @@ namespace TAO class Inout_Fixed_Array_SArgument_T : public InoutArgument { public: - Inout_Fixed_Array_SArgument_T (void); + Inout_Fixed_Array_SArgument_T (); virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr); virtual CORBA::Boolean demarshal (TAO_InputCDR &cdr); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - typename S_forany::_slice_type * arg (void); + typename S_forany::_slice_type * arg (); private: mutable typename S_forany::_array_type x_; @@ -81,13 +81,13 @@ namespace TAO class Out_Fixed_Array_SArgument_T : public OutArgument { public: - Out_Fixed_Array_SArgument_T (void); + Out_Fixed_Array_SArgument_T (); virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - typename S_forany::_slice_type * arg (void); + typename S_forany::_slice_type * arg (); private: mutable typename S_forany::_array_type x_; @@ -105,13 +105,13 @@ namespace TAO class Ret_Fixed_Array_SArgument_T : public RetArgument { public: - Ret_Fixed_Array_SArgument_T (void); + Ret_Fixed_Array_SArgument_T (); virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - typename S_forany::_slice_type *& arg (void); + typename S_forany::_slice_type *& arg (); private: S_var x_; diff --git a/TAO/tao/PortableServer/Fixed_Size_SArgument_T.h b/TAO/tao/PortableServer/Fixed_Size_SArgument_T.h index 7d0b27b8cc1..44889cf37be 100644 --- a/TAO/tao/PortableServer/Fixed_Size_SArgument_T.h +++ b/TAO/tao/PortableServer/Fixed_Size_SArgument_T.h @@ -56,7 +56,7 @@ namespace TAO //@} /// Retrieve underlying argument. - S const & arg (void) const; + S const & arg () const; private: @@ -79,7 +79,7 @@ namespace TAO public: /// Constructor. - Inout_Fixed_Size_SArgument_T (void); + Inout_Fixed_Size_SArgument_T (); /** * @name @c TAO::Argument Method Overrides @@ -97,7 +97,7 @@ namespace TAO #endif /* TAO_HAS_INTERCEPTORS == 1 */ //@} - S & arg (void); + S & arg (); private: @@ -118,7 +118,7 @@ namespace TAO public: /// Constructor. - Out_Fixed_Size_SArgument_T (void); + Out_Fixed_Size_SArgument_T (); /** * @name @c TAO::Argument Method Overrides @@ -135,7 +135,7 @@ namespace TAO #endif /* TAO_HAS_INTERCEPTORS == 1 */ //@} - S & arg (void); + S & arg (); private: @@ -157,7 +157,7 @@ namespace TAO public: /// Constructor. - Ret_Fixed_Size_SArgument_T (void); + Ret_Fixed_Size_SArgument_T (); /** * @name @c TAO::Argument Method Overrides @@ -174,7 +174,7 @@ namespace TAO #endif /* TAO_HAS_INTERCEPTORS == 1 */ //@} - S & arg (void); + S & arg (); private: diff --git a/TAO/tao/PortableServer/IdAssignmentPolicy.cpp b/TAO/tao/PortableServer/IdAssignmentPolicy.cpp index 449065c15c2..21f763b3aa6 100644 --- a/TAO/tao/PortableServer/IdAssignmentPolicy.cpp +++ b/TAO/tao/PortableServer/IdAssignmentPolicy.cpp @@ -18,7 +18,7 @@ namespace TAO } CORBA::Policy_ptr - IdAssignmentPolicy::copy (void) + IdAssignmentPolicy::copy () { IdAssignmentPolicy *copy = 0; ACE_NEW_THROW_EX (copy, @@ -29,30 +29,30 @@ namespace TAO } void - IdAssignmentPolicy::destroy (void) + IdAssignmentPolicy::destroy () { } ::PortableServer::IdAssignmentPolicyValue - IdAssignmentPolicy::value (void) + IdAssignmentPolicy::value () { return value_; } CORBA::PolicyType - IdAssignmentPolicy::policy_type (void) + IdAssignmentPolicy::policy_type () { return ::PortableServer::ID_ASSIGNMENT_POLICY_ID; } TAO_Cached_Policy_Type - IdAssignmentPolicy::_tao_cached_type (void) const + IdAssignmentPolicy::_tao_cached_type () const { return TAO_CACHED_POLICY_ID_ASSIGNMENT; } TAO_Policy_Scope - IdAssignmentPolicy::_tao_scope (void) const + IdAssignmentPolicy::_tao_scope () const { return TAO_POLICY_POA_SCOPE; } diff --git a/TAO/tao/PortableServer/IdAssignmentPolicy.h b/TAO/tao/PortableServer/IdAssignmentPolicy.h index c2688b5f98a..82686e026dc 100644 --- a/TAO/tao/PortableServer/IdAssignmentPolicy.h +++ b/TAO/tao/PortableServer/IdAssignmentPolicy.h @@ -43,19 +43,19 @@ namespace TAO public: IdAssignmentPolicy (::PortableServer::IdAssignmentPolicyValue value); - CORBA::Policy_ptr copy (void); + CORBA::Policy_ptr copy (); - void destroy (void); + void destroy (); - ::PortableServer::IdAssignmentPolicyValue value (void); + ::PortableServer::IdAssignmentPolicyValue value (); - CORBA::PolicyType policy_type (void); + CORBA::PolicyType policy_type (); /// Return the cached policy type for this policy. - virtual TAO_Cached_Policy_Type _tao_cached_type (void) const; + virtual TAO_Cached_Policy_Type _tao_cached_type () const; /// Returns the scope at which this policy can be applied. See orbconf.h. - virtual TAO_Policy_Scope _tao_scope (void) const; + virtual TAO_Policy_Scope _tao_scope () const; private: ::PortableServer::IdAssignmentPolicyValue value_; diff --git a/TAO/tao/PortableServer/IdAssignmentStrategy.cpp b/TAO/tao/PortableServer/IdAssignmentStrategy.cpp index aa56af91575..100a129d208 100644 --- a/TAO/tao/PortableServer/IdAssignmentStrategy.cpp +++ b/TAO/tao/PortableServer/IdAssignmentStrategy.cpp @@ -12,12 +12,12 @@ namespace TAO } void - IdAssignmentStrategy::strategy_cleanup(void) + IdAssignmentStrategy::strategy_cleanup() { } char - IdAssignmentStrategy::key_type_length (void) const + IdAssignmentStrategy::key_type_length () const { return sizeof (char); } diff --git a/TAO/tao/PortableServer/IdAssignmentStrategy.h b/TAO/tao/PortableServer/IdAssignmentStrategy.h index 88bcfce0eee..dca18216db1 100644 --- a/TAO/tao/PortableServer/IdAssignmentStrategy.h +++ b/TAO/tao/PortableServer/IdAssignmentStrategy.h @@ -32,21 +32,21 @@ namespace TAO public: virtual void strategy_init(TAO_Root_POA *poa); - virtual void strategy_cleanup(void); + virtual void strategy_cleanup(); /** * Returns the key type the says which specific policy we have */ - virtual char id_assignment_key_type (void) const = 0; + virtual char id_assignment_key_type () const = 0; /** * Returns the length of the id_assignment type */ - char key_type_length (void) const; + char key_type_length () const; void create_key (CORBA::Octet *buffer, CORBA::ULong& starting_at); - virtual bool has_system_id (void) const = 0; + virtual bool has_system_id () const = 0; }; } } diff --git a/TAO/tao/PortableServer/IdAssignmentStrategySystem.cpp b/TAO/tao/PortableServer/IdAssignmentStrategySystem.cpp index dd95809054b..30d87e69e9f 100644 --- a/TAO/tao/PortableServer/IdAssignmentStrategySystem.cpp +++ b/TAO/tao/PortableServer/IdAssignmentStrategySystem.cpp @@ -8,13 +8,13 @@ namespace TAO namespace Portable_Server { char - IdAssignmentStrategySystem::id_assignment_key_type (void) const + IdAssignmentStrategySystem::id_assignment_key_type () const { return 'S'; } bool - IdAssignmentStrategySystem::has_system_id (void) const + IdAssignmentStrategySystem::has_system_id () const { return true; } diff --git a/TAO/tao/PortableServer/IdAssignmentStrategySystem.h b/TAO/tao/PortableServer/IdAssignmentStrategySystem.h index e57fc043e30..7ee2acb36f4 100644 --- a/TAO/tao/PortableServer/IdAssignmentStrategySystem.h +++ b/TAO/tao/PortableServer/IdAssignmentStrategySystem.h @@ -31,9 +31,9 @@ namespace TAO : public IdAssignmentStrategy { public: - virtual char id_assignment_key_type (void) const; + virtual char id_assignment_key_type () const; - virtual bool has_system_id (void) const; + virtual bool has_system_id () const; }; } } diff --git a/TAO/tao/PortableServer/IdAssignmentStrategyUser.cpp b/TAO/tao/PortableServer/IdAssignmentStrategyUser.cpp index 57685cf2f83..622dbd3f4ef 100644 --- a/TAO/tao/PortableServer/IdAssignmentStrategyUser.cpp +++ b/TAO/tao/PortableServer/IdAssignmentStrategyUser.cpp @@ -7,13 +7,13 @@ namespace TAO namespace Portable_Server { char - IdAssignmentStrategyUser::id_assignment_key_type (void) const + IdAssignmentStrategyUser::id_assignment_key_type () const { return 'U'; } bool - IdAssignmentStrategyUser::has_system_id (void) const + IdAssignmentStrategyUser::has_system_id () const { return false; } diff --git a/TAO/tao/PortableServer/IdAssignmentStrategyUser.h b/TAO/tao/PortableServer/IdAssignmentStrategyUser.h index 7740e89ee86..c64be097bce 100644 --- a/TAO/tao/PortableServer/IdAssignmentStrategyUser.h +++ b/TAO/tao/PortableServer/IdAssignmentStrategyUser.h @@ -31,9 +31,9 @@ namespace TAO : public IdAssignmentStrategy { public: - virtual char id_assignment_key_type (void) const; + virtual char id_assignment_key_type () const; - virtual bool has_system_id (void) const; + virtual bool has_system_id () const; }; } } diff --git a/TAO/tao/PortableServer/IdUniquenessPolicy.cpp b/TAO/tao/PortableServer/IdUniquenessPolicy.cpp index aedf4a9b876..ce0297809b5 100644 --- a/TAO/tao/PortableServer/IdUniquenessPolicy.cpp +++ b/TAO/tao/PortableServer/IdUniquenessPolicy.cpp @@ -19,7 +19,7 @@ namespace TAO } CORBA::Policy_ptr - IdUniquenessPolicy::copy (void) + IdUniquenessPolicy::copy () { IdUniquenessPolicy *copy = 0; ACE_NEW_THROW_EX (copy, @@ -30,30 +30,30 @@ namespace TAO } void - IdUniquenessPolicy::destroy (void) + IdUniquenessPolicy::destroy () { } ::PortableServer::IdUniquenessPolicyValue - IdUniquenessPolicy::value (void) + IdUniquenessPolicy::value () { return value_; } CORBA::PolicyType - IdUniquenessPolicy::policy_type (void) + IdUniquenessPolicy::policy_type () { return ::PortableServer::ID_UNIQUENESS_POLICY_ID; } TAO_Cached_Policy_Type - IdUniquenessPolicy::_tao_cached_type (void) const + IdUniquenessPolicy::_tao_cached_type () const { return TAO_CACHED_POLICY_ID_UNIQUENESS; } TAO_Policy_Scope - IdUniquenessPolicy::_tao_scope (void) const + IdUniquenessPolicy::_tao_scope () const { return TAO_POLICY_POA_SCOPE; } diff --git a/TAO/tao/PortableServer/IdUniquenessPolicy.h b/TAO/tao/PortableServer/IdUniquenessPolicy.h index d621b5b9d17..3ecbf3b3492 100644 --- a/TAO/tao/PortableServer/IdUniquenessPolicy.h +++ b/TAO/tao/PortableServer/IdUniquenessPolicy.h @@ -43,19 +43,19 @@ namespace TAO public: IdUniquenessPolicy (::PortableServer::IdUniquenessPolicyValue value); - CORBA::Policy_ptr copy (void); + CORBA::Policy_ptr copy (); - void destroy (void); + void destroy (); - ::PortableServer::IdUniquenessPolicyValue value (void); + ::PortableServer::IdUniquenessPolicyValue value (); - CORBA::PolicyType policy_type (void); + CORBA::PolicyType policy_type (); /// Return the cached policy type for this policy. - virtual TAO_Cached_Policy_Type _tao_cached_type (void) const; + virtual TAO_Cached_Policy_Type _tao_cached_type () const; /// Returns the scope at which this policy can be applied. See orbconf.h. - virtual TAO_Policy_Scope _tao_scope (void) const; + virtual TAO_Policy_Scope _tao_scope () const; private: ::PortableServer::IdUniquenessPolicyValue value_; diff --git a/TAO/tao/PortableServer/IdUniquenessStrategy.h b/TAO/tao/PortableServer/IdUniquenessStrategy.h index 210d3284ddb..b3372d94343 100644 --- a/TAO/tao/PortableServer/IdUniquenessStrategy.h +++ b/TAO/tao/PortableServer/IdUniquenessStrategy.h @@ -41,7 +41,7 @@ namespace TAO PortableServer::Servant s, bool &w) = 0; - virtual bool allow_multiple_activations (void) const = 0; + virtual bool allow_multiple_activations () const = 0; virtual ::PortableServer::IdUniquenessPolicyValue type() const = 0; }; diff --git a/TAO/tao/PortableServer/IdUniquenessStrategyMultiple.cpp b/TAO/tao/PortableServer/IdUniquenessStrategyMultiple.cpp index fde3e6c68e2..170d4a18643 100644 --- a/TAO/tao/PortableServer/IdUniquenessStrategyMultiple.cpp +++ b/TAO/tao/PortableServer/IdUniquenessStrategyMultiple.cpp @@ -13,7 +13,7 @@ namespace TAO } void - IdUniquenessStrategyMultiple::strategy_cleanup (void) + IdUniquenessStrategyMultiple::strategy_cleanup () { } @@ -28,7 +28,7 @@ namespace TAO } bool - IdUniquenessStrategyMultiple::allow_multiple_activations (void) const + IdUniquenessStrategyMultiple::allow_multiple_activations () const { return true; } diff --git a/TAO/tao/PortableServer/IdUniquenessStrategyMultiple.h b/TAO/tao/PortableServer/IdUniquenessStrategyMultiple.h index b64983f446b..5b1c7ba96eb 100644 --- a/TAO/tao/PortableServer/IdUniquenessStrategyMultiple.h +++ b/TAO/tao/PortableServer/IdUniquenessStrategyMultiple.h @@ -33,13 +33,13 @@ namespace TAO public: virtual void strategy_init (TAO_Root_POA *poa); - virtual void strategy_cleanup (void); + virtual void strategy_cleanup (); virtual bool is_servant_activation_allowed ( PortableServer::Servant servant, bool &w); - virtual bool allow_multiple_activations (void) const; + virtual bool allow_multiple_activations () const; virtual ::PortableServer::IdUniquenessPolicyValue type() const; }; diff --git a/TAO/tao/PortableServer/IdUniquenessStrategyUnique.cpp b/TAO/tao/PortableServer/IdUniquenessStrategyUnique.cpp index 89a795db50f..30563653abf 100644 --- a/TAO/tao/PortableServer/IdUniquenessStrategyUnique.cpp +++ b/TAO/tao/PortableServer/IdUniquenessStrategyUnique.cpp @@ -7,7 +7,7 @@ namespace TAO { namespace Portable_Server { - IdUniquenessStrategyUnique::IdUniquenessStrategyUnique (void) : + IdUniquenessStrategyUnique::IdUniquenessStrategyUnique () : poa_ (0) { } @@ -22,7 +22,7 @@ namespace TAO void IdUniquenessStrategyUnique::strategy_cleanup ( - void) + ) { poa_ = 0; } @@ -42,7 +42,7 @@ namespace TAO } bool - IdUniquenessStrategyUnique::allow_multiple_activations (void) const + IdUniquenessStrategyUnique::allow_multiple_activations () const { return false; } diff --git a/TAO/tao/PortableServer/IdUniquenessStrategyUnique.h b/TAO/tao/PortableServer/IdUniquenessStrategyUnique.h index fe25b407ce8..ba910f7dc0f 100644 --- a/TAO/tao/PortableServer/IdUniquenessStrategyUnique.h +++ b/TAO/tao/PortableServer/IdUniquenessStrategyUnique.h @@ -31,17 +31,17 @@ namespace TAO : public IdUniquenessStrategy { public: - IdUniquenessStrategyUnique (void); + IdUniquenessStrategyUnique (); virtual void strategy_init (TAO_Root_POA *poa); - virtual void strategy_cleanup (void); + virtual void strategy_cleanup (); virtual bool is_servant_activation_allowed ( PortableServer::Servant servant, bool &wait_occurred_restart_call); - virtual bool allow_multiple_activations (void) const; + virtual bool allow_multiple_activations () const; virtual ::PortableServer::IdUniquenessPolicyValue type() const; diff --git a/TAO/tao/PortableServer/ImR_Client_Adapter.cpp b/TAO/tao/PortableServer/ImR_Client_Adapter.cpp index a21645d1b04..359f2b7f26b 100644 --- a/TAO/tao/PortableServer/ImR_Client_Adapter.cpp +++ b/TAO/tao/PortableServer/ImR_Client_Adapter.cpp @@ -6,7 +6,7 @@ namespace TAO { namespace Portable_Server { - ImR_Client_Adapter::~ImR_Client_Adapter (void) + ImR_Client_Adapter::~ImR_Client_Adapter () { } } diff --git a/TAO/tao/PortableServer/ImR_Client_Adapter.h b/TAO/tao/PortableServer/ImR_Client_Adapter.h index b3113da36a9..5f183ef335c 100644 --- a/TAO/tao/PortableServer/ImR_Client_Adapter.h +++ b/TAO/tao/PortableServer/ImR_Client_Adapter.h @@ -52,7 +52,7 @@ namespace TAO public ACE_Service_Object { public: - virtual ~ImR_Client_Adapter (void); + virtual ~ImR_Client_Adapter (); /// ImplRepo helper method, notify the ImplRepo on startup virtual void imr_notify_startup (TAO_Root_POA* poa ) = 0; diff --git a/TAO/tao/PortableServer/ImplicitActivationPolicy.cpp b/TAO/tao/PortableServer/ImplicitActivationPolicy.cpp index a2429e9d9a0..ee97fc016db 100644 --- a/TAO/tao/PortableServer/ImplicitActivationPolicy.cpp +++ b/TAO/tao/PortableServer/ImplicitActivationPolicy.cpp @@ -17,7 +17,7 @@ namespace TAO } CORBA::Policy_ptr - ImplicitActivationPolicy::copy (void) + ImplicitActivationPolicy::copy () { ImplicitActivationPolicy *copy = 0; ACE_NEW_THROW_EX (copy, @@ -28,30 +28,30 @@ namespace TAO } void - ImplicitActivationPolicy::destroy (void) + ImplicitActivationPolicy::destroy () { } ::PortableServer::ImplicitActivationPolicyValue - ImplicitActivationPolicy::value (void) + ImplicitActivationPolicy::value () { return value_; } CORBA::PolicyType - ImplicitActivationPolicy::policy_type (void) + ImplicitActivationPolicy::policy_type () { return ::PortableServer::IMPLICIT_ACTIVATION_POLICY_ID; } TAO_Cached_Policy_Type - ImplicitActivationPolicy::_tao_cached_type (void) const + ImplicitActivationPolicy::_tao_cached_type () const { return TAO_CACHED_POLICY_IMPLICIT_ACTIVATION; } TAO_Policy_Scope - ImplicitActivationPolicy::_tao_scope (void) const + ImplicitActivationPolicy::_tao_scope () const { return TAO_POLICY_POA_SCOPE; } diff --git a/TAO/tao/PortableServer/ImplicitActivationPolicy.h b/TAO/tao/PortableServer/ImplicitActivationPolicy.h index 861d6b4645d..9a418378fea 100644 --- a/TAO/tao/PortableServer/ImplicitActivationPolicy.h +++ b/TAO/tao/PortableServer/ImplicitActivationPolicy.h @@ -43,19 +43,19 @@ namespace TAO public: ImplicitActivationPolicy (::PortableServer::ImplicitActivationPolicyValue value); - CORBA::Policy_ptr copy (void); + CORBA::Policy_ptr copy (); - void destroy (void); + void destroy (); - ::PortableServer::ImplicitActivationPolicyValue value (void); + ::PortableServer::ImplicitActivationPolicyValue value (); - CORBA::PolicyType policy_type (void); + CORBA::PolicyType policy_type (); /// Return the cached policy type for this policy. - virtual TAO_Cached_Policy_Type _tao_cached_type (void) const; + virtual TAO_Cached_Policy_Type _tao_cached_type () const; /// Returns the scope at which this policy can be applied. See orbconf.h. - virtual TAO_Policy_Scope _tao_scope (void) const; + virtual TAO_Policy_Scope _tao_scope () const; private: ::PortableServer::ImplicitActivationPolicyValue value_; diff --git a/TAO/tao/PortableServer/ImplicitActivationStrategy.cpp b/TAO/tao/PortableServer/ImplicitActivationStrategy.cpp index 41e8002c1c9..3bc68da0d7e 100644 --- a/TAO/tao/PortableServer/ImplicitActivationStrategy.cpp +++ b/TAO/tao/PortableServer/ImplicitActivationStrategy.cpp @@ -14,7 +14,7 @@ namespace TAO } void - ImplicitActivationStrategy::strategy_cleanup (void) + ImplicitActivationStrategy::strategy_cleanup () { } } diff --git a/TAO/tao/PortableServer/ImplicitActivationStrategy.h b/TAO/tao/PortableServer/ImplicitActivationStrategy.h index 70f1731d28d..491df8cf702 100644 --- a/TAO/tao/PortableServer/ImplicitActivationStrategy.h +++ b/TAO/tao/PortableServer/ImplicitActivationStrategy.h @@ -30,9 +30,9 @@ namespace TAO public: virtual void strategy_init(TAO_Root_POA *poa); - virtual void strategy_cleanup(void); + virtual void strategy_cleanup(); - virtual bool allow_implicit_activation (void) const = 0; + virtual bool allow_implicit_activation () const = 0; }; } } diff --git a/TAO/tao/PortableServer/ImplicitActivationStrategyExplicit.cpp b/TAO/tao/PortableServer/ImplicitActivationStrategyExplicit.cpp index 30859b6a30e..98c308606d8 100644 --- a/TAO/tao/PortableServer/ImplicitActivationStrategyExplicit.cpp +++ b/TAO/tao/PortableServer/ImplicitActivationStrategyExplicit.cpp @@ -8,7 +8,7 @@ namespace TAO namespace Portable_Server { bool - ImplicitActivationStrategyExplicit::allow_implicit_activation (void) const + ImplicitActivationStrategyExplicit::allow_implicit_activation () const { return false; } diff --git a/TAO/tao/PortableServer/ImplicitActivationStrategyExplicit.h b/TAO/tao/PortableServer/ImplicitActivationStrategyExplicit.h index 19c1dfb44ff..05846df574a 100644 --- a/TAO/tao/PortableServer/ImplicitActivationStrategyExplicit.h +++ b/TAO/tao/PortableServer/ImplicitActivationStrategyExplicit.h @@ -31,7 +31,7 @@ namespace TAO public ImplicitActivationStrategy { public: - virtual bool allow_implicit_activation (void) const; + virtual bool allow_implicit_activation () const; }; } } diff --git a/TAO/tao/PortableServer/ImplicitActivationStrategyImplicit.cpp b/TAO/tao/PortableServer/ImplicitActivationStrategyImplicit.cpp index 0be943ee21c..989dd133b88 100644 --- a/TAO/tao/PortableServer/ImplicitActivationStrategyImplicit.cpp +++ b/TAO/tao/PortableServer/ImplicitActivationStrategyImplicit.cpp @@ -9,7 +9,7 @@ namespace TAO namespace Portable_Server { bool - ImplicitActivationStrategyImplicit::allow_implicit_activation (void) const + ImplicitActivationStrategyImplicit::allow_implicit_activation () const { return true; } diff --git a/TAO/tao/PortableServer/ImplicitActivationStrategyImplicit.h b/TAO/tao/PortableServer/ImplicitActivationStrategyImplicit.h index 06d74edcd93..68d0a997130 100644 --- a/TAO/tao/PortableServer/ImplicitActivationStrategyImplicit.h +++ b/TAO/tao/PortableServer/ImplicitActivationStrategyImplicit.h @@ -33,7 +33,7 @@ namespace TAO : public ImplicitActivationStrategy { public: - virtual bool allow_implicit_activation (void) const; + virtual bool allow_implicit_activation () const; }; } } diff --git a/TAO/tao/PortableServer/Key_Adapters.cpp b/TAO/tao/PortableServer/Key_Adapters.cpp index c7ccba1f38c..b48962042fc 100644 --- a/TAO/tao/PortableServer/Key_Adapters.cpp +++ b/TAO/tao/PortableServer/Key_Adapters.cpp @@ -7,7 +7,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Incremental_Key_Generator::TAO_Incremental_Key_Generator (void) +TAO_Incremental_Key_Generator::TAO_Incremental_Key_Generator () : counter_ (0) { } diff --git a/TAO/tao/PortableServer/Key_Adapters.h b/TAO/tao/PortableServer/Key_Adapters.h index 330c219efc8..9bbc42e51ea 100644 --- a/TAO/tao/PortableServer/Key_Adapters.h +++ b/TAO/tao/PortableServer/Key_Adapters.h @@ -40,7 +40,7 @@ class TAO_Incremental_Key_Generator { public: - TAO_Incremental_Key_Generator (void); + TAO_Incremental_Key_Generator (); int operator() (PortableServer::ObjectId &id); diff --git a/TAO/tao/PortableServer/LifespanPolicy.cpp b/TAO/tao/PortableServer/LifespanPolicy.cpp index e9d7a4bcd43..04c9a86b4ce 100644 --- a/TAO/tao/PortableServer/LifespanPolicy.cpp +++ b/TAO/tao/PortableServer/LifespanPolicy.cpp @@ -19,7 +19,7 @@ namespace TAO } CORBA::Policy_ptr - LifespanPolicy::copy (void) + LifespanPolicy::copy () { LifespanPolicy *copy = 0; ACE_NEW_THROW_EX (copy, @@ -30,30 +30,30 @@ namespace TAO } void - LifespanPolicy::destroy (void) + LifespanPolicy::destroy () { } ::PortableServer::LifespanPolicyValue - LifespanPolicy::value (void) + LifespanPolicy::value () { return value_; } CORBA::PolicyType - LifespanPolicy::policy_type (void) + LifespanPolicy::policy_type () { return ::PortableServer::LIFESPAN_POLICY_ID; } TAO_Cached_Policy_Type - LifespanPolicy::_tao_cached_type (void) const + LifespanPolicy::_tao_cached_type () const { return TAO_CACHED_POLICY_LIFESPAN; } TAO_Policy_Scope - LifespanPolicy::_tao_scope (void) const + LifespanPolicy::_tao_scope () const { return TAO_POLICY_POA_SCOPE; } diff --git a/TAO/tao/PortableServer/LifespanPolicy.h b/TAO/tao/PortableServer/LifespanPolicy.h index 0caa634b327..20b90910f9a 100644 --- a/TAO/tao/PortableServer/LifespanPolicy.h +++ b/TAO/tao/PortableServer/LifespanPolicy.h @@ -43,19 +43,19 @@ namespace TAO public: LifespanPolicy (::PortableServer::LifespanPolicyValue value); - CORBA::Policy_ptr copy (void); + CORBA::Policy_ptr copy (); - void destroy (void); + void destroy (); - ::PortableServer::LifespanPolicyValue value (void); + ::PortableServer::LifespanPolicyValue value (); - CORBA::PolicyType policy_type (void); + CORBA::PolicyType policy_type (); /// Return the cached policy type for this policy. - virtual TAO_Cached_Policy_Type _tao_cached_type (void) const; + virtual TAO_Cached_Policy_Type _tao_cached_type () const; /// Returns the scope at which this policy can be applied. See orbconf.h. - virtual TAO_Policy_Scope _tao_scope (void) const; + virtual TAO_Policy_Scope _tao_scope () const; private: ::PortableServer::LifespanPolicyValue value_; diff --git a/TAO/tao/PortableServer/LifespanStrategy.cpp b/TAO/tao/PortableServer/LifespanStrategy.cpp index c87eec3b84e..e331e653adb 100644 --- a/TAO/tao/PortableServer/LifespanStrategy.cpp +++ b/TAO/tao/PortableServer/LifespanStrategy.cpp @@ -26,13 +26,13 @@ namespace TAO } void - LifespanStrategy::strategy_cleanup (void) + LifespanStrategy::strategy_cleanup () { poa_ = 0; } CORBA::ULong - LifespanStrategy::key_type_length (void) const + LifespanStrategy::key_type_length () const { return sizeof (char); } diff --git a/TAO/tao/PortableServer/LifespanStrategy.h b/TAO/tao/PortableServer/LifespanStrategy.h index da64516525c..6aaa52a0bdf 100644 --- a/TAO/tao/PortableServer/LifespanStrategy.h +++ b/TAO/tao/PortableServer/LifespanStrategy.h @@ -33,17 +33,17 @@ namespace TAO : public Policy_Strategy { public: - LifespanStrategy (void); + LifespanStrategy (); virtual void strategy_init (TAO_Root_POA *poa); - virtual void strategy_cleanup (void); + virtual void strategy_cleanup (); void create (const char *name, const TAO::ObjectKey &key); - virtual void notify_startup (void) = 0; + virtual void notify_startup () = 0; - virtual void notify_shutdown (void) = 0; + virtual void notify_shutdown () = 0; /** * Validate the passed object key if it belongs to this POA. @@ -53,12 +53,12 @@ namespace TAO /** * Returns the length of the key type */ - virtual CORBA::ULong key_length (void) const = 0; + virtual CORBA::ULong key_length () const = 0; - CORBA::ULong key_type_length (void) const; + CORBA::ULong key_type_length () const; /// Do we have set persistent or not, - virtual CORBA::Boolean is_persistent (void) const = 0; + virtual CORBA::Boolean is_persistent () const = 0; virtual void create_key (CORBA::Octet *buffer, CORBA::ULong& starting_at) = 0; @@ -68,7 +68,7 @@ namespace TAO const TAO::Portable_Server::Temporary_Creation_Time& creation_time) const = 0; /// Check the state of the POA. - virtual void check_state (void) = 0; + virtual void check_state () = 0; virtual ::PortableServer::LifespanPolicyValue type () const = 0; diff --git a/TAO/tao/PortableServer/LifespanStrategyPersistent.cpp b/TAO/tao/PortableServer/LifespanStrategyPersistent.cpp index 2ccf947ccf9..62f681a6f18 100644 --- a/TAO/tao/PortableServer/LifespanStrategyPersistent.cpp +++ b/TAO/tao/PortableServer/LifespanStrategyPersistent.cpp @@ -31,13 +31,13 @@ namespace TAO } char - LifespanStrategyPersistent::key_type (void) const + LifespanStrategyPersistent::key_type () const { return 'P'; } CORBA::Boolean - LifespanStrategyPersistent::is_persistent (void) const + LifespanStrategyPersistent::is_persistent () const { return true; } @@ -59,7 +59,7 @@ namespace TAO } void - LifespanStrategyPersistent::notify_startup (void) + LifespanStrategyPersistent::notify_startup () { if (this->use_imr_) { @@ -104,7 +104,7 @@ namespace TAO } void - LifespanStrategyPersistent::notify_shutdown (void) + LifespanStrategyPersistent::notify_shutdown () { ImR_Client_Adapter *adapter = ACE_Dynamic_Service<ImR_Client_Adapter>::instance ( @@ -122,7 +122,7 @@ namespace TAO } void - LifespanStrategyPersistent::check_state (void) + LifespanStrategyPersistent::check_state () { this->poa_->tao_poa_manager().check_state (); } diff --git a/TAO/tao/PortableServer/LifespanStrategyPersistent.h b/TAO/tao/PortableServer/LifespanStrategyPersistent.h index 62d56f94e17..03d2075f81d 100644 --- a/TAO/tao/PortableServer/LifespanStrategyPersistent.h +++ b/TAO/tao/PortableServer/LifespanStrategyPersistent.h @@ -36,15 +36,15 @@ namespace TAO virtual void strategy_init(TAO_Root_POA *poa); - virtual void notify_startup (void); + virtual void notify_startup (); - virtual void notify_shutdown (void); + virtual void notify_shutdown (); - char key_type (void) const; + char key_type () const; - virtual CORBA::Boolean is_persistent (void) const; + virtual CORBA::Boolean is_persistent () const; - CORBA::ULong key_length (void) const; + CORBA::ULong key_length () const; virtual void create_key (CORBA::Octet *buffer, CORBA::ULong& starting_at); @@ -53,7 +53,7 @@ namespace TAO const TAO::Portable_Server::Temporary_Creation_Time& creation_time) const; /// Check the state of the POA. - virtual void check_state (void); + virtual void check_state (); virtual ::PortableServer::LifespanPolicyValue type() const; diff --git a/TAO/tao/PortableServer/LifespanStrategyTransient.cpp b/TAO/tao/PortableServer/LifespanStrategyTransient.cpp index a701ad0398c..268ea7b3546 100644 --- a/TAO/tao/PortableServer/LifespanStrategyTransient.cpp +++ b/TAO/tao/PortableServer/LifespanStrategyTransient.cpp @@ -19,17 +19,17 @@ namespace TAO } void - LifespanStrategyTransient::notify_startup (void) + LifespanStrategyTransient::notify_startup () { } void - LifespanStrategyTransient::notify_shutdown (void) + LifespanStrategyTransient::notify_shutdown () { } CORBA::Boolean - LifespanStrategyTransient::is_persistent (void) const + LifespanStrategyTransient::is_persistent () const { return false; } @@ -44,7 +44,7 @@ namespace TAO } CORBA::ULong - LifespanStrategyTransient::key_length (void) const + LifespanStrategyTransient::key_length () const { CORBA::ULong keylength = sizeof (char); @@ -77,13 +77,13 @@ namespace TAO } char - LifespanStrategyTransient::key_type (void) const + LifespanStrategyTransient::key_type () const { return 'T'; } void - LifespanStrategyTransient::check_state (void) + LifespanStrategyTransient::check_state () { if (this->poa_->tao_poa_manager ().get_state_i () == PortableServer::POAManager::INACTIVE) diff --git a/TAO/tao/PortableServer/LifespanStrategyTransient.h b/TAO/tao/PortableServer/LifespanStrategyTransient.h index a3ef34c46fa..161994e964a 100644 --- a/TAO/tao/PortableServer/LifespanStrategyTransient.h +++ b/TAO/tao/PortableServer/LifespanStrategyTransient.h @@ -31,17 +31,17 @@ namespace TAO : public LifespanStrategy { public: - LifespanStrategyTransient (void); + LifespanStrategyTransient (); - virtual void notify_startup (void); + virtual void notify_startup (); - virtual void notify_shutdown (void); + virtual void notify_shutdown (); - char key_type (void) const; + char key_type () const; - virtual CORBA::Boolean is_persistent (void) const; + virtual CORBA::Boolean is_persistent () const; - CORBA::ULong key_length (void) const; + CORBA::ULong key_length () const; virtual void create_key (CORBA::Octet *buffer, CORBA::ULong& starting_at); @@ -50,7 +50,7 @@ namespace TAO const TAO::Portable_Server::Temporary_Creation_Time& creation_time) const; /// Check the state of the POA. - virtual void check_state (void); + virtual void check_state (); virtual ::PortableServer::LifespanPolicyValue type() const; diff --git a/TAO/tao/PortableServer/Network_Priority_Hook.cpp b/TAO/tao/PortableServer/Network_Priority_Hook.cpp index b143ac6a441..50efd1ee5af 100644 --- a/TAO/tao/PortableServer/Network_Priority_Hook.cpp +++ b/TAO/tao/PortableServer/Network_Priority_Hook.cpp @@ -4,7 +4,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Network_Priority_Hook::~TAO_Network_Priority_Hook(void) +TAO_Network_Priority_Hook::~TAO_Network_Priority_Hook() { } @@ -25,7 +25,7 @@ TAO_Network_Priority_Hook::set_dscp_codepoint ( } int -TAO_Network_Priority_Hook::initialize (void) +TAO_Network_Priority_Hook::initialize () { return ACE_Service_Config::process_directive (ace_svc_desc_TAO_Network_Priority_Hook); diff --git a/TAO/tao/PortableServer/Network_Priority_Hook.h b/TAO/tao/PortableServer/Network_Priority_Hook.h index 756e587e26d..29e4cfb2834 100644 --- a/TAO/tao/PortableServer/Network_Priority_Hook.h +++ b/TAO/tao/PortableServer/Network_Priority_Hook.h @@ -39,7 +39,7 @@ class TAO_PortableServer_Export TAO_Network_Priority_Hook : public ACE_Service_Object { public: - virtual ~TAO_Network_Priority_Hook(void); + virtual ~TAO_Network_Priority_Hook(); virtual void update_network_priority (TAO_Root_POA& poa, TAO_POA_Policy_Set& poa_policy_set); @@ -49,7 +49,7 @@ public: TAO_Root_POA& poa); /// Static initializer ensures the factory is loaded - static int initialize (void); + static int initialize (); }; diff --git a/TAO/tao/PortableServer/Non_Servant_Upcall.cpp b/TAO/tao/PortableServer/Non_Servant_Upcall.cpp index e00befdbd1d..58bb91a3936 100644 --- a/TAO/tao/PortableServer/Non_Servant_Upcall.cpp +++ b/TAO/tao/PortableServer/Non_Servant_Upcall.cpp @@ -43,7 +43,7 @@ namespace TAO this->object_adapter_.lock ().release (); } - Non_Servant_Upcall::~Non_Servant_Upcall (void) + Non_Servant_Upcall::~Non_Servant_Upcall () { // Reacquire the Object Adapter lock. this->object_adapter_.lock ().acquire (); diff --git a/TAO/tao/PortableServer/Non_Servant_Upcall.h b/TAO/tao/PortableServer/Non_Servant_Upcall.h index c05b50db449..75041660593 100644 --- a/TAO/tao/PortableServer/Non_Servant_Upcall.h +++ b/TAO/tao/PortableServer/Non_Servant_Upcall.h @@ -53,9 +53,9 @@ namespace TAO Non_Servant_Upcall (::TAO_Root_POA &poa); /// Destructor. - ~Non_Servant_Upcall (void); + ~Non_Servant_Upcall (); - ::TAO_Root_POA &poa (void) const; + ::TAO_Root_POA &poa () const; protected: diff --git a/TAO/tao/PortableServer/ORT_Adapter.h b/TAO/tao/PortableServer/ORT_Adapter.h index 3e7c6b12e3c..ed4e5f5d052 100644 --- a/TAO/tao/PortableServer/ORT_Adapter.h +++ b/TAO/tao/PortableServer/ORT_Adapter.h @@ -68,11 +68,11 @@ namespace TAO /// Accessor methods to ObjectReferenceTemplate template virtual PortableInterceptor::ObjectReferenceTemplate * - get_adapter_template (void) = 0; + get_adapter_template () = 0; /// Accessor methods to PortableInterceptor::ObjectReferenceFactory virtual PortableInterceptor::ObjectReferenceFactory * - get_obj_ref_factory (void) = 0; + get_obj_ref_factory () = 0; /// Release any references on @c ObjectReferenceTemplate @a t. virtual void release ( diff --git a/TAO/tao/PortableServer/ORT_Adapter_Factory.cpp b/TAO/tao/PortableServer/ORT_Adapter_Factory.cpp index e499d3aa1b0..0411ff7be0b 100644 --- a/TAO/tao/PortableServer/ORT_Adapter_Factory.cpp +++ b/TAO/tao/PortableServer/ORT_Adapter_Factory.cpp @@ -4,7 +4,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL namespace TAO { - ORT_Adapter_Factory::~ORT_Adapter_Factory (void) + ORT_Adapter_Factory::~ORT_Adapter_Factory () { } } diff --git a/TAO/tao/PortableServer/ORT_Adapter_Factory.h b/TAO/tao/PortableServer/ORT_Adapter_Factory.h index 3e018602d4a..d2d1df23f1e 100644 --- a/TAO/tao/PortableServer/ORT_Adapter_Factory.h +++ b/TAO/tao/PortableServer/ORT_Adapter_Factory.h @@ -55,7 +55,7 @@ namespace TAO * line option. Apparently the compiler generated * destructor is inlined. */ - virtual ~ORT_Adapter_Factory (void); + virtual ~ORT_Adapter_Factory (); /// Create a new adapter, in case not possible to allocate, returns 0 virtual TAO::ORT_Adapter * create () = 0; diff --git a/TAO/tao/PortableServer/Object_Adapter.cpp b/TAO/tao/PortableServer/Object_Adapter.cpp index 781a60c24b4..bc65cf1fbc3 100644 --- a/TAO/tao/PortableServer/Object_Adapter.cpp +++ b/TAO/tao/PortableServer/Object_Adapter.cpp @@ -166,11 +166,7 @@ TAO_Object_Adapter::TAO_Object_Adapter (const TAO_Server_Strategy_Factory::Activ No_Hint_Strategy); // Give ownership to the auto pointer. -#if defined (ACE_HAS_CPP11) std::unique_ptr<Hint_Strategy> new_hint_strategy (hint_strategy); -#else - auto_ptr<Hint_Strategy> new_hint_strategy (hint_strategy); -#endif /* ACE_HAS_CPP11 */ new_hint_strategy->object_adapter (this); @@ -197,11 +193,7 @@ TAO_Object_Adapter::TAO_Object_Adapter (const TAO_Server_Strategy_Factory::Activ break; } // Give ownership to the auto pointer. -#if defined (ACE_HAS_CPP11) std::unique_ptr<persistent_poa_name_map> new_persistent_poa_name_map (ppnm); -#else - auto_ptr<persistent_poa_name_map> new_persistent_poa_name_map (ppnm); -#endif /* ACE_HAS_CPP11 */ transient_poa_map *tpm = 0; switch (creation_parameters.poa_lookup_strategy_for_transient_id_policy_) @@ -231,11 +223,7 @@ TAO_Object_Adapter::TAO_Object_Adapter (const TAO_Server_Strategy_Factory::Activ break; } // Give ownership to the auto pointer. -#if defined (ACE_HAS_CPP11) std::unique_ptr<transient_poa_map> new_transient_poa_map (tpm); -#else - auto_ptr<transient_poa_map> new_transient_poa_map (tpm); -#endif /* ACE_HAS_CPP11 */ this->hint_strategy_ = new_hint_strategy.release (); this->persistent_poa_name_map_ = new_persistent_poa_name_map.release (); @@ -292,7 +280,7 @@ TAO_Object_Adapter::init_default_policies (TAO_POA_Policy_Set &policies) #endif } -TAO_Object_Adapter::~TAO_Object_Adapter (void) +TAO_Object_Adapter::~TAO_Object_Adapter () { delete this->hint_strategy_; delete this->persistent_poa_name_map_; @@ -552,7 +540,7 @@ TAO_Object_Adapter::find_servant_i (const TAO::ObjectKey &key, } void -TAO_Object_Adapter::open (void) +TAO_Object_Adapter::open () { // Add in the default POA policies to the default list. this->init_default_policies (this->default_poa_policies ()); @@ -691,7 +679,7 @@ TAO_Object_Adapter::check_close (int wait_for_completion) } int -TAO_Object_Adapter::priority (void) const +TAO_Object_Adapter::priority () const { return 0; } @@ -828,13 +816,13 @@ TAO_Object_Adapter::dispatch (TAO::ObjectKey &key, } const char * -TAO_Object_Adapter::name (void) const +TAO_Object_Adapter::name () const { return TAO_OBJID_ROOTPOA; } CORBA::Object_ptr -TAO_Object_Adapter::root (void) +TAO_Object_Adapter::root () { return CORBA::Object::_duplicate (this->root_); } @@ -935,7 +923,7 @@ TAO_Object_Adapter::get_collocated_servant (const TAO_MProfile &mp) // **************************************************************** -TAO_Object_Adapter::Hint_Strategy::~Hint_Strategy (void) +TAO_Object_Adapter::Hint_Strategy::~Hint_Strategy () { } @@ -950,7 +938,7 @@ TAO_Object_Adapter::Active_Hint_Strategy::Active_Hint_Strategy (CORBA::ULong map { } -TAO_Object_Adapter::Active_Hint_Strategy::~Active_Hint_Strategy (void) +TAO_Object_Adapter::Active_Hint_Strategy::~Active_Hint_Strategy () { } @@ -1023,7 +1011,7 @@ TAO_Object_Adapter::Active_Hint_Strategy::unbind_persistent_poa ( return result; } -TAO_Object_Adapter::No_Hint_Strategy::~No_Hint_Strategy (void) +TAO_Object_Adapter::No_Hint_Strategy::~No_Hint_Strategy () { } @@ -1114,7 +1102,7 @@ TAO_Object_Adapter::poa_name_iterator::operator* () const } TAO_Object_Adapter::poa_name_iterator & -TAO_Object_Adapter::poa_name_iterator::operator++ (void) +TAO_Object_Adapter::poa_name_iterator::operator++ () { for (this->last_separator_ = this->position_; ; @@ -1140,7 +1128,7 @@ TAO_Object_Adapter::iteratable_poa_name::iteratable_poa_name ( } TAO_Object_Adapter::iteratable_poa_name::iterator -TAO_Object_Adapter::iteratable_poa_name::begin (void) const +TAO_Object_Adapter::iteratable_poa_name::begin () const { return iterator (1, this->folded_name_.length (), @@ -1148,7 +1136,7 @@ TAO_Object_Adapter::iteratable_poa_name::begin (void) const } TAO_Object_Adapter::iteratable_poa_name::iterator -TAO_Object_Adapter::iteratable_poa_name::end (void) const +TAO_Object_Adapter::iteratable_poa_name::end () const { return iterator (0, this->folded_name_.length (), @@ -1156,7 +1144,7 @@ TAO_Object_Adapter::iteratable_poa_name::end (void) const } void -TAO_Object_Adapter::wait_for_non_servant_upcalls_to_complete (void) +TAO_Object_Adapter::wait_for_non_servant_upcalls_to_complete () { // Check if a non-servant upcall is in progress. If a non-servant // upcall is in progress, wait for it to complete. Unless of @@ -1173,7 +1161,7 @@ TAO_Object_Adapter::wait_for_non_servant_upcalls_to_complete (void) } void -TAO_Object_Adapter::wait_for_non_servant_upcalls_to_complete_no_throw (void) +TAO_Object_Adapter::wait_for_non_servant_upcalls_to_complete_no_throw () { // Non-exception throwing version. try diff --git a/TAO/tao/PortableServer/Object_Adapter.h b/TAO/tao/PortableServer/Object_Adapter.h index d4d30ebd322..62415aefec9 100644 --- a/TAO/tao/PortableServer/Object_Adapter.h +++ b/TAO/tao/PortableServer/Object_Adapter.h @@ -85,7 +85,7 @@ public: TAO_ORB_Core &orb_core); /// Destructor. - ~TAO_Object_Adapter (void); + ~TAO_Object_Adapter (); int dispatch_servant (const TAO::ObjectKey &key, TAO_ServerRequest &req, @@ -113,31 +113,31 @@ public: int activate_poa (const poa_name &folded_name, TAO_Root_POA *&poa); - ACE_Lock &lock (void); + ACE_Lock &lock (); - TAO_SYNCH_MUTEX &thread_lock (void); + TAO_SYNCH_MUTEX &thread_lock (); - ACE_Reverse_Lock<ACE_Lock> &reverse_lock (void); + ACE_Reverse_Lock<ACE_Lock> &reverse_lock (); /// Access the root poa. - TAO_Root_POA *root_poa (void) const; + TAO_Root_POA *root_poa () const; /// Access to ORB Core. - TAO_ORB_Core &orb_core (void) const; + TAO_ORB_Core &orb_core () const; /// Wait for non-servant upcalls to complete. - void wait_for_non_servant_upcalls_to_complete (void); + void wait_for_non_servant_upcalls_to_complete (); /// Non-exception throwing version. - void wait_for_non_servant_upcalls_to_complete_no_throw (void); + void wait_for_non_servant_upcalls_to_complete_no_throw (); - static CORBA::ULong transient_poa_name_size (void); + static CORBA::ULong transient_poa_name_size (); /// Return the validator. - TAO_Policy_Validator &validator (void); + TAO_Policy_Validator &validator (); /// Return the set of default policies. - TAO_POA_Policy_Set &default_poa_policies (void); + TAO_POA_Policy_Set &default_poa_policies (); /// Set the servant dispatcher method. Ownership is transferred to /// this Object Adapter. Note: This should only be called @@ -149,15 +149,15 @@ public: // = The TAO_Adapter methods, please check tao/Adapter.h for the // documentation - virtual void open (void); + virtual void open (); virtual void close (int wait_for_completion); virtual void check_close (int wait_for_completion); - virtual int priority (void) const; + virtual int priority () const; virtual int dispatch (TAO::ObjectKey &key, TAO_ServerRequest &request, CORBA::Object_out forward_to); - virtual const char *name (void) const; - virtual CORBA::Object_ptr root (void); + virtual const char *name () const; + virtual CORBA::Object_ptr root (); virtual CORBA::Object_ptr create_collocated_object (TAO_Stub *, const TAO_MProfile &); @@ -215,7 +215,7 @@ public: { public: - virtual ~Hint_Strategy (void); + virtual ~Hint_Strategy (); virtual int find_persistent_poa (const poa_name &system_name, TAO_Root_POA *&poa) = 0; @@ -249,7 +249,7 @@ public: Active_Hint_Strategy (CORBA::ULong map_size); - virtual ~Active_Hint_Strategy (void); + virtual ~Active_Hint_Strategy (); virtual int find_persistent_poa (const poa_name &system_name, TAO_Root_POA *&poa); @@ -286,7 +286,7 @@ public: { public: - virtual ~No_Hint_Strategy (void); + virtual ~No_Hint_Strategy (); virtual int find_persistent_poa (const poa_name &system_name, TAO_Root_POA *&poa); @@ -403,7 +403,7 @@ public: ACE_CString operator* () const; /// Prefix advance. - poa_name_iterator &operator++ (void); + poa_name_iterator &operator++ (); protected: @@ -426,8 +426,8 @@ public: iteratable_poa_name (const poa_name &folded_name); - iterator begin (void) const; - iterator end (void) const; + iterator begin () const; + iterator end () const; protected: @@ -442,7 +442,7 @@ public: /// Pointer to the non-servant upcall in progress. If no non-servant /// upcall is in progress, this pointer is zero. - TAO::Portable_Server::Non_Servant_Upcall *non_servant_upcall_in_progress (void) const; + TAO::Portable_Server::Non_Servant_Upcall *non_servant_upcall_in_progress () const; private: diff --git a/TAO/tao/PortableServer/Object_SArgument_T.h b/TAO/tao/PortableServer/Object_SArgument_T.h index cad8ead9956..56563f63655 100644 --- a/TAO/tao/PortableServer/Object_SArgument_T.h +++ b/TAO/tao/PortableServer/Object_SArgument_T.h @@ -46,7 +46,7 @@ namespace TAO #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S_ptr arg (void) const; + S_ptr arg () const; private: S_var x_; @@ -64,14 +64,14 @@ namespace TAO class Inout_Object_SArgument_T : public InoutArgument { public: - Inout_Object_SArgument_T (void); + Inout_Object_SArgument_T (); virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr); virtual CORBA::Boolean demarshal (TAO_InputCDR &); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S_ptr & arg (void); + S_ptr & arg (); private: S_var x_; @@ -90,13 +90,13 @@ namespace TAO class Out_Object_SArgument_T : public OutArgument { public: - Out_Object_SArgument_T (void); + Out_Object_SArgument_T (); virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S_out arg (void); + S_out arg (); private: S_var x_; @@ -114,13 +114,13 @@ namespace TAO class Ret_Object_SArgument_T : public RetArgument { public: - Ret_Object_SArgument_T (void); + Ret_Object_SArgument_T (); virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S_ptr & arg (void); + S_ptr & arg (); private: S_var x_; diff --git a/TAO/tao/PortableServer/Operation_Table.cpp b/TAO/tao/PortableServer/Operation_Table.cpp index 51d1022d3cb..1caafb83961 100644 --- a/TAO/tao/PortableServer/Operation_Table.cpp +++ b/TAO/tao/PortableServer/Operation_Table.cpp @@ -4,12 +4,12 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Operation_Table::~TAO_Operation_Table (void) +TAO_Operation_Table::~TAO_Operation_Table () { } /**************************************************************/ -TAO::Operation_Skeletons::Operation_Skeletons (void) +TAO::Operation_Skeletons::Operation_Skeletons () : skel_ptr (0) , thruPOA_skel_ptr (0) , direct_skel_ptr (0) diff --git a/TAO/tao/PortableServer/Operation_Table.h b/TAO/tao/PortableServer/Operation_Table.h index bd3e39f380d..11d78518daa 100644 --- a/TAO/tao/PortableServer/Operation_Table.h +++ b/TAO/tao/PortableServer/Operation_Table.h @@ -79,7 +79,7 @@ namespace TAO */ struct TAO_PortableServer_Export Operation_Skeletons { - Operation_Skeletons (void); + Operation_Skeletons (); /// Remote skeleton pointer TAO_Skeleton skel_ptr; @@ -123,7 +123,7 @@ public: virtual int bind (const char *opname, const TAO::Operation_Skeletons skel_ptr) = 0; - virtual ~TAO_Operation_Table (void); + virtual ~TAO_Operation_Table (); }; TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/tao/PortableServer/Operation_Table_Binary_Search.cpp b/TAO/tao/PortableServer/Operation_Table_Binary_Search.cpp index bff7610bab2..a36d050310a 100644 --- a/TAO/tao/PortableServer/Operation_Table_Binary_Search.cpp +++ b/TAO/tao/PortableServer/Operation_Table_Binary_Search.cpp @@ -26,7 +26,7 @@ ACE_TIMEPROBE_EVENT_DESCRIPTIONS (TAO_Operation_Table_Timeprobe_Description, TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Binary_Search_OpTable::~TAO_Binary_Search_OpTable (void) +TAO_Binary_Search_OpTable::~TAO_Binary_Search_OpTable () { } diff --git a/TAO/tao/PortableServer/Operation_Table_Binary_Search.h b/TAO/tao/PortableServer/Operation_Table_Binary_Search.h index 87c23bce8ea..fa04e2fd156 100644 --- a/TAO/tao/PortableServer/Operation_Table_Binary_Search.h +++ b/TAO/tao/PortableServer/Operation_Table_Binary_Search.h @@ -40,7 +40,7 @@ class TAO_PortableServer_Export TAO_Binary_Search_OpTable public: /// Do nothing destructor. - virtual ~TAO_Binary_Search_OpTable (void); + virtual ~TAO_Binary_Search_OpTable (); /// See the documentation in the base class for details. virtual int find (const char *opname, diff --git a/TAO/tao/PortableServer/Operation_Table_Dynamic_Hash.cpp b/TAO/tao/PortableServer/Operation_Table_Dynamic_Hash.cpp index 5f8f5eda365..95e5d4d8ba3 100644 --- a/TAO/tao/PortableServer/Operation_Table_Dynamic_Hash.cpp +++ b/TAO/tao/PortableServer/Operation_Table_Dynamic_Hash.cpp @@ -50,7 +50,7 @@ TAO_Dynamic_Hash_OpTable::TAO_Dynamic_Hash_OpTable ( } } -TAO_Dynamic_Hash_OpTable::~TAO_Dynamic_Hash_OpTable (void) +TAO_Dynamic_Hash_OpTable::~TAO_Dynamic_Hash_OpTable () { // Initialize an iterator. We need to go thru each entry and free // up storage allocated to hold the external ids. In this case, diff --git a/TAO/tao/PortableServer/Operation_Table_Dynamic_Hash.h b/TAO/tao/PortableServer/Operation_Table_Dynamic_Hash.h index 611950d5a64..c2c421691f2 100644 --- a/TAO/tao/PortableServer/Operation_Table_Dynamic_Hash.h +++ b/TAO/tao/PortableServer/Operation_Table_Dynamic_Hash.h @@ -49,7 +49,7 @@ public: ACE_Allocator *alloc); /// Destructor - ~TAO_Dynamic_Hash_OpTable (void); + ~TAO_Dynamic_Hash_OpTable (); /// See the documentation in the base class for details. virtual int bind (const char *opname, diff --git a/TAO/tao/PortableServer/Operation_Table_Linear_Search.cpp b/TAO/tao/PortableServer/Operation_Table_Linear_Search.cpp index 58505e0f0ca..4baed2dea0a 100644 --- a/TAO/tao/PortableServer/Operation_Table_Linear_Search.cpp +++ b/TAO/tao/PortableServer/Operation_Table_Linear_Search.cpp @@ -27,7 +27,7 @@ ACE_TIMEPROBE_EVENT_DESCRIPTIONS (TAO_Operation_Table_Timeprobe_Description, TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Linear_Search_OpTable::~TAO_Linear_Search_OpTable (void) +TAO_Linear_Search_OpTable::~TAO_Linear_Search_OpTable () { } diff --git a/TAO/tao/PortableServer/Operation_Table_Linear_Search.h b/TAO/tao/PortableServer/Operation_Table_Linear_Search.h index 380a76e7503..4fa853eca8b 100644 --- a/TAO/tao/PortableServer/Operation_Table_Linear_Search.h +++ b/TAO/tao/PortableServer/Operation_Table_Linear_Search.h @@ -34,7 +34,7 @@ class TAO_PortableServer_Export TAO_Linear_Search_OpTable { public: /// Destructor. - ~TAO_Linear_Search_OpTable (void); + ~TAO_Linear_Search_OpTable (); /// See the documentation in the base class for details. virtual int find (const char *opname, diff --git a/TAO/tao/PortableServer/Operation_Table_Perfect_Hash.cpp b/TAO/tao/PortableServer/Operation_Table_Perfect_Hash.cpp index 37f9429bb4d..3156673cb9b 100644 --- a/TAO/tao/PortableServer/Operation_Table_Perfect_Hash.cpp +++ b/TAO/tao/PortableServer/Operation_Table_Perfect_Hash.cpp @@ -26,7 +26,7 @@ ACE_TIMEPROBE_EVENT_DESCRIPTIONS (TAO_Operation_Table_Timeprobe_Description, TAO_BEGIN_VERSIONED_NAMESPACE_DECL // Do nothing destructor. -TAO_Perfect_Hash_OpTable::~TAO_Perfect_Hash_OpTable (void) +TAO_Perfect_Hash_OpTable::~TAO_Perfect_Hash_OpTable () { } diff --git a/TAO/tao/PortableServer/Operation_Table_Perfect_Hash.h b/TAO/tao/PortableServer/Operation_Table_Perfect_Hash.h index 5365cd0aebf..b89d8f511ea 100644 --- a/TAO/tao/PortableServer/Operation_Table_Perfect_Hash.h +++ b/TAO/tao/PortableServer/Operation_Table_Perfect_Hash.h @@ -41,7 +41,7 @@ class TAO_PortableServer_Export TAO_Perfect_Hash_OpTable public: /// Do nothing destructor. - virtual ~TAO_Perfect_Hash_OpTable (void); + virtual ~TAO_Perfect_Hash_OpTable (); /// See the documentation in the base class for details. virtual int find (const char *opname, diff --git a/TAO/tao/PortableServer/POAManager.cpp b/TAO/tao/PortableServer/POAManager.cpp index d3c8c4c30a9..f1cdd220590 100644 --- a/TAO/tao/PortableServer/POAManager.cpp +++ b/TAO/tao/PortableServer/POAManager.cpp @@ -39,7 +39,7 @@ TAO_POA_Manager::TAO_POA_Manager ( #endif -TAO_POA_Manager::~TAO_POA_Manager (void) +TAO_POA_Manager::~TAO_POA_Manager () { #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) poa_manager_factory_._remove_ref (); @@ -47,13 +47,13 @@ TAO_POA_Manager::~TAO_POA_Manager (void) } char * -TAO_POA_Manager::get_id (void) +TAO_POA_Manager::get_id () { return CORBA::string_dup (this->id_.in ()); } void -TAO_POA_Manager::activate_i (void) +TAO_POA_Manager::activate_i () { // This operation changes the state of the POA manager to active. If // issued while the POA manager is in the inactive state, the @@ -301,7 +301,7 @@ TAO_POA_Manager::register_poa (TAO_Root_POA *poa) } void -TAO_POA_Manager::check_state (void) +TAO_POA_Manager::check_state () { if (state_ == PortableServer::POAManager::ACTIVE) { @@ -367,7 +367,7 @@ TAO_POA_Manager::check_state (void) } CORBA::ORB_ptr -TAO_POA_Manager::_get_orb (void) +TAO_POA_Manager::_get_orb () { return CORBA::ORB::_duplicate (this->object_adapter_.orb_core ().orb ()); } diff --git a/TAO/tao/PortableServer/POAManager.h b/TAO/tao/PortableServer/POAManager.h index 1cba969df80..a589b63c4d0 100644 --- a/TAO/tao/PortableServer/POAManager.h +++ b/TAO/tao/PortableServer/POAManager.h @@ -59,7 +59,7 @@ class TAO_PortableServer_Export TAO_POA_Manager : friend class TAO_Object_Adapter; public: - void activate (void); + void activate (); #if (TAO_HAS_MINIMUM_POA == 0) @@ -72,9 +72,9 @@ public: #endif /* TAO_HAS_MINIMUM_POA == 0 */ - PortableServer::POAManager::State get_state (void); + PortableServer::POAManager::State get_state (); - char *get_id (void); + char *get_id (); TAO_POA_Manager (TAO_Object_Adapter &object_adapter, #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) @@ -85,21 +85,21 @@ public: const char * id); #endif - ~TAO_POA_Manager (void); + ~TAO_POA_Manager (); /// Check the state of this POA manager - void check_state (void); + void check_state (); PortableServer::POAManager::State get_state_i (); - virtual CORBA::ORB_ptr _get_orb (void); + virtual CORBA::ORB_ptr _get_orb (); #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) - CORBA::PolicyList& get_policies (void); + CORBA::PolicyList& get_policies (); #endif protected: - void activate_i (void); + void activate_i (); void deactivate_i (CORBA::Boolean etherealize_objects, CORBA::Boolean wait_for_completion); @@ -116,7 +116,7 @@ protected: #endif /* TAO_HAS_MINIMUM_POA == 0 */ - ACE_Lock &lock (void); + ACE_Lock &lock (); int remove_poa (TAO_Root_POA *poa); @@ -147,7 +147,7 @@ private : * given process. * @note: The id_ has the ownership of the memory allocated in this method. */ - char* generate_manager_id (void) const; + char* generate_manager_id () const; }; TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/tao/PortableServer/POAManagerFactory.cpp b/TAO/tao/PortableServer/POAManagerFactory.cpp index bc1b2cb69c7..afd7c87df6a 100644 --- a/TAO/tao/PortableServer/POAManagerFactory.cpp +++ b/TAO/tao/PortableServer/POAManagerFactory.cpp @@ -14,7 +14,7 @@ TAO_POAManager_Factory::TAO_POAManager_Factory (TAO_Object_Adapter &object_adapt { } -TAO_POAManager_Factory::~TAO_POAManager_Factory (void) +TAO_POAManager_Factory::~TAO_POAManager_Factory () { this->remove_all_poamanagers (); } @@ -74,7 +74,7 @@ TAO_POAManager_Factory::create_POAManager ( } ::PortableServer::POAManagerFactory::POAManagerSeq * -TAO_POAManager_Factory::list (void) +TAO_POAManager_Factory::list () { ::PortableServer::POAManagerFactory::POAManagerSeq_var poamanagers; CORBA::ULong number_of_poamanagers = static_cast <CORBA::ULong> @@ -122,7 +122,7 @@ TAO_POAManager_Factory::find (const char * id) } void -TAO_POAManager_Factory::remove_all_poamanagers (void) +TAO_POAManager_Factory::remove_all_poamanagers () { for (POAMANAGERSET::iterator iterator = this->poamanager_set_.begin (); iterator != this->poamanager_set_.end (); diff --git a/TAO/tao/PortableServer/POAManagerFactory.h b/TAO/tao/PortableServer/POAManagerFactory.h index 6335b0838dc..319fffaef87 100644 --- a/TAO/tao/PortableServer/POAManagerFactory.h +++ b/TAO/tao/PortableServer/POAManagerFactory.h @@ -43,17 +43,17 @@ class TAO_PortableServer_Export TAO_POAManager_Factory : public: TAO_POAManager_Factory (TAO_Object_Adapter &object_adapter); - virtual ~TAO_POAManager_Factory (void); + virtual ~TAO_POAManager_Factory (); virtual ::PortableServer::POAManager_ptr create_POAManager ( const char * id, const ::CORBA::PolicyList & policies); - virtual ::PortableServer::POAManagerFactory::POAManagerSeq * list (void); + virtual ::PortableServer::POAManagerFactory::POAManagerSeq * list (); virtual ::PortableServer::POAManager_ptr find (const char * id); - void remove_all_poamanagers (void); + void remove_all_poamanagers (); int remove_poamanager (::PortableServer::POAManager_ptr poamanager); diff --git a/TAO/tao/PortableServer/POA_Cached_Policies.cpp b/TAO/tao/PortableServer/POA_Cached_Policies.cpp index 24061bd8238..9660fdfede2 100644 --- a/TAO/tao/PortableServer/POA_Cached_Policies.cpp +++ b/TAO/tao/PortableServer/POA_Cached_Policies.cpp @@ -35,7 +35,7 @@ namespace TAO } - Cached_Policies::~Cached_Policies (void) + Cached_Policies::~Cached_Policies () { } diff --git a/TAO/tao/PortableServer/POA_Cached_Policies.h b/TAO/tao/PortableServer/POA_Cached_Policies.h index af484d586d1..491b9833d83 100644 --- a/TAO/tao/PortableServer/POA_Cached_Policies.h +++ b/TAO/tao/PortableServer/POA_Cached_Policies.h @@ -57,7 +57,7 @@ namespace TAO Cached_Policies (); - ~Cached_Policies (void); + ~Cached_Policies (); /// Update the cached policy values. void update (TAO_POA_Policy_Set &policy_set); @@ -66,30 +66,30 @@ namespace TAO * @name Accessor methods to cached values. */ //@{ - ::PortableServer::ThreadPolicyValue thread (void) const; - ::PortableServer::LifespanPolicyValue lifespan (void) const; - ::PortableServer::IdUniquenessPolicyValue id_uniqueness (void) const; - ::PortableServer::IdAssignmentPolicyValue id_assignment (void) const; - ::PortableServer::ImplicitActivationPolicyValue implicit_activation (void) const; - ::PortableServer::ServantRetentionPolicyValue servant_retention (void) const; - ::PortableServer::RequestProcessingPolicyValue request_processing (void) const; - PriorityModel priority_model (void) const; - CORBA::Short server_priority (void) const; + ::PortableServer::ThreadPolicyValue thread () const; + ::PortableServer::LifespanPolicyValue lifespan () const; + ::PortableServer::IdUniquenessPolicyValue id_uniqueness () const; + ::PortableServer::IdAssignmentPolicyValue id_assignment () const; + ::PortableServer::ImplicitActivationPolicyValue implicit_activation () const; + ::PortableServer::ServantRetentionPolicyValue servant_retention () const; + ::PortableServer::RequestProcessingPolicyValue request_processing () const; + PriorityModel priority_model () const; + CORBA::Short server_priority () const; /// Returns the network priority model that was set using a policy /// by the server application. /// - NetworkPriorityModel network_priority_model (void) const; + NetworkPriorityModel network_priority_model () const; /// Returns the request DiffServ codepoint that was set using a policy /// by the server application. /// - CORBA::Long request_diffserv_codepoint (void) const; + CORBA::Long request_diffserv_codepoint () const; /// Returns the reply DiffServ codepoint that was set using a policy /// by the server application. /// - CORBA::Long reply_diffserv_codepoint (void) const; + CORBA::Long reply_diffserv_codepoint () const; /// Caches the network priority model that was set using a policy /// by the server application. diff --git a/TAO/tao/PortableServer/POA_Cached_Policies.inl b/TAO/tao/PortableServer/POA_Cached_Policies.inl index 4c42ccef173..efa253591b3 100644 --- a/TAO/tao/PortableServer/POA_Cached_Policies.inl +++ b/TAO/tao/PortableServer/POA_Cached_Policies.inl @@ -6,55 +6,55 @@ namespace TAO namespace Portable_Server { ACE_INLINE ::PortableServer::ThreadPolicyValue - Cached_Policies::thread (void) const + Cached_Policies::thread () const { return this->thread_; } ACE_INLINE ::PortableServer::LifespanPolicyValue - Cached_Policies::lifespan (void) const + Cached_Policies::lifespan () const { return this->lifespan_; } ACE_INLINE ::PortableServer::IdUniquenessPolicyValue - Cached_Policies::id_uniqueness (void) const + Cached_Policies::id_uniqueness () const { return this->id_uniqueness_; } ACE_INLINE ::PortableServer::IdAssignmentPolicyValue - Cached_Policies::id_assignment (void) const + Cached_Policies::id_assignment () const { return this->id_assignment_; } ACE_INLINE ::PortableServer::ImplicitActivationPolicyValue - Cached_Policies::implicit_activation (void) const + Cached_Policies::implicit_activation () const { return this->implicit_activation_; } ACE_INLINE ::PortableServer::ServantRetentionPolicyValue - Cached_Policies::servant_retention (void) const + Cached_Policies::servant_retention () const { return this->servant_retention_; } ACE_INLINE ::PortableServer::RequestProcessingPolicyValue - Cached_Policies::request_processing (void) const + Cached_Policies::request_processing () const { return this->request_processing_; } ACE_INLINE Cached_Policies::PriorityModel - Cached_Policies::priority_model (void) const + Cached_Policies::priority_model () const { return this->priority_model_; } ACE_INLINE CORBA::Short - Cached_Policies::server_priority (void) const + Cached_Policies::server_priority () const { return this->server_priority_; } @@ -72,19 +72,19 @@ namespace TAO } ACE_INLINE Cached_Policies::NetworkPriorityModel - Cached_Policies::network_priority_model (void) const + Cached_Policies::network_priority_model () const { return this->network_priority_model_; } ACE_INLINE CORBA::Long - Cached_Policies::request_diffserv_codepoint (void) const + Cached_Policies::request_diffserv_codepoint () const { return this->request_diffserv_codepoint_; } ACE_INLINE CORBA::Long - Cached_Policies::reply_diffserv_codepoint (void) const + Cached_Policies::reply_diffserv_codepoint () const { return this->reply_diffserv_codepoint_; } diff --git a/TAO/tao/PortableServer/POA_Current.cpp b/TAO/tao/PortableServer/POA_Current.cpp index 506f938fb96..cdb6a81c23c 100644 --- a/TAO/tao/PortableServer/POA_Current.cpp +++ b/TAO/tao/PortableServer/POA_Current.cpp @@ -13,7 +13,7 @@ namespace TAO namespace Portable_Server { PortableServer::POA_ptr - POA_Current::get_POA (void) + POA_Current::get_POA () { POA_Current_Impl *impl = this->implementation (); @@ -23,7 +23,7 @@ namespace TAO } PortableServer::ObjectId * - POA_Current::get_object_id (void) + POA_Current::get_object_id () { POA_Current_Impl *impl = this->implementation (); @@ -33,7 +33,7 @@ namespace TAO } PortableServer::Servant - POA_Current::get_servant (void) + POA_Current::get_servant () { POA_Current_Impl *impl = this->implementation (); @@ -43,7 +43,7 @@ namespace TAO } CORBA::Object_ptr - POA_Current::get_reference (void) + POA_Current::get_reference () { POA_Current_Impl *impl = this->implementation (); @@ -53,7 +53,7 @@ namespace TAO } POA_Current_Impl * - POA_Current::implementation (void) + POA_Current::implementation () { return static_cast <POA_Current_Impl *> (TAO_TSS_Resources::instance ()->poa_current_impl_); diff --git a/TAO/tao/PortableServer/POA_Current.h b/TAO/tao/PortableServer/POA_Current.h index e90680b9141..3c014c7ece7 100644 --- a/TAO/tao/PortableServer/POA_Current.h +++ b/TAO/tao/PortableServer/POA_Current.h @@ -45,14 +45,14 @@ namespace TAO * Can raise the @c NoContext exception if this function is * not invoked in the context of an upcall. */ - PortableServer::POA_ptr get_POA (void); + PortableServer::POA_ptr get_POA (); /** * Returns the object id of the current request being invoked. Can * raise the @c NoContext exception if this function is not * invoked in the context of an upcall. */ - PortableServer::ObjectId *get_object_id (void); + PortableServer::ObjectId *get_object_id (); /** * This operation returns a locally manufactured reference to the object @@ -63,17 +63,17 @@ namespace TAO * Object::is_equivalent operation to compare the two references may not * necessarily return true. */ - CORBA::Object_ptr get_reference (void); + CORBA::Object_ptr get_reference (); /** * Returns a reference to the servant that hosts the object in whose * context it is called. If called outside the context of the POA * dispatched operation, a NoContext exception is raised */ - PortableServer::Servant get_servant (void); + PortableServer::Servant get_servant (); /// Returns the class that implements this interface. - POA_Current_Impl *implementation (void); + POA_Current_Impl *implementation (); /// Sets the thread-specific pointer to the new POA Current state, /// returning a pointer to the existing POA Current state. diff --git a/TAO/tao/PortableServer/POA_Current_Impl.cpp b/TAO/tao/PortableServer/POA_Current_Impl.cpp index a3d4e509474..22c8c91e7a6 100644 --- a/TAO/tao/PortableServer/POA_Current_Impl.cpp +++ b/TAO/tao/PortableServer/POA_Current_Impl.cpp @@ -15,7 +15,7 @@ namespace TAO { namespace Portable_Server { - POA_Current_Impl::POA_Current_Impl (void) + POA_Current_Impl::POA_Current_Impl () : poa_ (0), object_id_ (TAO_POA_OBJECT_ID_BUF_SIZE, 0, object_id_buf_), object_key_ (0), @@ -46,13 +46,13 @@ namespace TAO } POA_Current_Impl * - POA_Current_Impl::previous (void) const + POA_Current_Impl::previous () const { return this->previous_current_impl_; } void - POA_Current_Impl::teardown (void) + POA_Current_Impl::teardown () { if (this->setup_done_) { @@ -62,13 +62,13 @@ namespace TAO } PortableServer::POA_ptr - POA_Current_Impl::get_POA (void) + POA_Current_Impl::get_POA () { return PortableServer::POA::_duplicate (this->poa_); } PortableServer::ObjectId * - POA_Current_Impl::get_object_id (void) + POA_Current_Impl::get_object_id () { PortableServer::ObjectId *objid = 0; @@ -80,19 +80,19 @@ namespace TAO } CORBA::Object_ptr - POA_Current_Impl::get_reference (void) + POA_Current_Impl::get_reference () { return this->poa_->id_to_reference (this->object_id_); } PortableServer::Servant - POA_Current_Impl::get_servant (void) + POA_Current_Impl::get_servant () { return this->servant_; } TAO_ORB_Core & - POA_Current_Impl::orb_core (void) const + POA_Current_Impl::orb_core () const { return this->poa_->orb_core (); diff --git a/TAO/tao/PortableServer/POA_Current_Impl.h b/TAO/tao/PortableServer/POA_Current_Impl.h index deebafdfd71..46fd6c8b9dd 100644 --- a/TAO/tao/PortableServer/POA_Current_Impl.h +++ b/TAO/tao/PortableServer/POA_Current_Impl.h @@ -68,41 +68,41 @@ namespace TAO /// Return pointer to the invoking POA. Raises the /// CORBA::NoContext exception. - PortableServer::POA_ptr get_POA (void); + PortableServer::POA_ptr get_POA (); /** * Return pointer to the object id through which this was invoked. * This may be necessary in cases where a <Servant> is serving under * the guise of multiple object ids. */ - PortableServer::ObjectId *get_object_id (void); + PortableServer::ObjectId *get_object_id (); /** * Returns a reference to the servant that hosts the object in whose * context it is called. */ - PortableServer::Servant get_servant (void); + PortableServer::Servant get_servant (); /** * This operation returns a locally manufactured reference to the object * in the context of which it is called. */ - CORBA::Object_ptr get_reference (void); + CORBA::Object_ptr get_reference (); /// Set the POA implementation. void poa (::TAO_Root_POA *); /// Get the POA implemantation - ::TAO_Root_POA *poa (void) const; + ::TAO_Root_POA *poa () const; /// ORB Core for this current. - TAO_ORB_Core &orb_core (void) const; + TAO_ORB_Core &orb_core () const; /// Set the object ID. void object_id (const PortableServer::ObjectId &id); /// Get the object ID. - const PortableServer::ObjectId &object_id (void) const; + const PortableServer::ObjectId &object_id () const; /// Just replace the object id smartly void replace_object_id (const PortableServer::ObjectId &system_id); @@ -111,28 +111,28 @@ namespace TAO void object_key (const TAO::ObjectKey &key); /// Get the object key. - const TAO::ObjectKey &object_key (void) const; + const TAO::ObjectKey &object_key () const; /// Set the servant for the current upcall. void servant (PortableServer::Servant servant); /// Get the servant for the current upcall. - PortableServer::Servant servant (void) const; + PortableServer::Servant servant () const; /// Set the priority for the current upcall. void priority (CORBA::Short priority); /// Get the priority for the current upcall. - CORBA::Short priority (void) const; + CORBA::Short priority () const; /// Convenience constructor combining construction & initialization. - POA_Current_Impl (void); + POA_Current_Impl (); /// Return the previous current implementation. - POA_Current_Impl *previous (void) const; + POA_Current_Impl *previous () const; /// Teardown the current for this request. - void teardown (void); + void teardown (); /// Setup the current. void setup (::TAO_Root_POA *impl, const TAO::ObjectKey &key); diff --git a/TAO/tao/PortableServer/POA_Policy_Set.cpp b/TAO/tao/PortableServer/POA_Policy_Set.cpp index 9b0df5c9089..8f155ed5ebc 100644 --- a/TAO/tao/PortableServer/POA_Policy_Set.cpp +++ b/TAO/tao/PortableServer/POA_Policy_Set.cpp @@ -11,7 +11,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_POA_Policy_Set::TAO_POA_Policy_Set (void) +TAO_POA_Policy_Set::TAO_POA_Policy_Set () : impl_ (TAO_POLICY_POA_SCOPE) { } @@ -22,7 +22,7 @@ TAO_POA_Policy_Set::TAO_POA_Policy_Set (const TAO_POA_Policy_Set &rhs) { } -TAO_POA_Policy_Set::~TAO_POA_Policy_Set (void) +TAO_POA_Policy_Set::~TAO_POA_Policy_Set () { } diff --git a/TAO/tao/PortableServer/POA_Policy_Set.h b/TAO/tao/PortableServer/POA_Policy_Set.h index 373a3b9f1a8..8cc73b11ebe 100644 --- a/TAO/tao/PortableServer/POA_Policy_Set.h +++ b/TAO/tao/PortableServer/POA_Policy_Set.h @@ -29,18 +29,18 @@ class TAO_Policy_Validator; class TAO_PortableServer_Export TAO_POA_Policy_Set { public: - TAO_POA_Policy_Set (void); + TAO_POA_Policy_Set (); TAO_POA_Policy_Set (const TAO_POA_Policy_Set &rhs); - ~TAO_POA_Policy_Set (void); + ~TAO_POA_Policy_Set (); /// Returns the policy at the specified index. /// CORBA::Policy::_nil () is returned if the policy doesn't exist CORBA::Policy *get_policy_by_index (CORBA::ULong index); /// Get the number of policies - CORBA::ULong num_policies (void) const; + CORBA::ULong num_policies () const; /// Obtain a single cached policy. CORBA::Policy_ptr get_cached_policy (TAO_Cached_Policy_Type type); @@ -55,7 +55,7 @@ public: /// Add all of the client exposed policies to the specified list. void add_client_exposed_fixed_policies (CORBA::PolicyList *client_exposed_policies); - TAO_Policy_Set &policies (void); + TAO_Policy_Set &policies (); /// Obtain a single policy. CORBA::Policy_ptr get_policy (CORBA::PolicyType policy); diff --git a/TAO/tao/PortableServer/Policy_Strategy.h b/TAO/tao/PortableServer/Policy_Strategy.h index ec0a774404f..1acd9e71912 100644 --- a/TAO/tao/PortableServer/Policy_Strategy.h +++ b/TAO/tao/PortableServer/Policy_Strategy.h @@ -34,9 +34,9 @@ namespace TAO public: virtual void strategy_init(TAO_Root_POA *poa) = 0; - virtual void strategy_cleanup(void) = 0; + virtual void strategy_cleanup() = 0; - virtual ~Policy_Strategy (void) {}; + virtual ~Policy_Strategy () {}; }; } } diff --git a/TAO/tao/PortableServer/PortableServer.cpp b/TAO/tao/PortableServer/PortableServer.cpp index dc55e7b8e14..42268bcdfec 100644 --- a/TAO/tao/PortableServer/PortableServer.cpp +++ b/TAO/tao/PortableServer/PortableServer.cpp @@ -44,7 +44,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL int -TAO_POA_Initializer::init (void) +TAO_POA_Initializer::init () { ACE_Service_Config::process_directive ( ace_svc_desc_IdAssignmentStrategySystem); diff --git a/TAO/tao/PortableServer/PortableServer.h b/TAO/tao/PortableServer/PortableServer.h index 6e9d1bd5d98..e236d7c607e 100644 --- a/TAO/tao/PortableServer/PortableServer.h +++ b/TAO/tao/PortableServer/PortableServer.h @@ -27,7 +27,7 @@ class TAO_PortableServer_Export TAO_POA_Initializer { public: /// Used to force the initialization of the ORB code. - static int init (void); + static int init (); }; static const int TAO_Requires_POA_Initializer = TAO_POA_Initializer::init (); diff --git a/TAO/tao/PortableServer/Regular_POA.cpp b/TAO/tao/PortableServer/Regular_POA.cpp index fad1bcc1272..d95abb8b3ca 100644 --- a/TAO/tao/PortableServer/Regular_POA.cpp +++ b/TAO/tao/PortableServer/Regular_POA.cpp @@ -30,12 +30,12 @@ TAO_Regular_POA::TAO_Regular_POA (const TAO_Root_POA::String &name, { } -TAO_Regular_POA::~TAO_Regular_POA (void) +TAO_Regular_POA::~TAO_Regular_POA () { } void -TAO_Regular_POA::remove_from_parent_i (void) +TAO_Regular_POA::remove_from_parent_i () { // Remove POA from the parent if (this->parent_ != 0) @@ -49,13 +49,13 @@ TAO_Regular_POA::remove_from_parent_i (void) } CORBA::Boolean -TAO_Regular_POA::root (void) const +TAO_Regular_POA::root () const { return (parent_ == 0); } char -TAO_Regular_POA::root_key_type (void) +TAO_Regular_POA::root_key_type () { if (this->parent_ != 0) { diff --git a/TAO/tao/PortableServer/Regular_POA.h b/TAO/tao/PortableServer/Regular_POA.h index 3ba38c4130e..9da69970431 100644 --- a/TAO/tao/PortableServer/Regular_POA.h +++ b/TAO/tao/PortableServer/Regular_POA.h @@ -47,16 +47,16 @@ public: TAO_ORB_Core &orb_core, TAO_Object_Adapter *object_adapter); - virtual ~TAO_Regular_POA (void); + virtual ~TAO_Regular_POA (); - PortableServer::POA_ptr the_parent (void); + PortableServer::POA_ptr the_parent (); protected: - virtual void remove_from_parent_i (void); + virtual void remove_from_parent_i (); - virtual CORBA::Boolean root (void) const; + virtual CORBA::Boolean root () const; - virtual char root_key_type (void); + virtual char root_key_type (); /// The parent of this POA, be aware that in case this pointer is nill, /// we are a parent. This can be achieved by deriving from this Regular_POA diff --git a/TAO/tao/PortableServer/RequestProcessingPolicy.cpp b/TAO/tao/PortableServer/RequestProcessingPolicy.cpp index 8145883a4cc..a180a70a1c6 100644 --- a/TAO/tao/PortableServer/RequestProcessingPolicy.cpp +++ b/TAO/tao/PortableServer/RequestProcessingPolicy.cpp @@ -19,7 +19,7 @@ namespace TAO } CORBA::Policy_ptr - RequestProcessingPolicy::copy (void) + RequestProcessingPolicy::copy () { RequestProcessingPolicy *copy = 0; ACE_NEW_THROW_EX (copy, @@ -30,30 +30,30 @@ namespace TAO } void - RequestProcessingPolicy::destroy (void) + RequestProcessingPolicy::destroy () { } ::PortableServer::RequestProcessingPolicyValue - RequestProcessingPolicy::value (void) + RequestProcessingPolicy::value () { return value_; } CORBA::PolicyType - RequestProcessingPolicy::policy_type (void) + RequestProcessingPolicy::policy_type () { return ::PortableServer::REQUEST_PROCESSING_POLICY_ID; } TAO_Cached_Policy_Type - RequestProcessingPolicy::_tao_cached_type (void) const + RequestProcessingPolicy::_tao_cached_type () const { return TAO_CACHED_POLICY_REQUEST_PROCESSING; } TAO_Policy_Scope - RequestProcessingPolicy::_tao_scope (void) const + RequestProcessingPolicy::_tao_scope () const { return TAO_POLICY_POA_SCOPE; } diff --git a/TAO/tao/PortableServer/RequestProcessingPolicy.h b/TAO/tao/PortableServer/RequestProcessingPolicy.h index a93afc63ece..3efefae3963 100644 --- a/TAO/tao/PortableServer/RequestProcessingPolicy.h +++ b/TAO/tao/PortableServer/RequestProcessingPolicy.h @@ -43,19 +43,19 @@ namespace TAO public: RequestProcessingPolicy (::PortableServer::RequestProcessingPolicyValue value); - CORBA::Policy_ptr copy (void); + CORBA::Policy_ptr copy (); - void destroy (void); + void destroy (); - ::PortableServer::RequestProcessingPolicyValue value (void); + ::PortableServer::RequestProcessingPolicyValue value (); - CORBA::PolicyType policy_type (void); + CORBA::PolicyType policy_type (); /// Return the cached policy type for this policy. - virtual TAO_Cached_Policy_Type _tao_cached_type (void) const; + virtual TAO_Cached_Policy_Type _tao_cached_type () const; /// Returns the scope at which this policy can be applied. See orbconf.h. - virtual TAO_Policy_Scope _tao_scope (void) const; + virtual TAO_Policy_Scope _tao_scope () const; private: ::PortableServer::RequestProcessingPolicyValue value_; diff --git a/TAO/tao/PortableServer/RequestProcessingStrategy.cpp b/TAO/tao/PortableServer/RequestProcessingStrategy.cpp index 7cd378aa737..f564757c699 100644 --- a/TAO/tao/PortableServer/RequestProcessingStrategy.cpp +++ b/TAO/tao/PortableServer/RequestProcessingStrategy.cpp @@ -14,7 +14,7 @@ namespace TAO { namespace Portable_Server { - RequestProcessingStrategy::RequestProcessingStrategy (void) + RequestProcessingStrategy::RequestProcessingStrategy () : poa_ (0) { } @@ -35,7 +35,7 @@ namespace TAO } void - RequestProcessingStrategy::strategy_cleanup(void) + RequestProcessingStrategy::strategy_cleanup() { poa_ = 0; } diff --git a/TAO/tao/PortableServer/RequestProcessingStrategy.h b/TAO/tao/PortableServer/RequestProcessingStrategy.h index 80613323d41..5378d1739a4 100644 --- a/TAO/tao/PortableServer/RequestProcessingStrategy.h +++ b/TAO/tao/PortableServer/RequestProcessingStrategy.h @@ -48,7 +48,7 @@ namespace TAO : public Policy_Strategy { public: - RequestProcessingStrategy (void); + RequestProcessingStrategy (); virtual void strategy_init(TAO_Root_POA *poa); @@ -56,18 +56,18 @@ namespace TAO TAO_Root_POA *poa, ::PortableServer::ServantRetentionPolicyValue); - virtual void strategy_cleanup(void); + virtual void strategy_cleanup(); #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) - virtual PortableServer::ServantManager_ptr get_servant_manager (void) = 0; + virtual PortableServer::ServantManager_ptr get_servant_manager () = 0; virtual void set_servant_manager ( PortableServer::ServantManager_ptr imgr) = 0; virtual void set_servant (PortableServer::Servant servant) = 0; - virtual PortableServer::Servant get_servant (void) = 0; + virtual PortableServer::Servant get_servant () = 0; #endif /* TAO_HAS_MINIMUM_POA == 0 !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) */ diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyAOMOnly.cpp b/TAO/tao/PortableServer/RequestProcessingStrategyAOMOnly.cpp index 7827a2189b3..9a77833ffe3 100644 --- a/TAO/tao/PortableServer/RequestProcessingStrategyAOMOnly.cpp +++ b/TAO/tao/PortableServer/RequestProcessingStrategyAOMOnly.cpp @@ -19,7 +19,7 @@ namespace TAO #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) PortableServer::ServantManager_ptr - RequestProcessingStrategyAOMOnly::get_servant_manager (void) + RequestProcessingStrategyAOMOnly::get_servant_manager () { throw PortableServer::POA::WrongPolicy (); } @@ -39,7 +39,7 @@ namespace TAO } PortableServer::Servant - RequestProcessingStrategyAOMOnly::get_servant (void) + RequestProcessingStrategyAOMOnly::get_servant () { throw PortableServer::POA::WrongPolicy (); } diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyAOMOnly.h b/TAO/tao/PortableServer/RequestProcessingStrategyAOMOnly.h index 0ef178c71ce..28718985f5f 100644 --- a/TAO/tao/PortableServer/RequestProcessingStrategyAOMOnly.h +++ b/TAO/tao/PortableServer/RequestProcessingStrategyAOMOnly.h @@ -36,18 +36,18 @@ namespace TAO : public RequestProcessingStrategy { public: - RequestProcessingStrategyAOMOnly (void); + RequestProcessingStrategyAOMOnly (); #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) PortableServer::ServantManager_ptr - get_servant_manager (void); + get_servant_manager (); void set_servant_manager (PortableServer::ServantManager_ptr imgr); void set_servant (PortableServer::Servant servant); - PortableServer::Servant get_servant (void); + PortableServer::Servant get_servant (); #endif /* TAO_HAS_MINIMUM_POA == 0 !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) */ diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyDefaultServant.cpp b/TAO/tao/PortableServer/RequestProcessingStrategyDefaultServant.cpp index 201a95b1eb2..b8661b7fd00 100644 --- a/TAO/tao/PortableServer/RequestProcessingStrategyDefaultServant.cpp +++ b/TAO/tao/PortableServer/RequestProcessingStrategyDefaultServant.cpp @@ -18,19 +18,19 @@ namespace TAO { namespace Portable_Server { - RequestProcessingStrategyDefaultServant::RequestProcessingStrategyDefaultServant (void) + RequestProcessingStrategyDefaultServant::RequestProcessingStrategyDefaultServant () : default_servant_ (0) { } void - RequestProcessingStrategyDefaultServant::strategy_cleanup(void) + RequestProcessingStrategyDefaultServant::strategy_cleanup() { this->default_servant_ = 0; } PortableServer::ServantManager_ptr - RequestProcessingStrategyDefaultServant::get_servant_manager (void) + RequestProcessingStrategyDefaultServant::get_servant_manager () { throw PortableServer::POA::WrongPolicy (); } @@ -43,7 +43,7 @@ namespace TAO } PortableServer::Servant - RequestProcessingStrategyDefaultServant::get_servant (void) + RequestProcessingStrategyDefaultServant::get_servant () { // This operation returns the default servant associated with the // POA. diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyDefaultServant.h b/TAO/tao/PortableServer/RequestProcessingStrategyDefaultServant.h index 20ed35f5a4f..e0c9f62f970 100644 --- a/TAO/tao/PortableServer/RequestProcessingStrategyDefaultServant.h +++ b/TAO/tao/PortableServer/RequestProcessingStrategyDefaultServant.h @@ -37,15 +37,15 @@ namespace TAO : public RequestProcessingStrategy { public: - RequestProcessingStrategyDefaultServant (void); + RequestProcessingStrategyDefaultServant (); - virtual void strategy_cleanup(void); + virtual void strategy_cleanup(); - PortableServer::ServantManager_ptr get_servant_manager (void); + PortableServer::ServantManager_ptr get_servant_manager (); void set_servant_manager (PortableServer::ServantManager_ptr imgr); - PortableServer::Servant get_servant (void); + PortableServer::Servant get_servant (); void set_servant (PortableServer::Servant servant); diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyServantActivator.cpp b/TAO/tao/PortableServer/RequestProcessingStrategyServantActivator.cpp index 52082c26dd2..85cd906d642 100644 --- a/TAO/tao/PortableServer/RequestProcessingStrategyServantActivator.cpp +++ b/TAO/tao/PortableServer/RequestProcessingStrategyServantActivator.cpp @@ -17,13 +17,13 @@ namespace TAO { namespace Portable_Server { - RequestProcessingStrategyServantActivator::RequestProcessingStrategyServantActivator (void) : + RequestProcessingStrategyServantActivator::RequestProcessingStrategyServantActivator () : etherealize_objects_ (true) { } void - RequestProcessingStrategyServantActivator::strategy_cleanup (void) + RequestProcessingStrategyServantActivator::strategy_cleanup () { { Non_Servant_Upcall non_servant_upcall (*this->poa_); @@ -36,7 +36,7 @@ namespace TAO } PortableServer::ServantManager_ptr - RequestProcessingStrategyServantActivator::get_servant_manager (void) + RequestProcessingStrategyServantActivator::get_servant_manager () { return PortableServer::ServantManager::_duplicate (this->servant_activator_.in ()); } diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyServantActivator.h b/TAO/tao/PortableServer/RequestProcessingStrategyServantActivator.h index 6ffe7776b8b..c7675ae80a0 100644 --- a/TAO/tao/PortableServer/RequestProcessingStrategyServantActivator.h +++ b/TAO/tao/PortableServer/RequestProcessingStrategyServantActivator.h @@ -34,11 +34,11 @@ namespace TAO : public RequestProcessingStrategyServantManager { public: - RequestProcessingStrategyServantActivator (void); + RequestProcessingStrategyServantActivator (); - virtual void strategy_cleanup(void); + virtual void strategy_cleanup(); - PortableServer::ServantManager_ptr get_servant_manager (void); + PortableServer::ServantManager_ptr get_servant_manager (); void set_servant_manager (PortableServer::ServantManager_ptr imgr); diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyServantLocator.cpp b/TAO/tao/PortableServer/RequestProcessingStrategyServantLocator.cpp index e83bd3afe65..01458939b75 100644 --- a/TAO/tao/PortableServer/RequestProcessingStrategyServantLocator.cpp +++ b/TAO/tao/PortableServer/RequestProcessingStrategyServantLocator.cpp @@ -17,12 +17,12 @@ namespace TAO { namespace Portable_Server { - RequestProcessingStrategyServantLocator::RequestProcessingStrategyServantLocator (void) + RequestProcessingStrategyServantLocator::RequestProcessingStrategyServantLocator () { } void - RequestProcessingStrategyServantLocator::strategy_cleanup(void) + RequestProcessingStrategyServantLocator::strategy_cleanup() { { Non_Servant_Upcall non_servant_upcall (*this->poa_); @@ -35,7 +35,7 @@ namespace TAO } PortableServer::ServantManager_ptr - RequestProcessingStrategyServantLocator::get_servant_manager (void) + RequestProcessingStrategyServantLocator::get_servant_manager () { return PortableServer::ServantManager::_duplicate (this->servant_locator_.in ()); } diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyServantLocator.h b/TAO/tao/PortableServer/RequestProcessingStrategyServantLocator.h index f5306029f20..9cff43232f2 100644 --- a/TAO/tao/PortableServer/RequestProcessingStrategyServantLocator.h +++ b/TAO/tao/PortableServer/RequestProcessingStrategyServantLocator.h @@ -34,11 +34,11 @@ namespace TAO : public RequestProcessingStrategyServantManager { public: - RequestProcessingStrategyServantLocator (void); + RequestProcessingStrategyServantLocator (); - virtual void strategy_cleanup(void); + virtual void strategy_cleanup(); - PortableServer::ServantManager_ptr get_servant_manager (void); + PortableServer::ServantManager_ptr get_servant_manager (); void set_servant_manager (PortableServer::ServantManager_ptr imgr); diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyServantManager.cpp b/TAO/tao/PortableServer/RequestProcessingStrategyServantManager.cpp index 73981faf582..6454c9ff55b 100644 --- a/TAO/tao/PortableServer/RequestProcessingStrategyServantManager.cpp +++ b/TAO/tao/PortableServer/RequestProcessingStrategyServantManager.cpp @@ -14,12 +14,12 @@ namespace TAO { namespace Portable_Server { - RequestProcessingStrategyServantManager::RequestProcessingStrategyServantManager (void) + RequestProcessingStrategyServantManager::RequestProcessingStrategyServantManager () { } PortableServer::Servant - RequestProcessingStrategyServantManager::get_servant (void) + RequestProcessingStrategyServantManager::get_servant () { throw PortableServer::POA::WrongPolicy (); } diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyServantManager.h b/TAO/tao/PortableServer/RequestProcessingStrategyServantManager.h index 8ef06661724..420d9441072 100644 --- a/TAO/tao/PortableServer/RequestProcessingStrategyServantManager.h +++ b/TAO/tao/PortableServer/RequestProcessingStrategyServantManager.h @@ -33,9 +33,9 @@ namespace TAO : public RequestProcessingStrategy { public: - RequestProcessingStrategyServantManager (void); + RequestProcessingStrategyServantManager (); - PortableServer::Servant get_servant (void); + PortableServer::Servant get_servant (); void set_servant (PortableServer::Servant servant); diff --git a/TAO/tao/PortableServer/Root_POA.cpp b/TAO/tao/PortableServer/Root_POA.cpp index 972d5057fbc..901ff5ca5a9 100644 --- a/TAO/tao/PortableServer/Root_POA.cpp +++ b/TAO/tao/PortableServer/Root_POA.cpp @@ -318,13 +318,13 @@ TAO_Root_POA::TAO_Root_POA (const TAO_Root_POA::String &name, aps_cleanup_guard._retn (); } -TAO_Root_POA::~TAO_Root_POA (void) +TAO_Root_POA::~TAO_Root_POA () { this->poa_manager_._remove_ref(); } void -TAO_Root_POA::complete_destruction_i (void) +TAO_Root_POA::complete_destruction_i () { bool doing_complete_destruction = this->waiting_destruction_ != false; @@ -739,7 +739,7 @@ TAO_Root_POA::servant_to_reference (PortableServer::Servant servant) } PortableServer::POAList * -TAO_Root_POA::the_children (void) +TAO_Root_POA::the_children () { // Lock access for the duration of this transaction. TAO_POA_GUARD_RETURN (0); @@ -793,7 +793,7 @@ TAO_Root_POA::destroy (CORBA::Boolean etherealize_objects, } void -TAO_Root_POA::remove_from_parent_i (void) +TAO_Root_POA::remove_from_parent_i () { // The root poa has no parent, so this is a noop } @@ -976,7 +976,7 @@ TAO_Root_POA::delete_child (const TAO_Root_POA::String &child) } PortableServer::POAList * -TAO_Root_POA::the_children_i (void) +TAO_Root_POA::the_children_i () { PortableServer::POAList_var children; CORBA::ULong child_current = static_cast <CORBA::ULong> @@ -1000,7 +1000,7 @@ TAO_Root_POA::the_children_i (void) } PortableInterceptor::AdapterName * -TAO_Root_POA::adapter_name_i (void) +TAO_Root_POA::adapter_name_i () { // The adapter name is the sequence of names starting from the // RootPOA to the one whose name is requested. The name of the @@ -1278,7 +1278,7 @@ TAO_Root_POA::deactivate_object_i (const PortableServer::ObjectId &id) } CORBA::Boolean -TAO_Root_POA::is_persistent (void) const +TAO_Root_POA::is_persistent () const { return active_policy_strategies_.lifespan_strategy()->is_persistent (); } @@ -1539,7 +1539,7 @@ TAO_Root_POA::id_to_reference_i (const PortableServer::ObjectId &id, } CORBA::OctetSeq * -TAO_Root_POA::id (void) +TAO_Root_POA::id () { CORBA::OctetSeq *id = 0; ACE_NEW_THROW_EX (id, @@ -1905,13 +1905,13 @@ TAO_Root_POA::parse_ir_object_key (const TAO::ObjectKey &object_key, } TAO_Object_Adapter & -TAO_Root_POA::object_adapter (void) +TAO_Root_POA::object_adapter () { return *this->object_adapter_; } CORBA::Object_ptr -TAO_Root_POA::invoke_key_to_object (void) +TAO_Root_POA::invoke_key_to_object () { PortableServer::ObjectId_var &system_id = *this->key_to_object_params_.system_id_; @@ -2027,11 +2027,7 @@ TAO_Root_POA::key_to_stub_i (const TAO::ObjectKey &key, } // Give ownership to the auto pointer. -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO_Acceptor_Filter> new_filter (filter); -#else - auto_ptr<TAO_Acceptor_Filter> new_filter (filter); -#endif /* ACE_HAS_CPP11 */ TAO_Stub *data = this->create_stub_object ( @@ -2045,7 +2041,7 @@ TAO_Root_POA::key_to_stub_i (const TAO::ObjectKey &key, } void -TAO_Root_POA::establish_components (void) +TAO_Root_POA::establish_components () { TAO_IORInterceptor_Adapter *ior_adapter = this->orb_core_.ior_interceptor_adapter (); @@ -2233,7 +2229,7 @@ TAO_Root_POA::find_servant_priority ( } TAO::ORT_Adapter * -TAO_Root_POA::ORT_adapter_i (void) +TAO_Root_POA::ORT_adapter_i () { if ((this->ort_adapter_factory_) && (this->ort_adapter_ == 0)) { @@ -2272,7 +2268,7 @@ TAO_Root_POA::ORT_adapter_i (void) #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) PortableServer::AdapterActivator_ptr -TAO_Root_POA::the_activator (void) +TAO_Root_POA::the_activator () { // Lock access for the duration of this transaction. TAO_POA_GUARD_RETURN (PortableServer::AdapterActivator::_nil ()); @@ -2294,7 +2290,7 @@ TAO_Root_POA::the_activator (PortableServer::AdapterActivator_ptr adapter_activa #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) PortableServer::ServantManager_ptr -TAO_Root_POA::get_servant_manager (void) +TAO_Root_POA::get_servant_manager () { // Lock access for the duration of this transaction. TAO_POA_GUARD_RETURN (PortableServer::ServantManager::_nil ()); @@ -2314,14 +2310,14 @@ TAO_Root_POA::set_servant_manager (PortableServer::ServantManager_ptr imgr) } PortableServer::Servant -TAO_Root_POA::get_servant_i (void) +TAO_Root_POA::get_servant_i () { return this->active_policy_strategies_.request_processing_strategy()-> get_servant (); } PortableServer::Servant -TAO_Root_POA::get_servant (void) +TAO_Root_POA::get_servant () { // Lock access for the duration of this transaction. TAO_POA_GUARD_RETURN (0); @@ -2374,7 +2370,7 @@ TAO_Root_POA::is_servant_activation_allowed (PortableServer::Servant servant, } bool -TAO_Root_POA::has_system_id (void) const +TAO_Root_POA::has_system_id () const { return this->active_policy_strategies_.id_assignment_strategy ()-> has_system_id (); @@ -2402,14 +2398,14 @@ TAO_Root_POA::servant_has_remaining_activations (PortableServer::Servant servant } bool -TAO_Root_POA::allow_implicit_activation (void) const +TAO_Root_POA::allow_implicit_activation () const { return this->active_policy_strategies_.implicit_activation_strategy ()-> allow_implicit_activation (); } bool -TAO_Root_POA::allow_multiple_activations (void) const +TAO_Root_POA::allow_multiple_activations () const { return this->active_policy_strategies_.id_uniqueness_strategy ()-> allow_multiple_activations (); @@ -2425,7 +2421,7 @@ TAO_Root_POA::post_invoke_servant_cleanup( } CORBA::Short -TAO_Root_POA::server_priority (void) const +TAO_Root_POA::server_priority () const { return this->cached_policies_.server_priority (); } @@ -2440,19 +2436,19 @@ TAO_Root_POA::is_servant_active ( } TAO::Portable_Server::Cached_Policies& -TAO_Root_POA::cached_policies (void) +TAO_Root_POA::cached_policies () { return this->cached_policies_; } TAO_Network_Priority_Hook* -TAO_Root_POA::network_priority_hook (void) +TAO_Root_POA::network_priority_hook () { return this->network_priority_hook_; } TAO::Portable_Server::Cached_Policies::PriorityModel -TAO_Root_POA::priority_model (void) const +TAO_Root_POA::priority_model () const { return cached_policies_.priority_model (); } @@ -2483,13 +2479,13 @@ TAO_Root_POA::validate_lifespan ( } CORBA::Boolean -TAO_Root_POA::root (void) const +TAO_Root_POA::root () const { return true; } TAO::ORT_Adapter * -TAO_Root_POA::ORT_adapter (void) +TAO_Root_POA::ORT_adapter () { if (this->ort_adapter_ != 0) return this->ort_adapter_; @@ -2507,7 +2503,7 @@ TAO_Root_POA::ORT_adapter (void) } CORBA::Policy * -TAO_Root_POA::server_protocol (void) +TAO_Root_POA::server_protocol () { return 0; } @@ -2529,7 +2525,7 @@ TAO_Root_POA::Key_To_Object_Params::set (PortableServer::ObjectId_var &system_id } CORBA::ULong -TAO_Root_POA::waiting_servant_deactivation (void) const +TAO_Root_POA::waiting_servant_deactivation () const { return this->active_policy_strategies_.servant_retention_strategy ()-> waiting_servant_deactivation (); @@ -2549,13 +2545,13 @@ TAO_Root_POA::get_policy (CORBA::PolicyType policy) } void -TAO_Root_POA::check_state (void) +TAO_Root_POA::check_state () { this->active_policy_strategies_.lifespan_strategy ()->check_state (); } const char * -TAO_Root_POA::ort_adapter_factory_name (void) +TAO_Root_POA::ort_adapter_factory_name () { return TAO_POA_Static_Resources::instance ()->ort_adapter_factory_name_.c_str(); } @@ -2567,27 +2563,27 @@ TAO_Root_POA::imr_client_adapter_name (const char *name) } const char * -TAO_Root_POA::imr_client_adapter_name (void) +TAO_Root_POA::imr_client_adapter_name () { return TAO_POA_Static_Resources::instance ()->imr_client_adapter_name_.c_str(); } PortableServer::POAManager_ptr -TAO_Root_POA::the_POAManager (void) +TAO_Root_POA::the_POAManager () { return PortableServer::POAManager::_duplicate (&this->poa_manager_); } #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) PortableServer::POAManagerFactory_ptr -TAO_Root_POA::the_POAManagerFactory (void) +TAO_Root_POA::the_POAManagerFactory () { return PortableServer::POAManagerFactory::_duplicate (&this->poa_manager_factory_); } #endif CORBA::ORB_ptr -TAO_Root_POA::_get_orb (void) +TAO_Root_POA::_get_orb () { return CORBA::ORB::_duplicate (this->orb_core_.orb ()); } @@ -2604,14 +2600,14 @@ TAO_POA_Static_Resources* TAO_POA_Static_Resources::initialization_reference_ = TAO_POA_Static_Resources::instance (); void -TAO_POA_Static_Resources::fini (void) +TAO_POA_Static_Resources::fini () { delete TAO_POA_Static_Resources::instance_; TAO_POA_Static_Resources::instance_ = 0; } TAO_POA_Static_Resources* -TAO_POA_Static_Resources::instance (void) +TAO_POA_Static_Resources::instance () { if (TAO_POA_Static_Resources::instance_ == 0) { @@ -2628,7 +2624,7 @@ TAO_POA_Static_Resources::instance (void) return TAO_POA_Static_Resources::instance_; } -TAO_POA_Static_Resources::TAO_POA_Static_Resources (void) +TAO_POA_Static_Resources::TAO_POA_Static_Resources () : ort_adapter_factory_name_ ("ORT_Adapter_Factory"), imr_client_adapter_name_ ("ImR_Client_Adapter") { diff --git a/TAO/tao/PortableServer/Root_POA.h b/TAO/tao/PortableServer/Root_POA.h index 5e1124ae33c..37521aad56c 100644 --- a/TAO/tao/PortableServer/Root_POA.h +++ b/TAO/tao/PortableServer/Root_POA.h @@ -176,22 +176,22 @@ public: #endif /* TAO_HAS_MINIMUM_POA == 0 && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) */ - char * the_name (void); + char * the_name (); - PortableServer::POA_ptr the_parent (void); + PortableServer::POA_ptr the_parent (); - PortableServer::POAList *the_children (void); + PortableServer::POAList *the_children (); - PortableServer::POAManager_ptr the_POAManager (void); + PortableServer::POAManager_ptr the_POAManager (); #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) - PortableServer::POAManagerFactory_ptr the_POAManagerFactory (void); + PortableServer::POAManagerFactory_ptr the_POAManagerFactory (); #endif /// This method returns the adapter_name as a sequence of strings of /// length one or more or just a fixed name depending on the Object /// Adapter. Added wrt to ORT Spec. - PortableInterceptor::AdapterName *adapter_name (void); + PortableInterceptor::AdapterName *adapter_name (); /// Store the given TaggedComponent for eventual insertion into all /// object reference profiles. @@ -204,15 +204,15 @@ public: IOP::ProfileId profile_id); #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) - PortableServer::AdapterActivator_ptr the_activator (void); + PortableServer::AdapterActivator_ptr the_activator (); void the_activator (PortableServer::AdapterActivator_ptr adapter_activator); - PortableServer::ServantManager_ptr get_servant_manager (void); + PortableServer::ServantManager_ptr get_servant_manager (); void set_servant_manager (PortableServer::ServantManager_ptr imgr); - PortableServer::Servant get_servant (void); + PortableServer::Servant get_servant (); void set_servant (PortableServer::Servant servant); #endif /* TAO_HAS_MINIMUM_POA == 0 !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) */ @@ -246,10 +246,10 @@ public: CORBA::Object_ptr id_to_reference (const PortableServer::ObjectId &oid); - CORBA::OctetSeq *id (void); + CORBA::OctetSeq *id (); /// Accessor for POA policies. - TAO_POA_Policy_Set &policies (void); + TAO_POA_Policy_Set &policies (); /// Get the set policy of the given type. CORBA::Policy_ptr get_policy (CORBA::PolicyType policy); @@ -268,11 +268,11 @@ public: TAO_ORB_Core &orb_core, TAO_Object_Adapter *object_adapter); - virtual ~TAO_Root_POA (void); + virtual ~TAO_Root_POA (); - static char name_separator (void); + static char name_separator (); - static CORBA::ULong name_separator_length (void); + static CORBA::ULong name_separator_length (); enum { @@ -281,34 +281,34 @@ public: static CORBA::Octet const objectkey_prefix[TAO_OBJECTKEY_PREFIX_SIZE]; - const TAO_Object_Adapter::poa_name &folded_name (void) const; + const TAO_Object_Adapter::poa_name &folded_name () const; - const TAO_Object_Adapter::poa_name &system_name (void) const; + const TAO_Object_Adapter::poa_name &system_name () const; static void check_for_valid_wait_for_completions ( const TAO_ORB_Core &orb_core, CORBA::Boolean wait_for_completion); /// ORB Core for POA. - TAO_ORB_Core &orb_core (void) const; + TAO_ORB_Core &orb_core () const; /// obtain a reference to the cached_profiles - TAO::Portable_Server::Cached_Policies& cached_policies (void); + TAO::Portable_Server::Cached_Policies& cached_policies (); /// obtain a handle to the network priority hooks - TAO_Network_Priority_Hook* network_priority_hook (void); + TAO_Network_Priority_Hook* network_priority_hook (); - TAO::Portable_Server::Cached_Policies::PriorityModel priority_model (void) const; + TAO::Portable_Server::Cached_Policies::PriorityModel priority_model () const; - CORBA::Boolean cleanup_in_progress (void); + CORBA::Boolean cleanup_in_progress (); /// Calls protected static method used when POACurrent is not appropriate. static int parse_ir_object_key (const TAO::ObjectKey &object_key, PortableServer::ObjectId &user_id); - TAO_Object_Adapter &object_adapter (void); + TAO_Object_Adapter &object_adapter (); - ACE_Lock &lock (void); + ACE_Lock &lock (); /// Create the correct stub, properly initialized with the /// attributes and policies attached to the current POA. @@ -321,33 +321,33 @@ public: * The POA can be in one of HOLDING, ACTIVE, DISCARDING, INACTIVE * and NON_EXISTENT states. */ - PortableInterceptor::AdapterState get_adapter_state (void); + PortableInterceptor::AdapterState get_adapter_state (); - virtual void *thread_pool (void) const; + virtual void *thread_pool () const; - virtual CORBA::Policy *server_protocol (void); + virtual CORBA::Policy *server_protocol (); - CORBA::ULong outstanding_requests (void) const; + CORBA::ULong outstanding_requests () const; - const ACE_CString &name (void) const; + const ACE_CString &name () const; - CORBA::Boolean waiting_destruction (void) const; + CORBA::Boolean waiting_destruction () const; static void ort_adapter_factory_name (const char *name); - static const char *ort_adapter_factory_name (void); + static const char *ort_adapter_factory_name (); /// Sets the value of TAO_POA_Static_Resources::imr_client_adapter_name_. static void imr_client_adapter_name (const char *name); /// Gets the value of TAO_POA_Static_Resources::imr_client_adapter_name_. - static const char *imr_client_adapter_name (void); + static const char *imr_client_adapter_name (); - CORBA::Object_ptr invoke_key_to_object (void); + CORBA::Object_ptr invoke_key_to_object (); - CORBA::Boolean system_id (void); + CORBA::Boolean system_id (); - CORBA::ULong waiting_servant_deactivation (void) const; + CORBA::ULong waiting_servant_deactivation () const; /// Return the POA Manager related to this POA TAO_POA_Manager &tao_poa_manager (); @@ -373,9 +373,9 @@ public: CORBA::Boolean servant_has_remaining_activations ( PortableServer::Servant servant); - bool allow_implicit_activation (void) const; + bool allow_implicit_activation () const; - bool allow_multiple_activations (void) const; + bool allow_multiple_activations () const; int is_servant_active ( PortableServer::Servant servant, @@ -383,11 +383,11 @@ public: void deactivate_object_i (const PortableServer::ObjectId &oid); - CORBA::Boolean is_persistent (void) const; + CORBA::Boolean is_persistent () const; - CORBA::Short server_priority (void) const; + CORBA::Short server_priority () const; - bool has_system_id (void) const; + bool has_system_id () const; PortableServer::Servant find_servant (const PortableServer::ObjectId &system_id); @@ -436,18 +436,18 @@ public: PortableServer::ObjectId *servant_to_id_i (PortableServer::Servant servant); - TAO_SYNCH_CONDITION &servant_deactivation_condition (void); + TAO_SYNCH_CONDITION &servant_deactivation_condition (); int is_poa_generated_id (const PortableServer::ObjectId &id); /// Check the state of this POA - void check_state (void); + void check_state (); int delete_child (const String &child); PortableServer::Servant user_id_to_servant_i (const PortableServer::ObjectId &oid); - virtual CORBA::ORB_ptr _get_orb (void); + virtual CORBA::ORB_ptr _get_orb (); /// These hooks are needed by the CSD strategy to override /// and no-ops by default. @@ -469,9 +469,9 @@ public: protected: #if (TAO_HAS_MINIMUM_POA == 0) - int enter (void); + int enter (); - int exit (void); + int exit (); #endif /* TAO_HAS_MINIMUM_POA == 0 */ #if ! defined (CORBA_E_MICRO) @@ -501,14 +501,14 @@ protected: void destroy_i (CORBA::Boolean etherealize_objects, CORBA::Boolean wait_for_completion); - void complete_destruction_i (void); + void complete_destruction_i (); - PortableServer::POAList *the_children_i (void); + PortableServer::POAList *the_children_i (); /// This method returns the adapter_name as a sequence of strings of /// length one or more or just a fixed name depending on the Object /// Adapter. Added wrt to ORT Spec. - PortableInterceptor::AdapterName *adapter_name_i (void); + PortableInterceptor::AdapterName *adapter_name_i (); /// Method to notify the IOR Interceptors when there is a state /// changed not related to POAManager. @@ -546,7 +546,7 @@ protected: TAO_Acceptor_Filter *filter, TAO_Acceptor_Registry &acceptor_registry); - PortableServer::Servant get_servant_i (void); + PortableServer::Servant get_servant_i (); protected: void activate_object_with_id_i (const PortableServer::ObjectId &id, @@ -554,7 +554,7 @@ protected: CORBA::Short priority, bool &wait_occurred_restart_call); - virtual void remove_from_parent_i (void); + virtual void remove_from_parent_i (); void deactivate_all_objects_i (CORBA::Boolean etherealize_objects); @@ -585,7 +585,7 @@ protected: * IORInterceptor::components_established() once the former is * completed. */ - void establish_components (void); + void establish_components (); /// Call the IORInterceptor::components_established() method on all /// registered IORInterceptors. @@ -608,13 +608,13 @@ protected: protected: /// Accessor methods to ObjectReferenceTemplate PortableInterceptor::ObjectReferenceTemplate * - get_adapter_template (void); + get_adapter_template (); /// Accessor methods to ObjectReferenceTemplate, non locked version - PortableInterceptor::ObjectReferenceTemplate *get_adapter_template_i (void); + PortableInterceptor::ObjectReferenceTemplate *get_adapter_template_i (); /// Accessor methods to PortableInterceptor::ObjectReferenceFactory - PortableInterceptor::ObjectReferenceFactory *get_obj_ref_factory (void); + PortableInterceptor::ObjectReferenceFactory *get_obj_ref_factory (); /// Set the object reference factory void set_obj_ref_factory ( @@ -640,39 +640,39 @@ protected: /// Get the ORT adapter, in case there is no adapter yet, this method will /// try to create one and hold the POA lock - TAO::ORT_Adapter *ORT_adapter (void); + TAO::ORT_Adapter *ORT_adapter (); /// Get the ORT adapter, in case there is no adapter yet, this method will /// try to create one but assumes the POA lock is already hold - TAO::ORT_Adapter *ORT_adapter_i (void); + TAO::ORT_Adapter *ORT_adapter_i (); - CORBA::Boolean persistent (void); + CORBA::Boolean persistent (); - static char persistent_key_char (void); + static char persistent_key_char (); - static char transient_key_char (void); + static char transient_key_char (); - static CORBA::ULong persistent_key_type_length (void); + static CORBA::ULong persistent_key_type_length (); - static char system_id_key_char (void); + static char system_id_key_char (); - static char user_id_key_char (void); + static char user_id_key_char (); - static CORBA::ULong system_id_key_type_length (void); + static CORBA::ULong system_id_key_type_length (); - virtual CORBA::Boolean root (void) const; + virtual CORBA::Boolean root () const; - virtual char root_key_type (void); + virtual char root_key_type (); - static char root_key_char (void); + static char root_key_char (); - static char non_root_key_char (void); + static char non_root_key_char (); - static CORBA::ULong root_key_type_length (void); + static CORBA::ULong root_key_type_length (); - CORBA::ULong increment_outstanding_requests (void); + CORBA::ULong increment_outstanding_requests (); - CORBA::ULong decrement_outstanding_requests (void); + CORBA::ULong decrement_outstanding_requests (); String name_; @@ -797,10 +797,10 @@ class TAO_PortableServer_Export TAO_POA_Static_Resources public: /// Return the singleton instance. - static TAO_POA_Static_Resources* instance (void); + static TAO_POA_Static_Resources* instance (); /// Cleanup the static singleton - static void fini (void) ACE_GCC_DESTRUCTOR_ATTRIBUTE; + static void fini () ACE_GCC_DESTRUCTOR_ATTRIBUTE; public: @@ -823,7 +823,7 @@ public: ACE_CString imr_client_adapter_name_; private: /// Constructor. - TAO_POA_Static_Resources (void); + TAO_POA_Static_Resources (); private: /// The singleton instance. diff --git a/TAO/tao/PortableServer/SUpcall_commands.cpp b/TAO/tao/PortableServer/SUpcall_commands.cpp index 6ccba4791cb..bcda45a6750 100644 --- a/TAO/tao/PortableServer/SUpcall_commands.cpp +++ b/TAO/tao/PortableServer/SUpcall_commands.cpp @@ -16,7 +16,7 @@ #include "tao/Object.h" void -_is_a_thru_poa_Upcall_Command::execute (void) +_is_a_thru_poa_Upcall_Command::execute () { TAO::SArg_Traits< ::ACE_InputCDR::to_boolean>::ret_arg_type retval = TAO::Portable_Server::get_ret_arg< ::ACE_InputCDR::to_boolean> ( @@ -35,7 +35,7 @@ _is_a_thru_poa_Upcall_Command::execute (void) } void -_is_a_Upcall_Command::execute (void) +_is_a_Upcall_Command::execute () { TAO::SArg_Traits< ::ACE_InputCDR::to_boolean>::ret_arg_type retval = static_cast<TAO::SArg_Traits< ::ACE_InputCDR::to_boolean>::ret_val *> (this->args_[0])->arg (); @@ -50,7 +50,7 @@ _is_a_Upcall_Command::execute (void) #if (TAO_HAS_MINIMUM_CORBA == 0) void -_non_existent_thru_poa_Upcall_Command::execute (void) +_non_existent_thru_poa_Upcall_Command::execute () { TAO::SArg_Traits< ::ACE_InputCDR::to_boolean>::ret_arg_type retval = TAO::Portable_Server::get_ret_arg< ::ACE_InputCDR::to_boolean> ( @@ -62,7 +62,7 @@ _non_existent_thru_poa_Upcall_Command::execute (void) } void -_non_existent_Upcall_Command::execute (void) +_non_existent_Upcall_Command::execute () { TAO::SArg_Traits< ::ACE_InputCDR::to_boolean>::ret_arg_type retval = static_cast<TAO::SArg_Traits< ::ACE_InputCDR::to_boolean>::ret_val *> (this->args_[0])->arg (); @@ -74,7 +74,7 @@ _non_existent_Upcall_Command::execute (void) # if !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) void -_get_component_thru_poa_Upcall_Command::execute (void) +_get_component_thru_poa_Upcall_Command::execute () { TAO::SArg_Traits< ::CORBA::Object>::ret_arg_type retval = TAO::Portable_Server::get_ret_arg< ::CORBA::Object> ( @@ -86,7 +86,7 @@ _get_component_thru_poa_Upcall_Command::execute (void) } void -_get_component_Upcall_Command::execute (void) +_get_component_Upcall_Command::execute () { TAO::SArg_Traits< ::CORBA::Object>::ret_arg_type retval = static_cast<TAO::SArg_Traits< ::CORBA::Object>::ret_val *> (this->args_[0])->arg (); @@ -99,7 +99,7 @@ _get_component_Upcall_Command::execute (void) void -_repository_id_thru_poa_Upcall_Command::execute (void) +_repository_id_thru_poa_Upcall_Command::execute () { TAO::SArg_Traits< char *>::ret_arg_type retval = TAO::Portable_Server::get_ret_arg< char *> ( @@ -111,7 +111,7 @@ _repository_id_thru_poa_Upcall_Command::execute (void) } void -_repository_id_Upcall_Command::execute(void ) +_repository_id_Upcall_Command::execute( ) { TAO::SArg_Traits< char *>::ret_arg_type retval = static_cast<TAO::SArg_Traits< char *>::ret_val *> (this->args_[0])->arg (); diff --git a/TAO/tao/PortableServer/SUpcall_commands.h b/TAO/tao/PortableServer/SUpcall_commands.h index d68ee481d18..e7ed10c074b 100644 --- a/TAO/tao/PortableServer/SUpcall_commands.h +++ b/TAO/tao/PortableServer/SUpcall_commands.h @@ -52,7 +52,7 @@ public: , args_ (args) {} - virtual void execute (void); + virtual void execute (); private: TAO_ServantBase * const servant_; @@ -77,7 +77,7 @@ public: { } - virtual void execute (void); + virtual void execute (); private: TAO_ServantBase * const servant_; @@ -105,7 +105,7 @@ public: { } - virtual void execute (void); + virtual void execute (); private: TAO_ServantBase * const servant_; TAO_Operation_Details const * const operation_details_; @@ -129,7 +129,7 @@ public: { } - virtual void execute (void); + virtual void execute (); private: TAO_ServantBase * const servant_; @@ -157,7 +157,7 @@ public: { } - virtual void execute (void); + virtual void execute (); private: TAO_ServantBase * const servant_; @@ -182,7 +182,7 @@ public: { } - virtual void execute (void); + virtual void execute (); private: TAO_ServantBase * const servant_; @@ -209,7 +209,7 @@ public: { } - virtual void execute (void); + virtual void execute (); private: TAO_ServantBase * const servant_; @@ -234,7 +234,7 @@ public: { } - virtual void execute (void); + virtual void execute (); private: TAO_ServantBase * const servant_; diff --git a/TAO/tao/PortableServer/ServantRetentionPolicy.cpp b/TAO/tao/PortableServer/ServantRetentionPolicy.cpp index c716959b96f..6c7eb85a171 100644 --- a/TAO/tao/PortableServer/ServantRetentionPolicy.cpp +++ b/TAO/tao/PortableServer/ServantRetentionPolicy.cpp @@ -18,7 +18,7 @@ namespace TAO } CORBA::Policy_ptr - ServantRetentionPolicy::copy (void) + ServantRetentionPolicy::copy () { ServantRetentionPolicy *copy = 0; ACE_NEW_THROW_EX (copy, @@ -29,30 +29,30 @@ namespace TAO } void - ServantRetentionPolicy::destroy (void) + ServantRetentionPolicy::destroy () { } ::PortableServer::ServantRetentionPolicyValue - ServantRetentionPolicy::value (void) + ServantRetentionPolicy::value () { return this->value_; } CORBA::PolicyType - ServantRetentionPolicy::policy_type (void) + ServantRetentionPolicy::policy_type () { return ::PortableServer::SERVANT_RETENTION_POLICY_ID; } TAO_Cached_Policy_Type - ServantRetentionPolicy::_tao_cached_type (void) const + ServantRetentionPolicy::_tao_cached_type () const { return TAO_CACHED_POLICY_SERVANT_RETENTION; } TAO_Policy_Scope - ServantRetentionPolicy::_tao_scope (void) const + ServantRetentionPolicy::_tao_scope () const { return TAO_POLICY_POA_SCOPE; } diff --git a/TAO/tao/PortableServer/ServantRetentionPolicy.h b/TAO/tao/PortableServer/ServantRetentionPolicy.h index d62c550b224..b39152dad1c 100644 --- a/TAO/tao/PortableServer/ServantRetentionPolicy.h +++ b/TAO/tao/PortableServer/ServantRetentionPolicy.h @@ -43,19 +43,19 @@ namespace TAO public: ServantRetentionPolicy (::PortableServer::ServantRetentionPolicyValue value); - CORBA::Policy_ptr copy (void); + CORBA::Policy_ptr copy (); - void destroy (void); + void destroy (); - ::PortableServer::ServantRetentionPolicyValue value (void); + ::PortableServer::ServantRetentionPolicyValue value (); - CORBA::PolicyType policy_type (void); + CORBA::PolicyType policy_type (); /// Return the cached policy type for this policy. - TAO_Cached_Policy_Type _tao_cached_type (void) const; + TAO_Cached_Policy_Type _tao_cached_type () const; /// Returns the scope at which this policy can be applied. See orbconf.h. - TAO_Policy_Scope _tao_scope (void) const; + TAO_Policy_Scope _tao_scope () const; private: ::PortableServer::ServantRetentionPolicyValue value_; diff --git a/TAO/tao/PortableServer/ServantRetentionStrategy.h b/TAO/tao/PortableServer/ServantRetentionStrategy.h index 436eb6a185d..eb54dc6520a 100644 --- a/TAO/tao/PortableServer/ServantRetentionStrategy.h +++ b/TAO/tao/PortableServer/ServantRetentionStrategy.h @@ -37,7 +37,7 @@ namespace TAO : public Policy_Strategy { public: - virtual CORBA::ULong waiting_servant_deactivation (void) const = 0; + virtual CORBA::ULong waiting_servant_deactivation () const = 0; virtual int is_servant_in_map (PortableServer::Servant servant, bool &wait_occurred_restart_call) = 0; @@ -81,7 +81,7 @@ namespace TAO const PortableServer::ObjectId &id, bool indirect) = 0; - virtual void deactivate_all_objects (void) = 0; + virtual void deactivate_all_objects () = 0; virtual PortableServer::ObjectId *servant_to_user_id ( PortableServer::Servant servant) = 0; diff --git a/TAO/tao/PortableServer/ServantRetentionStrategyNonRetain.cpp b/TAO/tao/PortableServer/ServantRetentionStrategyNonRetain.cpp index 2ace6f13b39..e4e39fbe4bd 100644 --- a/TAO/tao/PortableServer/ServantRetentionStrategyNonRetain.cpp +++ b/TAO/tao/PortableServer/ServantRetentionStrategyNonRetain.cpp @@ -24,7 +24,7 @@ namespace TAO { namespace Portable_Server { - ServantRetentionStrategyNonRetain::ServantRetentionStrategyNonRetain (void) : + ServantRetentionStrategyNonRetain::ServantRetentionStrategyNonRetain () : poa_ (0), sys_id_count_ (0) { @@ -37,7 +37,7 @@ namespace TAO } void - ServantRetentionStrategyNonRetain::strategy_cleanup (void) + ServantRetentionStrategyNonRetain::strategy_cleanup () { poa_ = 0; } @@ -129,13 +129,13 @@ namespace TAO } CORBA::ULong - ServantRetentionStrategyNonRetain::waiting_servant_deactivation (void) const + ServantRetentionStrategyNonRetain::waiting_servant_deactivation () const { return 0; } void - ServantRetentionStrategyNonRetain::deactivate_all_objects (void) + ServantRetentionStrategyNonRetain::deactivate_all_objects () { } diff --git a/TAO/tao/PortableServer/ServantRetentionStrategyNonRetain.h b/TAO/tao/PortableServer/ServantRetentionStrategyNonRetain.h index 837e0868b5a..8d2e46f5336 100644 --- a/TAO/tao/PortableServer/ServantRetentionStrategyNonRetain.h +++ b/TAO/tao/PortableServer/ServantRetentionStrategyNonRetain.h @@ -19,7 +19,7 @@ #endif /* ACE_LACKS_PRAGMA_ONCE */ #include "tao/PortableServer/Servant_Location.h" -#include "ace/Atomic_Op.h" +#include <atomic> TAO_BEGIN_VERSIONED_NAMESPACE_DECL @@ -33,13 +33,13 @@ namespace TAO : public ServantRetentionStrategy { public: - ServantRetentionStrategyNonRetain (void); + ServantRetentionStrategyNonRetain (); virtual void strategy_init (TAO_Root_POA *poa); - virtual void strategy_cleanup(void); + virtual void strategy_cleanup(); - CORBA::ULong waiting_servant_deactivation (void) const; + CORBA::ULong waiting_servant_deactivation () const; virtual PortableServer::ObjectId * @@ -86,7 +86,7 @@ namespace TAO const PortableServer::ObjectId &system_id, CORBA::Short &priority); - virtual void deactivate_all_objects (void); + virtual void deactivate_all_objects (); virtual PortableServer::ObjectId *servant_to_user_id ( PortableServer::Servant servant); @@ -123,7 +123,7 @@ namespace TAO protected: TAO_Root_POA *poa_; - ACE_Atomic_Op<TAO_SYNCH_MUTEX,ACE_UINT32> sys_id_count_; + std::atomic<uint32_t> sys_id_count_; }; } } diff --git a/TAO/tao/PortableServer/ServantRetentionStrategyRetain.cpp b/TAO/tao/PortableServer/ServantRetentionStrategyRetain.cpp index 8c5d451f874..b92e56025cc 100644 --- a/TAO/tao/PortableServer/ServantRetentionStrategyRetain.cpp +++ b/TAO/tao/PortableServer/ServantRetentionStrategyRetain.cpp @@ -26,7 +26,7 @@ namespace TAO { namespace Portable_Server { - ServantRetentionStrategyRetain::ServantRetentionStrategyRetain (void) : + ServantRetentionStrategyRetain::ServantRetentionStrategyRetain () : ServantRetentionStrategyNonRetain (), active_object_map_ (), waiting_servant_deactivation_ (0) @@ -61,7 +61,7 @@ namespace TAO } void - ServantRetentionStrategyRetain::strategy_cleanup (void) + ServantRetentionStrategyRetain::strategy_cleanup () { } @@ -433,13 +433,13 @@ namespace TAO } CORBA::ULong - ServantRetentionStrategyRetain::waiting_servant_deactivation (void) const + ServantRetentionStrategyRetain::waiting_servant_deactivation () const { return waiting_servant_deactivation_; } void - ServantRetentionStrategyRetain::deactivate_all_objects (void) + ServantRetentionStrategyRetain::deactivate_all_objects () { // If the etherealize_objects parameter is TRUE, the POA has the // RETAIN policy, and a servant manager is registered with the POA, @@ -963,7 +963,7 @@ namespace TAO ::PortableServer::ServantRetentionPolicyValue - ServantRetentionStrategyRetain::type(void) const + ServantRetentionStrategyRetain::type() const { return ::PortableServer::RETAIN; } diff --git a/TAO/tao/PortableServer/ServantRetentionStrategyRetain.h b/TAO/tao/PortableServer/ServantRetentionStrategyRetain.h index 500629cf1c0..a475bdb69ac 100644 --- a/TAO/tao/PortableServer/ServantRetentionStrategyRetain.h +++ b/TAO/tao/PortableServer/ServantRetentionStrategyRetain.h @@ -32,13 +32,13 @@ namespace TAO : public ServantRetentionStrategyNonRetain { public: - ServantRetentionStrategyRetain (void); + ServantRetentionStrategyRetain (); - CORBA::ULong waiting_servant_deactivation (void) const; + CORBA::ULong waiting_servant_deactivation () const; virtual void strategy_init (TAO_Root_POA *poa); - virtual void strategy_cleanup(void); + virtual void strategy_cleanup(); virtual int is_servant_in_map (PortableServer::Servant servant, bool &wait_occurred_restart_call); @@ -85,7 +85,7 @@ namespace TAO const PortableServer::ObjectId &system_id, CORBA::Short &priority); - virtual void deactivate_all_objects (void); + virtual void deactivate_all_objects (); virtual PortableServer::ObjectId *servant_to_user_id ( PortableServer::Servant servant); @@ -139,11 +139,7 @@ namespace TAO TAO_Active_Object_Map * get_active_object_map() const; private: -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO_Active_Object_Map> active_object_map_; -#else - auto_ptr<TAO_Active_Object_Map> active_object_map_; -#endif /* ACE_HAS_CPP11 */ CORBA::ULong waiting_servant_deactivation_; }; } diff --git a/TAO/tao/PortableServer/Servant_Base.cpp b/TAO/tao/PortableServer/Servant_Base.cpp index 9bd8738a623..531be3b10f4 100644 --- a/TAO/tao/PortableServer/Servant_Base.cpp +++ b/TAO/tao/PortableServer/Servant_Base.cpp @@ -79,12 +79,12 @@ TAO_ServantBase::operator= (const TAO_ServantBase &rhs) return *this; } -TAO_ServantBase::~TAO_ServantBase (void) +TAO_ServantBase::~TAO_ServantBase () { } PortableServer::POA_ptr -TAO_ServantBase::_default_POA (void) +TAO_ServantBase::_default_POA () { CORBA::Object_var object = TAO_ORB_Core_instance ()->root_poa (); @@ -434,13 +434,13 @@ TAO_ServantBase::_is_a (const char *logical_type_id) #if (TAO_HAS_MINIMUM_CORBA == 0) CORBA::Boolean -TAO_ServantBase::_non_existent (void) +TAO_ServantBase::_non_existent () { return false; } CORBA::InterfaceDef_ptr -TAO_ServantBase::_get_interface (void) +TAO_ServantBase::_get_interface () { TAO_IFR_Client_Adapter *adapter = ACE_Dynamic_Service<TAO_IFR_Client_Adapter>::instance ( @@ -459,13 +459,13 @@ TAO_ServantBase::_get_interface (void) #if !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) CORBA::Object_ptr -TAO_ServantBase::_get_component (void) +TAO_ServantBase::_get_component () { return CORBA::Object::_nil (); } #endif char * -TAO_ServantBase::_repository_id (void) +TAO_ServantBase::_repository_id () { return CORBA::string_dup (this->_interface_repository_id ()); } @@ -493,7 +493,7 @@ TAO_ServantBase::_find (const char *opname, } TAO_Stub * -TAO_ServantBase::_create_stub (void) +TAO_ServantBase::_create_stub () { TAO_Stub *stub = 0; @@ -645,13 +645,13 @@ TAO_ServantBase::asynchronous_upcall_dispatch ( } void -TAO_ServantBase::_add_ref (void) +TAO_ServantBase::_add_ref () { ++this->ref_count_; } void -TAO_ServantBase::_remove_ref (void) +TAO_ServantBase::_remove_ref () { CORBA::ULong const new_count = --this->ref_count_; @@ -662,13 +662,9 @@ TAO_ServantBase::_remove_ref (void) } CORBA::ULong -TAO_ServantBase::_refcount_value (void) const +TAO_ServantBase::_refcount_value () const { -#if defined (ACE_HAS_CPP11) return this->ref_count_; -#else - return this->ref_count_.value (); -#endif /* ACE_HAS_CPP11 */ } void diff --git a/TAO/tao/PortableServer/Servant_Base.h b/TAO/tao/PortableServer/Servant_Base.h index 1cc77f3bed1..9b15c1c26bb 100644 --- a/TAO/tao/PortableServer/Servant_Base.h +++ b/TAO/tao/PortableServer/Servant_Base.h @@ -22,11 +22,7 @@ #include "tao/PortableServer/PS_ForwardC.h" #include "tao/PortableServer/Servant_var.h" #include "tao/Abstract_Servant_Base.h" -#if defined (ACE_HAS_CPP11) #include <atomic> -#else -#include "ace/Atomic_Op.h" -#endif /* ACE_HAS_CPP11 */ TAO_BEGIN_VERSIONED_NAMESPACE_DECL @@ -69,7 +65,7 @@ public: typedef CORBA::Object_var _stub_var_type; /// Destructor. - virtual ~TAO_ServantBase (void); + virtual ~TAO_ServantBase (); static void _is_a_skel (TAO_ServerRequest & req, TAO::Portable_Server::Servant_Upcall* servant_upcall, @@ -108,29 +104,29 @@ public: #endif /* TAO_HAS_MINIMUM_CORBA */ /// Returns the default POA for this servant. - virtual PortableServer::POA_ptr _default_POA (void); + virtual PortableServer::POA_ptr _default_POA (); /// Local implementation of the CORBA::Object::_is_a method. virtual CORBA::Boolean _is_a (const char *logical_type_id); #if (TAO_HAS_MINIMUM_CORBA == 0) /// Default _non_existent: always returns false. - virtual CORBA::Boolean _non_existent (void); + virtual CORBA::Boolean _non_existent (); /// Query the Interface Repository for the interface definition. - virtual CORBA::InterfaceDef_ptr _get_interface (void); + virtual CORBA::InterfaceDef_ptr _get_interface (); #if !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) /// Default _get_component: always returns CORBA::Object::_nil(). - virtual CORBA::Object_ptr _get_component (void); + virtual CORBA::Object_ptr _get_component (); #endif /// Get the repository id. - virtual char * _repository_id (void); + virtual char * _repository_id (); #endif /* TAO_HAS_MINIMUM_CORBA */ /// This is an auxiliary method for _this() and _narrow(). - virtual TAO_Stub *_create_stub (void); + virtual TAO_Stub *_create_stub (); /** * Dispatches a request to the object: find the operation, cast the @@ -155,26 +151,26 @@ public: const size_t length = 0); /// Get this interface's repository id (TAO specific). - virtual const char *_interface_repository_id (void) const = 0; + virtual const char *_interface_repository_id () const = 0; //@{ /** * @name Reference Counting Operations */ /// Increase reference count by one. - virtual void _add_ref (void); + virtual void _add_ref (); /** * Decreases reference count by one; if the resulting reference * count equals zero, _remove_ref invokes delete on its this pointer * in order to destroy the servant. */ - virtual void _remove_ref (void); + virtual void _remove_ref (); /** * Returns the current reference count value. */ - virtual CORBA::ULong _refcount_value (void) const; + virtual CORBA::ULong _refcount_value () const; //@} virtual void _collocated_dispatch (::CORBA::Object_ptr obj, @@ -208,11 +204,7 @@ protected: protected: /// Reference counter. -#if defined (ACE_HAS_CPP11) std::atomic<uint32_t> ref_count_; -#else - ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> ref_count_; -#endif /* ACE_HAS_CPP11 */ /// The operation table for this servant. It is initialized by the /// most derived class. diff --git a/TAO/tao/PortableServer/Servant_Dispatcher.cpp b/TAO/tao/PortableServer/Servant_Dispatcher.cpp index fe0524cd9d1..722af63e3c9 100644 --- a/TAO/tao/PortableServer/Servant_Dispatcher.cpp +++ b/TAO/tao/PortableServer/Servant_Dispatcher.cpp @@ -3,7 +3,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO_Servant_Dispatcher::~TAO_Servant_Dispatcher (void) +TAO_Servant_Dispatcher::~TAO_Servant_Dispatcher () { } diff --git a/TAO/tao/PortableServer/Servant_Dispatcher.h b/TAO/tao/PortableServer/Servant_Dispatcher.h index bf48fea7dc4..ced50eec720 100644 --- a/TAO/tao/PortableServer/Servant_Dispatcher.h +++ b/TAO/tao/PortableServer/Servant_Dispatcher.h @@ -48,7 +48,7 @@ namespace PortableServer class TAO_PortableServer_Export TAO_Servant_Dispatcher { public: - virtual ~TAO_Servant_Dispatcher (void); + virtual ~TAO_Servant_Dispatcher (); /// Pre_invoke remote request. virtual void pre_invoke_remote_request ( diff --git a/TAO/tao/PortableServer/Servant_Upcall.cpp b/TAO/tao/PortableServer/Servant_Upcall.cpp index e08ac1ae707..e77ac5fb31a 100644 --- a/TAO/tao/PortableServer/Servant_Upcall.cpp +++ b/TAO/tao/PortableServer/Servant_Upcall.cpp @@ -179,7 +179,7 @@ namespace TAO } void - Servant_Upcall::pre_invoke_collocated_request (void) + Servant_Upcall::pre_invoke_collocated_request () { this->object_adapter_->servant_dispatcher_->pre_invoke_collocated_request ( this->poa (), @@ -188,14 +188,14 @@ namespace TAO } void - Servant_Upcall::post_invoke (void) + Servant_Upcall::post_invoke () { this->object_adapter_->servant_dispatcher_->post_invoke ( this->poa (), this->pre_invoke_state_); } - Servant_Upcall::Pre_Invoke_State::Pre_Invoke_State (void) + Servant_Upcall::Pre_Invoke_State::Pre_Invoke_State () : state_ (NO_ACTION_REQUIRED), original_native_priority_ (0), original_CORBA_priority_ (0) @@ -225,13 +225,13 @@ namespace TAO return this->poa_; } - Servant_Upcall::~Servant_Upcall (void) + Servant_Upcall::~Servant_Upcall () { this->upcall_cleanup (); } void - Servant_Upcall::upcall_cleanup (void) + Servant_Upcall::upcall_cleanup () { this->post_invoke (); @@ -292,14 +292,14 @@ namespace TAO } void - Servant_Upcall::post_invoke_servant_cleanup (void) + Servant_Upcall::post_invoke_servant_cleanup () { this->poa_->post_invoke_servant_cleanup (this->current_context_.object_id (), *this); } void - Servant_Upcall::single_threaded_poa_setup (void) + Servant_Upcall::single_threaded_poa_setup () { #if (TAO_HAS_MINIMUM_POA == 0) // Serialize servants (if necessary). @@ -317,7 +317,7 @@ namespace TAO } void - Servant_Upcall::single_threaded_poa_cleanup (void) + Servant_Upcall::single_threaded_poa_cleanup () { #if (TAO_HAS_MINIMUM_POA == 0) // Since the servant lock was acquired, we must release it. @@ -328,7 +328,7 @@ namespace TAO } void - Servant_Upcall::increment_servant_refcount (void) + Servant_Upcall::increment_servant_refcount () { // Cleanup servant related stuff. if (this->active_object_map_entry_ != 0) @@ -336,7 +336,7 @@ namespace TAO } void - Servant_Upcall::servant_cleanup (void) + Servant_Upcall::servant_cleanup () { // Cleanup servant related stuff. if (this->active_object_map_entry_ != 0) @@ -369,7 +369,7 @@ namespace TAO } void - Servant_Upcall::poa_cleanup (void) + Servant_Upcall::poa_cleanup () { // Decrease <poa->outstanding_requests_> now that the upcall // is complete. diff --git a/TAO/tao/PortableServer/Servant_Upcall.h b/TAO/tao/PortableServer/Servant_Upcall.h index a7f5f2ae320..319a6074389 100644 --- a/TAO/tao/PortableServer/Servant_Upcall.h +++ b/TAO/tao/PortableServer/Servant_Upcall.h @@ -70,7 +70,7 @@ namespace TAO { public: /// Constructor. - Pre_Invoke_State (void); + Pre_Invoke_State (); enum State { @@ -93,7 +93,7 @@ namespace TAO explicit Servant_Upcall (TAO_ORB_Core *orb_core); /// Destructor. - ~Servant_Upcall (void); + ~Servant_Upcall (); /// Locate POA and servant. int prepare_for_upcall (const TAO::ObjectKey &key, @@ -110,41 +110,41 @@ namespace TAO void pre_invoke_remote_request (TAO_ServerRequest &req); /// Run pre_invoke for a collocated request. - void pre_invoke_collocated_request (void); + void pre_invoke_collocated_request (); /// Run post_invoke for a request. - void post_invoke (void); + void post_invoke (); /// Locate POA. ::TAO_Root_POA *lookup_POA (const TAO::ObjectKey &key); /// POA accessor. - ::TAO_Root_POA &poa (void) const; + ::TAO_Root_POA &poa () const; /// Object Adapter accessor. - TAO_Object_Adapter &object_adapter (void) const; + TAO_Object_Adapter &object_adapter () const; /// System ID accessor. - const PortableServer::ObjectId &id (void) const; + const PortableServer::ObjectId &id () const; /// User ID accessors. This is the same value returned by /// PortableServer::Current::get_object_id(). void user_id (const PortableServer::ObjectId *); - const PortableServer::ObjectId &user_id (void) const; + const PortableServer::ObjectId &user_id () const; /// Servant accessor. - PortableServer::Servant servant (void) const; + PortableServer::Servant servant () const; #if (TAO_HAS_MINIMUM_POA == 0) /// Get the Servant Locator's cookie - void* locator_cookie (void) const; + void* locator_cookie () const; /// Set the Servant Locator's cookie void locator_cookie (void* cookie); /// Get the operation name. - const char *operation (void) const; + const char *operation () const; /// Set the operation name. void operation (const char *); @@ -155,10 +155,10 @@ namespace TAO void active_object_map_entry (TAO_Active_Object_Map_Entry *entry); /// Get the active_object_map_entry. - TAO_Active_Object_Map_Entry *active_object_map_entry (void) const; + TAO_Active_Object_Map_Entry *active_object_map_entry () const; /// Get the priority for the current upcall. - CORBA::Short priority (void) const; + CORBA::Short priority () const; enum State { @@ -170,24 +170,24 @@ namespace TAO }; /// Get the state. - State state (void) const; + State state () const; /// Set the state. void state (State); /// Increment the refcount - void increment_servant_refcount (void); + void increment_servant_refcount (); protected: - void post_invoke_servant_cleanup (void); - void single_threaded_poa_setup (void); - void single_threaded_poa_cleanup (void); - void servant_cleanup (void); - void poa_cleanup (void); + void post_invoke_servant_cleanup (); + void single_threaded_poa_setup (); + void single_threaded_poa_cleanup (); + void servant_cleanup (); + void poa_cleanup (); /// Clean-up / reset state of this Servant_Upcall object. - void upcall_cleanup (void); + void upcall_cleanup (); protected: diff --git a/TAO/tao/PortableServer/Servant_var.h b/TAO/tao/PortableServer/Servant_var.h index 1c146dc0eb9..24f66407de2 100644 --- a/TAO/tao/PortableServer/Servant_var.h +++ b/TAO/tao/PortableServer/Servant_var.h @@ -55,7 +55,7 @@ namespace PortableServer /** * This destructor doesn't throw exceptions. */ - ~Servant_var (void); + ~Servant_var (); /// Assignment operator. Assumes ownership of @c p. Servant_var<T> & operator= (T * p); diff --git a/TAO/tao/PortableServer/Special_Basic_SArgument_T.h b/TAO/tao/PortableServer/Special_Basic_SArgument_T.h index 710cf1f494f..3e217820af9 100644 --- a/TAO/tao/PortableServer/Special_Basic_SArgument_T.h +++ b/TAO/tao/PortableServer/Special_Basic_SArgument_T.h @@ -38,13 +38,13 @@ namespace TAO class In_Special_Basic_SArgument_T : public InArgument { public: - In_Special_Basic_SArgument_T (void); + In_Special_Basic_SArgument_T (); virtual CORBA::Boolean demarshal (TAO_InputCDR &); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S const & arg (void) const; + S const & arg () const; private: S x_; @@ -63,14 +63,14 @@ namespace TAO class Inout_Special_Basic_SArgument_T : public InoutArgument { public: - Inout_Special_Basic_SArgument_T (void); + Inout_Special_Basic_SArgument_T (); virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr); virtual CORBA::Boolean demarshal (TAO_InputCDR &); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S & arg (void); + S & arg (); private: S x_; @@ -89,13 +89,13 @@ namespace TAO class Out_Special_Basic_SArgument_T : public OutArgument { public: - Out_Special_Basic_SArgument_T (void); + Out_Special_Basic_SArgument_T (); virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S & arg (void); + S & arg (); private: S x_; @@ -114,13 +114,13 @@ namespace TAO class Ret_Special_Basic_SArgument_T : public RetArgument { public: - Ret_Special_Basic_SArgument_T (void); + Ret_Special_Basic_SArgument_T (); virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S & arg (void); + S & arg (); private: S x_; diff --git a/TAO/tao/PortableServer/StrategyFactory.cpp b/TAO/tao/PortableServer/StrategyFactory.cpp index dc03abc1ed4..575067c77bf 100644 --- a/TAO/tao/PortableServer/StrategyFactory.cpp +++ b/TAO/tao/PortableServer/StrategyFactory.cpp @@ -8,7 +8,7 @@ namespace TAO { namespace Portable_Server { - StrategyFactory::~StrategyFactory (void) + StrategyFactory::~StrategyFactory () { } } /* namespace Portable_Server */ diff --git a/TAO/tao/PortableServer/StrategyFactory.h b/TAO/tao/PortableServer/StrategyFactory.h index fac77d9bff8..ac0b08687ae 100644 --- a/TAO/tao/PortableServer/StrategyFactory.h +++ b/TAO/tao/PortableServer/StrategyFactory.h @@ -31,7 +31,7 @@ namespace TAO : public ACE_Service_Object { public: - virtual ~StrategyFactory (void); + virtual ~StrategyFactory (); }; } /* namespace Portable_Server */ } /* namespace TAO */ diff --git a/TAO/tao/PortableServer/ThreadPolicy.cpp b/TAO/tao/PortableServer/ThreadPolicy.cpp index c7f2869db2b..38dbb7e1f15 100644 --- a/TAO/tao/PortableServer/ThreadPolicy.cpp +++ b/TAO/tao/PortableServer/ThreadPolicy.cpp @@ -18,7 +18,7 @@ namespace TAO } CORBA::Policy_ptr - ThreadPolicy::copy (void) + ThreadPolicy::copy () { ThreadPolicy *copy = 0; ACE_NEW_THROW_EX (copy, @@ -29,30 +29,30 @@ namespace TAO } void - ThreadPolicy::destroy (void) + ThreadPolicy::destroy () { } ::PortableServer::ThreadPolicyValue - ThreadPolicy::value (void) + ThreadPolicy::value () { return value_; } CORBA::PolicyType - ThreadPolicy::policy_type (void) + ThreadPolicy::policy_type () { return ::PortableServer::THREAD_POLICY_ID; } TAO_Cached_Policy_Type - ThreadPolicy::_tao_cached_type (void) const + ThreadPolicy::_tao_cached_type () const { return TAO_CACHED_POLICY_THREAD; } TAO_Policy_Scope - ThreadPolicy::_tao_scope (void) const + ThreadPolicy::_tao_scope () const { return TAO_POLICY_POA_SCOPE; } diff --git a/TAO/tao/PortableServer/ThreadPolicy.h b/TAO/tao/PortableServer/ThreadPolicy.h index 9de46c892bd..e48bee84d72 100644 --- a/TAO/tao/PortableServer/ThreadPolicy.h +++ b/TAO/tao/PortableServer/ThreadPolicy.h @@ -43,19 +43,19 @@ namespace TAO public: ThreadPolicy (::PortableServer::ThreadPolicyValue value); - CORBA::Policy_ptr copy (void); + CORBA::Policy_ptr copy (); - void destroy (void); + void destroy (); - ::PortableServer::ThreadPolicyValue value (void); + ::PortableServer::ThreadPolicyValue value (); - CORBA::PolicyType policy_type (void); + CORBA::PolicyType policy_type (); /// Return the cached policy type for this policy. - TAO_Cached_Policy_Type _tao_cached_type (void) const; + TAO_Cached_Policy_Type _tao_cached_type () const; /// Returns the scope at which this policy can be applied. See orbconf.h. - TAO_Policy_Scope _tao_scope (void) const; + TAO_Policy_Scope _tao_scope () const; private: ::PortableServer::ThreadPolicyValue value_; diff --git a/TAO/tao/PortableServer/ThreadStrategy.cpp b/TAO/tao/PortableServer/ThreadStrategy.cpp index 7b36ab1a869..647081f0660 100644 --- a/TAO/tao/PortableServer/ThreadStrategy.cpp +++ b/TAO/tao/PortableServer/ThreadStrategy.cpp @@ -12,7 +12,7 @@ namespace TAO } void - ThreadStrategy::strategy_cleanup (void) + ThreadStrategy::strategy_cleanup () { } } diff --git a/TAO/tao/PortableServer/ThreadStrategy.h b/TAO/tao/PortableServer/ThreadStrategy.h index 29b9ab8bafa..14488287a2b 100644 --- a/TAO/tao/PortableServer/ThreadStrategy.h +++ b/TAO/tao/PortableServer/ThreadStrategy.h @@ -37,7 +37,7 @@ namespace TAO virtual void strategy_init (TAO_Root_POA *poa); - virtual void strategy_cleanup(void); + virtual void strategy_cleanup(); virtual ::PortableServer::ThreadPolicyValue type() const = 0; }; diff --git a/TAO/tao/PortableServer/UB_String_SArgument_T.h b/TAO/tao/PortableServer/UB_String_SArgument_T.h index 8e19dc77413..457e761bf06 100644 --- a/TAO/tao/PortableServer/UB_String_SArgument_T.h +++ b/TAO/tao/PortableServer/UB_String_SArgument_T.h @@ -33,13 +33,13 @@ namespace TAO class In_UB_String_SArgument_T : public InArgument { public: - In_UB_String_SArgument_T (void); + In_UB_String_SArgument_T (); virtual CORBA::Boolean demarshal (TAO_InputCDR &); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S const * arg (void) const; + S const * arg () const; private: S_var x_; @@ -55,14 +55,14 @@ namespace TAO class Inout_UB_String_SArgument_T : public InoutArgument { public: - Inout_UB_String_SArgument_T (void); + Inout_UB_String_SArgument_T (); virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr); virtual CORBA::Boolean demarshal (TAO_InputCDR &); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S *& arg (void); + S *& arg (); private: S_var x_; @@ -78,13 +78,13 @@ namespace TAO class Out_UB_String_SArgument_T : public OutArgument { public: - Out_UB_String_SArgument_T (void); + Out_UB_String_SArgument_T (); virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S *& arg (void); + S *& arg (); private: S_var x_; @@ -100,13 +100,13 @@ namespace TAO class Ret_UB_String_SArgument_T : public RetArgument { public: - Ret_UB_String_SArgument_T (void); + Ret_UB_String_SArgument_T (); virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S *& arg (void); + S *& arg (); private: S_var x_; diff --git a/TAO/tao/PortableServer/Upcall_Command.cpp b/TAO/tao/PortableServer/Upcall_Command.cpp index 52dc05020e2..b1133c9f623 100644 --- a/TAO/tao/PortableServer/Upcall_Command.cpp +++ b/TAO/tao/PortableServer/Upcall_Command.cpp @@ -2,7 +2,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -TAO::Upcall_Command::~Upcall_Command (void) +TAO::Upcall_Command::~Upcall_Command () { } diff --git a/TAO/tao/PortableServer/Upcall_Command.h b/TAO/tao/PortableServer/Upcall_Command.h index 6184aa987dd..2b32a23d33e 100644 --- a/TAO/tao/PortableServer/Upcall_Command.h +++ b/TAO/tao/PortableServer/Upcall_Command.h @@ -41,10 +41,10 @@ namespace TAO { public: /// Destructor. - virtual ~Upcall_Command (void); + virtual ~Upcall_Command (); /// Execute the upcall. - virtual void execute (void) = 0; + virtual void execute () = 0; }; } // End namespace TAO diff --git a/TAO/tao/PortableServer/Var_Array_SArgument_T.h b/TAO/tao/PortableServer/Var_Array_SArgument_T.h index 4e15f8aadf1..0242a21f24a 100644 --- a/TAO/tao/PortableServer/Var_Array_SArgument_T.h +++ b/TAO/tao/PortableServer/Var_Array_SArgument_T.h @@ -35,13 +35,13 @@ namespace TAO { public: - In_Var_Array_SArgument_T (void); + In_Var_Array_SArgument_T (); virtual CORBA::Boolean demarshal (TAO_InputCDR &); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - typename S_forany::_slice_type const * arg (void) const; + typename S_forany::_slice_type const * arg () const; private: mutable typename S_forany::_array_type x_; @@ -58,14 +58,14 @@ namespace TAO class Inout_Var_Array_SArgument_T : public InoutArgument { public: - Inout_Var_Array_SArgument_T (void); + Inout_Var_Array_SArgument_T (); virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr); virtual CORBA::Boolean demarshal (TAO_InputCDR &); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - typename S_forany::_slice_type * arg (void); + typename S_forany::_slice_type * arg (); private: typename S_forany::_array_type x_; @@ -83,13 +83,13 @@ namespace TAO class Out_Var_Array_SArgument_T : public OutArgument { public: - Out_Var_Array_SArgument_T (void); + Out_Var_Array_SArgument_T (); virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - typename S_forany::_slice_type *& arg (void); + typename S_forany::_slice_type *& arg (); private: S_var x_; @@ -107,13 +107,13 @@ namespace TAO class Ret_Var_Array_SArgument_T : public RetArgument { public: - Ret_Var_Array_SArgument_T (void); + Ret_Var_Array_SArgument_T (); virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - typename S_forany::_slice_type *& arg (void); + typename S_forany::_slice_type *& arg (); private: S_var x_; diff --git a/TAO/tao/PortableServer/Var_Size_SArgument_T.h b/TAO/tao/PortableServer/Var_Size_SArgument_T.h index a353331aa48..07773260e03 100644 --- a/TAO/tao/PortableServer/Var_Size_SArgument_T.h +++ b/TAO/tao/PortableServer/Var_Size_SArgument_T.h @@ -38,7 +38,7 @@ namespace TAO #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S const & arg (void) const; + S const & arg () const; private: S x_; @@ -55,14 +55,14 @@ namespace TAO class Inout_Var_Size_SArgument_T : public InoutArgument { public: - Inout_Var_Size_SArgument_T (void); + Inout_Var_Size_SArgument_T (); virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr); virtual CORBA::Boolean demarshal (TAO_InputCDR &); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S & arg (void); + S & arg (); private: S x_; @@ -79,13 +79,13 @@ namespace TAO class Out_Var_Size_SArgument_T : public OutArgument { public: - Out_Var_Size_SArgument_T (void); + Out_Var_Size_SArgument_T (); virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S *& arg (void); + S *& arg (); private: typename S::_var_type x_; @@ -102,13 +102,13 @@ namespace TAO class Ret_Var_Size_SArgument_T : public RetArgument { public: - Ret_Var_Size_SArgument_T (void); + Ret_Var_Size_SArgument_T (); virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S *& arg (void); + S *& arg (); private: typename S::_var_type x_; diff --git a/TAO/tao/Principal.h b/TAO/tao/Principal.h index e961e8b419a..756aac6a9a6 100644 --- a/TAO/tao/Principal.h +++ b/TAO/tao/Principal.h @@ -25,11 +25,7 @@ #include "tao/OctetSeqC.h" #include "tao/Pseudo_VarOut_T.h" #include "ace/Thread_Mutex.h" -#if defined (ACE_HAS_CPP11) -# include <atomic> -#else -# include "ace/Atomic_Op.h" -#endif /* ACE_HAS_CPP11 */ +#include <atomic> TAO_BEGIN_VERSIONED_NAMESPACE_DECL @@ -94,11 +90,7 @@ namespace CORBA private: /// Reference counter. -#if defined (ACE_HAS_CPP11) std::atomic<uint32_t> refcount_; -#else - ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> refcount_; -#endif /* ACE_HAS_CPP11 */ }; } // End CORBA namespace diff --git a/TAO/tao/Profile.h b/TAO/tao/Profile.h index c1d2f4ed21a..8bb9ccdcdcc 100644 --- a/TAO/tao/Profile.h +++ b/TAO/tao/Profile.h @@ -22,11 +22,7 @@ #include "tao/GIOP_Message_Version.h" #include "tao/Refcounted_ObjectKey.h" #include "tao/Service_Callbacks.h" -#if defined (ACE_HAS_CPP11) -# include <atomic> -#else -# include "ace/Atomic_Op.h" -#endif /* ACE_HAS_CPP11 */ +#include <atomic> ACE_BEGIN_VERSIONED_NAMESPACE_DECL class ACE_Lock; @@ -66,32 +62,32 @@ public: */ //@{ /// The tag, each concrete class will have a specific tag value. - CORBA::ULong tag (void) const; + CORBA::ULong tag () const; /// Return a pointer to this profile's version. This object /// maintains ownership. - const TAO_GIOP_Message_Version &version (void) const; + const TAO_GIOP_Message_Version &version () const; /// Get a pointer to the TAO_ORB_Core. - TAO_ORB_Core *orb_core (void) const; + TAO_ORB_Core *orb_core () const; /// Increase the reference count by one on this object. - unsigned long _incr_refcnt (void); + unsigned long _incr_refcnt (); /// Decrement the object's reference count. When this count goes to /// 0 this object will be deleted. - unsigned long _decr_refcnt (void); + unsigned long _decr_refcnt (); /// Keep a pointer to the forwarded profile void forward_to (TAO_MProfile *mprofiles); /// MProfile accessor - TAO_MProfile* forward_to (void); + TAO_MProfile* forward_to (); /// Access the tagged components, notice that they they could be /// empty (or ignored) for non-GIOP protocols (and even for GIOP-1.0) - const TAO_Tagged_Components& tagged_components (void) const; - TAO_Tagged_Components& tagged_components (void); + const TAO_Tagged_Components& tagged_components () const; + TAO_Tagged_Components& tagged_components (); /// Add the given tagged component to the profile. void add_tagged_component (const IOP::TaggedComponent &component); @@ -100,14 +96,14 @@ public: * Return the current addressing mode for this profile. * In almost all cases, this is TAO_Target_Specification::Key_Addr. */ - CORBA::Short addressing_mode (void) const; + CORBA::Short addressing_mode () const; /// @deprecated Return a reference to the Object Key. - const TAO::ObjectKey &object_key (void) const; + const TAO::ObjectKey &object_key () const; /// Obtain the object key, return 0 if the profile cannot be parsed. /// The memory is owned by the caller! - TAO::ObjectKey *_key (void) const; + TAO::ObjectKey *_key () const; //@} /** @@ -130,7 +126,7 @@ public: * return the reference to that. This method is necessary for GIOP * 1.2. */ - IOP::TaggedProfile *create_tagged_profile (void); + IOP::TaggedProfile *create_tagged_profile (); /// This method sets the client exposed policies, i.e., the ones /// propagated in the IOR, for this profile. @@ -140,10 +136,10 @@ public: virtual void get_policies (CORBA::PolicyList &policy_list); /// Returns true if this profile can specify multicast endpoints. - virtual int supports_multicast (void) const; + virtual int supports_multicast () const; /// Returns true if this profile supports non blocking oneways - virtual bool supports_non_blocking_oneways (void) const; + virtual bool supports_non_blocking_oneways () const; /** * Set the addressing mode if a remote servant replies with @@ -175,7 +171,7 @@ public: virtual void addressing_mode (CORBA::Short addr_mode); /// The object key delimiter. - virtual char object_key_delimiter (void) const = 0; + virtual char object_key_delimiter () const = 0; /// Initialize this object using the given input string. /// Supports URL style of object references @@ -184,14 +180,14 @@ public: /// Return a string representation for this profile. Client must /// deallocate memory. Only one endpoint is included into the /// string. - virtual char* to_string (void) const = 0; + virtual char* to_string () const = 0; /** * Encodes this profile's endpoints into a tagged component. * This is done only if RTCORBA is enabled, since currently this is * the only case when we have more than one endpoint per profile. */ - virtual int encode_endpoints (void) = 0; + virtual int encode_endpoints () = 0; /** * Encodes this profile's endpoints into protocol specific tagged @@ -199,14 +195,14 @@ public: * endpoints on profiles. The only known implementation is IIOP, using * TAG_ALTERNATE_IIOP_ADDRESS components. */ - virtual int encode_alternate_endpoints (void); + virtual int encode_alternate_endpoints (); /** * Return a pointer to this profile's endpoint. If the profile * contains more than one endpoint, i.e., a list, the method returns * the head of the list. */ - virtual TAO_Endpoint *endpoint (void) = 0; + virtual TAO_Endpoint *endpoint () = 0; /** @@ -219,17 +215,17 @@ public: * to facilitate the Endpoint Policy's filtering function. * The default implementation of base_endpoint simply returns endpoint. */ - virtual TAO_Endpoint *base_endpoint (void); + virtual TAO_Endpoint *base_endpoint (); /// Return how many endpoints this profile contains. - virtual CORBA::ULong endpoint_count (void) const = 0; + virtual CORBA::ULong endpoint_count () const = 0; /** * Return the first endpoint in the list that matches some filtering * constraint, such as IPv6 compatibility for IIOP endpoints. This * method is implemented in terms of TAO_Endpoint::next_filtered(). */ - TAO_Endpoint *first_filtered_endpoint (void); + TAO_Endpoint *first_filtered_endpoint (); /// Return the next filtered endpoint in the list after the one /// passed in. This method is implemented in terms of @@ -275,7 +271,7 @@ public: protected: /// If you have a virtual method you need a virtual dtor. - virtual ~TAO_Profile (void); + virtual ~TAO_Profile (); /** * @name Protected template methods. @@ -294,7 +290,7 @@ protected: * version of TAO or some other ORB. This is not an error, and we * must proceed. Return 0 on success and -1 on failure. */ - virtual int decode_endpoints (void) = 0; + virtual int decode_endpoints () = 0; /// Protocol specific implementation of parse_string () virtual void parse_string_i (const char *string) = 0; @@ -331,15 +327,15 @@ protected: private: /// This object keeps ownership of this object - TAO_MProfile *forward_to_i (void); + TAO_MProfile *forward_to_i (); /// Verify that the current ORB's configuration supports tagged /// components in IORs. - void verify_orb_configuration (void); + void verify_orb_configuration (); /// Verify that the given profile supports tagged components, /// i.e. is not a GIOP 1.0 profile. - void verify_profile_version (void); + void verify_profile_version (); // Profiles should not be copied or assigned! TAO_Profile (const TAO_Profile&); @@ -379,11 +375,7 @@ private: TAO_MProfile* forward_to_; /// Number of outstanding references to this object. -#if defined (ACE_HAS_CPP11) - std::atomic<uint32_t> refcount_; -#else - ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> refcount_; -#endif /* ACE_HAS_CPP11 */ + std::atomic<uint32_t> refcount_; /// A lock that protects creation of the tagged profile TAO_SYNCH_MUTEX tagged_profile_lock_; @@ -425,19 +417,19 @@ public: // = The TAO_Profile methods look above virtual void parse_string (const char *string); - virtual char object_key_delimiter (void) const; - virtual char* to_string (void) const; + virtual char object_key_delimiter () const; + virtual char* to_string () const; virtual int decode (TAO_InputCDR& cdr); virtual int encode (TAO_OutputCDR &stream) const; - virtual int encode_endpoints (void); + virtual int encode_endpoints (); - virtual TAO::ObjectKey *_key (void) const; - virtual TAO_Endpoint *endpoint (void); - virtual CORBA::ULong endpoint_count (void) const; + virtual TAO::ObjectKey *_key () const; + virtual TAO_Endpoint *endpoint (); + virtual CORBA::ULong endpoint_count () const; virtual CORBA::ULong hash (CORBA::ULong max); virtual int decode_profile (TAO_InputCDR &cdr); - virtual int decode_endpoints (void); + virtual int decode_endpoints (); protected: virtual CORBA::Boolean do_is_equivalent (const TAO_Profile* other_profile); diff --git a/TAO/tao/Profile_Transport_Resolver.h b/TAO/tao/Profile_Transport_Resolver.h index 98848a61bc4..22902e6fafe 100644 --- a/TAO/tao/Profile_Transport_Resolver.h +++ b/TAO/tao/Profile_Transport_Resolver.h @@ -73,7 +73,7 @@ namespace TAO TAO_Stub *stub, bool block = true); - ~Profile_Transport_Resolver (void); + ~Profile_Transport_Resolver (); /// Method where the bunch of the action takes place. /** @@ -95,16 +95,16 @@ namespace TAO void profile (TAO_Profile *pfile); /// Accessor for profile. - TAO_Profile *profile (void) const; + TAO_Profile *profile () const; /// Accessor for TAO_Stub - TAO_Stub *stub (void) const; + TAO_Stub *stub () const; /// Accessor for the target in use - CORBA::Object *object (void) const; + CORBA::Object *object () const; /// Accessor for the transport reserved for this invocation. - TAO_Transport *transport (void) const; + TAO_Transport *transport () const; /// See if the transport cache has an available transport and /// use that one rather than trying to connect via the connector. @@ -115,12 +115,12 @@ namespace TAO /// Accessor to indicate whether we should block while /// establishing a connection. - bool blocked_connect (void) const; + bool blocked_connect () const; //@} /// Signal to let the resolver know that the transport has been /// released back to the cache. - void transport_released (void) const; + void transport_released () const; /// This is a callback method used by the endpoint selectors to /// delegate the responsibility of reserving a transport from the @@ -139,15 +139,15 @@ namespace TAO /// This method wraps a call to the orb core to see if parallel /// connection attempts are even desired. This is controlled by /// the -ORBUseParallelConnects 1|0 commandline option. - bool use_parallel_connect (void) const; + bool use_parallel_connect () const; /// Initialize the inconsistent policy list that this object has /// cached. - void init_inconsistent_policies (void); + void init_inconsistent_policies (); - CORBA::PolicyList *inconsistent_policies (void) const; + CORBA::PolicyList *inconsistent_policies () const; - CORBA::PolicyList *steal_inconsistent_policies (void); + CORBA::PolicyList *steal_inconsistent_policies (); private: /// Helper method to access get the connection timeout from the diff --git a/TAO/tao/Protocols_Hooks.h b/TAO/tao/Protocols_Hooks.h index e7edfa9bc9d..3a8c76a844f 100644 --- a/TAO/tao/Protocols_Hooks.h +++ b/TAO/tao/Protocols_Hooks.h @@ -40,7 +40,7 @@ class TAO_Export TAO_IIOP_Protocol_Properties { public: - TAO_IIOP_Protocol_Properties (void); + TAO_IIOP_Protocol_Properties (); CORBA::Long send_buffer_size_; CORBA::Long recv_buffer_size_; @@ -55,7 +55,7 @@ class TAO_Export TAO_UIOP_Protocol_Properties { public: - TAO_UIOP_Protocol_Properties (void); + TAO_UIOP_Protocol_Properties (); CORBA::Long send_buffer_size_; CORBA::Long recv_buffer_size_; @@ -65,7 +65,7 @@ class TAO_Export TAO_SHMIOP_Protocol_Properties { public: - TAO_SHMIOP_Protocol_Properties (void); + TAO_SHMIOP_Protocol_Properties (); CORBA::Long send_buffer_size_; CORBA::Long recv_buffer_size_; @@ -81,7 +81,7 @@ class TAO_Export TAO_DIOP_Protocol_Properties { public: - TAO_DIOP_Protocol_Properties (void); + TAO_DIOP_Protocol_Properties (); CORBA::Long send_buffer_size_; CORBA::Long recv_buffer_size_; @@ -94,7 +94,7 @@ class TAO_Export TAO_SCIOP_Protocol_Properties { public: - TAO_SCIOP_Protocol_Properties (void); + TAO_SCIOP_Protocol_Properties (); CORBA::Long send_buffer_size_; CORBA::Long recv_buffer_size_; @@ -109,7 +109,7 @@ class TAO_Export TAO_Protocols_Hooks : public ACE_Service_Object { public: /// Destructor - virtual ~TAO_Protocols_Hooks (void); + virtual ~TAO_Protocols_Hooks (); /// Initialize the protocols hooks instance. virtual void init_hooks (TAO_ORB_Core *orb_core) = 0; @@ -152,7 +152,7 @@ public: virtual void client_protocol_properties_at_orb_level ( TAO_SCIOP_Protocol_Properties &protocol_properties) = 0; - virtual CORBA::Long get_dscp_codepoint (void) = 0; + virtual CORBA::Long get_dscp_codepoint () = 0; virtual void get_selector_hook (CORBA::Policy *model_policy, CORBA::Boolean &is_client_propagated, diff --git a/TAO/tao/Pseudo_VarOut_T.h b/TAO/tao/Pseudo_VarOut_T.h index 138cb64df7e..92d2bc07ca1 100644 --- a/TAO/tao/Pseudo_VarOut_T.h +++ b/TAO/tao/Pseudo_VarOut_T.h @@ -53,16 +53,16 @@ template <typename T> class TAO_Pseudo_Var_T : private TAO_Base_var { public: - TAO_Pseudo_Var_T (void); + TAO_Pseudo_Var_T (); TAO_Pseudo_Var_T (typename T::_ptr_type); TAO_Pseudo_Var_T (const TAO_Pseudo_Var_T<T> &); - ~TAO_Pseudo_Var_T (void); + ~TAO_Pseudo_Var_T (); TAO_Pseudo_Var_T<T> & operator= (typename T::_ptr_type); TAO_Pseudo_Var_T<T> & operator= (const TAO_Pseudo_Var_T<T> &); - typename T::_ptr_type operator-> (void) const; + typename T::_ptr_type operator-> () const; operator typename T::_ptr_type const & () const; operator typename T::_ptr_type & (); @@ -72,13 +72,13 @@ public: typedef typename T::_ptr_type & _out_type; typedef typename T::_ptr_type _retn_type; - _in_type in (void) const; - _inout_type inout (void); - _out_type out (void); - _retn_type _retn (void); + _in_type in () const; + _inout_type inout (); + _out_type out (); + _retn_type _retn (); // TAO extension. - _retn_type ptr (void) const; + _retn_type ptr () const; private: // Unimplemented - prevents widening assignment. @@ -109,8 +109,8 @@ public: TAO_Pseudo_Out_T<T> & operator= (typename T::_ptr_type); operator typename T::_ptr_type & (); - typename T::_ptr_type & ptr (void); - typename T::_ptr_type operator-> (void); + typename T::_ptr_type & ptr (); + typename T::_ptr_type operator-> (); private: typename T::_ptr_type & ptr_; diff --git a/TAO/tao/Queued_Data.h b/TAO/tao/Queued_Data.h index e7654cd1f75..ee3b6969cc2 100644 --- a/TAO/tao/Queued_Data.h +++ b/TAO/tao/Queued_Data.h @@ -69,34 +69,34 @@ public: /// Consolidate this fragments chained message blocks into one. /// @return -1 if consolidation failed, eg out or memory, otherwise 0 - int consolidate (void); + int consolidate (); /// Get missing data - size_t missing_data (void) const; + size_t missing_data () const; /// Set missing data void missing_data (size_t data); /// Get the GIOP version - TAO_GIOP_Message_Version const &giop_version (void) const; + TAO_GIOP_Message_Version const &giop_version () const; /// Get byte_order - CORBA::Octet byte_order (void) const; + CORBA::Octet byte_order () const; /// Get more fragments - CORBA::Boolean more_fragments (void) const; + CORBA::Boolean more_fragments () const; /// Get message type - GIOP::MsgType msg_type (void) const; + GIOP::MsgType msg_type () const; /// Get next - TAO_Queued_Data *next (void) const; + TAO_Queued_Data *next () const; /// Set next void next (TAO_Queued_Data* qd); /// Get message block - ACE_Message_Block *msg_block (void) const; + ACE_Message_Block *msg_block () const; /// Set message block void msg_block (ACE_Message_Block *mb); @@ -105,7 +105,7 @@ public: void state (const TAO_GIOP_Message_State& state); /// Get the state - const TAO_GIOP_Message_State& state (void) const; + const TAO_GIOP_Message_State& state () const; private: diff --git a/TAO/tao/RTCORBA/Thread_Pool.cpp b/TAO/tao/RTCORBA/Thread_Pool.cpp index 622de35c11e..4648487aab2 100644 --- a/TAO/tao/RTCORBA/Thread_Pool.cpp +++ b/TAO/tao/RTCORBA/Thread_Pool.cpp @@ -890,11 +890,7 @@ RTCORBA::ThreadpoolId TAO_Thread_Pool_Manager::create_threadpool_helper (TAO_Thread_Pool *thread_pool) { // Make sure of safe deletion in case of errors. -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO_Thread_Pool> safe_thread_pool (thread_pool); -#else - auto_ptr<TAO_Thread_Pool> safe_thread_pool (thread_pool); -#endif /* ACE_HAS_CPP11 */ // Open the pool. thread_pool->open (); diff --git a/TAO/tao/RTScheduling/Current.cpp b/TAO/tao/RTScheduling/Current.cpp index 53ea0dd8886..c8735b4bb16 100644 --- a/TAO/tao/RTScheduling/Current.cpp +++ b/TAO/tao/RTScheduling/Current.cpp @@ -11,7 +11,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -ACE_Atomic_Op<TAO_SYNCH_MUTEX, long> TAO_RTScheduler_Current::guid_counter; +std::atomic<long> TAO_RTScheduler_Current::guid_counter; u_long TAO_DTId_Hash::operator () (const IdType &id) const diff --git a/TAO/tao/RTScheduling/Current.h b/TAO/tao/RTScheduling/Current.h index f941512b9de..4edf9c5ceb9 100644 --- a/TAO/tao/RTScheduling/Current.h +++ b/TAO/tao/RTScheduling/Current.h @@ -78,7 +78,7 @@ class TAO_RTScheduler_Export TAO_RTScheduler_Current public ::CORBA::LocalObject { public: - static ACE_Atomic_Op<TAO_SYNCH_MUTEX, long> guid_counter; + static std::atomic<long> guid_counter; TAO_RTScheduler_Current (void); virtual ~TAO_RTScheduler_Current (void); diff --git a/TAO/tao/RTScheduling/Request_Interceptor.cpp b/TAO/tao/RTScheduling/Request_Interceptor.cpp index 985e219d14a..e27c5b49172 100644 --- a/TAO/tao/RTScheduling/Request_Interceptor.cpp +++ b/TAO/tao/RTScheduling/Request_Interceptor.cpp @@ -53,7 +53,7 @@ Client_Interceptor::send_request (PortableInterceptor::ClientRequestInfo_ptr ri) TAOLIB_DEBUG ((LM_DEBUG, "The Guid is %d %d\n", id, - TAO_RTScheduler_Current::guid_counter.value_i ())); + TAO_RTScheduler_Current::guid_counter.load ())); // Create new DT. RTScheduling::DistributableThread_var dt = diff --git a/TAO/tao/RTScheduling/Request_Interceptor.h b/TAO/tao/RTScheduling/Request_Interceptor.h index 48bfe663054..879d73a7876 100644 --- a/TAO/tao/RTScheduling/Request_Interceptor.h +++ b/TAO/tao/RTScheduling/Request_Interceptor.h @@ -13,7 +13,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -extern ACE_Atomic_Op<TAO_SYNCH_MUTEX, long> server_guid_counter; +extern std::atomic<long> server_guid_counter; class TAO_RTScheduler_Export Client_Interceptor: public PortableInterceptor::ClientRequestInterceptor, diff --git a/TAO/tao/Refcounted_ObjectKey.h b/TAO/tao/Refcounted_ObjectKey.h index 96142a512d6..29eb3ab6030 100644 --- a/TAO/tao/Refcounted_ObjectKey.h +++ b/TAO/tao/Refcounted_ObjectKey.h @@ -42,20 +42,20 @@ namespace TAO Refcounted_ObjectKey (const ObjectKey &ref); /// Accessor for the underlying ObjectKey. - const ObjectKey &object_key (void) const; + const ObjectKey &object_key () const; protected: friend class ObjectKey_Table; /// Protected destructor - ~Refcounted_ObjectKey (void); + ~Refcounted_ObjectKey (); /// Methods for incrementing refcount. - void incr_refcount (void); + void incr_refcount (); /// Methods for decrementing refcount. Return the refcount, used by the /// ObjectKey table. - CORBA::ULong decr_refcount (void); + CORBA::ULong decr_refcount (); private: /// The object key diff --git a/TAO/tao/Reply_Dispatcher.cpp b/TAO/tao/Reply_Dispatcher.cpp index 230b4c623e1..93c08198894 100644 --- a/TAO/tao/Reply_Dispatcher.cpp +++ b/TAO/tao/Reply_Dispatcher.cpp @@ -36,8 +36,8 @@ TAO_Reply_Dispatcher::intrusive_remove_ref (TAO_Reply_Dispatcher* rd) { if (rd != nullptr) { - long const tmp = --rd->refcount_; - if (tmp <= 0) + uint32_t const tmp = --rd->refcount_; + if (tmp == 0) { if (rd->allocator_) { diff --git a/TAO/tao/Reply_Dispatcher.h b/TAO/tao/Reply_Dispatcher.h index 949bf0dfccd..0b6c39a311d 100644 --- a/TAO/tao/Reply_Dispatcher.h +++ b/TAO/tao/Reply_Dispatcher.h @@ -60,7 +60,7 @@ public: TAO_Reply_Dispatcher (ACE_Allocator *allocator = 0); /// Destructor. - virtual ~TAO_Reply_Dispatcher (void); + virtual ~TAO_Reply_Dispatcher (); /** * Dispatch the reply. Return 1 on sucess, -1 on error. @@ -74,7 +74,7 @@ public: virtual int dispatch_reply (TAO_Pluggable_Reply_Params ¶ms) = 0; /// Inform that the reply timed out - virtual void reply_timed_out (void) = 0; + virtual void reply_timed_out () = 0; /** * The used for the pending reply has been closed. @@ -84,12 +84,12 @@ public: * the exception, it would a matter of simply adding a boolean * argument to this function. */ - virtual void connection_closed (void) = 0; + virtual void connection_closed () = 0; /// Get the locate reply status. - GIOP::LocateStatusType locate_reply_status (void) const; + GIOP::LocateStatusType locate_reply_status () const; - GIOP::ReplyStatusType reply_status (void) const; + GIOP::ReplyStatusType reply_status () const; static void intrusive_add_ref (TAO_Reply_Dispatcher*); static void intrusive_remove_ref (TAO_Reply_Dispatcher*); @@ -103,7 +103,7 @@ protected: private: /// Support for intrusive reference counting - ACE_Atomic_Op<TAO_SYNCH_MUTEX, long> refcount_; + std::atomic<uint32_t> refcount_; /// Allocator that was used to allocate this reply dispatcher. In case of /// zero we come from the heap. diff --git a/TAO/tao/Reply_Dispatcher.inl b/TAO/tao/Reply_Dispatcher.inl index 14e89c247a8..c00cb49c567 100644 --- a/TAO/tao/Reply_Dispatcher.inl +++ b/TAO/tao/Reply_Dispatcher.inl @@ -3,13 +3,13 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE GIOP::LocateStatusType -TAO_Reply_Dispatcher::locate_reply_status (void) const +TAO_Reply_Dispatcher::locate_reply_status () const { return this->locate_reply_status_; } ACE_INLINE GIOP::ReplyStatusType -TAO_Reply_Dispatcher::reply_status (void) const +TAO_Reply_Dispatcher::reply_status () const { return this->reply_status_; } diff --git a/TAO/tao/RequestInterceptor_Adapter.h b/TAO/tao/RequestInterceptor_Adapter.h index 8ea064cf865..3a85af71c63 100644 --- a/TAO/tao/RequestInterceptor_Adapter.h +++ b/TAO/tao/RequestInterceptor_Adapter.h @@ -35,9 +35,9 @@ namespace TAO class TAO_Export RequestInterceptor_Adapter { public: - virtual ~RequestInterceptor_Adapter (void); + virtual ~RequestInterceptor_Adapter (); - virtual void destroy_interceptors (void) = 0; + virtual void destroy_interceptors () = 0; virtual void popTSC (TAO_ORB_Core *orb_core_) = 0; virtual void pushTSC (TAO_ORB_Core *orb_core_) = 0; diff --git a/TAO/tao/Resource_Factory.h b/TAO/tao/Resource_Factory.h index 40c96ebbdd8..ab672ad3aec 100644 --- a/TAO/tao/Resource_Factory.h +++ b/TAO/tao/Resource_Factory.h @@ -58,23 +58,23 @@ public: /// Destructor that deallocates the factory object if the /// Protocol_Item retains ownership. - ~TAO_Protocol_Item (void); + ~TAO_Protocol_Item (); /// Return a reference to the character representation of the protocol /// factories name. - const ACE_CString &protocol_name (void); + const ACE_CString &protocol_name (); /// Return a pointer to the protocol factory. - TAO_Protocol_Factory *factory (void); + TAO_Protocol_Factory *factory (); /// Set the factory pointer's value. void factory (TAO_Protocol_Factory *factory, int owner = 0); private: - - // Disallow copying and assignment. - TAO_Protocol_Item (const TAO_Protocol_Item&); - void operator= (const TAO_Protocol_Item&); + TAO_Protocol_Item (const TAO_Protocol_Item&) = delete; + void operator= (const TAO_Protocol_Item&) = delete; + TAO_Protocol_Item (TAO_Protocol_Item&&) = delete; + void operator= (TAO_Protocol_Item&&) = delete; private: /// Protocol factory name. @@ -133,52 +133,52 @@ public: TAO_LAZY }; - TAO_Resource_Factory (void); - virtual ~TAO_Resource_Factory (void); + TAO_Resource_Factory (); + virtual ~TAO_Resource_Factory (); // = Resource Retrieval /// @@ Backwards compatibility, return 1 if the ORB core should use /// Locked_Data_Blocks - virtual int use_locked_data_blocks (void) const; + virtual int use_locked_data_blocks () const; /// Return an ACE_Reactor to be utilized. - virtual ACE_Reactor *get_reactor (void); + virtual ACE_Reactor *get_reactor (); /// Reclaim reactor resources (e.g. deallocate, etc). virtual void reclaim_reactor (ACE_Reactor *reactor); /// Return a reference to the acceptor registry. - virtual TAO_Acceptor_Registry *get_acceptor_registry (void); + virtual TAO_Acceptor_Registry *get_acceptor_registry (); /// Return a connector to be utilized. - virtual TAO_Connector_Registry *get_connector_registry (void); + virtual TAO_Connector_Registry *get_connector_registry (); /// Return the Allocator's memory pool type virtual void use_local_memory_pool (bool); /// @name Access the input CDR allocators. //@{ - virtual ACE_Allocator* input_cdr_dblock_allocator (void); - virtual ACE_Allocator* input_cdr_buffer_allocator (void); - virtual ACE_Allocator* input_cdr_msgblock_allocator (void); + virtual ACE_Allocator* input_cdr_dblock_allocator (); + virtual ACE_Allocator* input_cdr_buffer_allocator (); + virtual ACE_Allocator* input_cdr_msgblock_allocator (); //@} // Return 1 when the input CDR allocator uses a lock else 0. - virtual int input_cdr_allocator_type_locked (void); + virtual int input_cdr_allocator_type_locked (); /// @name Access the output CDR allocators. //@{ - virtual ACE_Allocator* output_cdr_dblock_allocator (void); - virtual ACE_Allocator* output_cdr_buffer_allocator (void); - virtual ACE_Allocator* output_cdr_msgblock_allocator (void); + virtual ACE_Allocator* output_cdr_dblock_allocator (); + virtual ACE_Allocator* output_cdr_buffer_allocator (); + virtual ACE_Allocator* output_cdr_msgblock_allocator (); //@} /// Access the AMH response handler allocator - virtual ACE_Allocator* amh_response_handler_allocator (void); + virtual ACE_Allocator* amh_response_handler_allocator (); /// Access the AMI response handler allocator - virtual ACE_Allocator* ami_response_handler_allocator (void); + virtual ACE_Allocator* ami_response_handler_allocator (); /** * The protocol factory list is implemented in this class since @@ -186,7 +186,7 @@ public: * b) it is initialized at start up and then not altered. * Returns a container holding the list of loaded protocols. */ - virtual TAO_ProtocolFactorySet *get_protocol_factories (void); + virtual TAO_ProtocolFactorySet *get_protocol_factories (); /** * This method will loop through the protocol list and @@ -196,43 +196,43 @@ public: * that only one thread will call this method at ORB initialization. * NON-THREAD-SAFE */ - virtual int init_protocol_factories (void); + virtual int init_protocol_factories (); /// Gets the codeset manager. - virtual TAO_Codeset_Manager* codeset_manager (void); + virtual TAO_Codeset_Manager* codeset_manager (); /// This denotes the maximum number of connections that can be cached. - virtual int cache_maximum (void) const; + virtual int cache_maximum () const; /// This denotes the amount of entries to remove from the connection /// cache. - virtual int purge_percentage (void) const; + virtual int purge_percentage () const; /// Return the number of muxed connections that are allowed for a /// remote endpoint - virtual int max_muxed_connections (void) const; + virtual int max_muxed_connections () const; virtual int get_parser_names (char **&names, int &number_of_names); /// Creates the lock for the lock needed in the Cache Map /// @deprecated - virtual ACE_Lock *create_cached_connection_lock (void); + virtual ACE_Lock *create_cached_connection_lock (); /// Should the transport cache have a lock or not? Return 1 if the /// transport cache needs to be locked else return 0 - virtual int locked_transport_cache (void); + virtual int locked_transport_cache (); /// Creates the flushing strategy. The new instance is owned by the /// caller. - virtual TAO_Flushing_Strategy *create_flushing_strategy (void) = 0; + virtual TAO_Flushing_Strategy *create_flushing_strategy () = 0; /// Creates the connection purging strategy. - virtual TAO_Connection_Purging_Strategy *create_purging_strategy (void) = 0; + virtual TAO_Connection_Purging_Strategy *create_purging_strategy () = 0; /// Creates the leader followers strategy. The new instance is owned by the /// caller. - virtual TAO_LF_Strategy *create_lf_strategy (void) = 0; + virtual TAO_LF_Strategy *create_lf_strategy () = 0; /// Outgoing fragment creation strategy. virtual TAO_GIOP_Fragmentation_Strategy* @@ -243,12 +243,12 @@ public: /// this function should be called on the previously used (default) /// factory. This should result in proper error reporting if the /// user attempts to set options on an unused factory. - virtual void disable_factory (void) = 0; + virtual void disable_factory () = 0; /// Return the resource usage strategy. virtual TAO_Resource_Factory::Resource_Usage - resource_usage_strategy (void) const = 0; + resource_usage_strategy () const = 0; /// Return the value of the strategy that indicates whether /// the ORB should wait for the replies during shutdown or drop @@ -261,7 +261,7 @@ protected: * advanced_resource.cpp can call the one in default_resource.cpp * without calling unnecessary functions. */ - virtual int load_default_protocols (void); + virtual int load_default_protocols (); }; diff --git a/TAO/tao/Seq_Out_T.h b/TAO/tao/Seq_Out_T.h index 693b5508b24..e677d4e505e 100644 --- a/TAO/tao/Seq_Out_T.h +++ b/TAO/tao/Seq_Out_T.h @@ -42,10 +42,10 @@ public: TAO_Seq_Out_T &operator= (T *); operator T *& (); - T * operator-> (void); + T * operator-> (); T_elem operator[] (CORBA::ULong index); - T *& ptr (void); + T *& ptr (); private: T *& ptr_; diff --git a/TAO/tao/Seq_Var_T.h b/TAO/tao/Seq_Var_T.h index 45cb0491254..7596db9730a 100644 --- a/TAO/tao/Seq_Var_T.h +++ b/TAO/tao/Seq_Var_T.h @@ -34,14 +34,14 @@ class TAO_Seq_Var_Base_T public: typedef typename T::subscript_type T_elem; - TAO_Seq_Var_Base_T (void); + TAO_Seq_Var_Base_T (); TAO_Seq_Var_Base_T (T *); TAO_Seq_Var_Base_T (const TAO_Seq_Var_Base_T<T> &); - ~TAO_Seq_Var_Base_T (void); + ~TAO_Seq_Var_Base_T (); - T *operator-> (void); - const T *operator-> (void) const; + T *operator-> (); + const T *operator-> () const; operator const T & () const; operator T & (); @@ -53,13 +53,13 @@ public: typedef T * _retn_type; // in, inout, out, _retn - _in_type in (void) const; - _inout_type inout (void); - _out_type out (void); - _retn_type _retn (void); + _in_type in () const; + _inout_type inout (); + _out_type out (); + _retn_type _retn (); /// TAO extension. - _retn_type ptr (void) const; + _retn_type ptr () const; protected: T * ptr_; @@ -78,7 +78,7 @@ public: typedef typename T::subscript_type T_elem; typedef typename T::const_subscript_type T_const_elem; - TAO_FixedSeq_Var_T (void); + TAO_FixedSeq_Var_T (); TAO_FixedSeq_Var_T (T *); TAO_FixedSeq_Var_T (const TAO_FixedSeq_Var_T<T> &); @@ -108,7 +108,7 @@ public: typedef typename T::subscript_type T_elem; typedef typename T::const_subscript_type T_const_elem; - TAO_VarSeq_Var_T (void); + TAO_VarSeq_Var_T (); TAO_VarSeq_Var_T (T *); TAO_VarSeq_Var_T (const TAO_VarSeq_Var_T<T> &); diff --git a/TAO/tao/ServerRequestInterceptor_Adapter.h b/TAO/tao/ServerRequestInterceptor_Adapter.h index 9c2c354d595..d4d36949cad 100644 --- a/TAO/tao/ServerRequestInterceptor_Adapter.h +++ b/TAO/tao/ServerRequestInterceptor_Adapter.h @@ -66,7 +66,7 @@ namespace TAO : public RequestInterceptor_Adapter { public: - virtual ~ServerRequestInterceptor_Adapter (void); + virtual ~ServerRequestInterceptor_Adapter (); /** * @name PortableInterceptor Server Side Interception Points @@ -153,7 +153,7 @@ namespace TAO PortableInterceptor::ServerRequestInterceptor_ptr interceptor, const CORBA::PolicyList& policies) = 0; - virtual TAO::PICurrent_Impl *allocate_pi_current (void) = 0; + virtual TAO::PICurrent_Impl *allocate_pi_current () = 0; virtual void deallocate_pi_current (TAO::PICurrent_Impl *picurrent) = 0; diff --git a/TAO/tao/ServerRequestInterceptor_Adapter_Factory.h b/TAO/tao/ServerRequestInterceptor_Adapter_Factory.h index 9f0337c6e67..945ef4c9163 100644 --- a/TAO/tao/ServerRequestInterceptor_Adapter_Factory.h +++ b/TAO/tao/ServerRequestInterceptor_Adapter_Factory.h @@ -38,9 +38,9 @@ class TAO_Export TAO_ServerRequestInterceptor_Adapter_Factory : public ACE_Service_Object { public: - virtual ~TAO_ServerRequestInterceptor_Adapter_Factory (void); + virtual ~TAO_ServerRequestInterceptor_Adapter_Factory (); - virtual TAO::ServerRequestInterceptor_Adapter * create (void) = 0; + virtual TAO::ServerRequestInterceptor_Adapter * create () = 0; }; TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/tao/Server_Strategy_Factory.h b/TAO/tao/Server_Strategy_Factory.h index c168c92acea..88a4491ffa6 100644 --- a/TAO/tao/Server_Strategy_Factory.h +++ b/TAO/tao/Server_Strategy_Factory.h @@ -49,7 +49,7 @@ public: struct Active_Object_Map_Creation_Parameters { /// Constructor. - Active_Object_Map_Creation_Parameters (void); + Active_Object_Map_Creation_Parameters (); /// Default size of object lookup table. CORBA::ULong active_object_map_size_; @@ -85,10 +85,10 @@ public: }; /// Constructor. - TAO_Server_Strategy_Factory (void); + TAO_Server_Strategy_Factory (); /// Destructor. - virtual ~TAO_Server_Strategy_Factory(void); + virtual ~TAO_Server_Strategy_Factory(); /** * Call <open> on various strategies. This is not performed in @@ -99,7 +99,7 @@ public: virtual int open (TAO_ORB_Core* orb_core) = 0; /// Are server connections active (i.e. run in their own thread) - virtual int activate_server_connections (void) = 0; + virtual int activate_server_connections () = 0; /** * Obtain the timeout value used by the thread-per-connection server @@ -111,13 +111,13 @@ public: virtual int thread_per_connection_timeout (ACE_Time_Value &timeout) = 0; /// The thread activation parameters - virtual int server_connection_thread_flags (void) = 0; - virtual int server_connection_thread_count (void) = 0; + virtual int server_connection_thread_flags () = 0; + virtual int server_connection_thread_count () = 0; /// Return the active object map creation parameters. virtual const Active_Object_Map_Creation_Parameters & - active_object_map_creation_parameters (void) const; + active_object_map_creation_parameters () const; protected: /// Active object map creation parameters. diff --git a/TAO/tao/Service_Callbacks.h b/TAO/tao/Service_Callbacks.h index 1fd5c281e78..5eddb99847f 100644 --- a/TAO/tao/Service_Callbacks.h +++ b/TAO/tao/Service_Callbacks.h @@ -67,7 +67,7 @@ public: }; /// Dtor - virtual ~TAO_Service_Callbacks (void); + virtual ~TAO_Service_Callbacks (); /// Select the profile from MProfile as the needs of the services /// may be. Return the profile in @a pfile diff --git a/TAO/tao/Service_Context.h b/TAO/tao/Service_Context.h index 6232de26ba3..fc1668c4125 100644 --- a/TAO/tao/Service_Context.h +++ b/TAO/tao/Service_Context.h @@ -64,7 +64,7 @@ public: friend class TAO::CSD::FW_Server_Request_Wrapper; /// Constructor - TAO_Service_Context (void); + TAO_Service_Context (); /// = Generic components @@ -118,12 +118,12 @@ public: int decode (TAO_InputCDR& cdr); /// Return the underlying service context list - IOP::ServiceContextList &service_info (void); + IOP::ServiceContextList &service_info (); /// @note This method is only for backward comptiblity. We /// need to get this removed once RT folks have their service /// addition info done through this interface - const IOP::ServiceContextList &service_info (void) const; + const IOP::ServiceContextList &service_info () const; private: /// Helper methods to implement set_context() diff --git a/TAO/tao/Service_Context_Handler_Registry.h b/TAO/tao/Service_Context_Handler_Registry.h index 90295c80123..86277a13fd6 100644 --- a/TAO/tao/Service_Context_Handler_Registry.h +++ b/TAO/tao/Service_Context_Handler_Registry.h @@ -35,7 +35,7 @@ class TAO_Export TAO_Service_Context_Registry public: /// Destructor - ~TAO_Service_Context_Registry (void); + ~TAO_Service_Context_Registry (); /** * Bind a new entry in the registry diff --git a/TAO/tao/Special_Basic_Argument_T.h b/TAO/tao/Special_Basic_Argument_T.h index 03f6ac34ec2..47b72cabd25 100644 --- a/TAO/tao/Special_Basic_Argument_T.h +++ b/TAO/tao/Special_Basic_Argument_T.h @@ -43,7 +43,7 @@ namespace TAO #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S const & arg (void) const; + S const & arg () const; protected: S const & x_; @@ -63,9 +63,9 @@ namespace TAO { public: In_Special_Basic_Clonable_Argument_T (S const &); - virtual ~In_Special_Basic_Clonable_Argument_T (void); + virtual ~In_Special_Basic_Clonable_Argument_T (); - virtual Argument* clone (void); + virtual Argument* clone (); private: bool is_clone_; @@ -90,7 +90,7 @@ namespace TAO #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S & arg (void); + S & arg (); private: S & x_; @@ -114,7 +114,7 @@ namespace TAO #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S & arg (void); + S & arg (); private: S & x_; @@ -132,16 +132,16 @@ namespace TAO class Ret_Special_Basic_Argument_T : public RetArgument { public: - Ret_Special_Basic_Argument_T (void); + Ret_Special_Basic_Argument_T (); virtual CORBA::Boolean demarshal (TAO_InputCDR &); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S & arg (void); + S & arg (); - S excp (void); - S retn (void); + S excp (); + S retn (); private: S x_; diff --git a/TAO/tao/String_Const_Sequence_Element_T.h b/TAO/tao/String_Const_Sequence_Element_T.h index d9837cfdee1..d0a2d3c9f1d 100644 --- a/TAO/tao/String_Const_Sequence_Element_T.h +++ b/TAO/tao/String_Const_Sequence_Element_T.h @@ -51,7 +51,7 @@ public: return *this->element_; } - inline const character_type *in (void) const + inline const character_type *in () const { return *this->element_; } diff --git a/TAO/tao/String_Manager_T.h b/TAO/tao/String_Manager_T.h index 2a596187c52..9a0905bff57 100644 --- a/TAO/tao/String_Manager_T.h +++ b/TAO/tao/String_Manager_T.h @@ -39,7 +39,7 @@ public: typedef TAO::details::string_traits_base <charT> s_traits; /// Default CTOR will initialize the underlying ptr_ to empty string. - inline String_Manager_T (void) : ptr_ (s_traits::default_initializer()) + inline String_Manager_T () : ptr_ (s_traits::default_initializer()) { } @@ -56,7 +56,7 @@ public: } /// Destructor - inline ~String_Manager_T (void) { + inline ~String_Manager_T () { s_traits::release (this->ptr_); } @@ -101,24 +101,24 @@ public: } /// For in parameter. - inline const character_type *in (void) const { + inline const character_type *in () const { return this->ptr_; } /// For inout parameter. - inline character_type *&inout (void) { + inline character_type *&inout () { return this->ptr_; } /// for out parameter. - inline character_type *&out (void) { + inline character_type *&out () { s_traits::release (this->ptr_); this->ptr_ = 0; return this->ptr_; } /// For string of return type. - inline character_type *_retn (void) { + inline character_type *_retn () { character_type *temp = this->ptr_; this->ptr_ = 0; return temp; diff --git a/TAO/tao/String_Sequence_Element_T.h b/TAO/tao/String_Sequence_Element_T.h index b408e1c1685..1905bba57ad 100644 --- a/TAO/tao/String_Sequence_Element_T.h +++ b/TAO/tao/String_Sequence_Element_T.h @@ -96,15 +96,15 @@ public: return *this->element_; } - inline const character_type *in (void) const { + inline const character_type *in () const { return *this->element_; } - inline character_type *&inout (void) const { + inline character_type *&inout () const { return *this->element_; } - inline string_out out (void) const { + inline string_out out () const { if (release()) { @@ -114,7 +114,7 @@ public: return *this->element_; } - inline character_type *_retn (void) { + inline character_type *_retn () { character_type * copy = *this->element_; *this->element_ = traits::default_initializer(); return copy; diff --git a/TAO/tao/Stub.cpp b/TAO/tao/Stub.cpp index 1be51e3c49c..c132daaeef9 100644 --- a/TAO/tao/Stub.cpp +++ b/TAO/tao/Stub.cpp @@ -456,11 +456,7 @@ TAO_Stub::set_policy_overrides (const CORBA::PolicyList & policies, CORBA::SetOverrideType set_add) { // Notice the use of an explicit constructor.... -#if defined (ACE_HAS_CPP11) std::unique_ptr<TAO_Policy_Set> policy_manager (new TAO_Policy_Set (TAO_POLICY_OBJECT_SCOPE)); -#else - auto_ptr<TAO_Policy_Set> policy_manager (new TAO_Policy_Set (TAO_POLICY_OBJECT_SCOPE)); -#endif /* ACE_HAS_CPP11 */ if (set_add == CORBA::SET_OVERRIDE) { diff --git a/TAO/tao/Stub.h b/TAO/tao/Stub.h index a2b56708493..de3020ed58c 100644 --- a/TAO/tao/Stub.h +++ b/TAO/tao/Stub.h @@ -22,11 +22,7 @@ #include "tao/MProfile.h" #include "tao/ORB_Core_Auto_Ptr.h" -#if defined (ACE_HAS_CPP11) -# include <atomic> -#else -# include "ace/Atomic_Op.h" -#endif /* ACE_HAS_CPP11 */ +#include <atomic> #if defined (HPUX) && defined (IOR) /* HP-UX 11.11 defines IOR in /usr/include/pa/inline.h @@ -89,7 +85,7 @@ public: /// Return the queueing strategy to be used in by the transport. /// Selection will be based on the SyncScope policies. - TAO::Transport_Queueing_Strategy *transport_queueing_strategy (void); + TAO::Transport_Queueing_Strategy *transport_queueing_strategy (); /// All objref representations carry around a type ID. CORBA::String_var type_id; @@ -114,39 +110,39 @@ public: TAO_ORB_Core *orb_core); // = Memory management. - void _incr_refcnt (void); - void _decr_refcnt (void); + void _incr_refcnt (); + void _decr_refcnt (); /// Return the Profile lock. This lock can be used at places where /// profiles need to be edited. - const TAO_SYNCH_MUTEX& profile_lock (void) const; + const TAO_SYNCH_MUTEX& profile_lock () const; /// Manage the base (non-forwarded) profiles. /// Returns a pointer to the profile_in_use object. This object /// retains ownership of this profile. - TAO_Profile *profile_in_use (void); + TAO_Profile *profile_in_use (); /// Return the ObjectKey - const TAO::ObjectKey &object_key (void) const; + const TAO::ObjectKey &object_key () const; /** * Copy of the profile list, user must free memory when done. * although the user can call make_profiles() then reorder * the list and give it back to TAO_Stub. */ - TAO_MProfile *make_profiles (void); + TAO_MProfile *make_profiles (); /// Obtain a reference to the basic profile set. - const TAO_MProfile& base_profiles (void) const; + const TAO_MProfile& base_profiles () const; /// Obtain a reference to the basic profile set. - TAO_MProfile& base_profiles (void); + TAO_MProfile& base_profiles (); /// Obtain a pointer to the forwarded profile set - const TAO_MProfile *forward_profiles (void) const; + const TAO_MProfile *forward_profiles () const; /// Obtain a pointer to the forwarded profile set - TAO_MProfile *forward_profiles (void); + TAO_MProfile *forward_profiles (); /// True if permanent location forward occurred, in this case the lock must be set and the @@ -159,7 +155,7 @@ public: * profile_in_use_ is set to the first profile in the base_profiles * list. */ - TAO_Profile *next_profile (void); + TAO_Profile *next_profile (); /** * THREAD SAFE @@ -167,23 +163,23 @@ public: * profile and if there are anmy existing forward profiles they are * reset. */ - void reset_profiles (void); + void reset_profiles (); /// Returns true if the profile in use is /// the same as the profile in use after /// reset_profiles() is called. - CORBA::Boolean at_starting_profile (void) const; + CORBA::Boolean at_starting_profile () const; /// Returns true if a forward profile has successfully been used. /// profile_success_ && forward_profiles_ - CORBA::Boolean valid_forward_profile (void); + CORBA::Boolean valid_forward_profile (); /// NON-THREAD-SAFE. Will set profile_success_ to true. - void set_valid_profile (void); + void set_valid_profile (); /// Returns true if a connection was successful with at least /// one profile. - CORBA::Boolean valid_profile (void) const; + CORBA::Boolean valid_profile () const; /// Initialize the base_profiles_ and set profile_in_use_ to /// reference the first profile. @@ -207,22 +203,22 @@ public: * Used to get the next profile after the one being used has * failed during the initial connect or send of the message! */ - CORBA::Boolean next_profile_retry (void); + CORBA::Boolean next_profile_retry (); /// Accessor. - TAO_ORB_Core* orb_core (void) const; + TAO_ORB_Core* orb_core () const; /// Is this stub collocated with the servant? - CORBA::Boolean is_collocated (void) const; + CORBA::Boolean is_collocated () const; /// Mutator to mark this stub as being collocated with the servant. void is_collocated (CORBA::Boolean); /// This returns a duplicated ORB pointer. - CORBA::ORB_ptr servant_orb_ptr (void); + CORBA::ORB_ptr servant_orb_ptr (); /// This returns the ORB var itself (generally for temporary use). - CORBA::ORB_var &servant_orb_var (void); + CORBA::ORB_var &servant_orb_var (); /** * Accesor and mutator for the servant ORB. Notice that the mutator @@ -236,7 +232,7 @@ public: void collocated_servant (TAO_Abstract_ServantBase* servant); /// Accessor for the servant reference in collocated cases. - TAO_Abstract_ServantBase* collocated_servant (void) const; + TAO_Abstract_ServantBase* collocated_servant () const; /// Mutator for setting the object proxy broker pointer. /// CORBA::Objects using this stub will use this for standard calls @@ -246,7 +242,7 @@ public: /// Accessor for getting the object proxy broker pointer. /// CORBA::Objects using this stub use this for standard calls /// like is_a; get_interface; etc... - TAO::Object_Proxy_Broker *object_proxy_broker (void) const; + TAO::Object_Proxy_Broker *object_proxy_broker () const; /** * Create the IOP::IOR info. We will create the info at most once. @@ -259,14 +255,14 @@ public: * This method is intended to be used only by the CORBA::Object * class. */ - void destroy (void); + void destroy (); /// Return the cached value from the ORB_Core. /** * This flag indicates whether the stub code should make use of the * collocation opportunities that are available to the ORB. */ - CORBA::Boolean optimize_collocation_objects (void) const; + CORBA::Boolean optimize_collocation_objects () const; /// Needed to avoid copying forward_profiles for thread safety CORBA::Boolean marshal (TAO_OutputCDR&); @@ -278,13 +274,13 @@ protected: /// Destructor is to be called only through _decr_refcnt() to /// enforce proper reference counting. - virtual ~TAO_Stub (void); + virtual ~TAO_Stub (); /// NON-THREAD SAFE version of reset_profiles (void); - void reset_profiles_i (void); + void reset_profiles_i (); /// NON-THREAD SAFE version of next_profile (void) - TAO_Profile *next_profile_i (void); + TAO_Profile *next_profile_i (); private: /// Makes a copy of the profile and frees the existing profile_in_use. @@ -297,14 +293,14 @@ private: /// NON-THREAD-SAFE. Utility method which unrolls (removes or pops) /// the top most forwarding profile list. - void forward_back_one (void); + void forward_back_one (); /// NOT THREAD-SAFE. Utility method which pops all forward profile /// lists and resets the forward_profiles_ pointer. void reset_forward (); /// NON-THREAD-SAFE. utility method for next_profile. - TAO_Profile *next_forward_profile (void); + TAO_Profile *next_forward_profile (); /// THREAD-SAFE Create the IOR info int get_profile_ior_info (TAO_MProfile &profile, IOP::IOR *&ior_info); @@ -384,11 +380,7 @@ protected: CORBA::Boolean profile_success_; /// Reference counter. -#if defined (ACE_HAS_CPP11) std::atomic<uint32_t> refcount_; -#else - ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> refcount_; -#endif /* ACE_HAS_CPP11 */ /// The policy overrides in this object, if nil then use the default /// policies. @@ -418,7 +410,7 @@ protected: /// True if forwarding request upon some specific exceptions /// (e.g. OBJECT_NOT_EXIST) already happened. - ACE_Atomic_Op<TAO_SYNCH_MUTEX, bool> forwarded_on_exception_; + std::atomic<bool> forwarded_on_exception_; }; // Define a TAO_Stub auto_ptr class. @@ -434,12 +426,12 @@ public: explicit TAO_Stub_Auto_Ptr (TAO_Stub *p = 0); TAO_Stub_Auto_Ptr (TAO_Stub_Auto_Ptr &ap); TAO_Stub_Auto_Ptr &operator= (TAO_Stub_Auto_Ptr &rhs); - ~TAO_Stub_Auto_Ptr (void); + ~TAO_Stub_Auto_Ptr (); // = Accessor methods. TAO_Stub &operator *() const; - TAO_Stub *get (void) const; - TAO_Stub *release (void); + TAO_Stub *get () const; + TAO_Stub *release (); void reset (TAO_Stub *p = 0); TAO_Stub *operator-> () const; diff --git a/TAO/tao/Stub.inl b/TAO/tao/Stub.inl index 7c638ccf206..146414ac160 100644 --- a/TAO/tao/Stub.inl +++ b/TAO/tao/Stub.inl @@ -393,7 +393,7 @@ void TAO_Stub::forwarded_on_exception (bool forwarded) ACE_INLINE bool TAO_Stub::forwarded_on_exception () const { - return forwarded_on_exception_.value (); + return forwarded_on_exception_; } ACE_INLINE diff --git a/TAO/tao/Synch_Invocation.cpp b/TAO/tao/Synch_Invocation.cpp index 69e7f948fac..ee073e085d3 100644 --- a/TAO/tao/Synch_Invocation.cpp +++ b/TAO/tao/Synch_Invocation.cpp @@ -580,11 +580,7 @@ namespace TAO // We must manage the memory allocated // by the call above to alloc(). -#if defined (ACE_HAS_CPP11) std::unique_ptr<CORBA::Exception> safety (exception); -#else - auto_ptr<CORBA::Exception> safety (exception); -#endif /* ACE_HAS_CPP11 */ exception->_raise (); @@ -731,11 +727,7 @@ namespace TAO // Without this, the call to create_system_exception() above // causes a memory leak. On platforms without native exceptions, // the CORBA::Environment class manages the memory. -#if defined (ACE_HAS_CPP11) std::unique_ptr<CORBA::SystemException> safety (ex); -#else - auto_ptr<CORBA::SystemException> safety (ex); -#endif /* ACE_HAS_CPP11 */ ex->minor (minor); ex->completed (CORBA::CompletionStatus (completion)); diff --git a/TAO/tao/Synch_Invocation.h b/TAO/tao/Synch_Invocation.h index 391955d8752..0637182898c 100644 --- a/TAO/tao/Synch_Invocation.h +++ b/TAO/tao/Synch_Invocation.h @@ -178,7 +178,7 @@ namespace TAO /// The destructor calls Invocation_Base::invoke_status with the /// right invoke status, which is useful for PI's. - ~Reply_Guard (void); + ~Reply_Guard (); /// Mutator to set the invocation status. void set_status (Invocation_Status s); diff --git a/TAO/tao/Synch_Invocation.inl b/TAO/tao/Synch_Invocation.inl index 607b714ce43..c595d17a7c0 100644 --- a/TAO/tao/Synch_Invocation.inl +++ b/TAO/tao/Synch_Invocation.inl @@ -12,7 +12,7 @@ namespace TAO } ACE_INLINE - Reply_Guard::~Reply_Guard (void) + Reply_Guard::~Reply_Guard () { #if TAO_HAS_INTERCEPTORS == 1 this->invocation_->invoke_status (this->status_); diff --git a/TAO/tao/SystemException.h b/TAO/tao/SystemException.h index 937c045e5ad..f52e0414820 100644 --- a/TAO/tao/SystemException.h +++ b/TAO/tao/SystemException.h @@ -55,7 +55,7 @@ namespace CORBA namespace TAO { - typedef CORBA::SystemException* (*excp_factory)(void); + typedef CORBA::SystemException* (*excp_factory)(); } namespace CORBA @@ -99,16 +99,16 @@ namespace CORBA SystemException (const SystemException & src); /// Destructor. - virtual ~SystemException (void); + virtual ~SystemException (); /// Get the minor status. - ULong minor (void) const; + ULong minor () const; /// Set the minor status. void minor (ULong m); /// Get the completion status. - CORBA::CompletionStatus completed (void) const; + CORBA::CompletionStatus completed () const; /// Set the operation completion status. void completed (CORBA::CompletionStatus c); @@ -119,7 +119,7 @@ namespace CORBA /// The const version of narrow operation to a SystemException static const SystemException *_downcast(const CORBA::Exception *exception); - virtual void _raise (void) const = 0; + virtual void _raise () const = 0; // = TAO-specific extension. @@ -129,7 +129,7 @@ namespace CORBA /// Returns a string containing information about the exception. This /// function is not CORBA compliant. - virtual ACE_CString _info (void) const; + virtual ACE_CString _info () const; virtual void _tao_encode (TAO_OutputCDR &cdr) const; @@ -143,12 +143,12 @@ namespace CORBA static CORBA::ULong _tao_errno (int errno_value); /// Deep copy - virtual CORBA::Exception *_tao_duplicate (void) const; + virtual CORBA::Exception *_tao_duplicate () const; protected: /// Default constructor. - SystemException (void); + SystemException (); /// Assignment operator. SystemException & operator= (const SystemException &src); diff --git a/TAO/tao/TAO_Server_Request.h b/TAO/tao/TAO_Server_Request.h index 0c0b15fd96a..db1720972d3 100644 --- a/TAO/tao/TAO_Server_Request.h +++ b/TAO/tao/TAO_Server_Request.h @@ -125,79 +125,79 @@ public: CORBA::Object_ptr target); /// Destructor. - ~TAO_ServerRequest (void); + ~TAO_ServerRequest (); /** * @name Request attributes. */ //@{ /// Return the operation name. - const char *operation (void) const; + const char *operation () const; /// Set the operation name. void operation (const char *operation, size_t length, int release); /// Return the length of the operation. - size_t operation_length (void) const; + size_t operation_length () const; //@} /// Return the underlying ORB. - CORBA::ORB_ptr orb (void); + CORBA::ORB_ptr orb (); /// Return the ORB core pointer member. - TAO_ORB_Core *orb_core (void) const; + TAO_ORB_Core *orb_core () const; /// Start a Reply message. - void init_reply (void); + void init_reply (); /// Retrieve the incoming stream. - TAO_InputCDR * incoming (void) const; + TAO_InputCDR * incoming () const; /// Retrieve the outgoing stream. - TAO_OutputCDR * outgoing (void) const; + TAO_OutputCDR * outgoing () const; /// Is the response expected? - CORBA::Boolean response_expected (void) const; + CORBA::Boolean response_expected () const; /// Should the reply be deferred? - CORBA::Boolean deferred_reply (void) const; + CORBA::Boolean deferred_reply () const; /// Set the response expected flag. void response_expected (CORBA::Boolean response); /// Should we return before dispatching the servant? - CORBA::Boolean sync_with_server (void) const; + CORBA::Boolean sync_with_server () const; /// Set the sync_with_server flag. void sync_with_server (CORBA::Boolean sync_flag); /// Is the request at risk of being queued? - CORBA::Boolean is_queued (void) const; + CORBA::Boolean is_queued () const; /// Set the queued flag. void is_queued (CORBA::Boolean qeueued_flag); /// Send a sync reply if needed after _dispatch is called - void sync_after_dispatch (void); + void sync_after_dispatch (); /// Send a sync reply if needed before _dispatch is called to avoid /// possible queuing first. - void sync_before_dispatch (void); + void sync_before_dispatch (); /// Used with reliable oneway requests. - void send_no_exception_reply (void); + void send_no_exception_reply (); - TAO::ObjectKey &object_key (void); + TAO::ObjectKey &object_key (); /// Return the request TAO_Service_Context - TAO_Service_Context &request_service_context (void); + TAO_Service_Context &request_service_context (); /// Return the reply TAO_Service_Context - TAO_Service_Context &reply_service_context (void); + TAO_Service_Context &reply_service_context (); - IOP::ServiceContextList &reply_service_info (void); + IOP::ServiceContextList &reply_service_info (); - IOP::ServiceContextList &request_service_info (void); + IOP::ServiceContextList &request_service_info (); /// Return the underlying transport TAO_Transport *transport (); @@ -205,7 +205,7 @@ public: /// To handle System Exceptions at the lowest level, a method /// returning the request_id_ is needed. //@{ - CORBA::ULong request_id (void); + CORBA::ULong request_id (); void request_id (CORBA::ULong req); //@} @@ -217,16 +217,16 @@ public: void forward_location (CORBA::Object_ptr forward_reference); /// Get the forward_location. - CORBA::Object_ptr forward_location (void); + CORBA::Object_ptr forward_location (); /** * Since forward location is allowed to be nil then this is a proper * method to check if the request is being forwarded. */ - bool is_forwarded (void) const; + bool is_forwarded () const; /// Get the reply status - GIOP::ReplyStatusType reply_status (void); + GIOP::ReplyStatusType reply_status (); /// Set the reply status void reply_status (GIOP::ReplyStatusType except_type); @@ -235,29 +235,29 @@ public: void requesting_principal (const CORBA::OctetSeq & principal); /// Return the reference to the tagged profile - TAO_Tagged_Profile &profile (void); + TAO_Tagged_Profile &profile (); - void tao_send_reply (void); + void tao_send_reply (); void tao_send_reply_exception (const CORBA::Exception& ex); /// Set the boolean member to true. - void is_dsi (void); + void is_dsi (); /// Set the member. void dsi_nvlist_align (ptrdiff_t alignment); /// Get the operation details for the current request. - TAO_Operation_Details const * operation_details (void) const; + TAO_Operation_Details const * operation_details () const; /// Set the argument_flag void argument_flag (CORBA::Boolean flag); /// Get the argument_flag - CORBA::Boolean argument_flag (void); + CORBA::Boolean argument_flag (); /// Returns @c true if the current request is collocated. - bool collocated (void) const; + bool collocated () const; #if TAO_HAS_INTERCEPTORS == 1 /// Send cached reply. Used in scenarios where the FTORB thinks that @@ -271,12 +271,12 @@ public: * code must be able to modify this value and use that value * at a later time without being forced to use TSS. */ - size_t & interceptor_count (void); + size_t & interceptor_count (); /// Return a reference to the "request scope" PICurrent object. - TAO::PICurrent_Impl *rs_pi_current (void); + TAO::PICurrent_Impl *rs_pi_current (); - CORBA::Exception *caught_exception (void); + CORBA::Exception *caught_exception (); void caught_exception (CORBA::Exception *exception); @@ -284,7 +284,7 @@ public: void pi_reply_status (PortableInterceptor::ReplyStatus s); /// Get the status of the received reply. - PortableInterceptor::ReplyStatus pi_reply_status (void); + PortableInterceptor::ReplyStatus pi_reply_status (); #endif /* TAO_HAS_INTERCEPTORS == 1 */ #if TAO_HAS_ZIOP == 1 @@ -297,7 +297,7 @@ public: private: /// Default ctor only used to create a TAO_ServerRequest that is about /// to be the target of a clone operation. - TAO_ServerRequest (void); + TAO_ServerRequest (); TAO_GIOP_Message_Base *mesg_base_; diff --git a/TAO/tao/TAO_Singleton_Manager.h b/TAO/tao/TAO_Singleton_Manager.h index 54a4460b858..5f1cc3274fc 100644 --- a/TAO/tao/TAO_Singleton_Manager.h +++ b/TAO/tao/TAO_Singleton_Manager.h @@ -125,12 +125,10 @@ protected: //@} private: - - /// Disallow copying by not implementing the following ... - //@{ - TAO_Singleton_Manager (const TAO_Singleton_Manager &); - TAO_Singleton_Manager &operator= (const TAO_Singleton_Manager &); - //@} + TAO_Singleton_Manager (const TAO_Singleton_Manager &) = delete; + TAO_Singleton_Manager &operator= (const TAO_Singleton_Manager &) = delete; + TAO_Singleton_Manager (TAO_Singleton_Manager &&) = delete; + TAO_Singleton_Manager &operator= (TAO_Singleton_Manager &&) = delete; /// Register an object or array for deletion at program termination. /// See description of static version above for return values. diff --git a/TAO/tao/TSS_Resources.h b/TAO/tao/TSS_Resources.h index 3339d41b47a..645a612fe9c 100644 --- a/TAO/tao/TSS_Resources.h +++ b/TAO/tao/TSS_Resources.h @@ -47,13 +47,13 @@ class TAO_Export TAO_TSS_Resources public: /// Constructor - TAO_TSS_Resources (void); + TAO_TSS_Resources (); /// Destructor - ~TAO_TSS_Resources (void); + ~TAO_TSS_Resources (); /// Return a singleton instance of this class. - static TAO_TSS_Resources * instance (void); + static TAO_TSS_Resources * instance (); private: diff --git a/TAO/tao/Tagged_Components.h b/TAO/tao/Tagged_Components.h index aab03fea27d..89c4e2ac87d 100644 --- a/TAO/tao/Tagged_Components.h +++ b/TAO/tao/Tagged_Components.h @@ -56,7 +56,7 @@ class TAO_Export TAO_Tagged_Components { public: /// Constructor - TAO_Tagged_Components (void); + TAO_Tagged_Components (); // = Standard OMG that require fast access. /// The the IOP::TAG_ORB_TYPE component value @@ -113,7 +113,7 @@ public: * MutipleComponentProfile. Added by request from Chris Hafey * <chris@stentorsoft.com> */ - IOP::MultipleComponentProfile &components (void); + IOP::MultipleComponentProfile &components (); private: /// Helper method to implement set_code_sets() diff --git a/TAO/tao/Tagged_Profile.h b/TAO/tao/Tagged_Profile.h index d205ead432e..0b41fc1ec9c 100644 --- a/TAO/tao/Tagged_Profile.h +++ b/TAO/tao/Tagged_Profile.h @@ -58,27 +58,27 @@ public: CORBA::Boolean unmarshall_object_key (TAO_InputCDR &cdr); /// Return the object key - TAO::ObjectKey &object_key (void); + TAO::ObjectKey &object_key (); /// Save the object key void object_key (TAO::ObjectKey &object_key); /// Return a const object key - const TAO::ObjectKey &object_key (void) const; + const TAO::ObjectKey &object_key () const; /// Get the tagged_profile - const IOP::TaggedProfile &tagged_profile (void) const; + const IOP::TaggedProfile &tagged_profile () const; /// Get the profile index, that needs to be used in the /// sequnce of TaggedProfiles contained IOP::IOR that is /// received from the client. - CORBA::ULong profile_index (void) const; + CORBA::ULong profile_index () const; /// Accessor to the type_id contained in the IOP::IOR received from /// the client. - const char* type_id (void) const; + const char* type_id () const; - CORBA::Short discriminator (void) const; + CORBA::Short discriminator () const; private: /// Extract the object key from the TaggedProfile and store it in diff --git a/TAO/tao/Thread_Lane_Resources.h b/TAO/tao/Thread_Lane_Resources.h index 1ae4954e843..eed52ccf519 100644 --- a/TAO/tao/Thread_Lane_Resources.h +++ b/TAO/tao/Thread_Lane_Resources.h @@ -55,7 +55,7 @@ public: TAO_New_Leader_Generator *new_leader_generator = 0); /// Destructor. - ~TAO_Thread_Lane_Resources (void); + ~TAO_Thread_Lane_Resources (); /// Does @a mprofile belong to us? int is_collocated (const TAO_MProfile &mprofile); @@ -65,94 +65,94 @@ public: bool ignore_address); /// Finalize resources. - void finalize (void); + void finalize (); /// Shutdown the reactor. - void shutdown_reactor (void); + void shutdown_reactor (); /// Certain ORB policies such as dropping replies on shutdown /// would need cleanup of transports to wake threads up. - void close_all_transports (void); + void close_all_transports (); /// @name Accessors //@{ - TAO_Acceptor_Registry &acceptor_registry (void); + TAO_Acceptor_Registry &acceptor_registry (); /** * @note Returning a pointer helps to return 0 in case of * exceptions. */ - TAO_Connector_Registry *connector_registry (void); + TAO_Connector_Registry *connector_registry (); /// Get the transport cache - TAO::Transport_Cache_Manager &transport_cache (void); + TAO::Transport_Cache_Manager &transport_cache (); - TAO_Leader_Follower &leader_follower (void); + TAO_Leader_Follower &leader_follower (); /** * Allocator is intended for allocating the ACE_Data_Blocks used in * incoming CDR streams. This allocator has locks. */ - ACE_Allocator *input_cdr_dblock_allocator (void); + ACE_Allocator *input_cdr_dblock_allocator (); /** * Allocator is intended for allocating the buffers in the incoming * CDR streams. This allocator has locks. */ - ACE_Allocator *input_cdr_buffer_allocator (void); + ACE_Allocator *input_cdr_buffer_allocator (); /** * Allocator is intended for allocating the ACE_Message_Blocks used * in incoming CDR streams. This allocator is global, and has locks. */ - ACE_Allocator *input_cdr_msgblock_allocator (void); + ACE_Allocator *input_cdr_msgblock_allocator (); /** * Allocator is intended for allocating the buffers used in the * Transport object. This allocator has locks. */ - ACE_Allocator *transport_message_buffer_allocator (void); + ACE_Allocator *transport_message_buffer_allocator (); /** * Allocator is intended for allocating the ACE_Data_Blocks used in * outgoing CDR streams. This allocator has locks. */ - ACE_Allocator *output_cdr_dblock_allocator (void); + ACE_Allocator *output_cdr_dblock_allocator (); /** * Allocator is intended for allocating the buffers in the outgoing * CDR streams. This allocator has locks. */ - ACE_Allocator *output_cdr_buffer_allocator (void); + ACE_Allocator *output_cdr_buffer_allocator (); /** * Allocator is intended for allocating the ACE_Message_Blocks used * in the outgoing CDR streams. This allocator is global, and has * locks. */ - ACE_Allocator *output_cdr_msgblock_allocator (void); + ACE_Allocator *output_cdr_msgblock_allocator (); /** * Allocator is intended for allocating the AMH response handlers * This allocator is global. */ - ACE_Allocator *amh_response_handler_allocator (void); + ACE_Allocator *amh_response_handler_allocator (); /** * Allocator is intended for allocating the AMI response handlers * This allocator is global. */ - ACE_Allocator *ami_response_handler_allocator (void); + ACE_Allocator *ami_response_handler_allocator (); //@} private: /// Checks if the acceptor registry has been created. - int has_acceptor_registry_been_created (void) const; + int has_acceptor_registry_been_created () const; /// Helper to get the resource factory in the ORB_Core - TAO_Resource_Factory *resource_factory (void); + TAO_Resource_Factory *resource_factory (); private: /// ORB_Core related to this thread lane. diff --git a/TAO/tao/Thread_Lane_Resources_Manager.h b/TAO/tao/Thread_Lane_Resources_Manager.h index a67e1f104e3..eb9f72a05f6 100644 --- a/TAO/tao/Thread_Lane_Resources_Manager.h +++ b/TAO/tao/Thread_Lane_Resources_Manager.h @@ -43,30 +43,30 @@ public: TAO_Thread_Lane_Resources_Manager (TAO_ORB_Core &orb_core); /// Destructor. - virtual ~TAO_Thread_Lane_Resources_Manager (void); + virtual ~TAO_Thread_Lane_Resources_Manager (); /// Finalize resources. - virtual void finalize (void) = 0; + virtual void finalize () = 0; /// Open default resources. - virtual int open_default_resources (void) = 0; + virtual int open_default_resources () = 0; /// Shutdown reactor. - virtual void shutdown_reactor (void) = 0; + virtual void shutdown_reactor () = 0; /// Cleanup transports to wake threads up waiting on those sockets. - virtual void close_all_transports (void) = 0; + virtual void close_all_transports () = 0; /// Does @a mprofile belong to us? virtual int is_collocated (const TAO_MProfile& mprofile) = 0; /// @name Accessors // @{ - virtual TAO_Thread_Lane_Resources &lane_resources (void) = 0; + virtual TAO_Thread_Lane_Resources &lane_resources () = 0; - virtual TAO_Thread_Lane_Resources &default_lane_resources (void) = 0; + virtual TAO_Thread_Lane_Resources &default_lane_resources () = 0; - TAO_LF_Strategy &lf_strategy (void); + TAO_LF_Strategy &lf_strategy (); // @} private: @@ -94,7 +94,7 @@ class TAO_Export TAO_Thread_Lane_Resources_Manager_Factory { public: /// Virtual destructor. - virtual ~TAO_Thread_Lane_Resources_Manager_Factory (void); + virtual ~TAO_Thread_Lane_Resources_Manager_Factory (); /// Factory method. virtual TAO_Thread_Lane_Resources_Manager * diff --git a/TAO/tao/Transport.h b/TAO/tao/Transport.h index f97848540da..4b3c84d069d 100644 --- a/TAO/tao/Transport.h +++ b/TAO/tao/Transport.h @@ -321,7 +321,7 @@ public: size_t input_cdr_size = ACE_CDR::DEFAULT_BUFSIZE); /// Destructor - virtual ~TAO_Transport (void); + virtual ~TAO_Transport (); /// Return the protocol tag. /** @@ -329,10 +329,10 @@ public: * protocol. New protocol tags can be obtained free of charge from * the OMG, check the documents in corbafwd.h for more details. */ - CORBA::ULong tag (void) const; + CORBA::ULong tag () const; /// Access the ORB that owns this connection. - TAO_ORB_Core *orb_core (void) const; + TAO_ORB_Core *orb_core () const; /// Get the TAO_Tranport_Mux_Strategy used by this object. /** @@ -345,7 +345,7 @@ public: * connection is more efficient and reduces the possibilities of * priority inversions. */ - TAO_Transport_Mux_Strategy *tms (void) const; + TAO_Transport_Mux_Strategy *tms () const; /// Return the TAO_Wait_Strategy used by this object. /** @@ -355,7 +355,7 @@ public: * multiple events concurrently or using the Leader/Followers * protocol. */ - TAO_Wait_Strategy *wait_strategy (void) const; + TAO_Wait_Strategy *wait_strategy () const; enum Drain_Result_Enum { @@ -388,7 +388,7 @@ public: Drain_Result handle_output (TAO::Transport::Drain_Constraints const & c); /// Get the bidirectional flag - int bidirectional_flag (void) const; + int bidirectional_flag () const; /// Set the bidirectional flag void bidirectional_flag (int flag); @@ -397,7 +397,7 @@ public: void cache_map_entry (TAO::Transport_Cache_Manager::HASH_MAP_ENTRY *entry); /// Get the Cache Map entry - TAO::Transport_Cache_Manager::HASH_MAP_ENTRY *cache_map_entry (void); + TAO::Transport_Cache_Manager::HASH_MAP_ENTRY *cache_map_entry (); /// Set and Get the identifier for this transport instance. /** @@ -405,29 +405,29 @@ public: * the <code>this</code> pointer for the instance on which * it's called. */ - size_t id (void) const; + size_t id () const; void id (size_t id); /** * Methods dealing with the role of the connection, e.g., CLIENT or SERVER. * See CORBA 2.6 Specification, Section 15.5.1 for origin of definitions. */ - TAO::Connection_Role opened_as (void) const; + TAO::Connection_Role opened_as () const; void opened_as (TAO::Connection_Role); /// Get and Set the purging order. The purging strategy uses the set /// version to set the purging order. - unsigned long purging_order (void) const; + unsigned long purging_order () const; void purging_order(unsigned long value); /// Check if there are messages pending in the queue /** * @return true if the queue is empty */ - bool queue_is_empty (void); + bool queue_is_empty (); /// Register with the reactor via the wait strategy - bool register_if_necessary (void); + bool register_if_necessary (); /// Added event handler to the handlers set. @@ -465,10 +465,10 @@ public: * thread-per-connection mode. In that case putting the connection * in the Reactor would produce unpredictable results anyway. */ - virtual int register_handler (void); + virtual int register_handler (); /// Remove the handler from the reactor. - virtual int remove_handler (void); + virtual int remove_handler (); /// Write the complete Message_Block chain to the connection. /** @@ -553,14 +553,14 @@ public: /// Request has been just sent, but the reply is not received. Idle /// the transport now. - bool idle_after_send (void); + bool idle_after_send (); /// Request is sent and the reply is received. Idle the transport /// now. - bool idle_after_reply (void); + bool idle_after_reply (); /// Call the implementation method after obtaining the lock. - virtual void close_connection (void); + virtual void close_connection (); //@} /** @name Template methods @@ -594,18 +594,18 @@ public: * * @note The methods are not made const with a reason. */ - virtual bool post_connect_hook (void); + virtual bool post_connect_hook (); /// Memory management routines. /** * Forwards to event handler. */ - ACE_Event_Handler::Reference_Count add_reference (void); - ACE_Event_Handler::Reference_Count remove_reference (void); + ACE_Event_Handler::Reference_Count add_reference (); + ACE_Event_Handler::Reference_Count remove_reference (); /// Return the messaging object that is used to format the data that /// needs to be sent. - TAO_GIOP_Message_Base * messaging_object (void); + TAO_GIOP_Message_Base * messaging_object (); /** @name Template methods * @@ -633,36 +633,36 @@ public: * * @todo This method has to be renamed to event_handler() */ - virtual ACE_Event_Handler * event_handler_i (void) = 0; + virtual ACE_Event_Handler * event_handler_i () = 0; /// Is this transport really connected - bool is_connected (void) const; + bool is_connected () const; /// Was a connection seen as closed during a read - bool connection_closed_on_read (void) const; + bool connection_closed_on_read () const; /// Perform all the actions when this transport get opened bool post_open (size_t id); /// do what needs to be done when closing the transport - void pre_close (void); + void pre_close (); /// Get the connection handler for this transport - TAO_Connection_Handler * connection_handler (void); + TAO_Connection_Handler * connection_handler (); /// Accessor for the output CDR stream - TAO_OutputCDR &out_stream (void); + TAO_OutputCDR &out_stream (); /// Accessor for synchronizing Transport OutputCDR access - TAO_SYNCH_MUTEX &output_cdr_lock (void); + TAO_SYNCH_MUTEX &output_cdr_lock (); /// Can the transport be purged? - bool can_be_purged (void); + bool can_be_purged (); virtual void set_bidir_context_info (TAO_Operation_Details &opdetails); protected: - virtual TAO_Connection_Handler * connection_handler_i (void) = 0; + virtual TAO_Connection_Handler * connection_handler_i () = 0; public: /// This is a request for the transport object to write a @@ -828,13 +828,13 @@ public: TAO::Transport::Drain_Constraints const & dc); /// Cache management - int purge_entry (void); + int purge_entry (); /// Cache management - int make_idle (void); + int make_idle (); /// Cache management - int update_transport (void); + int update_transport (); /// The timeout callback, invoked when any of the timers related to /// this transport expire. @@ -856,16 +856,16 @@ public: int handle_timeout (const ACE_Time_Value ¤t_time, const void* act); /// Accessor to recv_buffer_size_ - size_t recv_buffer_size (void) const; + size_t recv_buffer_size () const; /// Accessor to sent_byte_count_ - size_t sent_byte_count (void) const; + size_t sent_byte_count () const; /// CodeSet Negotiation - Get the char codeset translator factory - TAO_Codeset_Translator_Base *char_translator (void) const; + TAO_Codeset_Translator_Base *char_translator () const; /// CodeSet Negotiation - Get the wchar codeset translator factory - TAO_Codeset_Translator_Base *wchar_translator (void) const; + TAO_Codeset_Translator_Base *wchar_translator () const; /// CodeSet negotiation - Set the char codeset translator factory void char_translator (TAO_Codeset_Translator_Base *); @@ -893,14 +893,14 @@ public: /// Notify all the components inside a Transport when the underlying /// connection is closed. - void send_connection_closed_notifications (void); + void send_connection_closed_notifications (); /// Transport statistics - TAO::Transport::Stats* stats (void) const; + TAO::Transport::Stats* stats () const; private: /// Helper method that returns the Transport Cache Manager. - TAO::Transport_Cache_Manager &transport_cache_manager (void); + TAO::Transport_Cache_Manager &transport_cache_manager (); /// Send some of the data in the queue. /** @@ -919,7 +919,7 @@ private: * * @return true if the queue is empty */ - bool queue_is_empty_i (void) const; + bool queue_is_empty_i () const; /// A helper routine used in drain_queue_i() Drain_Result drain_queue_helper (int &iovcnt, iovec iov[], @@ -936,10 +936,10 @@ private: friend class TAO_Thread_Per_Connection_Handler; /// Schedule handle_output() callbacks - int schedule_output_i (void); + int schedule_output_i (); /// Cancel handle_output() callbacks - int cancel_output_i (void); + int cancel_output_i (); /// Cleanup the queue. /** @@ -979,11 +979,11 @@ private: ACE_Time_Value *max_wait_time); /// Check if the flush timer is still pending - int flush_timer_pending (void) const; + int flush_timer_pending () const; /// The flush timer expired or was explicitly cancelled, mark it as /// not pending - void reset_flush_timer (void); + void reset_flush_timer (); /// Print out error messages if the event handler is not valid void report_invalid_event_handler (const char *caller); @@ -1026,25 +1026,25 @@ private: * This call prepares a new handler for the notify call and sends a * notify () call to the reactor. */ - int notify_reactor (void); + int notify_reactor (); protected: /* * Same as notify_reactor above but does NOT first check for a * registered TAO_Wait_Strategy. */ - int notify_reactor_now (void); + int notify_reactor_now (); private: ACE_UNIMPLEMENTED_FUNC (TAO_Transport (const TAO_Transport &)) ACE_UNIMPLEMENTED_FUNC (TAO_Transport &operator= (const TAO_Transport &)) /// Assume the lock is held - void send_connection_closed_notifications_i (void); + void send_connection_closed_notifications_i (); /// Allocate a partial message block and store it in our /// partial_message_ data member. - void allocate_partial_message_block (void); + void allocate_partial_message_block (); /** * Return true if blocking I/O should be used for sending synchronous @@ -1251,15 +1251,15 @@ namespace TAO virtual ~Stats (); void messages_sent (size_t message_length); - CORBA::LongLong messages_sent (void) const; - CORBA::LongLong bytes_sent (void) const; + CORBA::LongLong messages_sent () const; + CORBA::LongLong bytes_sent () const; void messages_received (size_t message_length); - CORBA::LongLong messages_received (void) const; - CORBA::LongLong bytes_received (void) const; + CORBA::LongLong messages_received () const; + CORBA::LongLong bytes_received () const; void opened_since (const ACE_Time_Value& tv); - const ACE_Time_Value& opened_since (void) const; + const ACE_Time_Value& opened_since () const; private: /// Mutex guarding the internal state of the statistics diff --git a/TAO/tao/Transport_Acceptor.h b/TAO/tao/Transport_Acceptor.h index 1d8ba921d3f..87d660aa4c9 100644 --- a/TAO/tao/Transport_Acceptor.h +++ b/TAO/tao/Transport_Acceptor.h @@ -76,10 +76,10 @@ public: TAO_Acceptor (CORBA::ULong tag); /// Destructor - virtual ~TAO_Acceptor (void); + virtual ~TAO_Acceptor (); /// The tag, each concrete class will have a specific tag value. - CORBA::ULong tag (void) const; + CORBA::ULong tag () const; /// Set the amount of time to delay accepting new connections in the /// event that we encounter an error that may be transient. @@ -104,7 +104,7 @@ public: const char *options = 0) = 0; /// Closes the acceptor - virtual int close (void) = 0; + virtual int close () = 0; /** * Create the corresponding profile for this endpoint. @@ -125,7 +125,7 @@ public: * is used for determining how many profiles will be generated * for this acceptor. */ - virtual CORBA::ULong endpoint_count (void) = 0; + virtual CORBA::ULong endpoint_count () = 0; /** * This method fetches the @a key from the @a profile. Protocols that @@ -173,7 +173,7 @@ public: { } - virtual int handle_accept_error (void) + virtual int handle_accept_error () { return this->acceptor_->handle_accept_error (this); } diff --git a/TAO/tao/Transport_Cache_Manager_T.cpp b/TAO/tao/Transport_Cache_Manager_T.cpp index 868bd41cd97..ab7a56adf36 100644 --- a/TAO/tao/Transport_Cache_Manager_T.cpp +++ b/TAO/tao/Transport_Cache_Manager_T.cpp @@ -73,7 +73,7 @@ namespace TAO } template <typename TT, typename TRDT, typename PSTRAT> - Transport_Cache_Manager_T<TT, TRDT, PSTRAT>::~Transport_Cache_Manager_T (void) + Transport_Cache_Manager_T<TT, TRDT, PSTRAT>::~Transport_Cache_Manager_T () { delete this->cache_lock_; this->cache_lock_ = 0; @@ -561,7 +561,7 @@ namespace TAO template <typename TT, typename TRDT, typename PSTRAT> int - Transport_Cache_Manager_T<TT, TRDT, PSTRAT>::purge (void) + Transport_Cache_Manager_T<TT, TRDT, PSTRAT>::purge () { typedef ACE_Unbounded_Set<transport_type*> transport_set_type; transport_set_type transports_to_be_closed; diff --git a/TAO/tao/Transport_Cache_Manager_T.h b/TAO/tao/Transport_Cache_Manager_T.h index a61759c9398..7cc7c188264 100644 --- a/TAO/tao/Transport_Cache_Manager_T.h +++ b/TAO/tao/Transport_Cache_Manager_T.h @@ -101,7 +101,7 @@ namespace TAO const char *orbid); /// Destructor - ~Transport_Cache_Manager_T (void); + ~Transport_Cache_Manager_T (); /// Add the transport to the cache. /** @@ -122,7 +122,7 @@ namespace TAO size_t & busy_count); /// Remove entries from the cache depending upon the strategy. - int purge (void); + int purge (); /// Purge the entry from the Cache Map int purge_entry (HASH_MAP_ENTRY *& entry); @@ -158,13 +158,13 @@ namespace TAO bool blockable_client_transports (Connection_Handler_Set &handlers); /// Return the current size of the cache. - size_t current_size (void) const; + size_t current_size () const; /// Return the total size of the cache. - size_t total_size (void) const; + size_t total_size () const; /// Return the underlying cache map - HASH_MAP &map (void); + HASH_MAP &map (); private: /// Lookup entry<key,value> in the cache. Grabs the lock and calls the diff --git a/TAO/tao/Transport_Cache_Manager_T.inl b/TAO/tao/Transport_Cache_Manager_T.inl index 9c4e8c8ef0c..65ceaddfd57 100644 --- a/TAO/tao/Transport_Cache_Manager_T.inl +++ b/TAO/tao/Transport_Cache_Manager_T.inl @@ -137,21 +137,21 @@ namespace TAO template <typename TT, typename TRDT, typename PSTRAT> ACE_INLINE size_t - Transport_Cache_Manager_T<TT, TRDT, PSTRAT>::current_size (void) const + Transport_Cache_Manager_T<TT, TRDT, PSTRAT>::current_size () const { return this->cache_map_.current_size (); } template <typename TT, typename TRDT, typename PSTRAT> ACE_INLINE size_t - Transport_Cache_Manager_T<TT, TRDT, PSTRAT>::total_size (void) const + Transport_Cache_Manager_T<TT, TRDT, PSTRAT>::total_size () const { return this->cache_map_.total_size (); } template <typename TT, typename TRDT, typename PSTRAT> ACE_INLINE typename Transport_Cache_Manager_T<TT, TRDT, PSTRAT>::HASH_MAP & - Transport_Cache_Manager_T<TT, TRDT, PSTRAT>::map (void) + Transport_Cache_Manager_T<TT, TRDT, PSTRAT>::map () { return this->cache_map_; } diff --git a/TAO/tao/Transport_Mux_Strategy.h b/TAO/tao/Transport_Mux_Strategy.h index 092ffff1cec..301f9bc496c 100644 --- a/TAO/tao/Transport_Mux_Strategy.h +++ b/TAO/tao/Transport_Mux_Strategy.h @@ -41,11 +41,11 @@ public: TAO_Transport_Mux_Strategy (TAO_Transport *transport); /// Base class destructor. - virtual ~TAO_Transport_Mux_Strategy (void); + virtual ~TAO_Transport_Mux_Strategy (); /// Generate and return an unique request id for the current /// invocation. - virtual CORBA::ULong request_id (void) = 0; + virtual CORBA::ULong request_id () = 0; /// Bind the dispatcher with the request id. Commonalities in the /// derived class implementations is kept here. @@ -73,19 +73,19 @@ public: /// Request has been just sent, but the reply is not received. Idle /// the transport now. The return value indicates whether idling was /// successful or not. - virtual bool idle_after_send (void) = 0; + virtual bool idle_after_send () = 0; /// Request is sent and the reply is received. Idle the transport /// now. The return value indicates whether idling was successful or /// not. - virtual bool idle_after_reply (void) = 0; + virtual bool idle_after_reply () = 0; /// The transport object has closed the connection, inform all Reply /// dispatchers and waiting strategies. - virtual void connection_closed (void) = 0; + virtual void connection_closed () = 0; /// Do we have a request pending - virtual bool has_request (void) = 0; + virtual bool has_request () = 0; protected: /// Cache the transport reference. diff --git a/TAO/tao/Transport_Queueing_Strategies.h b/TAO/tao/Transport_Queueing_Strategies.h index b145ba57988..45a8dda4a6c 100644 --- a/TAO/tao/Transport_Queueing_Strategies.h +++ b/TAO/tao/Transport_Queueing_Strategies.h @@ -48,7 +48,7 @@ namespace TAO { public: /// Destructor - virtual ~Transport_Queueing_Strategy (void); + virtual ~Transport_Queueing_Strategy (); /// Return true if a message must be queued virtual bool must_queue (bool queue_empty) const = 0; diff --git a/TAO/tao/Transport_Selection_Guard.h b/TAO/tao/Transport_Selection_Guard.h index fbc520aea4e..fa70136f350 100644 --- a/TAO/tao/Transport_Selection_Guard.h +++ b/TAO/tao/Transport_Selection_Guard.h @@ -64,22 +64,22 @@ namespace TAO Transport_Selection_Guard (TAO_Transport* t); /// Dtor - ~Transport_Selection_Guard (void); + ~Transport_Selection_Guard (); /// getter - TAO_Transport* operator-> (void) const + TAO_Transport* operator-> () const { return this->get (); }; /// getter - TAO_Transport& operator* (void) const + TAO_Transport& operator* () const { return *this->get (); }; /// Getter - TAO_Transport* get (void) const + TAO_Transport* get () const { return this->curr_; }; diff --git a/TAO/tao/TypeCodeFactory_Adapter.h b/TAO/tao/TypeCodeFactory_Adapter.h index 6091692a48b..2f065c382d6 100644 --- a/TAO/tao/TypeCodeFactory_Adapter.h +++ b/TAO/tao/TypeCodeFactory_Adapter.h @@ -64,7 +64,7 @@ namespace TAO class TAO_Export TAO_TypeCodeFactory_Adapter : public ACE_Service_Object { public: - virtual ~TAO_TypeCodeFactory_Adapter (void); + virtual ~TAO_TypeCodeFactory_Adapter (); virtual CORBA::TypeCode_ptr create_struct_tc ( const char *id, diff --git a/TAO/tao/UB_String_Argument_T.h b/TAO/tao/UB_String_Argument_T.h index fb5f23cb076..5221d90c31f 100644 --- a/TAO/tao/UB_String_Argument_T.h +++ b/TAO/tao/UB_String_Argument_T.h @@ -42,7 +42,7 @@ namespace TAO #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - const typename S_var::s_traits::char_type * arg (void) const; + const typename S_var::s_traits::char_type * arg () const; protected: typename S_var::s_traits::char_type const * x_; @@ -61,9 +61,9 @@ namespace TAO { public: In_UB_String_Clonable_Argument_T (const typename S_var::s_traits::char_type * x); - virtual ~In_UB_String_Clonable_Argument_T (void); + virtual ~In_UB_String_Clonable_Argument_T (); - virtual Argument* clone (void); + virtual Argument* clone (); private: bool is_clone_; @@ -87,7 +87,7 @@ namespace TAO #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - typename S_var::s_traits::char_type *& arg (void); + typename S_var::s_traits::char_type *& arg (); private: typename S_var::s_traits::char_type *& x_; @@ -110,7 +110,7 @@ namespace TAO #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - typename S_var::s_traits::char_type *& arg (void); + typename S_var::s_traits::char_type *& arg (); private: typename S_var::s_traits::char_type *& x_; @@ -127,15 +127,15 @@ namespace TAO class Ret_UB_String_Argument_T : public RetArgument { public: - Ret_UB_String_Argument_T (void); + Ret_UB_String_Argument_T (); virtual CORBA::Boolean demarshal (TAO_InputCDR &); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - typename S_var::s_traits::char_type *& arg (void); - typename S_var::s_traits::char_type * excp (void); - typename S_var::s_traits::char_type * retn (void); + typename S_var::s_traits::char_type *& arg (); + typename S_var::s_traits::char_type * excp (); + typename S_var::s_traits::char_type * retn (); private: S_var x_; diff --git a/TAO/tao/Unbounded_Octet_Sequence_T.h b/TAO/tao/Unbounded_Octet_Sequence_T.h index c3ec3ec5bbd..d50b8b8be03 100644 --- a/TAO/tao/Unbounded_Octet_Sequence_T.h +++ b/TAO/tao/Unbounded_Octet_Sequence_T.h @@ -239,7 +239,7 @@ public: /// Returns the underlying message block, the caller must *not* /// release the copy. - inline ACE_Message_Block* mb (void) const { + inline ACE_Message_Block* mb () const { return mb_; } diff --git a/TAO/tao/UserException.h b/TAO/tao/UserException.h index f2461dd1142..6869abd5a47 100644 --- a/TAO/tao/UserException.h +++ b/TAO/tao/UserException.h @@ -44,7 +44,7 @@ namespace CORBA UserException (UserException const &rhs); /// Destructor. - virtual ~UserException (void); + virtual ~UserException (); /// Assignment operator. UserException &operator= (UserException const &rhs); @@ -55,9 +55,9 @@ namespace CORBA /// The const version of narrow operation static const UserException *_downcast (CORBA::Exception const *exception); - virtual void _raise (void) const = 0; + virtual void _raise () const = 0; - virtual CORBA::TypeCode_ptr _tao_type (void) const; + virtual CORBA::TypeCode_ptr _tao_type () const; // = TAO specific extension. @@ -66,11 +66,11 @@ namespace CORBA /// Returns a string containing information about the exception. This /// function is not CORBA compliant. - virtual ACE_CString _info (void) const; + virtual ACE_CString _info () const; protected: /// Default constructor. - UserException (void); + UserException (); }; } diff --git a/TAO/tao/Valuetype/AbstractBase.h b/TAO/tao/Valuetype/AbstractBase.h index d23b249e062..f9825071858 100644 --- a/TAO/tao/Valuetype/AbstractBase.h +++ b/TAO/tao/Valuetype/AbstractBase.h @@ -25,11 +25,7 @@ #include "tao/Objref_VarOut_T.h" #include "tao/Object.h" /* For CORBA::Object_var */ #include "tao/Pseudo_VarOut_T.h" -#if defined (ACE_HAS_CPP11) -# include <atomic> -#else -# include "ace/Atomic_Op.h" -#endif /* ACE_HAS_CPP11 */ +#include <atomic> TAO_BEGIN_VERSIONED_NAMESPACE_DECL @@ -55,7 +51,6 @@ namespace CORBA class TAO_Valuetype_Export AbstractBase { public: - /// Constructor. /** * This constructor is only meant to be called by the @@ -72,21 +67,21 @@ namespace CORBA static CORBA::AbstractBase_ptr _narrow (CORBA::AbstractBase_ptr obj); static CORBA::AbstractBase_ptr _duplicate (CORBA::AbstractBase_ptr obj); - static CORBA::AbstractBase_ptr _nil (void); + static CORBA::AbstractBase_ptr _nil (); /// Used in the implementation of CORBA::Any static void _tao_any_destructor (void*); /// Spec required conversion operations - CORBA::Object_ptr _to_object (void); - CORBA::ValueBase *_to_value (void); + CORBA::Object_ptr _to_object (); + CORBA::ValueBase *_to_value (); virtual CORBA::Boolean _is_a (const char *type_id); - virtual const char* _interface_repository_id (void) const; + virtual const char* _interface_repository_id () const; /// TAO specific operations - virtual const char* _tao_obv_repository_id (void) const; + virtual const char* _tao_obv_repository_id () const; virtual CORBA::Boolean _tao_marshal_v (TAO_OutputCDR &) const; virtual CORBA::Boolean _tao_unmarshal_v (TAO_InputCDR &); virtual CORBA::Boolean _tao_match_formal_type (ptrdiff_t) const; @@ -102,17 +97,17 @@ namespace CORBA #endif /* GEN_OSTREAM_OPS */ /// Memory management operations - virtual void _add_ref (void); - virtual void _remove_ref (void); + virtual void _add_ref (); + virtual void _remove_ref (); - CORBA::Boolean _is_objref (void) const; + CORBA::Boolean _is_objref () const; /// Return the stub object - TAO_Stub *_stubobj (void) const; + TAO_Stub *_stubobj () const; /// Acessors - CORBA::Boolean _is_collocated (void) const; - TAO_Abstract_ServantBase *_servant (void) const; + CORBA::Boolean _is_collocated () const; + TAO_Abstract_ServantBase *_servant () const; /// Return the equivalent object reference. /** @@ -120,39 +115,32 @@ namespace CORBA * a var or some such thing. The memory is owned by @c this * object. */ - CORBA::Object_ptr equivalent_objref (void); + CORBA::Object_ptr equivalent_objref (); /// Wrapper for _remove_ref(), naming convention for /// templatizing. - void _decr_refcount (void); + void _decr_refcount (); protected: - - AbstractBase (void); + AbstractBase (); AbstractBase (const AbstractBase &); - virtual ~AbstractBase (void); + virtual ~AbstractBase (); protected: CORBA::Boolean is_objref_; private: - AbstractBase & operator= (const AbstractBase &); - virtual CORBA::ValueBase *_tao_to_value (void); + virtual CORBA::ValueBase *_tao_to_value (); CORBA::Object_ptr create_object (TAO_Stub *stub); private: - /// Number of outstanding references to this object. -#if defined (ACE_HAS_CPP11) std::atomic<uint32_t> refcount_; -#else - ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> refcount_; -#endif /* ACE_HAS_CPP11 */ CORBA::Boolean is_collocated_; TAO_Abstract_ServantBase *servant_; diff --git a/TAO/tao/Valuetype/AbstractBase_Invocation_Adapter.h b/TAO/tao/Valuetype/AbstractBase_Invocation_Adapter.h index 1b348223320..4522590249d 100644 --- a/TAO/tao/Valuetype/AbstractBase_Invocation_Adapter.h +++ b/TAO/tao/Valuetype/AbstractBase_Invocation_Adapter.h @@ -58,11 +58,10 @@ namespace TAO // Don't allow default initializations AbstractBase_Invocation_Adapter (void); - // Disallow copying and assignment. - AbstractBase_Invocation_Adapter (const AbstractBase_Invocation_Adapter &); - AbstractBase_Invocation_Adapter & operator= ( - const AbstractBase_Invocation_Adapter &); - + AbstractBase_Invocation_Adapter (const AbstractBase_Invocation_Adapter &) = delete; + AbstractBase_Invocation_Adapter & operator= (const AbstractBase_Invocation_Adapter &) = delete; + AbstractBase_Invocation_Adapter (AbstractBase_Invocation_Adapter &&) = delete; + AbstractBase_Invocation_Adapter & operator= (AbstractBase_Invocation_Adapter &&) = delete; }; } // End namespace TAO diff --git a/TAO/tao/Valuetype/ValueBase.cpp b/TAO/tao/Valuetype/ValueBase.cpp index dd0a46c847e..0f4f33161b6 100644 --- a/TAO/tao/Valuetype/ValueBase.cpp +++ b/TAO/tao/Valuetype/ValueBase.cpp @@ -1428,11 +1428,7 @@ CORBA::DefaultValueRefCountBase::_tao_remove_ref (void) CORBA::ULong CORBA::DefaultValueRefCountBase::_tao_refcount_value (void) const { -#if defined (ACE_HAS_CPP11) return this->refcount_; -#else - return this->refcount_.value (); -#endif /* ACE_HAS_CPP11 */ } // =========================================================== diff --git a/TAO/tao/Valuetype/ValueBase.h b/TAO/tao/Valuetype/ValueBase.h index 25a68b6e00a..add847fabef 100644 --- a/TAO/tao/Valuetype/ValueBase.h +++ b/TAO/tao/Valuetype/ValueBase.h @@ -30,11 +30,7 @@ #include "ace/Basic_Types.h" #include "ace/Synch_Traits.h" #include "ace/Thread_Mutex.h" -#if defined (ACE_HAS_CPP11) -# include <atomic> -#else -# include "ace/Atomic_Op.h" -#endif /* ACE_HAS_CPP11 */ +#include <atomic> #include "ace/Null_Mutex.h" #include "ace/Vector_T.h" @@ -147,12 +143,12 @@ namespace CORBA typedef ACE_Vector < ACE_CString > Repository_Id_List; - virtual CORBA::ValueBase* _copy_value (void) TAO_local_COPY_VALUE_IS_PURE; + virtual CORBA::ValueBase* _copy_value () TAO_local_COPY_VALUE_IS_PURE; // Reference counting. - virtual void _add_ref (void) = 0; - virtual void _remove_ref (void) = 0; - virtual CORBA::ULong _refcount_value (void) = 0; + virtual void _add_ref () = 0; + virtual void _remove_ref () = 0; + virtual CORBA::ULong _refcount_value () = 0; // dynamic casting static CORBA::ValueBase* _downcast (CORBA::ValueBase *); @@ -161,10 +157,10 @@ namespace CORBA /// Used in the implementation of CORBA::Any static void _tao_any_destructor (void *); - virtual CORBA::TypeCode_ptr _tao_type (void) const = 0; + virtual CORBA::TypeCode_ptr _tao_type () const = 0; /// Return the repository id of this valuetype. - virtual const char * _tao_obv_repository_id (void) const = 0; + virtual const char * _tao_obv_repository_id () const = 0; /// Give the list of the RepositoryIds in the valuetype "truncatable" /// inheritance hierarchy. List the id of this valuetype as first @@ -238,9 +234,9 @@ namespace CORBA virtual void truncation_hook (); protected: - ValueBase (void); + ValueBase (); ValueBase (const ValueBase&); - virtual ~ValueBase (void); + virtual ~ValueBase (); /// This flag is set to be true when the valuetype defined /// in the idl has the truncatable parent. @@ -327,18 +323,18 @@ namespace CORBA : public virtual ValueBase { public: - virtual void _add_ref (void); - virtual void _remove_ref (void); - virtual CORBA::ULong _refcount_value (void); + virtual void _add_ref (); + virtual void _remove_ref (); + virtual CORBA::ULong _refcount_value (); /// The _tao variants are inline for fast access from T_var /// (if valuetype T is compiled with optimization for that.) %! (todo) - void _tao_add_ref (void); - void _tao_remove_ref (void); - CORBA::ULong _tao_refcount_value (void) const; + void _tao_add_ref (); + void _tao_remove_ref (); + CORBA::ULong _tao_refcount_value () const; protected: - DefaultValueRefCountBase (void); + DefaultValueRefCountBase (); DefaultValueRefCountBase (const DefaultValueRefCountBase&); virtual ~DefaultValueRefCountBase (); @@ -347,11 +343,7 @@ namespace CORBA private: // data /// Reference counter. -#if defined (ACE_HAS_CPP11) std::atomic<uint32_t> refcount_; -#else - ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> refcount_; -#endif /* ACE_HAS_CPP11 */ }; // DefaultValueRefCountBase // which lock has the lowest memory overhead ? diff --git a/TAO/tao/Valuetype/ValueFactory.h b/TAO/tao/Valuetype/ValueFactory.h index 6003f803086..ddfafde6f4c 100644 --- a/TAO/tao/Valuetype/ValueFactory.h +++ b/TAO/tao/Valuetype/ValueFactory.h @@ -26,11 +26,7 @@ #include "ace/Synch_Traits.h" #include "ace/Thread_Mutex.h" #include "ace/Null_Mutex.h" -#if defined (ACE_HAS_CPP11) -# include <atomic> -#else -# include "ace/Atomic_Op.h" -#endif /* ACE_HAS_CPP11 */ +#include <atomic> TAO_BEGIN_VERSIONED_NAMESPACE_DECL @@ -54,29 +50,25 @@ namespace CORBA class TAO_Valuetype_Export ValueFactoryBase { public: - ValueFactoryBase (void); - virtual ~ValueFactoryBase (void); + ValueFactoryBase (); + virtual ~ValueFactoryBase (); // non-virtual is non-standard - void _add_ref (void); - void _remove_ref (void); + void _add_ref (); + void _remove_ref (); // private: %! /// In a derived class T use return type TAO_OBV_CREATE_RETURN_TYPE (T) /// (see at definition below) - virtual CORBA::ValueBase * create_for_unmarshal (void) = 0; + virtual CORBA::ValueBase * create_for_unmarshal () = 0; /// Not pure virtual because this will be overridden only by valuetypes /// that support an abstract interface. - virtual CORBA::AbstractBase_ptr create_for_unmarshal_abstract (void); + virtual CORBA::AbstractBase_ptr create_for_unmarshal_abstract (); private: /// Reference counter. -#if defined (ACE_HAS_CPP11) std::atomic<uint32_t> refcount_; -#else - ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> refcount_; -#endif /* ACE_HAS_CPP11 */ }; } // End CORBA namespace diff --git a/TAO/tao/Valuetype/Value_VarOut_T.h b/TAO/tao/Valuetype/Value_VarOut_T.h index 07e3818c5f9..0a5e67ec072 100644 --- a/TAO/tao/Valuetype/Value_VarOut_T.h +++ b/TAO/tao/Valuetype/Value_VarOut_T.h @@ -42,19 +42,19 @@ template <typename T> class TAO_Value_Var_T : private TAO_Base_var { public: - TAO_Value_Var_T (void); + TAO_Value_Var_T (); TAO_Value_Var_T (T *); TAO_Value_Var_T (const TAO_Value_Var_T<T> &); // (TAO extension) TAO_Value_Var_T (const T *); - ~TAO_Value_Var_T (void); + ~TAO_Value_Var_T (); TAO_Value_Var_T &operator= (T *); TAO_Value_Var_T &operator= (const TAO_Value_Var_T<T> &); - T * operator-> (void) const; + T * operator-> () const; operator const T * () const; operator T *& (); @@ -65,13 +65,13 @@ public: typedef T * _retn_type; // in, inout, out, _retn - _in_type in (void) const; - _inout_type inout (void); - _out_type out (void); - _retn_type _retn (void); + _in_type in () const; + _inout_type inout (); + _out_type out (); + _retn_type _retn (); // (TAO extension) - T * ptr (void) const; + T * ptr () const; private: @@ -100,9 +100,9 @@ public: TAO_Value_Out_T &operator= (T *); operator T *& (); - T *& ptr (void); + T *& ptr (); - T * operator-> (void); + T * operator-> (); private: T *& ptr_; diff --git a/TAO/tao/Valuetype/Valuetype_Adapter_Factory_Impl.h b/TAO/tao/Valuetype/Valuetype_Adapter_Factory_Impl.h index d2c013cf17d..0b8ab48fe36 100644 --- a/TAO/tao/Valuetype/Valuetype_Adapter_Factory_Impl.h +++ b/TAO/tao/Valuetype/Valuetype_Adapter_Factory_Impl.h @@ -39,12 +39,12 @@ class TAO_Valuetype_Export TAO_Valuetype_Adapter_Factory_Impl : public TAO_Valuetype_Adapter_Factory { public: - virtual ~TAO_Valuetype_Adapter_Factory_Impl (void); + virtual ~TAO_Valuetype_Adapter_Factory_Impl (); - virtual TAO_Valuetype_Adapter * create (void); + virtual TAO_Valuetype_Adapter * create (); // Used to force the initialization of the ORB code. - static int Initializer (void); + static int Initializer (); }; static const int TAO_Requires_ValueType_Initializer = diff --git a/TAO/tao/Valuetype_Adapter.h b/TAO/tao/Valuetype_Adapter.h index db2f8c8539a..0b2dceb7b4f 100644 --- a/TAO/tao/Valuetype_Adapter.h +++ b/TAO/tao/Valuetype_Adapter.h @@ -51,7 +51,7 @@ class TAO_InputCDR; class TAO_Export TAO_Valuetype_Adapter : public ACE_Service_Object { public: - virtual ~TAO_Valuetype_Adapter (void); + virtual ~TAO_Valuetype_Adapter (); virtual CORBA::Object_ptr abstractbase_to_object ( CORBA::AbstractBase_ptr p) = 0; @@ -63,7 +63,7 @@ public: TAO_InputCDR &, CORBA::AbstractBase_ptr &) = 0; - virtual CORBA::Long type_info_single (void) const = 0; + virtual CORBA::Long type_info_single () const = 0; virtual CORBA::Boolean is_type_info_implied (CORBA::Long) const = 0; virtual CORBA::Boolean is_type_info_single (CORBA::Long) const = 0; diff --git a/TAO/tao/Valuetype_Adapter_Factory.h b/TAO/tao/Valuetype_Adapter_Factory.h index aa3cd1e5b91..3d90b5b5804 100644 --- a/TAO/tao/Valuetype_Adapter_Factory.h +++ b/TAO/tao/Valuetype_Adapter_Factory.h @@ -39,9 +39,9 @@ class TAO_Export TAO_Valuetype_Adapter_Factory : public ACE_Service_Object { public: - virtual ~TAO_Valuetype_Adapter_Factory (void); + virtual ~TAO_Valuetype_Adapter_Factory (); - virtual TAO_Valuetype_Adapter * create (void) = 0; + virtual TAO_Valuetype_Adapter * create () = 0; }; TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/tao/VarOut_T.h b/TAO/tao/VarOut_T.h index a10d9bbe404..857399b3332 100644 --- a/TAO/tao/VarOut_T.h +++ b/TAO/tao/VarOut_T.h @@ -33,24 +33,24 @@ template<typename T> class TAO_Var_Base_T { public: - TAO_Var_Base_T (void); + TAO_Var_Base_T (); TAO_Var_Base_T (T *); TAO_Var_Base_T (const TAO_Var_Base_T<T> &); - ~TAO_Var_Base_T (void); + ~TAO_Var_Base_T (); - T * operator-> (void); - const T * operator-> (void) const; + T * operator-> (); + const T * operator-> () const; typedef const T & _in_type; typedef T & _inout_type; // Common mapping for fixed and variable size types. - _in_type in (void) const; - _inout_type inout (void); + _in_type in () const; + _inout_type inout (); // TAO extension. - T * ptr (void) const; + T * ptr () const; operator T *& (); protected: @@ -67,7 +67,7 @@ template<typename T> class TAO_Fixed_Var_T : public TAO_Var_Base_T<T> { public: - TAO_Fixed_Var_T (void); + TAO_Fixed_Var_T (); TAO_Fixed_Var_T (T *); TAO_Fixed_Var_T (const TAO_Fixed_Var_T<T> &); @@ -88,8 +88,8 @@ public: typedef T _retn_type; // Mapping for fixed size types. - _out_type out (void); - _retn_type _retn (void); + _out_type out (); + _retn_type _retn (); }; /** @@ -102,7 +102,7 @@ template<typename T> class TAO_Var_Var_T : public TAO_Var_Base_T<T> { public: - TAO_Var_Var_T (void); + TAO_Var_Var_T (); TAO_Var_Var_T (T *); TAO_Var_Var_T (const TAO_Var_Var_T<T> &); @@ -117,8 +117,8 @@ public: typedef T * _retn_type; // Mapping for variable size types. - _out_type out (void); - _retn_type _retn (void); + _out_type out (); + _retn_type _retn (); }; /** @@ -141,8 +141,8 @@ public: TAO_Out_T &operator= (T *); operator T *& (); - T *& ptr (void); - T * operator-> (void); + T *& ptr (); + T * operator-> (); private: T *& ptr_; diff --git a/TAO/tao/Var_Array_Argument_T.h b/TAO/tao/Var_Array_Argument_T.h index 3a633f2d815..f83e7d86abb 100644 --- a/TAO/tao/Var_Array_Argument_T.h +++ b/TAO/tao/Var_Array_Argument_T.h @@ -40,7 +40,7 @@ namespace TAO #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - typename S_forany::_slice_type const * arg (void) const; + typename S_forany::_slice_type const * arg () const; protected: S_forany x_; @@ -59,9 +59,9 @@ namespace TAO { public: In_Var_Array_Clonable_Argument_T (const typename S_forany::_slice_type * x); - virtual ~In_Var_Array_Clonable_Argument_T (void); + virtual ~In_Var_Array_Clonable_Argument_T (); - virtual Argument* clone (void); + virtual Argument* clone (); private: bool is_clone_; @@ -85,7 +85,7 @@ namespace TAO #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - typename S_forany::_slice_type * arg (void); + typename S_forany::_slice_type * arg (); private: S_forany x_; @@ -109,7 +109,7 @@ namespace TAO #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - typename S_forany::_slice_type *& arg (void); + typename S_forany::_slice_type *& arg (); private: typename S_forany::_slice_type *& x_; @@ -127,16 +127,16 @@ namespace TAO class Ret_Var_Array_Argument_T : public RetArgument { public: - Ret_Var_Array_Argument_T (void); + Ret_Var_Array_Argument_T (); virtual CORBA::Boolean demarshal (TAO_InputCDR &); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - typename S_forany::_slice_type *& arg (void); + typename S_forany::_slice_type *& arg (); - typename S_forany::_slice_type * excp (void); - typename S_forany::_slice_type * retn (void); + typename S_forany::_slice_type * excp (); + typename S_forany::_slice_type * retn (); private: S_var x_; diff --git a/TAO/tao/Var_Size_Argument_T.h b/TAO/tao/Var_Size_Argument_T.h index d5425df51d5..404a03165a5 100644 --- a/TAO/tao/Var_Size_Argument_T.h +++ b/TAO/tao/Var_Size_Argument_T.h @@ -40,7 +40,7 @@ namespace TAO #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S const & arg (void) const; + S const & arg () const; protected: const S * x_; @@ -62,9 +62,9 @@ namespace TAO { public: In_Var_Size_Clonable_Argument_T (S const & x); - virtual ~In_Var_Size_Clonable_Argument_T (void); + virtual ~In_Var_Size_Clonable_Argument_T (); - virtual Argument* clone (void); + virtual Argument* clone (); private: bool is_clone_; @@ -88,7 +88,7 @@ namespace TAO #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S & arg (void); + S & arg (); private: S * x_; @@ -111,7 +111,7 @@ namespace TAO #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S *& arg (void); + S *& arg (); private: S *& x_; @@ -128,16 +128,16 @@ namespace TAO class Ret_Var_Size_Argument_T : public RetArgument { public: - Ret_Var_Size_Argument_T (void); + Ret_Var_Size_Argument_T (); virtual CORBA::Boolean demarshal (TAO_InputCDR &); #if TAO_HAS_INTERCEPTORS == 1 virtual void interceptor_value (CORBA::Any *any) const; #endif /* TAO_HAS_INTERCEPTORS == 1 */ - S *& arg (void); + S *& arg (); - S * excp (void); - S * retn (void); + S * excp (); + S * retn (); protected: typename S::_var_type x_; diff --git a/TAO/tao/Wait_Strategy.h b/TAO/tao/Wait_Strategy.h index 3c495b7da3d..34fdab5d184 100644 --- a/TAO/tao/Wait_Strategy.h +++ b/TAO/tao/Wait_Strategy.h @@ -46,7 +46,7 @@ public: explicit TAO_Wait_Strategy (TAO_Transport *transport); /// Destructor. - virtual ~TAO_Wait_Strategy (void); + virtual ~TAO_Wait_Strategy (); /** * The user is going to send a request, prepare any internal @@ -66,11 +66,11 @@ public: /// Register the handler needs with the reactor provided that it makes /// sense for the strategy. - virtual int register_handler (void) = 0; + virtual int register_handler () = 0; /// Returns a value to indicate whether the transport needs to set /// the socket on which it is waiting to non-blocking mode or not. - virtual bool non_blocking (void) const = 0; + virtual bool non_blocking () const = 0; /// Flag that indicates whether we can process requests while /// waiting for the reply. @@ -80,7 +80,7 @@ public: * Wait_On_LF_No_Upcall does not allow the client threads to process * requests while waiting for the reply. */ - virtual bool can_process_upcalls (void) const = 0; + virtual bool can_process_upcalls () const = 0; /// Method to support deffering an upcall event till later in /// cases where can_process_upcalls() returns false. @@ -91,7 +91,7 @@ public: virtual int defer_upcall (ACE_Event_Handler*); /// Get method for the flag - bool is_registered (void) const; + bool is_registered () const; /// Set method for the flag void is_registered (bool flag); diff --git a/TAO/tao/WrongTransactionC.h b/TAO/tao/WrongTransactionC.h index d0094a94f67..11ce0f2f73a 100644 --- a/TAO/tao/WrongTransactionC.h +++ b/TAO/tao/WrongTransactionC.h @@ -63,9 +63,9 @@ namespace CORBA { public: - WrongTransaction (void); + WrongTransaction (); WrongTransaction (const WrongTransaction &); - ~WrongTransaction (void); + ~WrongTransaction (); WrongTransaction &operator= (const WrongTransaction &); @@ -74,11 +74,11 @@ namespace CORBA static WrongTransaction *_downcast (CORBA::Exception *); static const WrongTransaction *_downcast (CORBA::Exception const *); - static CORBA::Exception *_alloc (void); + static CORBA::Exception *_alloc (); - virtual CORBA::Exception *_tao_duplicate (void) const; + virtual CORBA::Exception *_tao_duplicate () const; - virtual void _raise (void) const; + virtual void _raise () const; virtual void _tao_encode ( TAO_OutputCDR & @@ -91,7 +91,7 @@ namespace CORBA // TAO_IDL - Generated from // be\be_visitor_exception/exception_ch.cpp:129 - virtual CORBA::TypeCode_ptr _tao_type (void) const; + virtual CORBA::TypeCode_ptr _tao_type () const; }; #endif /* end #if !defined */ diff --git a/TAO/tao/default_environment.h b/TAO/tao/default_environment.h index 956f8559556..cedbe7c22c7 100644 --- a/TAO/tao/default_environment.h +++ b/TAO/tao/default_environment.h @@ -33,7 +33,7 @@ namespace CORBA /** * @note We tried with CORBA::default_environment() and others. */ -TAO_Export CORBA::Environment& TAO_default_environment (void); +TAO_Export CORBA::Environment& TAO_default_environment (); TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/tao/operation_details.h b/TAO/tao/operation_details.h index d42e66213d8..9d85feb2355 100644 --- a/TAO/tao/operation_details.h +++ b/TAO/tao/operation_details.h @@ -78,46 +78,46 @@ public: const CORBA::ULong ex_count = 0); /// Operation name - const char* opname (void) const; + const char* opname () const; /// Length of the operation name - CORBA::ULong opname_len (void) const; + CORBA::ULong opname_len () const; /// Return the flag that indicates whether the operation has any /// arguments - CORBA::Boolean argument_flag (void) const; - CORBA::Boolean in_argument_flag (void) const; + CORBA::Boolean argument_flag () const; + CORBA::Boolean in_argument_flag () const; /// Set the response flags void response_flags (CORBA::Octet flags); /// Get the response flags - CORBA::Octet response_flags (void) const; + CORBA::Octet response_flags () const; /// Accessors for the service context list - IOP::ServiceContextList &request_service_info (void); - const IOP::ServiceContextList &request_service_info (void) const; - IOP::ServiceContextList &reply_service_info (void); - const IOP::ServiceContextList &reply_service_info (void) const; + IOP::ServiceContextList &request_service_info (); + const IOP::ServiceContextList &request_service_info () const; + IOP::ServiceContextList &reply_service_info (); + const IOP::ServiceContextList &reply_service_info () const; /// Access the TAO_Service_Context - TAO_Service_Context &request_service_context (void); - const TAO_Service_Context &request_service_context (void) const; - TAO_Service_Context &reply_service_context (void); - const TAO_Service_Context &reply_service_context (void) const; + TAO_Service_Context &request_service_context (); + const TAO_Service_Context &request_service_context () const; + TAO_Service_Context &reply_service_context (); + const TAO_Service_Context &reply_service_context () const; /// Reset the contents of the service context lists that we hold. - void reset_request_service_info (void); - void reset_reply_service_info (void); + void reset_request_service_info (); + void reset_reply_service_info (); /// Cache the request id. void request_id (CORBA::ULong id); /// Return the request ID associated with the operation - CORBA::ULong request_id (void) const; + CORBA::ULong request_id () const; /// Accessor method for the addressing mode - TAO_Target_Specification::TAO_Target_Address addressing_mode (void) const; + TAO_Target_Specification::TAO_Target_Address addressing_mode () const; /// Set method for the addressing mode void addressing_mode (CORBA::Short addr); @@ -148,30 +148,30 @@ public: bool demarshal_args (TAO_InputCDR &cdr); /// Accessors for the argument list - TAO::Argument ** args (void) const; - CORBA::ULong args_num (void) const ; + TAO::Argument ** args () const; + CORBA::ULong args_num () const ; /// Exception count - CORBA::ULong ex_count (void) const; + CORBA::ULong ex_count () const; - TAO::Exception_Data const * ex_data (void) const; + TAO::Exception_Data const * ex_data () const; - CORBA::Boolean use_stub_args (void) const; + CORBA::Boolean use_stub_args () const; void use_stub_args (CORBA::Boolean use_stub_arguments); #if TAO_HAS_INTERCEPTORS == 1 void ft_expiration_time (TimeBase::TimeT time); - TimeBase::TimeT ft_expiration_time (void) const; + TimeBase::TimeT ft_expiration_time () const; void ft_retention_id (CORBA::Long request_id); - CORBA::Long ft_retention_id (void) const; + CORBA::Long ft_retention_id () const; #endif /*TAO_HAS_INTERCEPTORS == 1*/ /// Accessor for cac_ pointer. - TAO::Collocated_Arguments_Converter *cac (void) const; + TAO::Collocated_Arguments_Converter *cac () const; void cac (TAO::Collocated_Arguments_Converter *cac); - TAO_Reply_Dispatcher *reply_dispatcher (void) const; + TAO_Reply_Dispatcher *reply_dispatcher () const; void reply_dispatcher (TAO_Reply_Dispatcher *rd); private: diff --git a/TAO/tao/params.h b/TAO/tao/params.h index 891e828d415..fe06a81b545 100644 --- a/TAO/tao/params.h +++ b/TAO/tao/params.h @@ -55,7 +55,7 @@ public: typedef ACE_Array_Map<ACE_CString, ACE_CString> endpoints_map_type; /// Constructor. - TAO_ORB_Parameters (void); + TAO_ORB_Parameters (); /// Specifies the endpoints on which this server is willing to /// listen for requests. @@ -70,41 +70,41 @@ public: /// Get/Set address:port for Multicast Discovery Protocol for /// the Naming Service. - const char *mcast_discovery_endpoint (void) const; + const char *mcast_discovery_endpoint () const; void mcast_discovery_endpoint (const char *mde); /// Set/Get the size to be used for a socket's receive buffer. - int sock_rcvbuf_size (void) const; + int sock_rcvbuf_size () const; void sock_rcvbuf_size (int); /// Set/Get the size to be used for a socket's send buffer. - int sock_sndbuf_size (void) const; + int sock_sndbuf_size () const; void sock_sndbuf_size (int); /// Set/Get the status of whether to use TCP_NODELAY or not. - int nodelay (void) const; + int nodelay () const; void nodelay (int); /// Set/Get whether we should set SO_KEEPALIVE on the socket or not. - int sock_keepalive (void); + int sock_keepalive (); void sock_keepalive (int); /// Set/Get whether we should set SO_DONTROUTE on the socket or not. - int sock_dontroute (void); + int sock_dontroute (); void sock_dontroute (int); /// Set/Get the number of hops to be used for datagrams sent through socket. - int ip_hoplimit (void); + int ip_hoplimit (); void ip_hoplimit (int); /// Set/Get whether we should set IP_MULTICAST_LOOP on the socket or not. - bool ip_multicastloop (void); + bool ip_multicastloop (); void ip_multicastloop (bool); /// Set/Get client side port span values - u_short iiop_client_port_base (void); + u_short iiop_client_port_base (); void iiop_client_port_base (u_short); - u_short iiop_client_port_span (void); + u_short iiop_client_port_span (); void iiop_client_port_span (u_short); /** @@ -113,7 +113,7 @@ public: * octet sequence is small enough and there is room in the current * message block it is more efficient just to copy the buffer. */ - int cdr_memcpy_tradeoff (void) const; + int cdr_memcpy_tradeoff () const; void cdr_memcpy_tradeoff (int); /** @@ -121,36 +121,36 @@ public: * kicks in. */ //@{ - ACE_CDR::ULong max_message_size (void) const; + ACE_CDR::ULong max_message_size () const; void max_message_size (ACE_CDR::ULong size); //@} /// The ORB will use the dotted decimal notation for addresses. By /// default we use the full ascii names. - int use_dotted_decimal_addresses (void) const; + int use_dotted_decimal_addresses () const; void use_dotted_decimal_addresses (int); /// The ORB will cache incoming connections against the dotted /// decimal form of the peer's address - int cache_incoming_by_dotted_decimal_address (void) const; + int cache_incoming_by_dotted_decimal_address () const; void cache_incoming_by_dotted_decimal_address (int); /// The ORB will turn off SO_LINGER if this is zero. - int linger (void) const; + int linger () const; void linger (int); /// The amount of time desired by the user to wait to accept /// connections after a particular type of accept() error. - time_t accept_error_delay (void) const; + time_t accept_error_delay () const; void accept_error_delay (time_t); /// Set/Get the Init Reference of an arbitrary ObjectID. - char *default_init_ref (void) const; + char *default_init_ref () const; void default_init_ref (const char *default_init_ref); /// Disable the OMG standard profile components, useful for /// homogenous environments. - bool std_profile_components (void) const; + bool std_profile_components () const; void std_profile_components (bool x); /// Scheduling policy. @@ -161,7 +161,7 @@ public: * ACE_Sched_Params::priority_min(). Legal values are ACE_SCHED_RR, * ACE_SCHED_FIFO, and ACE_SCHED_OTHER. */ - int ace_sched_policy (void) const; + int ace_sched_policy () const; void ace_sched_policy (int x); /// Scheduling policy flag. @@ -171,7 +171,7 @@ public: * thread creation functions. Legal values are THR_SCHED_RR, * THR_SCHED_FIFO, and THR_SCHED_DEFAULT. */ - long sched_policy (void) const; + long sched_policy () const; void sched_policy (long x); /// Scheduling scope flag. @@ -181,47 +181,47 @@ public: * thread creation functions. Legal values are THR_SCOPE_SYSTEM and * THR_SCOPE_PROCESS. */ - long scope_policy (void) const; + long scope_policy () const; void scope_policy (long x); /// Thread creation flags. /** * Shorthand for OR'ing together the scope_policy and sched_policy. */ - long thread_creation_flags (void) const; + long thread_creation_flags () const; /// Single read optimization. - int single_read_optimization (void) const; + int single_read_optimization () const; void single_read_optimization (int x); /// Create shared profiles without priority - int shared_profile (void) const; + int shared_profile () const; void shared_profile (int x); /// Want to use parallel connection attempts when profiles have multiple /// endpoints. - bool use_parallel_connects(void) const; + bool use_parallel_connects() const; void use_parallel_connects (bool x); /// The milliseconds delay used to stagger individual connection starts /// when using parallel connects. - unsigned long parallel_connect_delay (void) const; + unsigned long parallel_connect_delay () const; void parallel_connect_delay (unsigned long x); /// Mutators and accessors for rt_collocation_resolver - bool disable_rt_collocation_resolver (void) const; + bool disable_rt_collocation_resolver () const; void disable_rt_collocation_resolver (bool); /// Accepts the list of preferred interfaces and does a simple /// semantic check on the string before setting. Also the getter. bool preferred_interfaces (const char *s); - const char *preferred_interfaces (void) const; + const char *preferred_interfaces () const; /// Utility function called by the preferred interfaces setter static bool check_preferred_interfaces_string (const char *); void enforce_pref_interfaces (bool p); - bool enforce_pref_interfaces (void) const; + bool enforce_pref_interfaces () const; #if defined (ACE_HAS_IPV6) void prefer_ipv6_interfaces (bool p); @@ -235,49 +235,49 @@ public: #endif /* ACE_HAS_IPV6 */ void negotiate_codesets (bool c); - bool negotiate_codesets (void) const; + bool negotiate_codesets () const; void ami_collication (bool opt); - bool ami_collication (void) const; + bool ami_collication () const; void protocols_hooks_name (const char *s); - const char *protocols_hooks_name (void) const; + const char *protocols_hooks_name () const; void thread_lane_resources_manager_factory_name (const char *s); - const char *thread_lane_resources_manager_factory_name (void) const; + const char *thread_lane_resources_manager_factory_name () const; void dynamic_thread_pool_config_name (const char *s); - const char *dynamic_thread_pool_config_name (void) const; + const char *dynamic_thread_pool_config_name () const; void stub_factory_name (const char *s); - const char *stub_factory_name (void) const; + const char *stub_factory_name () const; void poa_factory_name (const char *s); - const char *poa_factory_name (void) const; + const char *poa_factory_name () const; void poa_factory_directive (const ACE_TCHAR *s); - const ACE_TCHAR *poa_factory_directive (void) const; + const ACE_TCHAR *poa_factory_directive () const; void endpoint_selector_factory_name (const char *s); - const char *endpoint_selector_factory_name (void) const; + const char *endpoint_selector_factory_name () const; void collocation_resolver_name (const char *s); - const char *collocation_resolver_name (void) const; + const char *collocation_resolver_name () const; void forward_invocation_on_object_not_exist (bool opt); - bool forward_invocation_on_object_not_exist (void) const; + bool forward_invocation_on_object_not_exist () const; void forward_on_exception_limit (const int ef, const int limit); void forward_on_exception_delay (const ACE_Time_Value &delay); - TAO::Invocation_Retry_Params &invocation_retry_params (void); - const TAO::Invocation_Retry_Params &invocation_retry_params (void) const; + TAO::Invocation_Retry_Params &invocation_retry_params (); + const TAO::Invocation_Retry_Params &invocation_retry_params () const; void forward_once_exception (const int ef); int forward_once_exception () const; void allow_ziop_no_server_policies (bool opt); - bool allow_ziop_no_server_policies (void) const; + bool allow_ziop_no_server_policies () const; private: /// Each "endpoint" is of the form: diff --git a/TAO/tao/target_specification.h b/TAO/tao/target_specification.h index f8f816ec7fd..b4dc72e825b 100644 --- a/TAO/tao/target_specification.h +++ b/TAO/tao/target_specification.h @@ -56,7 +56,7 @@ class TAO_Export TAO_Target_Specification public: /// Ctor - TAO_Target_Specification (void); + TAO_Target_Specification (); enum TAO_Target_Address { // Note that this could be extended for other protocols @@ -86,14 +86,14 @@ public: * the stored specifier is not of the right type then this would * return a NULL */ - const TAO::ObjectKey* object_key (void); + const TAO::ObjectKey* object_key (); /** * Returns the IOP::TaggedProfile after a check of the stored specifier. If * the stored specifier is not of the right type then this would * return a NULL */ - const IOP::TaggedProfile *profile (void); + const IOP::TaggedProfile *profile (); /** * Returns a pointer to IOP::IOR through the parameters and the @@ -104,7 +104,7 @@ public: CORBA::ULong iop_ior (IOP::IOR *&ior); /// Access the TArget_Address specifier - TAO_Target_Address specifier (void); + TAO_Target_Address specifier (); private: /// The union of all the possibilities diff --git a/TAO/tao/varbase.h b/TAO/tao/varbase.h index b07f0c1f906..6cb0b769609 100644 --- a/TAO/tao/varbase.h +++ b/TAO/tao/varbase.h @@ -31,7 +31,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL class TAO_Base_var { public: - TAO_Base_var (void) {} + TAO_Base_var () {} private: diff --git a/TAO/tests/BiDirectional_NestedUpcall/README b/TAO/tests/BiDirectional_NestedUpcall/README index 3aa2e88e6e2..d6c6e88c475 100644 --- a/TAO/tests/BiDirectional_NestedUpcall/README +++ b/TAO/tests/BiDirectional_NestedUpcall/README @@ -1,5 +1,3 @@ - - This test is similar to the $TAO_ROOT/tests/BiDirectional test. The only difference being that the server as a part of the upcall sends a bunch of remote calls, to show some nested upcall behaviour. diff --git a/TAO/tests/Portable_Interceptors/Dynamic/Echo_Client_ORBInitializer.cpp b/TAO/tests/Portable_Interceptors/Dynamic/Echo_Client_ORBInitializer.cpp index 2af09d07db9..a51d948d3a1 100644 --- a/TAO/tests/Portable_Interceptors/Dynamic/Echo_Client_ORBInitializer.cpp +++ b/TAO/tests/Portable_Interceptors/Dynamic/Echo_Client_ORBInitializer.cpp @@ -5,6 +5,10 @@ #include "client_interceptor.h" +Echo_Client_ORBInitializer::Echo_Client_ORBInitializer (int& result) : result_ (result) +{ +} + void Echo_Client_ORBInitializer::pre_init ( PortableInterceptor::ORBInitInfo_ptr) @@ -21,14 +25,13 @@ Echo_Client_ORBInitializer::post_init ( // Install the Echo client request interceptor ACE_NEW_THROW_EX (interceptor, - Echo_Client_Request_Interceptor, + Echo_Client_Request_Interceptor (this->result_), CORBA::NO_MEMORY ()); PortableInterceptor::ClientRequestInterceptor_var client_interceptor = interceptor; info->add_client_request_interceptor (client_interceptor.in ()); - } #endif /* TAO_HAS_INTERCEPTORS == 1 */ diff --git a/TAO/tests/Portable_Interceptors/Dynamic/Echo_Client_ORBInitializer.h b/TAO/tests/Portable_Interceptors/Dynamic/Echo_Client_ORBInitializer.h index 84cdaa3c472..4a6ed849fed 100644 --- a/TAO/tests/Portable_Interceptors/Dynamic/Echo_Client_ORBInitializer.h +++ b/TAO/tests/Portable_Interceptors/Dynamic/Echo_Client_ORBInitializer.h @@ -27,10 +27,14 @@ class Echo_Client_ORBInitializer : public virtual ::CORBA::LocalObject { public: + Echo_Client_ORBInitializer (int& result); virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info); virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info); + +private: + int& result_; }; #if defined(_MSC_VER) diff --git a/TAO/tests/Portable_Interceptors/Dynamic/Echo_Server_ORBInitializer.cpp b/TAO/tests/Portable_Interceptors/Dynamic/Echo_Server_ORBInitializer.cpp index 095a32b08e0..f50e351c6f2 100644 --- a/TAO/tests/Portable_Interceptors/Dynamic/Echo_Server_ORBInitializer.cpp +++ b/TAO/tests/Portable_Interceptors/Dynamic/Echo_Server_ORBInitializer.cpp @@ -5,6 +5,10 @@ #include "server_interceptor.h" +Echo_Server_ORBInitializer::Echo_Server_ORBInitializer (int& result) : result_ (result) +{ +} + void Echo_Server_ORBInitializer::pre_init ( PortableInterceptor::ORBInitInfo_ptr) @@ -21,7 +25,7 @@ Echo_Server_ORBInitializer::post_init ( // Install the Echo server request interceptor ACE_NEW_THROW_EX (interceptor, - Echo_Server_Request_Interceptor, + Echo_Server_Request_Interceptor (this->result_), CORBA::NO_MEMORY ()); PortableInterceptor::ServerRequestInterceptor_var diff --git a/TAO/tests/Portable_Interceptors/Dynamic/Echo_Server_ORBInitializer.h b/TAO/tests/Portable_Interceptors/Dynamic/Echo_Server_ORBInitializer.h index d2c2e6de155..c611cdf28eb 100644 --- a/TAO/tests/Portable_Interceptors/Dynamic/Echo_Server_ORBInitializer.h +++ b/TAO/tests/Portable_Interceptors/Dynamic/Echo_Server_ORBInitializer.h @@ -27,10 +27,14 @@ class Echo_Server_ORBInitializer : public virtual ::CORBA::LocalObject { public: + Echo_Server_ORBInitializer (int& result); virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info); virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info); + +private: + int& result_; }; #if defined(_MSC_VER) diff --git a/TAO/tests/Portable_Interceptors/Dynamic/README b/TAO/tests/Portable_Interceptors/Dynamic/README index 6f494bcdf76..a2e686c1941 100644 --- a/TAO/tests/Portable_Interceptors/Dynamic/README +++ b/TAO/tests/Portable_Interceptors/Dynamic/README @@ -1,5 +1,3 @@ - - This test allows you to visually check the correct invocation of TAO's pseudo-portable interceptors, especially the Dynamic interface. diff --git a/TAO/tests/Portable_Interceptors/Dynamic/client.cpp b/TAO/tests/Portable_Interceptors/Dynamic/client.cpp index c0153f9e365..0917bb12eaf 100644 --- a/TAO/tests/Portable_Interceptors/Dynamic/client.cpp +++ b/TAO/tests/Portable_Interceptors/Dynamic/client.cpp @@ -38,12 +38,10 @@ run_test (Test_Interceptors::Visual_ptr server) { CORBA::String_var msg; - server->normal (10, - msg.out ()); + server->normal (10, msg.out ()); CORBA::Long one = 1, two = 1, result = 0; - result = server->calculate (one, - two); + result = server->calculate (one, two); ACE_DEBUG ((LM_DEBUG, "calculate() result = %d\n", @@ -81,6 +79,8 @@ run_test (Test_Interceptors::Visual_ptr server) int ACE_TMAIN(int argc, ACE_TCHAR *argv[]) { + int result = 0; + try { #if TAO_HAS_INTERCEPTORS == 1 @@ -88,7 +88,7 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[]) PortableInterceptor::ORBInitializer::_nil (); ACE_NEW_RETURN (temp_initializer, - Echo_Client_ORBInitializer, + Echo_Client_ORBInitializer (result), -1); // No exceptions yet! PortableInterceptor::ORBInitializer_var orb_initializer = temp_initializer; @@ -128,5 +128,5 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[]) return 1; } - return 0; + return result; } diff --git a/TAO/tests/Portable_Interceptors/Dynamic/client_interceptor.cpp b/TAO/tests/Portable_Interceptors/Dynamic/client_interceptor.cpp index af4dab6e0b9..5249375a979 100644 --- a/TAO/tests/Portable_Interceptors/Dynamic/client_interceptor.cpp +++ b/TAO/tests/Portable_Interceptors/Dynamic/client_interceptor.cpp @@ -6,38 +6,32 @@ #include "tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.h" #include "ace/Log_Msg.h" -#include "ace/OS_NS_string.h" +#include <cstring> -Echo_Client_Request_Interceptor::Echo_Client_Request_Interceptor (void) - : myname_ ("Echo_Client_Interceptor") -{ -} - -Echo_Client_Request_Interceptor::~Echo_Client_Request_Interceptor () +Echo_Client_Request_Interceptor::Echo_Client_Request_Interceptor (int& result) + : result_ (result) { } char * -Echo_Client_Request_Interceptor::name (void) +Echo_Client_Request_Interceptor::name () { - return CORBA::string_dup (this->myname_); + return CORBA::string_dup ("Echo_Client_Interceptor"); } void -Echo_Client_Request_Interceptor::destroy (void) +Echo_Client_Request_Interceptor::destroy () { } void -Echo_Client_Request_Interceptor::send_poll ( - PortableInterceptor::ClientRequestInfo_ptr) +Echo_Client_Request_Interceptor::send_poll (PortableInterceptor::ClientRequestInfo_ptr) { // Do nothing } void -Echo_Client_Request_Interceptor::send_request ( - PortableInterceptor::ClientRequestInfo_ptr ri) +Echo_Client_Request_Interceptor::send_request (PortableInterceptor::ClientRequestInfo_ptr ri) { bool catched_exception = false; try @@ -45,13 +39,15 @@ Echo_Client_Request_Interceptor::send_request ( PortableInterceptor::ReplyStatus rstatus = ri->reply_status (); ACE_UNUSED_ARG (rstatus); } - catch (const ::CORBA::BAD_INV_ORDER&) + catch (const ::CORBA::BAD_INV_ORDER& ex) { - catched_exception = true; + // BAD_INV_ORDER should be thrown with minor code 14 + catched_exception = (ex.minor () == (CORBA::OMGVMCID | 14)); } if (!catched_exception) { + ++this->result_; ACE_ERROR ((LM_ERROR, "(%P|%t) ERROR, no exception when getting reply status\n")); } @@ -64,17 +60,15 @@ Echo_Client_Request_Interceptor::send_request ( op.in ())); // For the "normal" operation, get the argument list. - if (ACE_OS::strcmp (op.in (), - "normal") == 0) + if (std::strcmp (op.in (), "normal") == 0) { - Dynamic::ParameterList_var paramlist = - ri->arguments (); + Dynamic::ParameterList_var paramlist = ri->arguments (); if (paramlist->length () != 2) { + ++this->result_; ACE_ERROR ((LM_ERROR, "(%P|%t) All parameters not available\n")); - } CORBA::ULong first = 0, second = 1; // If you dont understand @@ -92,6 +86,7 @@ Echo_Client_Request_Interceptor::send_request ( if (param != 10) { + ++this->result_; ACE_ERROR ((LM_ERROR, "(%P|%t) ERROR in send_request while checking " "the value of the extracted " @@ -101,6 +96,7 @@ Echo_Client_Request_Interceptor::send_request ( CORBA::TypeCode_var second_typecode = paramlist[second].argument.type (); if (second_typecode->kind () != CORBA::tk_null) { + ++this->result_; ACE_ERROR ((LM_ERROR, "(%P|%t) ERROR in send_request while checking " "the type of the extracted out" @@ -110,10 +106,8 @@ Echo_Client_Request_Interceptor::send_request ( } void -Echo_Client_Request_Interceptor::receive_other ( - PortableInterceptor::ClientRequestInfo_ptr ri) +Echo_Client_Request_Interceptor::receive_other (PortableInterceptor::ClientRequestInfo_ptr ri) { - CORBA::String_var op = ri->operation (); ACE_DEBUG ((LM_DEBUG, @@ -123,8 +117,7 @@ Echo_Client_Request_Interceptor::receive_other ( } void -Echo_Client_Request_Interceptor::receive_reply ( - PortableInterceptor::ClientRequestInfo_ptr ri) +Echo_Client_Request_Interceptor::receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri) { CORBA::String_var op = ri->operation (); @@ -134,11 +127,9 @@ Echo_Client_Request_Interceptor::receive_reply ( op.in ())); // For the "normal" operation, get the argument list. - if (ACE_OS::strcmp (op.in (), - "normal") == 0) + if (std::strcmp (op.in (), "normal") == 0) { - Dynamic::ParameterList_var paramlist = - ri->arguments (); + Dynamic::ParameterList_var paramlist = ri->arguments (); if (paramlist->length () != 2) { @@ -153,6 +144,7 @@ Echo_Client_Request_Interceptor::receive_reply ( if (paramlist[first].mode != CORBA::PARAM_IN || paramlist[second].mode != CORBA::PARAM_OUT) { + ++this->result_; ACE_ERROR ((LM_ERROR, "(%P|%t) ERROR in the extracted argument list\n")); } @@ -162,6 +154,7 @@ Echo_Client_Request_Interceptor::receive_reply ( if (param != 10) { + ++this->result_; ACE_ERROR ((LM_ERROR, "(%P|%t) ERROR in send_request while checking " "the value of the extracted " @@ -174,9 +167,9 @@ Echo_Client_Request_Interceptor::receive_reply ( CORBA::String_var transfer (str); - if (ACE_OS::strcmp (str, - "DO_NOT_INSULT_MY_INTELLIGENCE") != 0) + if (std::strcmp (str, "DO_NOT_INSULT_MY_INTELLIGENCE") != 0) { + ++this->result_; ACE_ERROR ((LM_ERROR, "(%P|%t) ERROR in send_request while checking " "the value of the extracted " @@ -184,10 +177,9 @@ Echo_Client_Request_Interceptor::receive_reply ( } } - if (ACE_OS::strcmp (op.in (), "calculate") == 0) + if (std::strcmp (op.in (), "calculate") == 0) { - Dynamic::ParameterList_var paramlist = - ri->arguments (); + Dynamic::ParameterList_var paramlist = ri->arguments (); CORBA::Long param1, param2, result; CORBA::ULong i = 0; // index -- explicitly used to avoid @@ -206,11 +198,11 @@ Echo_Client_Request_Interceptor::receive_reply ( result)); } - if (ACE_OS::strcmp (op.in (), "_get_the_structure") == 0) + if (std::strcmp (op.in (), "_get_the_structure") == 0) { CORBA::Any_var a = ri->result (); - const Test_Interceptors::Visual::VarLenStruct * v = 0; + const Test_Interceptors::Visual::VarLenStruct * v = nullptr; (a.in ()) >>= v; @@ -227,7 +219,6 @@ void Echo_Client_Request_Interceptor::receive_exception ( PortableInterceptor::ClientRequestInfo_ptr ri) { - CORBA::String_var op = ri->operation (); ACE_DEBUG ((LM_DEBUG, @@ -235,9 +226,7 @@ Echo_Client_Request_Interceptor::receive_exception ( "from \"%C\"\n", op.in ())); - - CORBA::String_var exception_id = - ri->received_exception_id (); + CORBA::String_var exception_id = ri->received_exception_id (); ACE_DEBUG ((LM_DEBUG, "Exception ID = %C\n", diff --git a/TAO/tests/Portable_Interceptors/Dynamic/client_interceptor.h b/TAO/tests/Portable_Interceptors/Dynamic/client_interceptor.h index 5e340799c91..939e199f681 100644 --- a/TAO/tests/Portable_Interceptors/Dynamic/client_interceptor.h +++ b/TAO/tests/Portable_Interceptors/Dynamic/client_interceptor.h @@ -15,40 +15,34 @@ #pragma warning(disable:4250) #endif /* _MSC_VER */ +/// Client-side echo interceptor. For checking interceptor visually only. class Echo_Client_Request_Interceptor : public virtual PortableInterceptor::ClientRequestInterceptor, public virtual ::CORBA::LocalObject { - // = Client-side echo interceptor. For checking interceptor visually only. public: + Echo_Client_Request_Interceptor (int& result); - Echo_Client_Request_Interceptor (void); - // ctor. - - virtual char * name (void); // Canonical name of the interceptor. + char * name () override; - virtual void destroy (void); + void destroy () override; - virtual void send_poll (PortableInterceptor::ClientRequestInfo_ptr); + void send_poll (PortableInterceptor::ClientRequestInfo_ptr) override; - virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri); + void send_request (PortableInterceptor::ClientRequestInfo_ptr ri) override; - virtual void receive_other (PortableInterceptor::ClientRequestInfo_ptr); + void receive_other (PortableInterceptor::ClientRequestInfo_ptr) override; - virtual void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri); + void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri) override; - virtual void receive_exception ( - PortableInterceptor::ClientRequestInfo_ptr ri); + void receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri) override; protected: - - virtual ~Echo_Client_Request_Interceptor (void); - // dtor. + ~Echo_Client_Request_Interceptor () override = default; private: - const char *myname_; - + int& result_; }; #if defined(_MSC_VER) diff --git a/TAO/tests/Portable_Interceptors/Dynamic/run_test.pl b/TAO/tests/Portable_Interceptors/Dynamic/run_test.pl index 1113978c01a..3d1fb801bc5 100755 --- a/TAO/tests/Portable_Interceptors/Dynamic/run_test.pl +++ b/TAO/tests/Portable_Interceptors/Dynamic/run_test.pl @@ -52,7 +52,7 @@ if ($client->PutFile ($iorbase) == -1) { exit 1; } -$client_status = $CL->SpawnWaitKill ($server->ProcessStartWaitInterval() + 45); +$client_status = $CL->SpawnWaitKill ($server->ProcessStartWaitInterval()); if ($client_status != 0) { print STDERR "ERROR: client returned $client_status\n"; diff --git a/TAO/tests/Portable_Interceptors/Dynamic/server.cpp b/TAO/tests/Portable_Interceptors/Dynamic/server.cpp index 6ca15eecd4b..809cd868d40 100644 --- a/TAO/tests/Portable_Interceptors/Dynamic/server.cpp +++ b/TAO/tests/Portable_Interceptors/Dynamic/server.cpp @@ -2,7 +2,6 @@ #include "test_i.h" #include "Echo_Server_ORBInitializer.h" #include "ace/OS_NS_stdio.h" - #include "tao/ORBInitializer_Registry.h" const ACE_TCHAR *ior_output_file = ACE_TEXT("test.ior"); @@ -35,6 +34,7 @@ parse_args (int argc, ACE_TCHAR *argv[]) int ACE_TMAIN(int argc, ACE_TCHAR *argv[]) { + int result = 0; try { #if TAO_HAS_INTERCEPTORS == 1 @@ -42,7 +42,7 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[]) PortableInterceptor::ORBInitializer::_nil (); ACE_NEW_RETURN (temp_initializer, - Echo_Server_ORBInitializer, + Echo_Server_ORBInitializer (result), -1); // No exceptions yet! PortableInterceptor::ORBInitializer_var orb_initializer = temp_initializer; @@ -86,7 +86,7 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[]) CORBA::String_var ior = orb->object_to_string (server.in ()); - ACE_DEBUG ((LM_DEBUG, "Test_Interceptors::Visual: <%s>\n", ior.in ())); + ACE_DEBUG ((LM_DEBUG, "Test_Interceptors::Visual: <%C>\n", ior.in ())); // If the ior_output_file exists, output the ior to it if (ior_output_file != 0) @@ -115,5 +115,5 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[]) return 1; } - return 0; + return result; } diff --git a/TAO/tests/Portable_Interceptors/Dynamic/server_interceptor.cpp b/TAO/tests/Portable_Interceptors/Dynamic/server_interceptor.cpp index 4f12e95e2d5..20671f6c34b 100644 --- a/TAO/tests/Portable_Interceptors/Dynamic/server_interceptor.cpp +++ b/TAO/tests/Portable_Interceptors/Dynamic/server_interceptor.cpp @@ -6,32 +6,99 @@ #include "testC.h" #include "ace/Log_Msg.h" -#include "ace/OS_NS_string.h" +#include <cstring> -Echo_Server_Request_Interceptor::Echo_Server_Request_Interceptor (void) - : myname_ ("Echo_Server_Interceptor") -{ -} - -Echo_Server_Request_Interceptor::~Echo_Server_Request_Interceptor () +Echo_Server_Request_Interceptor::Echo_Server_Request_Interceptor (int& result) + : result_ (result) { } char * -Echo_Server_Request_Interceptor::name (void) +Echo_Server_Request_Interceptor::name () { - return CORBA::string_dup (this->myname_); + return CORBA::string_dup ("Echo_Server_Interceptor"); } void -Echo_Server_Request_Interceptor::destroy (void) +Echo_Server_Request_Interceptor::destroy () { } void Echo_Server_Request_Interceptor::receive_request_service_contexts ( - PortableInterceptor::ServerRequestInfo_ptr) + PortableInterceptor::ServerRequestInfo_ptr ri) { + bool catched_exception = false; + try + { + CORBA::String_var tmdi = ri->target_most_derived_interface (); + } + catch (const ::CORBA::BAD_INV_ORDER& ex) + { + // BAD_INV_ORDER should be thrown with minor code 14 + catched_exception = (ex.minor () == (CORBA::OMGVMCID | 14)); + } + + if (!catched_exception) + { + ++this->result_; + ACE_ERROR ((LM_ERROR, + "(%P|%t) ERROR, no exception when calling target_most_derived_interface from receive_request_service_contexts\n")); + } + + catched_exception = false; + try + { + CORBA::Boolean tmdi = ri->target_is_a ("FOO"); + } + catch (const ::CORBA::BAD_INV_ORDER& ex) + { + // BAD_INV_ORDER should be thrown with minor code 14 + catched_exception = (ex.minor () == (CORBA::OMGVMCID | 14)); + } + + if (!catched_exception) + { + ++this->result_; + ACE_ERROR ((LM_ERROR, + "(%P|%t) ERROR, no exception when calling target_is_a from receive_request_service_contexts\n")); + } + + catched_exception = false; + try + { + PortableInterceptor::ReplyStatus tmdi = ri->reply_status (); + } + catch (const ::CORBA::BAD_INV_ORDER& ex) + { + // BAD_INV_ORDER should be thrown with minor code 14 + catched_exception = (ex.minor () == (CORBA::OMGVMCID | 14)); + } + + if (!catched_exception) + { + ++this->result_; + ACE_ERROR ((LM_ERROR, + "(%P|%t) ERROR, no exception when calling reply_status from receive_request_service_contexts\n")); + } + + catched_exception = false; + try + { + Dynamic::ParameterList_var paramlist = ri->arguments (); + } + catch (const ::CORBA::BAD_INV_ORDER& ex) + { + // BAD_INV_ORDER should be thrown with minor code 14 + catched_exception = (ex.minor () == (CORBA::OMGVMCID | 14)); + } + + if (!catched_exception) + { + ++this->result_; + ACE_ERROR ((LM_ERROR, + "(%P|%t) ERROR, no exception when calling arguments from receive_request_service_contexts\n")); + } } void @@ -44,13 +111,15 @@ Echo_Server_Request_Interceptor::receive_request ( PortableInterceptor::ReplyStatus rstatus = ri->reply_status (); ACE_UNUSED_ARG (rstatus); } - catch (const ::CORBA::BAD_INV_ORDER&) + catch (const ::CORBA::BAD_INV_ORDER& ex) { - catched_exception = true; + // BAD_INV_ORDER should be thrown with minor code 14 + catched_exception = (ex.minor () == (CORBA::OMGVMCID | 14)); } if (!catched_exception) { + ++this->result_; ACE_ERROR ((LM_ERROR, "(%P|%t) ERROR, no exception when getting reply status\n")); } @@ -61,10 +130,26 @@ Echo_Server_Request_Interceptor::receive_request ( "Echo_Server_Request_Interceptor::receive_request from \"%C\"\n", op.in ())); - if (ACE_OS::strcmp (op.in (), "normal") == 0) + CORBA::Boolean targetisa = ri->target_is_a ("FOO"); + if (targetisa) { - Dynamic::ParameterList_var paramlist = - ri->arguments (); + ++this->result_; + ACE_ERROR ((LM_ERROR, + "(%P|%t) ERROR in receive_request while checking " + "target_is_a, it is not a FOO\n")); + } + targetisa = ri->target_is_a ("IDL:Test_Interceptors/Visual:1.0"); + if (!targetisa) + { + ++this->result_; + ACE_ERROR ((LM_ERROR, + "(%P|%t) ERROR in receive_request while checking " + "target_is_a, it should be IDL:Test_Interceptors/Visual:1.0\n")); + } + + if (std::strcmp (op.in (), "normal") == 0) + { + Dynamic::ParameterList_var paramlist = ri->arguments (); CORBA::Long param; CORBA::ULong i = 0; // index -- explicitly used to avoid @@ -79,6 +164,7 @@ Echo_Server_Request_Interceptor::receive_request ( CORBA::TypeCode_var second_typecode = paramlist[i].argument.type (); if (second_typecode->kind () != CORBA::tk_null) { + ++this->result_; ACE_ERROR ((LM_ERROR, "(%P|%t) ERROR in receive_request while checking " "the type of the extracted out" @@ -86,29 +172,51 @@ Echo_Server_Request_Interceptor::receive_request ( } } - CORBA::String_var tmdi = - ri->target_most_derived_interface (); + CORBA::String_var tmdi = ri->target_most_derived_interface (); ACE_DEBUG ((LM_DEBUG, "Target most derived interface: %C\n", tmdi.in ())); + + if (std::strcmp (tmdi.in (), "IDL:Test_Interceptors/Visual:1.0") != 0) + { + ++this->result_; + ACE_ERROR ((LM_ERROR, + "(%P|%t) ERROR in receive_request while checking " + "target_most_derived_interface\n")); + } + + catched_exception = false; + try + { + PortableInterceptor::ReplyStatus tmdi = ri->reply_status (); + } + catch (const ::CORBA::BAD_INV_ORDER& ex) + { + // BAD_INV_ORDER should be thrown with minor code 14 + catched_exception = (ex.minor () == (CORBA::OMGVMCID | 14)); + } + + if (!catched_exception) + { + ++this->result_; + ACE_ERROR ((LM_ERROR, + "(%P|%t) ERROR, no exception when calling reply_status from receive_request\n")); + } } void -Echo_Server_Request_Interceptor::send_reply ( - PortableInterceptor::ServerRequestInfo_ptr ri) +Echo_Server_Request_Interceptor::send_reply (PortableInterceptor::ServerRequestInfo_ptr ri) { - CORBA::String_var op = ri->operation (); ACE_DEBUG ((LM_DEBUG, "Echo_Server_Request_Interceptor::send_reply from \"%C\"\n", op.in ())); - if (ACE_OS::strcmp (op.in (), "normal") == 0) + if (std::strcmp (op.in (), "normal") == 0) { - Dynamic::ParameterList_var paramlist = - ri->arguments (); + Dynamic::ParameterList_var paramlist = ri->arguments (); CORBA::Long param; CORBA::ULong i = 0; // index -- explicitly used to avoid @@ -119,10 +227,9 @@ Echo_Server_Request_Interceptor::send_reply ( param)); } - if (ACE_OS::strcmp (op.in (), "calculate") == 0) + if (std::strcmp (op.in (), "calculate") == 0) { - Dynamic::ParameterList_var paramlist = - ri->arguments (); + Dynamic::ParameterList_var paramlist = ri->arguments (); CORBA::Long param1, param2, result = 0; CORBA::ULong i = 0; // index -- explicitly used to avoid @@ -146,7 +253,6 @@ void Echo_Server_Request_Interceptor::send_exception ( PortableInterceptor::ServerRequestInfo_ptr ri) { - CORBA::String_var op = ri->operation (); ACE_DEBUG ((LM_DEBUG, @@ -154,17 +260,15 @@ Echo_Server_Request_Interceptor::send_exception ( "from \"%C\"\n", op.in ())); - - CORBA::Any_var any = - ri->sending_exception (); + CORBA::Any_var any = ri->sending_exception (); CORBA::TypeCode_var type = any->type (); - const char *exception_id = type->id (); + CORBA::String_var exception_id = type->id (); ACE_DEBUG ((LM_DEBUG, "Exception ID = %C\n", - exception_id)); + exception_id.in ())); } void diff --git a/TAO/tests/Portable_Interceptors/Dynamic/server_interceptor.h b/TAO/tests/Portable_Interceptors/Dynamic/server_interceptor.h index da47f879f3a..b0a99af2ab6 100644 --- a/TAO/tests/Portable_Interceptors/Dynamic/server_interceptor.h +++ b/TAO/tests/Portable_Interceptors/Dynamic/server_interceptor.h @@ -15,38 +15,34 @@ #pragma warning(disable:4250) #endif /* _MSC_VER */ +/// Server-side echo interceptor. For checking interceptor visually only. class Echo_Server_Request_Interceptor : public PortableInterceptor::ServerRequestInterceptor, public virtual ::CORBA::LocalObject { - // = Server-side echo interceptor. For checking interceptor visually only. public: - Echo_Server_Request_Interceptor (void); - // cotr. + Echo_Server_Request_Interceptor (int& result); - virtual char * name (void); // Canonical name of the interceptor. + char * name () override; - virtual void destroy (void); + void destroy () override; - virtual void receive_request_service_contexts (PortableInterceptor::ServerRequestInfo_ptr); + void receive_request_service_contexts (PortableInterceptor::ServerRequestInfo_ptr) override; - virtual void receive_request (PortableInterceptor::ServerRequestInfo_ptr ri); + void receive_request (PortableInterceptor::ServerRequestInfo_ptr ri) override; - virtual void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri); + void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri) override; - virtual void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri); + void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri) override; - virtual void send_other (PortableInterceptor::ServerRequestInfo_ptr); + void send_other (PortableInterceptor::ServerRequestInfo_ptr) override; protected: - - virtual ~Echo_Server_Request_Interceptor (void); - // dotr. + ~Echo_Server_Request_Interceptor () override = default; private: - const char *myname_; - + int& result_; }; #if defined(_MSC_VER) diff --git a/TAO/tests/Portable_Interceptors/Dynamic/test_i.cpp b/TAO/tests/Portable_Interceptors/Dynamic/test_i.cpp index 540b0e2ebd3..600905ee3ce 100644 --- a/TAO/tests/Portable_Interceptors/Dynamic/test_i.cpp +++ b/TAO/tests/Portable_Interceptors/Dynamic/test_i.cpp @@ -4,7 +4,6 @@ Visual_i::Visual_i (CORBA::ORB_ptr orb) : orb_ (CORBA::ORB::_duplicate (orb)) { } - // ctor void Visual_i::normal (CORBA::Long arg, @@ -23,9 +22,9 @@ Visual_i::calculate (CORBA::Long one, } Test_Interceptors::Visual::VarLenStruct * -Visual_i::the_structure (void) +Visual_i::the_structure () { - Test_Interceptors::Visual::VarLenStruct * s; + Test_Interceptors::Visual::VarLenStruct * s = nullptr; ACE_NEW_THROW_EX (s, Test_Interceptors::Visual::VarLenStruct, @@ -40,21 +39,21 @@ Visual_i::the_structure (void) } void -Visual_i::user (void) +Visual_i::user () { ACE_DEBUG ((LM_DEBUG, "Visual::user, throwing Silly\n")); throw Test_Interceptors::Silly (); } void -Visual_i::system (void) +Visual_i::system () { ACE_DEBUG ((LM_DEBUG, "Visual::user, throwing INV_OBJREF\n")); throw CORBA::INV_OBJREF (); } void -Visual_i::shutdown (void) +Visual_i::shutdown () { this->orb_->shutdown (); } diff --git a/TAO/tests/Portable_Interceptors/Dynamic/test_i.h b/TAO/tests/Portable_Interceptors/Dynamic/test_i.h index 2e8230b8576..03d5177ae04 100644 --- a/TAO/tests/Portable_Interceptors/Dynamic/test_i.h +++ b/TAO/tests/Portable_Interceptors/Dynamic/test_i.h @@ -19,24 +19,20 @@ class Visual_i : public POA_Test_Interceptors::Visual public: Visual_i (CORBA::ORB_ptr orb); - virtual CORBA::Long calculate (CORBA::Long one, - CORBA::Long two); + CORBA::Long calculate (CORBA::Long one, CORBA::Long two) override; - void normal (CORBA::Long arg, - CORBA::String_out msg); + void normal (CORBA::Long arg, CORBA::String_out msg) override; - virtual Test_Interceptors::Visual::VarLenStruct * the_structure (); + Test_Interceptors::Visual::VarLenStruct * the_structure () override; - virtual void user (void); + void user () override; - virtual void system (void); + void system () override; - virtual void shutdown (void); + void shutdown () override; private: - CORBA::ORB_var orb_; - }; #endif /* TAO_INTERCEPTOR_TEST_I_H */ |