summaryrefslogtreecommitdiff
path: root/TAO
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2020-12-29 09:16:03 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2020-12-29 09:16:03 +0100
commit1d1caa2f5340920a93898f9e34cd1c5477400320 (patch)
treee15c34bf9476ee1687965b1eccd78bc316223813 /TAO
parent76c3b5473a9d0aa75e8f36522eff1a1307f89cf2 (diff)
parentdaabeb9bb2388926f610f93c987563ce596e091f (diff)
downloadATCD-1d1caa2f5340920a93898f9e34cd1c5477400320.tar.gz
Merge branch 'master' into test-corba-is-nil
Diffstat (limited to 'TAO')
-rw-r--r--TAO/ChangeLogs/ChangeLog-2000b2
-rw-r--r--TAO/ChangeLogs/ChangeLog-2001b4
-rw-r--r--TAO/ChangeLogs/ChangeLog-2001c4
-rw-r--r--TAO/ChangeLogs/ChangeLog-2002a14
-rw-r--r--TAO/ChangeLogs/ChangeLog-2002b8
-rw-r--r--TAO/ChangeLogs/ChangeLog-2002c10
-rw-r--r--TAO/ChangeLogs/ChangeLog-2003b8
-rw-r--r--TAO/ChangeLogs/ChangeLog-2003c6
-rw-r--r--TAO/ChangeLogs/ChangeLog-2003e12
-rw-r--r--TAO/ChangeLogs/ChangeLog-2004a6
-rw-r--r--TAO/ChangeLogs/ChangeLog-2004b2
-rw-r--r--TAO/ChangeLogs/ChangeLog-2005a4
-rw-r--r--TAO/ChangeLogs/ChangeLog-2005b2
-rw-r--r--TAO/ChangeLogs/TAO-2_5_12349
-rw-r--r--TAO/MPC/config/tao_rules.mpb5
-rw-r--r--TAO/MPC/config/taodefaults.mpb2
-rw-r--r--TAO/NEWS11
-rw-r--r--TAO/PROBLEM-REPORT-FORM4
-rw-r--r--TAO/TAO-INSTALL.html10
-rw-r--r--TAO/TAO_IDL/ast/ast_annotation_appl.cpp25
-rw-r--r--TAO/TAO_IDL/ast/ast_annotation_appls.cpp10
-rw-r--r--TAO/TAO_IDL/ast/ast_annotation_decl.cpp9
-rw-r--r--TAO/TAO_IDL/ast/ast_annotation_member.cpp9
-rw-r--r--TAO/TAO_IDL/ast/ast_argument.cpp10
-rw-r--r--TAO/TAO_IDL/ast/ast_array.cpp38
-rw-r--r--TAO/TAO_IDL/ast/ast_attribute.cpp76
-rw-r--r--TAO/TAO_IDL/ast/ast_check.cpp12
-rw-r--r--TAO/TAO_IDL/ast/ast_component.cpp62
-rw-r--r--TAO/TAO_IDL/ast/ast_component_fwd.cpp8
-rw-r--r--TAO/TAO_IDL/ast/ast_concrete_type.cpp5
-rw-r--r--TAO/TAO_IDL/ast/ast_connector.cpp21
-rw-r--r--TAO/TAO_IDL/ast/ast_constant.cpp36
-rw-r--r--TAO/TAO_IDL/ast/ast_consumes.cpp8
-rw-r--r--TAO/TAO_IDL/ast/ast_decl.cpp227
-rw-r--r--TAO/TAO_IDL/ast/ast_emits.cpp8
-rw-r--r--TAO/TAO_IDL/ast/ast_enum.cpp60
-rw-r--r--TAO/TAO_IDL/ast/ast_enum_val.cpp6
-rw-r--r--TAO/TAO_IDL/ast/ast_eventtype.cpp10
-rw-r--r--TAO/TAO_IDL/ast/ast_eventtype_fwd.cpp8
-rw-r--r--TAO/TAO_IDL/ast/ast_exception.cpp17
-rw-r--r--TAO/TAO_IDL/ast/ast_expression.cpp752
-rw-r--r--TAO/TAO_IDL/ast/ast_extended_port.cpp11
-rw-r--r--TAO/TAO_IDL/ast/ast_factory.cpp70
-rw-r--r--TAO/TAO_IDL/ast/ast_field.cpp20
-rw-r--r--TAO/TAO_IDL/ast/ast_finder.cpp10
-rw-r--r--TAO/TAO_IDL/ast/ast_fixed.cpp6
-rw-r--r--TAO/TAO_IDL/ast/ast_generator.cpp323
-rw-r--r--TAO/TAO_IDL/ast/ast_home.cpp70
-rw-r--r--TAO/TAO_IDL/ast/ast_interface.cpp205
-rw-r--r--TAO/TAO_IDL/ast/ast_interface_fwd.cpp52
-rw-r--r--TAO/TAO_IDL/ast/ast_mirror_port.cpp7
-rw-r--r--TAO/TAO_IDL/ast/ast_module.cpp123
-rw-r--r--TAO/TAO_IDL/ast/ast_native.cpp8
-rw-r--r--TAO/TAO_IDL/ast/ast_operation.cpp120
-rw-r--r--TAO/TAO_IDL/ast/ast_param_holder.cpp9
-rw-r--r--TAO/TAO_IDL/ast/ast_porttype.cpp20
-rw-r--r--TAO/TAO_IDL/ast/ast_predefined_type.cpp24
-rw-r--r--TAO/TAO_IDL/ast/ast_provides.cpp8
-rw-r--r--TAO/TAO_IDL/ast/ast_publishes.cpp8
-rw-r--r--TAO/TAO_IDL/ast/ast_recursive.cpp36
-rw-r--r--TAO/TAO_IDL/ast/ast_root.cpp31
-rw-r--r--TAO/TAO_IDL/ast/ast_sequence.cpp35
-rw-r--r--TAO/TAO_IDL/ast/ast_string.cpp22
-rw-r--r--TAO/TAO_IDL/ast/ast_structure.cpp83
-rw-r--r--TAO/TAO_IDL/ast/ast_structure_fwd.cpp20
-rw-r--r--TAO/TAO_IDL/ast/ast_template_module.cpp57
-rw-r--r--TAO/TAO_IDL/ast/ast_template_module_inst.cpp16
-rw-r--r--TAO/TAO_IDL/ast/ast_template_module_ref.cpp20
-rw-r--r--TAO/TAO_IDL/ast/ast_type.cpp82
-rw-r--r--TAO/TAO_IDL/ast/ast_typedef.cpp26
-rw-r--r--TAO/TAO_IDL/ast/ast_union.cpp152
-rw-r--r--TAO/TAO_IDL/ast/ast_union_branch.cpp18
-rw-r--r--TAO/TAO_IDL/ast/ast_union_fwd.cpp8
-rw-r--r--TAO/TAO_IDL/ast/ast_union_label.cpp12
-rw-r--r--TAO/TAO_IDL/ast/ast_uses.cpp10
-rw-r--r--TAO/TAO_IDL/ast/ast_valuebox.cpp10
-rw-r--r--TAO/TAO_IDL/ast/ast_valuetype.cpp90
-rw-r--r--TAO/TAO_IDL/ast/ast_valuetype_fwd.cpp8
-rw-r--r--TAO/TAO_IDL/ast/ast_visitor.cpp4
-rw-r--r--TAO/TAO_IDL/ast/ast_visitor_context.cpp12
-rw-r--r--TAO/TAO_IDL/ast/ast_visitor_reifying.cpp65
-rw-r--r--TAO/TAO_IDL/ast/ast_visitor_tmpl_module_inst.cpp210
-rw-r--r--TAO/TAO_IDL/ast/ast_visitor_tmpl_module_ref.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_argument.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_array.cpp52
-rw-r--r--TAO/TAO_IDL/be/be_attribute.cpp12
-rw-r--r--TAO/TAO_IDL/be/be_codegen.cpp310
-rw-r--r--TAO/TAO_IDL/be/be_component.cpp89
-rw-r--r--TAO/TAO_IDL/be/be_component_fwd.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_connector.cpp42
-rw-r--r--TAO/TAO_IDL/be/be_constant.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_consumes.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_decl.cpp152
-rw-r--r--TAO/TAO_IDL/be/be_emits.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_enum.cpp7
-rw-r--r--TAO/TAO_IDL/be/be_enum_val.cpp5
-rw-r--r--TAO/TAO_IDL/be/be_eventtype.cpp15
-rw-r--r--TAO/TAO_IDL/be/be_eventtype_fwd.cpp9
-rw-r--r--TAO/TAO_IDL/be/be_exception.cpp7
-rw-r--r--TAO/TAO_IDL/be/be_extended_port.cpp11
-rw-r--r--TAO/TAO_IDL/be/be_factory.cpp15
-rw-r--r--TAO/TAO_IDL/be/be_field.cpp12
-rw-r--r--TAO/TAO_IDL/be/be_finder.cpp11
-rw-r--r--TAO/TAO_IDL/be/be_fixed.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_generator.cpp304
-rw-r--r--TAO/TAO_IDL/be/be_global.cpp584
-rw-r--r--TAO/TAO_IDL/be/be_helper.cpp36
-rw-r--r--TAO/TAO_IDL/be/be_home.cpp41
-rw-r--r--TAO/TAO_IDL/be/be_identifier_helper.cpp16
-rw-r--r--TAO/TAO_IDL/be/be_init.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_interface.cpp411
-rw-r--r--TAO/TAO_IDL/be/be_interface_fwd.cpp12
-rw-r--r--TAO/TAO_IDL/be/be_mirror_port.cpp7
-rw-r--r--TAO/TAO_IDL/be/be_module.cpp5
-rw-r--r--TAO/TAO_IDL/be/be_native.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_null_return_emitter.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_operation.cpp21
-rw-r--r--TAO/TAO_IDL/be/be_param_holder.cpp7
-rw-r--r--TAO/TAO_IDL/be/be_porttype.cpp7
-rw-r--r--TAO/TAO_IDL/be/be_predefined_type.cpp20
-rw-r--r--TAO/TAO_IDL/be/be_produce.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_provides.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_publishes.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_root.cpp9
-rw-r--r--TAO/TAO_IDL/be/be_scope.cpp46
-rw-r--r--TAO/TAO_IDL/be/be_sequence.cpp114
-rw-r--r--TAO/TAO_IDL/be/be_string.cpp26
-rw-r--r--TAO/TAO_IDL/be/be_structure.cpp11
-rw-r--r--TAO/TAO_IDL/be/be_structure_fwd.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_template_module.cpp7
-rw-r--r--TAO/TAO_IDL/be/be_template_module_inst.cpp7
-rw-r--r--TAO/TAO_IDL/be/be_template_module_ref.cpp7
-rw-r--r--TAO/TAO_IDL/be/be_type.cpp82
-rw-r--r--TAO/TAO_IDL/be/be_typedef.cpp18
-rw-r--r--TAO/TAO_IDL/be/be_union.cpp33
-rw-r--r--TAO/TAO_IDL/be/be_union_branch.cpp20
-rw-r--r--TAO/TAO_IDL/be/be_union_fwd.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_union_label.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_uses.cpp14
-rw-r--r--TAO/TAO_IDL/be/be_util.cpp40
-rw-r--r--TAO/TAO_IDL/be/be_valuebox.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_valuetype.cpp103
-rw-r--r--TAO/TAO_IDL/be/be_valuetype_fwd.cpp9
-rw-r--r--TAO/TAO_IDL/be/be_visitor.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_amh_pre_proc.cpp124
-rw-r--r--TAO/TAO_IDL/be/be_visitor_ami_pre_proc.cpp164
-rw-r--r--TAO/TAO_IDL/be/be_visitor_any_extracted_type_decl.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_arg_traits.cpp42
-rw-r--r--TAO/TAO_IDL/be/be_visitor_argument/arglist.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_argument/argument.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_visitor_argument/invoke_cs.cpp20
-rw-r--r--TAO/TAO_IDL/be/be_visitor_argument/marshal_ss.cpp20
-rw-r--r--TAO/TAO_IDL/be/be_visitor_argument/upcall_ss.cpp20
-rw-r--r--TAO/TAO_IDL/be/be_visitor_argument/vardecl_ss.cpp32
-rw-r--r--TAO/TAO_IDL/be/be_visitor_array/any_op_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_array/any_op_cs.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_array/array.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_array/array_ch.cpp16
-rw-r--r--TAO/TAO_IDL/be/be_visitor_array/array_ci.cpp22
-rw-r--r--TAO/TAO_IDL/be/be_visitor_array/array_cs.cpp22
-rw-r--r--TAO/TAO_IDL/be/be_visitor_array/cdr_op_ch.cpp12
-rw-r--r--TAO/TAO_IDL/be/be_visitor_array/cdr_op_cs.cpp40
-rw-r--r--TAO/TAO_IDL/be/be_visitor_attr_assign.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_attr_init.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_attr_return.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_attr_setarg_type.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_attribute/attribute.cpp20
-rw-r--r--TAO/TAO_IDL/be/be_visitor_attribute/ccm_init.cpp16
-rw-r--r--TAO/TAO_IDL/be/be_visitor_attribute/set_from_extracted.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_ccm_pre_proc.cpp484
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/component.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/component_ami_rh_ex_base.cpp14
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/component_ami_rh_exh.cpp20
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/component_ami_rh_exs.cpp22
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/component_ex_idl.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/component_exh.cpp19
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/component_exs.cpp19
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/component_svh.cpp5
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/component_svs.cpp5
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/component_svth.cpp5
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/component_svts.cpp5
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/context_ex_idl.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/context_svth.cpp12
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/context_svts.cpp18
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/executor_ex_idl.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/executor_exh.cpp18
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/executor_exs.cpp26
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/executor_exs_attr_init.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/executor_private_exh.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/facet_exh.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/facet_exs.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/servant_svh.cpp34
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/servant_svs.cpp72
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component_fwd/any_op_ch.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component_fwd/cdr_op_ch.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component_fwd/component_fwd_ch.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component_scope.cpp24
-rw-r--r--TAO/TAO_IDL/be/be_visitor_connector/connector_ami_exh.cpp9
-rw-r--r--TAO/TAO_IDL/be/be_visitor_connector/connector_ami_exs.cpp9
-rw-r--r--TAO/TAO_IDL/be/be_visitor_connector/connector_dds_ex_base.cpp45
-rw-r--r--TAO/TAO_IDL/be/be_visitor_connector/connector_dds_exh.cpp26
-rw-r--r--TAO/TAO_IDL/be/be_visitor_connector/connector_dds_exs.cpp14
-rw-r--r--TAO/TAO_IDL/be/be_visitor_connector/executor_ami_exh.cpp16
-rw-r--r--TAO/TAO_IDL/be/be_visitor_connector/executor_ami_exs.cpp22
-rw-r--r--TAO/TAO_IDL/be/be_visitor_connector/facet_ami_exh.cpp46
-rw-r--r--TAO/TAO_IDL/be/be_visitor_connector/facet_ami_exs.cpp56
-rw-r--r--TAO/TAO_IDL/be/be_visitor_constant/constant_ch.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_constant/constant_cs.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_context.cpp74
-rw-r--r--TAO/TAO_IDL/be/be_visitor_dds_ts_idl.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_visitor_decl.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_enum/any_op_ch.cpp12
-rw-r--r--TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp12
-rw-r--r--TAO/TAO_IDL/be/be_visitor_enum/cdr_op_ch.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_enum/cdr_op_cs.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_enum/enum_cs.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_exception/any_op_ch.cpp14
-rw-r--r--TAO/TAO_IDL/be/be_visitor_exception/any_op_cs.cpp14
-rw-r--r--TAO/TAO_IDL/be/be_visitor_exception/cdr_op_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_exception/cdr_op_cs.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_exception/ctor_assign.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_visitor_exception/exception.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_exception/exception_ch.cpp16
-rw-r--r--TAO/TAO_IDL/be/be_visitor_exception/exception_ci.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp28
-rw-r--r--TAO/TAO_IDL/be/be_visitor_exception/exception_ctor.cpp32
-rw-r--r--TAO/TAO_IDL/be/be_visitor_field/cdr_op_ch.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_visitor_field/cdr_op_cs.cpp76
-rw-r--r--TAO/TAO_IDL/be/be_visitor_field/field_ch.cpp30
-rw-r--r--TAO/TAO_IDL/be/be_visitor_field/field_ci.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_visitor_field/field_cs.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_visitor_home/home_ex_idl.cpp30
-rw-r--r--TAO/TAO_IDL/be/be_visitor_home/home_exh.cpp27
-rw-r--r--TAO/TAO_IDL/be/be_visitor_home/home_exs.cpp27
-rw-r--r--TAO/TAO_IDL/be/be_visitor_home/home_svh.cpp25
-rw-r--r--TAO/TAO_IDL/be/be_visitor_home/home_svs.cpp33
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/amh_ch.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/amh_rh_sh.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/amh_rh_ss.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/amh_sh.cpp56
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/amh_ss.cpp28
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/ami4ccm_conn_ex_idl.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/ami4ccm_rh_ex_idl.cpp16
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/ami4ccm_sendc_ex_idl.cpp12
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/any_op_ch.cpp12
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/any_op_cs.cpp12
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/cdr_op_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/cdr_op_cs.cpp17
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/direct_proxy_impl_sh.cpp24
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/direct_proxy_impl_ss.cpp26
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/facet_svth.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/facet_svts.cpp12
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/interface.cpp16
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp55
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/interface_ci.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp61
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/interface_ex_idl.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/interface_ih.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/interface_is.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/interface_sh.cpp26
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp64
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/interface_svth.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/interface_svts.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_ch.cpp28
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_cs.cpp24
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/tie_sh.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/tie_ss.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface_fwd/any_op_ch.cpp12
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface_fwd/cdr_op_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface_fwd/interface_fwd_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_member_type_decl.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_module/any_op.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_module/cdr_op.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_module/module.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_module/module_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_module/module_ih.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_module/module_sh.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_native/native_ch.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_null_return_value.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/amh_rh_sh.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/amh_rh_ss.cpp24
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/amh_sh.cpp16
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/amh_ss.cpp24
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/ami_cs.cpp24
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/ami_handler_reply_stub_operation_cs.cpp18
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp16
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/argument.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/argument_invoke.cpp11
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/argument_marshal.cpp21
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/direct_proxy_impl_ss.cpp14
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/exceptlist_cs.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/exceptlist_ss.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/operation.cpp46
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/operation_ch.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/operation_cs.cpp18
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/operation_exs.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/operation_ih.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/operation_is.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/operation_sh.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/operation_ss.cpp22
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/operation_svs.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/proxy_impl_xh.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/rettype.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/rettype_return_cs.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/smart_proxy_ch.cpp9
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/smart_proxy_cs.cpp16
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/tie_sh.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/tie_ss.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/upcall_command_ss.cpp24
-rw-r--r--TAO/TAO_IDL/be/be_visitor_root/any_op.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_root/cdr_op.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_root/root.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_root/root_ch.cpp16
-rw-r--r--TAO/TAO_IDL/be/be_visitor_root/root_ci.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_root/root_cnh.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_root/root_cns.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_root/root_cs.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_root/root_ex_idl.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_root/root_exh.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_root/root_exs.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_root/root_ih.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_root/root_is.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_root/root_sh.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_root/root_ss.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_root/root_sth.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_root/root_svh.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_root/root_svs.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_root/root_svth.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_root/root_svts.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_scope.cpp40
-rw-r--r--TAO/TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp12
-rw-r--r--TAO/TAO_IDL/be/be_visitor_sequence/any_op_cs.cpp30
-rw-r--r--TAO/TAO_IDL/be/be_visitor_sequence/buffer_type.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_ch.cpp14
-rw-r--r--TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_cs.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_sequence/sequence_base.cpp12
-rw-r--r--TAO/TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp38
-rw-r--r--TAO/TAO_IDL/be/be_visitor_sequence/sequence_cs.cpp16
-rw-r--r--TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp16
-rw-r--r--TAO/TAO_IDL/be/be_visitor_structure/any_op_cs.cpp14
-rw-r--r--TAO/TAO_IDL/be/be_visitor_structure/cdr_op_ch.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_structure/cdr_op_cs.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_structure/structure.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_structure/structure_ch.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_structure/structure_ci.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_structure/structure_cs.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_structure_fwd/structure_fwd_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_template_export.cpp20
-rw-r--r--TAO/TAO_IDL/be/be_visitor_traits.cpp18
-rw-r--r--TAO/TAO_IDL/be/be_visitor_typecode/alias_typecode.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_typecode/enum_typecode.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_typecode/objref_typecode.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_typecode/struct_typecode.cpp16
-rw-r--r--TAO/TAO_IDL/be/be_visitor_typecode/typecode_decl.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_typecode/typecode_defn.cpp44
-rw-r--r--TAO/TAO_IDL/be/be_visitor_typecode/union_typecode.cpp22
-rw-r--r--TAO/TAO_IDL/be/be_visitor_typecode/value_typecode.cpp16
-rw-r--r--TAO/TAO_IDL/be/be_visitor_typedef/any_op_ch.cpp20
-rw-r--r--TAO/TAO_IDL/be/be_visitor_typedef/any_op_cs.cpp20
-rw-r--r--TAO/TAO_IDL/be/be_visitor_typedef/cdr_op_ch.cpp22
-rw-r--r--TAO/TAO_IDL/be/be_visitor_typedef/cdr_op_cs.cpp20
-rw-r--r--TAO/TAO_IDL/be/be_visitor_typedef/typedef.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_typedef/typedef_ch.cpp36
-rw-r--r--TAO/TAO_IDL/be/be_visitor_typedef/typedef_ci.cpp20
-rw-r--r--TAO/TAO_IDL/be/be_visitor_typedef/typedef_cs.cpp12
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union/any_op_ch.cpp20
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp20
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union/cdr_op_ch.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union/cdr_op_cs.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union/discriminant_ch.cpp16
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union/discriminant_ci.cpp16
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union/discriminant_cs.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union/union.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union/union_ch.cpp12
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union/union_ci.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union/union_cs.cpp16
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_ch.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_cs.cpp58
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp34
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union_branch/public_assign_cs.cpp72
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union_branch/public_ch.cpp76
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union_branch/public_ci.cpp108
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union_branch/public_constructor_cs.cpp42
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union_branch/public_cs.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union_branch/public_reset_cs.cpp88
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union_fwd/union_fwd_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuebox/cdr_op_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuebox/cdr_op_cs.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuebox/field_ch.cpp30
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuebox/field_ci.cpp34
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuebox/union_member_ci.cpp34
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuebox/valuebox.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ch.cpp78
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp68
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_cs.cpp28
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/any_op_ch.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/arglist.cpp24
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_cs.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/field_cdr_ch.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/field_cdr_cs.cpp68
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/field_ch.cpp78
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/field_ci.cpp18
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/field_cs.cpp78
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/marshal_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/marshal_cs.cpp20
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/obv_module.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype.cpp62
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp46
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ci.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_cs.cpp44
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_arglist_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_ch.cpp16
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_ci.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_cs.cpp16
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp22
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ci.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp50
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_sh.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ss.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype_fwd/cdr_op_ch.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype_fwd/valuetype_fwd_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_xplicit_pre_proc.cpp170
-rw-r--r--TAO/TAO_IDL/be_include/be_argument.h5
-rw-r--r--TAO/TAO_IDL/be_include/be_array.h12
-rw-r--r--TAO/TAO_IDL/be_include/be_attribute.h8
-rw-r--r--TAO/TAO_IDL/be_include/be_codegen.h120
-rw-r--r--TAO/TAO_IDL/be_include/be_component.h27
-rw-r--r--TAO/TAO_IDL/be_include/be_component_fwd.h8
-rw-r--r--TAO/TAO_IDL/be_include/be_connector.h14
-rw-r--r--TAO/TAO_IDL/be_include/be_constant.h5
-rw-r--r--TAO/TAO_IDL/be_include/be_consumes.h9
-rw-r--r--TAO/TAO_IDL/be_include/be_decl.h100
-rw-r--r--TAO/TAO_IDL/be_include/be_emits.h9
-rw-r--r--TAO/TAO_IDL/be_include/be_enum.h6
-rw-r--r--TAO/TAO_IDL/be_include/be_enum_val.h5
-rw-r--r--TAO/TAO_IDL/be_include/be_eventtype.h8
-rw-r--r--TAO/TAO_IDL/be_include/be_eventtype_fwd.h7
-rw-r--r--TAO/TAO_IDL/be_include/be_exception.h6
-rw-r--r--TAO/TAO_IDL/be_include/be_extended_port.h8
-rw-r--r--TAO/TAO_IDL/be_include/be_extern.h8
-rw-r--r--TAO/TAO_IDL/be_include/be_factory.h8
-rw-r--r--TAO/TAO_IDL/be_include/be_field.h10
-rw-r--r--TAO/TAO_IDL/be_include/be_finder.h8
-rw-r--r--TAO/TAO_IDL/be_include/be_fixed.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_global.h263
-rw-r--r--TAO/TAO_IDL/be_include/be_helper.h24
-rw-r--r--TAO/TAO_IDL/be_include/be_home.h9
-rw-r--r--TAO/TAO_IDL/be_include/be_interface.h41
-rw-r--r--TAO/TAO_IDL/be_include/be_interface_fwd.h7
-rw-r--r--TAO/TAO_IDL/be_include/be_mirror_port.h6
-rw-r--r--TAO/TAO_IDL/be_include/be_module.h6
-rw-r--r--TAO/TAO_IDL/be_include/be_native.h11
-rw-r--r--TAO/TAO_IDL/be_include/be_null_return_emitter.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_operation.h14
-rw-r--r--TAO/TAO_IDL/be_include/be_param_holder.h7
-rw-r--r--TAO/TAO_IDL/be_include/be_porttype.h7
-rw-r--r--TAO/TAO_IDL/be_include/be_predefined_type.h9
-rw-r--r--TAO/TAO_IDL/be_include/be_provides.h9
-rw-r--r--TAO/TAO_IDL/be_include/be_publishes.h9
-rw-r--r--TAO/TAO_IDL/be_include/be_root.h8
-rw-r--r--TAO/TAO_IDL/be_include/be_scope.h13
-rw-r--r--TAO/TAO_IDL/be_include/be_sequence.h20
-rw-r--r--TAO/TAO_IDL/be_include/be_string.h8
-rw-r--r--TAO/TAO_IDL/be_include/be_structure.h7
-rw-r--r--TAO/TAO_IDL/be_include/be_structure_fwd.h7
-rw-r--r--TAO/TAO_IDL/be_include/be_template_module.h7
-rw-r--r--TAO/TAO_IDL/be_include/be_template_module_inst.h7
-rw-r--r--TAO/TAO_IDL/be_include/be_template_module_ref.h7
-rw-r--r--TAO/TAO_IDL/be_include/be_type.h22
-rw-r--r--TAO/TAO_IDL/be_include/be_typedef.h12
-rw-r--r--TAO/TAO_IDL/be_include/be_union.h13
-rw-r--r--TAO/TAO_IDL/be_include/be_union_branch.h5
-rw-r--r--TAO/TAO_IDL/be_include/be_union_fwd.h7
-rw-r--r--TAO/TAO_IDL/be_include/be_union_label.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_uses.h9
-rw-r--r--TAO/TAO_IDL/be_include/be_util.h8
-rw-r--r--TAO/TAO_IDL/be_include/be_valuebox.h5
-rw-r--r--TAO/TAO_IDL/be_include/be_valuetype.h37
-rw-r--r--TAO/TAO_IDL/be_include/be_valuetype_fwd.h7
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_amh_pre_proc.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_ami_pre_proc.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_any_extracted_type_decl.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_arg_traits.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_argument/arglist.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_argument/argument.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_argument/invoke_cs.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_argument/marshal_ss.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_argument/upcall_ss.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_argument/vardecl_ss.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_array/any_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_array/any_op_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_array/array.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_array/array_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_array/array_ci.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_array/array_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_array/cdr_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_array/cdr_op_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_attr_assign.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_attr_init.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_attr_return.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_attr_setarg_type.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_attribute/attribute.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_attribute/ccm_init.h8
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_attribute/set_from_extracted.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_ccm_pre_proc.h8
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component/component.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component/component_ami_rh_ex_base.h6
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component/component_ami_rh_exh.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component/component_ami_rh_exs.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component/component_ex_idl.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component/component_exh.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component/component_exs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component/component_svh.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component/component_svs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component/component_svth.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component/component_svts.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component/context_ex_idl.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component/context_svth.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component/context_svts.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component/executor_ex_idl.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component/executor_exh.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component/executor_exs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component/executor_exs_attr_init.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component/executor_private_exh.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component/facet_exh.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component/facet_exs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component/servant_svh.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component/servant_svs.h38
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component_fwd/any_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component_fwd/cdr_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component_fwd/component_fwd_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_component_scope.h10
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_connector/connector_ami_exh.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_connector/connector_ami_exs.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_connector/connector_dds_ex_base.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_connector/connector_dds_exh.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_connector/connector_dds_exs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_connector/executor_ami_exh.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_connector/executor_ami_exs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_connector/facet_ami_exh.h6
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_connector/facet_ami_exs.h8
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_constant/constant_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_constant/constant_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_context.h34
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_dds_ts_idl.h6
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_decl.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_enum/any_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_enum/any_op_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_enum/cdr_op_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_enum/enum_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_enum/enum_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_exception/any_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_exception/any_op_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_exception/cdr_op_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_exception/ctor.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_exception/ctor_assign.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_exception/exception.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_exception/exception_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_exception/exception_ci.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_exception/exception_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_field/cdr_op_cs.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_field/field_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_field/field_ci.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_field/field_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_home/home_ex_idl.h14
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_home/home_exh.h6
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_home/home_exs.h6
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_home/home_svh.h6
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_home/home_svs.h8
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/amh_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/amh_rh_sh.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/amh_rh_ss.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/amh_sh.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/amh_ss.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/ami4ccm_conn_ex_idl.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/ami4ccm_rh_ex_idl.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/ami4ccm_sendc_ex_idl.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/any_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/any_op_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/cdr_op_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/direct_proxy_impl_sh.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/direct_proxy_impl_ss.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/facet_svth.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/facet_svts.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/interface.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/interface_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/interface_ci.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/interface_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/interface_ex_idl.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/interface_ih.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/interface_is.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/interface_sh.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/interface_ss.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/interface_svth.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/interface_svts.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/smart_proxy_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/smart_proxy_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/tie_sh.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface/tie_ss.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface_fwd/any_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface_fwd/cdr_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_interface_fwd/interface_fwd_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_member_type_decl.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_module/any_op.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_module/cdr_op.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_module/module.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_module/module_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_module/module_ih.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_module/module_sh.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_native/native_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_null_return_value.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/amh_rh_sh.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/amh_rh_ss.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/amh_sh.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/amh_ss.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/ami_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/ami_handler_reply_stub_operation_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/arglist.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/argument.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/argument_invoke.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/argument_marshal.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/direct_proxy_impl_ss.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/exceptlist_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/exceptlist_ss.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/operation.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/operation_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/operation_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/operation_exs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/operation_ih.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/operation_is.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/operation_sh.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/operation_ss.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/operation_svs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/proxy_impl_xh.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/rettype.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/rettype_return_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/smart_proxy_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/smart_proxy_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/tie_sh.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/tie_ss.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/upcall_command_ss.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_root/any_op.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_root/cdr_op.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_root/root.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_root/root_ch.h10
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_root/root_ci.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_root/root_cnh.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_root/root_cns.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_root/root_cs.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_root/root_ex_idl.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_root/root_exh.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_root/root_exs.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_root/root_ih.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_root/root_is.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_root/root_sh.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_root/root_ss.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_root/root_sth.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_root/root_svh.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_root/root_svs.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_root/root_svth.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_root/root_svts.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_scope.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_sequence/any_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_sequence/any_op_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_sequence/buffer_type.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_sequence/cdr_op_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_base.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_sequence/sequence_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_structure/any_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_structure/any_op_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_structure/cdr_op_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_structure/structure.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_structure/structure_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_structure/structure_ci.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_structure/structure_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_structure_fwd/structure_fwd_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_template_export.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_traits.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_decl.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_typecode/typecode_defn.h6
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_typedef/any_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_typedef/any_op_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_typedef/cdr_op_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_typedef/typedef.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_ci.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_typedef/typedef_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_union/any_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_union/any_op_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_union/cdr_op_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_union/discriminant_ci.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_union/discriminant_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_union/union.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_union/union_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_union/union_ci.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_union/union_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_union_branch/cdr_op_cs.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_union_branch/private_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_union_branch/public_assign_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_union_branch/public_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_union_branch/public_ci.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_union_branch/public_constructor_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_union_branch/public_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_union_branch/public_reset_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_union_fwd/union_fwd_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuebox/any_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuebox/any_op_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuebox/cdr_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuebox/cdr_op_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuebox/field_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuebox/field_ci.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuebox/union_member_ci.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox_ch.h6
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox_ci.h6
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox_cs.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/any_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/any_op_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/arglist.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/cdr_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/cdr_op_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/field_cdr_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/field_cdr_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/field_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/field_ci.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/field_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/marshal_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/marshal_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/obv_module.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_ch.h6
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_ci.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_init.h6
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_init_arglist_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_init_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_init_ci.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_init_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_ci.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_sh.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_ss.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd/any_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd/cdr_op_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype_fwd/valuetype_fwd_ch.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_xplicit_pre_proc.h4
-rw-r--r--TAO/TAO_IDL/driver/drv_args.cpp6
-rw-r--r--TAO/TAO_IDL/driver/drv_preproc.cpp101
-rw-r--r--TAO/TAO_IDL/fe/fe_component_header.cpp52
-rw-r--r--TAO/TAO_IDL/fe/fe_declarator.cpp32
-rw-r--r--TAO/TAO_IDL/fe/fe_extern.cpp16
-rw-r--r--TAO/TAO_IDL/fe/fe_global.cpp2
-rw-r--r--TAO/TAO_IDL/fe/fe_home_header.cpp46
-rw-r--r--TAO/TAO_IDL/fe/fe_init.cpp102
-rw-r--r--TAO/TAO_IDL/fe/fe_interface_header.cpp94
-rw-r--r--TAO/TAO_IDL/fe/fe_lookup.cpp112
-rw-r--r--TAO/TAO_IDL/fe/fe_obv_header.cpp66
-rw-r--r--TAO/TAO_IDL/fe/fe_private.cpp2
-rw-r--r--TAO/TAO_IDL/fe/fe_utils.cpp138
-rw-r--r--TAO/TAO_IDL/fe/idl.tab.cpp1092
-rw-r--r--TAO/TAO_IDL/fe/idl.tab.hpp2
-rw-r--r--TAO/TAO_IDL/fe/idl.ypp106
-rw-r--r--TAO/TAO_IDL/fe/idl.yy.cpp160
-rw-r--r--TAO/TAO_IDL/include/ast_annotation_appl.h6
-rw-r--r--TAO/TAO_IDL/include/ast_annotation_decl.h6
-rw-r--r--TAO/TAO_IDL/include/ast_annotation_member.h6
-rw-r--r--TAO/TAO_IDL/include/ast_argument.h10
-rw-r--r--TAO/TAO_IDL/include/ast_array.h19
-rw-r--r--TAO/TAO_IDL/include/ast_attribute.h16
-rw-r--r--TAO/TAO_IDL/include/ast_component.h15
-rw-r--r--TAO/TAO_IDL/include/ast_component_fwd.h10
-rw-r--r--TAO/TAO_IDL/include/ast_concrete_type.h7
-rw-r--r--TAO/TAO_IDL/include/ast_connector.h13
-rw-r--r--TAO/TAO_IDL/include/ast_constant.h18
-rw-r--r--TAO/TAO_IDL/include/ast_consumes.h9
-rw-r--r--TAO/TAO_IDL/include/ast_decl.h69
-rw-r--r--TAO/TAO_IDL/include/ast_emits.h9
-rw-r--r--TAO/TAO_IDL/include/ast_enum.h17
-rw-r--r--TAO/TAO_IDL/include/ast_enum_val.h5
-rw-r--r--TAO/TAO_IDL/include/ast_eventtype.h9
-rw-r--r--TAO/TAO_IDL/include/ast_eventtype_fwd.h8
-rw-r--r--TAO/TAO_IDL/include/ast_exception.h9
-rw-r--r--TAO/TAO_IDL/include/ast_expression.h28
-rw-r--r--TAO/TAO_IDL/include/ast_extended_port.h10
-rw-r--r--TAO/TAO_IDL/include/ast_extern.h2
-rw-r--r--TAO/TAO_IDL/include/ast_factory.h21
-rw-r--r--TAO/TAO_IDL/include/ast_field.h14
-rw-r--r--TAO/TAO_IDL/include/ast_finder.h8
-rw-r--r--TAO/TAO_IDL/include/ast_fixed.h2
-rw-r--r--TAO/TAO_IDL/include/ast_generator.h4
-rw-r--r--TAO/TAO_IDL/include/ast_home.h21
-rw-r--r--TAO/TAO_IDL/include/ast_interface.h39
-rw-r--r--TAO/TAO_IDL/include/ast_interface_fwd.h22
-rw-r--r--TAO/TAO_IDL/include/ast_mirror_port.h8
-rw-r--r--TAO/TAO_IDL/include/ast_module.h18
-rw-r--r--TAO/TAO_IDL/include/ast_native.h7
-rw-r--r--TAO/TAO_IDL/include/ast_operation.h29
-rw-r--r--TAO/TAO_IDL/include/ast_param_holder.h9
-rw-r--r--TAO/TAO_IDL/include/ast_porttype.h9
-rw-r--r--TAO/TAO_IDL/include/ast_predefined_type.h11
-rw-r--r--TAO/TAO_IDL/include/ast_provides.h9
-rw-r--r--TAO/TAO_IDL/include/ast_publishes.h9
-rw-r--r--TAO/TAO_IDL/include/ast_root.h13
-rw-r--r--TAO/TAO_IDL/include/ast_sequence.h18
-rw-r--r--TAO/TAO_IDL/include/ast_string.h11
-rw-r--r--TAO/TAO_IDL/include/ast_structure.h31
-rw-r--r--TAO/TAO_IDL/include/ast_structure_fwd.h16
-rw-r--r--TAO/TAO_IDL/include/ast_template_module.h10
-rw-r--r--TAO/TAO_IDL/include/ast_template_module_inst.h11
-rw-r--r--TAO/TAO_IDL/include/ast_template_module_ref.h13
-rw-r--r--TAO/TAO_IDL/include/ast_type.h22
-rw-r--r--TAO/TAO_IDL/include/ast_typedef.h19
-rw-r--r--TAO/TAO_IDL/include/ast_union.h22
-rw-r--r--TAO/TAO_IDL/include/ast_union_branch.h12
-rw-r--r--TAO/TAO_IDL/include/ast_union_fwd.h8
-rw-r--r--TAO/TAO_IDL/include/ast_union_label.h8
-rw-r--r--TAO/TAO_IDL/include/ast_uses.h11
-rw-r--r--TAO/TAO_IDL/include/ast_valuebox.h9
-rw-r--r--TAO/TAO_IDL/include/ast_valuetype.h27
-rw-r--r--TAO/TAO_IDL/include/ast_valuetype_fwd.h8
-rw-r--r--TAO/TAO_IDL/include/ast_visitor.h4
-rw-r--r--TAO/TAO_IDL/include/ast_visitor_context.h8
-rw-r--r--TAO/TAO_IDL/include/ast_visitor_reifying.h4
-rw-r--r--TAO/TAO_IDL/include/ast_visitor_tmpl_module_inst.h2
-rw-r--r--TAO/TAO_IDL/include/ast_visitor_tmpl_module_ref.h2
-rw-r--r--TAO/TAO_IDL/include/drv_extern.h10
-rw-r--r--TAO/TAO_IDL/include/fe_component_header.h12
-rw-r--r--TAO/TAO_IDL/include/fe_declarator.h10
-rw-r--r--TAO/TAO_IDL/include/fe_extern.h16
-rw-r--r--TAO/TAO_IDL/include/fe_home_header.h8
-rw-r--r--TAO/TAO_IDL/include/fe_interface_header.h22
-rw-r--r--TAO/TAO_IDL/include/fe_obv_header.h14
-rw-r--r--TAO/TAO_IDL/include/fe_utils.h8
-rw-r--r--TAO/TAO_IDL/include/idl_global.h154
-rw-r--r--TAO/TAO_IDL/include/idl_narrow.h86
-rw-r--r--TAO/TAO_IDL/include/utl_decllist.h6
-rw-r--r--TAO/TAO_IDL/include/utl_err.h6
-rw-r--r--TAO/TAO_IDL/include/utl_exceptlist.h8
-rw-r--r--TAO/TAO_IDL/include/utl_exprlist.h6
-rw-r--r--TAO/TAO_IDL/include/utl_identifier.h12
-rw-r--r--TAO/TAO_IDL/include/utl_idlist.h14
-rw-r--r--TAO/TAO_IDL/include/utl_indenter.h10
-rw-r--r--TAO/TAO_IDL/include/utl_labellist.h8
-rw-r--r--TAO/TAO_IDL/include/utl_list.h16
-rw-r--r--TAO/TAO_IDL/include/utl_namelist.h8
-rw-r--r--TAO/TAO_IDL/include/utl_scope.h26
-rw-r--r--TAO/TAO_IDL/include/utl_stack.h24
-rw-r--r--TAO/TAO_IDL/include/utl_string.h10
-rw-r--r--TAO/TAO_IDL/include/utl_strlist.h12
-rw-r--r--TAO/TAO_IDL/narrow/narrow.cpp82
-rw-r--r--TAO/TAO_IDL/tao_idl.cpp26
-rw-r--r--TAO/TAO_IDL/tao_idl.mpc2
-rw-r--r--TAO/TAO_IDL/tao_idl_be.mpc2
-rw-r--r--TAO/TAO_IDL/tao_idl_fe.mpc2
-rw-r--r--TAO/TAO_IDL/util/utl_decllist.cpp14
-rw-r--r--TAO/TAO_IDL/util/utl_err.cpp18
-rw-r--r--TAO/TAO_IDL/util/utl_exceptlist.cpp22
-rw-r--r--TAO/TAO_IDL/util/utl_exprlist.cpp14
-rw-r--r--TAO/TAO_IDL/util/utl_global.cpp318
-rw-r--r--TAO/TAO_IDL/util/utl_identifier.cpp32
-rw-r--r--TAO/TAO_IDL/util/utl_idlist.cpp38
-rw-r--r--TAO/TAO_IDL/util/utl_indenter.cpp6
-rw-r--r--TAO/TAO_IDL/util/utl_labellist.cpp28
-rw-r--r--TAO/TAO_IDL/util/utl_list.cpp36
-rw-r--r--TAO/TAO_IDL/util/utl_namelist.cpp14
-rw-r--r--TAO/TAO_IDL/util/utl_scope.cpp306
-rw-r--r--TAO/TAO_IDL/util/utl_stack.cpp48
-rw-r--r--TAO/TAO_IDL/util/utl_string.cpp22
-rw-r--r--TAO/TAO_IDL/util/utl_strlist.cpp34
-rw-r--r--TAO/VERSION.txt2
-rw-r--r--TAO/bin/tao_orb_tests.lst1
-rw-r--r--TAO/docs/TAO-metrics.html2
-rw-r--r--TAO/docs/notification/monitor.html28
-rw-r--r--TAO/docs/releasenotes/index.html2
-rw-r--r--TAO/docs/releasenotes/trader.html2
-rw-r--r--TAO/etc/tao.doxygen88
-rw-r--r--TAO/etc/tao_anytypecode.doxygen88
-rw-r--r--TAO/etc/tao_av.doxygen88
-rw-r--r--TAO/etc/tao_compression.doxygen88
-rw-r--r--TAO/etc/tao_cosevent.doxygen88
-rw-r--r--TAO/etc/tao_cosnaming.doxygen88
-rw-r--r--TAO/etc/tao_cosnotification.doxygen88
-rw-r--r--TAO/etc/tao_costime.doxygen88
-rw-r--r--TAO/etc/tao_costrader.doxygen88
-rw-r--r--TAO/etc/tao_dynamicany.doxygen88
-rw-r--r--TAO/etc/tao_dynamicinterface.doxygen88
-rw-r--r--TAO/etc/tao_esf.doxygen88
-rw-r--r--TAO/etc/tao_ifr.doxygen88
-rw-r--r--TAO/etc/tao_implrepo.doxygen88
-rw-r--r--TAO/etc/tao_iormanip.doxygen88
-rw-r--r--TAO/etc/tao_iortable.doxygen88
-rw-r--r--TAO/etc/tao_pi.doxygen88
-rw-r--r--TAO/etc/tao_pi_server.doxygen88
-rw-r--r--TAO/etc/tao_portablegroup.doxygen88
-rw-r--r--TAO/etc/tao_portableserver.doxygen88
-rw-r--r--TAO/etc/tao_rtcorba.doxygen88
-rw-r--r--TAO/etc/tao_rtevent.doxygen88
-rw-r--r--TAO/etc/tao_rtportableserver.doxygen88
-rw-r--r--TAO/etc/tao_security.doxygen88
-rw-r--r--TAO/etc/tao_smartproxies.doxygen88
-rw-r--r--TAO/etc/tao_ssliop.doxygen88
-rw-r--r--TAO/etc/tao_strategies.doxygen88
-rw-r--r--TAO/etc/tao_transportcurrent.doxygen88
-rw-r--r--TAO/etc/tao_ziop.doxygen88
-rw-r--r--TAO/examples/Borland/README2
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool2/FooServantList.h31
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool5/Foo_i.h41
-rw-r--r--TAO/examples/Content_Server/README32
-rw-r--r--TAO/examples/Kokyu_dsrt_schedulers/FP_Scheduler.cpp2
-rw-r--r--TAO/examples/Kokyu_dsrt_schedulers/MIF_Scheduler.cpp2
-rw-r--r--TAO/examples/Kokyu_dsrt_schedulers/MUF_Scheduler.cpp2
-rw-r--r--TAO/examples/Kokyu_dsrt_schedulers/README4
-rw-r--r--TAO/examples/Load_Balancing/Load_Balancer_i.h3
-rw-r--r--TAO/examples/Load_Balancing_persistent/Load_Balancer_i.h3
-rw-r--r--TAO/examples/Persistent_Grid/README2
-rw-r--r--TAO/examples/Quoter/Generic_Factory.cpp1
-rw-r--r--TAO/examples/README142
-rw-r--r--TAO/examples/RTScheduling/Fixed_Priority_Scheduler/FP_Scheduler.cpp4
-rw-r--r--TAO/examples/RTScheduling/MIF_Scheduler/MIF_Scheduler.cpp4
-rw-r--r--TAO/examples/Simple/Simple_util.h2
-rw-r--r--TAO/orbsvcs/IFR_Service/be_produce.cpp2
-rw-r--r--TAO/orbsvcs/IFR_Service/ifr_adding_visitor.cpp30
-rw-r--r--TAO/orbsvcs/IFR_Service/ifr_adding_visitor_exception.cpp4
-rw-r--r--TAO/orbsvcs/IFR_Service/ifr_adding_visitor_structure.cpp4
-rw-r--r--TAO/orbsvcs/IFR_Service/ifr_adding_visitor_union.cpp6
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Activator_Loader.h7
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/AsyncListManager.h10
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/LiveCheck.h10
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Locator_Loader.h7
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Shared_Backing_Store.cpp4
-rw-r--r--TAO/orbsvcs/LoadBalancer/Push_Handler.h3
-rw-r--r--TAO/orbsvcs/LoadBalancer/README2
-rw-r--r--TAO/orbsvcs/LoadBalancer/Signal_Handler.h4
-rw-r--r--TAO/orbsvcs/examples/LoadBalancing/ServerRequestInterceptor.h4
-rwxr-xr-xTAO/orbsvcs/examples/Notify/MC/TkMonitor/monitor.pl2
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/AVStreams_i.cpp96
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/AVStreams_i.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/AV_Core.cpp30
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.cpp20
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.cpp24
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/MCast.cpp18
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/Policy.cpp20
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/Protocol_Factory.cpp18
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/RTCP.cpp24
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/RTCP_Channel.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/RTCP_Packet.cpp40
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/RTP.cpp44
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/TCP.cpp44
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/Transport.cpp46
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/UDP.cpp48
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/default_resource.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/sfp.cpp20
-rw-r--r--TAO/orbsvcs/orbsvcs/Channel_Clients_T.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.cpp30
-rw-r--r--TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Loader.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Loader.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerAdmin.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerControl.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_DynamicImplementation.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Event_Loader.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Event_Loader.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Factory.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_MT_Dispatching.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullConsumer.cpp18
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.cpp20
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.cpp20
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.cpp18
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Pulling_Strategy.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_SupplierControl.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierAdmin.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierControl.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedConsumerAdmin.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.cpp22
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedSupplierAdmin.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.h16
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Read.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Write.h16
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.inl2
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.inl2
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Admin.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Collection.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_List.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RB_Tree.h14
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RefCount_Guard.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_RefCount_Guard.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.inl2
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Worker.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Adapters.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Adapters.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Address_Server_Base.h1
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.cpp38
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.h14
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.cpp20
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_ConsumerEC_Control.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_ConsumerEC_Control.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_EH.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_EH.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.cpp46
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.h14
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Reactive_ConsumerEC_Control.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Reactive_ConsumerEC_Control.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Reconnect_ConsumerEC_Control.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Reconnect_ConsumerEC_Control.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Mcast_EH.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Mcast_EH.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_UDP_EH.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_UDP_EH.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Sender.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Sender.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_And_Filter.cpp20
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_And_Filter.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Basic_Factory.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Basic_Factory.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.cpp22
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.h14
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_ConsumerControl.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_ConsumerControl.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.cpp74
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.h20
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxySupplier.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxySupplier.h16
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.cpp20
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Dispatching.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Dispatching.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.cpp30
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.h18
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.cpp60
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.h56
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.inl38
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Factory.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Factory.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Filter.cpp20
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Filter.h22
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Filter_Builder.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Filter_Builder.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Gateway.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Gateway.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.cpp64
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.h38
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Gateway_Sched.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Group_Scheduling.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Group_Scheduling.inl2
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Dispatching.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Factory.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils.h24
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.h17
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.inl12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Masked_Type_Filter.cpp20
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Masked_Type_Filter.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Negation_Filter.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Negation_Filter.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Null_Factory.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Null_Factory.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.inl2
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.h16
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.cpp22
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Priority_Dispatching.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.cpp28
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.h37
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.cpp26
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.h38
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_QOS_Info.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Dispatching.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Factory.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Dispatching.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Dispatching.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Sched_Factory.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter_Builder.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Scheduling_Strategy.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Scheduling_Strategy.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_SupplierAdmin.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_SupplierAdmin.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_SupplierControl.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_SupplierControl.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter_Builder.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter_Builder.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching.cpp18
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_TPC_Factory.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_TPC_Factory.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxyConsumer.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxyConsumer.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Thread_Flags.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Filter.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Filter.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Trivial_Supplier_Filter.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Trivial_Supplier_Filter.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Type_Filter.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Type_Filter.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_UDP_Admin.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_UDP_Admin.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/Event_Utilities.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Event_Utilities.h14
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.cpp20
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientService_Activate.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Endpoint_Selector_Factory.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicy_i.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerService_Activate.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Loader.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Primary_Replication_Strategy.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Replication_Strategy.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Basic_Replication_Strategy.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ConsumerAdmin.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Factory.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Group_Manager.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxyConsumer.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_SupplierAdmin.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_Base.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_Loader.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ForwardCtrlServerInterceptor.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FtEventServiceInterceptor.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ObjectGroupManagerHandler.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ObjectGroupManagerHandler.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Service.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Strategy.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Set_Update_Interceptor.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.cpp36
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Completion_Handler.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connection_Handler.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Factory.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Profile.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Transport.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/AbstractInterfaceDef_i.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/AliasDef_i.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ArrayDef_i.cpp24
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/AttributeDef_i.cpp24
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ComponentContainer_i.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ComponentDef_i.cpp24
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ComponentModuleDef_i.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ComponentRepository_i.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ConstantDef_i.cpp20
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ConsumesDef_i.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/Contained_i.cpp28
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/Container_i.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/EmitsDef_i.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/EnumDef_i.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/EventDef_i.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/EventPortDef_i.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ExceptionDef_i.cpp20
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ExtAbstractInterfaceDef_i.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ExtAttributeDef_i.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ExtInterfaceDef_i.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ExtLocalInterfaceDef_i.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ExtValueDef_i.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/FactoryDef_i.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/FinderDef_i.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/FixedDef_i.cpp20
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/HomeDef_i.cpp28
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IDLType_i.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils.cpp23
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IRObject_i.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/InterfaceAttrExtension_i.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/InterfaceDef_i.cpp24
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/LocalInterfaceDef_i.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ModuleDef_i.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/NativeDef_i.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/OperationDef_i.cpp26
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/Options.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/PrimitiveDef_i.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ProvidesDef_i.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/PublishesDef_i.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/Repository_i.cpp42
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/SequenceDef_i.cpp24
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/StringDef_i.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/StructDef_i.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/TypedefDef_i.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/UnionDef_i.cpp24
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/UsesDef_i.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ValueBoxDef_i.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ValueDef_i.cpp48
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ValueMemberDef_i.cpp20
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/WstringDef_i.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/IOR_Multicast.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Utilization_Monitor.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.h3
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientORBInitializer.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientRequestInterceptor.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Component.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_IORInterceptor.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_IORInterceptor.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.h5
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.h3
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertInfo.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertInfo.h1
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert_Handler.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert_Handler.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAverage.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ObjectReferenceFactory.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Pull_Handler.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Random.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_RoundRobin.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/README2
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/BasicLog_i.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/EventLogConsumer.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/EventLogNotification.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/EventLog_i.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Hash_Iterator_i.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp38
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Hash_LogStore.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Iterator_i.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/LogMgr_i.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/LogNotification.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/LogRecordStore.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Log_Constraint_Interpreter.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Log_Persistence_Strategy.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Log_i.cpp46
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/NotifyLogConsumer.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp24
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/NotifyLogNotification.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/NotifyLog_i.cpp24
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/RTEventLogConsumer.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/RTEventLogNotification.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/RTEventLog_i.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Entries.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Naming_Manager.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Naming_Replication_Manager.cpp18
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Naming_Server.cpp34
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_PG_Object_Group_Storable.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Persistent_Naming_Context.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Persistent_Naming_Context_Factory.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Random.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Round_Robin.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Storable_Naming_Context.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/FT_Storable_Naming_Context_Factory.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/FaultTolerant/nsgroup_svc.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Naming_Client.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Naming_Context_Interface.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Naming_Loader.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Naming_Server.cpp18
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Naming_Service_Container.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Persistent_Entries.cpp24
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context_Factory.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context.cpp36
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context_Factory.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Transient_Naming_Context.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Admin.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/AdminProperties.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Any/AnyEvent.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Any/PushConsumer.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Any/PushSupplier.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Buffering_Strategy.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Builder.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Consumer.cpp18
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Consumer.h3
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ConsumerAdmin.cpp34
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/CosNotify_Initializer.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/CosNotify_Service.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Default_Factory.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ETCL_Filter.cpp22
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ETCL_FilterFactory.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Event.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/EventChannel.cpp34
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp32
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/EventType.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/EventType.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/EventTypeSeq.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/EventTypeSeq.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Event_Manager.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Event_Manager.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Event_Persistence_Factory.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/FilterAdmin.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ID_Factory.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Method_Request.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Method_Request_Event.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Method_Request_Lookup.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Method_Request_Shutdown.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/MonitorControl/Control.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/MonitorControl/Control_Registry.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/MonitorControl/MonitorManager.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/MonitorControl/NotificationServiceMonitor_i.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MC_Default_Factory.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MC_Notify_Service.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorConsumerAdmin.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorEventChannel.cpp18
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorEventChannelFactory.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MonitorSupplierAdmin.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Interpreter.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Notify_Default_CO_Factory.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Notify_Default_Collection_Factory.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Notify_Default_EMO_Factory.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Notify_Default_POA_Factory.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Object.cpp22
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/POA_Helper.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Peer.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Properties.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/PropertySeq.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Proxy.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ProxySupplier.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/QoSProperties.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/RT_Builder.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/RT_Factory.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/RT_Factory.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/RT_Notify_Service.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/RT_Properties.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Reactive_Task.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Reconnection_Registry.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Refcountable.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Refcountable.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Routing_Slip.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Persistence_Manager.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Service.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Structured/RT_StructuredProxyPushSupplier.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredEvent.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushConsumer.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Supplier.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/SupplierAdmin.cpp30
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ThreadPool_Task.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Timer_Queue.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Timer_Reactor.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Topology_Loader.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Topology_Object.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Topology_Saver.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Validate_Client_Task.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Worker_Task.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/XML_Loader.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/XML_Saver.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/Fragments_Cleanup_Strategy.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/GOA.cpp18
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/MIOP.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Default_Property_Validator.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_FactoryRegistry.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Factory.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Guard.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroupManager.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Adapter_Factory.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.cpp32
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group_Storable.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Encoder.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Servant_Dispatcher.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Acceptor_Registry.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Request_Dispatcher.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connection_Handler.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connector.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Factory.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Mcast_Connection_Handler.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Mcast_Transport.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Profile.cpp22
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport_Recv_Packet.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Wait_Never.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/miop_resource.cpp22
-rw-r--r--TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp46
-rw-r--r--TAO/orbsvcs/orbsvcs/Runtime_Scheduler.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Acceptor.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Transport.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ClientCredentials.cpp18
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirer.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current_Impl.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Endpoint.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Factory.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Invocation_Interceptor.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ORBInitializer.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OwnCredentials.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_TargetCredentials.cpp24
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Transport.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/SchedEntry.cpp18
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Scheduler_Factory.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL2_EstablishTrustPolicy.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL2_QOPPolicy.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL2_SecurityManager.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL3_ContextEstablishmentPolicy.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsAcquirerFactory.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsCurator.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL3_ObjectCredentialsPolicy.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL3_SecurityManager.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/Security_Current.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/Security_Current_Impl.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/Security_Current_Impl.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Time/TAO_TIO.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Time/TAO_UTO.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/Time/Timer_Helper.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Constraint_Nodes.cpp32
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Constraint_l.cpp56
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Interpreter.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Offer_Database.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.cpp24
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Service_Type_Repository.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Trader.cpp76
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.cpp46
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.h5
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Trading_Loader.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Trading_Loader.h12
-rw-r--r--TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/ServerRequestInterceptor.h4
-rwxr-xr-xTAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/compare_histo.pl2
-rwxr-xr-xTAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/generate_gnuplot.pl2
-rw-r--r--TAO/orbsvcs/tests/Bug_2248_Regression/README2
-rw-r--r--TAO/orbsvcs/tests/Bug_2285_Regression/README2
-rw-r--r--TAO/orbsvcs/tests/Bug_2287_Regression/README2
-rw-r--r--TAO/orbsvcs/tests/Bug_2925_Regression/README2
-rw-r--r--TAO/orbsvcs/tests/Bug_3215_Regression/README2
-rw-r--r--TAO/orbsvcs/tests/FT_App/README2
-rw-r--r--TAO/orbsvcs/tests/Miop/McastFragmentation/Hello_Impl.h2
-rw-r--r--TAO/orbsvcs/tests/Notify/Basic/Sequence.h3
-rw-r--r--TAO/orbsvcs/tests/Property/client.cpp4
-rw-r--r--TAO/orbsvcs/tests/Simple_Naming/README2
-rw-r--r--TAO/performance-tests/README44
-rw-r--r--TAO/tao/Abstract_Servant_Base.cpp2
-rw-r--r--TAO/tao/Abstract_Servant_Base.h22
-rw-r--r--TAO/tao/Acceptor_Filter.cpp2
-rw-r--r--TAO/tao/Acceptor_Filter.h2
-rw-r--r--TAO/tao/Acceptor_Registry.cpp40
-rw-r--r--TAO/tao/Acceptor_Registry.h12
-rw-r--r--TAO/tao/Adapter.cpp2
-rw-r--r--TAO/tao/Adapter.h10
-rw-r--r--TAO/tao/Adapter_Factory.cpp2
-rw-r--r--TAO/tao/Adapter_Factory.h2
-rw-r--r--TAO/tao/Adapter_Registry.cpp12
-rw-r--r--TAO/tao/Adapter_Registry.h2
-rw-r--r--TAO/tao/Allocator.h2
-rw-r--r--TAO/tao/AnyTypeCode/Alias_TypeCode.h12
-rw-r--r--TAO/tao/AnyTypeCode/Alias_TypeCode_Static.cpp12
-rw-r--r--TAO/tao/AnyTypeCode/Alias_TypeCode_Static.h12
-rw-r--r--TAO/tao/AnyTypeCode/Any.cpp10
-rw-r--r--TAO/tao/AnyTypeCode/Any.h32
-rw-r--r--TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.cpp2
-rw-r--r--TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.h2
-rw-r--r--TAO/tao/AnyTypeCode/Any_Array_Impl_T.cpp7
-rw-r--r--TAO/tao/AnyTypeCode/Any_Array_Impl_T.h3
-rw-r--r--TAO/tao/AnyTypeCode/Any_Basic_Impl.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/Any_Basic_Impl.h2
-rw-r--r--TAO/tao/AnyTypeCode/Any_Basic_Impl_T.cpp4
-rw-r--r--TAO/tao/AnyTypeCode/Any_Basic_Impl_T.h4
-rw-r--r--TAO/tao/AnyTypeCode/Any_Dual_Impl_T.cpp8
-rw-r--r--TAO/tao/AnyTypeCode/Any_Dual_Impl_T.h6
-rw-r--r--TAO/tao/AnyTypeCode/Any_Impl.cpp16
-rw-r--r--TAO/tao/AnyTypeCode/Any_Impl.h30
-rw-r--r--TAO/tao/AnyTypeCode/Any_Impl_T.cpp4
-rw-r--r--TAO/tao/AnyTypeCode/Any_Impl_T.h6
-rw-r--r--TAO/tao/AnyTypeCode/Any_Special_Impl_T.cpp4
-rw-r--r--TAO/tao/AnyTypeCode/Any_Special_Impl_T.h9
-rw-r--r--TAO/tao/AnyTypeCode/Any_SystemException.cpp10
-rw-r--r--TAO/tao/AnyTypeCode/Any_SystemException.h6
-rw-r--r--TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.cpp12
-rw-r--r--TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.h12
-rw-r--r--TAO/tao/AnyTypeCode/Empty_Param_TypeCode.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/Empty_Param_TypeCode.h6
-rw-r--r--TAO/tao/AnyTypeCode/Enum_TypeCode.cpp3
-rw-r--r--TAO/tao/AnyTypeCode/Enum_TypeCode.h12
-rw-r--r--TAO/tao/AnyTypeCode/Enum_TypeCode_Static.cpp15
-rw-r--r--TAO/tao/AnyTypeCode/Enum_TypeCode_Static.h12
-rw-r--r--TAO/tao/AnyTypeCode/Fixed_TypeCode.h10
-rw-r--r--TAO/tao/AnyTypeCode/Indirected_Type_TypeCode.cpp20
-rw-r--r--TAO/tao/AnyTypeCode/Indirected_Type_TypeCode.h20
-rw-r--r--TAO/tao/AnyTypeCode/Marshal.cpp2
-rw-r--r--TAO/tao/AnyTypeCode/Marshal.h32
-rw-r--r--TAO/tao/AnyTypeCode/Marshal.inl30
-rw-r--r--TAO/tao/AnyTypeCode/NVList.cpp22
-rw-r--r--TAO/tao/AnyTypeCode/NVList.h48
-rw-r--r--TAO/tao/AnyTypeCode/NVList_Adapter_Impl.cpp2
-rw-r--r--TAO/tao/AnyTypeCode/NVList_Adapter_Impl.h2
-rw-r--r--TAO/tao/AnyTypeCode/Null_RefCount_Policy.h4
-rw-r--r--TAO/tao/AnyTypeCode/Objref_TypeCode.h10
-rw-r--r--TAO/tao/AnyTypeCode/Objref_TypeCode_Static.cpp10
-rw-r--r--TAO/tao/AnyTypeCode/Objref_TypeCode_Static.h10
-rw-r--r--TAO/tao/AnyTypeCode/Recursive_Type_TypeCode.h2
-rw-r--r--TAO/tao/AnyTypeCode/Sequence_TypeCode.h10
-rw-r--r--TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.cpp10
-rw-r--r--TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.h10
-rw-r--r--TAO/tao/AnyTypeCode/String_TypeCode.h8
-rw-r--r--TAO/tao/AnyTypeCode/String_TypeCode_Static.cpp8
-rw-r--r--TAO/tao/AnyTypeCode/String_TypeCode_Static.h8
-rw-r--r--TAO/tao/AnyTypeCode/Struct_TypeCode.h12
-rw-r--r--TAO/tao/AnyTypeCode/Struct_TypeCode_Static.cpp15
-rw-r--r--TAO/tao/AnyTypeCode/Struct_TypeCode_Static.h12
-rw-r--r--TAO/tao/AnyTypeCode/True_RefCount_Policy.cpp2
-rw-r--r--TAO/tao/AnyTypeCode/True_RefCount_Policy.h18
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode.cpp40
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode.h76
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode_Base_Attributes.h4
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode_CDR_Extraction.cpp2
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.cpp29
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.h12
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode_Case_Enum_T.h4
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode_Case_T.cpp3
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode_Case_T.h4
-rw-r--r--TAO/tao/AnyTypeCode/Union_TypeCode.cpp3
-rw-r--r--TAO/tao/AnyTypeCode/Union_TypeCode.h18
-rw-r--r--TAO/tao/AnyTypeCode/Union_TypeCode_Static.cpp19
-rw-r--r--TAO/tao/AnyTypeCode/Union_TypeCode_Static.h16
-rw-r--r--TAO/tao/AnyTypeCode/Value_TypeCode.cpp13
-rw-r--r--TAO/tao/AnyTypeCode/Value_TypeCode.h18
-rw-r--r--TAO/tao/AnyTypeCode/Value_TypeCode_Static.cpp19
-rw-r--r--TAO/tao/AnyTypeCode/Value_TypeCode_Static.h16
-rw-r--r--TAO/tao/AnyTypeCode/append.cpp27
-rw-r--r--TAO/tao/AnyTypeCode_Adapter.cpp2
-rw-r--r--TAO/tao/AnyTypeCode_Adapter.h2
-rw-r--r--TAO/tao/Argument.cpp18
-rw-r--r--TAO/tao/Argument.h16
-rw-r--r--TAO/tao/Array_Traits_T.h2
-rw-r--r--TAO/tao/Array_VarOut_T.cpp9
-rw-r--r--TAO/tao/Array_VarOut_T.h44
-rw-r--r--TAO/tao/Array_VarOut_T.inl12
-rw-r--r--TAO/tao/Asynch_Queued_Message.cpp24
-rw-r--r--TAO/tao/Asynch_Reply_Dispatcher_Base.cpp12
-rw-r--r--TAO/tao/Asynch_Reply_Dispatcher_Base.h4
-rw-r--r--TAO/tao/Base_Transport_Property.cpp16
-rw-r--r--TAO/tao/Basic_Argument_T.h18
-rw-r--r--TAO/tao/BiDir_Adapter.cpp2
-rw-r--r--TAO/tao/Bind_Dispatcher_Guard.cpp2
-rw-r--r--TAO/tao/Bind_Dispatcher_Guard.h6
-rw-r--r--TAO/tao/Bind_Dispatcher_Guard.inl4
-rw-r--r--TAO/tao/Blocked_Connect_Strategy.cpp2
-rw-r--r--TAO/tao/Bounded_Basic_String_Sequence_T.h74
-rw-r--r--TAO/tao/Bounded_Object_Reference_Sequence_T.h73
-rw-r--r--TAO/tao/Buffer_Allocator_T.h2
-rw-r--r--TAO/tao/CDR.cpp32
-rw-r--r--TAO/tao/CDR.h25
-rw-r--r--TAO/tao/CDR.inl8
-rw-r--r--TAO/tao/CORBALOC_Parser.cpp16
-rw-r--r--TAO/tao/CORBANAME_Parser.cpp11
-rw-r--r--TAO/tao/CORBA_String.h14
-rw-r--r--TAO/tao/CSD_Framework/CSD_Default_Servant_Dispatcher.cpp3
-rw-r--r--TAO/tao/CSD_Framework/CSD_POA.cpp3
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Synch_Helper.h3
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Synch_Helper.inl4
-rw-r--r--TAO/tao/Cache_Entries_T.cpp2
-rw-r--r--TAO/tao/Cache_Entries_T.h28
-rw-r--r--TAO/tao/Cache_Entries_T.inl26
-rw-r--r--TAO/tao/Cleanup_Func_Registry.cpp4
-rw-r--r--TAO/tao/Cleanup_Func_Registry.h4
-rw-r--r--TAO/tao/ClientRequestInterceptor_Adapter.cpp2
-rw-r--r--TAO/tao/ClientRequestInterceptor_Adapter.h2
-rw-r--r--TAO/tao/ClientRequestInterceptor_Adapter_Factory.cpp2
-rw-r--r--TAO/tao/ClientRequestInterceptor_Adapter_Factory.h4
-rw-r--r--TAO/tao/Client_Strategy_Factory.cpp2
-rw-r--r--TAO/tao/Client_Strategy_Factory.h14
-rw-r--r--TAO/tao/CodecFactory/CodecFactory.h2
-rw-r--r--TAO/tao/Codeset/UTF16_BOM_Translator.cpp4
-rw-r--r--TAO/tao/Codeset/UTF8_Latin1_Translator.cpp4
-rw-r--r--TAO/tao/Codeset_Manager.cpp4
-rw-r--r--TAO/tao/Codeset_Manager_Factory_Base.cpp10
-rw-r--r--TAO/tao/Codeset_Translator_Base.cpp2
-rw-r--r--TAO/tao/Collocation_Resolver.cpp2
-rw-r--r--TAO/tao/Compression/zlib/ZlibCompressor_Factory.cpp3
-rw-r--r--TAO/tao/Condition.h14
-rw-r--r--TAO/tao/Connect_Strategy.cpp6
-rw-r--r--TAO/tao/Connection_Handler.cpp32
-rw-r--r--TAO/tao/Connection_Handler.h24
-rw-r--r--TAO/tao/Connection_Handler.inl2
-rw-r--r--TAO/tao/Connection_Purging_Strategy.cpp4
-rw-r--r--TAO/tao/Connection_Purging_Strategy.h4
-rw-r--r--TAO/tao/Connector_Registry.cpp40
-rw-r--r--TAO/tao/Connector_Registry.h7
-rw-r--r--TAO/tao/DLL_Parser.cpp6
-rw-r--r--TAO/tao/Default_Endpoint_Selector_Factory.cpp6
-rw-r--r--TAO/tao/Default_Stub_Factory.cpp4
-rw-r--r--TAO/tao/Default_Thread_Lane_Resources_Manager.cpp20
-rw-r--r--TAO/tao/DynamicAny/DynAnyFactory.cpp2
-rw-r--r--TAO/tao/DynamicAny/DynAnyFactory.h2
-rw-r--r--TAO/tao/DynamicAny/DynAny_i.cpp10
-rw-r--r--TAO/tao/DynamicAny/DynAny_i.h10
-rw-r--r--TAO/tao/DynamicAny/DynArray_i.cpp16
-rw-r--r--TAO/tao/DynamicAny/DynArray_i.h16
-rw-r--r--TAO/tao/DynamicAny/DynCommon.cpp89
-rw-r--r--TAO/tao/DynamicAny/DynCommon.h86
-rw-r--r--TAO/tao/DynamicAny/DynEnum_i.cpp14
-rw-r--r--TAO/tao/DynamicAny/DynEnum_i.h14
-rw-r--r--TAO/tao/DynamicAny/DynSequence_i.cpp18
-rw-r--r--TAO/tao/DynamicAny/DynSequence_i.h18
-rw-r--r--TAO/tao/DynamicAny/DynStruct_i.cpp30
-rw-r--r--TAO/tao/DynamicAny/DynStruct_i.h18
-rw-r--r--TAO/tao/DynamicAny/DynUnion_i.cpp39
-rw-r--r--TAO/tao/DynamicAny/DynUnion_i.h26
-rw-r--r--TAO/tao/DynamicAny/DynValueBox_i.cpp16
-rw-r--r--TAO/tao/DynamicAny/DynValueBox_i.h14
-rw-r--r--TAO/tao/DynamicAny/DynValueCommon_i.cpp8
-rw-r--r--TAO/tao/DynamicAny/DynValueCommon_i.h10
-rw-r--r--TAO/tao/DynamicAny/DynValue_i.cpp24
-rw-r--r--TAO/tao/DynamicAny/DynValue_i.h20
-rw-r--r--TAO/tao/DynamicAny/DynamicAny.cpp4
-rw-r--r--TAO/tao/DynamicAny/DynamicAny.h4
-rw-r--r--TAO/tao/DynamicInterface/AMH_DSI_Response_Handler.cpp10
-rw-r--r--TAO/tao/DynamicInterface/Context.h14
-rw-r--r--TAO/tao/DynamicInterface/DII_Arguments.cpp1
-rw-r--r--TAO/tao/DynamicInterface/ExceptionList.h10
-rw-r--r--TAO/tao/DynamicInterface/Request.h10
-rw-r--r--TAO/tao/DynamicInterface/Server_Request.cpp2
-rw-r--r--TAO/tao/DynamicInterface/Server_Request.h10
-rw-r--r--TAO/tao/Dynamic_Adapter.cpp2
-rw-r--r--TAO/tao/Dynamic_TP/DTP_Config.h2
-rw-r--r--TAO/tao/Dynamic_TP/DTP_ORBInitializer.h4
-rw-r--r--TAO/tao/Dynamic_TP/DTP_ORB_Loader.h1
-rw-r--r--TAO/tao/Dynamic_TP/DTP_POA_Loader.h1
-rw-r--r--TAO/tao/Dynamic_TP/DTP_POA_Strategy.h8
-rw-r--r--TAO/tao/Dynamic_TP/DTP_Task.cpp7
-rw-r--r--TAO/tao/Dynamic_TP/DTP_Task.h250
-rw-r--r--TAO/tao/Dynamic_TP/DTP_Thread_Pool.cpp4
-rw-r--r--TAO/tao/Dynamic_TP/DTP_Thread_Pool.h4
-rw-r--r--TAO/tao/Endpoint.cpp6
-rw-r--r--TAO/tao/Endpoint.h21
-rw-r--r--TAO/tao/Endpoint_Selector_Factory.cpp2
-rw-r--r--TAO/tao/Environment.cpp32
-rw-r--r--TAO/tao/Environment.h16
-rw-r--r--TAO/tao/Exception.cpp8
-rw-r--r--TAO/tao/Exception.h19
-rw-r--r--TAO/tao/Exception_Data.h2
-rw-r--r--TAO/tao/Exclusive_TMS.cpp24
-rw-r--r--TAO/tao/FILE_Parser.cpp6
-rw-r--r--TAO/tao/Fault_Tolerance_Service.cpp4
-rw-r--r--TAO/tao/Fault_Tolerance_Service.h6
-rw-r--r--TAO/tao/Fixed_Array_Argument_T.h18
-rw-r--r--TAO/tao/Fixed_Size_Argument_T.h18
-rw-r--r--TAO/tao/Flushing_Strategy.cpp2
-rw-r--r--TAO/tao/GIOP_Fragmentation_Strategy.cpp2
-rw-r--r--TAO/tao/GIOP_Fragmentation_Strategy.h11
-rw-r--r--TAO/tao/GIOP_Message_Base.cpp92
-rw-r--r--TAO/tao/GIOP_Message_Base.h8
-rw-r--r--TAO/tao/GIOP_Message_Generator_Parser.cpp4
-rw-r--r--TAO/tao/GIOP_Message_Generator_Parser.h10
-rw-r--r--TAO/tao/GIOP_Message_Generator_Parser_10.cpp6
-rw-r--r--TAO/tao/GIOP_Message_Generator_Parser_10.h6
-rw-r--r--TAO/tao/GIOP_Message_Generator_Parser_11.cpp2
-rw-r--r--TAO/tao/GIOP_Message_Generator_Parser_11.h2
-rw-r--r--TAO/tao/GIOP_Message_Generator_Parser_12.cpp10
-rw-r--r--TAO/tao/GIOP_Message_Generator_Parser_12.h8
-rw-r--r--TAO/tao/GIOP_Message_State.h16
-rw-r--r--TAO/tao/GIOP_Message_Version.h4
-rw-r--r--TAO/tao/GUIResource_Factory.cpp15
-rw-r--r--TAO/tao/Generic_Sequence_T.h988
-rw-r--r--TAO/tao/HR_Time_Policy_Strategy.cpp8
-rw-r--r--TAO/tao/HTTP_Client.cpp10
-rw-r--r--TAO/tao/HTTP_Handler.cpp34
-rw-r--r--TAO/tao/HTTP_Parser.cpp22
-rw-r--r--TAO/tao/IIOP_Acceptor.cpp90
-rw-r--r--TAO/tao/IIOP_Acceptor.h17
-rw-r--r--TAO/tao/IIOP_Connection_Handler.cpp41
-rw-r--r--TAO/tao/IIOP_Connector.cpp109
-rw-r--r--TAO/tao/IIOP_Connector.h14
-rw-r--r--TAO/tao/IIOP_Endpoint.cpp67
-rw-r--r--TAO/tao/IIOP_Endpoint.h19
-rw-r--r--TAO/tao/IIOP_Factory.cpp22
-rw-r--r--TAO/tao/IIOP_Profile.cpp72
-rw-r--r--TAO/tao/IIOP_Profile.h17
-rw-r--r--TAO/tao/IIOP_Transport.cpp26
-rw-r--r--TAO/tao/IORInterceptor_Adapter.cpp2
-rw-r--r--TAO/tao/IORInterceptor_Adapter.h7
-rw-r--r--TAO/tao/IORInterceptor_Adapter_Factory.cpp2
-rw-r--r--TAO/tao/IORManipulation/IORManipulation.cpp16
-rw-r--r--TAO/tao/IOR_Parser.cpp2
-rw-r--r--TAO/tao/IOR_Parser.h3
-rw-r--r--TAO/tao/Incoming_Message_Queue.cpp14
-rw-r--r--TAO/tao/Incoming_Message_Queue.h8
-rw-r--r--TAO/tao/Intrusive_Ref_Count_Base_T.h19
-rw-r--r--TAO/tao/Intrusive_Ref_Count_Handle_T.h18
-rw-r--r--TAO/tao/Intrusive_Ref_Count_Object_T.h4
-rw-r--r--TAO/tao/Invocation_Adapter.cpp20
-rw-r--r--TAO/tao/Invocation_Adapter.h6
-rw-r--r--TAO/tao/Invocation_Base.cpp28
-rw-r--r--TAO/tao/Invocation_Base.h38
-rw-r--r--TAO/tao/Invocation_Endpoint_Selectors.cpp6
-rw-r--r--TAO/tao/Invocation_Retry_Params.cpp2
-rw-r--r--TAO/tao/LF_CH_Event.cpp14
-rw-r--r--TAO/tao/LF_Connect_Strategy.cpp6
-rw-r--r--TAO/tao/LF_Event.cpp8
-rw-r--r--TAO/tao/LF_Event_Binder.cpp2
-rw-r--r--TAO/tao/LF_Follower.cpp4
-rw-r--r--TAO/tao/LF_Follower_Auto_Adder.cpp2
-rw-r--r--TAO/tao/LF_Follower_Auto_Ptr.cpp2
-rw-r--r--TAO/tao/LF_Invocation_Event.cpp10
-rw-r--r--TAO/tao/LF_Multi_Event.cpp34
-rw-r--r--TAO/tao/LF_Strategy.cpp2
-rw-r--r--TAO/tao/LF_Strategy_Complete.cpp2
-rw-r--r--TAO/tao/LRU_Connection_Purging_Strategy.cpp2
-rw-r--r--TAO/tao/Leader_Follower.cpp40
-rw-r--r--TAO/tao/Leader_Follower_Flushing_Strategy.cpp4
-rw-r--r--TAO/tao/Load_Protocol_Factory_T.h4
-rw-r--r--TAO/tao/LocalObject.cpp14
-rw-r--r--TAO/tao/LocalObject.h18
-rw-r--r--TAO/tao/LocateRequest_Invocation.cpp8
-rw-r--r--TAO/tao/LocateRequest_Invocation_Adapter.cpp18
-rw-r--r--TAO/tao/MCAST_Parser.cpp8
-rw-r--r--TAO/tao/MMAP_Allocator.cpp10
-rw-r--r--TAO/tao/MMAP_Allocator.h10
-rw-r--r--TAO/tao/MM_Sequence_Iterator_T.h957
-rw-r--r--TAO/tao/MProfile.cpp39
-rw-r--r--TAO/tao/MProfile.h34
-rw-r--r--TAO/tao/Messaging/AMH_Response_Handler.cpp8
-rw-r--r--TAO/tao/Messaging/AMH_Response_Handler.h8
-rw-r--r--TAO/tao/Messaging/AMH_Skeletons.cpp8
-rw-r--r--TAO/tao/Messaging/AMH_Skeletons.h8
-rw-r--r--TAO/tao/Messaging/AMI_Arguments_Converter_Impl.cpp2
-rw-r--r--TAO/tao/Messaging/AMI_Arguments_Converter_Impl.h2
-rw-r--r--TAO/tao/Messaging/Asynch_Invocation_Adapter.h2
-rw-r--r--TAO/tao/Messaging/Asynch_Reply_Dispatcher.cpp6
-rw-r--r--TAO/tao/Messaging/Asynch_Reply_Dispatcher.h6
-rw-r--r--TAO/tao/Messaging/Buffering_Constraint_Policy.cpp12
-rw-r--r--TAO/tao/Messaging/Buffering_Constraint_Policy.h12
-rw-r--r--TAO/tao/Messaging/Connection_Timeout_Policy_i.cpp12
-rw-r--r--TAO/tao/Messaging/Connection_Timeout_Policy_i.h12
-rw-r--r--TAO/tao/Messaging/ExceptionHolder_i.cpp8
-rw-r--r--TAO/tao/Messaging/ExceptionHolder_i.h10
-rw-r--r--TAO/tao/Messaging/Messaging.cpp2
-rw-r--r--TAO/tao/Messaging/Messaging.h2
-rw-r--r--TAO/tao/Messaging/Messaging_Loader.cpp4
-rw-r--r--TAO/tao/Messaging/Messaging_Loader.h4
-rw-r--r--TAO/tao/Messaging/Messaging_Policy_i.cpp24
-rw-r--r--TAO/tao/Messaging/Messaging_Policy_i.h24
-rw-r--r--TAO/tao/Monitor/Monitor_Impl.h1
-rw-r--r--TAO/tao/Muxed_TMS.cpp26
-rw-r--r--TAO/tao/Muxed_TMS.h15
-rw-r--r--TAO/tao/NVList_Adapter.cpp2
-rw-r--r--TAO/tao/NVList_Adapter.h2
-rw-r--r--TAO/tao/Nested_Upcall_Guard.h7
-rw-r--r--TAO/tao/Network_Priority_Protocols_Hooks.cpp2
-rw-r--r--TAO/tao/New_Leader_Generator.cpp2
-rw-r--r--TAO/tao/New_Leader_Generator.h1
-rw-r--r--TAO/tao/Null_Fragmentation_Strategy.cpp2
-rw-r--r--TAO/tao/Null_Fragmentation_Strategy.h10
-rw-r--r--TAO/tao/ORB.cpp140
-rw-r--r--TAO/tao/ORB.h57
-rw-r--r--TAO/tao/ORB.inl4
-rw-r--r--TAO/tao/ORBInitializer_Registry.cpp4
-rw-r--r--TAO/tao/ORBInitializer_Registry_Adapter.cpp2
-rw-r--r--TAO/tao/ORBInitializer_Registry_Adapter.h2
-rw-r--r--TAO/tao/ORB_Core.cpp576
-rw-r--r--TAO/tao/ORB_Core.h230
-rw-r--r--TAO/tao/ORB_Core.inl4
-rw-r--r--TAO/tao/ORB_Core_Auto_Ptr.cpp6
-rw-r--r--TAO/tao/ORB_Core_Auto_Ptr.h7
-rw-r--r--TAO/tao/ORB_Core_TSS_Resources.cpp14
-rw-r--r--TAO/tao/ORB_Core_TSS_Resources.h6
-rw-r--r--TAO/tao/ORB_Table.cpp20
-rw-r--r--TAO/tao/ORB_Table.h20
-rw-r--r--TAO/tao/ORB_Time_Policy.cpp4
-rw-r--r--TAO/tao/Object.cpp124
-rw-r--r--TAO/tao/Object.h63
-rw-r--r--TAO/tao/ObjectKey_Table.cpp8
-rw-r--r--TAO/tao/ObjectKey_Table.h6
-rw-r--r--TAO/tao/Object_Argument_T.h18
-rw-r--r--TAO/tao/Object_KeyC.cpp6
-rw-r--r--TAO/tao/Object_KeyC.h6
-rw-r--r--TAO/tao/Object_Loader.cpp2
-rw-r--r--TAO/tao/Object_Loader.h2
-rw-r--r--TAO/tao/Object_Proxy_Broker.cpp2
-rw-r--r--TAO/tao/Object_Proxy_Broker.h3
-rw-r--r--TAO/tao/Object_Ref_Table.cpp2
-rw-r--r--TAO/tao/Object_Ref_Table.h22
-rw-r--r--TAO/tao/Object_Reference_Const_Sequence_Element_T.h4
-rw-r--r--TAO/tao/Object_Reference_Sequence_Element_T.h4
-rw-r--r--TAO/tao/Objref_VarOut_T.h22
-rw-r--r--TAO/tao/On_Demand_Fragmentation_Strategy.cpp6
-rw-r--r--TAO/tao/On_Demand_Fragmentation_Strategy.h7
-rw-r--r--TAO/tao/PI/ClientRequestDetails.h4
-rw-r--r--TAO/tao/PI/ClientRequestInfo.cpp40
-rw-r--r--TAO/tao/PI/ClientRequestInfo.h41
-rw-r--r--TAO/tao/PI/ClientRequestInterceptor_Adapter_Impl.cpp2
-rw-r--r--TAO/tao/PI/ClientRequestInterceptor_Adapter_Impl.h4
-rw-r--r--TAO/tao/PI/ClientRequestInterceptor_Factory_Impl.cpp2
-rw-r--r--TAO/tao/PI/ClientRequestInterceptor_Factory_Impl.h2
-rw-r--r--TAO/tao/PI/DLL_Resident_ORB_Initializer.h8
-rw-r--r--TAO/tao/PI/Interceptor_List_T.cpp3
-rw-r--r--TAO/tao/PI/Interceptor_List_T.h6
-rw-r--r--TAO/tao/PI/ORBInitInfo.cpp18
-rw-r--r--TAO/tao/PI/ORBInitInfo.h26
-rw-r--r--TAO/tao/PI/ORBInitializer_Registry_Impl.cpp4
-rw-r--r--TAO/tao/PI/ORBInitializer_Registry_Impl.h8
-rw-r--r--TAO/tao/PI/PI.cpp2
-rw-r--r--TAO/tao/PI/PI.h2
-rw-r--r--TAO/tao/PI/PICurrent.cpp10
-rw-r--r--TAO/tao/PI/PICurrent.h12
-rw-r--r--TAO/tao/PI/PICurrent_Impl.cpp4
-rw-r--r--TAO/tao/PI/PICurrent_Impl.h10
-rw-r--r--TAO/tao/PI/PI_ORBInitializer.cpp2
-rw-r--r--TAO/tao/PI/PI_ORBInitializer.h2
-rw-r--r--TAO/tao/PI/PI_PolicyFactory.h3
-rw-r--r--TAO/tao/PI/PolicyFactoryC.cpp8
-rw-r--r--TAO/tao/PI/PolicyFactoryC.h10
-rw-r--r--TAO/tao/PI/PolicyFactory_Loader.cpp4
-rw-r--r--TAO/tao/PI/PolicyFactory_Loader.h4
-rw-r--r--TAO/tao/PI/PolicyFactory_Registry.cpp4
-rw-r--r--TAO/tao/PI/PolicyFactory_Registry.h11
-rw-r--r--TAO/tao/PI/ProcessingModePolicy.cpp10
-rw-r--r--TAO/tao/PI/ProcessingModePolicy.h8
-rw-r--r--TAO/tao/PI/RequestInfo_Util.cpp8
-rw-r--r--TAO/tao/PI/RequestInfo_Util.h9
-rw-r--r--TAO/tao/PI/RequestInterceptor_Adapter_Impl.cpp2
-rw-r--r--TAO/tao/PI/RequestInterceptor_Adapter_Impl.h2
-rw-r--r--TAO/tao/PI_Server/PICurrent_Guard.cpp2
-rw-r--r--TAO/tao/PI_Server/PICurrent_Guard.h2
-rw-r--r--TAO/tao/PI_Server/PI_Server.cpp2
-rw-r--r--TAO/tao/PI_Server/PI_Server.h2
-rw-r--r--TAO/tao/PI_Server/PI_Server_Loader.cpp4
-rw-r--r--TAO/tao/PI_Server/PI_Server_Loader.h5
-rw-r--r--TAO/tao/PI_Server/PortableServer_ORBInitializer.h2
-rw-r--r--TAO/tao/PI_Server/ServerInterceptorAdapter.cpp11
-rw-r--r--TAO/tao/PI_Server/ServerInterceptorAdapter.h8
-rw-r--r--TAO/tao/PI_Server/ServerRequestDetails.h3
-rw-r--r--TAO/tao/PI_Server/ServerRequestInfo.cpp111
-rw-r--r--TAO/tao/PI_Server/ServerRequestInfo.h42
-rw-r--r--TAO/tao/PI_Server/ServerRequestInfo.inl3
-rw-r--r--TAO/tao/PI_Server/ServerRequestInterceptorC.cpp8
-rw-r--r--TAO/tao/PI_Server/ServerRequestInterceptorC.h12
-rw-r--r--TAO/tao/PI_Server/ServerRequestInterceptor_Factory_Impl.cpp2
-rw-r--r--TAO/tao/PI_Server/ServerRequestInterceptor_Factory_Impl.h2
-rw-r--r--TAO/tao/Parser_Registry.cpp14
-rw-r--r--TAO/tao/Parser_Registry.h8
-rw-r--r--TAO/tao/Pluggable_Messaging_Utils.cpp2
-rw-r--r--TAO/tao/Pluggable_Messaging_Utils.h8
-rw-r--r--TAO/tao/PolicyFactory_Registry_Adapter.cpp2
-rw-r--r--TAO/tao/PolicyFactory_Registry_Adapter.h2
-rw-r--r--TAO/tao/PolicyFactory_Registry_Factory.cpp2
-rw-r--r--TAO/tao/PolicyFactory_Registry_Factory.h4
-rw-r--r--TAO/tao/Policy_Current.cpp2
-rw-r--r--TAO/tao/Policy_Current_Impl.h2
-rw-r--r--TAO/tao/Policy_Manager.cpp2
-rw-r--r--TAO/tao/Policy_Manager.h7
-rw-r--r--TAO/tao/Policy_Set.cpp14
-rw-r--r--TAO/tao/Policy_Set.h6
-rw-r--r--TAO/tao/Policy_Validator.cpp12
-rw-r--r--TAO/tao/Policy_Validator.h2
-rw-r--r--TAO/tao/PortableServer/Acceptor_Filter_Factory.h4
-rw-r--r--TAO/tao/PortableServer/Active_Object_Map.cpp33
-rw-r--r--TAO/tao/PortableServer/Active_Object_Map.h48
-rw-r--r--TAO/tao/PortableServer/Active_Object_Map_Entry.h2
-rw-r--r--TAO/tao/PortableServer/Active_Policy_Strategies.h25
-rw-r--r--TAO/tao/PortableServer/Basic_SArgument_T.h16
-rw-r--r--TAO/tao/PortableServer/Collocated_Arguments_Converter.h2
-rw-r--r--TAO/tao/PortableServer/Collocated_Object_Proxy_Broker.cpp4
-rw-r--r--TAO/tao/PortableServer/Collocated_Object_Proxy_Broker.h2
-rw-r--r--TAO/tao/PortableServer/Creation_Time.h8
-rw-r--r--TAO/tao/PortableServer/Default_Acceptor_Filter.cpp2
-rw-r--r--TAO/tao/PortableServer/Default_Acceptor_Filter.h2
-rw-r--r--TAO/tao/PortableServer/Default_Policy_Validator.cpp2
-rw-r--r--TAO/tao/PortableServer/Default_Policy_Validator.h2
-rw-r--r--TAO/tao/PortableServer/Default_Servant_Dispatcher.cpp2
-rw-r--r--TAO/tao/PortableServer/Default_Servant_Dispatcher.h2
-rw-r--r--TAO/tao/PortableServer/Fixed_Array_SArgument_T.h16
-rw-r--r--TAO/tao/PortableServer/Fixed_Size_SArgument_T.h14
-rw-r--r--TAO/tao/PortableServer/IdAssignmentPolicy.cpp12
-rw-r--r--TAO/tao/PortableServer/IdAssignmentPolicy.h12
-rw-r--r--TAO/tao/PortableServer/IdAssignmentStrategy.cpp4
-rw-r--r--TAO/tao/PortableServer/IdAssignmentStrategy.h8
-rw-r--r--TAO/tao/PortableServer/IdAssignmentStrategySystem.cpp4
-rw-r--r--TAO/tao/PortableServer/IdAssignmentStrategySystem.h4
-rw-r--r--TAO/tao/PortableServer/IdAssignmentStrategyUser.cpp4
-rw-r--r--TAO/tao/PortableServer/IdAssignmentStrategyUser.h4
-rw-r--r--TAO/tao/PortableServer/IdUniquenessPolicy.cpp12
-rw-r--r--TAO/tao/PortableServer/IdUniquenessPolicy.h12
-rw-r--r--TAO/tao/PortableServer/IdUniquenessStrategy.h2
-rw-r--r--TAO/tao/PortableServer/IdUniquenessStrategyMultiple.cpp4
-rw-r--r--TAO/tao/PortableServer/IdUniquenessStrategyMultiple.h4
-rw-r--r--TAO/tao/PortableServer/IdUniquenessStrategyUnique.cpp6
-rw-r--r--TAO/tao/PortableServer/IdUniquenessStrategyUnique.h6
-rw-r--r--TAO/tao/PortableServer/ImR_Client_Adapter.cpp2
-rw-r--r--TAO/tao/PortableServer/ImR_Client_Adapter.h2
-rw-r--r--TAO/tao/PortableServer/ImplicitActivationPolicy.cpp12
-rw-r--r--TAO/tao/PortableServer/ImplicitActivationPolicy.h12
-rw-r--r--TAO/tao/PortableServer/ImplicitActivationStrategy.cpp2
-rw-r--r--TAO/tao/PortableServer/ImplicitActivationStrategy.h4
-rw-r--r--TAO/tao/PortableServer/ImplicitActivationStrategyExplicit.cpp2
-rw-r--r--TAO/tao/PortableServer/ImplicitActivationStrategyExplicit.h2
-rw-r--r--TAO/tao/PortableServer/ImplicitActivationStrategyImplicit.cpp2
-rw-r--r--TAO/tao/PortableServer/ImplicitActivationStrategyImplicit.h2
-rw-r--r--TAO/tao/PortableServer/Key_Adapters.cpp2
-rw-r--r--TAO/tao/PortableServer/Key_Adapters.h2
-rw-r--r--TAO/tao/PortableServer/LifespanPolicy.cpp12
-rw-r--r--TAO/tao/PortableServer/LifespanPolicy.h12
-rw-r--r--TAO/tao/PortableServer/LifespanStrategy.cpp4
-rw-r--r--TAO/tao/PortableServer/LifespanStrategy.h16
-rw-r--r--TAO/tao/PortableServer/LifespanStrategyPersistent.cpp19
-rw-r--r--TAO/tao/PortableServer/LifespanStrategyPersistent.h12
-rw-r--r--TAO/tao/PortableServer/LifespanStrategyTransient.cpp12
-rw-r--r--TAO/tao/PortableServer/LifespanStrategyTransient.h14
-rw-r--r--TAO/tao/PortableServer/Network_Priority_Hook.cpp4
-rw-r--r--TAO/tao/PortableServer/Network_Priority_Hook.h4
-rw-r--r--TAO/tao/PortableServer/Non_Servant_Upcall.cpp2
-rw-r--r--TAO/tao/PortableServer/Non_Servant_Upcall.h4
-rw-r--r--TAO/tao/PortableServer/ORT_Adapter.h4
-rw-r--r--TAO/tao/PortableServer/ORT_Adapter_Factory.cpp2
-rw-r--r--TAO/tao/PortableServer/ORT_Adapter_Factory.h2
-rw-r--r--TAO/tao/PortableServer/Object_Adapter.cpp43
-rw-r--r--TAO/tao/PortableServer/Object_Adapter.h46
-rw-r--r--TAO/tao/PortableServer/Object_SArgument_T.h14
-rw-r--r--TAO/tao/PortableServer/Operation_Table.cpp4
-rw-r--r--TAO/tao/PortableServer/Operation_Table.h4
-rw-r--r--TAO/tao/PortableServer/Operation_Table_Binary_Search.cpp2
-rw-r--r--TAO/tao/PortableServer/Operation_Table_Binary_Search.h2
-rw-r--r--TAO/tao/PortableServer/Operation_Table_Dynamic_Hash.cpp2
-rw-r--r--TAO/tao/PortableServer/Operation_Table_Dynamic_Hash.h2
-rw-r--r--TAO/tao/PortableServer/Operation_Table_Linear_Search.cpp2
-rw-r--r--TAO/tao/PortableServer/Operation_Table_Linear_Search.h2
-rw-r--r--TAO/tao/PortableServer/Operation_Table_Perfect_Hash.cpp2
-rw-r--r--TAO/tao/PortableServer/Operation_Table_Perfect_Hash.h2
-rw-r--r--TAO/tao/PortableServer/POAManager.cpp13
-rw-r--r--TAO/tao/PortableServer/POAManager.h27
-rw-r--r--TAO/tao/PortableServer/POAManagerFactory.cpp6
-rw-r--r--TAO/tao/PortableServer/POAManagerFactory.h6
-rw-r--r--TAO/tao/PortableServer/POA_Cached_Policies.cpp26
-rw-r--r--TAO/tao/PortableServer/POA_Cached_Policies.h32
-rw-r--r--TAO/tao/PortableServer/POA_Cached_Policies.inl24
-rw-r--r--TAO/tao/PortableServer/POA_Current.cpp10
-rw-r--r--TAO/tao/PortableServer/POA_Current.h11
-rw-r--r--TAO/tao/PortableServer/POA_Current_Impl.cpp16
-rw-r--r--TAO/tao/PortableServer/POA_Current_Impl.h28
-rw-r--r--TAO/tao/PortableServer/POA_Policy_Set.cpp4
-rw-r--r--TAO/tao/PortableServer/POA_Policy_Set.h9
-rw-r--r--TAO/tao/PortableServer/Policy_Strategy.h4
-rw-r--r--TAO/tao/PortableServer/PortableServer.cpp2
-rw-r--r--TAO/tao/PortableServer/PortableServer.h2
-rw-r--r--TAO/tao/PortableServer/Regular_POA.cpp8
-rw-r--r--TAO/tao/PortableServer/Regular_POA.h10
-rw-r--r--TAO/tao/PortableServer/RequestProcessingPolicy.cpp12
-rw-r--r--TAO/tao/PortableServer/RequestProcessingPolicy.h12
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategy.cpp4
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategy.h8
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyAOMOnly.cpp4
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyAOMOnly.h6
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyDefaultServant.cpp8
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyDefaultServant.h8
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyServantActivator.cpp6
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyServantActivator.h6
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyServantLocator.cpp6
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyServantLocator.h6
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyServantManager.cpp4
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyServantManager.h4
-rw-r--r--TAO/tao/PortableServer/Root_POA.cpp76
-rw-r--r--TAO/tao/PortableServer/Root_POA.h144
-rw-r--r--TAO/tao/PortableServer/SUpcall_commands.cpp16
-rw-r--r--TAO/tao/PortableServer/SUpcall_commands.h16
-rw-r--r--TAO/tao/PortableServer/ServantRetentionPolicy.cpp12
-rw-r--r--TAO/tao/PortableServer/ServantRetentionPolicy.h12
-rw-r--r--TAO/tao/PortableServer/ServantRetentionStrategy.h4
-rw-r--r--TAO/tao/PortableServer/ServantRetentionStrategyNonRetain.cpp8
-rw-r--r--TAO/tao/PortableServer/ServantRetentionStrategyNonRetain.h12
-rw-r--r--TAO/tao/PortableServer/ServantRetentionStrategyRetain.cpp10
-rw-r--r--TAO/tao/PortableServer/ServantRetentionStrategyRetain.h12
-rw-r--r--TAO/tao/PortableServer/Servant_Base.cpp32
-rw-r--r--TAO/tao/PortableServer/Servant_Base.h31
-rw-r--r--TAO/tao/PortableServer/Servant_Dispatcher.cpp2
-rw-r--r--TAO/tao/PortableServer/Servant_Dispatcher.h2
-rw-r--r--TAO/tao/PortableServer/Servant_Upcall.cpp22
-rw-r--r--TAO/tao/PortableServer/Servant_Upcall.h42
-rw-r--r--TAO/tao/PortableServer/Servant_var.h2
-rw-r--r--TAO/tao/PortableServer/Special_Basic_SArgument_T.h16
-rw-r--r--TAO/tao/PortableServer/StrategyFactory.cpp2
-rw-r--r--TAO/tao/PortableServer/StrategyFactory.h2
-rw-r--r--TAO/tao/PortableServer/ThreadPolicy.cpp12
-rw-r--r--TAO/tao/PortableServer/ThreadPolicy.h12
-rw-r--r--TAO/tao/PortableServer/ThreadStrategy.cpp2
-rw-r--r--TAO/tao/PortableServer/ThreadStrategy.h2
-rw-r--r--TAO/tao/PortableServer/ThreadStrategySingle.h1
-rw-r--r--TAO/tao/PortableServer/UB_String_SArgument_T.h16
-rw-r--r--TAO/tao/PortableServer/Upcall_Command.cpp2
-rw-r--r--TAO/tao/PortableServer/Upcall_Command.h4
-rw-r--r--TAO/tao/PortableServer/Var_Array_SArgument_T.h16
-rw-r--r--TAO/tao/PortableServer/Var_Size_SArgument_T.h14
-rw-r--r--TAO/tao/Principal.cpp8
-rw-r--r--TAO/tao/Principal.h10
-rw-r--r--TAO/tao/Profile.cpp95
-rw-r--r--TAO/tao/Profile.h92
-rw-r--r--TAO/tao/Profile_Transport_Resolver.cpp20
-rw-r--r--TAO/tao/Profile_Transport_Resolver.h22
-rw-r--r--TAO/tao/Protocol_Factory.cpp4
-rw-r--r--TAO/tao/Protocols_Hooks.cpp12
-rw-r--r--TAO/tao/Protocols_Hooks.h14
-rw-r--r--TAO/tao/Pseudo_VarOut_T.h20
-rw-r--r--TAO/tao/Queued_Data.cpp40
-rw-r--r--TAO/tao/Queued_Data.h18
-rw-r--r--TAO/tao/Queued_Message.cpp30
-rw-r--r--TAO/tao/RTCORBA/Continuous_Priority_Mapping.h1
-rw-r--r--TAO/tao/RTCORBA/Direct_Priority_Mapping.h1
-rw-r--r--TAO/tao/RTCORBA/Linear_Network_Priority_Mapping.h1
-rw-r--r--TAO/tao/RTCORBA/RT_ORB_Loader.cpp4
-rw-r--r--TAO/tao/RTCORBA/Thread_Pool.cpp4
-rw-r--r--TAO/tao/RTPortableServer/RT_POA.cpp3
-rw-r--r--TAO/tao/RTScheduling/Current.cpp51
-rw-r--r--TAO/tao/RTScheduling/Current.h2
-rw-r--r--TAO/tao/RTScheduling/RTScheduler_Initializer.cpp3
-rw-r--r--TAO/tao/RTScheduling/RTScheduler_Manager.inl3
-rw-r--r--TAO/tao/RTScheduling/Request_Interceptor.cpp5
-rw-r--r--TAO/tao/RTScheduling/Request_Interceptor.h6
-rw-r--r--TAO/tao/Reactive_Connect_Strategy.cpp8
-rw-r--r--TAO/tao/Reactive_Flushing_Strategy.cpp4
-rw-r--r--TAO/tao/Refcounted_ObjectKey.cpp2
-rw-r--r--TAO/tao/Refcounted_ObjectKey.h8
-rw-r--r--TAO/tao/Remote_Invocation.cpp10
-rw-r--r--TAO/tao/Remote_Object_Proxy_Broker.cpp12
-rw-r--r--TAO/tao/Reply_Dispatcher.cpp10
-rw-r--r--TAO/tao/Reply_Dispatcher.h12
-rw-r--r--TAO/tao/Reply_Dispatcher.inl4
-rw-r--r--TAO/tao/RequestInterceptor_Adapter.cpp2
-rw-r--r--TAO/tao/RequestInterceptor_Adapter.h4
-rw-r--r--TAO/tao/Request_Dispatcher.cpp2
-rw-r--r--TAO/tao/Resource_Factory.cpp84
-rw-r--r--TAO/tao/Resource_Factory.h72
-rw-r--r--TAO/tao/Resume_Handle.cpp2
-rw-r--r--TAO/tao/Seq_Out_T.h4
-rw-r--r--TAO/tao/Seq_Var_T.h22
-rw-r--r--TAO/tao/ServerRequestInterceptor_Adapter.cpp2
-rw-r--r--TAO/tao/ServerRequestInterceptor_Adapter.h6
-rw-r--r--TAO/tao/ServerRequestInterceptor_Adapter_Factory.cpp2
-rw-r--r--TAO/tao/ServerRequestInterceptor_Adapter_Factory.h4
-rw-r--r--TAO/tao/Server_Strategy_Factory.cpp8
-rw-r--r--TAO/tao/Server_Strategy_Factory.h14
-rw-r--r--TAO/tao/Service_Callbacks.cpp4
-rw-r--r--TAO/tao/Service_Callbacks.h7
-rw-r--r--TAO/tao/Service_Context.cpp4
-rw-r--r--TAO/tao/Service_Context.h6
-rw-r--r--TAO/tao/Service_Context_Handler.cpp4
-rw-r--r--TAO/tao/Service_Context_Handler_Registry.cpp2
-rw-r--r--TAO/tao/Service_Context_Handler_Registry.h2
-rw-r--r--TAO/tao/Services_Activate.cpp2
-rw-r--r--TAO/tao/Special_Basic_Argument_T.h18
-rw-r--r--TAO/tao/Storable_Base.cpp2
-rw-r--r--TAO/tao/Storable_Factory.cpp4
-rw-r--r--TAO/tao/Storable_File_Guard.cpp10
-rw-r--r--TAO/tao/Storable_FlatFileStream.cpp52
-rw-r--r--TAO/tao/Strategies/COIOP_Profile.h3
-rw-r--r--TAO/tao/Strategies/DIOP_Acceptor.cpp2
-rw-r--r--TAO/tao/Strategies/SCIOP_Acceptor.cpp10
-rw-r--r--TAO/tao/Strategies/SCIOP_Acceptor.h4
-rw-r--r--TAO/tao/Strategies/SCIOP_Profile.cpp6
-rw-r--r--TAO/tao/Strategies/SCIOP_Profile.h6
-rw-r--r--TAO/tao/Strategies/SHMIOP_Profile.cpp6
-rw-r--r--TAO/tao/Strategies/SHMIOP_Profile.h6
-rw-r--r--TAO/tao/Strategies/UIOP_Connector.h3
-rw-r--r--TAO/tao/Strategies/advanced_resource.cpp3
-rw-r--r--TAO/tao/String_Alloc.cpp16
-rw-r--r--TAO/tao/String_Const_Sequence_Element_T.h2
-rw-r--r--TAO/tao/String_Manager_T.h12
-rw-r--r--TAO/tao/String_Sequence_Element_T.h8
-rw-r--r--TAO/tao/Stub.cpp68
-rw-r--r--TAO/tao/Stub.h80
-rw-r--r--TAO/tao/Stub.inl2
-rw-r--r--TAO/tao/Stub_Factory.cpp2
-rw-r--r--TAO/tao/Synch_Invocation.cpp18
-rw-r--r--TAO/tao/Synch_Invocation.h2
-rw-r--r--TAO/tao/Synch_Invocation.inl2
-rw-r--r--TAO/tao/Synch_Queued_Message.cpp38
-rw-r--r--TAO/tao/Synch_Reply_Dispatcher.cpp14
-rw-r--r--TAO/tao/SystemException.cpp66
-rw-r--r--TAO/tao/SystemException.h20
-rw-r--r--TAO/tao/System_Time_Policy_Strategy.cpp8
-rw-r--r--TAO/tao/TAO_Internal.cpp68
-rw-r--r--TAO/tao/TAO_Server_Request.cpp82
-rw-r--r--TAO/tao/TAO_Server_Request.h70
-rw-r--r--TAO/tao/TAO_Singleton_Manager.cpp50
-rw-r--r--TAO/tao/TAO_Singleton_Manager.h10
-rw-r--r--TAO/tao/TSS_Resources.cpp16
-rw-r--r--TAO/tao/TSS_Resources.h6
-rw-r--r--TAO/tao/Tagged_Components.cpp2
-rw-r--r--TAO/tao/Tagged_Components.h4
-rw-r--r--TAO/tao/Tagged_Profile.h12
-rw-r--r--TAO/tao/Thread_Lane_Resources.cpp190
-rw-r--r--TAO/tao/Thread_Lane_Resources.h38
-rw-r--r--TAO/tao/Thread_Lane_Resources_Manager.cpp8
-rw-r--r--TAO/tao/Thread_Lane_Resources_Manager.h18
-rw-r--r--TAO/tao/Thread_Per_Connection_Handler.cpp4
-rw-r--r--TAO/tao/Time_Policy_Manager.cpp14
-rw-r--r--TAO/tao/Transport.cpp193
-rw-r--r--TAO/tao/Transport.h136
-rw-r--r--TAO/tao/TransportCurrent/Current_ORBInitializer_Base.h3
-rw-r--r--TAO/tao/Transport_Acceptor.cpp12
-rw-r--r--TAO/tao/Transport_Acceptor.h26
-rw-r--r--TAO/tao/Transport_Cache_Manager_T.cpp4
-rw-r--r--TAO/tao/Transport_Cache_Manager_T.h10
-rw-r--r--TAO/tao/Transport_Cache_Manager_T.inl6
-rw-r--r--TAO/tao/Transport_Connector.cpp79
-rw-r--r--TAO/tao/Transport_Connector.h14
-rw-r--r--TAO/tao/Transport_Descriptor_Interface.cpp4
-rw-r--r--TAO/tao/Transport_Mux_Strategy.cpp2
-rw-r--r--TAO/tao/Transport_Mux_Strategy.h13
-rw-r--r--TAO/tao/Transport_Queueing_Strategies.cpp2
-rw-r--r--TAO/tao/Transport_Queueing_Strategies.h2
-rw-r--r--TAO/tao/Transport_Selection_Guard.cpp6
-rw-r--r--TAO/tao/Transport_Selection_Guard.h8
-rw-r--r--TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp35
-rw-r--r--TAO/tao/TypeCodeFactory_Adapter.cpp2
-rw-r--r--TAO/tao/TypeCodeFactory_Adapter.h2
-rw-r--r--TAO/tao/UB_String_Argument_T.h18
-rw-r--r--TAO/tao/Unbounded_Basic_String_Sequence_T.h109
-rw-r--r--TAO/tao/Unbounded_Object_Reference_Sequence_T.h68
-rw-r--r--TAO/tao/Unbounded_Octet_Sequence_T.h2
-rw-r--r--TAO/tao/Unbounded_Value_Sequence_T.h65
-rw-r--r--TAO/tao/UserException.cpp8
-rw-r--r--TAO/tao/UserException.h10
-rw-r--r--TAO/tao/Valuetype/AbstractBase.h46
-rw-r--r--TAO/tao/Valuetype/AbstractBase_Invocation_Adapter.h9
-rw-r--r--TAO/tao/Valuetype/Bounded_Valuetype_Sequence_T.h73
-rw-r--r--TAO/tao/Valuetype/Unbounded_Valuetype_Sequence_T.h73
-rw-r--r--TAO/tao/Valuetype/ValueBase.cpp4
-rw-r--r--TAO/tao/Valuetype/ValueBase.h40
-rw-r--r--TAO/tao/Valuetype/ValueFactory.h22
-rw-r--r--TAO/tao/Valuetype/Value_VarOut_T.h20
-rw-r--r--TAO/tao/Valuetype/Valuetype_Adapter_Factory_Impl.h6
-rw-r--r--TAO/tao/Valuetype_Adapter.cpp2
-rw-r--r--TAO/tao/Valuetype_Adapter.h4
-rw-r--r--TAO/tao/Valuetype_Adapter_Factory.cpp2
-rw-r--r--TAO/tao/Valuetype_Adapter_Factory.h4
-rw-r--r--TAO/tao/VarOut_T.h30
-rw-r--r--TAO/tao/Var_Array_Argument_T.h18
-rw-r--r--TAO/tao/Var_Size_Argument_T.h18
-rw-r--r--TAO/tao/Version.h8
-rw-r--r--TAO/tao/Wait_On_LF_No_Upcall.cpp4
-rw-r--r--TAO/tao/Wait_On_Leader_Follower.cpp23
-rw-r--r--TAO/tao/Wait_On_Reactor.cpp12
-rw-r--r--TAO/tao/Wait_On_Read.cpp23
-rw-r--r--TAO/tao/Wait_Strategy.cpp14
-rw-r--r--TAO/tao/Wait_Strategy.h10
-rw-r--r--TAO/tao/WrongTransactionC.cpp24
-rw-r--r--TAO/tao/WrongTransactionC.h12
-rw-r--r--TAO/tao/ZIOP_Adapter.cpp2
-rw-r--r--TAO/tao/default_client.cpp64
-rw-r--r--TAO/tao/default_environment.h2
-rw-r--r--TAO/tao/default_resource.cpp210
-rw-r--r--TAO/tao/default_server.cpp22
-rw-r--r--TAO/tao/operation_details.cpp2
-rw-r--r--TAO/tao/operation_details.h55
-rw-r--r--TAO/tao/orbconf.h4
-rw-r--r--TAO/tao/params.cpp24
-rw-r--r--TAO/tao/params.h88
-rw-r--r--TAO/tao/tao.mpc1
-rw-r--r--TAO/tao/target_specification.h8
-rw-r--r--TAO/tao/varbase.h2
-rw-r--r--TAO/tests/AMH_Exceptions/server.cpp7
-rw-r--r--TAO/tests/AMH_Oneway/server.cpp3
-rwxr-xr-xTAO/tests/AMI/run_test.pl2
-rw-r--r--TAO/tests/AlternateIIOP/README8
-rw-r--r--TAO/tests/BiDirectional_NestedUpcall/README2
-rw-r--r--TAO/tests/Big_Oneways/README10
-rw-r--r--TAO/tests/Big_Oneways/Session.h2
-rw-r--r--TAO/tests/Bug_1361_Regression/Echo.h7
-rwxr-xr-xTAO/tests/Bug_2702_Regression/fakeserver2.pl3
-rw-r--r--TAO/tests/Bug_3531b_Regression/server.cpp7
-rw-r--r--TAO/tests/IDL_Test/IDL_Test.mpc5
-rw-r--r--TAO/tests/IDL_Test/README2
-rw-r--r--TAO/tests/IDL_Test/enum_in_struct.idl2
-rw-r--r--TAO/tests/IDL_Test/keywords.idl20
-rw-r--r--TAO/tests/IDL_Test/typecode.idl3
-rw-r--r--TAO/tests/OBV/Collocated/Forward/TreeBase.idl2
-rw-r--r--TAO/tests/OBV/Forward/TreeBase.idl2
-rw-r--r--TAO/tests/ORB_shutdown/README2
-rw-r--r--TAO/tests/Portable_Interceptors/Bug_3582/Client_Request_Interceptor.h3
-rw-r--r--TAO/tests/Portable_Interceptors/Dynamic/Echo_Client_ORBInitializer.cpp7
-rw-r--r--TAO/tests/Portable_Interceptors/Dynamic/Echo_Client_ORBInitializer.h4
-rw-r--r--TAO/tests/Portable_Interceptors/Dynamic/Echo_Server_ORBInitializer.cpp6
-rw-r--r--TAO/tests/Portable_Interceptors/Dynamic/Echo_Server_ORBInitializer.h4
-rw-r--r--TAO/tests/Portable_Interceptors/Dynamic/README2
-rw-r--r--TAO/tests/Portable_Interceptors/Dynamic/client.cpp12
-rw-r--r--TAO/tests/Portable_Interceptors/Dynamic/client_interceptor.cpp71
-rw-r--r--TAO/tests/Portable_Interceptors/Dynamic/client_interceptor.h28
-rwxr-xr-xTAO/tests/Portable_Interceptors/Dynamic/run_test.pl2
-rw-r--r--TAO/tests/Portable_Interceptors/Dynamic/server.cpp8
-rw-r--r--TAO/tests/Portable_Interceptors/Dynamic/server_interceptor.cpp170
-rw-r--r--TAO/tests/Portable_Interceptors/Dynamic/server_interceptor.h26
-rw-r--r--TAO/tests/Portable_Interceptors/Dynamic/test_i.cpp11
-rw-r--r--TAO/tests/Portable_Interceptors/Dynamic/test_i.h16
-rw-r--r--TAO/tests/Portable_Interceptors/ForwardRequest/Client_Request_Interceptor.h3
-rw-r--r--TAO/tests/Portable_Interceptors/PICurrent/ClientORBInitializer.h4
-rw-r--r--TAO/tests/Portable_Interceptors/PICurrent/ClientRequestInterceptor.h3
-rw-r--r--TAO/tests/Portable_Interceptors/PICurrent/ClientRequestInterceptor2.h3
-rw-r--r--TAO/tests/Portable_Interceptors/PICurrent/README2
-rw-r--r--TAO/tests/Portable_Interceptors/PICurrent/ServerORBInitializer.h2
-rw-r--r--TAO/tests/Portable_Interceptors/PICurrent/ServerRequestInterceptor.h3
-rw-r--r--TAO/tests/Portable_Interceptors/PICurrent/test_i.h3
-rw-r--r--TAO/tests/Portable_Interceptors/Redirection/Client_Request_Interceptor.h3
-rw-r--r--TAO/tests/Portable_Interceptors/Redirection/Server_Request_Interceptor.h4
-rw-r--r--TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Client_ORBInitializer.h3
-rw-r--r--TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Client_Request_Interceptor.h3
-rw-r--r--TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/README5
-rw-r--r--TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Request_Interceptor.h3
-rw-r--r--TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Server_ORBInitializer.h2
-rw-r--r--TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Server_Request_Interceptor.cpp4
-rw-r--r--TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Server_Request_Interceptor.h3
-rw-r--r--TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/test_i.h3
-rw-r--r--TAO/tests/RTCORBA/Dynamic_Thread_Pool/README4
-rw-r--r--TAO/tests/RTCORBA/Dynamic_Thread_Pool/server.cpp1
-rw-r--r--TAO/tests/RTCORBA/Dynamic_Thread_Pool/test_i.h3
-rw-r--r--TAO/tests/Sequence_Iterators/.gitignore4
-rw-r--r--TAO/tests/Sequence_Iterators/Bounded_String.cpp673
-rw-r--r--TAO/tests/Sequence_Iterators/Sequence_Iterators.mpc29
-rw-r--r--TAO/tests/Sequence_Iterators/StringSeq.cpp959
-rw-r--r--TAO/tests/Sequence_Iterators/Unbounded_Objectref.cpp667
-rw-r--r--TAO/tests/Sequence_Iterators/Unbounded_Value.cpp690
-rw-r--r--TAO/tests/Sequence_Iterators/mock_reference.cpp88
-rw-r--r--TAO/tests/Sequence_Iterators/mock_reference.hpp100
-rwxr-xr-xTAO/tests/Sequence_Iterators/run_test.pl45
-rw-r--r--TAO/tests/Sequence_Iterators/testing_counters.hpp104
-rw-r--r--TAO/tests/Sequence_Iterators/testing_exception.hpp13
-rw-r--r--TAO/tests/Stack_Recursion/README2
-rw-r--r--TAO/tests/TransportCurrent/lib/Server_Request_Interceptor.h3
2335 files changed, 19390 insertions, 26004 deletions
diff --git a/TAO/ChangeLogs/ChangeLog-2000b b/TAO/ChangeLogs/ChangeLog-2000b
index e351ba06a04..41875495e5a 100644
--- a/TAO/ChangeLogs/ChangeLog-2000b
+++ b/TAO/ChangeLogs/ChangeLog-2000b
@@ -5757,7 +5757,7 @@ Tue Aug 29 20:28:30 2000 Pradeep Gore <pradeep@cs.wustl.edu>
* orbsvcs/examples/Notify/Filter/Filter.cpp:
* orbsvcs/examples/Notify/Subscribe/Subscribe.cpp:
- Fix for http://ace.cs.wustl.edu/bugzilla/show_bug.cgi?id=626
+ Fix for http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=626
Tue Aug 29 20:09:44 2000 Angelo Corsaro <corsaro@cs.wustl.edu>
diff --git a/TAO/ChangeLogs/ChangeLog-2001b b/TAO/ChangeLogs/ChangeLog-2001b
index 9b75444b16a..27d326a9411 100644
--- a/TAO/ChangeLogs/ChangeLog-2001b
+++ b/TAO/ChangeLogs/ChangeLog-2001b
@@ -6134,7 +6134,7 @@ Mon May 7 14:54:48 2001 Carlos O'Ryan <coryan@uci.edu>
* tao/Stub.h:
* tao/Stub.i:
* tao/Stub.cpp:
- Bug 542 (http://ace.cs.wustl.edu/bugzilla/show_bug.cgi?id=542)
+ Bug 542 (http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=542)
has reared its ugly head once again.
However, I think I finally nailed it: the ORB_Core was reference
counted by each object reference (via TAO_Stub), but the
@@ -7071,7 +7071,7 @@ Tue Apr 24 22:58:00 2001 Carlos O'Ryan <coryan@uci.edu>
side it actually break things.
After this change the IDL_Cubit regression test works, but there
are some scenarios that may not, more detailed documentation in
- http://ace.cs.wustl.edu/bugzilla/show_bug.cgi?id=884
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=884
Tue Apr 24 19:42:14 2001 Jeff Parsons <parsons@cs.wustl.edu>
diff --git a/TAO/ChangeLogs/ChangeLog-2001c b/TAO/ChangeLogs/ChangeLog-2001c
index 290b798e6d1..1a65ce6adec 100644
--- a/TAO/ChangeLogs/ChangeLog-2001c
+++ b/TAO/ChangeLogs/ChangeLog-2001c
@@ -7984,11 +7984,11 @@ Wed Aug 1 16:05:36 2001 Carlos O'Ryan <coryan@uci.edu>
Thu Jul 26 16:50:46 2001 Carlos O'Ryan <coryan@uci.edu>
* Part of the fixes for
- http://ace.cs.wustl.edu/bugzilla/show_bug.cgi?id=886
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=886
the changes also close the following bug:
- http://ace.cs.wustl.edu/bugzilla/show_bug.cgi?id=296
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=296
* tao/Leader_Follower_Flushing_Strategy.h:
* tao/Leader_Follower_Flushing_Strategy.cpp:
diff --git a/TAO/ChangeLogs/ChangeLog-2002a b/TAO/ChangeLogs/ChangeLog-2002a
index 2eb7ef21072..7c2b73bdbcc 100644
--- a/TAO/ChangeLogs/ChangeLog-2002a
+++ b/TAO/ChangeLogs/ChangeLog-2002a
@@ -126,8 +126,8 @@ Fri Jun 28 10:08:56 2002 Carlos O'Ryan <coryan@atdesk.com>
at run-time. Check the following bugzilla entries for more
info:
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1241
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=189
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1241
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=189
Fri Jun 28 07:31:12 2002 Johnny Willemsen <jwillemsen@remedy.nl>
@@ -252,7 +252,7 @@ Thu Jun 27 10:28:29 2002 Carlos O'Ryan <coryan@atdesk.com>
multiple threads to them.
This solves bug 1241:
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1241
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1241
Thu Jun 27 07:30:12 2002 Johnny Willemsen <jwillemsen@remedy.nl>
@@ -563,7 +563,7 @@ Mon Jun 17 12:43:07 2002 Carlos O'Ryan <coryan@atdesk.com>
expertise or time to review/fix SHMIOP, UIOP, SSLIOP or UIPMC.
I am considering this change another partial fix to:
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1220
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1220
Mon Jun 17 10:51:03 2002 Carlos O'Ryan <coryan@atdesk.com>
@@ -592,7 +592,7 @@ Fri Jun 14 13:58:56 2002 Carlos O'Ryan <coryan@atdesk.com>
* The following ChangeLog entry describe my fixes for bug 1222:
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1222
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1222
The main changes to solve the problem were:
@@ -1199,7 +1199,7 @@ Tue May 28 20:24:16 CDT 2002 Pradeep Gore <pradeep@oomworks.com>
* orbsvcs/orbsvcs/Notify/Notify_Event.h:
* orbsvcs/orbsvcs/Notify/Notify_ProxySupplier_T.cpp:
- Fix for bug: http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1134
+ Fix for bug: http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1134
Proxy Suppliers are subscribed for all events (special) by default.
* orbsvcs/tests/Notify/Basic/Events_Test.cpp:
@@ -1696,7 +1696,7 @@ Thu May 23 13:34:35 2002 Carlos O'Ryan <coryan@atdesk.com>
* tests/Nested_Upcall_Crash/scavenger.cpp:
* tests/Nested_Upcall_Crash/server.cpp:
Commit new regression test for
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1202
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1202
Thu May 23 12:02:19 2002 Carlos O'Ryan <coryan@atdesk.com>
diff --git a/TAO/ChangeLogs/ChangeLog-2002b b/TAO/ChangeLogs/ChangeLog-2002b
index e22bd2a7da7..de19d40d609 100644
--- a/TAO/ChangeLogs/ChangeLog-2002b
+++ b/TAO/ChangeLogs/ChangeLog-2002b
@@ -1220,7 +1220,7 @@ Thu Sep 26 11:55:05 2002 Carlos O'Ryan <coryan@atdesk.com>
* tao/Connection_Handler.h:
* tao/Connection_Handler.inl:
Remove unused IIOP-specific method. This fixes:
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1314
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1314
Tue Sep 26 05:32:22 UTC 2002 Johnny Willemsen <jwillemsen@remedy.nl>
@@ -1253,7 +1253,7 @@ Wed Sep 25 17:17:49 2002 Carlos O'Ryan <coryan@atdesk.com>
* orbsvcs/orbsvcs/PortableGroup/UIPMC_Connector.cpp:
Do not use naked delete for reference counted objects. This
fixes:
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1313
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1313
Wed Sep 25 17:58:03 2002 Jeff Parsons <parsons@cs.wustl.edu>
@@ -2349,7 +2349,7 @@ Fri Sep 13 09:37:59 2002 Carlos O'Ryan <coryan@atdesk.com>
The routines affected are handle_input(), handle_output(),
handle_close(), handle_close_i() and a couple others.
This fixes:
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1309
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1309
* tao/Strategies/DIOP_Acceptor.cpp:
The re-factoring eliminated some default arguments for
@@ -7822,7 +7822,7 @@ Tue Jul 2 15:46:14 2002 Balachandran Natarajan <bala@cs.wustl.edu>
This checkin is to prevent a problem that occurs unders certain
circumstances as described in [Bug 1230]
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1230
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1230
The methodology used to solve the problem is pretty much similar
to that described in the bug report.
diff --git a/TAO/ChangeLogs/ChangeLog-2002c b/TAO/ChangeLogs/ChangeLog-2002c
index d1768fb1f29..3e25734d36a 100644
--- a/TAO/ChangeLogs/ChangeLog-2002c
+++ b/TAO/ChangeLogs/ChangeLog-2002c
@@ -383,7 +383,7 @@ Sun Dec 22 11:26:30 2002 Balachandran Natarajan <bala@isis-server.isis.vanderb
Fix for Bug 1276. Please see
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1276 for more
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1276 for more
details on this bug. The gist of the fix is this
- If a follower thread timesout, it first tries to unbind the
@@ -1404,7 +1404,7 @@ Tue Dec 3 18:13:42 2002 Balachandran Natarajan <bala@isis-server.isis.vanderb
Fix for BUG 1382. Please see
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1382
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1382
for details. The problem is basically that we didnt know when and
how to do reference counting. The following fix addresses
@@ -1531,7 +1531,7 @@ Fri Nov 29 11:16:28 2002 Balachandran Natarajan <bala@isis-server.isis.vanderb
This set of fixes are for fixing BUG 1247. Please see
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1247
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1247
for more details. The problem is that the server side connections
never got purged. The cache manager was designed to purge
connections in the client and server end.
@@ -2888,7 +2888,7 @@ Tue Nov 12 12:47:31 2002 Balachandran Natarajan <bala@isis-server.isis.vanderb
Fix for [BUG 1020]. Please see details of the bug at
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1020
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1020
Please see the discussions in the above URL for details on
the motivations for these changes. A very brief summary of the
@@ -4253,7 +4253,7 @@ Thu Oct 31 14:48:39 2002 Balachandran Natarajan <bala@isis-server.isis.vanderb
This is a fix for BUGID 1284. Please see
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1284 for more
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1284 for more
details. This fix does the following
- The invocation class selects a timeout from the two options that
diff --git a/TAO/ChangeLogs/ChangeLog-2003b b/TAO/ChangeLogs/ChangeLog-2003b
index 7099e3ee807..77d42a1b602 100644
--- a/TAO/ChangeLogs/ChangeLog-2003b
+++ b/TAO/ChangeLogs/ChangeLog-2003b
@@ -66,7 +66,7 @@ Wed Jun 11 15:58:39 2003 Balachandran Natarajan <bala@dre.vanderbilt.edu>
* tao/Transport_Cache_Manager.cpp (make_idle_i): Fixes for BUG
1528. Please see
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1528
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1528
for the motivation. This checkin just removes the call to find
() on the map. It just changes the state of the map entry to
@@ -1337,7 +1337,7 @@ Mon May 19 13:02:16 2003 Ossama Othman <ossama@dre.vanderbilt.edu>
Mon May 19 11:05:26 2003 Ossama Othman <ossama@dre.vanderbilt.edu>
- From Knut-Håvard Aksnes <knut@orion.no>
+ From Knut-H�vard Aksnes <knut@orion.no>
* orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.cpp (parse_options):
Fixed support for "hostname_in_ior" endpoint option. [Bug 1370]
@@ -7585,7 +7585,7 @@ Thu Apr 3 13:13:24 2003 Balachandran Natarajan <bala@dre.vanderbilt.edu>
* tao/Muxed_TMS.cpp (connection_closed): Fix for bug 1482. Please
refer to
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1482
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1482
for details. The patch does the following
@@ -7620,7 +7620,7 @@ Thu Apr 3 10:57:23 2003 Balachandran Natarajan <bala@dre.vanderbilt.edu>
* tests/Bug_1482_Regression: A regression test for bug
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1482
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1482
Please see the bugzilla entry for details.
diff --git a/TAO/ChangeLogs/ChangeLog-2003c b/TAO/ChangeLogs/ChangeLog-2003c
index 7e5b9115888..37f2e2256fd 100644
--- a/TAO/ChangeLogs/ChangeLog-2003c
+++ b/TAO/ChangeLogs/ChangeLog-2003c
@@ -663,7 +663,7 @@ Wed Oct 15 11:22:01 2003 Balachandran Natarajan <bala@dre.vanderbilt.edu>
* tao/Transport.cpp (send_connection_closed_notifications_i): The
while loop could lead to possible crash. Please see
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1614
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1614
for details of the problem and the nature of fixes applied. As
usual, thanks to Carlos O'Ryan for digging this one up and
@@ -1705,14 +1705,14 @@ Wed Sep 24 09:02:19 2003 Balachandran Natarajan <bala@dre.vanderbilt.edu>
* tao/PortableServer/POA_Policies.cpp: Fix for [Bug 1587]. Please
see the documentation of the bug at
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1587
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1587
for more details. Thanks to Carlos O'Ryan for the patches.
* tao/MProfile.cpp: Fix for [BUG 1589]. Please see the
documentation of the bug at
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1589
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1589
Thanks to Huang-Ming Huang for the patch
diff --git a/TAO/ChangeLogs/ChangeLog-2003e b/TAO/ChangeLogs/ChangeLog-2003e
index f4a26be5aac..76eefe03bf0 100644
--- a/TAO/ChangeLogs/ChangeLog-2003e
+++ b/TAO/ChangeLogs/ChangeLog-2003e
@@ -539,7 +539,7 @@ Sun Dec 28 23:24:34 2003 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Please see
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1693
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1693
for an outline of the problem. The problem showed up because the
Any_Basic_Impl::extract () didn't handle alias TCKind's
@@ -1564,7 +1564,7 @@ Tue Dec 23 09:47:27 2003 Jeff Parsons <j.parsons@vanderbilt.edu>
Fixed incorrect dropping of _cxx_ prefix in parameter name (if
it clashes with a C++ keyword) of AMI sendc_* operation. Thanks
- to Cyrille Chépélov <cyrille@softek.fr> for reporting the bug.
+ to Cyrille Ch�p�lov <cyrille@softek.fr> for reporting the bug.
Tue Dec 23 12:53:59 UTC 2003 Johnny Willemsen <jwillemsen@remedy.nl>
@@ -2327,7 +2327,7 @@ Thu Dec 11 14:03:16 2003 Jeff Parsons <j.parsons@vanderbilt.edu>
methods need a reply to be sent right away, and this is not
handled under the hood in asynchronous_upcall_dispatch() as it
is in synchronous_upcall_dispatch(). This fix closes
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1670. Thanks
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1670. Thanks
to Carlos O'Ryan <coryan@atdesk.com> for pointing out the
problem and suggesting the fix.
@@ -6030,7 +6030,7 @@ Sun Nov 16 16:49:33 2003 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Fix for [BUG 1384]. Please see
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1384
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1384
for details. The crux of the problem is whether the FTORB
infrastructure should do a reinvocation when it receives a
@@ -6214,7 +6214,7 @@ Thu Nov 13 21:02:31 2003 Carlos O'Ryan <coryan@atdesk.com>
* tao/Queued_Message.cpp:
Made the remove_from_list() operation safe if called multiple
times. This fixes:
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1614
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1614
Fri Nov 14 00:26:46 UTC 2003 Don Hinton <dhinton@dresystems.com>
@@ -9510,7 +9510,7 @@ Tue Oct 28 12:02:47 2003 Balachandran Natarajan <bala@dre.vanderbilt.edu>
including the generated code. The design is outlined in the
bugzilla. Please see
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1369
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1369
This checkin only concentrates on the stub path. During the work
we tried addressing the following additional problems
diff --git a/TAO/ChangeLogs/ChangeLog-2004a b/TAO/ChangeLogs/ChangeLog-2004a
index f65141d7d1c..aa94dcc0efe 100644
--- a/TAO/ChangeLogs/ChangeLog-2004a
+++ b/TAO/ChangeLogs/ChangeLog-2004a
@@ -3619,7 +3619,7 @@ Tue Apr 27 06:55:46 2004 Chad Elliott <elliott_c@ociweb.com>
Mon Apr 26 13:52:49 2004 Carlos O'Ryan <coryan@atdesk.com>
* Fixes for:
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1779
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1779
* tao/params.i:
The sock_{snd,rcv}buf_size were silently truncated to
@@ -7985,7 +7985,7 @@ Fri Feb 13 17:47:10 2004 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Added a mutex around refcounting to address problems as outlined
in
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1728
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1728
Thanks to Torsten Kuepper for reporting the problem.
@@ -8479,7 +8479,7 @@ Sat Feb 7 20:32:06 2004 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Fix for BUGID 1734. Please see
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1734
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1734
for details.
diff --git a/TAO/ChangeLogs/ChangeLog-2004b b/TAO/ChangeLogs/ChangeLog-2004b
index a0a65244e4f..b816081526d 100644
--- a/TAO/ChangeLogs/ChangeLog-2004b
+++ b/TAO/ChangeLogs/ChangeLog-2004b
@@ -3705,7 +3705,7 @@ Sun Nov 14 05:01:28 2004 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Fix for Bug 1535. Please see
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1535
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1535
for details.
diff --git a/TAO/ChangeLogs/ChangeLog-2005a b/TAO/ChangeLogs/ChangeLog-2005a
index de32c344fd5..eee3fcf3db5 100644
--- a/TAO/ChangeLogs/ChangeLog-2005a
+++ b/TAO/ChangeLogs/ChangeLog-2005a
@@ -11894,7 +11894,7 @@ Thu Jan 27 20:01:21 2005 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Fix for [BUGID 2038]. Please see
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=2038
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=2038
for details and thanks to Torsten Kuepper
<torsten.kuepper@nokia.com> for reporting the problem.
@@ -13754,7 +13754,7 @@ Thu Jan 6 08:24:39 2005 Carlos O'Ryan <coryan@atdesk.com>
* orbsvcs/orbsvcs/ESF/ESF_Proxy_List.i:
Use ACE_Unbounded_Set instead of ACE_Unbounded_Set_Ex. The
latter is not thread-safe, and the bugs attributed to the former
- (see http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1465)
+ (see http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1465)
are actually a user-configuration mistake.
Thu Jan 6 12:02:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
diff --git a/TAO/ChangeLogs/ChangeLog-2005b b/TAO/ChangeLogs/ChangeLog-2005b
index 9e973bab5e9..9e196185095 100644
--- a/TAO/ChangeLogs/ChangeLog-2005b
+++ b/TAO/ChangeLogs/ChangeLog-2005b
@@ -12076,7 +12076,7 @@ Fri Aug 26 23:48:25 2005 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Fix for bug
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=2224
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=2224
* tao/Client_Strategy_Factory.cpp:
* tao/Client_Strategy_Factory.h:
diff --git a/TAO/ChangeLogs/TAO-2_5_12 b/TAO/ChangeLogs/TAO-2_5_12
new file mode 100644
index 00000000000..39f87a5b5e8
--- /dev/null
+++ b/TAO/ChangeLogs/TAO-2_5_12
@@ -0,0 +1,349 @@
+commit 30dc9807c9d6c752e0bc0d528ae2e7c57c53f716
+Merge: d25bf627beb a5bb8cb886e
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Tue Oct 6 13:05:15 2020 +0200
+
+ Merge branch 'master' of https://github.com/DOCGroup/ACE_TAO into master
+
+commit d25bf627bebf25507b2f4c7e3023ec2c1bd0ed7b
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Tue Oct 6 13:05:07 2020 +0200
+
+ Use https
+
+ * ACE/docs/ACE-bug-process.html:
+ * ACE/docs/usage-bugzilla.html:
+ * ACE/html/Stats/img.html:
+ * TAO/docs/TAO-metrics.html:
+ * TAO/docs/releasenotes/index.html:
+
+commit 28e4e2fbcd7b9b80ffb295ae469366c198c61d61
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Tue Oct 6 10:42:48 2020 +0200
+
+ Fixed typo and removed blank lines
+
+ * TAO/tests/IDL_Test/README:
+ * TAO/tests/IDL_Test/enum_in_struct.idl:
+ * TAO/tests/IDL_Test/typecode.idl:
+
+commit f54ee35e7280cba29259b321cdaed3e32cec5609
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Tue Oct 6 10:34:48 2020 +0200
+
+ Also use Objects as part of an operation but as a result don't generate Any operations anymore in a separate file
+
+ * TAO/tests/IDL_Test/IDL_Test.mpc:
+ * TAO/tests/IDL_Test/keywords.idl:
+
+commit d1e01360b3348b5df10def429aa4a3f3083efee5
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Tue Oct 6 09:53:27 2020 +0200
+
+ Add keyword escaping example and use that also for private/public
+
+ * TAO/tests/IDL_Test/keywords.idl:
+
+commit ae13700f76493361f0c82ac49d87567f9ac18cf9
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Mon Oct 5 12:10:20 2020 +0200
+
+ Upgrade to latest doxygen
+
+ * ACE/etc/ace.doxygen:
+ * ACE/etc/ace_inet.doxygen:
+ * ACE/etc/ace_qos.doxygen:
+ * ACE/etc/ace_rmcast.doxygen:
+ * ACE/etc/ace_ssl.doxygen:
+ * ACE/etc/acexml.doxygen:
+ * TAO/etc/tao.doxygen:
+ * TAO/etc/tao_anytypecode.doxygen:
+ * TAO/etc/tao_av.doxygen:
+ * TAO/etc/tao_compression.doxygen:
+ * TAO/etc/tao_cosevent.doxygen:
+ * TAO/etc/tao_cosnaming.doxygen:
+ * TAO/etc/tao_cosnotification.doxygen:
+ * TAO/etc/tao_costime.doxygen:
+ * TAO/etc/tao_costrader.doxygen:
+ * TAO/etc/tao_dynamicany.doxygen:
+ * TAO/etc/tao_dynamicinterface.doxygen:
+ * TAO/etc/tao_esf.doxygen:
+ * TAO/etc/tao_ifr.doxygen:
+ * TAO/etc/tao_implrepo.doxygen:
+ * TAO/etc/tao_iormanip.doxygen:
+ * TAO/etc/tao_iortable.doxygen:
+ * TAO/etc/tao_pi.doxygen:
+ * TAO/etc/tao_pi_server.doxygen:
+ * TAO/etc/tao_portablegroup.doxygen:
+ * TAO/etc/tao_portableserver.doxygen:
+ * TAO/etc/tao_rtcorba.doxygen:
+ * TAO/etc/tao_rtevent.doxygen:
+ * TAO/etc/tao_rtportableserver.doxygen:
+ * TAO/etc/tao_security.doxygen:
+ * TAO/etc/tao_smartproxies.doxygen:
+ * TAO/etc/tao_ssliop.doxygen:
+ * TAO/etc/tao_strategies.doxygen:
+ * TAO/etc/tao_transportcurrent.doxygen:
+ * TAO/etc/tao_ziop.doxygen:
+
+commit 0c65b800b02daee58d9f0187442bf829a3ff0a69
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Fri Oct 2 18:24:09 2020 +0200
+
+ Perl shebang changes
+
+ * TAO/orbsvcs/examples/Notify/MC/TkMonitor/monitor.pl:
+ * TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/compare_histo.pl:
+ * TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/generate_gnuplot.pl:
+ * TAO/tests/Bug_2702_Regression/fakeserver2.pl:
+
+commit ab4ee33c0aa8253f8d6f9ea03840a645f8ac8523
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Fri Oct 2 16:24:16 2020 +0200
+
+ Fixed typo and layout issues
+
+ * TAO/tests/AMH_Exceptions/server.cpp:
+ * TAO/tests/AMH_Oneway/server.cpp:
+ * TAO/tests/AlternateIIOP/README:
+ * TAO/tests/Big_Oneways/README:
+ * TAO/tests/Big_Oneways/Session.h:
+
+commit 6f78b0285ec9a20ccc8c626ff99e5df711a25e18
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Fri Sep 18 08:46:41 2020 +0200
+
+ Remove usage of narrow_from_decl/narrow_from_scope and replace them with dynamic_cast
+
+commit 0eff81cbdb5089fc417afd9aeddf20a626e7512a
+Merge: ad651b66893 3a00d263bcd
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Fri Sep 18 08:21:19 2020 +0200
+
+ Merge branch 'master' of https://github.com/DOCGroup/ACE_TAO into master
+
+commit ad651b668932c63e66cdc4b6a29961059a802edf
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Thu Sep 17 19:38:47 2020 +0200
+
+ Reduced indent of bullets in several readme files
+
+commit 7c83db6c282edbe68cd43e5cb7a21d2a121407bc
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Thu Sep 17 19:22:35 2020 +0200
+
+ Removed old cidlc comments
+
+ * TAO/TAO_IDL/be/be_visitor_component/component_exh.cpp:
+ * TAO/TAO_IDL/be/be_visitor_component/component_exs.cpp:
+ * TAO/TAO_IDL/be/be_visitor_component/component_svh.cpp:
+ * TAO/TAO_IDL/be/be_visitor_component/component_svs.cpp:
+ * TAO/TAO_IDL/be/be_visitor_component/component_svth.cpp:
+ * TAO/TAO_IDL/be/be_visitor_component/component_svts.cpp:
+ * TAO/TAO_IDL/be/be_visitor_connector/connector_ami_exh.cpp:
+ * TAO/TAO_IDL/be/be_visitor_connector/connector_ami_exs.cpp:
+ * TAO/TAO_IDL/be/be_visitor_connector/connector_dds_ex_base.cpp:
+ * TAO/TAO_IDL/be/be_visitor_home/home_exh.cpp:
+ * TAO/TAO_IDL/be/be_visitor_home/home_exs.cpp:
+ * TAO/TAO_IDL/be/be_visitor_home/home_svh.cpp:
+ * TAO/TAO_IDL/be/be_visitor_home/home_svs.cpp:
+ * TAO/TAO_IDL/be_include/be_global.h:
+
+commit 064720271e9e6c629aeba94bcf012bf4c77ebc7e
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Sun Aug 30 11:11:34 2020 +0200
+
+ Removed unnecessary semicolon after ACE_UNIMPLEMENTED_FUNC
+
+ * TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp:
+
+commit 8154ac1e47daf9cd93dadf61561d854b29f4f574
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Fri Aug 28 16:52:09 2020 +0200
+
+ Const change
+
+ * TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.cpp:
+
+commit ad42f8ce4169c55170a5aa6ff87ba7d76dd8ead5
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Fri Aug 28 16:51:58 2020 +0200
+
+ Layout change
+
+ * TAO/TAO_IDL/be/be_interface.cpp:
+
+commit e3c786e54c4aab48cf39949f69bc18fc3dee1055
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Fri Aug 28 16:51:47 2020 +0200
+
+ Generate also a private move constructor/assignment and use ACE_UNIMPLEMENTED_FUNC in order to get `= delete` with C++11 and newer
+
+ * TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp:
+
+commit 87008d7060ffffb9ee9c5c264c250dc90e48e1b2
+Merge: ce68efbcbd0 b4840dd0504
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Wed Aug 26 08:24:10 2020 +0200
+
+ Merge branch 'master' of https://github.com/DOCGroup/ACE_TAO into master
+
+commit 2f35a199f9d5c6074e8f6450c3973ea6a10af5ff
+Merge: 9c8bbd22dac 548012c88c8
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Wed Aug 26 08:22:22 2020 +0200
+
+ Merge pull request #1214 from jwillemsen/jwi-githubactionwindows
+
+ Replace azure pipelines with github actions for CI testing on Windows
+
+commit e0a6ada7a4296a0abc33cd98ba3e36df03eb9c5b
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Tue Aug 25 18:17:15 2020 +0200
+
+ Layout changes
+
+ * TAO/tao/Strategies/SCIOP_Acceptor.h:
+
+commit ec41c7dc9431f851d4b9231f8fb7a1c54054a4cd
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Tue Aug 25 15:21:04 2020 +0200
+
+ Const changes and removed some unnessary casts
+
+ * TAO/tao/IIOP_Acceptor.cpp:
+ * TAO/tao/ORB_Core.cpp:
+ * TAO/tao/RTCORBA/RT_ORB_Loader.cpp:
+ * TAO/tao/Strategies/SCIOP_Acceptor.cpp:
+ * TAO/tao/default_resource.cpp:
+ * TAO/tao/default_server.cpp:
+
+commit bda85e4db023e38cf6f314e7c80698be40ee4bce
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Tue Aug 25 14:32:50 2020 +0200
+
+ Use bool for found_a_port
+
+ * TAO/tao/Strategies/SCIOP_Acceptor.cpp:
+
+commit c3c16c78dfec71183de20d1ec95e3cda0aeee557
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Mon Aug 24 17:29:22 2020 +0200
+
+ Fixed typo
+
+ * ACE/ace/Obstack_T.h:
+ * TAO/docs/releasenotes/trader.html:
+ * TAO/orbsvcs/tests/Property/client.cpp:
+ * TAO/orbsvcs/tests/Simple_Naming/README:
+
+commit 69d236085b3493ec61ef3a092b9cfe7585629c66
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Sat Aug 22 15:37:33 2020 +0200
+
+ Windows only on pull request
+
+ * .github/workflows/windows.yml:
+ * TAO/examples/Simple/Simple_util.h:
+
+commit 2e743e10ceb17abf3eeb02ed74bbe65839fff6b5
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Sat Aug 22 12:55:49 2020 +0200
+
+ Fixed typo in comment
+
+ * TAO/tests/AMI/run_test.pl:
+
+commit c61b0db31cda9725e27e512b8a847651fb7708d0
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Thu Aug 20 16:06:33 2020 +0200
+
+ Upgrade doxygen files to latest doxygen version
+
+commit bbe905207b94a34fb3000be67ba9c02e2de6dbd4
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Thu Aug 20 15:24:36 2020 +0200
+
+ Layout changes
+
+ * TAO/tao/AnyTypeCode/Any_Array_Impl_T.cpp:
+ * TAO/tao/AnyTypeCode/Any_Array_Impl_T.h:
+ * TAO/tao/AnyTypeCode/Any_Special_Impl_T.h:
+ * TAO/tao/AnyTypeCode/Enum_TypeCode.cpp:
+ * TAO/tao/AnyTypeCode/Enum_TypeCode_Static.cpp:
+ * TAO/tao/AnyTypeCode/Struct_TypeCode_Static.cpp:
+ * TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.cpp:
+ * TAO/tao/AnyTypeCode/TypeCode_Case_T.cpp:
+ * TAO/tao/AnyTypeCode/Union_TypeCode.cpp:
+ * TAO/tao/AnyTypeCode/Union_TypeCode_Static.cpp:
+ * TAO/tao/AnyTypeCode/Value_TypeCode.cpp:
+ * TAO/tao/AnyTypeCode/Value_TypeCode_Static.cpp:
+ * TAO/tao/AnyTypeCode/append.cpp:
+ * TAO/tao/CORBANAME_Parser.cpp:
+ * TAO/tao/CSD_Framework/CSD_Default_Servant_Dispatcher.cpp:
+ * TAO/tao/CSD_Framework/CSD_POA.cpp:
+ * TAO/tao/Connector_Registry.cpp:
+ * TAO/tao/DynamicAny/DynCommon.cpp:
+ * TAO/tao/DynamicAny/DynStruct_i.cpp:
+ * TAO/tao/DynamicAny/DynUnion_i.cpp:
+ * TAO/tao/DynamicAny/DynValueBox_i.cpp:
+ * TAO/tao/DynamicAny/DynValue_i.cpp:
+ * TAO/tao/RTScheduling/RTScheduler_Initializer.cpp:
+ * TAO/tao/RTScheduling/RTScheduler_Manager.inl:
+ * TAO/tao/RTScheduling/Request_Interceptor.cpp:
+ * TAO/tao/Strategies/COIOP_Profile.h:
+ * TAO/tao/Strategies/SCIOP_Profile.cpp:
+ * TAO/tao/Strategies/SCIOP_Profile.h:
+ * TAO/tao/Strategies/SHMIOP_Profile.cpp:
+ * TAO/tao/Strategies/SHMIOP_Profile.h:
+ * TAO/tao/Strategies/UIOP_Connector.h:
+ * TAO/tao/Transport_Connector.cpp:
+ * TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp:
+
+commit fefa0d5f1850d0f1e633c4182702698ce64f6eb8
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Thu Aug 20 14:41:22 2020 +0200
+
+ Layout and true/false changes
+
+ * ACE/ace/INET_Addr.cpp:
+ * TAO/tao/DynamicInterface/AMH_DSI_Response_Handler.cpp:
+ * TAO/tao/DynamicInterface/DII_Arguments.cpp:
+ * TAO/tao/DynamicInterface/Server_Request.cpp:
+
+commit 3568c72dc8476bc3a521150fff2e8bb6f193a7d8
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Thu Aug 20 12:39:12 2020 +0200
+
+ Layout and docu changes
+
+ * TAO/tao/Object.cpp:
+ * TAO/tao/Service_Callbacks.cpp:
+ * TAO/tao/Service_Callbacks.h:
+
+commit 4a682e2b0a5795e8c5812b7604d366f04f37e60d
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Wed Aug 19 11:13:28 2020 +0200
+
+ Removed some empty lines
+
+ * TAO/tao/On_Demand_Fragmentation_Strategy.h:
+
+commit fcdeaf9ba2ff504e3d3f4ac2f9c06657d498b39f
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Mon Aug 17 11:05:51 2020 +0200
+
+ Add missing changelogs
+
+commit dbbd86832258985b5cf9533d85738e38df37ee66
+Author: Johnny Willemsen <jwillemsen@remedy.nl>
+Date: Mon Aug 17 10:14:35 2020 +0200
+
+ Make ACE 6.5.11 and TAO 2.5.11 public available and prepare for next release
+
+ * ACE/bin/copy-local-script.sh:
+ * ACE/bin/diff-builds-and-group-fixed-tests-only.sh:
+ * ACE/docs/Download.html:
+ * ACE/docs/bczar/bczar.html:
+ * ACE/etc/index.html:
+ * TAO/NEWS:
diff --git a/TAO/MPC/config/tao_rules.mpb b/TAO/MPC/config/tao_rules.mpb
new file mode 100644
index 00000000000..e052c156cea
--- /dev/null
+++ b/TAO/MPC/config/tao_rules.mpb
@@ -0,0 +1,5 @@
+project {
+ verbatim(gnuace, extension, 1) {
+ include $(TAO_ROOT)/rules.tao.GNU
+ }
+}
diff --git a/TAO/MPC/config/taodefaults.mpb b/TAO/MPC/config/taodefaults.mpb
index 29fc8b6266e..89e08a6cee1 100644
--- a/TAO/MPC/config/taodefaults.mpb
+++ b/TAO/MPC/config/taodefaults.mpb
@@ -1,5 +1,5 @@
// -*- MPC -*-
-project : tao_vc8warnings {
+project : tao_rules, tao_vc8warnings {
staticflags += TAO_AS_STATIC_LIBS
includes += $(TAO_ROOT)
libpaths += $(ACE_ROOT)/lib
diff --git a/TAO/NEWS b/TAO/NEWS
index 0c3828c2eea..f8bc2bdb513 100644
--- a/TAO/NEWS
+++ b/TAO/NEWS
@@ -1,6 +1,17 @@
+USER VISIBLE CHANGES BETWEEN TAO-2.5.12 and TAO-3.0.0
+=====================================================
+
+. C++11 is now a mandatory compiler feature which is
+ required for TAO
+
USER VISIBLE CHANGES BETWEEN TAO-2.5.11 and TAO-2.5.12
======================================================
+. Removed usage of narrow_from_decl and narrow_from_scope
+ from TAO_IDL, use dynamic_cast now that we have RTTI. Any
+ user that has a custom backend should make the similar
+ changes to their own TAO_IDL backend
+
USER VISIBLE CHANGES BETWEEN TAO-2.5.10 and TAO-2.5.11
======================================================
diff --git a/TAO/PROBLEM-REPORT-FORM b/TAO/PROBLEM-REPORT-FORM
index 6419f40bfbf..fcfe13e826b 100644
--- a/TAO/PROBLEM-REPORT-FORM
+++ b/TAO/PROBLEM-REPORT-FORM
@@ -40,8 +40,8 @@
To: tao-bugs@list.isis.vanderbilt.edu
Subject: [area]: [synopsis]
- TAO VERSION: 2.5.11
- ACE VERSION: 6.5.11
+ TAO VERSION: 2.5.12
+ ACE VERSION: 6.5.12
HOST MACHINE and OPERATING SYSTEM:
If on Windows based OS's, which version of WINSOCK do you
diff --git a/TAO/TAO-INSTALL.html b/TAO/TAO-INSTALL.html
index a13c716489f..e824ed9a42b 100644
--- a/TAO/TAO-INSTALL.html
+++ b/TAO/TAO-INSTALL.html
@@ -31,7 +31,7 @@ to run TAO on:<P>
<table width="100%" border=1>
<tr valign=top>
<td><b>Fully supported, i.e., continually tested and used daily</b></td>
- <td>Windows (Microsoft Visual C++ 7.1, 9.0, 10.0, 11.0, 12, 14.0, 14.1, and 14.2),
+ <td>Windows (Microsoft Visual Studio 2015, 2017, and 2019),
Linux/Intel (Redhat, Debian, and SuSe), Android
</td>
</tr>
@@ -148,8 +148,8 @@ bundle as a single piece instead of trying to mix and match things up.<P>
<LI>Run MPC like this, $ACE_ROOT/bin/mwc.pl TAO_ACE.mwc -type gnuace </LI>
<LI>Run
'make'.</LI> </OL></P><P> This will create all the required libraries for TAO
- and TAO orbsvcs. In step 6, use -type vc71 if you want to
- generate VC71 project and workspace files for Win32. Please
+ and TAO orbsvcs. In step 6, use -type vs2019 if you want to
+ generate Visual Studio 2019 project and workspace files for Win32. Please
see <A href="../MPC/docs/USAGE"> MPC USAGE </A> document for
details on how to generate build files for other compilers
and tools.</P>
@@ -390,7 +390,7 @@ Make sure that you first build <code>$TAO_ROOT\TAO_IDL</code> and then <code>
$TAO_ROOT\tao</code> because in order to compile the core TAO libraries
you need to have <code>TAO_IDL</code> compiled.
-<H4>Visual C++ 7.1 and newer</H4>
+<H4>Visual Studio 2015 and newer</H4>
<P>It works best if TAO is placed in ACE_wrappers so TAO ends up in
<CODE>ACE_wrappers\TAO</CODE> because the Visual Studio Project files
@@ -402,7 +402,7 @@ href="../bin/MakeProjectCreator/config/acedefaults.mpb"> this base
project </a> file.</P>
<OL>
- <LI>Make sure ACE is built (For Visual C++ 7.1, use ACE.sln). <P>
+ <LI>Make sure ACE is built (For Visual Studio 2015, use ACE.sln). <P>
<LI>First make sure <CODE>ACE_wrappers\bin</CODE> is listed in the Executable
Directories in Tools|Options. This is needed if using the TAO_IDL
diff --git a/TAO/TAO_IDL/ast/ast_annotation_appl.cpp b/TAO/TAO_IDL/ast/ast_annotation_appl.cpp
index aed09a6c3cf..7ea25ceffe4 100644
--- a/TAO/TAO_IDL/ast/ast_annotation_appl.cpp
+++ b/TAO/TAO_IDL/ast/ast_annotation_appl.cpp
@@ -2,8 +2,8 @@
#include "ast_annotation_member.h"
AST_Annotation_Appl::Param::Param ()
- : id (0),
- expr (0),
+ : id (nullptr),
+ expr (nullptr),
used (false)
{
}
@@ -30,7 +30,7 @@ AST_Annotation_Appl::delete_params (AST_Annotation_Appl::Params* params)
Params::ITERATOR iter (*params);
while (!iter.done ())
{
- Param **i = 0;
+ Param **i = nullptr;
iter.next (i);
delete *i;
iter.advance ();
@@ -51,7 +51,7 @@ AST_Annotation_Appl::AST_Annotation_Appl (
AST_Annotation_Decl (name),
original_name_ (name->get_string_copy ()),
params_ (params),
- annotation_decl_ (0)
+ annotation_decl_ (nullptr)
{
}
@@ -71,7 +71,7 @@ void AST_Annotation_Appl::dump (ACE_OSTREAM_TYPE &o)
Params::ITERATOR iter (*params_);
while (!iter.done ())
{
- Param **i = 0;
+ Param **i = nullptr;
iter.next (i);
if ((*i)->id)
{
@@ -103,9 +103,6 @@ const char *AST_Annotation_Appl::original_name () const
return original_name_;
}
-IMPL_NARROW_FROM_DECL (AST_Annotation_Appl)
-IMPL_NARROW_FROM_SCOPE (AST_Annotation_Appl)
-
bool
AST_Annotation_Appl::apply_from (AST_Annotation_Decl *decl)
{
@@ -117,7 +114,7 @@ AST_Annotation_Appl::apply_from (AST_Annotation_Decl *decl)
si.next ())
{
AST_Annotation_Member *member =
- AST_Annotation_Member::narrow_from_decl (si.item ());
+ dynamic_cast<AST_Annotation_Member*> (si.item ());
if (member)
{
AST_Annotation_Member *new_member = fe_add_annotation_member (
@@ -154,7 +151,7 @@ AST_Annotation_Appl::apply_from (AST_Annotation_Decl *decl)
for (Param::Iterator it (*params_);
!it.done (); it.advance ())
{
- Param **param = 0;
+ Param **param = nullptr;
it.next (param);
if ((*param) && !(*param)->used)
{
@@ -190,18 +187,18 @@ AST_Annotation_Appl::find_param (const char *name)
// Check for single nameless parameter
if (params_->size () == 1)
{
- Param *top = 0;
+ Param *top = nullptr;
params_->top (top);
if (top && !top->id && top->expr)
{
// Don't reuse it if used
- return top->used ? 0 : top;
+ return top->used ? nullptr : top;
}
}
for (Param::Iterator it (*params_);
!it.done (); it.advance ())
{
- Param **param = 0;
+ Param **param = nullptr;
it.next (param);
if ((*param) && (*param)->id && !ACE_OS::strcmp ((*param)->id->get_string (), name))
{
@@ -210,5 +207,5 @@ AST_Annotation_Appl::find_param (const char *name)
}
}
- return 0;
+ return nullptr;
}
diff --git a/TAO/TAO_IDL/ast/ast_annotation_appls.cpp b/TAO/TAO_IDL/ast/ast_annotation_appls.cpp
index 7f4949ddbd2..c943c2a641a 100644
--- a/TAO/TAO_IDL/ast/ast_annotation_appls.cpp
+++ b/TAO/TAO_IDL/ast/ast_annotation_appls.cpp
@@ -82,7 +82,7 @@ AST_Annotation_Appls::operator[] (size_t index)
AST_Annotation_Appl *
AST_Annotation_Appls::find (AST_Annotation_Decl *annotation)
{
- AST_Annotation_Appl *result = 0;
+ AST_Annotation_Appl *result = nullptr;
for (iterator i = begin (); i != end (); ++i)
{
AST_Annotation_Appl *appl = i->get ();
@@ -99,20 +99,20 @@ AST_Annotation_Appls::find (const char *annotation)
{
if (!annotation)
{
- return 0;
+ return nullptr;
}
UTL_Scope* bottom = idl_global->scopes ().bottom ();
if (!bottom)
{
- return 0;
+ return nullptr;
}
AST_Decl* decl = bottom->lookup_by_name (annotation);
if (!decl)
{
- return 0;
+ return nullptr;
}
- return find (AST_Annotation_Decl::narrow_from_decl (decl));
+ return find (dynamic_cast<AST_Annotation_Decl*> (decl));
}
diff --git a/TAO/TAO_IDL/ast/ast_annotation_decl.cpp b/TAO/TAO_IDL/ast/ast_annotation_decl.cpp
index 45eab38d7d6..280c085a50f 100644
--- a/TAO/TAO_IDL/ast/ast_annotation_decl.cpp
+++ b/TAO/TAO_IDL/ast/ast_annotation_decl.cpp
@@ -40,9 +40,6 @@ void AST_Annotation_Decl::destroy ()
AST_Decl::destroy ();
}
-IMPL_NARROW_FROM_DECL (AST_Annotation_Decl)
-IMPL_NARROW_FROM_SCOPE (AST_Annotation_Decl)
-
void
AST_Annotation_Decl::escape_name (Identifier *name)
{
@@ -86,19 +83,19 @@ AST_Annotation_Decl::fe_add_annotation_member (
}
}
- AST_Annotation_Decl *s = AST_Annotation_Decl::narrow_from_scope (this);
+ AST_Annotation_Decl *s = dynamic_cast<AST_Annotation_Decl*> (this);
if (s)
{
s->fields ().enqueue_tail (annotation_member);
}
- return AST_Annotation_Member::narrow_from_decl (d);
+ return dynamic_cast<AST_Annotation_Member*> (d);
}
AST_Constant *
AST_Annotation_Decl::fe_add_constant (AST_Constant *t)
{
- return AST_Constant::narrow_from_decl (fe_add_decl (t));
+ return dynamic_cast<AST_Constant*> (fe_add_decl (t));
}
int
diff --git a/TAO/TAO_IDL/ast/ast_annotation_member.cpp b/TAO/TAO_IDL/ast/ast_annotation_member.cpp
index d15d73b557a..4c6df635323 100644
--- a/TAO/TAO_IDL/ast/ast_annotation_member.cpp
+++ b/TAO/TAO_IDL/ast/ast_annotation_member.cpp
@@ -17,7 +17,7 @@ AST_Annotation_Member::AST_Annotation_Member (
: AST_Decl (NT, name),
AST_Field (type, name, vis_NA),
expr_type_ (expr_type),
- value_ (0)
+ value_ (nullptr)
{
}
@@ -27,7 +27,7 @@ AST_Annotation_Member::AST_Annotation_Member (
: AST_Decl (nt, name),
AST_Field (nt, type, name, vis_NA),
expr_type_ (expr_type),
- value_ (0)
+ value_ (nullptr)
{
}
@@ -38,7 +38,7 @@ AST_Annotation_Member::AST_Annotation_Member (
AST_Field (name, dynamic_cast<AST_Field*>(other)),
expr_type_ (other->expr_type ()),
value_ (other->value () ?
- new AST_Expression (other->value (), other->expr_type ()) : 0)
+ new AST_Expression (other->value (), other->expr_type ()) : nullptr)
{
}
@@ -57,9 +57,6 @@ AST_Annotation_Member::destroy ()
AST_Field::destroy ();
}
-IMPL_NARROW_FROM_DECL (AST_Annotation_Member);
-IMPL_NARROW_FROM_SCOPE (AST_Annotation_Member);
-
void
AST_Annotation_Member::dump (ACE_OSTREAM_TYPE &o)
{
diff --git a/TAO/TAO_IDL/ast/ast_argument.cpp b/TAO/TAO_IDL/ast/ast_argument.cpp
index 5867a6c0763..0fbe32d0656 100644
--- a/TAO/TAO_IDL/ast/ast_argument.cpp
+++ b/TAO/TAO_IDL/ast/ast_argument.cpp
@@ -87,7 +87,7 @@ direction_to_string (AST_Argument::Direction d)
return "inout";
}
- return 0;
+ return nullptr;
}
AST_Decl::NodeType const
@@ -103,7 +103,7 @@ AST_Argument::AST_Argument (Direction d,
{
}
-AST_Argument::~AST_Argument (void)
+AST_Argument::~AST_Argument ()
{
}
@@ -123,15 +123,13 @@ AST_Argument::ast_accept (ast_visitor *visitor)
}
void
-AST_Argument::destroy (void)
+AST_Argument::destroy ()
{
this->AST_Field::destroy ();
}
AST_Argument::Direction
-AST_Argument::direction (void)
+AST_Argument::direction ()
{
return this->pd_direction;
}
-
-IMPL_NARROW_FROM_DECL(AST_Argument)
diff --git a/TAO/TAO_IDL/ast/ast_array.cpp b/TAO/TAO_IDL/ast/ast_array.cpp
index 110279a2411..c3fa96be0b2 100644
--- a/TAO/TAO_IDL/ast/ast_array.cpp
+++ b/TAO/TAO_IDL/ast/ast_array.cpp
@@ -96,14 +96,14 @@ AST_Array::AST_Array (UTL_ScopedName *n,
AST_ConcreteType (AST_Decl::NT_array,
n),
pd_n_dims (nd),
- pd_base_type (0),
+ pd_base_type (nullptr),
owns_base_type_ (false)
{
this->pd_dims = this->compute_dims (ds,
nd);
}
-AST_Array::~AST_Array (void)
+AST_Array::~AST_Array ()
{
}
@@ -115,15 +115,15 @@ AST_Expression **
AST_Array::compute_dims (UTL_ExprList *ds,
ACE_CDR::ULong nds)
{
- if (ds == 0)
+ if (ds == nullptr)
{
- return 0;
+ return nullptr;
}
- AST_Expression **result = 0;
+ AST_Expression **result = nullptr;
ACE_NEW_RETURN (result,
AST_Expression *[nds],
- 0);
+ nullptr);
UTL_ExprlistActiveIterator iter (ds);
@@ -135,13 +135,13 @@ AST_Array::compute_dims (UTL_ExprList *ds,
AST_Param_Holder *ph = orig->param_holder ();
AST_Expression::ExprType ex_type =
- (ph == 0 ? orig->ev ()->et : ph->info ()->const_type_);
+ (ph == nullptr ? orig->ev ()->et : ph->info ()->const_type_);
- AST_Expression *copy = 0;
+ AST_Expression *copy = nullptr;
ACE_NEW_RETURN (copy,
AST_Expression (orig,
ex_type),
- 0);
+ nullptr);
result[i] = copy;
}
@@ -179,7 +179,7 @@ AST_Array::ast_accept (ast_visitor *visitor)
// Compute the size type of the node in question.
int
-AST_Array::compute_size_type (void)
+AST_Array::compute_size_type ()
{
AST_Type *type = this->base_type ();
@@ -201,19 +201,19 @@ AST_Array::compute_size_type (void)
// Data accessors.
ACE_CDR::ULong
-AST_Array::n_dims (void)
+AST_Array::n_dims ()
{
return this->pd_n_dims;
}
AST_Expression **
-AST_Array::dims (void)
+AST_Array::dims ()
{
return this->pd_dims;
}
AST_Type *
-AST_Array::base_type (void) const
+AST_Array::base_type () const
{
return this->pd_base_type;
}
@@ -233,30 +233,30 @@ AST_Array::set_base_type (AST_Type *nbt)
}
bool
-AST_Array::legal_for_primary_key (void) const
+AST_Array::legal_for_primary_key () const
{
return this->base_type ()->legal_for_primary_key ();
}
void
-AST_Array::destroy (void)
+AST_Array::destroy ()
{
if (this->owns_base_type_)
{
this->pd_base_type->destroy ();
delete this->pd_base_type;
- this->pd_base_type = 0;
+ this->pd_base_type = nullptr;
}
for (ACE_CDR::ULong i = 0; i < this->pd_n_dims; ++i)
{
this->pd_dims[i]->destroy ();
delete this->pd_dims[i];
- this->pd_dims[i] = 0;
+ this->pd_dims[i] = nullptr;
}
delete [] this->pd_dims;
- this->pd_dims = 0;
+ this->pd_dims = nullptr;
this->pd_n_dims = 0;
this->AST_ConcreteType::destroy ();
@@ -270,8 +270,6 @@ AST_Array::set_dims (AST_Expression **ds,
this->pd_n_dims = nds;
}
-IMPL_NARROW_FROM_DECL(AST_Array)
-
AST_Annotation_Appls &
AST_Array::base_type_annotations ()
{
diff --git a/TAO/TAO_IDL/ast/ast_attribute.cpp b/TAO/TAO_IDL/ast/ast_attribute.cpp
index 3dc8331d3a8..62d88dea065 100644
--- a/TAO/TAO_IDL/ast/ast_attribute.cpp
+++ b/TAO/TAO_IDL/ast/ast_attribute.cpp
@@ -94,12 +94,12 @@ AST_Attribute::AST_Attribute (bool ro,
ft,
n),
pd_readonly (ro),
- pd_get_exceptions (0),
- pd_set_exceptions (0)
+ pd_get_exceptions (nullptr),
+ pd_set_exceptions (nullptr)
{
}
-AST_Attribute::~AST_Attribute (void)
+AST_Attribute::~AST_Attribute ()
{
}
@@ -123,23 +123,23 @@ AST_Attribute::ast_accept (ast_visitor *visitor)
}
void
-AST_Attribute::destroy (void)
+AST_Attribute::destroy ()
{
// No need to delete our exception lists, the
// destroy() method does it. The UTL_ExceptList
// destroy() method does NOT delete the contained
// exception nodes.
- if (this->pd_get_exceptions != 0)
+ if (this->pd_get_exceptions != nullptr)
{
this->pd_get_exceptions->destroy ();
- this->pd_get_exceptions = 0;
+ this->pd_get_exceptions = nullptr;
}
- if (this->pd_set_exceptions != 0)
+ if (this->pd_set_exceptions != nullptr)
{
this->pd_set_exceptions->destroy ();
- this->pd_set_exceptions = 0;
+ this->pd_set_exceptions = nullptr;
}
this->AST_Field::destroy ();
@@ -148,7 +148,7 @@ AST_Attribute::destroy (void)
UTL_ExceptList *
AST_Attribute::be_add_get_exceptions (UTL_ExceptList *t)
{
- if (this->pd_get_exceptions != 0)
+ if (this->pd_get_exceptions != nullptr)
{
idl_global->err ()->error1 (UTL_Error::EIDL_ILLEGAL_RAISES,
this);
@@ -164,7 +164,7 @@ AST_Attribute::be_add_get_exceptions (UTL_ExceptList *t)
UTL_ExceptList *
AST_Attribute::be_add_set_exceptions (UTL_ExceptList *t)
{
- if (this->pd_set_exceptions != 0)
+ if (this->pd_set_exceptions != nullptr)
{
idl_global->err ()->error1 (UTL_Error::EIDL_ILLEGAL_RAISES,
this);
@@ -180,19 +180,19 @@ AST_Attribute::be_add_set_exceptions (UTL_ExceptList *t)
// Data accessors.
bool
-AST_Attribute::readonly (void) const
+AST_Attribute::readonly () const
{
return this->pd_readonly;
}
UTL_ExceptList *
-AST_Attribute::get_get_exceptions (void) const
+AST_Attribute::get_get_exceptions () const
{
return this->pd_get_exceptions;
}
UTL_ExceptList *
-AST_Attribute::get_set_exceptions (void) const
+AST_Attribute::get_set_exceptions () const
{
return this->pd_set_exceptions;
}
@@ -202,11 +202,11 @@ AST_Attribute::get_set_exceptions (void) const
UTL_NameList *
AST_Attribute::fe_add_get_exceptions (UTL_NameList *t)
{
- UTL_ScopedName *nl_n = 0;
- AST_Type *fe = 0;
- AST_Decl *d = 0;
+ UTL_ScopedName *nl_n = nullptr;
+ AST_Type *fe = nullptr;
+ AST_Decl *d = nullptr;
- this->pd_get_exceptions = 0;
+ this->pd_get_exceptions = nullptr;
for (UTL_NamelistActiveIterator nl_i (t);
!nl_i.is_done ();
@@ -216,10 +216,10 @@ AST_Attribute::fe_add_get_exceptions (UTL_NameList *t)
d = this->defined_in ()->lookup_by_name (nl_n, true);
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error (nl_n);
- return 0;
+ return nullptr;
}
AST_Decl::NodeType nt = d->node_type ();
@@ -229,17 +229,17 @@ AST_Attribute::fe_add_get_exceptions (UTL_NameList *t)
{
idl_global->err ()->error1 (UTL_Error::EIDL_ILLEGAL_RAISES,
this);
- return 0;
+ return nullptr;
}
- fe = AST_Type::narrow_from_decl (d);
+ fe = dynamic_cast<AST_Type*> (d);
- UTL_ExceptList *el = 0;
+ UTL_ExceptList *el = nullptr;
ACE_NEW_RETURN (el,
- UTL_ExceptList (fe, 0),
- 0);
+ UTL_ExceptList (fe, nullptr),
+ nullptr);
- if (this->pd_get_exceptions == 0)
+ if (this->pd_get_exceptions == nullptr)
{
this->pd_get_exceptions = el;
}
@@ -257,11 +257,11 @@ AST_Attribute::fe_add_get_exceptions (UTL_NameList *t)
UTL_NameList *
AST_Attribute::fe_add_set_exceptions (UTL_NameList *t)
{
- UTL_ScopedName *nl_n = 0;
- AST_Type *fe = 0;
- AST_Decl *d = 0;
+ UTL_ScopedName *nl_n = nullptr;
+ AST_Type *fe = nullptr;
+ AST_Decl *d = nullptr;
- this->pd_set_exceptions = 0;
+ this->pd_set_exceptions = nullptr;
for (UTL_NamelistActiveIterator nl_i (t); !nl_i.is_done (); nl_i.next ())
{
@@ -269,10 +269,10 @@ AST_Attribute::fe_add_set_exceptions (UTL_NameList *t)
d = this->defined_in ()->lookup_by_name (nl_n, true);
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error (nl_n);
- return 0;
+ return nullptr;
}
AST_Decl::NodeType nt = d->node_type ();
@@ -282,17 +282,17 @@ AST_Attribute::fe_add_set_exceptions (UTL_NameList *t)
{
idl_global->err ()->error1 (UTL_Error::EIDL_ILLEGAL_RAISES,
this);
- return 0;
+ return nullptr;
}
- fe = AST_Type::narrow_from_decl (d);
+ fe = dynamic_cast<AST_Type*> (d);
- UTL_ExceptList *el = 0;
+ UTL_ExceptList *el = nullptr;
ACE_NEW_RETURN (el,
- UTL_ExceptList (fe, 0),
- 0);
+ UTL_ExceptList (fe, nullptr),
+ nullptr);
- if (this->pd_set_exceptions == 0)
+ if (this->pd_set_exceptions == nullptr)
{
this->pd_set_exceptions = el;
}
@@ -310,5 +310,3 @@ AST_Attribute::annotatable () const
{
return true;
}
-
-IMPL_NARROW_FROM_DECL(AST_Attribute)
diff --git a/TAO/TAO_IDL/ast/ast_check.cpp b/TAO/TAO_IDL/ast/ast_check.cpp
index e42960855fe..d02d58c2925 100644
--- a/TAO/TAO_IDL/ast/ast_check.cpp
+++ b/TAO/TAO_IDL/ast/ast_check.cpp
@@ -71,7 +71,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "utl_scope.h"
// Static storage for remembering nodes.
-static AST_Type **ast_fwds = 0;
+static AST_Type **ast_fwds = nullptr;
static long ast_n_fwds_used = 0;
static long ast_n_fwds_alloc = 0;
@@ -82,7 +82,7 @@ static long ast_n_fwds_alloc = 0;
void
AST_record_fwd_decl (AST_Type *n)
{
- AST_Type **o_ast_fwds = 0;
+ AST_Type **o_ast_fwds = nullptr;
long o_ast_n_fwds_alloc = 0;
// Make sure there's space to store one more.
@@ -118,9 +118,9 @@ AST_record_fwd_decl (AST_Type *n)
// Check that all forward declared structs and unions were also defined.
TAO_IDL_FE_Export void
-AST_check_fwd_decls (void)
+AST_check_fwd_decls ()
{
- AST_Type *d = 0;
+ AST_Type *d = nullptr;
for (long i = 0; i < ast_n_fwds_used; ++i)
{
@@ -137,7 +137,7 @@ AST_check_fwd_decls (void)
d->defined_in ()->lookup_by_name_local (d->local_name (),
true);
- if (f == 0)
+ if (f == nullptr)
{
idl_global->err ()->fwd_decl_not_defined (d);
}
@@ -148,7 +148,7 @@ AST_check_fwd_decls (void)
// in between which the elements of ast_fwds are destroyed,
// so we have to clean up.
delete [] ast_fwds;
- ast_fwds = 0;
+ ast_fwds = nullptr;
ast_n_fwds_alloc = 0;
ast_n_fwds_used = 0;
}
diff --git a/TAO/TAO_IDL/ast/ast_component.cpp b/TAO/TAO_IDL/ast/ast_component.cpp
index c1cbe1729b5..a090a6276a9 100644
--- a/TAO/TAO_IDL/ast/ast_component.cpp
+++ b/TAO/TAO_IDL/ast/ast_component.cpp
@@ -46,16 +46,16 @@ AST_Component::AST_Component (UTL_ScopedName *n,
}
}
-AST_Component::~AST_Component (void)
+AST_Component::~AST_Component ()
{
}
void
AST_Component::redefine (AST_Interface *from)
{
- AST_Component *c = AST_Component::narrow_from_decl (from);
+ AST_Component *c = dynamic_cast<AST_Component*> (from);
- if (c == 0)
+ if (c == nullptr)
{
idl_global->err ()->redef_error (from->local_name ()->get_string (),
this->local_name ()->get_string ());
@@ -72,9 +72,9 @@ AST_Decl *
AST_Component::look_in_inherited (UTL_ScopedName *e,
bool full_def_only)
{
- AST_Decl *d = 0;
+ AST_Decl *d = nullptr;
- if (this->pd_base_component != 0)
+ if (this->pd_base_component != nullptr)
{
d =
this->pd_base_component->lookup_by_name_r (
@@ -90,15 +90,15 @@ AST_Decl *
AST_Component::look_in_supported (UTL_ScopedName *e,
bool full_def_only)
{
- AST_Decl *d = 0;
- AST_Type **is = 0;
+ AST_Decl *d = nullptr;
+ AST_Type **is = nullptr;
long nis = -1;
// Can't look in an interface which was not yet defined.
if (!this->is_defined ())
{
idl_global->err ()->fwd_decl_lookup (this, e);
- return 0;
+ return nullptr;
}
// OK, loop through supported interfaces.
@@ -113,11 +113,11 @@ AST_Component::look_in_supported (UTL_ScopedName *e,
}
AST_Interface *i =
- AST_Interface::narrow_from_decl (*is);
+ dynamic_cast<AST_Interface*> (*is);
d = (i)->lookup_by_name_r (e, full_def_only);
- if (d != 0)
+ if (d != nullptr)
{
break;
}
@@ -127,19 +127,19 @@ AST_Component::look_in_supported (UTL_ScopedName *e,
}
AST_Component *
-AST_Component::base_component (void) const
+AST_Component::base_component () const
{
return this->pd_base_component;
}
AST_Type **
-AST_Component::supports (void) const
+AST_Component::supports () const
{
return this->inherits ();
}
long
-AST_Component::n_supports (void) const
+AST_Component::n_supports () const
{
return this->n_inherits ();
}
@@ -151,7 +151,7 @@ AST_Component::special_lookup (UTL_ScopedName *e,
{
AST_Decl *d = this->look_in_inherited (e, full_def_only);
- if (d == 0)
+ if (d == nullptr)
{
d = this->look_in_supported (e, full_def_only);
}
@@ -160,7 +160,7 @@ AST_Component::special_lookup (UTL_ScopedName *e,
}
void
-AST_Component::destroy (void)
+AST_Component::destroy ()
{
this->AST_Interface::destroy ();
}
@@ -174,7 +174,7 @@ AST_Component::dump (ACE_OSTREAM_TYPE &o)
this->dump_i (o, " ");
- if (this->pd_base_component != 0)
+ if (this->pd_base_component != nullptr)
{
this->dump_i (o, ": ");
this->pd_base_component->local_name ()->dump (o);
@@ -212,57 +212,43 @@ AST_Component::ast_accept (ast_visitor *visitor)
AST_Provides *
AST_Component::fe_add_provides (AST_Provides *p)
{
- return
- AST_Provides::narrow_from_decl (
- this->fe_add_ref_decl (p));
+ return dynamic_cast<AST_Provides*> (this->fe_add_ref_decl (p));
}
AST_Uses *
AST_Component::fe_add_uses (AST_Uses *u)
{
- return
- AST_Uses::narrow_from_decl (
- this->fe_add_ref_decl (u));
+ return dynamic_cast<AST_Uses*> (this->fe_add_ref_decl (u));
}
AST_Publishes *
AST_Component::fe_add_publishes (AST_Publishes *p)
{
- return
- AST_Publishes::narrow_from_decl (
- this->fe_add_ref_decl (p));
+ return dynamic_cast<AST_Publishes*> (this->fe_add_ref_decl (p));
}
AST_Emits *
AST_Component::fe_add_emits (AST_Emits *e)
{
- return
- AST_Emits::narrow_from_decl (
- this->fe_add_ref_decl (e));
+ return dynamic_cast<AST_Emits*> (this->fe_add_ref_decl (e));
}
AST_Consumes *
AST_Component::fe_add_consumes (AST_Consumes *c)
{
- return
- AST_Consumes::narrow_from_decl (
- this->fe_add_ref_decl (c));
+ return dynamic_cast<AST_Consumes*> (this->fe_add_ref_decl (c));
}
AST_Extended_Port *
AST_Component::fe_add_extended_port (AST_Extended_Port *p)
{
- return
- AST_Extended_Port::narrow_from_decl (
- this->fe_add_ref_decl (p));
+ return dynamic_cast<AST_Extended_Port*> (this->fe_add_ref_decl (p));
}
AST_Mirror_Port *
AST_Component::fe_add_mirror_port (AST_Mirror_Port *p)
{
- return
- AST_Mirror_Port::narrow_from_decl (
- this->fe_add_ref_decl (p));
+ return dynamic_cast<AST_Mirror_Port*> (this->fe_add_ref_decl (p));
}
int
@@ -282,5 +268,3 @@ AST_Component::be_add_uses (AST_Uses *i,
return 0;
}
-IMPL_NARROW_FROM_DECL (AST_Component)
-IMPL_NARROW_FROM_SCOPE (AST_Component)
diff --git a/TAO/TAO_IDL/ast/ast_component_fwd.cpp b/TAO/TAO_IDL/ast/ast_component_fwd.cpp
index 597f6434d52..8388f9450c2 100644
--- a/TAO/TAO_IDL/ast/ast_component_fwd.cpp
+++ b/TAO/TAO_IDL/ast/ast_component_fwd.cpp
@@ -18,7 +18,7 @@ AST_ComponentFwd::AST_ComponentFwd (AST_Interface *dummy,
{
}
-AST_ComponentFwd::~AST_ComponentFwd (void)
+AST_ComponentFwd::~AST_ComponentFwd ()
{
}
@@ -40,15 +40,13 @@ AST_ComponentFwd::ast_accept (ast_visitor *visitor)
}
void
-AST_ComponentFwd::destroy (void)
+AST_ComponentFwd::destroy ()
{
this->AST_InterfaceFwd::destroy ();
}
bool
-AST_ComponentFwd::is_fwd (void)
+AST_ComponentFwd::is_fwd ()
{
return true; // This is a fwd declared type
}
-
-IMPL_NARROW_FROM_DECL (AST_ComponentFwd)
diff --git a/TAO/TAO_IDL/ast/ast_concrete_type.cpp b/TAO/TAO_IDL/ast/ast_concrete_type.cpp
index fb198cd9d89..913f6c668ce 100644
--- a/TAO/TAO_IDL/ast/ast_concrete_type.cpp
+++ b/TAO/TAO_IDL/ast/ast_concrete_type.cpp
@@ -77,14 +77,13 @@ AST_ConcreteType::AST_ConcreteType (AST_Decl::NodeType nt,
{
}
-AST_ConcreteType::~AST_ConcreteType (void)
+AST_ConcreteType::~AST_ConcreteType ()
{
}
void
-AST_ConcreteType::destroy (void)
+AST_ConcreteType::destroy ()
{
this->AST_Type::destroy ();
}
-IMPL_NARROW_FROM_DECL(AST_ConcreteType)
diff --git a/TAO/TAO_IDL/ast/ast_connector.cpp b/TAO/TAO_IDL/ast/ast_connector.cpp
index e92a55de7d7..0e201e54f1a 100644
--- a/TAO/TAO_IDL/ast/ast_connector.cpp
+++ b/TAO/TAO_IDL/ast/ast_connector.cpp
@@ -19,17 +19,17 @@ AST_Connector::AST_Connector (
n),
UTL_Scope (AST_Decl::NT_connector),
AST_Interface (n,
+ nullptr,
0,
- 0,
- 0,
+ nullptr,
0,
false,
false),
AST_Component (n,
base_connector,
+ nullptr,
0,
- 0,
- 0,
+ nullptr,
0)
{
if (!this->imported ())
@@ -38,18 +38,18 @@ AST_Connector::AST_Connector (
}
}
-AST_Connector::~AST_Connector (void)
+AST_Connector::~AST_Connector ()
{
}
AST_Connector *
-AST_Connector::base_connector (void) const
+AST_Connector::base_connector () const
{
- return AST_Connector::narrow_from_decl (this->pd_base_component);
+ return dynamic_cast<AST_Connector*> (this->pd_base_component);
}
void
-AST_Connector::destroy (void)
+AST_Connector::destroy ()
{
this->AST_Component::destroy ();
}
@@ -63,7 +63,7 @@ AST_Connector::dump (ACE_OSTREAM_TYPE &o)
this->dump_i (o, " ");
- if (this->pd_base_component != 0)
+ if (this->pd_base_component != nullptr)
{
this->dump_i (o, ": ");
this->pd_base_component->local_name ()->dump (o);
@@ -82,6 +82,3 @@ AST_Connector::ast_accept (ast_visitor *visitor)
{
return visitor->visit_connector (this);
}
-
-IMPL_NARROW_FROM_DECL (AST_Connector)
-IMPL_NARROW_FROM_SCOPE (AST_Connector)
diff --git a/TAO/TAO_IDL/ast/ast_constant.cpp b/TAO/TAO_IDL/ast/ast_constant.cpp
index f3a51add81e..9a92df4f4fc 100644
--- a/TAO/TAO_IDL/ast/ast_constant.cpp
+++ b/TAO/TAO_IDL/ast/ast_constant.cpp
@@ -119,7 +119,7 @@ AST_Constant::exprtype_to_string (AST_Expression::ExprType et)
break;
}
- return 0;
+ return nullptr;
}
AST_Decl::NodeType const
@@ -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
@@ -171,7 +171,7 @@ AST_Constant::AST_Constant (AST_Expression::ExprType t,
}
}
-AST_Constant::~AST_Constant (void)
+AST_Constant::~AST_Constant ()
{
}
@@ -199,13 +199,13 @@ AST_Constant::ast_accept (ast_visitor *visitor)
}
void
-AST_Constant::destroy (void)
+AST_Constant::destroy ()
{
- if (this->pd_constant_value != 0)
+ if (this->pd_constant_value != nullptr)
{
this->pd_constant_value->destroy ();
delete this->pd_constant_value;
- this->pd_constant_value = 0;
+ this->pd_constant_value = nullptr;
}
this->AST_Decl::destroy ();
@@ -214,19 +214,19 @@ AST_Constant::destroy (void)
// Data accessors.
AST_Expression *
-AST_Constant::constant_value (void)
+AST_Constant::constant_value ()
{
return this->pd_constant_value;
}
AST_Expression::ExprType
-AST_Constant::et (void)
+AST_Constant::et ()
{
return this->pd_et;
}
bool
-AST_Constant::ifr_added (void)
+AST_Constant::ifr_added ()
{
return this->ifr_added_;
}
@@ -238,7 +238,7 @@ AST_Constant::ifr_added (bool val)
}
const char *
-AST_Constant::exprtype_to_string (void)
+AST_Constant::exprtype_to_string ()
{
switch (this->pd_et)
{
@@ -277,26 +277,24 @@ AST_Constant::exprtype_to_string (void)
case AST_Expression::EV_fixed:
return "Fixed";
default:
- return 0;
+ return nullptr;
}
- return 0;
+ return nullptr;
}
UTL_ScopedName *
-AST_Constant::enum_full_name (void)
+AST_Constant::enum_full_name ()
{
if (this->pd_et == AST_Expression::EV_enum)
{
UTL_Scope * const s = this->defined_in ();
AST_Decl * const d = s->lookup_by_name (this->pd_constant_value->n (),
- 1);
- return (d ? (ScopeAsDecl (d->defined_in ()))->name () : 0);
+ true);
+ return (d ? (ScopeAsDecl (d->defined_in ()))->name () : nullptr);
}
else
{
- return 0;
+ return nullptr;
}
}
-
-IMPL_NARROW_FROM_DECL(AST_Constant)
diff --git a/TAO/TAO_IDL/ast/ast_consumes.cpp b/TAO/TAO_IDL/ast/ast_consumes.cpp
index 1a1308094aa..e2a4422bbeb 100644
--- a/TAO/TAO_IDL/ast/ast_consumes.cpp
+++ b/TAO/TAO_IDL/ast/ast_consumes.cpp
@@ -16,12 +16,12 @@ AST_Consumes::AST_Consumes (UTL_ScopedName *n,
{
}
-AST_Consumes::~AST_Consumes (void)
+AST_Consumes::~AST_Consumes ()
{
}
AST_Type *
-AST_Consumes::consumes_type (void) const
+AST_Consumes::consumes_type () const
{
return this->field_type ();
}
@@ -40,9 +40,7 @@ AST_Consumes::ast_accept (ast_visitor *visitor)
}
void
-AST_Consumes::destroy (void)
+AST_Consumes::destroy ()
{
this->AST_Field::destroy ();
}
-
-IMPL_NARROW_FROM_DECL(AST_Consumes)
diff --git a/TAO/TAO_IDL/ast/ast_decl.cpp b/TAO/TAO_IDL/ast/ast_decl.cpp
index 96a46df6707..e2803ef69af 100644
--- a/TAO/TAO_IDL/ast/ast_decl.cpp
+++ b/TAO/TAO_IDL/ast/ast_decl.cpp
@@ -91,17 +91,17 @@ COMMON_Base::COMMON_Base (bool local,
{
}
-COMMON_Base::~COMMON_Base (void)
+COMMON_Base::~COMMON_Base ()
{
}
void
-COMMON_Base::destroy (void)
+COMMON_Base::destroy ()
{
}
bool
-COMMON_Base::is_local (void)
+COMMON_Base::is_local ()
{
return this->is_local_;
}
@@ -113,7 +113,7 @@ COMMON_Base::is_local (bool val)
}
bool
-COMMON_Base::is_abstract (void) const
+COMMON_Base::is_abstract () const
{
return this->is_abstract_;
}
@@ -128,28 +128,28 @@ AST_Decl::AST_Decl (NodeType nt,
UTL_ScopedName *n,
bool anonymous)
: COMMON_Base (),
- repoID_ (0),
- flat_name_ (0),
+ repoID_ (nullptr),
+ flat_name_ (nullptr),
contains_wstring_ (-1),
- annotation_appls_ (0),
+ annotation_appls_ (nullptr),
builtin_ (idl_global->in_eval_),
pd_imported (idl_global->imported ()),
pd_in_main_file (idl_global->in_main_file ()),
pd_defined_in (idl_global->scopes ().depth () > 0
? idl_global->scopes ().top ()
- : 0),
+ : nullptr),
pd_node_type (nt),
pd_line (idl_global->lineno ()),
- pd_name (0),
- pd_local_name (n ? n->last_component ()->copy () : 0),
- pd_original_local_name (0),
- full_name_ (0),
- prefix_ (0),
- version_ (0),
+ pd_name (nullptr),
+ pd_local_name (n ? n->last_component ()->copy () : nullptr),
+ pd_original_local_name (nullptr),
+ full_name_ (nullptr),
+ prefix_ (nullptr),
+ version_ (nullptr),
anonymous_ (anonymous),
typeid_set_ (false),
- last_referenced_as_ (0),
- prefix_scope_ (0),
+ last_referenced_as_ (nullptr),
+ prefix_scope_ (nullptr),
in_tmpl_mod_not_aliased_ (idl_global->in_tmpl_mod_no_alias ())
{
// If this is the root node, the filename won't have been set yet.
@@ -158,7 +158,7 @@ AST_Decl::AST_Decl (NodeType nt,
this->compute_full_name (n);
- char *prefix = 0;
+ char *prefix = nullptr;
idl_global->pragma_prefixes ().top (prefix);
this->prefix_ = ACE::strnew (prefix ? prefix : "");
@@ -175,28 +175,28 @@ AST_Decl::AST_Decl (
UTL_ScopedName *name,
AST_Decl *other)
: COMMON_Base (),
- repoID_ (0),
- flat_name_ (0),
+ repoID_ (nullptr),
+ flat_name_ (nullptr),
contains_wstring_ (-1),
- annotation_appls_ (0),
+ annotation_appls_ (nullptr),
builtin_ (idl_global->in_eval_),
pd_imported (idl_global->imported ()),
pd_in_main_file (idl_global->in_main_file ()),
pd_defined_in (idl_global->scopes ().depth () > 0
? idl_global->scopes ().top ()
- : 0),
+ : nullptr),
pd_node_type (other->node_type ()),
pd_line (idl_global->lineno ()),
- pd_name (0),
- pd_local_name (name ? name->last_component ()->copy () : 0),
- pd_original_local_name (0),
- full_name_ (0),
- prefix_ (0),
- version_ (0),
+ pd_name (nullptr),
+ pd_local_name (name ? name->last_component ()->copy () : nullptr),
+ pd_original_local_name (nullptr),
+ full_name_ (nullptr),
+ prefix_ (nullptr),
+ version_ (nullptr),
anonymous_ (other->anonymous ()),
typeid_set_ (false),
- last_referenced_as_ (0),
- prefix_scope_ (0),
+ last_referenced_as_ (nullptr),
+ prefix_scope_ (nullptr),
in_tmpl_mod_not_aliased_ (idl_global->in_tmpl_mod_no_alias ())
{
// If this is the root node, the filename won't have been set yet.
@@ -205,7 +205,7 @@ AST_Decl::AST_Decl (
this->compute_full_name (name);
- char *prefix = 0;
+ char *prefix = nullptr;
idl_global->pragma_prefixes ().top (prefix);
this->prefix_ = ACE::strnew (prefix ? prefix : "");
@@ -218,59 +218,59 @@ AST_Decl::AST_Decl (
this->compute_repoID ();
}
-AST_Decl::~AST_Decl (void)
+AST_Decl::~AST_Decl ()
{
}
void
-AST_Decl::destroy (void)
+AST_Decl::destroy ()
{
// These are not set for the root node.
if (this->pd_name)
{
this->pd_name->destroy ();
delete this->pd_name;
- this->pd_name = 0;
+ this->pd_name = nullptr;
}
if (this->pd_local_name)
{
this->pd_local_name->destroy ();
delete this->pd_local_name;
- this->pd_local_name = 0;
+ this->pd_local_name = nullptr;
}
if (this->pd_original_local_name)
{
this->pd_original_local_name->destroy ();
delete this->pd_original_local_name;
- this->pd_original_local_name = 0;
+ this->pd_original_local_name = nullptr;
}
if (this->last_referenced_as_)
{
this->last_referenced_as_->destroy ();
delete this->last_referenced_as_;
- this->last_referenced_as_ = 0;
+ this->last_referenced_as_ = nullptr;
}
delete [] this->full_name_;
- this->full_name_ = 0;
+ this->full_name_ = nullptr;
delete [] this->repoID_;
- this->repoID_ = 0;
+ this->repoID_ = nullptr;
delete [] this->prefix_;
- this->prefix_ = 0;
+ this->prefix_ = nullptr;
delete [] this->version_;
- this->version_ = 0;
+ this->version_ = nullptr;
delete [] this->flat_name_;
- this->flat_name_ = 0;
+ this->flat_name_ = nullptr;
delete annotation_appls_;
- annotation_appls_ = 0;
+ annotation_appls_ = nullptr;
}
AST_Decl *
@@ -282,7 +282,7 @@ AST_Decl::adjust_found (
}
bool
-AST_Decl::is_fwd (void)
+AST_Decl::is_fwd ()
{
return false; // Not a fwd declared type (by default)
}
@@ -309,11 +309,11 @@ AST_Decl::compute_full_name (UTL_ScopedName *n)
}
// Initialize this name to 0.
- this->pd_name = 0;
+ this->pd_name = nullptr;
// OK, not global. So copy name of containing scope, then
// smash last cdr of copy with new component
- UTL_ScopedName *cn = 0;
+ UTL_ScopedName *cn = nullptr;
AST_Decl *d = ScopeAsDecl (this->defined_in ());
if (d)
{
@@ -328,15 +328,15 @@ AST_Decl::compute_full_name (UTL_ScopedName *n)
{
if (this->pd_name)
{
- UTL_ScopedName *conc_name = 0;
+ UTL_ScopedName *conc_name = nullptr;
ACE_NEW (conc_name,
- UTL_ScopedName (this->pd_local_name->copy (), 0));
+ UTL_ScopedName (this->pd_local_name->copy (), nullptr));
this->pd_name->nconc (conc_name);
}
else
{
ACE_NEW (this->pd_name,
- UTL_ScopedName (this->pd_local_name->copy (), 0));
+ UTL_ScopedName (this->pd_local_name->copy (), nullptr));
}
}
}
@@ -362,7 +362,7 @@ AST_Decl::set_prefix_with_typeprefix_r (const char *value,
}
delete [] this->repoID_;
- this->repoID_ = 0;
+ this->repoID_ = nullptr;
this->prefix (value);
this->prefix_scope_ = appeared_in;
@@ -385,7 +385,7 @@ AST_Decl::set_prefix_with_typeprefix_r (const char *value,
// This will recursively catch all previous openings of a module.
if (this->node_type () == AST_Decl::NT_module)
{
- AST_Module *m = AST_Module::narrow_from_decl (this);
+ AST_Module *m = dynamic_cast<AST_Module*> (this);
while (!!(m = m->previous_opening ()))
{
for (UTL_ScopeActiveIterator si (m, UTL_Scope::IK_decls);
@@ -408,14 +408,14 @@ AST_Decl::set_prefix_with_typeprefix_r (const char *value,
// Compute stringified fully scoped name.
void
-AST_Decl::compute_full_name (void)
+AST_Decl::compute_full_name ()
{
if (!this->full_name_)
{
size_t namelen = 0;
long first = true;
long second = false;
- char *name = 0;
+ char *name = nullptr;
for (UTL_IdListActiveIterator i (this->name ());
!i.is_done ();
@@ -486,7 +486,7 @@ AST_Decl::compute_full_name (void)
// Compute stringified repository ID.
void
-AST_Decl::compute_repoID (void)
+AST_Decl::compute_repoID ()
{
if (this->repoID_)
{
@@ -496,10 +496,10 @@ AST_Decl::compute_repoID (void)
size_t namelen = 4; // for the prefix "IDL:"
long first = true;
long second = false;
- char *name = 0;
+ char *name = nullptr;
const char *prefix = (this->prefix_ ? this->prefix_ : "");
UTL_Scope *scope = this->defined_in ();
- const char *parent_prefix = 0;
+ const char *parent_prefix = nullptr;
// If our prefix is empty, we check to see if an ancestor has one.
while (scope && !ACE_OS::strcmp (prefix, ""))
@@ -647,7 +647,7 @@ AST_Decl::compute_repoID (void)
// Public operations.
const char *
-AST_Decl::flat_name (void)
+AST_Decl::flat_name ()
{
if (!this->flat_name_)
{
@@ -659,14 +659,14 @@ AST_Decl::flat_name (void)
// Compute stringified flattened fully scoped name.
void
-AST_Decl::compute_flat_name (void)
+AST_Decl::compute_flat_name ()
{
- if (this->flat_name_ == 0)
+ if (this->flat_name_ == nullptr)
{
size_t namelen = 0;
long first = true;
long second = false;
- char *item_name = 0;
+ char *item_name = nullptr;
// In the first loop, compute the total length.
for (UTL_IdListActiveIterator i (this->name ());
@@ -704,7 +704,7 @@ AST_Decl::compute_flat_name (void)
tmp->destroy ();
delete tmp;
- tmp = 0;
+ tmp = nullptr;
}
ACE_NEW (this->flat_name_, char [namelen + 1]);
@@ -747,7 +747,7 @@ AST_Decl::compute_flat_name (void)
tmp->destroy ();
delete tmp;
- tmp = 0;
+ tmp = nullptr;
}
}
}
@@ -867,7 +867,7 @@ AST_Decl::has_ancestor (AST_Decl *s)
return true;
}
- AST_Module *m = AST_Module::narrow_from_decl (s);
+ AST_Module *m = dynamic_cast<AST_Module*> (s);
if (m)
{
while (!!(m = m->previous_opening ()))
@@ -881,7 +881,7 @@ AST_Decl::has_ancestor (AST_Decl *s)
work = work->pd_defined_in ?
ScopeAsDecl (work->pd_defined_in) :
- 0;
+ nullptr;
} while (work);
return false;
@@ -895,20 +895,20 @@ 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
-AST_Decl::is_nested (void)
+AST_Decl::is_nested ()
{
AST_Decl *d = ScopeAsDecl (this->defined_in ());
@@ -941,7 +941,7 @@ AST_Decl::ast_accept (ast_visitor *visitor)
// Data accessors.
const char *
-AST_Decl::full_name (void)
+AST_Decl::full_name ()
{
if (!this->full_name_)
{
@@ -952,7 +952,7 @@ AST_Decl::full_name (void)
}
const char *
-AST_Decl::repoID (void)
+AST_Decl::repoID ()
{
if (this->pd_node_type == NT_root)
{
@@ -976,7 +976,7 @@ AST_Decl::repoID (char *value)
}
const char *
-AST_Decl::prefix (void)
+AST_Decl::prefix ()
{
return this->prefix_;
}
@@ -989,7 +989,7 @@ AST_Decl::prefix (const char *value)
}
const char *
-AST_Decl::version (void)
+AST_Decl::version ()
{
if (!this->version_)
{
@@ -998,8 +998,8 @@ AST_Decl::version (void)
// All forms of repo id should contain two colons, the
// version coming after the second one.
- const char *tail1 = 0;
- const char *tail2 = 0;
+ const char *tail1 = nullptr;
+ const char *tail2 = nullptr;
if (repo_id)
{
@@ -1055,7 +1055,7 @@ AST_Decl::version (char *value)
}
bool
-AST_Decl::anonymous (void) const
+AST_Decl::anonymous () const
{
return this->anonymous_;
}
@@ -1067,7 +1067,7 @@ AST_Decl::anonymous (bool val)
}
bool
-AST_Decl::typeid_set (void) const
+AST_Decl::typeid_set () const
{
return this->typeid_set_;
}
@@ -1127,7 +1127,7 @@ AST_Decl::set_id_with_typeid (char *value)
}
delete [] this->repoID_;
- this->repoID_ = 0;
+ this->repoID_ = nullptr;
this->repoID (ACE::strnew (value));
this->typeid_set_ = true;
}
@@ -1157,7 +1157,7 @@ AST_Decl::set_prefix_with_typeprefix (const char *value)
}
bool
-AST_Decl::imported (void)
+AST_Decl::imported ()
{
return this->pd_imported;
}
@@ -1169,7 +1169,7 @@ AST_Decl::set_imported (bool is_it)
}
bool
-AST_Decl::in_main_file (void)
+AST_Decl::in_main_file ()
{
return this->pd_in_main_file;
}
@@ -1181,7 +1181,7 @@ AST_Decl::set_in_main_file (bool is_it)
}
UTL_Scope *
-AST_Decl::defined_in (void)
+AST_Decl::defined_in ()
{
return this->pd_defined_in;
}
@@ -1193,13 +1193,13 @@ AST_Decl::set_defined_in (UTL_Scope *s)
}
AST_Decl::NodeType
-AST_Decl::node_type (void)
+AST_Decl::node_type ()
{
return this->pd_node_type;
}
long
-AST_Decl::line (void)
+AST_Decl::line ()
{
return this->pd_line;
}
@@ -1211,7 +1211,7 @@ AST_Decl::set_line (long l)
}
ACE_CString &
-AST_Decl::file_name (void)
+AST_Decl::file_name ()
{
return this->pd_file_name;
}
@@ -1223,7 +1223,7 @@ AST_Decl::set_file_name (ACE_CString s)
}
UTL_ScopedName *
-AST_Decl::name (void)
+AST_Decl::name ()
{
return this->pd_name;
}
@@ -1239,7 +1239,7 @@ AST_Decl::compute_name (const char *prefix,
{
if (!prefix || !suffix)
{
- return 0;
+ return nullptr;
}
// Prepare prefix_<local_name>_suffix string.
@@ -1252,19 +1252,19 @@ AST_Decl::compute_name (const char *prefix,
result_local_str += suffix_str;
// Identifier for the resulting local name.
- Identifier *result_local_id = 0;
+ Identifier *result_local_id = nullptr;
ACE_NEW_RETURN (result_local_id,
Identifier (result_local_str.c_str ()),
- 0);
+ nullptr);
// UTL_Scoped name for the resulting local name.
- UTL_ScopedName *result_local_name = 0;
+ UTL_ScopedName *result_local_name = nullptr;
ACE_NEW_RETURN (result_local_name,
- UTL_ScopedName (result_local_id, 0),
- 0);
+ UTL_ScopedName (result_local_id, nullptr),
+ nullptr);
// Global scope?
- UTL_ScopedName *result_name = 0;
+ UTL_ScopedName *result_name = nullptr;
if (!this->defined_in ())
{
result_name = result_local_name;
@@ -1333,18 +1333,18 @@ AST_Decl::set_name (UTL_ScopedName *n)
// These will be recomputed on demand.
delete [] this->flat_name_;
- this->flat_name_ = 0;
+ this->flat_name_ = nullptr;
delete [] this->full_name_;
- this->full_name_ = 0;
+ this->full_name_ = nullptr;
delete [] this->repoID_;
- this->repoID_ = 0;
+ this->repoID_ = nullptr;
}
}
Identifier *
-AST_Decl::local_name (void)
+AST_Decl::local_name ()
{
return this->pd_local_name;
}
@@ -1367,7 +1367,7 @@ AST_Decl::compute_local_name (const char *prefix,
{
if (!prefix || !suffix)
{
- return 0;
+ return nullptr;
}
// Init the result with prefix.
@@ -1380,10 +1380,10 @@ AST_Decl::compute_local_name (const char *prefix,
result_str += ACE_CString (suffix);
// Identifier for the resulting local name.
- Identifier *result_id = 0;
+ Identifier *result_id = nullptr;
ACE_NEW_RETURN (result_id,
Identifier (result_str.c_str ()),
- 0);
+ nullptr);
return result_id;
}
@@ -1417,13 +1417,13 @@ AST_Decl::original_local_name (Identifier *local_name)
}
Identifier *
-AST_Decl::original_local_name (void)
+AST_Decl::original_local_name ()
{
return this->pd_original_local_name;
}
bool
-AST_Decl::is_defined (void)
+AST_Decl::is_defined ()
{
// AST_Interface, AST_Structure, and AST_Union will
// override this, as will AST_InterfaceFwd, etc.
@@ -1431,7 +1431,7 @@ AST_Decl::is_defined (void)
}
UTL_ScopedName *
-AST_Decl::last_referenced_as (void) const
+AST_Decl::last_referenced_as () const
{
return this->last_referenced_as_;
}
@@ -1449,7 +1449,7 @@ AST_Decl::last_referenced_as (UTL_ScopedName *n)
}
UTL_Scope *
-AST_Decl::prefix_scope (void)
+AST_Decl::prefix_scope ()
{
return this->prefix_scope_;
}
@@ -1462,7 +1462,7 @@ AST_Decl::prefix_scope (UTL_Scope *s)
// Container types will override this.
int
-AST_Decl::contains_wstring (void)
+AST_Decl::contains_wstring ()
{
if (this->contains_wstring_ == -1)
{
@@ -1470,7 +1470,7 @@ AST_Decl::contains_wstring (void)
{
case AST_Decl::NT_array:
{
- AST_Array *a = AST_Array::narrow_from_decl (this);
+ AST_Array *a = dynamic_cast<AST_Array*> (this);
this->contains_wstring_ = a->base_type ()->contains_wstring ();
break;
}
@@ -1479,14 +1479,14 @@ AST_Decl::contains_wstring (void)
case AST_Decl::NT_struct:
case AST_Decl::NT_union:
{
- AST_Structure *s = AST_Structure::narrow_from_decl (this);
+ AST_Structure *s = dynamic_cast<AST_Structure*> (this);
this->contains_wstring_ = s->contains_wstring ();
break;
}
case AST_Decl::NT_sequence:
{
- AST_Sequence *s = AST_Sequence::narrow_from_decl (this);
+ AST_Sequence *s = dynamic_cast<AST_Sequence*> (this);
this->contains_wstring_ = s->base_type ()->contains_wstring ();
break;
}
@@ -1495,14 +1495,14 @@ AST_Decl::contains_wstring (void)
case AST_Decl::NT_field:
case AST_Decl::NT_union_branch:
{
- AST_Field *f = AST_Field::narrow_from_decl (this);
+ AST_Field *f = dynamic_cast<AST_Field*> (this);
this->contains_wstring_ = f->field_type ()->contains_wstring ();
break;
}
case AST_Decl::NT_typedef:
{
- AST_Typedef *td = AST_Typedef::narrow_from_decl (this);
+ AST_Typedef *td = dynamic_cast<AST_Typedef*> (this);
this->contains_wstring_ =
td->primitive_base_type ()->contains_wstring ();
break;
@@ -1536,11 +1536,11 @@ AST_Decl::masking_checks (AST_Decl *mod)
return true;
}
- AST_Module *me_mod = AST_Module::narrow_from_decl (this);
+ AST_Module *me_mod = dynamic_cast<AST_Module*> (this);
- if (me_mod != 0)
+ if (me_mod != nullptr)
{
- AST_Module *po_mod = AST_Module::narrow_from_decl (mod);
+ AST_Module *po_mod = dynamic_cast<AST_Module*> (mod);
if (po_mod)
{
while (!!(po_mod = po_mod->previous_opening ()))
@@ -1557,7 +1557,7 @@ AST_Decl::masking_checks (AST_Decl *mod)
}
bool
-AST_Decl::in_tmpl_mod_not_aliased (void) const
+AST_Decl::in_tmpl_mod_not_aliased () const
{
return this->in_tmpl_mod_not_aliased_;
}
@@ -1568,11 +1568,6 @@ AST_Decl::in_tmpl_mod_not_aliased (bool val)
this->in_tmpl_mod_not_aliased_ = val;
}
-//Narrowing methods for AST_Decl.
-
-IMPL_NARROW_FROM_DECL(AST_Decl)
-
-
void
AST_Decl::annotation_appls (const AST_Annotation_Appls &annotations)
{
diff --git a/TAO/TAO_IDL/ast/ast_emits.cpp b/TAO/TAO_IDL/ast/ast_emits.cpp
index 581b557ec9b..e77f67efde7 100644
--- a/TAO/TAO_IDL/ast/ast_emits.cpp
+++ b/TAO/TAO_IDL/ast/ast_emits.cpp
@@ -15,12 +15,12 @@ AST_Emits::AST_Emits (UTL_ScopedName *n,
{
}
-AST_Emits::~AST_Emits (void)
+AST_Emits::~AST_Emits ()
{
}
AST_Type *
-AST_Emits::emits_type (void) const
+AST_Emits::emits_type () const
{
return this->field_type ();
}
@@ -39,9 +39,7 @@ AST_Emits::ast_accept (ast_visitor *visitor)
}
void
-AST_Emits::destroy (void)
+AST_Emits::destroy ()
{
this->AST_Field::destroy ();
}
-
-IMPL_NARROW_FROM_DECL(AST_Emits)
diff --git a/TAO/TAO_IDL/ast/ast_enum.cpp b/TAO/TAO_IDL/ast/ast_enum.cpp
index 6ad9afb3fc9..8ac617c213b 100644
--- a/TAO/TAO_IDL/ast/ast_enum.cpp
+++ b/TAO/TAO_IDL/ast/ast_enum.cpp
@@ -91,13 +91,13 @@ AST_Enum::AST_Enum (UTL_ScopedName *n,
this->size_type (AST_Type::FIXED);
}
-AST_Enum::~AST_Enum (void)
+AST_Enum::~AST_Enum ()
{
}
// Return the member count.
int
-AST_Enum::member_count (void)
+AST_Enum::member_count ()
{
if (this->member_count_ == -1)
{
@@ -111,13 +111,13 @@ AST_Enum::member_count (void)
UTL_ScopedName *
AST_Enum::value_to_name (const unsigned long v)
{
- AST_EnumVal *item = 0;
- AST_Decl *d = 0;
+ AST_EnumVal *item = nullptr;
+ AST_Decl *d = nullptr;
for (UTL_ScopeActiveIterator i (this, IK_decls); !i.is_done (); i.next ())
{
d = i.item ();
- item = AST_EnumVal::narrow_from_decl (d);
+ item = dynamic_cast<AST_EnumVal*> (d);
if (item->constant_value ()->ev ()->u.ulval == v)
{
@@ -125,22 +125,22 @@ AST_Enum::value_to_name (const unsigned long v)
}
}
- return 0;
+ return nullptr;
}
// Look up an enumerator by the value of the supplied expression.
AST_EnumVal *
AST_Enum::lookup_by_value (const AST_Expression *v)
{
- AST_EnumVal *item = 0;
- AST_Decl *d = 0;
+ AST_EnumVal *item = nullptr;
+ AST_Decl *d = nullptr;
for (UTL_ScopeActiveIterator i (this, IK_decls);
!i.is_done ();
i.next ())
{
d = i.item ();
- item = AST_EnumVal::narrow_from_decl (d);
+ item = dynamic_cast<AST_EnumVal*> (d);
AST_Expression *cv = item->constant_value ();
if (cv == v)
@@ -153,7 +153,7 @@ AST_Enum::lookup_by_value (const AST_Expression *v)
// string name to look up the enum value with.
UTL_ScopedName *v_n = const_cast<AST_Expression *> (v)->n ();
- if (v_n != 0)
+ if (v_n != nullptr)
{
Identifier *cv_i = item->local_name ();
Identifier *v_i = v_n->last_component ();
@@ -165,13 +165,13 @@ AST_Enum::lookup_by_value (const AST_Expression *v)
}
}
- return 0;
+ return nullptr;
}
// Compute the value to be assigned to the next enumerator. Bump the
// counter.
unsigned long
-AST_Enum::next_enum_val (void)
+AST_Enum::next_enum_val ()
{
unsigned long i = pd_enum_counter++;
@@ -202,11 +202,11 @@ munge_name_for_enumval (UTL_ScopedName *n,
n = (UTL_ScopedName *) n->tail ();
}
- UTL_IdList *id = 0;
+ UTL_IdList *id = nullptr;
ACE_NEW_RETURN (id,
UTL_IdList (last_component->copy (),
- 0),
- 0);
+ nullptr),
+ nullptr);
n->set_tail (id);
@@ -215,7 +215,7 @@ munge_name_for_enumval (UTL_ScopedName *n,
// Compute total number of members.
int
-AST_Enum::compute_member_count (void)
+AST_Enum::compute_member_count ()
{
this->member_count_ = 0;
@@ -237,8 +237,8 @@ AST_Enum::compute_member_count (void)
AST_EnumVal *
AST_Enum::fe_add_enum_val (AST_EnumVal *t)
{
- AST_Decl *d = 0;
- AST_EnumVal *t1 = 0;
+ AST_Decl *d = nullptr;
+ AST_EnumVal *t1 = nullptr;
AST_Expression::AST_ExprValue *ev =
t->constant_value ()->coerce (AST_Expression::EV_ulong);
@@ -247,7 +247,7 @@ AST_Enum::fe_add_enum_val (AST_EnumVal *t)
t->name ());
delete ev;
- ev = 0;
+ ev = nullptr;
UTL_ScopedName *sn =
munge_name_for_enumval ((UTL_IdList *) t->name ()->copy (),
@@ -261,7 +261,7 @@ AST_Enum::fe_add_enum_val (AST_EnumVal *t)
t1->set_name (sn);
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t)) != 0)
+ if ((d = this->lookup_for_add (t)) != nullptr)
{
if (!FE_Utils::can_be_redefined (d, t))
{
@@ -269,7 +269,7 @@ AST_Enum::fe_add_enum_val (AST_EnumVal *t)
t,
this,
d);
- return 0;
+ return nullptr;
}
if (this->referenced (d, t->local_name ()))
@@ -278,14 +278,14 @@ AST_Enum::fe_add_enum_val (AST_EnumVal *t)
t,
this,
d);
- return 0;
+ return nullptr;
}
if (t->has_ancestor (d))
{
idl_global->err ()->redefinition_in_scope (t,
d);
- return 0;
+ return nullptr;
}
}
@@ -297,10 +297,10 @@ AST_Enum::fe_add_enum_val (AST_EnumVal *t)
false,
t->local_name ());
- if (t1 == 0)
+ if (t1 == nullptr)
{
// Prevent dereferencing null pointer in nested calls.
- return 0;
+ return nullptr;
}
// Add it to enclosing scope.
@@ -315,7 +315,7 @@ AST_Enum::fe_add_enum_val (AST_EnumVal *t)
void
AST_Enum::dump (ACE_OSTREAM_TYPE &o)
{
- AST_Decl *d = 0;
+ AST_Decl *d = nullptr;
if (this->is_local ())
{
@@ -366,14 +366,8 @@ AST_Enum::ast_accept (ast_visitor *visitor)
}
void
-AST_Enum::destroy (void)
+AST_Enum::destroy ()
{
this->UTL_Scope::destroy ();
this->AST_ConcreteType::destroy ();
}
-
-
-
-
-IMPL_NARROW_FROM_DECL(AST_Enum)
-IMPL_NARROW_FROM_SCOPE(AST_Enum)
diff --git a/TAO/TAO_IDL/ast/ast_enum_val.cpp b/TAO/TAO_IDL/ast/ast_enum_val.cpp
index eef74bb560a..6c5c26d9661 100644
--- a/TAO/TAO_IDL/ast/ast_enum_val.cpp
+++ b/TAO/TAO_IDL/ast/ast_enum_val.cpp
@@ -80,11 +80,11 @@ AST_EnumVal::AST_EnumVal (ACE_CDR::ULong v,
AST_Decl::NT_enum_val,
new AST_Expression (v),
n),
- enum_parent_ (0)
+ enum_parent_ (nullptr)
{
}
-AST_EnumVal::~AST_EnumVal (void)
+AST_EnumVal::~AST_EnumVal ()
{
}
@@ -103,8 +103,6 @@ AST_EnumVal::ast_accept (ast_visitor *visitor)
return visitor->visit_enum_val (this);
}
-IMPL_NARROW_FROM_DECL(AST_EnumVal)
-
AST_Enum *
AST_EnumVal::enum_parent ()
{
diff --git a/TAO/TAO_IDL/ast/ast_eventtype.cpp b/TAO/TAO_IDL/ast/ast_eventtype.cpp
index 107dc1fc1b8..16e4b5fba32 100644
--- a/TAO/TAO_IDL/ast/ast_eventtype.cpp
+++ b/TAO/TAO_IDL/ast/ast_eventtype.cpp
@@ -49,12 +49,12 @@ AST_EventType::AST_EventType (UTL_ScopedName *n,
{
}
-AST_EventType::~AST_EventType (void)
+AST_EventType::~AST_EventType ()
{
}
void
-AST_EventType::destroy (void)
+AST_EventType::destroy ()
{
this->AST_ValueType::destroy ();
}
@@ -121,9 +121,3 @@ AST_EventType::ast_accept (ast_visitor *visitor)
{
return visitor->visit_eventtype (this);
}
-
- // Narrowing.
-
-IMPL_NARROW_FROM_DECL(AST_EventType)
-IMPL_NARROW_FROM_SCOPE(AST_EventType)
-
diff --git a/TAO/TAO_IDL/ast/ast_eventtype_fwd.cpp b/TAO/TAO_IDL/ast/ast_eventtype_fwd.cpp
index 41690400f88..276c28a5795 100644
--- a/TAO/TAO_IDL/ast/ast_eventtype_fwd.cpp
+++ b/TAO/TAO_IDL/ast/ast_eventtype_fwd.cpp
@@ -21,7 +21,7 @@ AST_EventTypeFwd::AST_EventTypeFwd (AST_Interface *dummy,
{
}
-AST_EventTypeFwd::~AST_EventTypeFwd (void)
+AST_EventTypeFwd::~AST_EventTypeFwd ()
{
}
@@ -48,10 +48,6 @@ AST_EventTypeFwd::ast_accept (ast_visitor *visitor)
}
void
-AST_EventTypeFwd::destroy (void)
+AST_EventTypeFwd::destroy ()
{
}
-
-
-
-IMPL_NARROW_FROM_DECL (AST_EventTypeFwd)
diff --git a/TAO/TAO_IDL/ast/ast_exception.cpp b/TAO/TAO_IDL/ast/ast_exception.cpp
index f2dddf6946b..c7b023cbfb2 100644
--- a/TAO/TAO_IDL/ast/ast_exception.cpp
+++ b/TAO/TAO_IDL/ast/ast_exception.cpp
@@ -100,7 +100,7 @@ AST_Exception::AST_Exception (UTL_ScopedName *n,
{
}
-AST_Exception::~AST_Exception (void)
+AST_Exception::~AST_Exception ()
{
}
@@ -137,9 +137,9 @@ AST_Exception::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
// Continue until each element is visited.
for (UTL_ScopeActiveIterator i (this, IK_decls);!i.is_done ();i.next ())
{
- AST_Field *field = AST_Field::narrow_from_decl (i.item ());
+ AST_Field *field = dynamic_cast<AST_Field*> (i.item ());
- if (field == 0)
+ if (field == nullptr)
// This will be an enum value or other legitimate non-field
// member - in any case, no recursion.
{
@@ -150,11 +150,11 @@ AST_Exception::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
if (type->node_type () == AST_Decl::NT_typedef)
{
- AST_Typedef *td = AST_Typedef::narrow_from_decl (type);
+ AST_Typedef *td = dynamic_cast<AST_Typedef*> (type);
type = td->primitive_base_type ();
}
- if (type == 0)
+ if (type == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("(%N:%l) AST_Exception::")
@@ -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.
@@ -198,10 +198,7 @@ AST_Exception::ast_accept (ast_visitor *visitor)
}
void
-AST_Exception::destroy (void)
+AST_Exception::destroy ()
{
this->AST_Structure::destroy ();
}
-
-IMPL_NARROW_FROM_DECL(AST_Exception)
-IMPL_NARROW_FROM_SCOPE(AST_Exception)
diff --git a/TAO/TAO_IDL/ast/ast_expression.cpp b/TAO/TAO_IDL/ast/ast_expression.cpp
index 34014a58cc2..4471118069d 100644
--- a/TAO/TAO_IDL/ast/ast_expression.cpp
+++ b/TAO/TAO_IDL/ast/ast_expression.cpp
@@ -87,25 +87,25 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
// Helper function to fill out the details of where this expression
// is defined.
void
-AST_Expression::fill_definition_details (void)
+AST_Expression::fill_definition_details ()
{
this->pd_defined_in = idl_global->scopes ().depth () > 0
? idl_global->scopes().top ()
- : 0 ;
+ : nullptr ;
this->pd_line = idl_global->lineno ();
this->pd_file_name = idl_global->filename ();
- enum_parent (0);
+ enum_parent (nullptr);
}
// An AST_Expression denoting a symbolic name.
AST_Expression::AST_Expression (UTL_ScopedName *nm)
: pd_ec (EC_symbol),
- pd_ev (0),
- pd_v1 (0),
- pd_v2 (0),
+ pd_ev (nullptr),
+ pd_v1 (nullptr),
+ pd_v2 (nullptr),
pd_n (nm),
- tdef (0),
- param_holder_ (0)
+ tdef (nullptr),
+ param_holder_ (nullptr)
{
this->fill_definition_details ();
@@ -116,7 +116,7 @@ AST_Expression::AST_Expression (UTL_ScopedName *nm)
if (d->node_type () == AST_Decl::NT_param_holder)
{
this->param_holder_ =
- AST_Param_Holder::narrow_from_decl (d);
+ dynamic_cast<AST_Param_Holder*> (d);
}
}
@@ -124,12 +124,12 @@ AST_Expression::AST_Expression (UTL_ScopedName *nm)
AST_Expression::AST_Expression (AST_Expression *v,
ExprType t)
: pd_ec (EC_none),
- pd_ev (0),
- pd_v1 (0),
- pd_v2 (0),
- pd_n (0),
- tdef (0),
- param_holder_ (0)
+ pd_ev (nullptr),
+ pd_v1 (nullptr),
+ pd_v2 (nullptr),
+ pd_n (nullptr),
+ tdef (nullptr),
+ param_holder_ (nullptr)
{
AST_Param_Holder *ph = v->param_holder_;
this->fill_definition_details ();
@@ -158,11 +158,11 @@ AST_Expression::AST_Expression (AST_Expression *v,
}
else
{
- if (ph == 0)
+ if (ph == nullptr)
{
this->pd_ev = v->coerce (t);
- if (this->pd_ev == 0)
+ if (this->pd_ev == nullptr)
{
idl_global->err ()->coercion_error (v, t);
}
@@ -177,7 +177,7 @@ AST_Expression::AST_Expression (AST_Expression *v,
const_cast<FE_Utils::T_Param_Info *> (ph->info ()));
}
- if (0 != v->pd_n)
+ if (nullptr != v->pd_n)
{
this->pd_n =
dynamic_cast<UTL_ScopedName *> (v->pd_n->copy ());
@@ -191,12 +191,12 @@ AST_Expression::AST_Expression (ExprComb c,
AST_Expression *ev1,
AST_Expression *ev2)
: pd_ec (c),
- pd_ev (0),
+ pd_ev (nullptr),
pd_v1 (ev1),
pd_v2 (ev2),
- pd_n (0),
- tdef (0),
- param_holder_ (0)
+ pd_n (nullptr),
+ tdef (nullptr),
+ param_holder_ (nullptr)
{
this->fill_definition_details ();
}
@@ -204,12 +204,12 @@ AST_Expression::AST_Expression (ExprComb c,
// An AST_Expression denoting a short integer.
AST_Expression::AST_Expression (ACE_CDR::Short sv)
: pd_ec (EC_none),
- pd_ev (0),
- pd_v1 (0),
- pd_v2 (0),
- pd_n (0),
- tdef (0),
- param_holder_ (0)
+ pd_ev (nullptr),
+ pd_v1 (nullptr),
+ pd_v2 (nullptr),
+ pd_n (nullptr),
+ tdef (nullptr),
+ param_holder_ (nullptr)
{
this->fill_definition_details ();
@@ -223,12 +223,12 @@ AST_Expression::AST_Expression (ACE_CDR::Short sv)
// An AST_Expression denoting an unsigned short integer.
AST_Expression::AST_Expression (ACE_CDR::UShort usv)
: pd_ec (EC_none),
- pd_ev (0),
- pd_v1 (0),
- pd_v2 (0),
- pd_n (0),
- tdef (0),
- param_holder_ (0)
+ pd_ev (nullptr),
+ pd_v1 (nullptr),
+ pd_v2 (nullptr),
+ pd_n (nullptr),
+ tdef (nullptr),
+ param_holder_ (nullptr)
{
this->fill_definition_details ();
@@ -242,12 +242,12 @@ AST_Expression::AST_Expression (ACE_CDR::UShort usv)
// An AST_Expression denoting a long integer.
AST_Expression::AST_Expression (ACE_CDR::Long lv)
: pd_ec (EC_none),
- pd_ev (0),
- pd_v1 (0),
- pd_v2 (0),
- pd_n (0),
- tdef (0),
- param_holder_ (0)
+ pd_ev (nullptr),
+ pd_v1 (nullptr),
+ pd_v2 (nullptr),
+ pd_n (nullptr),
+ tdef (nullptr),
+ param_holder_ (nullptr)
{
this->fill_definition_details ();
@@ -261,12 +261,12 @@ AST_Expression::AST_Expression (ACE_CDR::Long lv)
// An AST_Expression denoting a long integer.
AST_Expression::AST_Expression (ACE_CDR::LongLong llv)
: pd_ec (EC_none),
- pd_ev (0),
- pd_v1 (0),
- pd_v2 (0),
- pd_n (0),
- tdef (0),
- param_holder_ (0)
+ pd_ev (nullptr),
+ pd_v1 (nullptr),
+ pd_v2 (nullptr),
+ pd_n (nullptr),
+ tdef (nullptr),
+ param_holder_ (nullptr)
{
this->fill_definition_details ();
@@ -280,12 +280,12 @@ AST_Expression::AST_Expression (ACE_CDR::LongLong llv)
// An AST_Expression denoting a boolean.
AST_Expression::AST_Expression (ACE_CDR::Boolean b)
: pd_ec (EC_none),
- pd_ev (0),
- pd_v1 (0),
- pd_v2 (0),
- pd_n (0),
- tdef (0),
- param_holder_ (0)
+ pd_ev (nullptr),
+ pd_v1 (nullptr),
+ pd_v2 (nullptr),
+ pd_n (nullptr),
+ tdef (nullptr),
+ param_holder_ (nullptr)
{
this->fill_definition_details ();
@@ -299,12 +299,12 @@ AST_Expression::AST_Expression (ACE_CDR::Boolean b)
// An AST_Expression denoting an unsigned long integer.
AST_Expression::AST_Expression (ACE_CDR::ULong ulv)
: pd_ec (EC_none),
- pd_ev (0),
- pd_v1 (0),
- pd_v2 (0),
- pd_n (0),
- tdef (0),
- param_holder_ (0)
+ pd_ev (nullptr),
+ pd_v1 (nullptr),
+ pd_v2 (nullptr),
+ pd_n (nullptr),
+ tdef (nullptr),
+ param_holder_ (nullptr)
{
this->fill_definition_details ();
@@ -318,12 +318,12 @@ AST_Expression::AST_Expression (ACE_CDR::ULong ulv)
// An AST_Expression denoting an unsigned long long integer.
AST_Expression::AST_Expression (ACE_CDR::ULongLong ulv)
: pd_ec (EC_none),
- pd_ev (0),
- pd_v1 (0),
- pd_v2 (0),
- pd_n (0),
- tdef (0),
- param_holder_ (0)
+ pd_ev (nullptr),
+ pd_v1 (nullptr),
+ pd_v2 (nullptr),
+ pd_n (nullptr),
+ tdef (nullptr),
+ param_holder_ (nullptr)
{
this->fill_definition_details ();
@@ -338,12 +338,12 @@ AST_Expression::AST_Expression (ACE_CDR::ULongLong ulv)
AST_Expression::AST_Expression (ACE_CDR::ULong ulv,
ExprType t)
: pd_ec (EC_none),
- pd_ev (0),
- pd_v1 (0),
- pd_v2 (0),
- pd_n (0),
- tdef (0),
- param_holder_ (0)
+ pd_ev (nullptr),
+ pd_v1 (nullptr),
+ pd_v2 (nullptr),
+ pd_n (nullptr),
+ tdef (nullptr),
+ param_holder_ (nullptr)
{
this->fill_definition_details ();
@@ -357,12 +357,12 @@ AST_Expression::AST_Expression (ACE_CDR::ULong ulv,
// An AST_Expression denoting a 32-bit floating point number.
AST_Expression::AST_Expression (ACE_CDR::Float fv)
: pd_ec (EC_none),
- pd_ev (0),
- pd_v1 (0),
- pd_v2 (0),
- pd_n (0),
- tdef (0),
- param_holder_ (0)
+ pd_ev (nullptr),
+ pd_v1 (nullptr),
+ pd_v2 (nullptr),
+ pd_n (nullptr),
+ tdef (nullptr),
+ param_holder_ (nullptr)
{
this->fill_definition_details ();
@@ -376,12 +376,12 @@ AST_Expression::AST_Expression (ACE_CDR::Float fv)
// An AST_Expression denoting a 64-bit floating point number.
AST_Expression::AST_Expression (ACE_CDR::Double dv)
: pd_ec (EC_none),
- pd_ev (0),
- pd_v1 (0),
- pd_v2 (0),
- pd_n (0),
- tdef (0),
- param_holder_ (0)
+ pd_ev (nullptr),
+ pd_v1 (nullptr),
+ pd_v2 (nullptr),
+ pd_n (nullptr),
+ tdef (nullptr),
+ param_holder_ (nullptr)
{
this->fill_definition_details ();
@@ -395,12 +395,12 @@ AST_Expression::AST_Expression (ACE_CDR::Double dv)
// An AST_Expression denoting a character.
AST_Expression::AST_Expression (ACE_CDR::Char cv)
: pd_ec (EC_none),
- pd_ev (0),
- pd_v1 (0),
- pd_v2 (0),
- pd_n (0),
- tdef (0),
- param_holder_ (0)
+ pd_ev (nullptr),
+ pd_v1 (nullptr),
+ pd_v2 (nullptr),
+ pd_n (nullptr),
+ tdef (nullptr),
+ param_holder_ (nullptr)
{
this->fill_definition_details ();
@@ -414,12 +414,12 @@ AST_Expression::AST_Expression (ACE_CDR::Char cv)
// An AST_Expression denoting a wide character.
AST_Expression::AST_Expression (ACE_OutputCDR::from_wchar wcv)
: pd_ec (EC_none),
- pd_ev (0),
- pd_v1 (0),
- pd_v2 (0),
- pd_n (0),
- tdef (0),
- param_holder_ (0)
+ pd_ev (nullptr),
+ pd_v1 (nullptr),
+ pd_v2 (nullptr),
+ pd_n (nullptr),
+ tdef (nullptr),
+ param_holder_ (nullptr)
{
this->fill_definition_details ();
@@ -433,12 +433,12 @@ AST_Expression::AST_Expression (ACE_OutputCDR::from_wchar wcv)
// An AST_Expression denoting an octet (unsigned char).
AST_Expression::AST_Expression (ACE_CDR::Octet ov)
: pd_ec (EC_none),
- pd_ev (0),
- pd_v1 (0),
- pd_v2 (0),
- pd_n (0),
- tdef (0),
- param_holder_ (0)
+ pd_ev (nullptr),
+ pd_v1 (nullptr),
+ pd_v2 (nullptr),
+ pd_n (nullptr),
+ tdef (nullptr),
+ param_holder_ (nullptr)
{
this->fill_definition_details ();
@@ -452,19 +452,19 @@ AST_Expression::AST_Expression (ACE_CDR::Octet ov)
// An AST_Expression denoting a string (char * encapsulated as a String).
AST_Expression::AST_Expression (UTL_String *sv)
: pd_ec (EC_none),
- pd_ev (0),
- pd_v1 (0),
- pd_v2 (0),
- pd_n (0),
- tdef (0),
- param_holder_ (0)
+ pd_ev (nullptr),
+ pd_v1 (nullptr),
+ pd_v2 (nullptr),
+ pd_n (nullptr),
+ tdef (nullptr),
+ param_holder_ (nullptr)
{
this->fill_definition_details ();
ACE_NEW (this->pd_ev,
AST_ExprValue);
- UTL_String *new_str = 0;
+ UTL_String *new_str = nullptr;
ACE_NEW (new_str,
UTL_String (sv, true));
@@ -475,12 +475,12 @@ AST_Expression::AST_Expression (UTL_String *sv)
// An AST_Expression denoting a wide string.
AST_Expression::AST_Expression (char *sv)
: pd_ec (EC_none),
- pd_ev (0),
- pd_v1 (0),
- pd_v2 (0),
- pd_n (0),
- tdef (0),
- param_holder_ (0)
+ pd_ev (nullptr),
+ pd_v1 (nullptr),
+ pd_v2 (nullptr),
+ pd_n (nullptr),
+ tdef (nullptr),
+ param_holder_ (nullptr)
{
this->fill_definition_details ();
@@ -493,12 +493,12 @@ AST_Expression::AST_Expression (char *sv)
AST_Expression::AST_Expression (const ACE_CDR::Fixed &f)
: pd_ec (EC_none),
- pd_ev (0),
- pd_v1 (0),
- pd_v2 (0),
- pd_n (0),
- tdef (0),
- param_holder_ (0)
+ pd_ev (nullptr),
+ pd_v1 (nullptr),
+ pd_v2 (nullptr),
+ pd_n (nullptr),
+ tdef (nullptr),
+ param_holder_ (nullptr)
{
this->fill_definition_details ();
@@ -509,12 +509,12 @@ AST_Expression::AST_Expression (const ACE_CDR::Fixed &f)
this->pd_ev->u.fixedval = f;
}
-AST_Expression::~AST_Expression (void)
+AST_Expression::~AST_Expression ()
{
destroy ();
}
-AST_Expression::AST_ExprValue::AST_ExprValue (void)
+AST_Expression::AST_ExprValue::AST_ExprValue ()
{
this->u.ulval = 0UL;
this->et = AST_Expression::EV_none;
@@ -528,9 +528,9 @@ static AST_Expression::AST_ExprValue *
coerce_value (AST_Expression::AST_ExprValue *ev,
AST_Expression::ExprType t)
{
- if (ev == 0)
+ if (ev == nullptr)
{
- return 0;
+ return nullptr;
}
switch (t)
@@ -543,7 +543,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_ushort:
if (ev->u.usval > (unsigned short) ACE_INT16_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.sval = (short) ev->u.usval;
@@ -553,7 +553,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.lval > (long) ACE_INT16_MAX
|| ev->u.lval < (long) ACE_INT16_MIN)
{
- return 0;
+ return nullptr;
}
ev->u.sval = (short) ev->u.lval;
@@ -562,7 +562,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_ulong:
if (ev->u.ulval > (unsigned long) ACE_INT16_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.sval = (short) ev->u.ulval;
@@ -572,7 +572,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.llval > (ACE_CDR::LongLong) ACE_INT16_MAX
|| ev->u.llval < (ACE_CDR::LongLong) ACE_INT16_MIN)
{
- return 0;
+ return nullptr;
}
ev->u.sval = (short) ev->u.llval;
@@ -581,7 +581,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_ulonglong:
if ((ev->u.ullval & ACE_INT16_MAX) != ev->u.ullval)
{
- return 0;
+ return nullptr;
}
ev->u.sval = (short) ev->u.ullval;
@@ -595,7 +595,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.fval > (float) ACE_INT16_MAX
|| ev->u.fval < (float) ACE_INT16_MIN)
{
- return 0;
+ return nullptr;
}
ev->u.sval = (short) ev->u.fval;
@@ -605,7 +605,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.dval > (double) ACE_INT16_MAX
|| ev->u.dval < (double) ACE_INT16_MIN)
{
- return 0;
+ return nullptr;
}
ev->u.sval = (short) ev->u.dval;
@@ -618,7 +618,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_wchar:
if (ev->u.wcval > (ACE_CDR::WChar) ACE_INT16_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.sval = (short) ev->u.wcval;
@@ -629,7 +629,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
ev->et = AST_Expression::EV_short;
return ev;
default:
- return 0;
+ return nullptr;
}
case AST_Expression::EV_ushort:
switch (ev->et)
@@ -637,7 +637,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_short:
if (ev->u.sval < 0)
{
- return 0;
+ return nullptr;
}
ev->u.usval = (unsigned short) ev->u.sval;
@@ -649,7 +649,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.lval > (long) ACE_UINT16_MAX
|| ev->u.lval < 0)
{
- return 0;
+ return nullptr;
}
ev->u.usval = (unsigned short) ev->u.lval;
@@ -658,7 +658,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_ulong:
if (ev->u.ulval > (unsigned long) ACE_UINT16_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.usval = (unsigned short) ev->u.ulval;
@@ -668,7 +668,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.llval > (ACE_CDR::LongLong) ACE_UINT16_MAX
|| ev->u.llval < 0)
{
- return 0;
+ return nullptr;
}
ev->u.usval = (unsigned short) ev->u.llval;
@@ -677,7 +677,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_ulonglong:
if ((ev->u.ullval & ACE_UINT16_MAX) != ev->u.ullval)
{
- return 0;
+ return nullptr;
}
ev->u.usval = (unsigned short) ev->u.ullval;
@@ -691,7 +691,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.fval < 0.0
|| ev->u.fval > (float) ACE_UINT16_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.usval = (unsigned short) ev->u.fval;
@@ -701,7 +701,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.dval < 0.0
|| ev->u.dval > (double) ACE_UINT16_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.usval = (unsigned short) ev->u.dval;
@@ -710,7 +710,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_char:
if ((signed char) ev->u.cval < 0)
{
- return 0;
+ return nullptr;
}
ev->u.usval = (unsigned short) ev->u.cval;
@@ -725,7 +725,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
ev->et = AST_Expression::EV_ushort;
return ev;
default:
- return 0;
+ return nullptr;
}
case AST_Expression::EV_long:
switch (ev->et)
@@ -743,7 +743,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_ulong:
if (ev->u.ulval > (unsigned long) ACE_INT32_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.lval = (long) ev->u.ulval;
@@ -753,7 +753,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.llval > (ACE_CDR::LongLong) ACE_INT32_MAX
|| ev->u.llval < (ACE_CDR::LongLong) ACE_INT32_MIN)
{
- return 0;
+ return nullptr;
}
ev->u.lval = (long) ev->u.llval;
ev->et = AST_Expression::EV_long;
@@ -761,7 +761,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_ulonglong:
if ((ev->u.ullval & ACE_INT32_MAX) != ev->u.ullval)
{
- return 0;
+ return nullptr;
}
ev->u.lval = (long) ev->u.ullval;
@@ -775,7 +775,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.fval > (float) LONG_MAX
|| ev->u.fval < (float) ACE_INT32_MIN)
{
- return 0;
+ return nullptr;
}
ev->u.lval = (long) ev->u.fval;
@@ -785,7 +785,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.dval > (double) LONG_MAX
|| ev->u.dval < (double) ACE_INT32_MIN)
{
- return 0;
+ return nullptr;
}
ev->u.lval = (long) ev->u.dval;
@@ -804,7 +804,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
ev->et = AST_Expression::EV_long;
return ev;
default:
- return 0;
+ return nullptr;
}
case AST_Expression::EV_ulong:
switch (ev->et)
@@ -812,7 +812,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_short:
if (ev->u.sval < 0)
{
- return 0;
+ return nullptr;
}
ev->u.ulval = (unsigned long) ev->u.sval;
@@ -825,7 +825,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_long:
if (ev->u.lval < 0)
{
- return 0;
+ return nullptr;
}
ev->u.ulval = (unsigned long) ev->u.lval;
@@ -837,7 +837,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.llval > (ACE_CDR::LongLong) ACE_UINT32_MAX
|| ev->u.llval < 0)
{
- return 0;
+ return nullptr;
}
ev->u.ulval = (unsigned long) ev->u.llval;
@@ -846,7 +846,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_ulonglong:
if ((ev->u.ullval & ACE_UINT32_MAX) != ev->u.ullval)
{
- return 0;
+ return nullptr;
}
ev->u.ulval = (unsigned long) ev->u.ullval;
ev->et = AST_Expression::EV_ulong;
@@ -859,7 +859,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.fval < 0.0
|| ev->u.fval > (float) ACE_UINT32_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.ulval = (unsigned long) ev->u.fval;
@@ -869,7 +869,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.dval < 0.0
|| ev->u.dval > (double) ACE_UINT32_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.ulval = (unsigned long) ev->u.dval;
@@ -878,7 +878,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_char:
if ((signed char) ev->u.cval < 0)
{
- return 0;
+ return nullptr;
}
ev->u.ulval = (unsigned long) ev->u.cval;
@@ -893,7 +893,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
ev->et = AST_Expression::EV_ulong;
return ev;
default:
- return 0;
+ return nullptr;
}
case AST_Expression::EV_longlong:
switch (ev->et)
@@ -919,7 +919,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_ulonglong:
if (ev->u.ullval > ACE_INT64_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.llval =
@@ -934,7 +934,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.fval > (float) ACE_INT64_MAX
|| ev->u.fval < (float) ACE_INT64_MIN)
{
- return 0;
+ return nullptr;
}
ev->u.llval = (ACE_CDR::LongLong) ev->u.fval;
@@ -944,7 +944,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.dval > (double) ACE_INT64_MAX
|| ev->u.dval < (double) ACE_INT64_MIN)
{
- return 0;
+ return nullptr;
}
ev->u.llval = (ACE_CDR::LongLong) ev->u.dval;
@@ -963,7 +963,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
ev->et = AST_Expression::EV_longlong;
return ev;
default:
- return 0;
+ return nullptr;
}
case AST_Expression::EV_ulonglong:
switch (ev->et)
@@ -971,7 +971,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_short:
if (ev->u.sval < 0)
{
- return 0;
+ return nullptr;
}
ev->u.ullval = ev->u.sval;
@@ -984,7 +984,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_long:
if (ev->u.lval < 0)
{
- return 0;
+ return nullptr;
}
ev->u.ullval = ev->u.lval;
@@ -997,7 +997,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_longlong:
if (ev->u.llval < 0)
{
- return 0;
+ return nullptr;
}
ev->u.ullval =
@@ -1014,7 +1014,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.fval < 0.0
|| ev->u.fval > (float) ACE_UINT64_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.ullval = static_cast<ACE_UINT64> (ev->u.fval);
@@ -1025,7 +1025,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.dval < 0.0
|| ev->u.dval > (double) ACE_UINT64_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.ullval = static_cast<ACE_UINT64> (ev->u.dval);
@@ -1035,7 +1035,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_char:
if ((signed char) ev->u.cval < 0)
{
- return 0;
+ return nullptr;
}
ev->u.ullval = ev->u.cval;
@@ -1050,7 +1050,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
ev->et = AST_Expression::EV_ulonglong;
return ev;
default:
- return 0;
+ return nullptr;
}
case AST_Expression::EV_bool:
switch (ev->et)
@@ -1102,7 +1102,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
ev->et = AST_Expression::EV_bool;
return ev;
default:
- return 0;
+ return nullptr;
}
case AST_Expression::EV_float:
switch (ev->et)
@@ -1127,7 +1127,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.llval > FLT_MAX
|| ev->u.llval < -(ACE_FLT_MAX))
{
- return 0;
+ return nullptr;
}
ev->u.fval = (float) ev->u.llval;
ev->et = AST_Expression::EV_float;
@@ -1146,7 +1146,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.dval > ACE_FLT_MAX
|| ev->u.dval < -(ACE_FLT_MAX))
{
- return 0;
+ return nullptr;
}
ev->u.fval = (float) ev->u.dval;
@@ -1165,7 +1165,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
ev->et = AST_Expression::EV_float;
return ev;
default:
- return 0;
+ return nullptr;
}
case AST_Expression::EV_double:
switch (ev->et)
@@ -1195,7 +1195,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
// conversions, so we are stuck with the signed 64-bit max value.
if (ev->u.ullval > ACE_INT64_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.dval = (double) ((ACE_CDR::LongLong) ev->u.ullval);
@@ -1224,7 +1224,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
ev->et = AST_Expression::EV_double;
return ev;
default:
- return 0;
+ return nullptr;
}
case AST_Expression::EV_char:
switch (ev->et)
@@ -1233,7 +1233,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.sval > (short) ACE_CHAR_MAX
|| ev->u.sval < (short) ACE_CHAR_MIN)
{
- return 0;
+ return nullptr;
}
ev->u.cval = (char) ev->u.sval;
@@ -1242,7 +1242,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_ushort:
if (ev->u.usval > (unsigned short) ACE_CHAR_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.cval = (char) ev->u.usval;
@@ -1252,7 +1252,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.lval > (long) ACE_CHAR_MAX
|| ev->u.lval < (long) ACE_CHAR_MIN)
{
- return 0;
+ return nullptr;
}
ev->u.cval = (char) ev->u.lval;
@@ -1261,7 +1261,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_ulong:
if (ev->u.ulval > (unsigned long) ACE_CHAR_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.cval = (char) ev->u.ulval;
@@ -1271,7 +1271,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.llval > (ACE_CDR::LongLong) ACE_CHAR_MAX
|| ev->u.llval < (ACE_CDR::LongLong) ACE_CHAR_MIN)
{
- return 0;
+ return nullptr;
}
ev->u.cval = (char) ev->u.llval;
@@ -1280,7 +1280,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_ulonglong:
if (( ev->u.ullval & ACE_CHAR_MAX) != ev->u.ullval)
{
- return 0;
+ return nullptr;
}
ev->u.cval = (char) ev->u.ullval;
@@ -1294,7 +1294,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.fval > (float) ACE_CHAR_MAX
|| ev->u.fval < (float) ACE_CHAR_MIN)
{
- return 0;
+ return nullptr;
}
ev->u.cval = (char) ev->u.fval;
@@ -1304,7 +1304,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.dval > (double) ACE_CHAR_MAX
|| ev->u.dval < (double) ACE_CHAR_MIN)
{
- return 0;
+ return nullptr;
}
ev->u.cval = (char) ev->u.dval;
@@ -1315,7 +1315,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_wchar:
if (ev->u.wcval > (ACE_CDR::WChar) ACE_CHAR_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.cval = (char) ev->u.wcval;
@@ -1324,14 +1324,14 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_octet:
if (ev->u.oval > (unsigned char) ACE_CHAR_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.cval = (char) ev->u.oval;
ev->et = AST_Expression::EV_char;
return ev;
default:
- return 0;
+ return nullptr;
}
case AST_Expression::EV_wchar:
switch (ev->et)
@@ -1339,7 +1339,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_short:
if (ev->u.sval < 0)
{
- return 0;
+ return nullptr;
}
ev->u.wcval = (ACE_CDR::WChar) ev->u.sval;
@@ -1353,7 +1353,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.lval < 0
|| ev->u.lval > ACE_WCHAR_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.wcval = (ACE_CDR::WChar) ev->u.lval;
@@ -1362,7 +1362,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_ulong:
if (ev->u.ulval > ACE_WCHAR_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.wcval = (ACE_CDR::WChar) ev->u.ulval;
@@ -1372,7 +1372,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.llval > (ACE_CDR::LongLong) ACE_WCHAR_MAX
|| ev->u.llval < 0)
{
- return 0;
+ return nullptr;
}
ev->u.wcval = (ACE_CDR::WChar) ev->u.llval;
@@ -1381,7 +1381,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_ulonglong:
if ((ev->u.ullval & ACE_WCHAR_MAX) != ev->u.ullval )
{
- return 0;
+ return nullptr;
}
ev->u.wcval = (ACE_CDR::WChar) ev->u.ullval;
@@ -1395,7 +1395,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.fval > (float) ACE_WCHAR_MAX
|| ev->u.fval < 0)
{
- return 0;
+ return nullptr;
}
ev->u.wcval = (ACE_CDR::WChar) ev->u.fval;
@@ -1405,7 +1405,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.dval > (double) ACE_WCHAR_MAX
|| ev->u.dval < 0)
{
- return 0;
+ return nullptr;
}
ev->u.wcval = (ACE_CDR::WChar) ev->u.dval;
@@ -1414,7 +1414,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_char:
if ((signed char) ev->u.cval < 0)
{
- return 0;
+ return nullptr;
}
ev->u.wcval = (ACE_CDR::WChar) ev->u.cval;
@@ -1427,7 +1427,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
ev->et = AST_Expression::EV_wchar;
return ev;
default:
- return 0;
+ return nullptr;
}
case AST_Expression::EV_octet:
switch (ev->et)
@@ -1436,7 +1436,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.sval < 0
|| ev->u.sval > (short) ACE_OCTET_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.oval = (unsigned char) ev->u.sval;
@@ -1445,7 +1445,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_ushort:
if (ev->u.usval > (unsigned short) ACE_OCTET_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.oval = (unsigned char) ev->u.usval;
@@ -1455,7 +1455,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.lval < 0
|| ev->u.lval > (long) ACE_OCTET_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.oval = (unsigned char) ev->u.lval;
@@ -1464,7 +1464,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_ulong:
if (ev->u.ulval > (unsigned long) ACE_OCTET_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.oval = (unsigned char) ev->u.ulval;
@@ -1474,7 +1474,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.llval < 0
|| ev->u.llval > (ACE_CDR::LongLong) ACE_OCTET_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.oval = (unsigned char) ev->u.llval;
@@ -1483,7 +1483,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_ulonglong:
if ((ev->u.ullval & ACE_OCTET_MAX) != ev->u.ullval)
{
- return 0;
+ return nullptr;
}
ev->u.oval = (unsigned char) ev->u.ullval;
@@ -1497,7 +1497,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.fval < 0.0
|| ev->u.fval > (float) ACE_OCTET_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.oval = (unsigned char) ev->u.fval;
@@ -1507,7 +1507,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
if (ev->u.dval < 0.0
|| ev->u.dval > (double) ACE_OCTET_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.oval = (unsigned char) ev->u.dval;
@@ -1516,7 +1516,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_char:
if ((signed char) ev->u.cval < 0)
{
- return 0;
+ return nullptr;
}
ev->u.oval = (unsigned char) ev->u.cval;
@@ -1525,7 +1525,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_wchar:
if (ev->u.wcval > (ACE_CDR::WChar) ACE_OCTET_MAX)
{
- return 0;
+ return nullptr;
}
ev->u.oval = (unsigned char) ev->u.wcval;
@@ -1534,7 +1534,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_octet:
return ev;
default:
- return 0;
+ return nullptr;
}
case AST_Expression::EV_enum:
switch (ev->et)
@@ -1543,7 +1543,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_ulong:
return ev;
default:
- return 0;
+ return nullptr;
}
case AST_Expression::EV_void:
switch (ev->et)
@@ -1551,17 +1551,17 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_void:
return ev;
default:
- return 0;
+ return nullptr;
}
case AST_Expression::EV_none:
- return 0;
+ return nullptr;
case AST_Expression::EV_string:
switch (ev->et)
{
case AST_Expression::EV_string:
return ev;
default:
- return 0;
+ return nullptr;
}
case AST_Expression::EV_fixed:
switch (ev->et)
@@ -1569,13 +1569,13 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_fixed:
return ev;
default:
- return 0;
+ return nullptr;
}
default:
- return 0;
+ return nullptr;
}
- return 0;
+ return nullptr;
}
// Integer literals may not be assigned to floating point constants,
@@ -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;
}
}
@@ -1648,17 +1648,17 @@ static AST_Expression::AST_ExprValue *
eval_kind (AST_Expression::AST_ExprValue *ev, AST_Expression::EvalKind ek)
{
// Make a copy to simplify the memory management logic.
- AST_Expression::AST_ExprValue *newval = 0;
+ AST_Expression::AST_ExprValue *newval = nullptr;
ACE_NEW_RETURN (newval,
AST_Expression::AST_ExprValue,
- 0);
+ nullptr);
- if (ev != 0)
+ if (ev != nullptr)
{
*newval = *ev;
}
- AST_Expression::AST_ExprValue *retval = 0;
+ AST_Expression::AST_ExprValue *retval = nullptr;
switch (ek)
{
@@ -1706,7 +1706,7 @@ eval_kind (AST_Expression::AST_ExprValue *ev, AST_Expression::EvalKind ek)
if (retval != newval)
{
delete newval;
- newval = 0;
+ newval = nullptr;
}
return retval;
@@ -1728,24 +1728,24 @@ eval_kind (AST_Expression::AST_ExprValue *ev, AST_Expression::EvalKind ek)
AST_Expression::AST_ExprValue *
AST_Expression::eval_bin_op (AST_Expression::EvalKind ek)
{
- AST_ExprValue *retval = 0;
+ AST_ExprValue *retval = nullptr;
- if (this->pd_v1 == 0 || this->pd_v2 == 0)
+ if (this->pd_v1 == nullptr || this->pd_v2 == nullptr)
{
- return 0;
+ return nullptr;
}
this->pd_v1->set_ev (this->pd_v1->eval_internal (ek));
this->pd_v2->set_ev (this->pd_v2->eval_internal (ek));
- if (this->pd_v1->ev () == 0 || this->pd_v2->ev () == 0)
+ if (this->pd_v1->ev () == nullptr || this->pd_v2->ev () == nullptr)
{
- return 0;
+ return nullptr;
}
ACE_NEW_RETURN (retval,
AST_ExprValue,
- 0);
+ nullptr);
if (ek == EK_ulonglong)
{
@@ -1771,8 +1771,8 @@ AST_Expression::eval_bin_op (AST_Expression::EvalKind ek)
if (this->pd_v2->ev ()->u.ullval == 0)
{
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
retval->u.ullval =
@@ -1780,8 +1780,8 @@ AST_Expression::eval_bin_op (AST_Expression::EvalKind ek)
break;
default:
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
}
else if (ek == EK_longlong)
@@ -1808,8 +1808,8 @@ AST_Expression::eval_bin_op (AST_Expression::EvalKind ek)
if (this->pd_v2->ev ()->u.llval == 0)
{
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
retval->u.llval =
@@ -1817,8 +1817,8 @@ AST_Expression::eval_bin_op (AST_Expression::EvalKind ek)
break;
default:
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
}
else if (ek == EK_fixed_point)
@@ -1845,8 +1845,8 @@ AST_Expression::eval_bin_op (AST_Expression::EvalKind ek)
if (!this->pd_v2->ev ()->u.fixedval)
{
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
retval->u.fixedval =
@@ -1854,8 +1854,8 @@ AST_Expression::eval_bin_op (AST_Expression::EvalKind ek)
break;
default:
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
}
else
@@ -1882,8 +1882,8 @@ AST_Expression::eval_bin_op (AST_Expression::EvalKind ek)
if (ACE::is_equal (this->pd_v2->ev ()->u.dval, 0.0))
{
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
retval->u.dval =
@@ -1891,8 +1891,8 @@ AST_Expression::eval_bin_op (AST_Expression::EvalKind ek)
break;
default:
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
}
@@ -1904,24 +1904,24 @@ AST_Expression::eval_bin_op (AST_Expression::EvalKind ek)
AST_Expression::AST_ExprValue *
AST_Expression::eval_mod_op (AST_Expression::EvalKind ek)
{
- AST_ExprValue *retval = 0;
+ AST_ExprValue *retval = nullptr;
- if (this->pd_v1 == 0 || this->pd_v2 == 0)
+ if (this->pd_v1 == nullptr || this->pd_v2 == nullptr)
{
- return 0;
+ return nullptr;
}
this->pd_v1->set_ev (this->pd_v1->eval_internal (ek));
this->pd_v2->set_ev (this->pd_v2->eval_internal (ek));
- if (this->pd_v1->ev () == 0 || this->pd_v2->ev () == 0)
+ if (this->pd_v1->ev () == nullptr || this->pd_v2->ev () == nullptr)
{
- return 0;
+ return nullptr;
}
ACE_NEW_RETURN (retval,
AST_ExprValue,
- 0);
+ nullptr);
if (ek == EK_ulonglong)
{
@@ -1932,8 +1932,8 @@ AST_Expression::eval_mod_op (AST_Expression::EvalKind ek)
if (this->pd_v2->ev ()->u.ullval == 0)
{
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
retval->u.ullval =
@@ -1948,8 +1948,8 @@ AST_Expression::eval_mod_op (AST_Expression::EvalKind ek)
if (this->pd_v2->ev ()->u.llval == 0)
{
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
retval->u.llval =
@@ -1965,8 +1965,8 @@ AST_Expression::eval_mod_op (AST_Expression::EvalKind ek)
if (this->pd_v2->ev ()->u.ulval == 0)
{
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
retval->u.ulval =
@@ -1981,8 +1981,8 @@ AST_Expression::eval_mod_op (AST_Expression::EvalKind ek)
if (this->pd_v2->ev ()->u.lval == 0)
{
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
retval->u.lval =
@@ -1991,8 +1991,8 @@ AST_Expression::eval_mod_op (AST_Expression::EvalKind ek)
else
{
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
return retval;
@@ -2004,24 +2004,24 @@ AST_Expression::eval_mod_op (AST_Expression::EvalKind ek)
AST_Expression::AST_ExprValue *
AST_Expression::eval_bit_op (AST_Expression::EvalKind ek)
{
- AST_Expression::AST_ExprValue *retval = 0;
+ AST_Expression::AST_ExprValue *retval = nullptr;
- if (this->pd_v1 == 0 || this->pd_v2 == 0)
+ if (this->pd_v1 == nullptr || this->pd_v2 == nullptr)
{
- return 0;
+ return nullptr;
}
this->pd_v1->set_ev (this->pd_v1->eval_internal (ek));
this->pd_v2->set_ev (this->pd_v2->eval_internal (ek));
- if (this->pd_v1->ev () == 0 || this->pd_v2->ev () == 0 )
+ if (this->pd_v1->ev () == nullptr || this->pd_v2->ev () == nullptr )
{
- return 0;
+ return nullptr;
}
ACE_NEW_RETURN (retval,
AST_ExprValue,
- 0);
+ nullptr);
switch (ek)
{
@@ -2055,8 +2055,8 @@ AST_Expression::eval_bit_op (AST_Expression::EvalKind ek)
break;
default:
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
}
@@ -2091,8 +2091,8 @@ AST_Expression::eval_bit_op (AST_Expression::EvalKind ek)
break;
default:
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
}
@@ -2127,8 +2127,8 @@ AST_Expression::eval_bit_op (AST_Expression::EvalKind ek)
break;
default:
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
}
@@ -2163,8 +2163,8 @@ AST_Expression::eval_bit_op (AST_Expression::EvalKind ek)
break;
default:
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
}
@@ -2199,8 +2199,8 @@ AST_Expression::eval_bit_op (AST_Expression::EvalKind ek)
break;
default:
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
}
@@ -2235,8 +2235,8 @@ AST_Expression::eval_bit_op (AST_Expression::EvalKind ek)
break;
default:
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
}
@@ -2271,8 +2271,8 @@ AST_Expression::eval_bit_op (AST_Expression::EvalKind ek)
break;
default:
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
}
@@ -2316,16 +2316,16 @@ AST_Expression::eval_bit_op (AST_Expression::EvalKind ek)
break;
default:
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
}
break;
default:
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
return retval;
@@ -2337,28 +2337,28 @@ AST_Expression::eval_bit_op (AST_Expression::EvalKind ek)
AST_Expression::AST_ExprValue *
AST_Expression::eval_un_op (AST_Expression::EvalKind ek)
{
- AST_ExprValue *retval = 0;
+ AST_ExprValue *retval = nullptr;
- if (this->pd_ev != 0)
+ if (this->pd_ev != nullptr)
{
return this->pd_ev;
}
- if (this->pd_v1 == 0)
+ if (this->pd_v1 == nullptr)
{
- return 0;
+ return nullptr;
}
this->pd_v1->set_ev (this->pd_v1->eval_internal (ek));
- if (this->pd_v1->ev () == 0)
+ if (this->pd_v1->ev () == nullptr)
{
- return 0;
+ return nullptr;
}
ACE_NEW_RETURN (retval,
AST_ExprValue,
- 0);
+ nullptr);
if (this->pd_v1->ev ()->et == EV_fixed)
{
@@ -2373,7 +2373,7 @@ AST_Expression::eval_un_op (AST_Expression::EvalKind ek)
break;
default:
delete retval;
- return 0;
+ return nullptr;
}
return retval;
}
@@ -2385,11 +2385,11 @@ AST_Expression::eval_un_op (AST_Expression::EvalKind ek)
case EC_u_plus:
this->pd_v1->set_ev (this->pd_v1->coerce (EV_double));
- if (this->pd_v1->ev () == 0)
+ if (this->pd_v1->ev () == nullptr)
{
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
retval->u.dval = this->pd_v1->ev ()->u.dval;
@@ -2397,21 +2397,21 @@ AST_Expression::eval_un_op (AST_Expression::EvalKind ek)
case EC_u_minus:
this->pd_v1->set_ev (this->pd_v1->coerce (EV_double));
- if (this->pd_v1->ev () == 0)
+ if (this->pd_v1->ev () == nullptr)
{
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
retval->u.dval = -(this->pd_v1->ev ()->u.dval);
break;
case EC_bit_neg:
- if (this->pd_v1->ev () == 0)
+ if (this->pd_v1->ev () == nullptr)
{
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
switch (this->pd_v1->ev ()->et)
@@ -2446,15 +2446,15 @@ AST_Expression::eval_un_op (AST_Expression::EvalKind ek)
break;
default:
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
break;
default:
delete retval;
- retval = 0;
- return 0;
+ retval = nullptr;
+ return nullptr;
}
return retval;
@@ -2465,15 +2465,15 @@ AST_Expression::eval_un_op (AST_Expression::EvalKind ek)
AST_Expression::AST_ExprValue *
AST_Expression::eval_symbol (AST_Expression::EvalKind ek)
{
- UTL_Scope *s = 0;
- AST_Decl *d = 0;
- AST_Constant *c = 0;
+ UTL_Scope *s = nullptr;
+ AST_Decl *d = nullptr;
+ AST_Constant *c = nullptr;
// Is there a symbol stored?
- if (this->pd_n == 0)
+ if (this->pd_n == nullptr)
{
idl_global->err ()->eval_error (this);
- return 0;
+ return nullptr;
}
// Get current scope for lookup.
@@ -2482,28 +2482,28 @@ AST_Expression::eval_symbol (AST_Expression::EvalKind ek)
s = idl_global->scopes ().top_non_null ();
}
- if (s == 0)
+ if (s == nullptr)
{
idl_global->err ()->lookup_error (this->pd_n);
- return 0;
+ return nullptr;
}
// If we are a template parameter placeholder, just skip the
// rest - nothing needs to be evaluated until instantiation
// time.
- if (this->param_holder_ != 0)
+ if (this->param_holder_ != nullptr)
{
- return 0;
+ return nullptr;
}
// Do lookup.
d = s->lookup_by_name (this->pd_n,
true);
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error (this->pd_n);
- return 0;
+ return nullptr;
}
// Is it a constant?
@@ -2512,21 +2512,21 @@ AST_Expression::eval_symbol (AST_Expression::EvalKind ek)
{
idl_global->err ()->constant_expected (this->pd_n,
d);
- return 0;
+ return nullptr;
}
if (d->node_type () == AST_Decl::NT_enum_val)
{
- AST_EnumVal *enumval = AST_EnumVal::narrow_from_decl (d);
+ AST_EnumVal *enumval = dynamic_cast<AST_EnumVal*> (d);
enum_parent (enumval->enum_parent ());
}
// OK, now evaluate the constant we just got, to produce its value.
- c = AST_Constant::narrow_from_decl (d);
+ c = dynamic_cast<AST_Constant*> (d);
- if (c == 0)
+ if (c == nullptr)
{
- return 0;
+ return nullptr;
}
return c->constant_value ()->eval_internal (ek);
@@ -2535,20 +2535,20 @@ AST_Expression::eval_symbol (AST_Expression::EvalKind ek)
bool
AST_Expression::type_mismatch (AST_Expression::ExprType t)
{
- if (this->pd_ev != 0)
+ if (this->pd_ev != nullptr)
{
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 != 0)
+ if (this->pd_v1 != nullptr)
{
v1_mismatch = this->pd_v1->type_mismatch (t);
}
- if (this->pd_v2 != 0)
+ if (this->pd_v2 != nullptr)
{
v2_mismatch = this->pd_v2->type_mismatch (t);
}
@@ -2563,26 +2563,26 @@ AST_Expression::AST_ExprValue *
AST_Expression::check_and_coerce (AST_Expression::ExprType t,
AST_Decl *d)
{
- if (d != 0)
+ if (d != nullptr)
{
AST_Decl *enum_val =
idl_global->scopes ().top_non_null ()->lookup_by_name (this->pd_n,
- 1);
+ true);
- if (enum_val != 0)
+ if (enum_val != nullptr)
{
AST_Decl *enum_decl = ScopeAsDecl (enum_val->defined_in ());
if (d->node_type () == AST_Decl::NT_typedef)
{
- AST_Typedef *td = AST_Typedef::narrow_from_decl (d);
+ AST_Typedef *td = dynamic_cast<AST_Typedef*> (d);
d = td->primitive_base_type ();
}
if (d != enum_decl)
{
idl_global->err ()->incompatible_type_error (this);
- return 0;
+ return nullptr;
}
}
}
@@ -2590,10 +2590,10 @@ AST_Expression::check_and_coerce (AST_Expression::ExprType t,
if (this->type_mismatch (t))
{
idl_global->err ()->incompatible_type_error (this);
- return 0;
+ return nullptr;
}
- if (d != 0 && d->node_type () == AST_Decl::NT_typedef)
+ if (d != nullptr && d->node_type () == AST_Decl::NT_typedef)
{
this->tdef = d;
}
@@ -2607,7 +2607,7 @@ AST_Expression::check_and_coerce (AST_Expression::ExprType t,
AST_Expression::AST_ExprValue *
AST_Expression::coerce (AST_Expression::ExprType t)
{
- AST_ExprValue *tmp = 0;
+ AST_ExprValue *tmp = nullptr;
// First, evaluate it, then try to coerce result type.
// If already evaluated, return the result.
@@ -2645,9 +2645,9 @@ AST_Expression::coerce (AST_Expression::ExprType t)
break;
}
- if (tmp == 0)
+ if (tmp == nullptr)
{
- return 0;
+ return nullptr;
}
else
{
@@ -2656,10 +2656,10 @@ AST_Expression::coerce (AST_Expression::ExprType t)
}
// Create a copy to contain coercion result.
- AST_ExprValue *copy = 0;
+ AST_ExprValue *copy = nullptr;
ACE_NEW_RETURN (copy,
AST_ExprValue,
- 0);
+ nullptr);
copy->et = this->pd_ev->et;
@@ -2669,8 +2669,8 @@ AST_Expression::coerce (AST_Expression::ExprType t)
case EV_void:
case EV_none:
delete copy;
- copy = 0;
- return 0;
+ copy = nullptr;
+ return nullptr;
case EV_enum:
copy->u.ulval = this->pd_ev->u.ulval;
break;
@@ -2731,14 +2731,14 @@ AST_Expression::coerce (AST_Expression::ExprType t)
{
AST_ExprValue *ev = coerce_value (copy, t);
- if (ev == 0)
+ if (ev == nullptr)
{
// coerce_value() will either return 'copy' or
// return 0 without freeing 'copy'. It's
// deleted here instead of putting a zillion
// delete statments inside coerce_value().
delete copy;
- copy = 0;
+ copy = nullptr;
}
return ev;
@@ -2750,7 +2750,7 @@ AST_Expression::AST_ExprValue *
AST_Expression::eval_internal (AST_Expression::EvalKind ek)
{
// Already evaluated?
- if (this->pd_ev != 0)
+ if (this->pd_ev != nullptr)
{
return eval_kind (this->pd_ev,
ek);
@@ -2789,10 +2789,10 @@ AST_Expression::eval_internal (AST_Expression::EvalKind ek)
return eval_kind (this->pd_ev,
ek);
case EC_none:
- return 0;
+ return nullptr;
}
- return 0;
+ return nullptr;
}
// Public operations.
@@ -2809,7 +2809,7 @@ AST_Expression::evaluate (EvalKind ek)
// args. At this point, we have knowledge that we must be an
// enum constant, so we set the expression type here, rather
// than at the point of creation.
- if (ek == AST_Expression::EK_const && this->pd_n != 0)
+ if (ek == AST_Expression::EK_const && this->pd_n != nullptr)
{
this->pd_ev->et = AST_Expression::EV_enum;
}
@@ -2827,7 +2827,7 @@ AST_Expression::operator== (AST_Expression *vc)
this->evaluate (EK_const);
vc->evaluate (EK_const);
- if (pd_ev == 0 || vc->ev() == 0)
+ if (pd_ev == nullptr || vc->ev() == nullptr)
{
return false;
}
@@ -2894,7 +2894,7 @@ AST_Expression::compare (AST_Expression *vc)
this->evaluate (EK_const);
vc->evaluate (EK_const);
- if (this->pd_ev == 0 || vc->ev () == 0)
+ if (this->pd_ev == nullptr || vc->ev () == nullptr)
{
return false;
}
@@ -2927,11 +2927,11 @@ AST_Expression::compare (AST_Expression *vc)
case EV_bool:
return this->pd_ev->u.lval == vc->ev ()->u.lval;
case EV_string:
- if (this->pd_ev->u.strval == 0)
+ if (this->pd_ev->u.strval == nullptr)
{
- return vc->ev ()->u.strval == 0;
+ return vc->ev ()->u.strval == nullptr;
}
- else if (vc->ev ()->u.strval == 0)
+ else if (vc->ev ()->u.strval == nullptr)
{
return false;
}
@@ -2960,13 +2960,13 @@ AST_Expression::compare (AST_Expression *vc)
}
AST_Decl *
-AST_Expression::get_tdef (void) const
+AST_Expression::get_tdef () const
{
return this->tdef;
}
AST_Param_Holder *
-AST_Expression::param_holder (void) const
+AST_Expression::param_holder () const
{
return this->param_holder_;
}
@@ -2980,14 +2980,14 @@ dump_binary_expr (ACE_OSTREAM_TYPE &o,
AST_Expression *n1,
AST_Expression *n2)
{
- if (n1 != 0)
+ if (n1 != nullptr)
{
n1->dump (o);
}
o << " " << s << " ";
- if (n2 != 0)
+ if (n2 != nullptr)
{
n2->dump (o);
}
@@ -3040,7 +3040,7 @@ dump_expr_val (ACE_OSTREAM_TYPE &o, AST_Expression::AST_ExprValue *ev)
o << (ev->u.bval == true ? "TRUE" : "FALSE");
break;
case AST_Expression::EV_string:
- if (ev->u.strval != 0)
+ if (ev->u.strval != nullptr)
{
ev->u.strval->dump (o);
}
@@ -3069,7 +3069,7 @@ void
AST_Expression::dump (ACE_OSTREAM_TYPE &o)
{
// See if it was a constant or was evaluated already.
- if (this->pd_ev != 0)
+ if (this->pd_ev != nullptr)
{
dump_expr_val (o, this->pd_ev);
return;
@@ -3178,58 +3178,58 @@ AST_Expression::ast_accept (ast_visitor *visitor)
}
void
-AST_Expression::destroy (void)
+AST_Expression::destroy ()
{
- if (0 != this->pd_ev)
+ if (nullptr != this->pd_ev)
{
if (EV_string == this->pd_ev->et)
{
this->pd_ev->u.strval->destroy ();
delete this->pd_ev->u.strval;
- this->pd_ev->u.strval = 0;
+ this->pd_ev->u.strval = nullptr;
}
else if (EV_wstring == this->pd_ev->et)
{
ACE::strdelete (this->pd_ev->u.wstrval);
- this->pd_ev->u.wstrval = 0;
+ this->pd_ev->u.wstrval = nullptr;
}
}
delete this->pd_ev;
- this->pd_ev = 0;
+ this->pd_ev = nullptr;
- if (this->pd_v1 != 0)
+ if (this->pd_v1 != nullptr)
{
this->pd_v1->destroy ();
}
delete this->pd_v1;
- this->pd_v1 = 0;
+ this->pd_v1 = nullptr;
- if (this->pd_v2 != 0)
+ if (this->pd_v2 != nullptr)
{
this->pd_v2->destroy ();
}
delete this->pd_v2;
- this->pd_v2 = 0;
+ this->pd_v2 = nullptr;
- if (this->pd_n != 0)
+ if (this->pd_n != nullptr)
{
this->pd_n->destroy ();
}
delete this->pd_n;
- this->pd_n = 0;
+ this->pd_n = nullptr;
- if (this->param_holder_ != 0)
+ if (this->param_holder_ != nullptr)
{
this->param_holder_->destroy ();
delete this->param_holder_;
- this->param_holder_ = 0;
+ this->param_holder_ = nullptr;
}
}
// Data accessors.
UTL_Scope *
-AST_Expression::defined_in (void)
+AST_Expression::defined_in ()
{
return this->pd_defined_in;
}
@@ -3241,7 +3241,7 @@ AST_Expression::set_defined_in (UTL_Scope *d)
}
long
-AST_Expression::line (void)
+AST_Expression::line ()
{
return this->pd_line;
}
@@ -3253,7 +3253,7 @@ AST_Expression::set_line (long l)
}
UTL_String *
-AST_Expression::file_name (void)
+AST_Expression::file_name ()
{
return this->pd_file_name;
}
@@ -3265,13 +3265,13 @@ AST_Expression::set_file_name (UTL_String *f)
}
AST_Expression::ExprComb
-AST_Expression::ec (void)
+AST_Expression::ec ()
{
return this->pd_ec;
}
AST_Expression::AST_ExprValue *
-AST_Expression::ev (void)
+AST_Expression::ev ()
{
return this->pd_ev;
}
@@ -3284,7 +3284,7 @@ AST_Expression::set_ev (AST_Expression::AST_ExprValue *new_ev)
}
AST_Expression *
-AST_Expression::v1 (void)
+AST_Expression::v1 ()
{
return this->pd_v1;
}
@@ -3296,7 +3296,7 @@ AST_Expression::set_v1 (AST_Expression *e)
}
AST_Expression *
-AST_Expression::v2 (void)
+AST_Expression::v2 ()
{
return this->pd_v2;
}
@@ -3308,7 +3308,7 @@ AST_Expression::set_v2 (AST_Expression *e)
}
UTL_ScopedName *
-AST_Expression::n (void)
+AST_Expression::n ()
{
return this->pd_n;
}
diff --git a/TAO/TAO_IDL/ast/ast_extended_port.cpp b/TAO/TAO_IDL/ast/ast_extended_port.cpp
index 66a755dcb0e..9ccf53c71c7 100644
--- a/TAO/TAO_IDL/ast/ast_extended_port.cpp
+++ b/TAO/TAO_IDL/ast/ast_extended_port.cpp
@@ -21,18 +21,18 @@ AST_Extended_Port::AST_Extended_Port (
{
}
-AST_Extended_Port::~AST_Extended_Port (void)
+AST_Extended_Port::~AST_Extended_Port ()
{
}
AST_PortType *
-AST_Extended_Port::port_type (void) const
+AST_Extended_Port::port_type () const
{
- return AST_PortType::narrow_from_decl (this->field_type ());
+ return dynamic_cast<AST_PortType*> (this->field_type ());
}
void
-AST_Extended_Port::destroy (void)
+AST_Extended_Port::destroy ()
{
this->AST_Field::destroy ();
}
@@ -50,6 +50,3 @@ AST_Extended_Port::ast_accept (ast_visitor *visitor)
{
return visitor->visit_extended_port (this);
}
-
-IMPL_NARROW_FROM_DECL (AST_Extended_Port)
-
diff --git a/TAO/TAO_IDL/ast/ast_factory.cpp b/TAO/TAO_IDL/ast/ast_factory.cpp
index 15b779fbd10..de340aaaea0 100644
--- a/TAO/TAO_IDL/ast/ast_factory.cpp
+++ b/TAO/TAO_IDL/ast/ast_factory.cpp
@@ -86,34 +86,34 @@ AST_Factory::AST_Factory (UTL_ScopedName *n)
AST_Decl (AST_Decl::NT_factory,
n),
UTL_Scope (AST_Decl::NT_factory),
- pd_exceptions (0),
+ pd_exceptions (nullptr),
pd_n_exceptions (0),
argument_count_ (-1),
has_native_ (0)
{
}
-AST_Factory::~AST_Factory (void)
+AST_Factory::~AST_Factory ()
{
}
// Public operations.
UTL_ExceptList *
-AST_Factory::exceptions (void)
+AST_Factory::exceptions ()
{
return this->pd_exceptions;
}
int
-AST_Factory::n_exceptions (void)
+AST_Factory::n_exceptions ()
{
return this->pd_n_exceptions;
}
// Return the member count.
int
-AST_Factory::argument_count (void)
+AST_Factory::argument_count ()
{
this->compute_argument_attr ();
@@ -122,7 +122,7 @@ AST_Factory::argument_count (void)
// Return if any argument or the return type is a <native> type.
int
-AST_Factory::has_native (void)
+AST_Factory::has_native ()
{
this->compute_argument_attr ();
@@ -130,12 +130,12 @@ AST_Factory::has_native (void)
}
void
-AST_Factory::destroy (void)
+AST_Factory::destroy ()
{
- if (0 != this->pd_exceptions)
+ if (nullptr != this->pd_exceptions)
{
this->pd_exceptions->destroy ();
- this->pd_exceptions = 0;
+ this->pd_exceptions = nullptr;
}
this->AST_Decl::destroy ();
@@ -145,7 +145,7 @@ AST_Factory::destroy (void)
UTL_ExceptList *
AST_Factory::be_add_exceptions (UTL_ExceptList *t)
{
- if (this->pd_exceptions != 0)
+ if (this->pd_exceptions != nullptr)
{
idl_global->err ()->error1 (UTL_Error::EIDL_ILLEGAL_RAISES,
this);
@@ -153,7 +153,7 @@ AST_Factory::be_add_exceptions (UTL_ExceptList *t)
else
{
this->pd_exceptions = t;
- this->pd_n_exceptions = (t == 0 ? 0 : t->length ());
+ this->pd_n_exceptions = (t == nullptr ? 0 : t->length ());
}
return this->pd_exceptions;
@@ -163,16 +163,16 @@ AST_Factory::be_add_exceptions (UTL_ExceptList *t)
// Compute total number of members.
int
-AST_Factory::compute_argument_attr (void)
+AST_Factory::compute_argument_attr ()
{
if (this->argument_count_ != -1)
{
return 0;
}
- AST_Decl *d = 0;
- AST_Type *type = 0;
- AST_Argument *arg = 0;
+ AST_Decl *d = nullptr;
+ AST_Type *type = nullptr;
+ AST_Argument *arg = nullptr;
this->argument_count_ = 0;
@@ -190,9 +190,9 @@ AST_Factory::compute_argument_attr (void)
{
this->argument_count_++;
- arg = AST_Argument::narrow_from_decl (d);
+ arg = dynamic_cast<AST_Argument*> (d);
- type = AST_Type::narrow_from_decl (arg->field_type ());
+ type = dynamic_cast<AST_Type*> (arg->field_type ());
if (type->node_type () == AST_Decl::NT_native)
{
@@ -208,19 +208,17 @@ AST_Factory::compute_argument_attr (void)
AST_Argument *
AST_Factory::fe_add_argument (AST_Argument *t)
{
- return
- AST_Argument::narrow_from_decl (
- this->fe_add_ref_decl (t));
+ return dynamic_cast<AST_Argument*> (this->fe_add_ref_decl (t));
}
UTL_NameList *
AST_Factory::fe_add_exceptions (UTL_NameList *t)
{
- UTL_ScopedName *nl_n = 0;
- AST_Type *fe = 0;
- AST_Decl *d = 0;
+ UTL_ScopedName *nl_n = nullptr;
+ AST_Type *fe = nullptr;
+ AST_Decl *d = nullptr;
- this->pd_exceptions = 0;
+ this->pd_exceptions = nullptr;
for (UTL_NamelistActiveIterator nl_i (t);
!nl_i.is_done ();
@@ -230,10 +228,10 @@ AST_Factory::fe_add_exceptions (UTL_NameList *t)
d = this->defined_in ()->lookup_by_name (nl_n, true);
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error (nl_n);
- return 0;
+ return nullptr;
}
AST_Decl::NodeType nt = d->node_type ();
@@ -243,17 +241,17 @@ AST_Factory::fe_add_exceptions (UTL_NameList *t)
{
idl_global->err ()->error1 (UTL_Error::EIDL_ILLEGAL_RAISES,
this);
- return 0;
+ return nullptr;
}
- fe = AST_Type::narrow_from_decl (d);
+ fe = dynamic_cast<AST_Type*> (d);
- UTL_ExceptList *el = 0;
+ UTL_ExceptList *el = nullptr;
ACE_NEW_RETURN (el,
- UTL_ExceptList (fe, 0),
- 0);
+ UTL_ExceptList (fe, nullptr),
+ nullptr);
- if (this->pd_exceptions == 0)
+ if (this->pd_exceptions == nullptr)
{
this->pd_exceptions = el;
}
@@ -270,7 +268,7 @@ AST_Factory::fe_add_exceptions (UTL_NameList *t)
// each place it is passed in.
t->destroy ();
delete t;
- t = 0;
+ t = nullptr;
return t;
}
@@ -279,7 +277,7 @@ AST_Factory::fe_add_exceptions (UTL_NameList *t)
void
AST_Factory::dump (ACE_OSTREAM_TYPE &o)
{
- AST_Decl *d = 0;
+ AST_Decl *d = nullptr;
this->dump_i (o, "factory ");
this->local_name ()->dump (o);
@@ -307,7 +305,3 @@ AST_Factory::ast_accept (ast_visitor *visitor)
{
return visitor->visit_factory (this);
}
-
-IMPL_NARROW_FROM_DECL(AST_Factory)
-IMPL_NARROW_FROM_SCOPE(AST_Factory)
-
diff --git a/TAO/TAO_IDL/ast/ast_field.cpp b/TAO/TAO_IDL/ast/ast_field.cpp
index 15f5d97b957..bc0ea1e35c8 100644
--- a/TAO/TAO_IDL/ast/ast_field.cpp
+++ b/TAO/TAO_IDL/ast/ast_field.cpp
@@ -107,8 +107,7 @@ AST_Field::AST_Field (AST_Type *ft,
if (fnt == AST_Decl::NT_param_holder)
{
- AST_Param_Holder *ph =
- AST_Param_Holder::narrow_from_decl (ft);
+ AST_Param_Holder *ph = dynamic_cast<AST_Param_Holder*> (ft);
if (ph->info ()->type_ == AST_Decl::NT_const)
{
@@ -140,8 +139,7 @@ AST_Field::AST_Field (AST_Decl::NodeType nt,
if (fnt == AST_Decl::NT_param_holder)
{
- AST_Param_Holder *ph =
- AST_Param_Holder::narrow_from_decl (ft);
+ AST_Param_Holder *ph = dynamic_cast<AST_Param_Holder*> (ft);
if (ph->info ()->type_ == AST_Decl::NT_const)
{
@@ -163,7 +161,7 @@ AST_Field::AST_Field (
// be an issue here.
}
-AST_Field::~AST_Field (void)
+AST_Field::~AST_Field ()
{
}
@@ -198,26 +196,26 @@ AST_Field::ast_accept (ast_visitor *visitor)
}
void
-AST_Field::destroy (void)
+AST_Field::destroy ()
{
if (this->owns_base_type_ && this->ref_type_)
{
this->ref_type_->destroy ();
delete this->ref_type_;
- this->ref_type_ = 0;
+ this->ref_type_ = nullptr;
}
this->AST_Decl::destroy ();
}
AST_Type *
-AST_Field::field_type (void) const
+AST_Field::field_type () const
{
return this->ref_type_;
}
AST_Field::Visibility
-AST_Field::visibility (void) const
+AST_Field::visibility () const
{
return this->visibility_;
}
@@ -229,13 +227,11 @@ AST_Field::visibility (AST_Field::Visibility val)
}
int
-AST_Field::contains_wstring (void)
+AST_Field::contains_wstring ()
{
return this->ref_type_->contains_wstring ();
}
-IMPL_NARROW_FROM_DECL(AST_Field)
-
bool AST_Field::annotatable () const
{
return true;
diff --git a/TAO/TAO_IDL/ast/ast_finder.cpp b/TAO/TAO_IDL/ast/ast_finder.cpp
index 5945fdb228c..f745c3362a5 100644
--- a/TAO/TAO_IDL/ast/ast_finder.cpp
+++ b/TAO/TAO_IDL/ast/ast_finder.cpp
@@ -16,12 +16,12 @@ AST_Finder::AST_Finder (UTL_ScopedName *n)
{
}
-AST_Finder::~AST_Finder (void)
+AST_Finder::~AST_Finder ()
{
}
void
-AST_Finder::destroy (void)
+AST_Finder::destroy ()
{
this->AST_Factory::destroy ();
}
@@ -30,7 +30,7 @@ AST_Finder::destroy (void)
void
AST_Finder::dump (ACE_OSTREAM_TYPE &o)
{
- AST_Decl *d = 0;
+ AST_Decl *d = nullptr;
this->dump_i (o, "finder ");
this->local_name ()->dump (o);
@@ -58,7 +58,3 @@ AST_Finder::ast_accept (ast_visitor *visitor)
{
return visitor->visit_finder (this);
}
-
-IMPL_NARROW_FROM_DECL(AST_Finder)
-IMPL_NARROW_FROM_SCOPE(AST_Finder)
-
diff --git a/TAO/TAO_IDL/ast/ast_fixed.cpp b/TAO/TAO_IDL/ast/ast_fixed.cpp
index ded0d58b581..3048fd0f0bc 100644
--- a/TAO/TAO_IDL/ast/ast_fixed.cpp
+++ b/TAO/TAO_IDL/ast/ast_fixed.cpp
@@ -31,11 +31,11 @@ void AST_Fixed::destroy ()
{
pd_digits->destroy ();
delete pd_digits;
- pd_digits = 0;
+ pd_digits = nullptr;
pd_scale->destroy ();
delete pd_scale;
- pd_scale = 0;
+ pd_scale = nullptr;
AST_ConcreteType::destroy ();
}
@@ -54,5 +54,3 @@ AST_Expression *AST_Fixed::scale ()
{
return pd_scale;
}
-
-IMPL_NARROW_FROM_DECL(AST_Fixed)
diff --git a/TAO/TAO_IDL/ast/ast_generator.cpp b/TAO/TAO_IDL/ast/ast_generator.cpp
index 0c1c673aca6..0e08c14098d 100644
--- a/TAO/TAO_IDL/ast/ast_generator.cpp
+++ b/TAO/TAO_IDL/ast/ast_generator.cpp
@@ -118,10 +118,10 @@ AST_PredefinedType *
AST_Generator::create_predefined_type (AST_PredefinedType::PredefinedType t,
UTL_ScopedName *n)
{
- AST_PredefinedType *retval = 0;
+ AST_PredefinedType *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_PredefinedType (t, n),
- 0);
+ nullptr);
return retval;
}
@@ -130,7 +130,7 @@ AST_Module *
AST_Generator::create_module (UTL_Scope *s,
UTL_ScopedName *n)
{
- AST_Module *retval = 0;
+ AST_Module *retval = nullptr;
// Check for another module of the same name in the scope.
for (UTL_ScopeActiveIterator iter (s, UTL_Scope::IK_decls);
@@ -139,12 +139,12 @@ AST_Generator::create_module (UTL_Scope *s,
{
// Can't just check node type here, since it could be a
// template module or template module instantiation.
- AST_Module *m = AST_Module::narrow_from_decl (iter.item ());
+ AST_Module *m = dynamic_cast<AST_Module*> (iter.item ());
if (m && m->local_name ()->compare (n->last_component ()))
{
// Create this new module with referance to the
// "first" previous module found in scope.
- ACE_NEW_RETURN (retval, AST_Module (n, m), 0);
+ ACE_NEW_RETURN (retval, AST_Module (n, m), nullptr);
retval->prefix (const_cast<char *> (m->prefix ()));
return retval;
}
@@ -155,8 +155,7 @@ AST_Generator::create_module (UTL_Scope *s,
// is itself a module, and has been previously opened, any
// of the previous openings may contain a previous opening
// of the module we're creating.
- // AST_Module *prev_module = AST_Module::narrow_from_scope (s);
- AST_Module *prev_module = AST_Module::narrow_from_scope (s);
+ AST_Module *prev_module = dynamic_cast<AST_Module*> (s);
if (prev_module)
{
while (!!(prev_module= prev_module->previous_opening ()))
@@ -165,12 +164,12 @@ AST_Generator::create_module (UTL_Scope *s,
!iter.is_done ();
iter.next ())
{
- AST_Module *m = AST_Module::narrow_from_decl (iter.item ());
+ AST_Module *m = dynamic_cast<AST_Module*> (iter.item ());
if (m && m->local_name ()->compare (n->last_component ()))
{
// Create this new module with referance to the
// "first" previous module found in scope.
- ACE_NEW_RETURN (retval, AST_Module (n, m), 0);
+ ACE_NEW_RETURN (retval, AST_Module (n, m), nullptr);
return retval;
}
}
@@ -178,17 +177,17 @@ AST_Generator::create_module (UTL_Scope *s,
}
// There is no previous module to this one
- ACE_NEW_RETURN (retval, AST_Module (n), 0);
+ ACE_NEW_RETURN (retval, AST_Module (n), nullptr);
return retval;
}
AST_Root *
AST_Generator::create_root (UTL_ScopedName *n)
{
- AST_Root *retval = 0;
+ AST_Root *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Root (n),
- 0);
+ nullptr);
return retval;
}
@@ -202,7 +201,7 @@ AST_Generator::create_interface (UTL_ScopedName *n,
bool is_local,
bool is_abstract)
{
- AST_Interface *retval = 0;
+ AST_Interface *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Interface (n,
inherits,
@@ -211,7 +210,7 @@ AST_Generator::create_interface (UTL_ScopedName *n,
n_inherits_flat,
is_local,
is_abstract),
- 0);
+ nullptr);
return retval;
}
@@ -223,16 +222,16 @@ AST_Generator::create_interface_fwd (UTL_ScopedName *n,
{
AST_Interface
*full_defn = this->create_interface (n,
- 0,
+ nullptr,
-1,
- 0,
+ nullptr,
0,
is_local,
is_abstract);
- AST_InterfaceFwd *retval = 0;
+ AST_InterfaceFwd *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_InterfaceFwd (full_defn, n),
- 0);
+ nullptr);
full_defn->fwd_decl (retval);
return retval;
@@ -252,7 +251,7 @@ AST_Generator::create_valuetype (UTL_ScopedName *n,
bool is_truncatable,
bool is_custom)
{
- AST_ValueType *retval = 0;
+ AST_ValueType *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_ValueType (n,
inherits,
@@ -266,10 +265,10 @@ AST_Generator::create_valuetype (UTL_ScopedName *n,
is_abstract,
is_truncatable,
is_custom),
- 0);
+ nullptr);
// The following helps with OBV_ namespace generation.
- AST_Module *m = AST_Module::narrow_from_scope (retval->defined_in ());
+ AST_Module *m = dynamic_cast<AST_Module*> (retval->defined_in ());
if (m)
{
m->set_has_nested_valuetype ();
@@ -283,23 +282,23 @@ AST_Generator::create_valuetype_fwd (UTL_ScopedName *n,
bool is_abstract)
{
AST_ValueType *full_defn = this->create_valuetype (n,
- 0,
+ nullptr,
-1,
+ nullptr,
+ nullptr,
0,
+ nullptr,
0,
- 0,
- 0,
- 0,
- 0,
+ nullptr,
is_abstract,
false,
false);
- AST_ValueTypeFwd *retval = 0;
+ AST_ValueTypeFwd *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_ValueTypeFwd (full_defn,
n),
- 0);
+ nullptr);
full_defn->fwd_decl (retval);
return retval;
@@ -319,7 +318,7 @@ AST_Generator::create_eventtype (UTL_ScopedName *n,
bool is_truncatable,
bool is_custom)
{
- AST_EventType *retval = 0;
+ AST_EventType *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_EventType (n,
inherits,
@@ -333,12 +332,12 @@ AST_Generator::create_eventtype (UTL_ScopedName *n,
is_abstract,
is_truncatable,
is_custom),
- 0);
+ nullptr);
// The following helps with OBV_ namespace generation.
- AST_Module *m = AST_Module::narrow_from_scope (retval->defined_in ());
+ AST_Module *m = dynamic_cast<AST_Module*> (retval->defined_in ());
- if (m != 0)
+ if (m != nullptr)
{
m->set_has_nested_valuetype ();
}
@@ -351,23 +350,23 @@ AST_Generator::create_eventtype_fwd (UTL_ScopedName *n,
bool is_abstract)
{
AST_EventType *full_defn = this->create_eventtype (n,
- 0,
+ nullptr,
-1,
+ nullptr,
+ nullptr,
0,
+ nullptr,
0,
- 0,
- 0,
- 0,
- 0,
+ nullptr,
is_abstract,
false,
false);
- AST_EventTypeFwd *retval = 0;
+ AST_EventTypeFwd *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_EventTypeFwd (full_defn,
n),
- 0);
+ nullptr);
full_defn->fwd_decl (retval);
return retval;
@@ -381,7 +380,7 @@ AST_Generator::create_component (UTL_ScopedName *n,
AST_Interface **supports_flat,
long n_supports_flat)
{
- AST_Component *retval = 0;
+ AST_Component *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Component (n,
base_component,
@@ -389,7 +388,7 @@ AST_Generator::create_component (UTL_ScopedName *n,
n_supports,
supports_flat,
n_supports_flat),
- 0);
+ nullptr);
return retval;
}
@@ -398,17 +397,17 @@ AST_ComponentFwd *
AST_Generator::create_component_fwd (UTL_ScopedName *n)
{
AST_Component *full_defn = this->create_component (n,
- 0,
- 0,
+ nullptr,
+ nullptr,
-1,
- 0,
+ nullptr,
0);
- AST_ComponentFwd *retval = 0;
+ AST_ComponentFwd *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_ComponentFwd (full_defn,
n),
- 0);
+ nullptr);
full_defn->fwd_decl (retval);
return retval;
@@ -424,7 +423,7 @@ AST_Generator::create_home (UTL_ScopedName *n,
AST_Interface **supports_flat,
long n_supports_flat)
{
- AST_Home *retval = 0;
+ AST_Home *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Home (n,
base_home,
@@ -434,7 +433,7 @@ AST_Generator::create_home (UTL_ScopedName *n,
n_supports,
supports_flat,
n_supports_flat),
- 0);
+ nullptr);
return retval;
}
@@ -444,12 +443,12 @@ AST_Generator::create_exception (UTL_ScopedName *n,
bool is_local,
bool is_abstract)
{
- AST_Exception *retval = 0;
+ AST_Exception *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Exception (n,
is_local,
is_abstract),
- 0);
+ nullptr);
return retval;
}
@@ -459,12 +458,12 @@ AST_Generator::create_structure (UTL_ScopedName *n,
bool is_local,
bool is_abstract)
{
- AST_Structure *retval = 0;
+ AST_Structure *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Structure (n,
is_local,
is_abstract),
- 0);
+ nullptr);
return retval;
}
@@ -475,11 +474,11 @@ AST_Generator::create_structure_fwd (UTL_ScopedName *n)
AST_Structure *full_defn = this->create_structure (n,
false,
false);
- AST_StructureFwd *retval = 0;
+ AST_StructureFwd *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_StructureFwd (full_defn,
n),
- 0);
+ nullptr);
full_defn->fwd_decl (retval);
return retval;
@@ -490,12 +489,12 @@ AST_Generator::create_enum (UTL_ScopedName *n,
bool is_local,
bool is_abstract)
{
- AST_Enum *retval = 0;
+ AST_Enum *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Enum (n,
is_local,
is_abstract),
- 0);
+ nullptr);
return retval;
}
@@ -507,14 +506,14 @@ AST_Generator::create_operation (AST_Type *rt,
bool is_local,
bool is_abstract)
{
- AST_Operation *retval = 0;
+ AST_Operation *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Operation (rt,
fl,
n,
is_local,
is_abstract),
- 0);
+ nullptr);
return retval;
}
@@ -524,12 +523,12 @@ AST_Generator::create_field (AST_Type *ft,
UTL_ScopedName *n,
AST_Field::Visibility vis)
{
- AST_Field *retval = 0;
+ AST_Field *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Field (ft,
n,
vis),
- 0);
+ nullptr);
return retval;
}
@@ -539,12 +538,12 @@ AST_Generator::create_argument (AST_Argument::Direction d,
AST_Type *ft,
UTL_ScopedName *n)
{
- AST_Argument *retval = 0;
+ AST_Argument *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Argument (d,
ft,
n),
- 0);
+ nullptr);
return retval;
}
@@ -556,14 +555,14 @@ AST_Generator::create_attribute (bool ro,
bool is_local,
bool is_abstract)
{
- AST_Attribute *retval = 0;
+ AST_Attribute *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Attribute (ro,
ft,
n,
is_local,
is_abstract),
- 0);
+ nullptr);
return retval;
}
@@ -574,13 +573,13 @@ AST_Generator::create_union (AST_ConcreteType *dt,
bool is_local,
bool is_abstract)
{
- AST_Union *retval = 0;
+ AST_Union *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Union (dt,
n,
is_local,
is_abstract),
- 0);
+ nullptr);
return retval;
}
@@ -588,15 +587,15 @@ AST_Generator::create_union (AST_ConcreteType *dt,
AST_UnionFwd *
AST_Generator::create_union_fwd (UTL_ScopedName *n)
{
- AST_Union *full_defn = this->create_union (0,
+ AST_Union *full_defn = this->create_union (nullptr,
n,
false,
false);
- AST_UnionFwd *retval = 0;
+ AST_UnionFwd *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_UnionFwd (full_defn,
n),
- 0);
+ nullptr);
full_defn->fwd_decl (retval);
return retval;
@@ -607,12 +606,12 @@ AST_Generator::create_union_branch (UTL_LabelList *ll,
AST_Type *ft,
UTL_ScopedName *n)
{
- AST_UnionBranch *retval = 0;
+ AST_UnionBranch *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_UnionBranch (ll,
ft,
n),
- 0);
+ nullptr);
return retval;
}
@@ -621,11 +620,11 @@ AST_UnionLabel *
AST_Generator::create_union_label (AST_UnionLabel::UnionLabel ul,
AST_Expression *v)
{
- AST_UnionLabel *retval = 0;
+ AST_UnionLabel *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_UnionLabel (ul,
v),
- 0);
+ nullptr);
return retval;
}
@@ -635,12 +634,12 @@ AST_Generator::create_constant (AST_Expression::ExprType et,
AST_Expression *ev,
UTL_ScopedName *n)
{
- AST_Constant *retval = 0;
+ AST_Constant *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Constant (et,
ev,
n),
- 0);
+ nullptr);
return retval;
}
@@ -648,10 +647,10 @@ AST_Generator::create_constant (AST_Expression::ExprType et,
AST_Expression *
AST_Generator::create_expr (UTL_ScopedName *n)
{
- AST_Expression *retval = 0;
+ AST_Expression *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Expression (n),
- 0);
+ nullptr);
return retval;
}
@@ -660,11 +659,11 @@ AST_Expression *
AST_Generator::create_expr (AST_Expression *v,
AST_Expression::ExprType t)
{
- AST_Expression *retval = 0;
+ AST_Expression *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Expression (v,
t),
- 0);
+ nullptr);
return retval;
}
@@ -674,12 +673,12 @@ AST_Generator::create_expr (AST_Expression::ExprComb c,
AST_Expression *v1,
AST_Expression *v2)
{
- AST_Expression *retval = 0;
+ AST_Expression *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Expression (c,
v1,
v2),
- 0);
+ nullptr);
return retval;
}
@@ -687,10 +686,10 @@ AST_Generator::create_expr (AST_Expression::ExprComb c,
AST_Expression *
AST_Generator::create_expr (ACE_CDR::Long v)
{
- AST_Expression *retval = 0;
+ AST_Expression *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Expression (v),
- 0);
+ nullptr);
return retval;
}
@@ -698,10 +697,10 @@ AST_Generator::create_expr (ACE_CDR::Long v)
AST_Expression *
AST_Generator::create_expr (ACE_CDR::LongLong l)
{
- AST_Expression *retval = 0;
+ AST_Expression *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Expression (l),
- 0);
+ nullptr);
return retval;
}
@@ -709,10 +708,10 @@ AST_Generator::create_expr (ACE_CDR::LongLong l)
AST_Expression *
AST_Generator::create_expr (ACE_CDR::Boolean b)
{
- AST_Expression *retval = 0;
+ AST_Expression *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Expression (b),
- 0);
+ nullptr);
return retval;
}
@@ -720,10 +719,10 @@ AST_Generator::create_expr (ACE_CDR::Boolean b)
AST_Expression *
AST_Generator::create_expr (ACE_CDR::ULong v)
{
- AST_Expression *retval = 0;
+ AST_Expression *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Expression (v),
- 0);
+ nullptr);
return retval;
}
@@ -731,10 +730,10 @@ AST_Generator::create_expr (ACE_CDR::ULong v)
AST_Expression *
AST_Generator::create_expr (ACE_CDR::ULongLong l)
{
- AST_Expression *retval = 0;
+ AST_Expression *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Expression (l),
- 0);
+ nullptr);
return retval;
}
@@ -743,10 +742,10 @@ AST_Expression *
AST_Generator::create_expr (ACE_CDR::ULong v,
AST_Expression::ExprType t)
{
- AST_Expression *retval = 0;
+ AST_Expression *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Expression (v, t),
- 0);
+ nullptr);
return retval;
}
@@ -754,10 +753,10 @@ AST_Generator::create_expr (ACE_CDR::ULong v,
AST_Expression *
AST_Generator::create_expr (UTL_String *s)
{
- AST_Expression *retval = 0;
+ AST_Expression *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Expression (s),
- 0);
+ nullptr);
return retval;
}
@@ -765,10 +764,10 @@ AST_Generator::create_expr (UTL_String *s)
AST_Expression *
AST_Generator::create_expr (ACE_CDR::Char c)
{
- AST_Expression *retval = 0;
+ AST_Expression *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Expression (c),
- 0);
+ nullptr);
return retval;
}
@@ -776,10 +775,10 @@ AST_Generator::create_expr (ACE_CDR::Char c)
AST_Expression *
AST_Generator::create_expr (ACE_OutputCDR::from_wchar wc)
{
- AST_Expression *retval = 0;
+ AST_Expression *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Expression (wc),
- 0);
+ nullptr);
return retval;
}
@@ -787,10 +786,10 @@ AST_Generator::create_expr (ACE_OutputCDR::from_wchar wc)
AST_Expression *
AST_Generator::create_expr (char *s)
{
- AST_Expression *retval = 0;
+ AST_Expression *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Expression (s),
- 0);
+ nullptr);
return retval;
}
@@ -798,10 +797,10 @@ AST_Generator::create_expr (char *s)
AST_Expression *
AST_Generator::create_expr (ACE_CDR::Double d)
{
- AST_Expression *retval = 0;
+ AST_Expression *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Expression (d),
- 0);
+ nullptr);
return retval;
}
@@ -809,10 +808,10 @@ AST_Generator::create_expr (ACE_CDR::Double d)
AST_Expression *
AST_Generator::create_expr (const ACE_CDR::Fixed &f)
{
- AST_Expression *retval = 0;
+ AST_Expression *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Expression (f),
- 0);
+ nullptr);
return retval;
}
@@ -821,11 +820,11 @@ AST_EnumVal *
AST_Generator::create_enum_val (ACE_CDR::ULong v,
UTL_ScopedName *n)
{
- AST_EnumVal *retval = 0;
+ AST_EnumVal *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_EnumVal (v,
n),
- 0);
+ nullptr);
return retval;
}
@@ -837,14 +836,14 @@ AST_Generator::create_array (UTL_ScopedName *n,
bool is_local,
bool is_abstract)
{
- AST_Array *retval = 0;
+ AST_Array *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Array (n,
ndims,
dims,
is_local,
is_abstract),
- 0);
+ nullptr);
return retval;
}
@@ -856,14 +855,14 @@ AST_Generator::create_sequence (AST_Expression *ms,
bool is_local,
bool is_abstract)
{
- AST_Sequence *retval = 0;
+ AST_Sequence *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Sequence (ms,
bt,
n,
is_local,
is_abstract),
- 0);
+ nullptr);
return retval;
}
@@ -873,14 +872,14 @@ AST_Generator::create_string (AST_Expression *ms)
{
Identifier id ("string");
UTL_ScopedName n (&id,
- 0);
+ nullptr);
- AST_String *retval = 0;
+ AST_String *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_String (AST_Decl::NT_string,
&n,
ms),
- 0);
+ nullptr);
return retval;
}
@@ -892,18 +891,18 @@ AST_Generator::create_wstring (AST_Expression *ms)
? "string"
: "wstring");
UTL_ScopedName n (&id,
- 0);
+ nullptr);
AST_Decl::NodeType nt = sizeof (ACE_CDR::WChar) == 1
? AST_Decl::NT_string
: AST_Decl::NT_wstring;
- AST_String *retval = 0;
+ AST_String *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_String (nt,
&n,
ms,
sizeof (ACE_OS::WChar)),
- 0);
+ nullptr);
return retval;
}
@@ -913,9 +912,9 @@ AST_Generator::create_fixed (AST_Expression *digits,
AST_Expression *scale)
{
Identifier id ("fixed");
- UTL_ScopedName name (&id, 0);
- AST_Fixed *retval = 0;
- ACE_NEW_RETURN (retval, AST_Fixed (&name, digits, scale), 0);
+ UTL_ScopedName name (&id, nullptr);
+ AST_Fixed *retval = nullptr;
+ ACE_NEW_RETURN (retval, AST_Fixed (&name, digits, scale), nullptr);
return retval;
}
@@ -925,13 +924,13 @@ AST_Generator::create_typedef (AST_Type *bt,
bool is_local,
bool is_abstract)
{
- AST_Typedef *retval = 0;
+ AST_Typedef *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Typedef (bt,
n,
is_local,
is_abstract),
- 0);
+ nullptr);
return retval;
}
@@ -939,10 +938,10 @@ AST_Generator::create_typedef (AST_Type *bt,
AST_Native *
AST_Generator::create_native (UTL_ScopedName *n)
{
- AST_Native *retval = 0;
+ AST_Native *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Native (n),
- 0);
+ nullptr);
return retval;
}
@@ -950,10 +949,10 @@ AST_Generator::create_native (UTL_ScopedName *n)
AST_Factory *
AST_Generator::create_factory (UTL_ScopedName *n)
{
- AST_Factory *retval = 0;
+ AST_Factory *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Factory (n),
- 0);
+ nullptr);
return retval;
}
@@ -961,10 +960,10 @@ AST_Generator::create_factory (UTL_ScopedName *n)
AST_Finder *
AST_Generator::create_finder (UTL_ScopedName *n)
{
- AST_Finder *retval = 0;
+ AST_Finder *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Finder (n),
- 0);
+ nullptr);
return retval;
}
@@ -973,10 +972,10 @@ AST_ValueBox *
AST_Generator::create_valuebox (UTL_ScopedName *n,
AST_Type *boxed_type)
{
- AST_ValueBox *retval = 0;
+ AST_ValueBox *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_ValueBox (n, boxed_type),
- 0);
+ nullptr);
return retval;
}
@@ -984,10 +983,10 @@ AST_Generator::create_valuebox (UTL_ScopedName *n,
AST_PortType *
AST_Generator::create_porttype (UTL_ScopedName *n)
{
- AST_PortType *retval = 0;
+ AST_PortType *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_PortType (n),
- 0);
+ nullptr);
return retval;
}
@@ -996,11 +995,11 @@ AST_Provides *
AST_Generator::create_provides (UTL_ScopedName *n,
AST_Type *provides_type)
{
- AST_Provides *retval = 0;
+ AST_Provides *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Provides (n,
provides_type),
- 0);
+ nullptr);
return retval;
}
@@ -1010,12 +1009,12 @@ AST_Generator::create_uses (UTL_ScopedName *n,
AST_Type *uses_type,
bool is_multiple)
{
- AST_Uses *retval = 0;
+ AST_Uses *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Uses (n,
uses_type,
is_multiple),
- 0);
+ nullptr);
return retval;
}
@@ -1024,11 +1023,11 @@ AST_Publishes *
AST_Generator::create_publishes (UTL_ScopedName *n,
AST_Type *publishes_type)
{
- AST_Publishes *retval = 0;
+ AST_Publishes *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Publishes (n,
publishes_type),
- 0);
+ nullptr);
return retval;
}
@@ -1037,11 +1036,11 @@ AST_Emits *
AST_Generator::create_emits (UTL_ScopedName *n,
AST_Type *emits_type)
{
- AST_Emits *retval = 0;
+ AST_Emits *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Emits (n,
emits_type),
- 0);
+ nullptr);
return retval;
}
@@ -1049,11 +1048,11 @@ AST_Consumes *
AST_Generator::create_consumes (UTL_ScopedName *n,
AST_Type *consumes_type)
{
- AST_Consumes *retval = 0;
+ AST_Consumes *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Consumes (n,
consumes_type),
- 0);
+ nullptr);
return retval;
}
@@ -1063,11 +1062,11 @@ AST_Generator::create_extended_port (
UTL_ScopedName *n,
AST_PortType *porttype_ref)
{
- AST_Extended_Port *retval = 0;
+ AST_Extended_Port *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Extended_Port (n,
porttype_ref),
- 0);
+ nullptr);
return retval;
}
@@ -1077,11 +1076,11 @@ AST_Generator::create_mirror_port (
UTL_ScopedName *n,
AST_PortType *porttype_ref)
{
- AST_Mirror_Port *retval = 0;
+ AST_Mirror_Port *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Mirror_Port (n,
porttype_ref),
- 0);
+ nullptr);
return retval;
}
@@ -1091,11 +1090,11 @@ AST_Generator::create_connector (
UTL_ScopedName *n,
AST_Connector *base_connector)
{
- AST_Connector *retval = 0;
+ AST_Connector *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Connector (n,
base_connector),
- 0);
+ nullptr);
return retval;
}
@@ -1105,11 +1104,11 @@ AST_Generator::create_template_module (
UTL_ScopedName *n,
FE_Utils::T_PARAMLIST_INFO *template_params)
{
- AST_Template_Module *retval = 0;
+ AST_Template_Module *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Template_Module (n,
template_params),
- 0);
+ nullptr);
return retval;
}
@@ -1120,12 +1119,12 @@ AST_Generator::create_template_module_inst (
AST_Template_Module *ref,
FE_Utils::T_ARGLIST *template_args)
{
- AST_Template_Module_Inst *retval = 0;
+ AST_Template_Module_Inst *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Template_Module_Inst (n,
ref,
template_args),
- 0);
+ nullptr);
return retval;
}
@@ -1136,12 +1135,12 @@ AST_Generator::create_template_module_ref (
AST_Template_Module *ref,
UTL_StrList *param_refs)
{
- AST_Template_Module_Ref *retval = 0;
+ AST_Template_Module_Ref *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Template_Module_Ref (n,
ref,
param_refs),
- 0);
+ nullptr);
return retval;
}
@@ -1151,11 +1150,11 @@ AST_Generator::create_param_holder (
UTL_ScopedName *parameter_name,
FE_Utils::T_Param_Info *info)
{
- AST_Param_Holder *retval = 0;
+ AST_Param_Holder *retval = nullptr;
ACE_NEW_RETURN (retval,
AST_Param_Holder (parameter_name,
info),
- 0);
+ nullptr);
return retval;
}
@@ -1164,8 +1163,8 @@ AST_Annotation_Decl *
AST_Generator::create_annotation_decl (
UTL_ScopedName *name)
{
- AST_Annotation_Decl *retval = 0;
- ACE_NEW_RETURN (retval, AST_Annotation_Decl (name), 0);
+ AST_Annotation_Decl *retval = nullptr;
+ ACE_NEW_RETURN (retval, AST_Annotation_Decl (name), nullptr);
return retval;
}
@@ -1174,8 +1173,8 @@ AST_Generator::create_annotation_appl (
UTL_ScopedName *name,
AST_Annotation_Appl::Params *params)
{
- AST_Annotation_Appl *retval = 0;
- ACE_NEW_RETURN (retval, AST_Annotation_Appl (name, params), 0);
+ AST_Annotation_Appl *retval = nullptr;
+ ACE_NEW_RETURN (retval, AST_Annotation_Appl (name, params), nullptr);
return retval;
}
@@ -1185,7 +1184,7 @@ AST_Generator::create_annotation_member (
AST_Type *type,
UTL_ScopedName *name)
{
- AST_Annotation_Member *retval = 0;
- ACE_NEW_RETURN (retval, AST_Annotation_Member (expr_type, type, name), 0);
+ AST_Annotation_Member *retval = nullptr;
+ ACE_NEW_RETURN (retval, AST_Annotation_Member (expr_type, type, name), nullptr);
return retval;
}
diff --git a/TAO/TAO_IDL/ast/ast_home.cpp b/TAO/TAO_IDL/ast/ast_home.cpp
index b7e773b1fdd..e4a5bd8c72a 100644
--- a/TAO/TAO_IDL/ast/ast_home.cpp
+++ b/TAO/TAO_IDL/ast/ast_home.cpp
@@ -43,21 +43,20 @@ AST_Home::AST_Home (UTL_ScopedName *n,
{
FE_Utils::tmpl_mod_ref_check (this, base_home);
- AST_ValueType *pk =
- AST_ValueType::narrow_from_decl (primary_key);
+ AST_ValueType *pk = dynamic_cast<AST_ValueType*> (primary_key);
- if (pk != 0)
+ if (pk != nullptr)
{
idl_global->primary_keys ().enqueue_tail (pk);
}
- else if (primary_key != 0)
+ else if (primary_key != nullptr)
{
// If we are here, it's a param holder and we must destroy it.
this->owns_primary_key_ = true;
}
}
-AST_Home::~AST_Home (void)
+AST_Home::~AST_Home ()
{
}
@@ -65,9 +64,9 @@ AST_Decl *
AST_Home::look_in_inherited (UTL_ScopedName *e,
bool full_def_only)
{
- AST_Decl *d = 0;
+ AST_Decl *d = nullptr;
- if (this->pd_base_home != 0)
+ if (this->pd_base_home != nullptr)
{
d =
this->pd_base_home->lookup_by_name (e, full_def_only);
@@ -81,8 +80,8 @@ AST_Decl *
AST_Home::look_in_supported (UTL_ScopedName *e,
bool full_def_only)
{
- AST_Decl *d = 0;
- AST_Type **is = 0;
+ AST_Decl *d = nullptr;
+ AST_Type **is = nullptr;
long nis = -1;
// Can't look in an interface which was not yet defined.
@@ -90,7 +89,7 @@ AST_Home::look_in_supported (UTL_ScopedName *e,
{
idl_global->err ()->fwd_decl_lookup (this,
e);
- return 0;
+ return nullptr;
}
// OK, loop through supported interfaces.
@@ -107,12 +106,11 @@ AST_Home::look_in_supported (UTL_ScopedName *e,
continue;
}
- AST_Interface *i =
- AST_Interface::narrow_from_decl (*is);
+ AST_Interface *i = dynamic_cast<AST_Interface*> (*is);
d = (i)->lookup_by_name_r (e, full_def_only);
- if (d != 0)
+ if (d != nullptr)
{
break;
}
@@ -128,7 +126,7 @@ AST_Home::special_lookup (UTL_ScopedName *e,
{
AST_Decl *d = this->look_in_inherited (e, full_def_only);
- if (d == 0)
+ if (d == nullptr)
{
d = this->look_in_supported (e, full_def_only);
}
@@ -137,7 +135,7 @@ AST_Home::special_lookup (UTL_ScopedName *e,
}
AST_Home *
-AST_Home::base_home (void) const
+AST_Home::base_home () const
{
return this->pd_base_home;
}
@@ -146,28 +144,28 @@ AST_Home::base_home (void) const
// create separate visitors for homes in the back end.
AST_Type **
-AST_Home::supports (void) const
+AST_Home::supports () const
{
return
- this->pd_base_home == 0
+ this->pd_base_home == nullptr
? this->inherits ()
: this->inherits () + 1;
}
long
-AST_Home::n_supports (void) const
+AST_Home::n_supports () const
{
return this->n_inherits ();
}
AST_Component *
-AST_Home::managed_component (void) const
+AST_Home::managed_component () const
{
return this->pd_managed_component;
}
AST_Type *
-AST_Home::primary_key (void) const
+AST_Home::primary_key () const
{
return this->pd_primary_key;
}
@@ -181,13 +179,13 @@ AST_Home::transfer_scope_elements (AST_Interface *dst)
{
AST_Decl *d = src_iter.item ();
- Identifier *local_id = 0;
+ Identifier *local_id = nullptr;
ACE_NEW (local_id,
Identifier (d->local_name ()->get_string ()));
- UTL_ScopedName *last_segment = 0;
+ UTL_ScopedName *last_segment = nullptr;
ACE_NEW (last_segment,
UTL_ScopedName (local_id,
- 0));
+ nullptr));
UTL_ScopedName *full_name =
static_cast<UTL_ScopedName *> (dst->name ()->copy ());
full_name->nconc (last_segment);
@@ -201,20 +199,20 @@ AST_Home::transfer_scope_elements (AST_Interface *dst)
long const end = this->pd_decls_used;
for (long i = 0; i < end; ++i)
{
- this->pd_decls[i] = 0;
+ this->pd_decls[i] = nullptr;
--this->pd_decls_used;
}
}
void
-AST_Home::destroy (void)
+AST_Home::destroy ()
{
// If it's a param holder, it was created on the fly.
if (owns_primary_key_)
{
this->pd_primary_key->destroy ();
delete this->pd_primary_key;
- this->pd_primary_key = 0;
+ this->pd_primary_key = nullptr;
}
this->AST_Interface::destroy ();
@@ -229,20 +227,20 @@ AST_Home::dump (ACE_OSTREAM_TYPE &o)
this->dump_i (o, " ");
- if (this->pd_base_home != 0)
+ if (this->pd_base_home != nullptr)
{
this->dump_i (o, ": ");
this->pd_base_home->local_name ()->dump (o);
}
- if (this->pd_managed_component != 0)
+ if (this->pd_managed_component != nullptr)
{
this->dump_i (o, "\n");
this->dump_i (o, "manages ");
this->pd_managed_component->local_name ()->dump (o);
}
- if (this->pd_primary_key != 0)
+ if (this->pd_primary_key != nullptr)
{
this->dump_i (o, "\n");
this->dump_i (o, "primary key ");
@@ -266,21 +264,11 @@ AST_Home::ast_accept (ast_visitor *visitor)
AST_Factory *
AST_Home::fe_add_factory (AST_Factory *f)
{
- return
- AST_Factory::narrow_from_decl (
- this->fe_add_decl (f));
+ return dynamic_cast<AST_Factory*> (this->fe_add_decl (f));
}
AST_Finder *
AST_Home::fe_add_finder (AST_Finder *f)
{
- return
- AST_Finder::narrow_from_decl (
- this->fe_add_decl (f));
+ return dynamic_cast<AST_Finder*> (this->fe_add_decl (f));
}
-
- // Narrowing.
-
-IMPL_NARROW_FROM_DECL(AST_Home)
-IMPL_NARROW_FROM_SCOPE(AST_Home)
-
diff --git a/TAO/TAO_IDL/ast/ast_interface.cpp b/TAO/TAO_IDL/ast/ast_interface.cpp
index 9e3d780b418..0ded8e138f0 100644
--- a/TAO/TAO_IDL/ast/ast_interface.cpp
+++ b/TAO/TAO_IDL/ast/ast_interface.cpp
@@ -121,10 +121,10 @@ AST_Interface::AST_Interface (UTL_ScopedName *n,
pd_inherits_flat (ih_flat),
pd_n_inherits_flat (nih_flat),
home_equiv_ (false),
- fwd_decl_ (0),
+ fwd_decl_ (nullptr),
has_mixed_parentage_ (-1),
- ami_handler_ (0),
- ami4ccm_uses_ (0)
+ ami_handler_ (nullptr),
+ ami4ccm_uses_ (nullptr)
{
this->size_type (AST_Type::VARIABLE); // always the case
this->has_constructor (true); // always the case
@@ -145,7 +145,7 @@ AST_Interface::AST_Interface (UTL_ScopedName *n,
}
}
-AST_Interface::~AST_Interface (void)
+AST_Interface::~AST_Interface ()
{
}
@@ -167,7 +167,7 @@ AST_Interface::be_add_operation (AST_Operation *op)
}
bool
-AST_Interface::is_defined (void)
+AST_Interface::is_defined ()
{
// Each instance of a forward declared interface no
// longer has a redefined full definition, so we
@@ -176,7 +176,7 @@ AST_Interface::is_defined (void)
// is found, then we are defined for code generation
// purposes. See AST_InterfaceFwd::destroy() to
// see the difference for cleanup purposes.
- return (0 == this->fwd_decl_
+ return (nullptr == this->fwd_decl_
? this->pd_n_inherits >= 0
: this->fwd_decl_->is_defined ());
}
@@ -184,33 +184,25 @@ AST_Interface::is_defined (void)
AST_Constant *
AST_Interface::fe_add_constant (AST_Constant *t)
{
- return
- AST_Constant::narrow_from_decl (
- this->fe_add_decl (t));
+ return dynamic_cast<AST_Constant*> (this->fe_add_decl (t));
}
AST_Exception *
AST_Interface::fe_add_exception (AST_Exception *t)
{
- return
- AST_Exception::narrow_from_decl (
- this->fe_add_decl (t));
+ return dynamic_cast<AST_Exception*> (this->fe_add_decl (t));
}
AST_Attribute *
AST_Interface::fe_add_attribute (AST_Attribute *t)
{
- return
- AST_Attribute::narrow_from_decl (
- this->fe_add_decl (t));
+ return dynamic_cast<AST_Attribute*> (this->fe_add_decl (t));
}
AST_Operation *
AST_Interface::fe_add_operation (AST_Operation *t)
{
- return
- AST_Operation::narrow_from_decl (
- this->fe_add_decl (t));
+ return dynamic_cast<AST_Operation*> (this->fe_add_decl (t));
}
AST_Structure *
@@ -228,25 +220,19 @@ AST_Interface::fe_add_structure_fwd (AST_StructureFwd *t)
AST_Enum *
AST_Interface::fe_add_enum (AST_Enum *t)
{
- return
- AST_Enum::narrow_from_decl (
- this->fe_add_decl (t));
+ return dynamic_cast<AST_Enum*> (this->fe_add_decl (t));
}
AST_Union *
AST_Interface::fe_add_union (AST_Union *t)
{
- return
- AST_Union::narrow_from_decl (
- this->fe_add_full_struct_type (t));
+ return dynamic_cast<AST_Union*> (this->fe_add_full_struct_type (t));
}
AST_UnionFwd *
AST_Interface::fe_add_union_fwd (AST_UnionFwd *t)
{
- return
- AST_UnionFwd::narrow_from_decl (
- this->fe_add_fwd_struct_type (t));
+ return dynamic_cast<AST_UnionFwd*> (this->fe_add_fwd_struct_type (t));
}
// Add an AST_EnumVal node (an enumerator) to this scope.
@@ -256,26 +242,20 @@ AST_Interface::fe_add_union_fwd (AST_UnionFwd *t)
AST_EnumVal *
AST_Interface::fe_add_enum_val (AST_EnumVal *t)
{
- return
- AST_EnumVal::narrow_from_decl (
- this->fe_add_decl (t));
+ return dynamic_cast<AST_EnumVal*> (this->fe_add_decl (t));
}
// Add an AST_Typedef (a typedef) to the current scope.
AST_Typedef *
AST_Interface::fe_add_typedef (AST_Typedef *t)
{
- return
- AST_Typedef::narrow_from_decl (
- this->fe_add_ref_decl (t));
+ return dynamic_cast<AST_Typedef*> (this->fe_add_ref_decl (t));
}
AST_Native *
AST_Interface::fe_add_native (AST_Native *t)
{
- return
- AST_Native::narrow_from_decl (
- this->fe_add_decl (t));
+ return dynamic_cast<AST_Native*> (this->fe_add_decl (t));
}
// Dump this AST_Interface node to the ostream o.
@@ -324,22 +304,22 @@ void
AST_Interface::fwd_redefinition_helper (AST_Interface *&i,
UTL_Scope *s)
{
- if (i == 0)
+ if (i == nullptr)
{
return;
}
UTL_Scope *scope = i->defined_in ();
- const char *prefix_holder = 0;
+ const char *prefix_holder = nullptr;
// If our prefix is empty, we check to see if an ancestor has one.
- while (ACE_OS::strcmp (i->prefix (), "") == 0 && scope != 0)
+ while (ACE_OS::strcmp (i->prefix (), "") == 0 && scope != nullptr)
{
AST_Decl *parent = ScopeAsDecl (scope);
prefix_holder = parent->prefix ();
// We have reached global scope.
- if (prefix_holder == 0)
+ if (prefix_holder == nullptr)
{
break;
}
@@ -351,18 +331,18 @@ AST_Interface::fwd_redefinition_helper (AST_Interface *&i,
// Fwd redefinition should be in the same scope, so local
// lookup is all that's needed.
AST_Decl *d = s->lookup_by_name_local (i->local_name (), false);
- if (d != 0)
+ if (d != nullptr)
{
scope = d->defined_in ();
// If the lookup prefix is empty, we check to see if an ancestor has one.
- while (ACE_OS::strcmp (d->prefix (), "") == 0 && scope != 0)
+ while (ACE_OS::strcmp (d->prefix (), "") == 0 && scope != nullptr)
{
AST_Decl *parent = ScopeAsDecl (scope);
prefix_holder = parent->prefix ();
// We have reached global scope.
- if (prefix_holder == 0)
+ if (prefix_holder == nullptr)
{
break;
}
@@ -372,7 +352,7 @@ AST_Interface::fwd_redefinition_helper (AST_Interface *&i,
}
AST_Interface *fd = dynamic_cast<AST_Interface *> (d);
- if (fd == 0)
+ if (fd == nullptr)
{
AST_Decl::NodeType nt = d->node_type ();
@@ -415,7 +395,7 @@ AST_Interface::fwd_redefinition_helper (AST_Interface *&i,
fd->redefine (i);
AST_InterfaceFwd *fwd = fd->fwd_decl ();
- if (fwd != 0)
+ if (fwd != nullptr)
{
fwd->set_as_defined ();
}
@@ -432,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;
}
@@ -442,8 +422,7 @@ AST_Interface::redef_clash_populate_r (AST_Type *t)
if (nt != AST_Decl::NT_param_holder)
{
- AST_Interface *i =
- AST_Interface::narrow_from_decl (t);
+ AST_Interface *i = dynamic_cast<AST_Interface*> (t);
AST_Type **parents = i->inherits ();
long n_parents = i->n_inherits ();
@@ -456,7 +435,7 @@ AST_Interface::redef_clash_populate_r (AST_Type *t)
if (nt == AST_Decl::NT_valuetype || nt == AST_Decl::NT_eventtype)
{
- AST_ValueType *v = AST_ValueType::narrow_from_decl (t);
+ AST_ValueType *v = dynamic_cast<AST_ValueType*> (t);
AST_Type **supports = v->supports ();
long n_supports = v->n_supports ();
@@ -467,7 +446,7 @@ AST_Interface::redef_clash_populate_r (AST_Type *t)
}
else if (nt == AST_Decl::NT_component)
{
- AST_Component *c = AST_Component::narrow_from_decl (t);
+ AST_Component *c = dynamic_cast<AST_Component*> (t);
AST_Type **supports = c->supports ();
long n_supports = c->n_supports ();
@@ -479,7 +458,7 @@ AST_Interface::redef_clash_populate_r (AST_Type *t)
}
bool
-AST_Interface::home_equiv (void) const
+AST_Interface::home_equiv () const
{
return this->home_equiv_;
}
@@ -491,7 +470,7 @@ AST_Interface::home_equiv (bool val)
}
AST_InterfaceFwd *
-AST_Interface::fwd_decl (void) const
+AST_Interface::fwd_decl () const
{
return this->fwd_decl_;
}
@@ -506,14 +485,13 @@ int
AST_Interface::insert_non_dup (AST_Type *t,
bool abstract_paths_only)
{
- AST_Interface *f =
- AST_Interface::narrow_from_decl (t);
+ AST_Interface *f = dynamic_cast<AST_Interface*> (t);
// Now check if the dequeued element has any ancestors. If yes, insert
// them inside the queue making sure that there are no duplicates.
// If we are doing a component, the inheritance list is actually a
// supports list.
- if (f != 0)
+ if (f != nullptr)
{
for (long i = 0; i < f->n_inherits (); ++i)
{
@@ -541,7 +519,7 @@ AST_Interface::insert_non_dup (AST_Type *t,
(void) q_iter.advance ())
{
// Queue element.
- AST_Type **temp = 0;
+ AST_Type **temp = nullptr;
(void) q_iter.next (temp);
@@ -561,7 +539,7 @@ AST_Interface::insert_non_dup (AST_Type *t,
(void) del_q_iter.advance ())
{
// Queue element.
- AST_Type **temp = 0;
+ AST_Type **temp = nullptr;
(void) del_q_iter.next (temp);
@@ -634,51 +612,51 @@ AST_Interface::redefine (AST_Interface *from)
// Data accessors.
AST_Type **
-AST_Interface::inherits (void) const
+AST_Interface::inherits () const
{
return this->pd_inherits;
}
long
-AST_Interface::n_inherits (void) const
+AST_Interface::n_inherits () const
{
return this->pd_n_inherits;
}
AST_Interface **
-AST_Interface::inherits_flat (void) const
+AST_Interface::inherits_flat () const
{
return this->pd_inherits_flat;
}
long
-AST_Interface::n_inherits_flat (void) const
+AST_Interface::n_inherits_flat () const
{
return pd_n_inherits_flat;
}
ACE_Unbounded_Queue<AST_Type *> &
-AST_Interface::get_insert_queue (void)
+AST_Interface::get_insert_queue ()
{
return this->insert_queue;
}
ACE_Unbounded_Queue<AST_Type *> &
-AST_Interface::get_del_queue (void)
+AST_Interface::get_del_queue ()
{
return this->del_queue;
}
bool
-AST_Interface::redef_clash (void)
+AST_Interface::redef_clash ()
{
this->insert_queue.reset ();
this->redef_clash_populate_r (this);
- AST_Type **group1_member = 0;
- AST_Type **group2_member = 0;
- AST_Decl *group1_member_item = 0;
- AST_Decl *group2_member_item = 0;
+ AST_Type **group1_member = nullptr;
+ AST_Type **group2_member = nullptr;
+ AST_Decl *group1_member_item = nullptr;
+ AST_Decl *group2_member_item = nullptr;
int i = 1;
@@ -693,7 +671,7 @@ AST_Interface::redef_clash (void)
(void) group1_iter.next (group1_member);
UTL_Scope *s = DeclAsScope (*group1_member);
- if (s != 0)
+ if (s != nullptr)
{
for (UTL_ScopeActiveIterator group1_member_items (
s,
@@ -737,7 +715,7 @@ AST_Interface::redef_clash (void)
(void) group2_iter.next (group2_member);
UTL_Scope *ss = DeclAsScope (*group2_member);
- if (ss != 0)
+ if (ss != nullptr)
{
for (UTL_ScopeActiveIterator group2_member_items (
ss,
@@ -808,15 +786,15 @@ AST_Decl *
AST_Interface::look_in_inherited (UTL_ScopedName *e,
bool full_def_only)
{
- AST_Decl *d = 0;
- AST_Decl *d_before = 0;
- AST_Type **is = 0;
+ AST_Decl *d = nullptr;
+ AST_Decl *d_before = nullptr;
+ AST_Type **is = nullptr;
long nis = -1;
// Can't look in an interface which was not yet defined.
if (!this->is_defined ())
{
- return 0;
+ return nullptr;
}
// OK, loop through inherited interfaces.
@@ -828,18 +806,17 @@ AST_Interface::look_in_inherited (UTL_ScopedName *e,
nis > 0;
nis--, is++)
{
- AST_Interface *i =
- AST_Interface::narrow_from_decl (*is);
+ AST_Interface *i = dynamic_cast<AST_Interface*> (*is);
- if (i == 0)
+ if (i == nullptr)
{
continue;
}
d = (i)->lookup_by_name_r (e, full_def_only);
- if (d != 0)
+ if (d != nullptr)
{
- if (d_before == 0)
+ if (d_before == nullptr)
{
// First result found.
d_before = d;
@@ -884,11 +861,11 @@ AST_Interface::look_in_inherited_local (Identifier *e,
// Can't look in an interface which was not yet defined.
if (!this->is_defined ())
{
- return 0;
+ return nullptr;
}
- AST_Decl *d = 0;
- AST_Type **is = 0;
+ AST_Decl *d = nullptr;
+ AST_Type **is = nullptr;
long nis = -1;
/// OK, loop through inherited interfaces.
@@ -896,17 +873,16 @@ AST_Interface::look_in_inherited_local (Identifier *e,
nis > 0;
nis--, is++)
{
- AST_Interface *i =
- AST_Interface::narrow_from_decl (*is);
+ AST_Interface *i = dynamic_cast<AST_Interface*> (*is);
- if (i == 0)
+ if (i == nullptr)
{
continue;
}
d = i->lookup_by_name_local (e, full_def_only);
- if (d != 0)
+ if (d != nullptr)
{
break;
}
@@ -918,25 +894,25 @@ AST_Interface::look_in_inherited_local (Identifier *e,
AST_Decl *
AST_Interface::lookup_for_add (AST_Decl *d)
{
- if (d == 0)
+ if (d == nullptr)
{
- return 0;
+ return nullptr;
}
Identifier *id = d->local_name ();
- AST_Decl *prev = 0;
+ AST_Decl *prev = nullptr;
AST_Decl::NodeType nt = NT_root;
long nis = -1;
- AST_Interface **is = 0;
+ AST_Interface **is = nullptr;
if (this->idl_keyword_clash (id) != 0)
{
- return 0;
+ return nullptr;
}
prev = this->lookup_by_name_local (id, false);
- if (prev != 0)
+ if (prev != nullptr)
{
nt = prev->node_type ();
@@ -952,7 +928,7 @@ AST_Interface::lookup_for_add (AST_Decl *d)
{
prev = (*is)->lookup_by_name_local (id, false);
- if (prev != 0)
+ if (prev != nullptr)
{
nt = prev->node_type ();
@@ -963,11 +939,11 @@ AST_Interface::lookup_for_add (AST_Decl *d)
}
}
- return 0;
+ return nullptr;
}
int
-AST_Interface::has_mixed_parentage (void)
+AST_Interface::has_mixed_parentage ()
{
if (this->is_abstract_)
{
@@ -992,7 +968,7 @@ AST_Interface::has_mixed_parentage (void)
}
void
-AST_Interface::analyze_parentage (void)
+AST_Interface::analyze_parentage ()
{
if (this->has_mixed_parentage_ != -1)
{
@@ -1009,10 +985,9 @@ AST_Interface::analyze_parentage (void)
for (long i = 0; i < this->pd_n_inherits; ++i)
{
- AST_Interface *parent =
- AST_Interface::narrow_from_decl (this->pd_inherits[i]);
+ AST_Interface *parent = dynamic_cast<AST_Interface*> (this->pd_inherits[i]);
- if (parent == 0)
+ if (parent == nullptr)
{
// The item is a template param holder.
continue;
@@ -1032,12 +1007,11 @@ AST_Interface::analyze_parentage (void)
bool in_tmpl_module = false;
UTL_Scope *s = this->defined_in ();
- while (s != 0)
+ while (s != nullptr)
{
- AST_Template_Module *m =
- AST_Template_Module::narrow_from_scope (s);
+ AST_Template_Module *m = dynamic_cast<AST_Template_Module*> (s);
- if (m != 0)
+ if (m != nullptr)
{
in_tmpl_module = true;
break;
@@ -1056,7 +1030,7 @@ AST_Interface::analyze_parentage (void)
}
bool
-AST_Interface::legal_for_primary_key (void) const
+AST_Interface::legal_for_primary_key () const
{
return false;
}
@@ -1069,22 +1043,22 @@ AST_Interface::special_lookup (UTL_ScopedName *e,
AST_Decl *d = this->look_in_inherited_local (e->head (),
full_def_only);
- if (d != 0)
+ if (d != nullptr)
{
UTL_Scope *s = DeclAsScope (d);
UTL_ScopedName *sn =
static_cast<UTL_ScopedName *> (e->tail ());
- return (s != 0 && sn != 0
+ return (s != nullptr && sn != nullptr
? s->lookup_by_name_r (sn, full_def_only, final_parent_decl)
: d);
}
- return 0;
+ return nullptr;
}
AST_Interface *
-AST_Interface::ami_handler (void) const
+AST_Interface::ami_handler () const
{
return this->ami_handler_;
}
@@ -1096,7 +1070,7 @@ AST_Interface::ami_handler (AST_Interface *handler)
}
AST_Interface *
-AST_Interface::ami4ccm_uses (void) const
+AST_Interface::ami4ccm_uses () const
{
return this->ami4ccm_uses_;
}
@@ -1108,19 +1082,19 @@ AST_Interface::ami4ccm_uses (AST_Interface *implied)
}
void
-AST_Interface::destroy (void)
+AST_Interface::destroy ()
{
for (ACE_Unbounded_Queue_Iterator<AST_Type *> i (
this->param_holders_);
!i.done ();
(void) i.advance ())
{
- AST_Type **tt = 0;
+ AST_Type **tt = nullptr;
i.next (tt);
AST_Type *t = *tt;
t->destroy ();
delete t;
- t = 0;
+ t = nullptr;
}
// The destroy() we are in gets called twice if we start from
@@ -1129,11 +1103,11 @@ AST_Interface::destroy (void)
this->param_holders_.reset ();
delete [] this->pd_inherits;
- this->pd_inherits = 0;
+ this->pd_inherits = nullptr;
this->pd_n_inherits = 0;
delete [] this->pd_inherits_flat;
- this->pd_inherits_flat = 0;
+ this->pd_inherits_flat = nullptr;
this->pd_n_inherits_flat = 0;
this->UTL_Scope::destroy ();
@@ -1151,6 +1125,3 @@ AST_Interface::annotatable () const
{
return true;
}
-
-IMPL_NARROW_FROM_DECL(AST_Interface)
-IMPL_NARROW_FROM_SCOPE(AST_Interface)
diff --git a/TAO/TAO_IDL/ast/ast_interface_fwd.cpp b/TAO/TAO_IDL/ast/ast_interface_fwd.cpp
index 655008fd030..ade2471f7f1 100644
--- a/TAO/TAO_IDL/ast/ast_interface_fwd.cpp
+++ b/TAO/TAO_IDL/ast/ast_interface_fwd.cpp
@@ -98,37 +98,37 @@ AST_InterfaceFwd::AST_InterfaceFwd (AST_Interface *dummy,
}
}
-AST_InterfaceFwd::~AST_InterfaceFwd (void)
+AST_InterfaceFwd::~AST_InterfaceFwd ()
{
}
// Private operations.
bool
-AST_InterfaceFwd::is_local (void)
+AST_InterfaceFwd::is_local ()
{
return this->full_definition ()->is_local ();
}
bool
-AST_InterfaceFwd::is_valuetype (void)
+AST_InterfaceFwd::is_valuetype ()
{
AST_Decl::NodeType nt = this->full_definition ()->node_type ();
return nt == AST_Decl::NT_valuetype || nt == AST_Decl::NT_eventtype;
}
bool
-AST_InterfaceFwd::is_abstract_valuetype (void)
+AST_InterfaceFwd::is_abstract_valuetype ()
{
return (this->full_definition ()->is_abstract ()
&& this->is_valuetype ());
}
bool
-AST_InterfaceFwd::full_def_seen (void)
+AST_InterfaceFwd::full_def_seen ()
{
UTL_Scope *s = this->defined_in ();
- AST_Interface *i = 0;
+ AST_Interface *i = nullptr;
// If a full definition is seen in a previous module opening
// or anywhere in the current scope (before or after our
@@ -136,16 +136,16 @@ AST_InterfaceFwd::full_def_seen (void)
if (AST_Decl::NT_module == s->scope_node_type ())
{
- AST_Module *m = AST_Module::narrow_from_scope (s);
+ AST_Module *m = dynamic_cast<AST_Module*> (s);
AST_Decl *d =
m->look_in_prev_mods_local (this->local_name (),
false);
- if (0 != d)
+ if (nullptr != d)
{
- i = AST_Interface::narrow_from_decl (d);
+ i = dynamic_cast<AST_Interface*> (d);
- if (0 != i && i->is_defined ())
+ if (nullptr != i && i->is_defined ())
{
return true;
}
@@ -156,9 +156,9 @@ AST_InterfaceFwd::full_def_seen (void)
!iter.is_done ();
iter.next ())
{
- i = AST_Interface::narrow_from_decl (iter.item ());
+ i = dynamic_cast<AST_Interface*> (iter.item ());
- if (0 != i && this->local_name ()->compare (i->local_name ()))
+ if (nullptr != i && this->local_name ()->compare (i->local_name ()))
{
if (i->is_defined ())
{
@@ -199,7 +199,7 @@ AST_InterfaceFwd::ast_accept (ast_visitor *visitor)
// Data accessors.
AST_Interface *
-AST_InterfaceFwd::full_definition (void)
+AST_InterfaceFwd::full_definition ()
{
return this->pd_full_definition;
}
@@ -217,32 +217,30 @@ AST_InterfaceFwd::set_full_definition (AST_Interface *nfd)
}
bool
-AST_InterfaceFwd::is_defined (void)
+AST_InterfaceFwd::is_defined ()
{
// Look for the one instance of the fwd decl
// that may have a full definition.
if (!this->is_defined_)
{
- AST_Module *m =
- AST_Module::narrow_from_scope (this->defined_in ());
+ AST_Module *m = dynamic_cast<AST_Module*> (this->defined_in ());
- if (0 != m)
+ if (nullptr != m)
{
AST_Decl *d =
m->look_in_prev_mods_local (this->local_name ());
- if (0 != d)
+ if (nullptr != d)
{
// We could be looking at a superfluous forward decl
// of an interface already defined.
AST_Interface *full = dynamic_cast<AST_Interface *> (d);
- if (0 != full)
+ if (nullptr != full)
{
set_as_defined ();
}
- AST_InterfaceFwd *fwd =
- AST_InterfaceFwd::narrow_from_decl (d);
+ AST_InterfaceFwd *fwd = dynamic_cast<AST_InterfaceFwd*> (d);
// Since fwd_redefinition_helper() is called
// before fe_add_interface(), we can't check
@@ -250,7 +248,7 @@ AST_InterfaceFwd::is_defined (void)
// is a sufficient way to tell if our full
// definition has already gone through the
// add_to_scope process.
- if (0 != fwd && fwd->is_defined ())
+ if (nullptr != fwd && fwd->is_defined ())
{
set_as_defined ();
}
@@ -274,18 +272,18 @@ AST_InterfaceFwd::disown_full_definition ()
}
void
-AST_InterfaceFwd::destroy (void)
+AST_InterfaceFwd::destroy ()
{
if (has_ownership_)
{
- set_full_definition (0);
+ set_full_definition (nullptr);
}
this->AST_Type::destroy ();
}
bool
-AST_InterfaceFwd::is_fwd (void)
+AST_InterfaceFwd::is_fwd ()
{
return true; // This is a fwd declared type
}
@@ -301,10 +299,8 @@ AST_InterfaceFwd::adjust_found (
if (ignore_fwd)
{
AST_Interface *i = this->full_definition ();
- return (full_def_only && !i->is_defined () ? 0 : i);
+ return (full_def_only && !i->is_defined () ? nullptr : i);
}
return this;
}
-
-IMPL_NARROW_FROM_DECL (AST_InterfaceFwd)
diff --git a/TAO/TAO_IDL/ast/ast_mirror_port.cpp b/TAO/TAO_IDL/ast/ast_mirror_port.cpp
index 640e556d5ea..7739c36e2d4 100644
--- a/TAO/TAO_IDL/ast/ast_mirror_port.cpp
+++ b/TAO/TAO_IDL/ast/ast_mirror_port.cpp
@@ -24,12 +24,12 @@ AST_Mirror_Port::AST_Mirror_Port (
{
}
-AST_Mirror_Port::~AST_Mirror_Port (void)
+AST_Mirror_Port::~AST_Mirror_Port ()
{
}
void
-AST_Mirror_Port::destroy (void)
+AST_Mirror_Port::destroy ()
{
this->AST_Extended_Port::destroy ();
}
@@ -47,6 +47,3 @@ AST_Mirror_Port::ast_accept (ast_visitor *visitor)
{
return visitor->visit_mirror_port (this);
}
-
-IMPL_NARROW_FROM_DECL (AST_Mirror_Port)
-
diff --git a/TAO/TAO_IDL/ast/ast_module.cpp b/TAO/TAO_IDL/ast/ast_module.cpp
index b428d3c5dd6..feb4facbaa5 100644
--- a/TAO/TAO_IDL/ast/ast_module.cpp
+++ b/TAO/TAO_IDL/ast/ast_module.cpp
@@ -105,11 +105,11 @@ 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_ (0),
- from_ref_ (0)
+ from_inst_ (nullptr),
+ from_ref_ (nullptr)
{
// NOTE previous passed into this constructor should be
// the FIRST module that is a previous opening of this same
@@ -120,20 +120,17 @@ AST_Module::AST_Module (UTL_ScopedName *n, AST_Module *previous)
// below.
}
-AST_Module::~AST_Module (void)
+AST_Module::~AST_Module ()
{
}
void
-AST_Module::destroy (void)
+AST_Module::destroy ()
{
this->UTL_Scope::destroy ();
this->AST_Decl::destroy ();
}
-IMPL_NARROW_FROM_DECL(AST_Module)
-IMPL_NARROW_FROM_SCOPE(AST_Module)
-
// Dump this AST_Module node to the ostream o.
void
AST_Module::dump (ACE_OSTREAM_TYPE &o)
@@ -159,23 +156,23 @@ AST_Module::adjust_found (
// Involved in OBV_ namespace generation.
void
-AST_Module::set_has_nested_valuetype (void)
+AST_Module::set_has_nested_valuetype ()
{
UTL_Scope *parent = this->defined_in ();
if (parent && !this->pd_has_nested_valuetype_)
{
- AST_Module *pm = AST_Module::narrow_from_scope (parent);
+ AST_Module *pm = dynamic_cast<AST_Module*> (parent);
if (pm)
{
pm->set_has_nested_valuetype ();
}
}
- this->pd_has_nested_valuetype_ = 1;
+ this->pd_has_nested_valuetype_ = true;
}
bool
-AST_Module::has_nested_valuetype (void)
+AST_Module::has_nested_valuetype ()
{
return this->pd_has_nested_valuetype_;
}
@@ -226,7 +223,7 @@ AST_Module::referenced (AST_Decl *e,
return false;
}
- AST_Type *t = AST_Type::narrow_from_decl (d);
+ AST_Type *t = dynamic_cast<AST_Type*> (d);
return (!t || t->is_defined ());
}
@@ -258,7 +255,7 @@ AST_Module::look_in_prev_mods_local (Identifier *e,
}
}
- return 0;
+ return nullptr;
}
AST_Decl *
@@ -299,7 +296,7 @@ AST_Module::look_in_prev_mods (UTL_ScopedName *e,
}
}
- return 0; // Not found.
+ return nullptr; // Not found.
}
int
@@ -309,7 +306,7 @@ AST_Module::ast_accept (ast_visitor *visitor)
}
AST_Template_Module_Inst *
-AST_Module::from_inst (void) const
+AST_Module::from_inst () const
{
return this->from_inst_;
}
@@ -321,7 +318,7 @@ AST_Module::from_inst (AST_Template_Module_Inst *node)
}
AST_Template_Module_Ref *
-AST_Module::from_ref (void) const
+AST_Module::from_ref () const
{
return this->from_ref_;
}
@@ -345,8 +342,7 @@ AST_Module::special_lookup (UTL_ScopedName *e,
AST_PredefinedType *
AST_Module::fe_add_predefined_type (AST_PredefinedType *t)
{
- return AST_PredefinedType::narrow_from_decl (
- this->fe_add_decl (t));
+ return dynamic_cast<AST_PredefinedType*> (this->fe_add_decl (t));
}
AST_Module *
@@ -378,7 +374,7 @@ AST_Module::fe_add_module (AST_Module *t)
}
// Already defined and cannot be redefined? Or already used?
- AST_Module *m = 0;
+ AST_Module *m = nullptr;
AST_Decl *d = this->lookup_for_add (t);
if (d)
@@ -389,15 +385,15 @@ AST_Module::fe_add_module (AST_Module *t)
t,
this,
d);
- return 0;
+ return nullptr;
}
// has_ancestor() returns TRUE if both nodes are the same.
- m = AST_Module::narrow_from_decl (d);
+ m = dynamic_cast<AST_Module*> (d);
if (t != m && t->has_ancestor (d))
{
idl_global->err ()->redefinition_in_scope (t, d);
- return 0;
+ return nullptr;
}
const char *prev_prefix = d->prefix ();
@@ -463,121 +459,97 @@ AST_Module::fe_add_module (AST_Module *t)
AST_Template_Module_Inst *
AST_Module::fe_add_template_module_inst (AST_Template_Module_Inst *t)
{
- return
- AST_Template_Module_Inst::narrow_from_decl (
- this->fe_add_ref_decl (t));
+ return dynamic_cast<AST_Template_Module_Inst*> (this->fe_add_ref_decl (t));
}
AST_Interface *
AST_Module::fe_add_interface (AST_Interface *t)
{
- return
- this->fe_add_full_intf_decl<AST_Interface> (t);
+ return this->fe_add_full_intf_decl<AST_Interface> (t);
}
AST_ValueBox *
AST_Module::fe_add_valuebox (AST_ValueBox *t)
{
- return
- AST_ValueBox::narrow_from_decl (
- this->fe_add_decl (t));
+ return dynamic_cast<AST_ValueBox*> (this->fe_add_decl (t));
}
AST_ValueType *
AST_Module::fe_add_valuetype (AST_ValueType *t)
{
- return
- this->fe_add_full_intf_decl<AST_ValueType> (t);
+ return this->fe_add_full_intf_decl<AST_ValueType> (t);
}
AST_EventType *
AST_Module::fe_add_eventtype (AST_EventType *t)
{
- return
- this->fe_add_full_intf_decl<AST_EventType> (t);
+ return this->fe_add_full_intf_decl<AST_EventType> (t);
}
AST_Component *
AST_Module::fe_add_component (AST_Component *t)
{
- return
- this->fe_add_full_intf_decl<AST_Component> (t);
+ return this->fe_add_full_intf_decl<AST_Component> (t);
}
AST_Connector *
AST_Module::fe_add_connector (AST_Connector *t)
{
- return
- AST_Connector::narrow_from_decl (
- this->fe_add_decl (t));
+ return dynamic_cast<AST_Connector*> (this->fe_add_decl (t));
}
AST_Home *
AST_Module::fe_add_home (AST_Home *t)
{
- return
- AST_Home::narrow_from_decl (
- this->fe_add_decl (t));
+ return dynamic_cast<AST_Home*> (this->fe_add_decl (t));
}
AST_InterfaceFwd *
AST_Module::fe_add_interface_fwd (AST_InterfaceFwd *t)
{
- return
- this->fe_add_fwd_intf_decl<AST_Interface> (t);
+ return this->fe_add_fwd_intf_decl<AST_Interface> (t);
}
AST_ValueTypeFwd *
AST_Module::fe_add_valuetype_fwd (AST_ValueTypeFwd *t)
{
- return
- this->fe_add_fwd_intf_decl<AST_ValueType> (t);
+ return this->fe_add_fwd_intf_decl<AST_ValueType> (t);
}
AST_EventTypeFwd *
AST_Module::fe_add_eventtype_fwd (AST_EventTypeFwd *t)
{
- return
- this->fe_add_fwd_intf_decl<AST_EventType> (t);
+ return this->fe_add_fwd_intf_decl<AST_EventType> (t);
}
AST_ComponentFwd *
AST_Module::fe_add_component_fwd (AST_ComponentFwd *t)
{
- return
- this->fe_add_fwd_intf_decl<AST_Component> (t);
+ return this->fe_add_fwd_intf_decl<AST_Component> (t);
}
AST_Constant *
AST_Module::fe_add_constant (AST_Constant *t)
{
- return
- AST_Constant::narrow_from_decl (
- this->fe_add_decl (t));
+ return dynamic_cast<AST_Constant*> (this->fe_add_decl (t));
}
AST_Exception *
AST_Module::fe_add_exception (AST_Exception *t)
{
- return
- AST_Exception::narrow_from_decl (
- this->fe_add_decl (t));
+ return dynamic_cast<AST_Exception*> (this->fe_add_decl (t));
}
AST_Union *
AST_Module::fe_add_union (AST_Union *t)
{
- return
- AST_Union::narrow_from_decl (
- this->fe_add_full_struct_type (t));
+ return dynamic_cast<AST_Union*> (this->fe_add_full_struct_type (t));
}
AST_UnionFwd *
AST_Module::fe_add_union_fwd (AST_UnionFwd *t)
{
- return
- AST_UnionFwd::narrow_from_decl (
- this->fe_add_fwd_struct_type (t));
+ return dynamic_cast<AST_UnionFwd*> (this->fe_add_fwd_struct_type (t));
}
AST_Structure *
@@ -595,9 +567,7 @@ AST_Module::fe_add_structure_fwd (AST_StructureFwd *t)
AST_Enum *
AST_Module::fe_add_enum (AST_Enum *t)
{
- return
- AST_Enum::narrow_from_decl (
- this->fe_add_decl (t));
+ return dynamic_cast<AST_Enum*> (this->fe_add_decl (t));
}
// Add an AST_EnumVal node (an enumerator) to this scope.
@@ -607,37 +577,29 @@ AST_Module::fe_add_enum (AST_Enum *t)
AST_EnumVal *
AST_Module::fe_add_enum_val (AST_EnumVal *t)
{
- return
- AST_EnumVal::narrow_from_decl (
- this->fe_add_decl (t));
+ return dynamic_cast<AST_EnumVal*> (this->fe_add_decl (t));
}
AST_Typedef *
AST_Module::fe_add_typedef (AST_Typedef *t)
{
- return
- AST_Typedef::narrow_from_decl (
- this->fe_add_ref_decl (t));
+ return dynamic_cast<AST_Typedef*> (this->fe_add_ref_decl (t));
}
AST_Native *
AST_Module::fe_add_native (AST_Native *t)
{
- return
- AST_Native::narrow_from_decl (
- this->fe_add_decl (t));
+ return dynamic_cast<AST_Native*> (this->fe_add_decl (t));
}
AST_PortType *
AST_Module::fe_add_porttype (AST_PortType *t)
{
- return
- AST_PortType::narrow_from_decl (
- this->fe_add_decl (t));
+ return dynamic_cast<AST_PortType*> (this->fe_add_decl (t));
}
void
-AST_Module::reset_last_in_same_parent_scope (void)
+AST_Module::reset_last_in_same_parent_scope ()
{
this->last_in_same_parent_scope_ = this;
}
@@ -646,6 +608,5 @@ AST_Annotation_Decl *
AST_Module::fe_add_annotation_decl (
AST_Annotation_Decl *annotation_decl)
{
- return AST_Annotation_Decl::narrow_from_decl (
- fe_add_decl (annotation_decl));
+ return dynamic_cast<AST_Annotation_Decl*> (fe_add_decl (annotation_decl));
}
diff --git a/TAO/TAO_IDL/ast/ast_native.cpp b/TAO/TAO_IDL/ast/ast_native.cpp
index db4cbca8c65..6eeb3410bc5 100644
--- a/TAO/TAO_IDL/ast/ast_native.cpp
+++ b/TAO/TAO_IDL/ast/ast_native.cpp
@@ -23,12 +23,12 @@ AST_Native::AST_Native (UTL_ScopedName *n)
{
}
-AST_Native::~AST_Native (void)
+AST_Native::~AST_Native ()
{
}
void
-AST_Native::destroy (void)
+AST_Native::destroy ()
{
this->AST_Exception::destroy ();
}
@@ -45,7 +45,3 @@ AST_Native::ast_accept (ast_visitor *visitor)
{
return visitor->visit_native (this);
}
-
-
-
-IMPL_NARROW_FROM_DECL(AST_Native)
diff --git a/TAO/TAO_IDL/ast/ast_operation.cpp b/TAO/TAO_IDL/ast/ast_operation.cpp
index d82257840b4..6c293079ce0 100644
--- a/TAO/TAO_IDL/ast/ast_operation.cpp
+++ b/TAO/TAO_IDL/ast/ast_operation.cpp
@@ -104,16 +104,16 @@ AST_Operation::AST_Operation (AST_Type *rt,
UTL_Scope(AST_Decl::NT_op),
pd_return_type (rt),
pd_flags (fl),
- pd_context (0),
- pd_exceptions (0),
+ pd_context (nullptr),
+ pd_exceptions (nullptr),
argument_count_ (-1),
has_in_arguments_ (false),
has_native_ (0)
{
- AST_PredefinedType *pdt = 0;
+ AST_PredefinedType *pdt = nullptr;
// Check that if the operation is oneway, the return type must be void.
- if (rt != 0 && pd_flags == OP_oneway)
+ if (rt != nullptr && pd_flags == OP_oneway)
{
if (rt->node_type () != AST_Decl::NT_pre_defined)
{
@@ -122,9 +122,9 @@ AST_Operation::AST_Operation (AST_Type *rt,
}
else
{
- pdt = AST_PredefinedType::narrow_from_decl (rt);
+ pdt = dynamic_cast<AST_PredefinedType*> (rt);
- if (pdt == 0 || pdt->pt () != AST_PredefinedType::PT_void)
+ if (pdt == nullptr || pdt->pt () != AST_PredefinedType::PT_void)
{
idl_global->err ()->error1 (UTL_Error::EIDL_NONVOID_ONEWAY,
this);
@@ -133,25 +133,25 @@ AST_Operation::AST_Operation (AST_Type *rt,
}
}
-AST_Operation::~AST_Operation (void)
+AST_Operation::~AST_Operation ()
{
}
// Public operations.
bool
-AST_Operation::void_return_type (void)
+AST_Operation::void_return_type ()
{
AST_Type* type = this->return_type ();
return (type->node_type () == AST_Decl::NT_pre_defined
- && (AST_PredefinedType::narrow_from_decl (type)->pt ()
+ && (dynamic_cast<AST_PredefinedType*> (type)->pt ()
== AST_PredefinedType::PT_void));
}
// Return the member count.
int
-AST_Operation::argument_count (void)
+AST_Operation::argument_count ()
{
this->compute_argument_attr ();
@@ -160,7 +160,7 @@ AST_Operation::argument_count (void)
// Return the IN/INOUT member flag.
bool
-AST_Operation::has_in_arguments (void)
+AST_Operation::has_in_arguments ()
{
this->compute_argument_attr ();
@@ -176,8 +176,7 @@ AST_Operation::count_arguments_with_direction (int direction_mask)
!si.is_done ();
si.next ())
{
- AST_Argument *arg =
- AST_Argument::narrow_from_decl (si.item ());
+ AST_Argument *arg = dynamic_cast<AST_Argument*> (si.item ());
if ((arg->direction () & direction_mask) != 0)
{
@@ -191,7 +190,7 @@ AST_Operation::count_arguments_with_direction (int direction_mask)
// Return if any argument or the return type is a <native> type.
int
-AST_Operation::has_native (void)
+AST_Operation::has_native ()
{
this->compute_argument_attr ();
@@ -199,17 +198,17 @@ AST_Operation::has_native (void)
}
void
-AST_Operation::destroy (void)
+AST_Operation::destroy ()
{
// No need to delete our exception list, the
// destroy() method does it. The UTL_ExceptList
// destroy() method does NOT delete the contained
// exception nodes.
- if (this->pd_exceptions != 0)
+ if (this->pd_exceptions != nullptr)
{
this->pd_exceptions->destroy ();
- this->pd_exceptions = 0;
+ this->pd_exceptions = nullptr;
}
this->UTL_Scope::destroy ();
@@ -219,7 +218,7 @@ AST_Operation::destroy (void)
UTL_ExceptList *
AST_Operation::be_add_exceptions (UTL_ExceptList *t)
{
- if (this->pd_exceptions != 0)
+ if (this->pd_exceptions != nullptr)
{
idl_global->err ()->error1 (UTL_Error::EIDL_ILLEGAL_RAISES,
this);
@@ -236,16 +235,16 @@ AST_Operation::be_add_exceptions (UTL_ExceptList *t)
// Compute total number of members.
int
-AST_Operation::compute_argument_attr (void)
+AST_Operation::compute_argument_attr ()
{
if (this->argument_count_ != -1)
{
return 0;
}
- AST_Decl *d = 0;
- AST_Type *type = 0;
- AST_Argument *arg = 0;
+ AST_Decl *d = nullptr;
+ AST_Type *type = nullptr;
+ AST_Argument *arg = nullptr;
this->argument_count_ = 0;
@@ -264,7 +263,7 @@ AST_Operation::compute_argument_attr (void)
{
this->argument_count_++;
- arg = AST_Argument::narrow_from_decl (d);
+ arg = dynamic_cast<AST_Argument*> (d);
if (arg->direction() == AST_Argument::dir_IN ||
arg->direction() == AST_Argument::dir_INOUT)
@@ -273,7 +272,7 @@ AST_Operation::compute_argument_attr (void)
}
- type = AST_Type::narrow_from_decl (arg->field_type ());
+ type = dynamic_cast<AST_Type*> (arg->field_type ());
if (type->node_type () == AST_Decl::NT_native)
{
@@ -283,7 +282,7 @@ AST_Operation::compute_argument_attr (void)
}
}
- type = AST_Type::narrow_from_decl (this->return_type ());
+ type = dynamic_cast<AST_Type*> (this->return_type ());
if (type->node_type () == AST_Decl::NT_native)
{
@@ -312,26 +311,26 @@ AST_Operation::fe_add_context (UTL_StrList *t)
UTL_NameList *
AST_Operation::fe_add_exceptions (UTL_NameList *t)
{
- if (0 == t)
+ if (nullptr == t)
{
- return 0;
+ return nullptr;
}
- UTL_ScopedName *nl_n = 0;
- AST_Type *fe = 0;
- AST_Decl *d = 0;
+ UTL_ScopedName *nl_n = nullptr;
+ AST_Type *fe = nullptr;
+ AST_Decl *d = nullptr;
- this->pd_exceptions = 0;
+ this->pd_exceptions = nullptr;
for (UTL_NamelistActiveIterator nl_i (t); !nl_i.is_done (); nl_i.next ())
{
nl_n = nl_i.item ();
d = this->lookup_by_name (nl_n, true);
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error (nl_n);
- return 0;
+ return nullptr;
}
AST_Decl::NodeType nt = d->node_type ();
@@ -342,8 +341,7 @@ AST_Operation::fe_add_exceptions (UTL_NameList *t)
break;
case AST_Decl::NT_param_holder:
{
- AST_Param_Holder *ph =
- AST_Param_Holder::narrow_from_decl (d);
+ AST_Param_Holder *ph = dynamic_cast<AST_Param_Holder*> (d);
nt = ph->info ()->type_;
@@ -358,8 +356,7 @@ AST_Operation::fe_add_exceptions (UTL_NameList *t)
}
case AST_Decl::NT_typedef:
{
- AST_Typedef *td =
- AST_Typedef::narrow_from_decl (d);
+ AST_Typedef *td = dynamic_cast<AST_Typedef*> (d);
nt = td->primitive_base_type ()->node_type ();
@@ -399,35 +396,35 @@ AST_Operation::fe_add_exceptions (UTL_NameList *t)
bool oneway_op =
(this->flags () == AST_Operation::OP_oneway);
- fe = AST_Type::narrow_from_decl (d);
+ fe = dynamic_cast<AST_Type*> (d);
- if (oneway_op && fe != 0)
+ if (oneway_op && fe != nullptr)
{
idl_global->err ()->error1 (UTL_Error::EIDL_ILLEGAL_RAISES,
this);
}
- if (fe == 0)
+ if (fe == nullptr)
{
idl_global->err ()->error1 (UTL_Error::EIDL_ILLEGAL_RAISES,
this);
- return 0;
+ return nullptr;
}
- if (this->pd_exceptions == 0)
+ if (this->pd_exceptions == nullptr)
{
ACE_NEW_RETURN (this->pd_exceptions,
UTL_ExceptList (fe,
- 0),
- 0);
+ nullptr),
+ nullptr);
}
else
{
- UTL_ExceptList *el = 0;
+ UTL_ExceptList *el = nullptr;
ACE_NEW_RETURN (el,
UTL_ExceptList (fe,
- 0),
- 0);
+ nullptr),
+ nullptr);
this->pd_exceptions->nconc (el);
}
@@ -438,25 +435,23 @@ AST_Operation::fe_add_exceptions (UTL_NameList *t)
// each place it is passed in.
t->destroy ();
delete t;
- t = 0;
- return 0;
+ t = nullptr;
+ return nullptr;
}
AST_Argument *
AST_Operation::fe_add_argument (AST_Argument *t)
{
- return
- AST_Argument::narrow_from_decl (
- this->fe_add_decl (t));
+ return dynamic_cast<AST_Argument*> (this->fe_add_decl (t));
}
// Dump this AST_Operation node (an operation) to the ostream o.
void
AST_Operation::dump (ACE_OSTREAM_TYPE &o)
{
- AST_Decl *d = 0;
- AST_Type *e = 0;
- UTL_String *s = 0;
+ AST_Decl *d = nullptr;
+ AST_Type *e = nullptr;
+ UTL_String *s = nullptr;
if (this->pd_flags == OP_oneway)
{
@@ -487,7 +482,7 @@ AST_Operation::dump (ACE_OSTREAM_TYPE &o)
this->dump_i (o, ")");
- if (this->pd_exceptions != 0)
+ if (this->pd_exceptions != nullptr)
{
this->dump_i (o, " raises(");
@@ -508,7 +503,7 @@ AST_Operation::dump (ACE_OSTREAM_TYPE &o)
this->dump_i (o, ")");
}
- if (this->pd_context != 0)
+ if (this->pd_context != nullptr)
{
this->dump_i (o, " context(");
@@ -538,25 +533,25 @@ AST_Operation::ast_accept (ast_visitor *visitor)
// Data accessors
AST_Type *
-AST_Operation::return_type (void)
+AST_Operation::return_type ()
{
return this->pd_return_type;
}
AST_Operation::Flags
-AST_Operation::flags (void)
+AST_Operation::flags ()
{
return this->pd_flags;
}
UTL_StrList *
-AST_Operation::context (void)
+AST_Operation::context ()
{
return this->pd_context;
}
UTL_ExceptList *
-AST_Operation::exceptions (void)
+AST_Operation::exceptions ()
{
return this->pd_exceptions;
}
@@ -566,6 +561,3 @@ AST_Operation::annotatable () const
{
return true;
}
-
-IMPL_NARROW_FROM_DECL(AST_Operation)
-IMPL_NARROW_FROM_SCOPE(AST_Operation)
diff --git a/TAO/TAO_IDL/ast/ast_param_holder.cpp b/TAO/TAO_IDL/ast/ast_param_holder.cpp
index a421873ba19..3a2f8959305 100644
--- a/TAO/TAO_IDL/ast/ast_param_holder.cpp
+++ b/TAO/TAO_IDL/ast/ast_param_holder.cpp
@@ -18,18 +18,18 @@ AST_Param_Holder::AST_Param_Holder (UTL_ScopedName *parameter_name,
{
}
-AST_Param_Holder::~AST_Param_Holder (void)
+AST_Param_Holder::~AST_Param_Holder ()
{
}
FE_Utils::T_Param_Info const *
-AST_Param_Holder::info (void) const
+AST_Param_Holder::info () const
{
return this->info_;
}
void
-AST_Param_Holder::destroy (void)
+AST_Param_Holder::destroy ()
{
this->AST_Type::destroy ();
}
@@ -44,6 +44,3 @@ void
AST_Param_Holder::dump (ACE_OSTREAM_TYPE & /* o */)
{
}
-
-IMPL_NARROW_FROM_DECL (AST_Param_Holder)
-
diff --git a/TAO/TAO_IDL/ast/ast_porttype.cpp b/TAO/TAO_IDL/ast/ast_porttype.cpp
index 28e9cf634c0..3ad65bc45ae 100644
--- a/TAO/TAO_IDL/ast/ast_porttype.cpp
+++ b/TAO/TAO_IDL/ast/ast_porttype.cpp
@@ -22,12 +22,12 @@ AST_PortType::AST_PortType (UTL_ScopedName *n)
{
}
-AST_PortType::~AST_PortType (void)
+AST_PortType::~AST_PortType ()
{
}
void
-AST_PortType::destroy (void)
+AST_PortType::destroy ()
{
this->UTL_Scope::destroy ();
this->AST_Type::destroy ();
@@ -47,27 +47,17 @@ AST_PortType::ast_accept (ast_visitor *visitor)
AST_Provides *
AST_PortType::fe_add_provides (AST_Provides *p)
{
- return
- AST_Provides::narrow_from_decl (
- this->fe_add_ref_decl (p));
+ return dynamic_cast<AST_Provides*> (this->fe_add_ref_decl (p));
}
AST_Uses *
AST_PortType::fe_add_uses (AST_Uses *u)
{
- return
- AST_Uses::narrow_from_decl (
- this->fe_add_ref_decl (u));
+ return dynamic_cast<AST_Uses*> (this->fe_add_ref_decl (u));
}
AST_Attribute *
AST_PortType::fe_add_attribute (AST_Attribute *t)
{
- return
- AST_Attribute::narrow_from_decl (
- this->fe_add_decl (t));
+ return dynamic_cast<AST_Attribute*> (this->fe_add_decl (t));
}
-
-IMPL_NARROW_FROM_DECL (AST_PortType)
-IMPL_NARROW_FROM_SCOPE (AST_PortType)
-
diff --git a/TAO/TAO_IDL/ast/ast_predefined_type.cpp b/TAO/TAO_IDL/ast/ast_predefined_type.cpp
index db6d0923737..e52ee5f0ab7 100644
--- a/TAO/TAO_IDL/ast/ast_predefined_type.cpp
+++ b/TAO/TAO_IDL/ast/ast_predefined_type.cpp
@@ -91,8 +91,8 @@ AST_PredefinedType::AST_PredefinedType (PredefinedType t,
n),
pd_pt (t)
{
- UTL_ScopedName *new_name = 0;
- Identifier *id = 0;
+ UTL_ScopedName *new_name = nullptr;
+ Identifier *id = nullptr;
// Generate a new Scoped Name for us such that we belong to the CORBA
// namespace.
@@ -103,7 +103,7 @@ AST_PredefinedType::AST_PredefinedType (PredefinedType t,
ACE_NEW (new_name,
UTL_ScopedName (id,
- 0));
+ nullptr));
}
else
{
@@ -112,9 +112,9 @@ AST_PredefinedType::AST_PredefinedType (PredefinedType t,
ACE_NEW (new_name,
UTL_ScopedName (id,
- 0));
+ nullptr));
- UTL_ScopedName *conc_name = 0;
+ UTL_ScopedName *conc_name = nullptr;
switch (this->pt ())
{
@@ -197,7 +197,7 @@ AST_PredefinedType::AST_PredefinedType (PredefinedType t,
ACE_NEW (conc_name,
UTL_ScopedName (id,
- 0));
+ nullptr));
new_name->nconc (conc_name);
}
@@ -221,7 +221,7 @@ AST_PredefinedType::AST_PredefinedType (PredefinedType t,
this->set_name (new_name);
}
-AST_PredefinedType::~AST_PredefinedType (void)
+AST_PredefinedType::~AST_PredefinedType ()
{
}
@@ -236,7 +236,7 @@ AST_PredefinedType::dump (ACE_OSTREAM_TYPE &o)
// Compute the size type of the node in question.
int
-AST_PredefinedType::compute_size_type (void)
+AST_PredefinedType::compute_size_type ()
{
switch (this->pd_pt)
{
@@ -260,7 +260,7 @@ AST_PredefinedType::ast_accept (ast_visitor *visitor)
}
void
-AST_PredefinedType::destroy (void)
+AST_PredefinedType::destroy ()
{
this->AST_ConcreteType::destroy ();
}
@@ -268,11 +268,7 @@ AST_PredefinedType::destroy (void)
// Data accessors.
AST_PredefinedType::PredefinedType
-AST_PredefinedType::pt (void)
+AST_PredefinedType::pt ()
{
return this->pd_pt;
}
-
-
-
-IMPL_NARROW_FROM_DECL(AST_PredefinedType)
diff --git a/TAO/TAO_IDL/ast/ast_provides.cpp b/TAO/TAO_IDL/ast/ast_provides.cpp
index 07bfd679480..e2b65156668 100644
--- a/TAO/TAO_IDL/ast/ast_provides.cpp
+++ b/TAO/TAO_IDL/ast/ast_provides.cpp
@@ -16,12 +16,12 @@ AST_Provides::AST_Provides (UTL_ScopedName *n,
{
}
-AST_Provides::~AST_Provides (void)
+AST_Provides::~AST_Provides ()
{
}
AST_Type *
-AST_Provides::provides_type (void) const
+AST_Provides::provides_type () const
{
return this->field_type ();
}
@@ -40,9 +40,7 @@ AST_Provides::ast_accept (ast_visitor *visitor)
}
void
-AST_Provides::destroy (void)
+AST_Provides::destroy ()
{
this->AST_Field::destroy ();
}
-
-IMPL_NARROW_FROM_DECL(AST_Provides)
diff --git a/TAO/TAO_IDL/ast/ast_publishes.cpp b/TAO/TAO_IDL/ast/ast_publishes.cpp
index 07a31eb4d41..eef6365b304 100644
--- a/TAO/TAO_IDL/ast/ast_publishes.cpp
+++ b/TAO/TAO_IDL/ast/ast_publishes.cpp
@@ -15,12 +15,12 @@ AST_Publishes::AST_Publishes (UTL_ScopedName *n,
{
}
-AST_Publishes::~AST_Publishes (void)
+AST_Publishes::~AST_Publishes ()
{
}
AST_Type *
-AST_Publishes::publishes_type (void) const
+AST_Publishes::publishes_type () const
{
return this->field_type ();
}
@@ -39,9 +39,7 @@ AST_Publishes::ast_accept (ast_visitor *visitor)
}
void
-AST_Publishes::destroy (void)
+AST_Publishes::destroy ()
{
this->AST_Field::destroy ();
}
-
-IMPL_NARROW_FROM_DECL(AST_Publishes)
diff --git a/TAO/TAO_IDL/ast/ast_recursive.cpp b/TAO/TAO_IDL/ast/ast_recursive.cpp
index d981d3cddb6..61f9204c416 100644
--- a/TAO/TAO_IDL/ast/ast_recursive.cpp
+++ b/TAO/TAO_IDL/ast/ast_recursive.cpp
@@ -86,7 +86,7 @@ bool
AST_illegal_interface_recursion (AST_Decl *t)
{
// Can't be 0 since we know we have an interface or valuetype.
- AST_Decl *d = 0;
+ AST_Decl *d = nullptr;
// If we encounter the argument in an enclosing scope, it's illegal.
for (UTL_ScopeStackActiveIterator i (idl_global->scopes ());
@@ -114,15 +114,15 @@ AST_illegal_interface_recursion (AST_Decl *t)
bool
AST_illegal_recursive_type (AST_Decl *t)
{
- if (t == 0)
+ if (t == nullptr)
{
return false;
}
AST_Decl::NodeType nt;
- AST_Type *ut = AST_Type::narrow_from_decl (t);
+ AST_Type *ut = dynamic_cast<AST_Type*> (t);
- if (ut != 0)
+ if (ut != nullptr)
{
ut = ut->unaliased_type ();
nt = ut->node_type ();
@@ -145,16 +145,16 @@ AST_illegal_recursive_type (AST_Decl *t)
bool check_for_struct = false;
bool check_for_union = false;
- AST_Structure *st1 = 0;
- AST_Union *un1 = 0;
+ AST_Structure *st1 = nullptr;
+ AST_Union *un1 = nullptr;
// Narrow the type appropriately so comparison will work.
if (t->node_type () == AST_Decl::NT_struct)
{
check_for_struct = true;
- st1 = AST_Structure::narrow_from_decl (t);
+ st1 = dynamic_cast<AST_Structure*> (t);
- if (st1 == 0)
+ if (st1 == nullptr)
{
return false; // NOT ILLEGAL.
}
@@ -162,17 +162,17 @@ AST_illegal_recursive_type (AST_Decl *t)
else if (t->node_type () == AST_Decl::NT_union)
{
check_for_union = true;
- un1 = AST_Union::narrow_from_decl (t);
+ un1 = dynamic_cast<AST_Union*> (t);
- if (un1 == 0)
+ if (un1 == nullptr)
{
return false; // NOT ILLEGAL.
}
}
- UTL_Scope *s = 0;
- AST_Structure *st2 = 0;
- AST_Union *un2 = 0;
+ UTL_Scope *s = nullptr;
+ AST_Structure *st2 = nullptr;
+ AST_Union *un2 = nullptr;
// OK, iterate up the stack.
for (UTL_ScopeStackActiveIterator i (idl_global->scopes ());
@@ -183,7 +183,7 @@ AST_illegal_recursive_type (AST_Decl *t)
// If we hit a NULL we're done since it means that we're nested inside
// a sequence, where recursive types may be used.
- if (s == 0)
+ if (s == nullptr)
{
return false; // NOT ILLEGAL.
}
@@ -192,9 +192,9 @@ AST_illegal_recursive_type (AST_Decl *t)
if (s->scope_node_type () == AST_Decl::NT_struct
&& check_for_struct == true)
{
- st2 = AST_Structure::narrow_from_scope (s);
+ st2 = dynamic_cast<AST_Structure*> (s);
- if (st2 != 0 && st2 == st1)
+ if (st2 != nullptr && st2 == st1)
{
return true; // ILLEGAL RECURSIVE TYPE USE.
}
@@ -202,9 +202,9 @@ AST_illegal_recursive_type (AST_Decl *t)
else if (s->scope_node_type () == AST_Decl::NT_union
&& check_for_union == true)
{
- un2 = AST_Union::narrow_from_scope (s);
+ un2 = dynamic_cast<AST_Union*> (s);
- if (un2 != 0 && un2 == un1)
+ if (un2 != nullptr && un2 == un1)
{
return true; // ILLEGAL RECURSIVE TYPE USE.
}
diff --git a/TAO/TAO_IDL/ast/ast_root.cpp b/TAO/TAO_IDL/ast/ast_root.cpp
index 220b85babc3..dd4aa334b79 100644
--- a/TAO/TAO_IDL/ast/ast_root.cpp
+++ b/TAO/TAO_IDL/ast/ast_root.cpp
@@ -88,14 +88,14 @@ AST_Root::AST_Root (UTL_ScopedName *n)
{
}
-AST_Root::~AST_Root (void)
+AST_Root::~AST_Root ()
{
}
// Overrides the one in UTL_Scope - this one doesn't
// count the predefined types.
unsigned long
-AST_Root::nmembers (void)
+AST_Root::nmembers ()
{
unsigned long retval = 0;
@@ -118,9 +118,9 @@ AST_Root::nmembers (void)
AST_Sequence *
AST_Root::fe_add_sequence (AST_Sequence *t)
{
- if (t == 0)
+ if (t == nullptr)
{
- return 0;
+ return nullptr;
}
this->add_to_local_types (t);
@@ -131,9 +131,9 @@ AST_Root::fe_add_sequence (AST_Sequence *t)
AST_String *
AST_Root::fe_add_string (AST_String *t)
{
- if (t == 0)
+ if (t == nullptr)
{
- return 0;
+ return nullptr;
}
this->add_to_local_types (t);
@@ -144,9 +144,9 @@ AST_Root::fe_add_string (AST_String *t)
AST_Array *
AST_Root::fe_add_array (AST_Array *t)
{
- if (t == 0)
+ if (t == nullptr)
{
- return 0;
+ return nullptr;
}
this->add_to_local_types (t);
@@ -169,10 +169,10 @@ AST_Root::ast_accept (ast_visitor *visitor)
}
void
-AST_Root::destroy (void)
+AST_Root::destroy ()
{
long i = 0;
- AST_Decl *d = 0;
+ AST_Decl *d = nullptr;
// Just destroy and delete everything but the CORBA
// module, and the 'void' keyword, in case we are
@@ -186,7 +186,7 @@ AST_Root::destroy (void)
d->destroy ();
delete d;
- d = 0;
+ d = nullptr;
--this->pd_decls_used;
}
@@ -198,7 +198,7 @@ AST_Root::destroy (void)
// up when AST_Root::fini() calls UTL_Scope::destroy ().
for (i = 2; i < this->pd_referenced_used; ++i)
{
- this->pd_referenced[i] = 0;
+ this->pd_referenced[i] = nullptr;
}
this->pd_referenced_used = 2;
@@ -208,18 +208,15 @@ AST_Root::destroy (void)
Identifier *id = this->pd_name_referenced[i];
id->destroy ();
delete id;
- id = 0;
+ id = nullptr;
}
this->pd_name_referenced_used = 2;
}
void
-AST_Root::fini (void)
+AST_Root::fini ()
{
this->UTL_Scope::destroy ();
this->AST_Decl::destroy ();
}
-
-IMPL_NARROW_FROM_DECL(AST_Root)
-IMPL_NARROW_FROM_SCOPE(AST_Root)
diff --git a/TAO/TAO_IDL/ast/ast_sequence.cpp b/TAO/TAO_IDL/ast/ast_sequence.cpp
index 0ab4820c2da..94dcbd97893 100644
--- a/TAO/TAO_IDL/ast/ast_sequence.cpp
+++ b/TAO/TAO_IDL/ast/ast_sequence.cpp
@@ -113,15 +113,14 @@ AST_Sequence::AST_Sequence (AST_Expression *ms,
if (bnt == AST_Decl::NT_param_holder)
{
- AST_Param_Holder *ph =
- AST_Param_Holder::narrow_from_decl (bt);
+ AST_Param_Holder *ph = dynamic_cast<AST_Param_Holder*> (bt);
if (ph->info ()->type_ == AST_Decl::NT_const)
{
idl_global->err ()->not_a_type (bt);
bt->destroy ();
delete bt;
- bt = 0;
+ bt = nullptr;
throw Bailout ();
}
}
@@ -129,7 +128,7 @@ AST_Sequence::AST_Sequence (AST_Expression *ms,
// Check if we are bounded or unbounded. An expression value of 0 means
// unbounded. If our bound is a template parameter, skip the
// check altogether, this node will trigger no code generation.
- if (ms->param_holder () == 0)
+ if (ms->param_holder () == nullptr)
{
this->unbounded_ = (ms->ev ()->u.ulval == 0);
}
@@ -145,7 +144,7 @@ AST_Sequence::AST_Sequence (AST_Expression *ms,
|| nt == AST_Decl::NT_param_holder;
}
-AST_Sequence::~AST_Sequence (void)
+AST_Sequence::~AST_Sequence ()
{
}
@@ -159,9 +158,9 @@ AST_Sequence::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
list.enqueue_tail(this);
- AST_Type *type = AST_Type::narrow_from_decl (this->base_type ());
+ AST_Type *type = dynamic_cast<AST_Type*> (this->base_type ());
- if (type == 0)
+ if (type == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("AST_Sequence::in_recursion - ")
@@ -173,7 +172,7 @@ AST_Sequence::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
if (nt == AST_Decl::NT_typedef)
{
- AST_Typedef *td = AST_Typedef::narrow_from_decl (type);
+ AST_Typedef *td = dynamic_cast<AST_Typedef*> (type);
type = td->primitive_base_type ();
nt = type->node_type ();
}
@@ -187,7 +186,7 @@ AST_Sequence::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
}
bool recursion_found = false;
- AST_Type** recursable_type = 0;
+ AST_Type** recursable_type = nullptr;
list.get (recursable_type, 0);
if (!ACE_OS::strcmp (type->full_name (),
(*recursable_type)->full_name ()))
@@ -235,54 +234,52 @@ AST_Sequence::ast_accept (ast_visitor *visitor)
// Data accessors.
AST_Expression *
-AST_Sequence::max_size (void)
+AST_Sequence::max_size ()
{
return this->pd_max_size;
}
AST_Type *
-AST_Sequence::base_type (void) const
+AST_Sequence::base_type () const
{
return this->pd_base_type;
}
bool
-AST_Sequence::unbounded (void) const
+AST_Sequence::unbounded () const
{
return this->unbounded_;
}
bool
-AST_Sequence::legal_for_primary_key (void) const
+AST_Sequence::legal_for_primary_key () const
{
return this->base_type ()->legal_for_primary_key ();
}
bool
-AST_Sequence::is_defined (void)
+AST_Sequence::is_defined ()
{
return this->pd_base_type->is_defined ();
}
void
-AST_Sequence::destroy (void)
+AST_Sequence::destroy ()
{
if (this->owns_base_type_)
{
this->pd_base_type->destroy ();
delete this->pd_base_type;
- this->pd_base_type = 0;
+ this->pd_base_type = nullptr;
}
this->pd_max_size->destroy ();
delete this->pd_max_size;
- this->pd_max_size = 0;
+ this->pd_max_size = nullptr;
this->AST_ConcreteType::destroy ();
}
-IMPL_NARROW_FROM_DECL(AST_Sequence)
-
AST_Annotation_Appls &
AST_Sequence::base_type_annotations ()
{
diff --git a/TAO/TAO_IDL/ast/ast_string.cpp b/TAO/TAO_IDL/ast/ast_string.cpp
index 18366d6d89f..def9fe8cf8f 100644
--- a/TAO/TAO_IDL/ast/ast_string.cpp
+++ b/TAO/TAO_IDL/ast/ast_string.cpp
@@ -94,9 +94,9 @@ AST_String::AST_String (AST_Decl::NodeType nt,
// Always the case.
this->size_type (AST_Type::VARIABLE);
- Identifier *id = 0;
- UTL_ScopedName *new_name = 0;
- UTL_ScopedName *conc_name = 0;
+ Identifier *id = nullptr;
+ UTL_ScopedName *new_name = nullptr;
+ UTL_ScopedName *conc_name = nullptr;
bool narrow = this->width () == (ssize_t) sizeof (char);
ACE_NEW (id,
@@ -104,7 +104,7 @@ AST_String::AST_String (AST_Decl::NodeType nt,
ACE_NEW (conc_name,
UTL_ScopedName (id,
- 0));
+ nullptr));
if (narrow)
{
@@ -148,7 +148,7 @@ AST_String::AST_String (AST_Decl::NodeType nt,
this->flat_name_ = ACE::strnew (namebuf);
}
-AST_String::~AST_String (void)
+AST_String::~AST_String ()
{
}
@@ -170,11 +170,11 @@ AST_String::ast_accept (ast_visitor *visitor)
}
void
-AST_String::destroy (void)
+AST_String::destroy ()
{
this->pd_max_size->destroy ();
delete this->pd_max_size;
- this->pd_max_size = 0;
+ this->pd_max_size = nullptr;
this->AST_ConcreteType::destroy ();
}
@@ -182,17 +182,13 @@ AST_String::destroy (void)
// Data accessors.
AST_Expression *
-AST_String::max_size (void)
+AST_String::max_size ()
{
return this->pd_max_size;
}
long
-AST_String::width (void)
+AST_String::width ()
{
return this->pd_width;
}
-
-
-
-IMPL_NARROW_FROM_DECL(AST_String)
diff --git a/TAO/TAO_IDL/ast/ast_structure.cpp b/TAO/TAO_IDL/ast/ast_structure.cpp
index 0bd62aa3c8c..ded678d4057 100644
--- a/TAO/TAO_IDL/ast/ast_structure.cpp
+++ b/TAO/TAO_IDL/ast/ast_structure.cpp
@@ -95,7 +95,7 @@ AST_Structure::AST_Structure (UTL_ScopedName *n,
UTL_Scope (AST_Decl::NT_struct),
member_count_ (-1),
local_struct_ (-1),
- fwd_decl_ (0)
+ fwd_decl_ (nullptr)
{
}
@@ -114,11 +114,11 @@ AST_Structure::AST_Structure (AST_Decl::NodeType nt,
UTL_Scope (nt),
member_count_ (-1),
local_struct_ (-1),
- fwd_decl_ (0)
+ fwd_decl_ (nullptr)
{
}
-AST_Structure::~AST_Structure (void)
+AST_Structure::~AST_Structure ()
{
destroy ();
}
@@ -159,9 +159,9 @@ AST_Structure::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
!si.is_done ();
si.next ())
{
- AST_Field *field = AST_Field::narrow_from_decl (si.item ());
+ AST_Field *field = dynamic_cast<AST_Field*> (si.item ());
- if (field == 0)
+ if (field == nullptr)
// This will be an enum value or other legitimate non-field
// member - in any case, no recursion.
{
@@ -172,11 +172,11 @@ AST_Structure::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
if (type->node_type () == AST_Decl::NT_typedef)
{
- AST_Typedef *td = AST_Typedef::narrow_from_decl (type);
+ AST_Typedef *td = dynamic_cast<AST_Typedef*> (type);
type = td->primitive_base_type ();
}
- if (type == 0)
+ if (type == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("(%N:%l) AST_Structure::")
@@ -202,7 +202,7 @@ AST_Structure::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
}
int
-AST_Structure::member_count (void)
+AST_Structure::member_count ()
{
if (this->member_count_ == -1)
{
@@ -213,7 +213,7 @@ AST_Structure::member_count (void)
}
ACE_CDR::ULong
-AST_Structure::nfields (void) const
+AST_Structure::nfields () const
{
return ACE_Utils::truncate_cast<ACE_CDR::ULong> (this->fields_.size ());
}
@@ -226,7 +226,7 @@ AST_Structure::field (AST_Field **&result,
}
bool
-AST_Structure::is_local (void)
+AST_Structure::is_local ()
{
if (this->local_struct_ == -1)
{
@@ -259,7 +259,7 @@ AST_Structure::is_local (void)
}
int
-AST_Structure::contains_wstring (void)
+AST_Structure::contains_wstring ()
{
if (this->contains_wstring_ == -1)
{
@@ -281,13 +281,13 @@ AST_Structure::contains_wstring (void)
}
bool
-AST_Structure::is_defined (void)
+AST_Structure::is_defined ()
{
- return 0 == this->fwd_decl_ || this->fwd_decl_->is_defined ();
+ return nullptr == this->fwd_decl_ || this->fwd_decl_->is_defined ();
}
bool
-AST_Structure::legal_for_primary_key (void) const
+AST_Structure::legal_for_primary_key () const
{
bool retval = true;
@@ -300,9 +300,9 @@ AST_Structure::legal_for_primary_key (void) const
!si.is_done ();
si.next ())
{
- AST_Field *f = AST_Field::narrow_from_decl (si.item ());
+ AST_Field *f = dynamic_cast<AST_Field*> (si.item ());
- if (f != 0 && !f->field_type ()->legal_for_primary_key ())
+ if (f != nullptr && !f->field_type ()->legal_for_primary_key ())
{
retval = false;
break;
@@ -316,7 +316,7 @@ AST_Structure::legal_for_primary_key (void) const
}
AST_StructureFwd *
-AST_Structure::fwd_decl (void) const
+AST_Structure::fwd_decl () const
{
return this->fwd_decl_;
}
@@ -328,7 +328,7 @@ AST_Structure::fwd_decl (AST_StructureFwd *node)
}
ACE_Unbounded_Queue<AST_Field *> &
-AST_Structure::fields (void)
+AST_Structure::fields ()
{
return this->fields_;
}
@@ -350,17 +350,13 @@ AST_Structure::fe_add_structure (AST_Structure *t)
AST_Union *
AST_Structure::fe_add_union (AST_Union *t)
{
- return
- AST_Union::narrow_from_decl (
- this->fe_add_full_struct_type (t));
+ return dynamic_cast<AST_Union*> (this->fe_add_full_struct_type (t));
}
AST_Enum *
AST_Structure::fe_add_enum (AST_Enum *t)
{
- return
- AST_Enum::narrow_from_decl (
- this->fe_add_decl (t));
+ return dynamic_cast<AST_Enum*> (this->fe_add_decl (t));
}
// Add this AST_EnumVal node (an enumerator declaration) to this scope.
@@ -370,14 +366,12 @@ AST_Structure::fe_add_enum (AST_Enum *t)
AST_EnumVal *
AST_Structure::fe_add_enum_val (AST_EnumVal *t)
{
- return
- AST_EnumVal::narrow_from_decl (
- this->fe_add_decl (t));
+ return dynamic_cast<AST_EnumVal*> (this->fe_add_decl (t));
}
// Compute total number of members.
int
-AST_Structure::compute_member_count (void)
+AST_Structure::compute_member_count ()
{
this->member_count_ = 0;
@@ -418,7 +412,7 @@ void
AST_Structure::fwd_redefinition_helper (AST_Structure *&i,
UTL_Scope *s)
{
- if (i == 0)
+ if (i == nullptr)
{
return;
}
@@ -428,9 +422,9 @@ AST_Structure::fwd_redefinition_helper (AST_Structure *&i,
AST_Decl *d =
s->lookup_by_name_local (i->local_name (), false);
- AST_Structure *fd = 0;
+ AST_Structure *fd = nullptr;
- if (d != 0)
+ if (d != nullptr)
{
// Full definition must have the same prefix as the forward declaration.
if (ACE_OS::strcmp (i->prefix (), d->prefix ()) != 0)
@@ -450,7 +444,7 @@ AST_Structure::fwd_redefinition_helper (AST_Structure *&i,
|| nt == AST_Decl::NT_union_fwd)
{
AST_StructureFwd *fwd_def =
- AST_StructureFwd::narrow_from_decl (d);
+ dynamic_cast<AST_StructureFwd*> (d);
fd = fwd_def->full_definition ();
}
@@ -458,11 +452,11 @@ AST_Structure::fwd_redefinition_helper (AST_Structure *&i,
else if (nt == AST_Decl::NT_struct
|| nt == AST_Decl::NT_union)
{
- fd = AST_Structure::narrow_from_decl (d);
+ fd = dynamic_cast<AST_Structure*> (d);
}
// Successful?
- if (fd == 0)
+ if (fd == nullptr)
{
// Should we give an error here?
// No, look in fe_add_interface.
@@ -498,7 +492,7 @@ AST_Structure::fwd_redefinition_helper (AST_Structure *&i,
fd->redefine (i);
AST_StructureFwd *fwd = fd->fwd_decl ();
- if (0 != fwd)
+ if (nullptr != fwd)
{
// So the fwd decl won't destroy us at cleanup time.
// Unlike interfaces, valuetypes and components, it's
@@ -538,7 +532,7 @@ AST_Structure::redefine (AST_Structure *from)
// Compute the size type of the node in question.
int
-AST_Structure::compute_size_type (void)
+AST_Structure::compute_size_type ()
{
for (UTL_ScopeActiveIterator si (this, UTL_Scope::IK_decls);
!si.is_done ();
@@ -552,10 +546,10 @@ AST_Structure::compute_size_type (void)
continue;
}
- AST_Field *f = AST_Field::narrow_from_decl (d);
+ AST_Field *f = dynamic_cast<AST_Field*> (d);
AST_Type *t = f->field_type ();
- if (t != 0)
+ if (t != nullptr)
{
this->size_type (t->size_type ());
@@ -566,7 +560,7 @@ AST_Structure::compute_size_type (void)
{
ACE_DEBUG ((LM_DEBUG,
"WARNING (%N:%l) be_structure::compute_size_type - "
- "narrow_from_decl returned 0\n"));
+ "dynamic_cast returned 0\n"));
}
}
@@ -580,15 +574,12 @@ AST_Structure::ast_accept (ast_visitor *visitor)
}
void
-AST_Structure::destroy (void)
+AST_Structure::destroy ()
{
this->AST_ConcreteType::destroy ();
this->UTL_Scope::destroy ();
}
-IMPL_NARROW_FROM_DECL(AST_Structure)
-IMPL_NARROW_FROM_SCOPE(AST_Structure)
-
bool AST_Structure::annotatable () const
{
return true;
@@ -600,7 +591,7 @@ AST_Structure::operator[] (const size_t index)
size_t count = member_count_ <= 0 ? 0 : member_count_;
if (index >= count)
{
- return 0;
+ return nullptr;
}
size_t i = 0;
for (UTL_ScopeActiveIterator si (this, UTL_Scope::IK_decls);
@@ -613,7 +604,7 @@ AST_Structure::operator[] (const size_t index)
}
i++;
}
- return 0;
+ return nullptr;
}
AST_Decl *
@@ -629,5 +620,5 @@ AST_Structure::operator[] (const char* name)
return field;
}
}
- return 0;
+ return nullptr;
}
diff --git a/TAO/TAO_IDL/ast/ast_structure_fwd.cpp b/TAO/TAO_IDL/ast/ast_structure_fwd.cpp
index 6f444e67dae..86543660d4c 100644
--- a/TAO/TAO_IDL/ast/ast_structure_fwd.cpp
+++ b/TAO/TAO_IDL/ast/ast_structure_fwd.cpp
@@ -23,7 +23,7 @@ AST_StructureFwd::AST_StructureFwd (AST_Structure *full_defn,
{
}
-AST_StructureFwd::~AST_StructureFwd (void)
+AST_StructureFwd::~AST_StructureFwd ()
{
}
@@ -46,7 +46,7 @@ AST_StructureFwd::ast_accept (ast_visitor *visitor)
// Data accessors.
AST_Structure *
-AST_StructureFwd::full_definition (void)
+AST_StructureFwd::full_definition ()
{
return this->pd_full_definition;
}
@@ -63,32 +63,32 @@ AST_StructureFwd::set_full_definition (AST_Structure *nfd)
}
bool
-AST_StructureFwd::is_defined (void)
+AST_StructureFwd::is_defined ()
{
return this->is_defined_;
}
void
-AST_StructureFwd::set_as_defined (void)
+AST_StructureFwd::set_as_defined ()
{
this->is_defined_ = true;
}
void
-AST_StructureFwd::destroy (void)
+AST_StructureFwd::destroy ()
{
- if (!this->is_defined_ && 0 != this->pd_full_definition)
+ if (!this->is_defined_ && nullptr != this->pd_full_definition)
{
this->pd_full_definition->destroy ();
delete this->pd_full_definition;
- this->pd_full_definition = 0;
+ this->pd_full_definition = nullptr;
}
this->AST_Type::destroy ();
}
bool
-AST_StructureFwd::is_fwd (void)
+AST_StructureFwd::is_fwd ()
{
return true; // This is a fwd declared type
}
@@ -104,10 +104,8 @@ AST_StructureFwd::adjust_found (
if (ignore_fwd)
{
AST_Structure *s = this->full_definition ();
- return (full_def_only && !s->is_defined () ? 0 : s);
+ return (full_def_only && !s->is_defined () ? nullptr : s);
}
return this;
}
-
-IMPL_NARROW_FROM_DECL (AST_StructureFwd)
diff --git a/TAO/TAO_IDL/ast/ast_template_module.cpp b/TAO/TAO_IDL/ast/ast_template_module.cpp
index 364040dc4ca..6383e2167bf 100644
--- a/TAO/TAO_IDL/ast/ast_template_module.cpp
+++ b/TAO/TAO_IDL/ast/ast_template_module.cpp
@@ -29,12 +29,12 @@ AST_Template_Module::AST_Template_Module (
{
}
-AST_Template_Module::~AST_Template_Module (void)
+AST_Template_Module::~AST_Template_Module ()
{
}
FE_Utils::T_PARAMLIST_INFO *
-AST_Template_Module::template_params (void) const
+AST_Template_Module::template_params () const
{
return this->template_params_;
}
@@ -55,30 +55,28 @@ AST_Template_Module::match_arg_names (FE_Utils::T_ARGLIST *args)
!i.done ();
i.advance (), ++slot)
{
- AST_Decl **item = 0;
+ AST_Decl **item = nullptr;
i.next (item);
AST_Decl *d = *item;
if (d->node_type () == AST_Decl::NT_typedef)
{
- AST_Typedef *td =
- AST_Typedef::narrow_from_decl (d);
+ AST_Typedef *td = dynamic_cast<AST_Typedef*> (d);
d = td->primitive_base_type ();
}
- FE_Utils::T_Param_Info *param = 0;
+ FE_Utils::T_Param_Info *param = nullptr;
(void) this->template_params_->get (param, slot);
- const char *s = 0;
+ const char *s = nullptr;
if (! this->match_one_param (param, d))
{
UTL_ScopedName *n = d->name ();
- if (n == 0)
+ if (n == nullptr)
{
- AST_Constant *c =
- AST_Constant::narrow_from_decl (d);
+ AST_Constant *c = dynamic_cast<AST_Constant*> (d);
s = c->exprtype_to_string ();
}
@@ -101,15 +99,15 @@ AST_Template_Module::match_param_refs (UTL_StrList *refs,
UTL_Scope *decl_scope)
{
UTL_Scope *s = decl_scope;
- AST_Template_Module *enclosing = 0;
+ AST_Template_Module *enclosing = nullptr;
- while (enclosing == 0 && s != 0)
+ while (enclosing == nullptr && s != nullptr)
{
- enclosing = AST_Template_Module::narrow_from_scope (s);
+ enclosing = dynamic_cast<AST_Template_Module*> (s);
s = ScopeAsDecl (s)->defined_in ();
}
- if (enclosing == 0)
+ if (enclosing == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("AST_Template_Module::")
@@ -126,7 +124,7 @@ AST_Template_Module::match_param_refs (UTL_StrList *refs,
FE_Utils::T_Param_Info *enclosing_param =
enclosing->find_param (i.item ());
- if (enclosing_param == 0)
+ if (enclosing_param == nullptr)
{
// Enclosing param not found
return false;
@@ -143,10 +141,10 @@ AST_Template_Module::match_param_refs (UTL_StrList *refs,
}
void
-AST_Template_Module::destroy (void)
+AST_Template_Module::destroy ()
{
delete this->template_params_;
- this->template_params_ = 0;
+ this->template_params_ = nullptr;
this->AST_Module::destroy ();
}
@@ -161,9 +159,7 @@ AST_Template_Module_Ref *
AST_Template_Module::fe_add_template_module_ref (
AST_Template_Module_Ref *m)
{
- return
- AST_Template_Module_Ref::narrow_from_decl (
- this->fe_add_ref_decl (m));
+ return dynamic_cast<AST_Template_Module_Ref*> (this->fe_add_ref_decl (m));
}
void
@@ -182,7 +178,7 @@ AST_Template_Module::match_one_param (FE_Utils::T_Param_Info *param,
if (d->node_type () == AST_Decl::NT_typedef)
{
- AST_Typedef *td = AST_Typedef::narrow_from_decl (d);
+ AST_Typedef *td = dynamic_cast<AST_Typedef*> (d);
d = td->primitive_base_type ();
}
@@ -190,8 +186,7 @@ AST_Template_Module::match_one_param (FE_Utils::T_Param_Info *param,
if (other_type == AST_Decl::NT_const)
{
- AST_Constant *c =
- AST_Constant::narrow_from_decl (d);
+ AST_Constant *c = dynamic_cast<AST_Constant*> (d);
AST_Expression *ex = c->constant_value ();
@@ -199,15 +194,15 @@ AST_Template_Module::match_one_param (FE_Utils::T_Param_Info *param,
ex->check_and_coerce (param->const_type_,
param->enum_const_type_decl_);
- if (ev == 0)
+ if (ev == nullptr)
{
idl_global->err ()->coercion_error (ex,
param->const_type_);
}
- bool retval = (ev != 0);
+ bool retval = (ev != nullptr);
delete ev;
- ev = 0;
+ ev = nullptr;
return retval;
}
@@ -222,7 +217,7 @@ AST_Template_Module::find_param (UTL_String *name)
!i.done ();
i.advance ())
{
- FE_Utils::T_Param_Info *param = 0;
+ FE_Utils::T_Param_Info *param = nullptr;
i.next (param);
if (param->name_ == name->get_string ())
@@ -231,7 +226,7 @@ AST_Template_Module::find_param (UTL_String *name)
}
}
- return 0;
+ return nullptr;
}
bool
@@ -243,7 +238,7 @@ AST_Template_Module::match_param_by_type (
!i.done ();
i.advance ())
{
- FE_Utils::T_Param_Info *my_param = 0;
+ FE_Utils::T_Param_Info *my_param = nullptr;
i.next (my_param);
if (param->type_ == my_param->type_)
@@ -278,7 +273,3 @@ AST_Template_Module::match_param_by_type (
return false;
}
-
-IMPL_NARROW_FROM_DECL (AST_Template_Module)
-IMPL_NARROW_FROM_SCOPE (AST_Template_Module)
-
diff --git a/TAO/TAO_IDL/ast/ast_template_module_inst.cpp b/TAO/TAO_IDL/ast/ast_template_module_inst.cpp
index 1156d1b020d..cc973cd8e82 100644
--- a/TAO/TAO_IDL/ast/ast_template_module_inst.cpp
+++ b/TAO/TAO_IDL/ast/ast_template_module_inst.cpp
@@ -20,19 +20,18 @@ AST_Template_Module_Inst::AST_Template_Module_Inst (
{
}
-AST_Template_Module_Inst::~AST_Template_Module_Inst (void)
+AST_Template_Module_Inst::~AST_Template_Module_Inst ()
{
}
AST_Template_Module *
-AST_Template_Module_Inst::ref (void) const
+AST_Template_Module_Inst::ref () const
{
- return
- AST_Template_Module::narrow_from_decl (this->field_type ());
+ return dynamic_cast<AST_Template_Module*> (this->field_type ());
}
FE_Utils::T_ARGLIST const *
-AST_Template_Module_Inst::template_args (void) const
+AST_Template_Module_Inst::template_args () const
{
return this->template_args_;
}
@@ -44,11 +43,11 @@ AST_Template_Module_Inst::dump (ACE_OSTREAM_TYPE &)
}
void
-AST_Template_Module_Inst::destroy (void)
+AST_Template_Module_Inst::destroy ()
{
this->template_args_->destroy ();
delete this->template_args_;
- this->template_args_ = 0;
+ this->template_args_ = nullptr;
this->AST_Field::destroy ();
}
@@ -58,6 +57,3 @@ AST_Template_Module_Inst::ast_accept (ast_visitor *visitor)
{
return visitor->visit_template_module_inst (this);
}
-
-IMPL_NARROW_FROM_DECL (AST_Template_Module_Inst)
-
diff --git a/TAO/TAO_IDL/ast/ast_template_module_ref.cpp b/TAO/TAO_IDL/ast/ast_template_module_ref.cpp
index 4110fe518d6..b12bc7100e6 100644
--- a/TAO/TAO_IDL/ast/ast_template_module_ref.cpp
+++ b/TAO/TAO_IDL/ast/ast_template_module_ref.cpp
@@ -23,19 +23,18 @@ AST_Template_Module_Ref::AST_Template_Module_Ref (
{
}
-AST_Template_Module_Ref::~AST_Template_Module_Ref (void)
+AST_Template_Module_Ref::~AST_Template_Module_Ref ()
{
}
AST_Template_Module *
-AST_Template_Module_Ref::ref (void) const
+AST_Template_Module_Ref::ref () const
{
- return
- AST_Template_Module::narrow_from_decl (this->field_type ());
+ return dynamic_cast<AST_Template_Module*> (this->field_type ());
}
UTL_StrList *
-AST_Template_Module_Ref::param_refs (void) const
+AST_Template_Module_Ref::param_refs () const
{
return this->param_refs_;
}
@@ -47,11 +46,11 @@ AST_Template_Module_Ref::dump (ACE_OSTREAM_TYPE &)
}
void
-AST_Template_Module_Ref::destroy (void)
+AST_Template_Module_Ref::destroy ()
{
this->param_refs_->destroy ();
delete this->param_refs_;
- this->param_refs_ = 0;
+ this->param_refs_ = nullptr;
this->AST_Field::destroy ();
}
@@ -73,11 +72,11 @@ AST_Template_Module_Ref::adjust_found (
bool ignore_fwd,
bool /*full_def_only*/)
{
- return ignore_fwd ? 0 : this;
+ return ignore_fwd ? nullptr : this;
}
bool
-AST_Template_Module_Ref::processed (void) const
+AST_Template_Module_Ref::processed () const
{
return this->processed_;
}
@@ -87,6 +86,3 @@ AST_Template_Module_Ref::processed (bool val)
{
this->processed_ = val;
}
-
-IMPL_NARROW_FROM_DECL (AST_Template_Module_Ref)
-
diff --git a/TAO/TAO_IDL/ast/ast_type.cpp b/TAO/TAO_IDL/ast/ast_type.cpp
index 899ab6257ca..282635fe6f9 100644
--- a/TAO/TAO_IDL/ast/ast_type.cpp
+++ b/TAO/TAO_IDL/ast/ast_type.cpp
@@ -81,17 +81,17 @@ 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),
- nested_type_name_ (0),
+ has_constructor_ (false),
+ nested_type_name_ (nullptr),
in_recursion_ (-1),
recursing_in_legal_pk_ (false)
{
}
-AST_Type::~AST_Type (void)
+AST_Type::~AST_Type ()
{
destroy ();
}
@@ -100,7 +100,7 @@ AST_Type::~AST_Type (void)
// Return our size type.
AST_Type::SIZE_TYPE
-AST_Type::size_type (void)
+AST_Type::size_type ()
{
if (this->size_type_ == AST_Type::SIZE_UNKNOWN)
{
@@ -131,7 +131,7 @@ AST_Type::size_type (AST_Type::SIZE_TYPE st)
// Compute the size type of the node in question
int
-AST_Type::compute_size_type (void)
+AST_Type::compute_size_type ()
{
return 0;
}
@@ -140,11 +140,11 @@ bool
AST_Type::in_recursion (ACE_Unbounded_Queue<AST_Type *> & /*list*/)
{
// By default we are not involved in recursion.
- return 0;
+ return false;
}
bool
-AST_Type::ifr_added (void)
+AST_Type::ifr_added ()
{
return this->ifr_added_;
}
@@ -156,7 +156,7 @@ AST_Type::ifr_added (bool val)
}
bool
-AST_Type::ifr_fwd_added (void)
+AST_Type::ifr_fwd_added ()
{
return this->ifr_fwd_added_;
}
@@ -168,7 +168,7 @@ AST_Type::ifr_fwd_added (bool val)
}
bool
-AST_Type::has_constructor (void)
+AST_Type::has_constructor ()
{
return this->has_constructor_;
}
@@ -209,15 +209,15 @@ AST_Type::nested_type_name (AST_Decl *use_scope,
}
AST_Type *
-AST_Type::unaliased_type (void)
+AST_Type::unaliased_type ()
{
AST_Type *t = this;
- AST_Typedef *td = 0;
+ AST_Typedef *td = nullptr;
AST_Decl::NodeType nt = this->node_type ();
while (nt == AST_Decl::NT_typedef)
{
- td = AST_Typedef::narrow_from_decl (t);
+ td = dynamic_cast<AST_Typedef*> (t);
t = td->base_type ();
nt = t->node_type ();
}
@@ -226,7 +226,7 @@ AST_Type::unaliased_type (void)
}
bool
-AST_Type::legal_for_primary_key (void) const
+AST_Type::legal_for_primary_key () const
{
return true;
}
@@ -252,11 +252,11 @@ AST_Type::nested_name (const char* local_name,
// Thus we need some sort of relative name to be generated.
- if (this->nested_type_name_ == 0)
+ if (this->nested_type_name_ == nullptr)
{
ACE_NEW_RETURN (this->nested_type_name_,
char[NAMEBUFSIZE],
- 0);
+ nullptr);
}
// Hold the fully scoped name.
@@ -265,9 +265,9 @@ AST_Type::nested_name (const char* local_name,
// These point to the prev, curr and next component in the scope.
char *def_curr = def_name;
- char *def_next = 0;
+ char *def_next = nullptr;
char *use_curr = use_name;
- char *use_next = 0;
+ char *use_next = nullptr;
// How many chars to compare.
int len_to_match = 0;
@@ -296,12 +296,12 @@ AST_Type::nested_name (const char* local_name,
// CORBA namespace, replacing the ad hoc spot
// generations of "::" here and there, which have now been removed.
UTL_Scope *s = this->defined_in ();
- AST_Decl *def_scope = s != 0 ? ScopeAsDecl (s) : 0;
+ AST_Decl *def_scope = s != nullptr ? ScopeAsDecl (s) : nullptr;
// TypeCode is a special case for predefined types, since it's
// defined in the CORBA module.
bool in_root =
- (def_scope != 0 && def_scope->node_type () == AST_Decl::NT_root)
+ (def_scope != nullptr && def_scope->node_type () == AST_Decl::NT_root)
|| ((this->node_type () == AST_Decl::NT_pre_defined
&& ACE_OS::strcmp (this->flat_name (), "CORBA_TypeCode") == 0));
@@ -313,7 +313,7 @@ AST_Type::nested_name (const char* local_name,
ACE_OS::strcat (this->nested_type_name_, "::");
}
- if (def_scope != 0 && !in_root && use_scope != 0)
+ if (def_scope != nullptr && !in_root && use_scope != nullptr)
// If both scopes exist and that we are not in the root scope.
{
ACE_OS::strcpy (def_name,
@@ -330,7 +330,7 @@ AST_Type::nested_name (const char* local_name,
// If the scopes are identical, don't supply them.
if (ACE_OS::strcmp (def_name, use_name) == 0)
{
- if (prefix != 0)
+ if (prefix != nullptr)
{
ACE_OS::strcat (this->nested_type_name_,
prefix);
@@ -338,7 +338,7 @@ AST_Type::nested_name (const char* local_name,
ACE_OS::strcat (this->nested_type_name_,
local_name);
- if (suffix != 0)
+ if (suffix != nullptr)
{
ACE_OS::strcat (this->nested_type_name_,
suffix);
@@ -347,7 +347,7 @@ AST_Type::nested_name (const char* local_name,
return this->nested_type_name_;
}
- if (def_next != 0)
+ if (def_next != nullptr)
{
len_to_match =
static_cast<int> (ACE_OS::strlen (def_curr)) -
@@ -358,7 +358,7 @@ AST_Type::nested_name (const char* local_name,
len_to_match = static_cast<int> (ACE_OS::strlen (def_curr));
}
- if (use_next != 0)
+ if (use_next != nullptr)
{
const int len =
static_cast<int> (ACE_OS::strlen (use_curr)) -
@@ -390,8 +390,8 @@ AST_Type::nested_name (const char* local_name,
len_to_match);
// Shift the current scopes to the next level.
- def_curr = (def_next ? (def_next + 2) : 0); // Skip the ::
- use_curr = (use_next ? (use_next + 2) : 0); // Skip the ::
+ def_curr = (def_next ? (def_next + 2) : nullptr); // Skip the ::
+ use_curr = (use_next ? (use_next + 2) : nullptr); // Skip the ::
while (def_curr && use_curr)
{
@@ -400,7 +400,7 @@ AST_Type::nested_name (const char* local_name,
def_next = ACE_OS::strstr (def_curr, "::");
use_next = ACE_OS::strstr (use_curr, "::");
- if (def_next != 0)
+ if (def_next != nullptr)
{
len_to_match =
static_cast<int> (ACE_OS::strlen (def_curr)) -
@@ -411,7 +411,7 @@ AST_Type::nested_name (const char* local_name,
len_to_match = static_cast<int> (ACE_OS::strlen (def_curr));
}
- if (use_next != 0)
+ if (use_next != nullptr)
{
int len =
static_cast<int> (ACE_OS::strlen (use_curr)) -
@@ -445,8 +445,8 @@ AST_Type::nested_name (const char* local_name,
def_curr,
len_to_match);
- def_curr = (def_next ? (def_next + 2) : 0); // Skip the ::
- use_curr = (use_next ? (use_next + 2) : 0); // Skip the ::
+ def_curr = (def_next ? (def_next + 2) : nullptr); // Skip the ::
+ use_curr = (use_next ? (use_next + 2) : nullptr); // Skip the ::
}
else
{
@@ -460,7 +460,7 @@ AST_Type::nested_name (const char* local_name,
ACE_OS::strcat (this->nested_type_name_, "::");
// Copy the remaining def_name (if any are left).
- if (def_curr != 0)
+ if (def_curr != nullptr)
{
ACE_OS::strcat (this->nested_type_name_,
def_curr);
@@ -470,7 +470,7 @@ AST_Type::nested_name (const char* local_name,
}
// Append our local name.
- if (prefix != 0)
+ if (prefix != nullptr)
{
ACE_OS::strcat (this->nested_type_name_, prefix);
}
@@ -478,7 +478,7 @@ AST_Type::nested_name (const char* local_name,
ACE_OS::strcat (this->nested_type_name_,
local_name);
- if (suffix != 0)
+ if (suffix != nullptr)
{
ACE_OS::strcat (this->nested_type_name_,
suffix);
@@ -489,7 +489,7 @@ AST_Type::nested_name (const char* local_name,
}
// Otherwise just emit our full_name.
- if (prefix != 0)
+ if (prefix != nullptr)
{
ACE_OS::strcat (this->nested_type_name_, prefix);
}
@@ -497,7 +497,7 @@ AST_Type::nested_name (const char* local_name,
ACE_OS::strcat (this->nested_type_name_,
full_name);
- if (suffix != 0)
+ if (suffix != nullptr)
{
ACE_OS::strcat (this->nested_type_name_,
suffix);
@@ -514,7 +514,7 @@ AST_Type::match_names (AST_Type *t, ACE_Unbounded_Queue<AST_Type *> &list)
(void) iter.advance ())
{
// Queue element.
- AST_Type **temp = 0;
+ AST_Type **temp = nullptr;
(void) iter.next (temp);
@@ -535,12 +535,10 @@ AST_Type::ast_accept (ast_visitor *visitor)
}
void
-AST_Type::destroy (void)
+AST_Type::destroy ()
{
delete [] this->nested_type_name_;
- this->nested_type_name_ = 0;
+ this->nested_type_name_ = nullptr;
this->AST_Decl::destroy ();
}
-
-IMPL_NARROW_FROM_DECL(AST_Type)
diff --git a/TAO/TAO_IDL/ast/ast_typedef.cpp b/TAO/TAO_IDL/ast/ast_typedef.cpp
index 4d682812334..4e5bca93988 100644
--- a/TAO/TAO_IDL/ast/ast_typedef.cpp
+++ b/TAO/TAO_IDL/ast/ast_typedef.cpp
@@ -97,22 +97,22 @@ AST_Typedef::AST_Typedef (AST_Type *bt,
{
}
-AST_Typedef::~AST_Typedef (void)
+AST_Typedef::~AST_Typedef ()
{
}
// Given a typedef node, traverse the chain of base types until they are no
// more typedefs, and return that most primitive base type.
AST_Type *
-AST_Typedef::primitive_base_type (void) const
+AST_Typedef::primitive_base_type () const
{
AST_Type *d = const_cast<AST_Typedef *> (this);
- AST_Typedef *temp = 0;
+ AST_Typedef *temp = nullptr;
while (d && d->node_type () == AST_Decl::NT_typedef)
{
- temp = AST_Typedef::narrow_from_decl (d);
- d = AST_Type::narrow_from_decl (temp->base_type ());
+ temp = dynamic_cast<AST_Typedef*> (d);
+ d = dynamic_cast<AST_Type*> (temp->base_type ());
}
return d;
@@ -121,25 +121,25 @@ AST_Typedef::primitive_base_type (void) const
// Redefinition of inherited virtual operations.
AST_Type *
-AST_Typedef::base_type (void) const
+AST_Typedef::base_type () const
{
return this->ref_type_;
}
bool
-AST_Typedef::legal_for_primary_key (void) const
+AST_Typedef::legal_for_primary_key () const
{
return this->primitive_base_type ()->legal_for_primary_key ();
}
bool
-AST_Typedef::is_local (void)
+AST_Typedef::is_local ()
{
return this->ref_type_->is_local ();
}
bool
-AST_Typedef::owns_base_type (void) const
+AST_Typedef::owns_base_type () const
{
return this->owns_base_type_;
}
@@ -162,11 +162,11 @@ AST_Typedef::dump (ACE_OSTREAM_TYPE &o)
// Compute the size type of the node in question.
int
-AST_Typedef::compute_size_type (void)
+AST_Typedef::compute_size_type ()
{
AST_Type *type = this->ref_type_;
- if (type == 0)
+ if (type == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_typedef::compute_size_type - "
@@ -190,14 +190,12 @@ AST_Typedef::ast_accept (ast_visitor *visitor)
}
void
-AST_Typedef::destroy (void)
+AST_Typedef::destroy ()
{
this->AST_Field::destroy ();
this->AST_Type::destroy ();
}
-IMPL_NARROW_FROM_DECL(AST_Typedef)
-
AST_Annotation_Appls &
AST_Typedef::annotations ()
{
diff --git a/TAO/TAO_IDL/ast/ast_union.cpp b/TAO/TAO_IDL/ast/ast_union.cpp
index ba352d8d7e6..08606bab3db 100644
--- a/TAO/TAO_IDL/ast/ast_union.cpp
+++ b/TAO/TAO_IDL/ast/ast_union.cpp
@@ -109,11 +109,11 @@ AST_Union::AST_Union (AST_ConcreteType *dt,
{
this->default_value_.computed_ = -2;
- AST_PredefinedType *pdt = 0;
+ AST_PredefinedType *pdt = nullptr;
- if (dt == 0)
+ if (dt == nullptr)
{
- this->pd_disc_type = 0;
+ this->pd_disc_type = nullptr;
this->pd_udisc_type = AST_Expression::EV_none;
return;
}
@@ -123,11 +123,11 @@ AST_Union::AST_Union (AST_ConcreteType *dt,
// the pd_udisc_type field.
if (dt->node_type () == AST_Decl::NT_pre_defined)
{
- pdt = AST_PredefinedType::narrow_from_decl (dt);
+ pdt = dynamic_cast<AST_PredefinedType*> (dt);
- if (pdt == 0)
+ if (pdt == nullptr)
{
- this->pd_disc_type = 0;
+ this->pd_disc_type = nullptr;
this->pd_udisc_type = AST_Expression::EV_none;
return;
}
@@ -168,7 +168,7 @@ AST_Union::AST_Union (AST_ConcreteType *dt,
break;
default:
this->pd_udisc_type = AST_Expression::EV_none;
- this->pd_disc_type = 0;
+ this->pd_disc_type = nullptr;
break;
}
}
@@ -180,10 +180,10 @@ AST_Union::AST_Union (AST_ConcreteType *dt,
else
{
this->pd_udisc_type = AST_Expression::EV_none;
- this->pd_disc_type = 0;
+ this->pd_disc_type = nullptr;
}
- if (this->pd_disc_type == 0)
+ if (this->pd_disc_type == nullptr)
{
idl_global->err ()->error2 (UTL_Error::EIDL_DISC_TYPE,
this,
@@ -191,7 +191,7 @@ AST_Union::AST_Union (AST_ConcreteType *dt,
}
}
-AST_Union::~AST_Union (void)
+AST_Union::~AST_Union ()
{
}
@@ -200,9 +200,9 @@ AST_Union::~AST_Union (void)
void
AST_Union::redefine (AST_Structure *from)
{
- AST_Union *u = AST_Union::narrow_from_decl (from);
+ AST_Union *u = dynamic_cast<AST_Union*> (from);
- if (u == 0)
+ if (u == nullptr)
{
idl_global->err ()->redef_error (from->local_name ()->get_string (),
this->local_name ()->get_string ());
@@ -220,7 +220,7 @@ AST_Union::redefine (AST_Structure *from)
// Return the default_index.
int
-AST_Union::default_index (void)
+AST_Union::default_index ()
{
if (this->default_index_ == -2)
{
@@ -265,10 +265,9 @@ AST_Union::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
!si.is_done ();
si.next ())
{
- AST_UnionBranch *field =
- AST_UnionBranch::narrow_from_decl (si.item ());
+ AST_UnionBranch *field = dynamic_cast<AST_UnionBranch*> (si.item ());
- if (field == 0)
+ if (field == nullptr)
// This will be an enum value or other legitimate non-field
// member - in any case, no recursion.
{
@@ -279,11 +278,11 @@ AST_Union::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
if (type->node_type () == AST_Decl::NT_typedef)
{
- AST_Typedef *td = AST_Typedef::narrow_from_decl (type);
+ AST_Typedef *td = dynamic_cast<AST_Typedef*> (type);
type = td->primitive_base_type ();
}
- if (type == 0)
+ if (type == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("(%N:%l) AST_Union::")
@@ -305,15 +304,15 @@ 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.
AST_UnionBranch *
-AST_Union::lookup_default (void)
+AST_Union::lookup_default ()
{
- AST_UnionBranch *b = 0;
- AST_Decl *d = 0;
+ AST_UnionBranch *b = nullptr;
+ AST_Decl *d = nullptr;
for (UTL_ScopeActiveIterator i (this, UTL_Scope::IK_both);
!i.is_done();
@@ -323,14 +322,14 @@ AST_Union::lookup_default (void)
if (d->node_type () == AST_Decl::NT_union_branch)
{
- b = AST_UnionBranch::narrow_from_decl (d);
+ b = dynamic_cast<AST_UnionBranch*> (d);
- if (b == 0)
+ if (b == nullptr)
{
continue;
}
- if (b->label () != 0
+ if (b->label () != nullptr
&& b->label ()->label_kind () == AST_UnionLabel::UL_default)
{
idl_global->err ()->error2 (UTL_Error::EIDL_MULTIPLE_BRANCH,
@@ -341,7 +340,7 @@ AST_Union::lookup_default (void)
}
}
- return 0;
+ return nullptr;
}
// Look up a branch by label.
@@ -351,17 +350,17 @@ AST_Union::lookup_label (AST_UnionBranch *b)
AST_UnionLabel *label = b->label ();
AST_Expression *lv = label->label_val ();
- if (label->label_val () == 0)
+ if (label->label_val () == nullptr)
{
return b;
}
- AST_Decl *d = 0;
- AST_UnionBranch *fb = 0;
+ AST_Decl *d = nullptr;
+ AST_UnionBranch *fb = nullptr;
lv->set_ev (lv->coerce (this->pd_udisc_type));
- if (lv->ev () == 0)
+ if (lv->ev () == nullptr)
{
idl_global->err ()->eval_error (lv);
return b;
@@ -375,14 +374,14 @@ AST_Union::lookup_label (AST_UnionBranch *b)
if (d->node_type () == AST_Decl::NT_union_branch)
{
- fb = AST_UnionBranch::narrow_from_decl (d);
+ fb = dynamic_cast<AST_UnionBranch*> (d);
- if (fb == 0)
+ if (fb == nullptr)
{
continue;
}
- if (fb->label() != 0
+ if (fb->label() != nullptr
&& fb->label ()->label_kind () == AST_UnionLabel::UL_label
&& fb->label ()->label_val ()->compare (lv))
{
@@ -394,7 +393,7 @@ AST_Union::lookup_label (AST_UnionBranch *b)
}
}
- return 0;
+ return nullptr;
}
// Look up a branch in an enum which is the discriminator type for this
@@ -405,16 +404,16 @@ AST_Union::lookup_enum (AST_UnionBranch *b)
{
AST_UnionLabel *label = b->label();
AST_Expression *lv = label->label_val ();
- AST_Enum *e = AST_Enum::narrow_from_decl (this->pd_disc_type);
- AST_Decl *d = 0;
- AST_UnionBranch *fb = 0;
+ AST_Enum *e = dynamic_cast<AST_Enum*> (this->pd_disc_type);
+ AST_Decl *d = nullptr;
+ AST_UnionBranch *fb = nullptr;
- if (e == 0)
+ if (e == nullptr)
{
- return 0;
+ return nullptr;
}
- if (lv == 0)
+ if (lv == nullptr)
{
return b;
}
@@ -432,7 +431,7 @@ AST_Union::lookup_enum (AST_UnionBranch *b)
d = e->lookup_by_name (sn,
true);
- if (d == 0 || d->defined_in () != e)
+ if (d == nullptr || d->defined_in () != e)
{
idl_global->err ()->enum_val_lookup_failure (this,
e,
@@ -450,14 +449,14 @@ AST_Union::lookup_enum (AST_UnionBranch *b)
if (d->node_type () == AST_Decl::NT_union_branch)
{
- fb = AST_UnionBranch::narrow_from_decl (d);
+ fb = dynamic_cast<AST_UnionBranch*> (d);
- if (fb == 0)
+ if (fb == nullptr)
{
continue;
}
- if (fb->label() != 0
+ if (fb->label() != nullptr
&& fb->label ()->label_kind () == AST_UnionLabel::UL_label
&& fb->label ()->label_val ()->compare (lv))
{
@@ -469,7 +468,7 @@ AST_Union::lookup_enum (AST_UnionBranch *b)
}
}
- return 0;
+ return nullptr;
}
// Look up a branch by value. This is the top level branch label resolution
@@ -478,14 +477,14 @@ AST_Union::lookup_enum (AST_UnionBranch *b)
AST_UnionBranch *
AST_Union::lookup_branch (AST_UnionBranch *branch)
{
- AST_UnionLabel *label = 0;
+ AST_UnionLabel *label = nullptr;
- if (branch != 0)
+ if (branch != nullptr)
{
label = branch->label ();
}
- if (label != 0)
+ if (label != nullptr)
{
if (label->label_kind () == AST_UnionLabel::UL_default)
{
@@ -501,7 +500,7 @@ AST_Union::lookup_branch (AST_UnionBranch *branch)
return this->lookup_label (branch);
}
- return 0;
+ return nullptr;
}
// Return the default value.
@@ -528,7 +527,7 @@ AST_Union::default_value (AST_Union::DefaultValue &dv)
// Determine the default value (if any).
int
-AST_Union::compute_default_value (void)
+AST_Union::compute_default_value ()
{
// Check if we really need a default value. This will be true if there is an
// explicit default case OR if an implicit default exists because not all
@@ -548,10 +547,9 @@ AST_Union::compute_default_value (void)
si.next ())
{
// Get the next AST decl node.
- AST_UnionBranch *ub =
- AST_UnionBranch::narrow_from_decl (si.item ());
+ AST_UnionBranch *ub = dynamic_cast<AST_UnionBranch*> (si.item ());
- if (ub != 0)
+ if (ub != nullptr)
{
// If the label is a case label, increment by 1.
for (unsigned long i = 0; i < ub->label_list_length (); ++i)
@@ -688,7 +686,7 @@ AST_Union::compute_default_value (void)
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;
@@ -715,10 +713,9 @@ AST_Union::compute_default_value (void)
si.next ())
{
// Get the next AST decl node
- AST_UnionBranch *ub =
- AST_UnionBranch::narrow_from_decl (si.item ());
+ AST_UnionBranch *ub = dynamic_cast<AST_UnionBranch*> (si.item ());
- if (ub != 0)
+ if (ub != nullptr)
{
for (unsigned long i = 0;
i < ub->label_list_length () && !break_loop;
@@ -729,7 +726,7 @@ AST_Union::compute_default_value (void)
// Not a default.
AST_Expression *expr = ub->label (i)->label_val ();
- if (expr == 0)
+ if (expr == nullptr)
{
// Error.
this->default_value_.computed_ = -1;
@@ -865,10 +862,10 @@ AST_Union::compute_default_value (void)
// Compute the default index.
int
-AST_Union::compute_default_index (void)
+AST_Union::compute_default_index ()
{
- AST_Decl *d = 0;
- AST_UnionBranch *ub = 0;
+ AST_Decl *d = nullptr;
+ AST_UnionBranch *ub = nullptr;
int i = 0;
// If default case does not exist, it will have a value of -1 according to
@@ -895,7 +892,7 @@ AST_Union::compute_default_index (void)
if (!d->imported ())
{
- ub = AST_UnionBranch::narrow_from_decl (d);
+ ub = dynamic_cast<AST_UnionBranch*> (d);
for (unsigned long j = 0; j < ub->label_list_length (); ++j)
{
@@ -924,17 +921,13 @@ AST_Union::compute_default_index (void)
AST_UnionBranch *
AST_Union::fe_add_union_branch (AST_UnionBranch *t)
{
- return
- AST_UnionBranch::narrow_from_decl (
- this->fe_add_ref_decl (t));
+ return dynamic_cast<AST_UnionBranch*> (this->fe_add_ref_decl (t));
}
AST_Union *
AST_Union::fe_add_union (AST_Union *t)
{
- return
- AST_Union::narrow_from_decl (
- this->fe_add_full_struct_type (t));
+ return dynamic_cast<AST_Union*> (this->fe_add_full_struct_type (t));
}
AST_Structure *
@@ -946,9 +939,7 @@ AST_Union::fe_add_structure (AST_Structure *t)
AST_Enum *
AST_Union::fe_add_enum (AST_Enum *t)
{
- return
- AST_Enum::narrow_from_decl (
- this->fe_add_decl (t));
+ return dynamic_cast<AST_Enum*> (this->fe_add_decl (t));
}
// Add this AST_EnumVal node (enumerator declaration) to this scope.
@@ -958,9 +949,7 @@ AST_Union::fe_add_enum (AST_Enum *t)
AST_EnumVal *
AST_Union::fe_add_enum_val (AST_EnumVal *t)
{
- return
- AST_EnumVal::narrow_from_decl (
- this->fe_add_decl (t));
+ return dynamic_cast<AST_EnumVal*> (this->fe_add_decl (t));
}
// Dump this AST_Union node to the ostream o.
@@ -987,7 +976,7 @@ AST_Union::dump (ACE_OSTREAM_TYPE &o)
// Compute the size type of the node in question.
int
-AST_Union::compute_size_type (void)
+AST_Union::compute_size_type ()
{
for (UTL_ScopeActiveIterator si (this, UTL_Scope::IK_decls);
!si.is_done ();
@@ -1001,9 +990,9 @@ AST_Union::compute_size_type (void)
continue;
}
- AST_Field *f = AST_Field::narrow_from_decl (d);
+ AST_Field *f = dynamic_cast<AST_Field*> (d);
- if (f != 0)
+ if (f != nullptr)
{
AST_Type *t = f->field_type ();
// Our sizetype depends on the sizetype of our members. Although
@@ -1016,7 +1005,7 @@ AST_Union::compute_size_type (void)
{
ACE_DEBUG ((LM_DEBUG,
"WARNING (%N:%l) be_union::compute_size_type - "
- "narrow_from_decl returned 0\n"));
+ "dynamic_cast returned 0\n"));
}
}
@@ -1032,20 +1021,17 @@ AST_Union::ast_accept (ast_visitor *visitor)
// Data accessors.
AST_ConcreteType *
-AST_Union::disc_type (void)
+AST_Union::disc_type ()
{
return this->pd_disc_type;
}
AST_Expression::ExprType
-AST_Union::udisc_type (void)
+AST_Union::udisc_type ()
{
return this->pd_udisc_type;
}
-IMPL_NARROW_FROM_DECL(AST_Union)
-IMPL_NARROW_FROM_SCOPE(AST_Union)
-
AST_Annotation_Appls &
AST_Union::disc_annotations ()
{
diff --git a/TAO/TAO_IDL/ast/ast_union_branch.cpp b/TAO/TAO_IDL/ast/ast_union_branch.cpp
index e0a205b9a87..e3748740404 100644
--- a/TAO/TAO_IDL/ast/ast_union_branch.cpp
+++ b/TAO/TAO_IDL/ast/ast_union_branch.cpp
@@ -94,7 +94,7 @@ AST_UnionBranch::AST_UnionBranch (UTL_LabelList *ll,
{
}
-AST_UnionBranch::~AST_UnionBranch (void)
+AST_UnionBranch::~AST_UnionBranch ()
{
}
@@ -130,17 +130,17 @@ AST_UnionBranch::ast_accept (ast_visitor *visitor)
}
void
-AST_UnionBranch::destroy (void)
+AST_UnionBranch::destroy ()
{
this->pd_ll->destroy ();
delete this->pd_ll;
- this->pd_ll = 0;
+ this->pd_ll = nullptr;
this->AST_Field::destroy ();
}
UTL_LabelList *
-AST_UnionBranch::labels (void) const
+AST_UnionBranch::labels () const
{
return this->pd_ll;
}
@@ -162,11 +162,11 @@ AST_UnionBranch::label (unsigned long index)
++i;
}
- return 0;
+ return nullptr;
}
unsigned long
-AST_UnionBranch::label_list_length (void)
+AST_UnionBranch::label_list_length ()
{
if (this->pd_ll)
{
@@ -211,10 +211,10 @@ AST_UnionBranch::add_labels (AST_Union *u)
if (enum_labels)
{
ex->ev ()->et = AST_Expression::EV_enum;
- AST_Enum *disc = AST_Enum::narrow_from_decl (u->disc_type ());
+ AST_Enum *disc = dynamic_cast<AST_Enum*> (u->disc_type ());
AST_EnumVal *dval = disc->lookup_by_value (ex);
- if (dval == 0)
+ if (dval == nullptr)
{
idl_global->err ()->incompatible_disc_error (disc, ex);
throw Bailout ();
@@ -241,5 +241,3 @@ AST_UnionBranch::coerce_labels (AST_Union *u)
lv->set_ev (lv->coerce (u->udisc_type ()));
}
}
-
-IMPL_NARROW_FROM_DECL(AST_UnionBranch)
diff --git a/TAO/TAO_IDL/ast/ast_union_fwd.cpp b/TAO/TAO_IDL/ast/ast_union_fwd.cpp
index df21ba3993a..26b00ec7e71 100644
--- a/TAO/TAO_IDL/ast/ast_union_fwd.cpp
+++ b/TAO/TAO_IDL/ast/ast_union_fwd.cpp
@@ -23,7 +23,7 @@ AST_UnionFwd::AST_UnionFwd (AST_Union *dummy,
{
}
-AST_UnionFwd::~AST_UnionFwd (void)
+AST_UnionFwd::~AST_UnionFwd ()
{
}
@@ -44,11 +44,7 @@ AST_UnionFwd::ast_accept (ast_visitor *visitor)
}
void
-AST_UnionFwd::destroy (void)
+AST_UnionFwd::destroy ()
{
this->AST_StructureFwd::destroy ();
}
-
-
-
-IMPL_NARROW_FROM_DECL (AST_UnionFwd)
diff --git a/TAO/TAO_IDL/ast/ast_union_label.cpp b/TAO/TAO_IDL/ast/ast_union_label.cpp
index 5dc0ee1ffb3..e84e554fe26 100644
--- a/TAO/TAO_IDL/ast/ast_union_label.cpp
+++ b/TAO/TAO_IDL/ast/ast_union_label.cpp
@@ -79,13 +79,13 @@ AST_UnionLabel::AST_UnionLabel (UnionLabel lk,
: pd_label_kind (lk),
pd_label_val (lv)
{
- if (lv != 0)
+ if (lv != nullptr)
{
lv->evaluate (AST_Expression::EK_const);
}
}
-AST_UnionLabel::~AST_UnionLabel (void)
+AST_UnionLabel::~AST_UnionLabel ()
{
}
@@ -112,27 +112,27 @@ AST_UnionLabel::ast_accept (ast_visitor *visitor)
}
void
-AST_UnionLabel::destroy (void)
+AST_UnionLabel::destroy ()
{
// Otherwise (default label) our label value is 0.
if (UL_label == this->pd_label_kind)
{
this->pd_label_val->destroy ();
delete this->pd_label_val;
- this->pd_label_val = 0;
+ this->pd_label_val = nullptr;
}
}
// Data accessors.
AST_UnionLabel::UnionLabel
-AST_UnionLabel::label_kind (void)
+AST_UnionLabel::label_kind ()
{
return this->pd_label_kind;
}
AST_Expression *
-AST_UnionLabel::label_val (void)
+AST_UnionLabel::label_val ()
{
return this->pd_label_val;
}
diff --git a/TAO/TAO_IDL/ast/ast_uses.cpp b/TAO/TAO_IDL/ast/ast_uses.cpp
index 630a313f9ff..14c36fcf911 100644
--- a/TAO/TAO_IDL/ast/ast_uses.cpp
+++ b/TAO/TAO_IDL/ast/ast_uses.cpp
@@ -18,18 +18,18 @@ AST_Uses::AST_Uses (UTL_ScopedName *n,
{
}
-AST_Uses::~AST_Uses (void)
+AST_Uses::~AST_Uses ()
{
}
AST_Type *
-AST_Uses::uses_type (void) const
+AST_Uses::uses_type () const
{
return this->field_type ();
}
bool
-AST_Uses::is_multiple (void) const
+AST_Uses::is_multiple () const
{
return this->is_multiple_;
}
@@ -48,9 +48,7 @@ AST_Uses::ast_accept (ast_visitor *visitor)
}
void
-AST_Uses::destroy (void)
+AST_Uses::destroy ()
{
this->AST_Field::destroy ();
}
-
-IMPL_NARROW_FROM_DECL(AST_Uses)
diff --git a/TAO/TAO_IDL/ast/ast_valuebox.cpp b/TAO/TAO_IDL/ast/ast_valuebox.cpp
index 9502a41a4ae..f0e70503289 100644
--- a/TAO/TAO_IDL/ast/ast_valuebox.cpp
+++ b/TAO/TAO_IDL/ast/ast_valuebox.cpp
@@ -17,12 +17,12 @@ AST_ValueBox::AST_ValueBox (UTL_ScopedName *n,
{
}
-AST_ValueBox::~AST_ValueBox (void)
+AST_ValueBox::~AST_ValueBox ()
{
}
AST_Type *
-AST_ValueBox::boxed_type (void) const
+AST_ValueBox::boxed_type () const
{
return this->pd_boxed_type;
}
@@ -45,11 +45,7 @@ AST_ValueBox::ast_accept (ast_visitor *visitor)
}
void
-AST_ValueBox::destroy (void)
+AST_ValueBox::destroy ()
{
this->AST_ConcreteType::destroy ();
}
-
-IMPL_NARROW_FROM_DECL(AST_ValueBox)
-
-
diff --git a/TAO/TAO_IDL/ast/ast_valuetype.cpp b/TAO/TAO_IDL/ast/ast_valuetype.cpp
index 2f27d8ed3e6..5bce86c9f98 100644
--- a/TAO/TAO_IDL/ast/ast_valuetype.cpp
+++ b/TAO/TAO_IDL/ast/ast_valuetype.cpp
@@ -68,7 +68,7 @@ AST_ValueType::AST_ValueType (UTL_ScopedName *n,
FE_Utils::tmpl_mod_ref_check (this, supports[i]);
}
- if (inherits_concrete != 0)
+ if (inherits_concrete != nullptr)
{
if (inherits_concrete->node_type () == AST_Decl::NT_param_holder)
{
@@ -77,7 +77,7 @@ AST_ValueType::AST_ValueType (UTL_ScopedName *n,
}
}
-AST_ValueType::~AST_ValueType (void)
+AST_ValueType::~AST_ValueType ()
{
}
@@ -109,7 +109,7 @@ AST_ValueType::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
else
{
// get the head element which is the type being tested
- AST_Type** recursable_type = 0;
+ AST_Type** recursable_type = nullptr;
list.get (recursable_type, 0);
// Check if we are the possibly recursive type being tested
if (!ACE_OS::strcmp (this->full_name (),
@@ -143,16 +143,16 @@ AST_ValueType::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
0);
}
- AST_Field *field = AST_Field::narrow_from_decl (d);
+ AST_Field *field = dynamic_cast<AST_Field*> (d);
- if (field == 0)
+ if (field == nullptr)
{
continue;
}
AST_Type *type = field->field_type ();
- if (type == 0)
+ if (type == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_valuetype::in_recursion - "
@@ -162,7 +162,7 @@ AST_ValueType::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
if (type->node_type () == AST_Decl::NT_typedef)
{
- AST_Typedef *td = AST_Typedef::narrow_from_decl (type);
+ AST_Typedef *td = dynamic_cast<AST_Typedef*> (type);
type = td->primitive_base_type ();
}
@@ -186,9 +186,9 @@ AST_ValueType::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
void
AST_ValueType::redefine (AST_Interface *from)
{
- AST_ValueType *vt = AST_ValueType::narrow_from_decl (from);
+ AST_ValueType *vt = dynamic_cast<AST_ValueType*> (from);
- if (vt == 0)
+ if (vt == nullptr)
{
idl_global->err ()->redef_error (from->local_name ()->get_string (),
this->local_name ()->get_string ());
@@ -204,43 +204,43 @@ AST_ValueType::redefine (AST_Interface *from)
}
AST_Type **
-AST_ValueType::supports (void) const
+AST_ValueType::supports () const
{
return this->pd_supports;
}
long
-AST_ValueType::n_supports (void) const
+AST_ValueType::n_supports () const
{
return this->pd_n_supports;
}
AST_Type *
-AST_ValueType::inherits_concrete (void) const
+AST_ValueType::inherits_concrete () const
{
return this->pd_inherits_concrete;
}
AST_Type *
-AST_ValueType::supports_concrete (void) const
+AST_ValueType::supports_concrete () const
{
return this->pd_supports_concrete;
}
bool
-AST_ValueType::truncatable (void) const
+AST_ValueType::truncatable () const
{
return this->pd_truncatable;
}
bool
-AST_ValueType::custom (void) const
+AST_ValueType::custom () const
{
return this->pd_custom;
}
bool
-AST_ValueType::will_have_factory (void)
+AST_ValueType::will_have_factory ()
{
return false;
}
@@ -250,15 +250,15 @@ AST_Decl *
AST_ValueType::look_in_supported (UTL_ScopedName *e,
bool full_def_only)
{
- AST_Decl *d = 0;
- AST_Decl *d_before = 0;
- AST_Type **is = 0;
+ AST_Decl *d = nullptr;
+ AST_Decl *d_before = nullptr;
+ AST_Type **is = nullptr;
long nis = -1;
// Can't look in an interface which was not yet defined.
if (!this->is_defined ())
{
- return 0;
+ return nullptr;
}
// OK, loop through supported interfaces.
@@ -275,14 +275,13 @@ AST_ValueType::look_in_supported (UTL_ScopedName *e,
continue;
}
- AST_Interface *i =
- AST_Interface::narrow_from_decl (*is);
+ AST_Interface *i = dynamic_cast<AST_Interface*> (*is);
d = (i)->lookup_by_name_r (e, full_def_only);
- if (d != 0)
+ if (d != nullptr)
{
- if (d_before == 0)
+ if (d_before == nullptr)
{
// First result found.
d_before = d;
@@ -327,7 +326,7 @@ AST_ValueType::special_lookup (UTL_ScopedName *e,
{
AST_Decl *d = this->look_in_inherited (e, full_def_only);
- if (d == 0)
+ if (d == nullptr)
{
d = this->look_in_supported (e, full_def_only);
}
@@ -336,7 +335,7 @@ AST_ValueType::special_lookup (UTL_ScopedName *e,
}
bool
-AST_ValueType::legal_for_primary_key (void) const
+AST_ValueType::legal_for_primary_key () const
{
AST_ValueType *pk_base = this->lookup_primary_key_base ();
@@ -357,10 +356,10 @@ AST_ValueType::legal_for_primary_key (void) const
!i.is_done ();
i.next ())
{
- AST_Field *f = AST_Field::narrow_from_decl (i.item ());
+ AST_Field *f = dynamic_cast<AST_Field*> (i.item ());
// We're not interested in any valuetype decls that aren't fields.
- if (f == 0)
+ if (f == nullptr)
{
continue;
}
@@ -396,12 +395,12 @@ AST_ValueType::legal_for_primary_key (void) const
}
void
-AST_ValueType::destroy (void)
+AST_ValueType::destroy ()
{
this->AST_Interface::destroy ();
delete [] this->pd_supports;
- this->pd_supports = 0;
+ this->pd_supports = nullptr;
this->pd_n_supports = 0;
}
@@ -477,16 +476,14 @@ AST_ValueType::fe_add_field (AST_Field *t)
AST_Factory *
AST_ValueType::fe_add_factory (AST_Factory *f)
{
- return
- AST_Factory::narrow_from_decl (
- this->fe_add_decl (f));
+ return dynamic_cast<AST_Factory*> (this->fe_add_decl (f));
}
bool
AST_ValueType::derived_from_primary_key_base (const AST_ValueType *node,
const AST_ValueType *pk_base) const
{
- if (0 == node)
+ if (nullptr == node)
{
return false;
}
@@ -496,8 +493,7 @@ AST_ValueType::derived_from_primary_key_base (const AST_ValueType *node,
return true;
}
- AST_ValueType *concrete_parent =
- AST_ValueType::narrow_from_decl (node->inherits_concrete ());
+ AST_ValueType *concrete_parent = dynamic_cast<AST_ValueType*> (node->inherits_concrete ());
if (this->derived_from_primary_key_base (concrete_parent, pk_base))
{
@@ -508,7 +504,7 @@ AST_ValueType::derived_from_primary_key_base (const AST_ValueType *node,
for (long i = 0; i < node->pd_n_inherits; ++i)
{
- AST_ValueType *tmp = AST_ValueType::narrow_from_decl (v[i]);
+ AST_ValueType *tmp = dynamic_cast<AST_ValueType*> (v[i]);
if (this->derived_from_primary_key_base (tmp, pk_base))
{
@@ -520,14 +516,14 @@ AST_ValueType::derived_from_primary_key_base (const AST_ValueType *node,
}
AST_ValueType *
-AST_ValueType::lookup_primary_key_base (void) const
+AST_ValueType::lookup_primary_key_base () const
{
AST_ValueType *retval = idl_global->primary_key_base ();
- if (retval == 0)
+ if (retval == nullptr)
{
Identifier local_id ("PrimaryKeyBase");
- UTL_ScopedName local_name (&local_id, 0);
+ UTL_ScopedName local_name (&local_id, nullptr);
Identifier scope_name ("Components");
UTL_ScopedName pk_name (&scope_name, &local_name);
@@ -537,18 +533,18 @@ AST_ValueType::lookup_primary_key_base (void) const
local_id.destroy ();
scope_name.destroy ();
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error (&pk_name);
- return 0;
+ return nullptr;
}
- retval = AST_ValueType::narrow_from_decl (d);
+ retval = dynamic_cast<AST_ValueType*> (d);
- if (retval == 0)
+ if (retval == nullptr)
{
idl_global->err ()->valuetype_expected (d);
- return 0;
+ return nullptr;
}
idl_global->primary_key_base (retval);
@@ -556,7 +552,3 @@ AST_ValueType::lookup_primary_key_base (void) const
return retval;
}
-
-IMPL_NARROW_FROM_DECL(AST_ValueType)
-IMPL_NARROW_FROM_SCOPE(AST_ValueType)
-
diff --git a/TAO/TAO_IDL/ast/ast_valuetype_fwd.cpp b/TAO/TAO_IDL/ast/ast_valuetype_fwd.cpp
index 89b8a902a2c..301ded280b3 100644
--- a/TAO/TAO_IDL/ast/ast_valuetype_fwd.cpp
+++ b/TAO/TAO_IDL/ast/ast_valuetype_fwd.cpp
@@ -19,7 +19,7 @@ AST_ValueTypeFwd::AST_ValueTypeFwd (AST_Interface *dummy,
{
}
-AST_ValueTypeFwd::~AST_ValueTypeFwd (void)
+AST_ValueTypeFwd::~AST_ValueTypeFwd ()
{
}
@@ -46,11 +46,7 @@ AST_ValueTypeFwd::ast_accept (ast_visitor *visitor)
}
void
-AST_ValueTypeFwd::destroy (void)
+AST_ValueTypeFwd::destroy ()
{
this->AST_InterfaceFwd::destroy ();
}
-
-
-
-IMPL_NARROW_FROM_DECL (AST_ValueTypeFwd)
diff --git a/TAO/TAO_IDL/ast/ast_visitor.cpp b/TAO/TAO_IDL/ast/ast_visitor.cpp
index 662179b4154..d90421c3d82 100644
--- a/TAO/TAO_IDL/ast/ast_visitor.cpp
+++ b/TAO/TAO_IDL/ast/ast_visitor.cpp
@@ -1,11 +1,11 @@
#include "ast_visitor.h"
#include "ace/config-all.h"
-ast_visitor::ast_visitor (void)
+ast_visitor::ast_visitor ()
{
}
-ast_visitor::~ast_visitor (void)
+ast_visitor::~ast_visitor ()
{
}
diff --git a/TAO/TAO_IDL/ast/ast_visitor_context.cpp b/TAO/TAO_IDL/ast/ast_visitor_context.cpp
index 4c078cb7997..d08b49cc2c3 100644
--- a/TAO/TAO_IDL/ast/ast_visitor_context.cpp
+++ b/TAO/TAO_IDL/ast/ast_visitor_context.cpp
@@ -12,9 +12,9 @@
#include "ast_visitor_context.h"
-ast_visitor_context::ast_visitor_context (void)
- : template_params_ (0),
- template_args_ (0)
+ast_visitor_context::ast_visitor_context ()
+ : template_params_ (nullptr),
+ template_args_ (nullptr)
{
}
@@ -24,12 +24,12 @@ ast_visitor_context::ast_visitor_context (const ast_visitor_context &ctx)
{
}
-ast_visitor_context::~ast_visitor_context (void)
+ast_visitor_context::~ast_visitor_context ()
{
}
FE_Utils::T_PARAMLIST_INFO *
-ast_visitor_context::template_params (void) const
+ast_visitor_context::template_params () const
{
return this->template_params_;
}
@@ -41,7 +41,7 @@ ast_visitor_context::template_params (FE_Utils::T_PARAMLIST_INFO *params)
}
FE_Utils::T_ARGLIST const *
-ast_visitor_context::template_args (void) const
+ast_visitor_context::template_args () const
{
return this->template_args_;
}
diff --git a/TAO/TAO_IDL/ast/ast_visitor_reifying.cpp b/TAO/TAO_IDL/ast/ast_visitor_reifying.cpp
index 0a6132034c6..c3282d8947e 100644
--- a/TAO/TAO_IDL/ast/ast_visitor_reifying.cpp
+++ b/TAO/TAO_IDL/ast/ast_visitor_reifying.cpp
@@ -38,16 +38,16 @@ ast_visitor_reifying::ast_visitor_reifying (
ast_visitor_context *ctx)
: ast_visitor (),
ctx_ (ctx),
- reified_node_ (0)
+ reified_node_ (nullptr)
{
}
-ast_visitor_reifying::~ast_visitor_reifying (void)
+ast_visitor_reifying::~ast_visitor_reifying ()
{
}
AST_Decl *
-ast_visitor_reifying::reified_node (void) const
+ast_visitor_reifying::reified_node () const
{
return this->reified_node_;
}
@@ -349,25 +349,25 @@ ast_visitor_reifying::visit_array (AST_Array *node)
-1);
}
- bt = AST_Type::narrow_from_decl (this->reified_node_);
+ bt = dynamic_cast<AST_Type*> (this->reified_node_);
AST_Expression **dims = node->dims ();
- AST_Expression *v = 0;
- UTL_ExprList *v_list = 0;
+ AST_Expression *v = nullptr;
+ UTL_ExprList *v_list = nullptr;
for (ACE_CDR::ULong i = 0; i < node->n_dims (); ++i)
{
AST_Param_Holder *ph = dims[i]->param_holder ();
- if (ph != 0)
+ if (ph != nullptr)
{
if (this->visit_param_holder (ph) != 0)
{
- if (v_list != 0)
+ if (v_list != nullptr)
{
v_list->destroy ();
delete v_list;
- v_list = 0;
+ v_list = nullptr;
}
ACE_ERROR_RETURN ((LM_ERROR,
@@ -378,8 +378,7 @@ ast_visitor_reifying::visit_array (AST_Array *node)
-1);
}
- AST_Constant *c =
- AST_Constant::narrow_from_decl (this->reified_node_);
+ AST_Constant *c = dynamic_cast<AST_Constant*> (this->reified_node_);
ACE_NEW_RETURN (v,
AST_Expression (c->constant_value (),
@@ -394,12 +393,12 @@ ast_visitor_reifying::visit_array (AST_Array *node)
-1);
}
- UTL_ExprList *el = 0;
+ UTL_ExprList *el = nullptr;
ACE_NEW_RETURN (el,
- UTL_ExprList (v, 0),
+ UTL_ExprList (v, nullptr),
-1);
- if (v_list == 0)
+ if (v_list == nullptr)
{
v_list = el;
}
@@ -409,7 +408,7 @@ ast_visitor_reifying::visit_array (AST_Array *node)
}
}
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
AST_Array *arr =
idl_global->gen ()->create_array (&sn,
@@ -421,11 +420,11 @@ ast_visitor_reifying::visit_array (AST_Array *node)
// No need to add this new node to any scope - it's anonymous
// and owned by the node that references it.
- if (v_list != 0)
+ if (v_list != nullptr)
{
v_list->destroy ();
delete v_list;
- v_list = 0;
+ v_list = nullptr;
}
arr->set_base_type (bt);
@@ -448,12 +447,12 @@ ast_visitor_reifying::visit_sequence (AST_Sequence *node)
-1);
}
- bt = AST_Type::narrow_from_decl (this->reified_node_);
+ bt = dynamic_cast<AST_Type*> (this->reified_node_);
AST_Expression *v = node->max_size ();
AST_Param_Holder *ph = v->param_holder ();
- if (ph != 0)
+ if (ph != nullptr)
{
if (this->visit_param_holder (ph) != 0)
{
@@ -465,8 +464,7 @@ ast_visitor_reifying::visit_sequence (AST_Sequence *node)
-1);
}
- AST_Constant *c =
- AST_Constant::narrow_from_decl (this->reified_node_);
+ AST_Constant *c = dynamic_cast<AST_Constant*> (this->reified_node_);
v = c->constant_value ();
}
@@ -475,7 +473,7 @@ ast_visitor_reifying::visit_sequence (AST_Sequence *node)
idl_global->gen ()->create_expr (v,
AST_Expression::EV_ulong);
Identifier id ("sequence");
- UTL_ScopedName sn (&id, 0);
+ UTL_ScopedName sn (&id, nullptr);
this->reified_node_ =
idl_global->gen ()->create_sequence (bound,
@@ -503,7 +501,7 @@ ast_visitor_reifying::visit_string (AST_String *node)
AST_Expression *b = node->max_size ();
AST_Param_Holder *ph = b->param_holder ();
- if (ph != 0)
+ if (ph != nullptr)
{
if (this->visit_param_holder (ph) != 0)
{
@@ -515,8 +513,7 @@ ast_visitor_reifying::visit_string (AST_String *node)
-1);
}
- AST_Constant *c =
- AST_Constant::narrow_from_decl (this->reified_node_);
+ AST_Constant *c = dynamic_cast<AST_Constant*> (this->reified_node_);
b = c->constant_value ();
}
@@ -526,14 +523,14 @@ ast_visitor_reifying::visit_string (AST_String *node)
return 0;
}
- AST_Expression *bound = 0;
+ AST_Expression *bound = nullptr;
ACE_NEW_RETURN (bound,
AST_Expression (b,
AST_Expression::EV_ulong),
-1);
Identifier id ("string");
- UTL_ScopedName sn (&id, 0);
+ UTL_ScopedName sn (&id, nullptr);
ACE_NEW_RETURN (this->reified_node_,
AST_String (AST_Decl::NT_string,
@@ -566,7 +563,7 @@ ast_visitor_reifying::visit_param_holder (AST_Param_Holder *node)
!iter.done ();
iter.advance (), ++i)
{
- FE_Utils::T_Param_Info *item = 0;
+ FE_Utils::T_Param_Info *item = nullptr;
iter.next (item);
ACE_CString name (item->name_);
@@ -579,7 +576,7 @@ ast_visitor_reifying::visit_param_holder (AST_Param_Holder *node)
/// name, which is what we want.
if (name == node->local_name ()->get_string ())
{
- AST_Decl **ret_ptr = 0;
+ AST_Decl **ret_ptr = nullptr;
if (t_args->get (ret_ptr, i) == 0)
{
@@ -617,7 +614,7 @@ ast_visitor_reifying::check_and_store (AST_Decl *node)
UTL_ScopedName *tmpl_tail =
this->template_module_rel_name (node);
- if (tmpl_tail != 0)
+ if (tmpl_tail != nullptr)
{
AST_Decl *d =
idl_global->scopes ().top ()->lookup_by_name (
@@ -629,7 +626,7 @@ ast_visitor_reifying::check_and_store (AST_Decl *node)
tmpl_tail->destroy ();
delete tmpl_tail;
- tmpl_tail = 0;
+ tmpl_tail = nullptr;
}
else
{
@@ -643,9 +640,9 @@ ast_visitor_reifying::template_module_rel_name (AST_Decl *d)
AST_Decl *tmp = d;
ACE_CString name (d->full_name ());
- while (tmp != 0)
+ while (tmp != nullptr)
{
- if (AST_Template_Module::narrow_from_decl (tmp) != 0)
+ if (dynamic_cast<AST_Template_Module*> (tmp) != nullptr)
{
ACE_CString head (tmp->local_name ()->get_string ());
@@ -659,6 +656,6 @@ ast_visitor_reifying::template_module_rel_name (AST_Decl *d)
tmp = ScopeAsDecl (tmp->defined_in ());
}
- return 0;
+ return nullptr;
}
diff --git a/TAO/TAO_IDL/ast/ast_visitor_tmpl_module_inst.cpp b/TAO/TAO_IDL/ast/ast_visitor_tmpl_module_inst.cpp
index 5edba8b1543..759370f41a3 100644
--- a/TAO/TAO_IDL/ast/ast_visitor_tmpl_module_inst.cpp
+++ b/TAO/TAO_IDL/ast/ast_visitor_tmpl_module_inst.cpp
@@ -54,7 +54,7 @@ ast_visitor_tmpl_module_inst::ast_visitor_tmpl_module_inst (
ast_visitor_context *ctx,
bool ref_only)
: ast_visitor (),
- tmi_ (0),
+ tmi_ (nullptr),
ctx_ (ctx),
for_eventtype_ (false),
for_finder_ (false),
@@ -62,7 +62,7 @@ ast_visitor_tmpl_module_inst::ast_visitor_tmpl_module_inst (
{
}
-ast_visitor_tmpl_module_inst::~ast_visitor_tmpl_module_inst (void)
+ast_visitor_tmpl_module_inst::~ast_visitor_tmpl_module_inst ()
{
}
@@ -80,7 +80,7 @@ ast_visitor_tmpl_module_inst::visit_scope (UTL_Scope *node)
{
AST_Decl *d = si.item ();
- if (d == 0)
+ if (d == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("ast_visitor_tmpl_module_inst::")
@@ -90,7 +90,7 @@ ast_visitor_tmpl_module_inst::visit_scope (UTL_Scope *node)
}
// Send the visitor.
- if (d == 0 || d->ast_accept (this) == -1)
+ if (d == nullptr || d->ast_accept (this) == -1)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("ast_visitor_tmpl_module_inst::")
@@ -136,11 +136,11 @@ ast_visitor_tmpl_module_inst::visit_valuetype_fwd (AST_ValueTypeFwd *)
int
ast_visitor_tmpl_module_inst::visit_component (AST_Component *node)
{
- UTL_ScopedName *base_name = 0;
+ UTL_ScopedName *base_name = nullptr;
AST_Decl *parent =
this->reify_type (node->base_component ());
- if (parent != 0)
+ if (parent != nullptr)
{
base_name = parent->name ();
}
@@ -149,14 +149,14 @@ ast_visitor_tmpl_module_inst::visit_component (AST_Component *node)
this->create_name_list (node->supports (),
node->n_supports ());
- Identifier *node_id = 0;
+ Identifier *node_id = nullptr;
ACE_NEW_RETURN (node_id,
Identifier (node->local_name ()->get_string ()),
-1);
- UTL_ScopedName *local_name = 0;
+ UTL_ScopedName *local_name = nullptr;
ACE_NEW_RETURN (local_name,
- UTL_ScopedName (node_id, 0),
+ UTL_ScopedName (node_id, nullptr),
-1);
FE_ComponentHeader header (local_name,
@@ -172,11 +172,11 @@ ast_visitor_tmpl_module_inst::visit_component (AST_Component *node)
header.supports_flat (),
header.n_supports_flat ());
- if (supports_names != 0)
+ if (supports_names != nullptr)
{
supports_names->destroy ();
delete supports_names;
- supports_names = 0;
+ supports_names = nullptr;
}
idl_global->scopes ().top ()->add_to_scope (added_comp);
@@ -235,7 +235,7 @@ ast_visitor_tmpl_module_inst::visit_template_module_ref (
int
ast_visitor_tmpl_module_inst::visit_porttype (AST_PortType *node)
{
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
AST_PortType *added_porttype =
idl_global->gen ()->create_porttype (&sn);
@@ -261,11 +261,9 @@ ast_visitor_tmpl_module_inst::visit_porttype (AST_PortType *node)
int
ast_visitor_tmpl_module_inst::visit_provides (AST_Provides *node)
{
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
- AST_Type *p_type =
- AST_Type::narrow_from_decl (
- this->reify_type (node->provides_type ()));
+ AST_Type *p_type = dynamic_cast<AST_Type*> (this->reify_type (node->provides_type ()));
AST_Provides *added_provides =
idl_global->gen ()->create_provides (&sn,
@@ -279,11 +277,9 @@ ast_visitor_tmpl_module_inst::visit_provides (AST_Provides *node)
int
ast_visitor_tmpl_module_inst::visit_uses (AST_Uses *node)
{
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
- AST_Type *u_type =
- AST_Type::narrow_from_decl (
- this->reify_type (node->uses_type ()));
+ AST_Type *u_type = dynamic_cast<AST_Type*> (this->reify_type (node->uses_type ()));
AST_Uses *added_uses =
idl_global->gen ()->create_uses (&sn,
@@ -298,10 +294,10 @@ ast_visitor_tmpl_module_inst::visit_uses (AST_Uses *node)
int
ast_visitor_tmpl_module_inst::visit_publishes (AST_Publishes *node)
{
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
AST_Type *p_type =
- AST_Type::narrow_from_decl (
+ dynamic_cast<AST_Type*> (
this->reify_type (node->publishes_type ()));
AST_Publishes *added_publishes =
@@ -316,10 +312,10 @@ ast_visitor_tmpl_module_inst::visit_publishes (AST_Publishes *node)
int
ast_visitor_tmpl_module_inst::visit_emits (AST_Emits *node)
{
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
AST_Type *e_type =
- AST_Type::narrow_from_decl (
+ dynamic_cast<AST_Type*> (
this->reify_type (node->emits_type ()));
AST_Emits *added_emits =
@@ -333,11 +329,9 @@ ast_visitor_tmpl_module_inst::visit_emits (AST_Emits *node)
int
ast_visitor_tmpl_module_inst::visit_consumes (AST_Consumes *node)
{
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
- AST_Type *c_type =
- AST_Type::narrow_from_decl (
- this->reify_type (node->consumes_type ()));
+ AST_Type *c_type = dynamic_cast<AST_Type*> (this->reify_type (node->consumes_type ()));
AST_Consumes *added_consumes =
idl_global->gen ()->create_consumes (&sn, c_type);
@@ -351,11 +345,9 @@ int
ast_visitor_tmpl_module_inst::visit_extended_port (
AST_Extended_Port *node)
{
- AST_PortType *pt =
- AST_PortType::narrow_from_decl (
- this->reify_type (node->port_type ()));
+ AST_PortType *pt = dynamic_cast<AST_PortType*> (this->reify_type (node->port_type ()));
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
AST_Extended_Port *added_ep =
idl_global->gen ()->create_extended_port (&sn, pt);
@@ -369,11 +361,9 @@ int
ast_visitor_tmpl_module_inst::visit_mirror_port (
AST_Mirror_Port *node)
{
- AST_PortType *pt =
- AST_PortType::narrow_from_decl (
- this->reify_type (node->port_type ()));
+ AST_PortType *pt = dynamic_cast<AST_PortType*> (this->reify_type (node->port_type ()));
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
AST_Mirror_Port *added_mp =
idl_global->gen ()->create_mirror_port (&sn, pt);
@@ -386,11 +376,9 @@ ast_visitor_tmpl_module_inst::visit_mirror_port (
int
ast_visitor_tmpl_module_inst::visit_connector (AST_Connector *node)
{
- AST_Connector *parent =
- AST_Connector::narrow_from_decl (
- this->reify_type (node->base_connector ()));
+ AST_Connector *parent = dynamic_cast<AST_Connector*> (this->reify_type (node->base_connector ()));
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
AST_Connector *added_connector =
idl_global->gen ()->create_connector (&sn, parent);
@@ -416,11 +404,11 @@ ast_visitor_tmpl_module_inst::visit_connector (AST_Connector *node)
int
ast_visitor_tmpl_module_inst::visit_home (AST_Home *node)
{
- UTL_ScopedName *base_name = 0;
+ UTL_ScopedName *base_name = nullptr;
AST_Decl *parent =
this->reify_type (node->base_home ());
- if (parent != 0)
+ if (parent != nullptr)
{
base_name = parent->name ();
}
@@ -429,36 +417,32 @@ ast_visitor_tmpl_module_inst::visit_home (AST_Home *node)
this->create_name_list (node->supports (),
node->n_supports ());
- UTL_ScopedName *managed_comp_name = 0;
+ UTL_ScopedName *managed_comp_name = nullptr;
- AST_Component *managed_comp =
- AST_Component::narrow_from_decl (
- this->reify_type (node->managed_component ()));
+ AST_Component *managed_comp = dynamic_cast<AST_Component*> (this->reify_type (node->managed_component ()));
- if (managed_comp != 0)
+ if (managed_comp != nullptr)
{
managed_comp_name = managed_comp->name ();
}
- UTL_ScopedName *p_key_name = 0;
+ UTL_ScopedName *p_key_name = nullptr;
- AST_ValueType *p_key =
- AST_ValueType::narrow_from_decl (
- this->reify_type (node->primary_key ()));
+ AST_ValueType *p_key = dynamic_cast<AST_ValueType*> (this->reify_type (node->primary_key ()));
- if (p_key != 0)
+ if (p_key != nullptr)
{
p_key_name = p_key->name ();
}
- Identifier *node_id = 0;
+ Identifier *node_id = nullptr;
ACE_NEW_RETURN (node_id,
Identifier (node->local_name ()->get_string ()),
-1);
- UTL_ScopedName *local_name = 0;
+ UTL_ScopedName *local_name = nullptr;
ACE_NEW_RETURN (local_name,
- UTL_ScopedName (node_id, 0),
+ UTL_ScopedName (node_id, nullptr),
-1);
FE_HomeHeader header (local_name,
@@ -477,11 +461,11 @@ ast_visitor_tmpl_module_inst::visit_home (AST_Home *node)
header.supports_flat (),
header.n_supports_flat ());
- if (supports_names != 0)
+ if (supports_names != nullptr)
{
supports_names->destroy ();
delete supports_names;
- supports_names = 0;
+ supports_names = nullptr;
}
idl_global->scopes ().top ()->add_to_scope (added_home);
@@ -525,7 +509,7 @@ ast_visitor_tmpl_module_inst::visit_expression (AST_Expression *)
int
ast_visitor_tmpl_module_inst::visit_enum (AST_Enum *node)
{
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
AST_Enum *added_enum =
idl_global->gen ()->create_enum (&sn,
@@ -553,7 +537,7 @@ ast_visitor_tmpl_module_inst::visit_enum (AST_Enum *node)
int
ast_visitor_tmpl_module_inst::visit_union (AST_Union *node)
{
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
AST_Union *added_union =
idl_global->gen ()->create_union (node->disc_type (),
@@ -593,10 +577,10 @@ int
ast_visitor_tmpl_module_inst::visit_union_branch (AST_UnionBranch *node)
{
AST_Type *ft =
- AST_Type::narrow_from_decl (
+ dynamic_cast<AST_Type*> (
this->reify_type (node->field_type ()));
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
// The union branch owns its label list so we have to copy it.
UTL_LabelList *ll = node->labels ()->copy ();
@@ -608,7 +592,7 @@ ast_visitor_tmpl_module_inst::visit_union_branch (AST_UnionBranch *node)
// add_to_scope() so we need to reuse it.
AST_Union *u =
- AST_Union::narrow_from_scope (idl_global->scopes ().top ());
+ dynamic_cast<AST_Union*> (idl_global->scopes ().top ());
u->fe_add_union_branch (added_branch);
@@ -624,7 +608,7 @@ ast_visitor_tmpl_module_inst::visit_union_label (AST_UnionLabel *)
int
ast_visitor_tmpl_module_inst::visit_enum_val (AST_EnumVal *node)
{
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
AST_EnumVal *added_enum_val =
idl_global->gen ()->create_enum_val (
@@ -675,7 +659,7 @@ ast_visitor_tmpl_module_inst::visit_native (AST_Native *)
int
ast_visitor_tmpl_module_inst::visit_module (AST_Module *node)
{
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
AST_Module *added_module =
idl_global->gen ()->create_module (idl_global->scopes ().top (),
@@ -684,7 +668,7 @@ ast_visitor_tmpl_module_inst::visit_module (AST_Module *node)
added_module->from_inst (this->tmi_);
AST_Module *m =
- AST_Module::narrow_from_scope (idl_global->scopes ().top ());
+ dynamic_cast<AST_Module*> (idl_global->scopes ().top ());
m->fe_add_module (added_module);
@@ -693,7 +677,7 @@ ast_visitor_tmpl_module_inst::visit_module (AST_Module *node)
AST_Template_Module_Ref *ref = node->from_ref ();
UTL_StrList const *old_refs = idl_global->alias_params ();
- if (ref != 0)
+ if (ref != nullptr)
{
added_module->from_ref (ref);
idl_global->alias_params (ref->param_refs ());
@@ -752,7 +736,7 @@ ast_visitor_tmpl_module_inst::visit_template_module_inst (
// Add the new module to the scope containing the template
// module instantiation.
AST_Module *m =
- AST_Module::narrow_from_scope (idl_global->scopes ().top ());
+ dynamic_cast<AST_Module*> (idl_global->scopes ().top ());
m->fe_add_module (instance);
@@ -775,7 +759,7 @@ ast_visitor_tmpl_module_inst::visit_template_module_inst (
// need to know this, for example while visiting an IDL module,
// to decide whether to create an implied IDL module or just
// visit its scope.
- this->ctx_->template_args (0);
+ this->ctx_->template_args (nullptr);
// Restore the scope stack.
idl_global->scopes ().pop ();
@@ -801,22 +785,22 @@ ast_visitor_tmpl_module_inst::visit_valuetype (AST_ValueType *node)
this->create_name_list (node->supports (),
node->n_supports ());
- Identifier *node_id = 0;
+ Identifier *node_id = nullptr;
ACE_NEW_RETURN (node_id,
Identifier (node->local_name ()->get_string ()),
-1);
- UTL_ScopedName *local_name = 0;
+ UTL_ScopedName *local_name = nullptr;
ACE_NEW_RETURN (local_name,
- UTL_ScopedName (node_id, 0),
+ UTL_ScopedName (node_id, nullptr),
-1);
- AST_ValueType *added_vtype = 0;
+ AST_ValueType *added_vtype = nullptr;
FE_OBVHeader header (local_name,
parent_names,
supports_names,
- (parent_names != 0
+ (parent_names != nullptr
? parent_names->truncatable ()
: false),
this->for_eventtype_);
@@ -854,18 +838,18 @@ ast_visitor_tmpl_module_inst::visit_valuetype (AST_ValueType *node)
false);
}
- if (parent_names != 0)
+ if (parent_names != nullptr)
{
parent_names->destroy ();
delete parent_names;
- parent_names = 0;
+ parent_names = nullptr;
}
- if (supports_names != 0)
+ if (supports_names != nullptr)
{
supports_names->destroy ();
delete supports_names;
- supports_names = 0;
+ supports_names = nullptr;
}
idl_global->scopes ().top ()->add_to_scope (added_vtype);
@@ -898,14 +882,14 @@ ast_visitor_tmpl_module_inst::visit_interface (AST_Interface *node)
this->create_name_list (node->inherits (),
node->n_inherits ());
- Identifier *node_id = 0;
+ Identifier *node_id = nullptr;
ACE_NEW_RETURN (node_id,
Identifier (node->local_name ()->get_string ()),
-1);
- UTL_ScopedName *local_name = 0;
+ UTL_ScopedName *local_name = nullptr;
ACE_NEW_RETURN (local_name,
- UTL_ScopedName (node_id, 0),
+ UTL_ScopedName (node_id, nullptr),
-1);
FE_InterfaceHeader header (local_name,
@@ -923,11 +907,11 @@ ast_visitor_tmpl_module_inst::visit_interface (AST_Interface *node)
header.is_local (),
header.is_abstract ());
- if (parent_names != 0)
+ if (parent_names != nullptr)
{
parent_names->destroy ();
delete parent_names;
- parent_names = 0;
+ parent_names = nullptr;
}
idl_global->scopes ().top ()->add_to_scope (added_iface);
@@ -959,7 +943,7 @@ int
ast_visitor_tmpl_module_inst::visit_attribute (AST_Attribute *node)
{
AST_Type *ft =
- AST_Type::narrow_from_decl (
+ dynamic_cast<AST_Type*> (
this->reify_type (node->field_type ()));
AST_Attribute *added_attr =
@@ -988,11 +972,11 @@ int
ast_visitor_tmpl_module_inst::visit_operation (AST_Operation *node)
{
AST_Type *rt =
- AST_Type::narrow_from_decl (
+ dynamic_cast<AST_Type*> (
this->reify_type (node->return_type ()));
Identifier id (node->local_name ()->get_string ());
- UTL_ScopedName sn (&id, 0);
+ UTL_ScopedName sn (&id, nullptr);
AST_Operation *added_op =
idl_global->gen ()->create_operation (rt,
@@ -1030,10 +1014,10 @@ int
ast_visitor_tmpl_module_inst::visit_argument (AST_Argument *node)
{
AST_Type *t =
- AST_Type::narrow_from_decl (
+ dynamic_cast<AST_Type*> (
this->reify_type (node->field_type ()));
- if (t == 0)
+ if (t == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("ast_visitor_tmpl_module_inst::")
@@ -1056,10 +1040,10 @@ int
ast_visitor_tmpl_module_inst::visit_typedef (AST_Typedef *node)
{
AST_Type *bt =
- AST_Type::narrow_from_decl (
+ dynamic_cast<AST_Type*> (
this->reify_type (node->base_type ()));
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
AST_Typedef *added_td =
idl_global->gen ()->create_typedef (bt,
@@ -1078,10 +1062,10 @@ ast_visitor_tmpl_module_inst::visit_constant (AST_Constant *node)
AST_Param_Holder *ph =
node->constant_value ()->param_holder ();
- AST_Expression *v = 0;
+ AST_Expression *v = nullptr;
AST_Expression::ExprType et = node->et ();
- if (ph != 0)
+ if (ph != nullptr)
{
ast_visitor_reifying rv (this->ctx_);
@@ -1096,7 +1080,7 @@ ast_visitor_tmpl_module_inst::visit_constant (AST_Constant *node)
}
AST_Constant *c =
- AST_Constant::narrow_from_decl (rv.reified_node ());
+ dynamic_cast<AST_Constant*> (rv.reified_node ());
/// We don't use the reified node's ExprType here, since
/// it was created from a template arg that (for const
@@ -1131,7 +1115,7 @@ ast_visitor_tmpl_module_inst::visit_constant (AST_Constant *node)
int
ast_visitor_tmpl_module_inst::visit_structure (AST_Structure *node)
{
- UTL_ScopedName sn (node->name ()->last_component (), 0);
+ UTL_ScopedName sn (node->name ()->last_component (), nullptr);
AST_Structure *added_struct =
idl_global->gen ()->create_structure (&sn,
@@ -1162,7 +1146,7 @@ int
ast_visitor_tmpl_module_inst::visit_field (AST_Field *node)
{
AST_Type *t =
- AST_Type::narrow_from_decl (
+ dynamic_cast<AST_Type*> (
this->reify_type (node->field_type ()));
AST_Field *added_field =
@@ -1179,9 +1163,9 @@ int
ast_visitor_tmpl_module_inst::visit_factory (AST_Factory *node)
{
Identifier id (node->local_name ()->get_string ());
- UTL_ScopedName sn (&id, 0);
+ UTL_ScopedName sn (&id, nullptr);
- AST_Factory *added_factory = 0;
+ AST_Factory *added_factory = nullptr;
if (this->for_finder_)
{
@@ -1232,9 +1216,9 @@ ast_visitor_tmpl_module_inst::visit_finder (AST_Finder *node)
AST_Decl *
ast_visitor_tmpl_module_inst::reify_type (AST_Decl *d)
{
- if (d == 0)
+ if (d == nullptr)
{
- return 0;
+ return nullptr;
}
if (this->ref_only_)
@@ -1265,7 +1249,7 @@ ast_visitor_tmpl_module_inst::reify_type (AST_Decl *d)
ACE_TEXT ("visitor failed on %C\n"),
d->full_name ()));
- return 0;
+ return nullptr;
}
return rv.reified_node ();
@@ -1275,26 +1259,26 @@ UTL_ExceptList *
ast_visitor_tmpl_module_inst::reify_exception_list (
UTL_ExceptList *orig)
{
- if (orig == 0)
+ if (orig == nullptr)
{
- return 0;
+ return nullptr;
}
- UTL_ExceptList *retval = 0;
+ UTL_ExceptList *retval = nullptr;
for (UTL_ExceptlistActiveIterator i (orig);
!i.is_done ();
i.next ())
{
AST_Type *ex =
- AST_Type::narrow_from_decl (this->reify_type (i.item ()));
+ dynamic_cast<AST_Type*> (this->reify_type (i.item ()));
- UTL_ExceptList *ex_list = 0;
+ UTL_ExceptList *ex_list = nullptr;
ACE_NEW_RETURN (ex_list,
- UTL_ExceptList (ex, 0),
- 0);
+ UTL_ExceptList (ex, nullptr),
+ nullptr);
- if (retval == 0)
+ if (retval == nullptr)
{
retval = ex_list;
}
@@ -1311,22 +1295,22 @@ UTL_NameList *
ast_visitor_tmpl_module_inst::create_name_list (AST_Type **list,
long length)
{
- UTL_NameList *retval = 0;
+ UTL_NameList *retval = nullptr;
for (long i = 0; i < length; ++i)
{
AST_Type *item =
- AST_Type::narrow_from_decl (this->reify_type (list[i]));
+ dynamic_cast<AST_Type*> (this->reify_type (list[i]));
// We copy each name added so we can call destroy() on the
// list, which disposes of the contents as well as the
// nested tail pointers.
- UTL_NameList *name_item = 0;
+ UTL_NameList *name_item = nullptr;
ACE_NEW_RETURN (name_item,
- UTL_NameList (item->name ()->copy (), 0),
- 0);
+ UTL_NameList (item->name ()->copy (), nullptr),
+ nullptr);
- if (retval == 0)
+ if (retval == nullptr)
{
retval = name_item;
}
diff --git a/TAO/TAO_IDL/ast/ast_visitor_tmpl_module_ref.cpp b/TAO/TAO_IDL/ast/ast_visitor_tmpl_module_ref.cpp
index 39568129e3b..e96bb6a8121 100644
--- a/TAO/TAO_IDL/ast/ast_visitor_tmpl_module_ref.cpp
+++ b/TAO/TAO_IDL/ast/ast_visitor_tmpl_module_ref.cpp
@@ -22,7 +22,7 @@ ast_visitor_tmpl_module_ref::ast_visitor_tmpl_module_ref (
{
}
-ast_visitor_tmpl_module_ref::~ast_visitor_tmpl_module_ref (void)
+ast_visitor_tmpl_module_ref::~ast_visitor_tmpl_module_ref ()
{
}
@@ -52,7 +52,7 @@ ast_visitor_tmpl_module_ref::visit_template_module_ref (
// to the module of the same name in the instantiated template
// module scope (see ast_visitor_reifying::check_and_store()
// and ast_visitor_reifying::template_module_rel_name()).
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
AST_Module *added_module =
idl_global->gen ()->create_module (idl_global->scopes (). top (),
@@ -70,7 +70,7 @@ ast_visitor_tmpl_module_ref::visit_template_module_ref (
/// that's what will be search for any matches. We save the
/// current list to restore after the traversal.
- if (idl_global->for_new_holder () == 0)
+ if (idl_global->for_new_holder () == nullptr)
{
idl_global->for_new_holder (
const_cast<UTL_StrList *> (
@@ -102,7 +102,7 @@ ast_visitor_tmpl_module_ref::visit_template_module_ref (
idl_global->current_params (
const_cast<FE_Utils::T_PARAMLIST_INFO *> (
old_params));
- idl_global->for_new_holder (0);
+ idl_global->for_new_holder (nullptr);
idl_global->alias_params (const_cast<UTL_StrList *> (old_refs));
idl_global->scopes ().pop ();
diff --git a/TAO/TAO_IDL/be/be_argument.cpp b/TAO/TAO_IDL/be/be_argument.cpp
index 9d1ceb84907..dc26f7e01e1 100644
--- a/TAO/TAO_IDL/be/be_argument.cpp
+++ b/TAO/TAO_IDL/be/be_argument.cpp
@@ -42,11 +42,11 @@ be_argument::be_argument (AST_Argument::Direction d,
// declared in an included file UNLESS the enclosing
// interface is abstract, in which case we regenerate the
// operation.
- if (dcl != 0
+ if (dcl != nullptr
&& !dcl->is_local ()
&& (idl_global->in_main_file () || dcl->is_abstract ()))
{
- be_type *bt = be_type::narrow_from_decl (ft);
+ be_type *bt = dynamic_cast<be_type*> (ft);
bt->seen_in_operation (true);
be_util::set_arg_seen_bit (bt);
idl_global->need_skeleton_includes_ = true;
@@ -61,10 +61,8 @@ be_argument::accept (be_visitor *visitor)
}
void
-be_argument::destroy (void)
+be_argument::destroy ()
{
this->be_decl::destroy ();
this->AST_Argument::destroy ();
}
-
-IMPL_NARROW_FROM_DECL (be_argument)
diff --git a/TAO/TAO_IDL/be/be_array.cpp b/TAO/TAO_IDL/be/be_array.cpp
index 5c7ef0972f2..beb3256d603 100644
--- a/TAO/TAO_IDL/be/be_array.cpp
+++ b/TAO/TAO_IDL/be/be_array.cpp
@@ -52,24 +52,24 @@ be_array::be_array (UTL_ScopedName *n,
}
}
-be_array::~be_array (void)
+be_array::~be_array ()
{
}
int
-be_array::create_name (void)
+be_array::create_name ()
{
char namebuf [NAMEBUFSIZE];
unsigned long i;
- UTL_ScopedName *n = 0;
- be_decl *scope = 0;
+ UTL_ScopedName *n = nullptr;
+ be_decl *scope = nullptr;
ACE_OS::memset (namebuf,
'\0',
NAMEBUFSIZE);
// Retrieve the base type.
// The name always starts this way.
- be_type *bt = be_type::narrow_from_decl (this->base_type ());
+ be_type *bt = dynamic_cast<be_type*> (this->base_type ());
if (!bt)
{
@@ -90,7 +90,7 @@ be_array::create_name (void)
AST_Expression *expr = this->dims ()[i];
// Dimension value.
- if ((expr == 0) || ((expr != 0) && (expr->ev () == 0)))
+ if ((expr == nullptr) || ((expr != nullptr) && (expr->ev () == nullptr)))
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_array::"
@@ -116,22 +116,22 @@ be_array::create_name (void)
}
// Now see if we have a fully scoped name and if so, generate one.
- scope = be_scope::narrow_from_scope (this->defined_in ())->decl ();
+ scope = dynamic_cast<be_scope*> (this->defined_in ())->decl ();
if (scope)
{
// Make a copy of the enclosing scope's name.
n = (UTL_ScopedName *)scope->name ()->copy ();
- Identifier *id = 0;
+ Identifier *id = nullptr;
ACE_NEW_RETURN (id,
Identifier (ACE_OS::strdup (namebuf)),
-1);
- UTL_ScopedName *sn = 0;
+ UTL_ScopedName *sn = nullptr;
ACE_NEW_RETURN (sn,
UTL_ScopedName (id,
- 0),
+ nullptr),
-1);
// Add our local name as the last component.
@@ -151,43 +151,43 @@ be_array::create_name (void)
// Overriden method.
void
-be_array::compute_tc_name (void)
+be_array::compute_tc_name ()
{
// Array TypeCodes can only be accessed through an alias
// TypeCode. Generate a TypeCode name that is meant for internal
// use alone.
- Identifier * tao_id = 0;
+ Identifier * tao_id = nullptr;
ACE_NEW (tao_id,
Identifier ("TAO"));
ACE_NEW (this->tc_name_,
UTL_ScopedName (tao_id,
- 0));
+ nullptr));
ACE_CString local_tc_name =
ACE_CString ("tc_")
+ ACE_CString (this->flat_name ());
- Identifier * typecode_scope = 0;
+ Identifier * typecode_scope = nullptr;
ACE_NEW (typecode_scope,
Identifier ("TypeCode"));
- UTL_ScopedName * tc_scope_conc_name = 0;
+ UTL_ScopedName * tc_scope_conc_name = nullptr;
ACE_NEW (tc_scope_conc_name,
UTL_ScopedName (typecode_scope,
- 0));
+ nullptr));
this->tc_name_->nconc (tc_scope_conc_name);
- Identifier * id = 0;
+ Identifier * id = nullptr;
ACE_NEW (id,
Identifier (local_tc_name.c_str ()));
- UTL_ScopedName * conc_name = 0;
+ UTL_ScopedName * conc_name = nullptr;
ACE_NEW (conc_name,
UTL_ScopedName (id,
- 0));
+ nullptr));
this->tc_name_->nconc (conc_name);
}
@@ -208,7 +208,7 @@ be_array::gen_dimensions (TAO_OutStream *os,
AST_Expression *expr = this->dims ()[i];
// Dimension value.
- if ((expr == 0) || ((expr != 0) && (expr->ev () == 0)))
+ if ((expr == nullptr) || ((expr != nullptr) && (expr->ev () == nullptr)))
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_array::"
@@ -239,7 +239,7 @@ void
be_array::gen_ostream_operator (TAO_OutStream *os,
bool use_underscore)
{
- be_scope* scope = be_scope::narrow_from_scope (this->defined_in ());
+ be_scope* scope = dynamic_cast<be_scope*> (this->defined_in ());
be_decl* parent = scope->decl ();
ACE_CString arg_name (ACE_CString (parent->full_name ())
+ "::"
@@ -288,7 +288,7 @@ be_array::gen_ostream_operator (TAO_OutStream *os,
instance_name += "]";
}
- be_type *bt = be_type::narrow_from_decl (this->base_type ());
+ be_type *bt = dynamic_cast<be_type*> (this->base_type ());
bt->gen_member_ostream_operator (os,
instance_name.c_str (),
use_underscore,
@@ -314,7 +314,7 @@ be_array::gen_member_ostream_operator (TAO_OutStream *os,
bool use_underscore,
bool accessor)
{
- be_scope* scope = be_scope::narrow_from_scope (this->defined_in ());
+ be_scope* scope = dynamic_cast<be_scope*> (this->defined_in ());
be_decl* parent = scope->decl ();
ACE_CString decl_name (ACE_CString (parent->full_name ())
+ "::"
@@ -341,12 +341,8 @@ be_array::accept (be_visitor *visitor)
}
void
-be_array::destroy (void)
+be_array::destroy ()
{
this->be_type::destroy ();
this->AST_Array::destroy ();
}
-
-
-
-IMPL_NARROW_FROM_DECL (be_array)
diff --git a/TAO/TAO_IDL/be/be_attribute.cpp b/TAO/TAO_IDL/be/be_attribute.cpp
index 3e0931ae0bf..76fb0955062 100644
--- a/TAO/TAO_IDL/be/be_attribute.cpp
+++ b/TAO/TAO_IDL/be/be_attribute.cpp
@@ -44,16 +44,14 @@ be_attribute::be_attribute (bool ro,
{
// For the return types of the two operations
// generated from this attribute.
- be_util::set_arg_seen_bit (be_type::narrow_from_decl (ft));
+ be_util::set_arg_seen_bit (dynamic_cast<be_type*> (ft));
}
}
be_type *
-be_attribute::field_type (void) const
+be_attribute::field_type () const
{
- return
- be_type::narrow_from_decl (
- this->AST_Attribute::field_type ());
+ return dynamic_cast<be_type*> (this->AST_Attribute::field_type ());
}
int
@@ -63,10 +61,8 @@ be_attribute::accept (be_visitor *visitor)
}
void
-be_attribute::destroy (void)
+be_attribute::destroy ()
{
this->be_decl::destroy ();
this->AST_Attribute::destroy ();
}
-
-IMPL_NARROW_FROM_DECL (be_attribute)
diff --git a/TAO/TAO_IDL/be/be_codegen.cpp b/TAO/TAO_IDL/be/be_codegen.cpp
index 4dfbf131304..876c01a32e2 100644
--- a/TAO/TAO_IDL/be/be_codegen.cpp
+++ b/TAO/TAO_IDL/be/be_codegen.cpp
@@ -28,38 +28,38 @@
#include "ace/OS_NS_unistd.h"
#include "ace/Numeric_Limits.h"
-TAO_CodeGen * tao_cg = 0;
-
-TAO_CodeGen::TAO_CodeGen (void)
- : client_header_ (0),
- client_stubs_ (0),
- client_inline_ (0),
- server_header_ (0),
- implementation_header_(0),
- implementation_skeleton_(0),
- server_template_header_ (0),
- server_skeletons_ (0),
- server_template_skeletons_ (0),
- anyop_header_ (0),
- anyop_source_ (0),
- gperf_input_stream_ (0),
- ciao_svnt_header_ (0),
- ciao_svnt_source_ (0),
- ciao_svnt_template_header_ (0),
- ciao_svnt_template_source_ (0),
- ciao_exec_header_ (0),
- ciao_exec_source_ (0),
- ciao_exec_idl_ (0),
- ciao_conn_header_ (0),
- ciao_conn_source_ (0),
- ciao_ami_conn_idl_ (0),
- gperf_input_filename_ (0),
+TAO_CodeGen * tao_cg = nullptr;
+
+TAO_CodeGen::TAO_CodeGen ()
+ : client_header_ (nullptr),
+ client_stubs_ (nullptr),
+ client_inline_ (nullptr),
+ server_header_ (nullptr),
+ implementation_header_(nullptr),
+ implementation_skeleton_(nullptr),
+ server_template_header_ (nullptr),
+ server_skeletons_ (nullptr),
+ server_template_skeletons_ (nullptr),
+ anyop_header_ (nullptr),
+ anyop_source_ (nullptr),
+ gperf_input_stream_ (nullptr),
+ ciao_svnt_header_ (nullptr),
+ ciao_svnt_source_ (nullptr),
+ ciao_svnt_template_header_ (nullptr),
+ ciao_svnt_template_source_ (nullptr),
+ ciao_exec_header_ (nullptr),
+ ciao_exec_source_ (nullptr),
+ ciao_exec_idl_ (nullptr),
+ ciao_conn_header_ (nullptr),
+ ciao_conn_source_ (nullptr),
+ ciao_ami_conn_idl_ (nullptr),
+ gperf_input_filename_ (nullptr),
strategy_ (TAO_PERFECT_HASH)
{
}
// destructor
-TAO_CodeGen::~TAO_CodeGen (void)
+TAO_CodeGen::~TAO_CodeGen ()
{
}
@@ -123,7 +123,7 @@ TAO_CodeGen::downcase (const char *str)
int
TAO_CodeGen::start_client_header (const char *fname)
{
- if (0 == fname)
+ if (nullptr == fname)
{
// Bad file name.
return -1;
@@ -173,14 +173,14 @@ TAO_CodeGen::start_client_header (const char *fname)
"_H_");
}
- if (be_global->pre_include () != 0)
+ if (be_global->pre_include () != nullptr)
{
*this->client_header_ << "#include /**/ \""
<< be_global->pre_include ()
<< "\"\n\n";
}
- if (be_global->include_guard () != 0)
+ if (be_global->include_guard () != nullptr)
{
*this->client_header_ << "#ifndef "
<< be_global->include_guard ()
@@ -189,7 +189,7 @@ TAO_CodeGen::start_client_header (const char *fname)
*this->client_header_ << "#error "
<< "You should not include " << fname;
- if (be_global->safe_include () != 0)
+ if (be_global->safe_include () != nullptr)
{
*this->client_header_ << ", use " << be_global->safe_include ();
}
@@ -226,14 +226,14 @@ TAO_CodeGen::start_client_header (const char *fname)
// Other include files.
- if (be_global->stub_export_include () != 0)
+ if (be_global->stub_export_include () != nullptr)
{
*this->client_header_ << "\n#include /**/ \""
<< be_global->stub_export_include ()
<< "\"";
}
- if (be_global->unique_include () != 0)
+ if (be_global->unique_include () != nullptr)
{
*this->client_header_ << "\n#include \""
<< be_global->unique_include ()
@@ -276,7 +276,7 @@ TAO_CodeGen::start_client_header (const char *fname)
idl_name_str.destroy ();
// Sanity check and then print.
- if (client_hdr != 0)
+ if (client_hdr != nullptr)
{
this->client_header_->print ("\n#include \"%s\"",
client_hdr);
@@ -296,7 +296,7 @@ TAO_CodeGen::start_client_header (const char *fname)
!i.done ();
i.advance ())
{
- char **tmp = 0;
+ char **tmp = nullptr;
i.next (tmp);
// Make a String out of it.
@@ -310,7 +310,7 @@ TAO_CodeGen::start_client_header (const char *fname)
idl_name_str.destroy ();
// Sanity check and then print.
- if (client_hdr != 0)
+ if (client_hdr != nullptr)
{
this->client_header_->print ("\n#include \"%s\"",
client_hdr);
@@ -341,7 +341,7 @@ TAO_CodeGen::start_client_header (const char *fname)
// Get the client header stream.
TAO_OutStream *
-TAO_CodeGen::client_header (void)
+TAO_CodeGen::client_header ()
{
return this->client_header_;
}
@@ -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 */";
}
@@ -392,7 +392,7 @@ TAO_CodeGen::start_client_stubs (const char *fname)
// Get the client stubs stream.
TAO_OutStream *
-TAO_CodeGen::client_stubs (void)
+TAO_CodeGen::client_stubs ()
{
return this->client_stubs_;
}
@@ -425,7 +425,7 @@ TAO_CodeGen::start_client_inline (const char *fname)
// Get the client inline stream.
TAO_OutStream *
-TAO_CodeGen::client_inline (void)
+TAO_CodeGen::client_inline ()
{
return this->client_inline_;
}
@@ -460,7 +460,7 @@ TAO_CodeGen::start_server_header (const char *fname)
"_TAO_IDL_",
"_H_");
- if (be_global->pre_include () != 0)
+ if (be_global->pre_include () != nullptr)
{
*this->server_header_ << "#include /**/ \""
<< be_global->pre_include ()
@@ -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 ();
@@ -523,7 +523,7 @@ TAO_CodeGen::start_server_header (const char *fname)
this->gen_skel_hdr_includes ();
- if (be_global->skel_export_include () != 0)
+ if (be_global->skel_export_include () != nullptr)
{
*this->server_header_ << "\n\n#include /**/ \""
<< be_global->skel_export_include ()
@@ -549,7 +549,7 @@ TAO_CodeGen::start_server_header (const char *fname)
// Get the server header stream.
TAO_OutStream *
-TAO_CodeGen::server_header (void)
+TAO_CodeGen::server_header ()
{
return this->server_header_;
}
@@ -591,7 +591,7 @@ TAO_CodeGen::start_server_template_header (const char *fname)
"_TAO_IDL_",
"_H_");
- if (be_global->pre_include () != 0)
+ if (be_global->pre_include () != nullptr)
{
*this->server_template_header_ << "#include /**/ \""
<< be_global->pre_include ()
@@ -608,7 +608,7 @@ TAO_CodeGen::start_server_template_header (const char *fname)
// Get the server header stream.
TAO_OutStream *
-TAO_CodeGen::server_template_header (void)
+TAO_CodeGen::server_template_header ()
{
return this->server_template_header_;
}
@@ -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 ();
@@ -670,7 +670,7 @@ TAO_CodeGen::start_server_skeletons (const char *fname)
// Get the server skeletons stream.
TAO_OutStream *
-TAO_CodeGen::server_skeletons (void)
+TAO_CodeGen::server_skeletons ()
{
return this->server_skeletons_;
}
@@ -723,7 +723,7 @@ TAO_CodeGen::start_server_template_skeletons (const char *fname)
// Get the server template skeletons stream.
TAO_OutStream *
-TAO_CodeGen::server_template_skeletons (void)
+TAO_CodeGen::server_template_skeletons ()
{
return this->server_template_skeletons_;
}
@@ -786,7 +786,7 @@ TAO_CodeGen::start_anyop_header (const char *fname)
"_TAO_IDL_",
"_H_");
- if (be_global->pre_include () != 0)
+ if (be_global->pre_include () != nullptr)
{
*this->anyop_header_ << "#include /**/ \""
<< be_global->pre_include ()
@@ -794,13 +794,13 @@ TAO_CodeGen::start_anyop_header (const char *fname)
}
// If anyop macro hasn't been set, default to stub macro.
- if (be_global->anyop_export_include () != 0)
+ if (be_global->anyop_export_include () != nullptr)
{
*this->anyop_header_ << "\n#include /**/ \""
<< be_global->anyop_export_include ()
<< "\"";
}
- else if (be_global->stub_export_include () != 0)
+ else if (be_global->stub_export_include () != nullptr)
{
*this->anyop_header_ << "\n#include /**/ \""
<< be_global->stub_export_include ()
@@ -822,7 +822,7 @@ TAO_CodeGen::start_anyop_header (const char *fname)
{
const char *stub_incl_dir = be_global->stub_include_dir ();
- if (stub_incl_dir == 0)
+ if (stub_incl_dir == nullptr)
{
tao_prefix = "tao/";
}
@@ -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_);
@@ -972,13 +972,13 @@ TAO_CodeGen::start_anyop_source (const char *fname)
}
TAO_OutStream *
-TAO_CodeGen::anyop_header (void)
+TAO_CodeGen::anyop_header ()
{
return this->anyop_header_;
}
TAO_OutStream *
-TAO_CodeGen::anyop_source (void)
+TAO_CodeGen::anyop_source ()
{
return this->anyop_source_;
}
@@ -1021,7 +1021,7 @@ TAO_CodeGen::start_ciao_svnt_header (const char *fname)
"CIAO_SESSION_",
"_H_");
- if (be_global->pre_include () != 0)
+ if (be_global->pre_include () != nullptr)
{
os << "#include /**/ \""
<< be_global->pre_include ()
@@ -1032,13 +1032,13 @@ TAO_CodeGen::start_ciao_svnt_header (const char *fname)
// generated code in the same library, using the skel export macro,
// so the values for the servant export default to the skel values.
// Eventually, there should be a way to completely decouple them.
- if (be_global->svnt_export_include () != 0)
+ if (be_global->svnt_export_include () != nullptr)
{
os << "\n#include /**/ \""
<< be_global->svnt_export_include ()
<< "\"\n";
}
- else if (be_global->skel_export_include () != 0)
+ else if (be_global->skel_export_include () != nullptr)
{
os << "\n#include /**/ \""
<< be_global->skel_export_include ()
@@ -1053,7 +1053,7 @@ TAO_CodeGen::start_ciao_svnt_header (const char *fname)
<< be_nl;
- char **path_tmp = 0;
+ char **path_tmp = nullptr;
for (ACE_Unbounded_Queue_Iterator<char *>riter (
idl_global->ciao_lem_file_names ());
@@ -1167,7 +1167,7 @@ TAO_CodeGen::start_ciao_svnt_template_header (const char *fname)
"CIAO_SERVANT_",
"_H_");
- if (be_global->pre_include () != 0)
+ if (be_global->pre_include () != nullptr)
{
os << "#include /**/ \""
<< be_global->pre_include ()
@@ -1178,13 +1178,13 @@ TAO_CodeGen::start_ciao_svnt_template_header (const char *fname)
// generated code in the same library, using the skel export macro,
// so the values for the servant export default to the skel values.
// Eventually, there should be a way to completely decouple them.
- if (be_global->svnt_export_include () != 0)
+ if (be_global->svnt_export_include () != nullptr)
{
os << "\n#include /**/ \""
<< be_global->svnt_export_include ()
<< "\"\n";
}
- else if (be_global->skel_export_include () != 0)
+ else if (be_global->skel_export_include () != nullptr)
{
os << "\n#include /**/ \""
<< be_global->skel_export_include ()
@@ -1255,25 +1255,25 @@ TAO_CodeGen::start_ciao_svnt_template_source (const char *fname)
}
TAO_OutStream *
-TAO_CodeGen::ciao_svnt_header (void)
+TAO_CodeGen::ciao_svnt_header ()
{
return this->ciao_svnt_header_;
}
TAO_OutStream *
-TAO_CodeGen::ciao_svnt_source (void)
+TAO_CodeGen::ciao_svnt_source ()
{
return this->ciao_svnt_source_;
}
TAO_OutStream *
-TAO_CodeGen::ciao_svnt_template_header (void)
+TAO_CodeGen::ciao_svnt_template_header ()
{
return this->ciao_svnt_template_header_;
}
TAO_OutStream *
-TAO_CodeGen::ciao_svnt_template_source (void)
+TAO_CodeGen::ciao_svnt_template_source ()
{
return this->ciao_svnt_template_source_;
}
@@ -1311,7 +1311,7 @@ TAO_CodeGen::start_ciao_exec_header (const char *fname)
"CIAO_",
"_H_");
- if (be_global->pre_include () != 0)
+ if (be_global->pre_include () != nullptr)
{
os << "#include /**/ \""
<< be_global->pre_include ()
@@ -1364,13 +1364,13 @@ TAO_CodeGen::start_ciao_exec_source (const char *fname)
}
TAO_OutStream *
-TAO_CodeGen::ciao_exec_header (void)
+TAO_CodeGen::ciao_exec_header ()
{
return this->ciao_exec_header_;
}
TAO_OutStream *
-TAO_CodeGen::ciao_exec_source (void)
+TAO_CodeGen::ciao_exec_source ()
{
return this->ciao_exec_source_;
}
@@ -1413,7 +1413,7 @@ TAO_CodeGen::start_ciao_exec_idl (const char *fname)
}
TAO_OutStream *
-TAO_CodeGen::ciao_exec_idl (void)
+TAO_CodeGen::ciao_exec_idl ()
{
return this->ciao_exec_idl_;
}
@@ -1456,7 +1456,7 @@ TAO_CodeGen::start_ciao_conn_header (const char *fname)
"CIAO_",
"_H_");
- if (be_global->pre_include () != 0)
+ if (be_global->pre_include () != nullptr)
{
os << "#include /**/ \""
<< be_global->pre_include ()
@@ -1464,7 +1464,7 @@ TAO_CodeGen::start_ciao_conn_header (const char *fname)
}
// This will almost certainly be true, but just in case...
- if (be_global->conn_export_include () != 0)
+ if (be_global->conn_export_include () != nullptr)
{
this->gen_standard_include (
this->ciao_conn_header_,
@@ -1484,7 +1484,7 @@ TAO_CodeGen::start_ciao_conn_header (const char *fname)
}
TAO_OutStream *
-TAO_CodeGen::ciao_conn_header (void)
+TAO_CodeGen::ciao_conn_header ()
{
return this->ciao_conn_header_;
}
@@ -1528,7 +1528,7 @@ TAO_CodeGen::start_ciao_conn_source (const char *fname)
}
TAO_OutStream *
-TAO_CodeGen::ciao_conn_source (void)
+TAO_CodeGen::ciao_conn_source ()
{
return this->ciao_conn_source_;
}
@@ -1571,7 +1571,7 @@ TAO_CodeGen::start_ciao_ami_conn_idl (const char *fname)
}
TAO_OutStream *
-TAO_CodeGen::ciao_ami_conn_idl (void)
+TAO_CodeGen::ciao_ami_conn_idl ()
{
return this->ciao_ami_conn_idl_;
}
@@ -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 <<"\"";
@@ -1627,7 +1627,7 @@ TAO_CodeGen::start_implementation_header (const char *fname)
// Get the implementation header stream.
TAO_OutStream *
-TAO_CodeGen::implementation_header (void)
+TAO_CodeGen::implementation_header ()
{
return this->implementation_header_;
}
@@ -1670,14 +1670,14 @@ TAO_CodeGen::start_implementation_skeleton (const char *fname)
// Get the implementation header stream.
TAO_OutStream *
-TAO_CodeGen::implementation_skeleton (void)
+TAO_CodeGen::implementation_skeleton ()
{
return this->implementation_skeleton_;
}
// Put the last #endif in the client and server headers.
int
-TAO_CodeGen::end_client_header (void)
+TAO_CodeGen::end_client_header ()
{
// Generate the <<= and >>= operators here.
@@ -1695,14 +1695,14 @@ TAO_CodeGen::end_client_header (void)
// 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";
}
// Code to put the last #endif.
- if (be_global->post_include () != 0)
+ if (be_global->post_include () != nullptr)
{
*this->client_header_ << "#include /**/ \""
<< be_global->post_include ()
@@ -1716,7 +1716,7 @@ TAO_CodeGen::end_client_header (void)
}
void
-TAO_CodeGen::end_client_inline (void)
+TAO_CodeGen::end_client_inline ()
{
*this->client_inline_ << "\n";
@@ -1728,7 +1728,7 @@ TAO_CodeGen::end_client_inline (void)
}
void
-TAO_CodeGen::end_client_stubs (void)
+TAO_CodeGen::end_client_stubs ()
{
*this->client_stubs_ << "\n";
@@ -1740,7 +1740,7 @@ TAO_CodeGen::end_client_stubs (void)
}
int
-TAO_CodeGen::end_server_header (void)
+TAO_CodeGen::end_server_header ()
{
TAO_OutStream *os = this->server_header_;
@@ -1761,7 +1761,7 @@ TAO_CodeGen::end_server_header (void)
}
}
- if (be_global->post_include () != 0)
+ if (be_global->post_include () != nullptr)
{
*os << be_nl_2
<< "#include /**/ \""
@@ -1779,7 +1779,7 @@ TAO_CodeGen::end_server_header (void)
int
TAO_CodeGen::end_implementation_header (const char *fname)
{
- if (fname == 0)
+ if (fname == nullptr)
{
// Bad file name.
return -1;
@@ -1787,7 +1787,7 @@ TAO_CodeGen::end_implementation_header (const char *fname)
const char *suffix = ACE_OS::strrchr (fname, '.');
- if (suffix == 0)
+ if (suffix == nullptr)
{
// File seems to have no extension, so let us take the name
// as it is.
@@ -1823,7 +1823,7 @@ TAO_CodeGen::end_implementation_header (const char *fname)
}
int
-TAO_CodeGen::end_server_template_header (void)
+TAO_CodeGen::end_server_template_header ()
{
*this->server_template_header_ << be_nl_2 << "// TAO_IDL - Generated from"
<< be_nl << "// "
@@ -1838,7 +1838,7 @@ TAO_CodeGen::end_server_template_header (void)
<< 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 (void)
<< 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 */";
@@ -1856,7 +1856,7 @@ TAO_CodeGen::end_server_template_header (void)
// Code to put the last #endif.
*this->server_template_header_ << "\n\n";
- if (be_global->post_include () != 0)
+ if (be_global->post_include () != nullptr)
{
*this->server_template_header_ << "#include /**/ \""
<< be_global->post_include ()
@@ -1869,7 +1869,7 @@ TAO_CodeGen::end_server_template_header (void)
}
int
-TAO_CodeGen::end_server_template_skeletons (void)
+TAO_CodeGen::end_server_template_skeletons ()
{
// End versioned namespace support. Do not place include directives
// before this.
@@ -1883,7 +1883,7 @@ TAO_CodeGen::end_server_template_skeletons (void)
}
int
-TAO_CodeGen::end_server_skeletons (void)
+TAO_CodeGen::end_server_skeletons ()
{
// End versioned namespace support. Do not place include directives
// before this.
@@ -1897,14 +1897,14 @@ TAO_CodeGen::end_server_skeletons (void)
}
int
-TAO_CodeGen::end_anyop_header (void)
+TAO_CodeGen::end_anyop_header ()
{
// End versioned namespace support. Do not place include directives
// before this.
*this->anyop_header_ << be_global->versioning_end ();
- if (be_global->post_include () != 0)
+ if (be_global->post_include () != nullptr)
{
*this->anyop_header_ << "\n\n#include /**/ \""
<< be_global->post_include ()
@@ -1918,7 +1918,7 @@ TAO_CodeGen::end_anyop_header (void)
}
int
-TAO_CodeGen::end_anyop_source (void)
+TAO_CodeGen::end_anyop_source ()
{
// End versioned namespace support. Do not place include directives
// before this.
@@ -1930,9 +1930,9 @@ TAO_CodeGen::end_anyop_source (void)
}
int
-TAO_CodeGen::end_ciao_svnt_header (void)
+TAO_CodeGen::end_ciao_svnt_header ()
{
- if (be_global->post_include () != 0)
+ if (be_global->post_include () != nullptr)
{
*this->ciao_svnt_header_ << "\n\n#include /**/ \""
<< be_global->post_include ()
@@ -1945,7 +1945,7 @@ TAO_CodeGen::end_ciao_svnt_header (void)
}
int
-TAO_CodeGen::end_ciao_svnt_source (void)
+TAO_CodeGen::end_ciao_svnt_source ()
{
*this->ciao_svnt_source_ << "\n";
@@ -1953,7 +1953,7 @@ TAO_CodeGen::end_ciao_svnt_source (void)
}
int
-TAO_CodeGen::end_ciao_svnt_template_header (void)
+TAO_CodeGen::end_ciao_svnt_template_header ()
{
*this->ciao_svnt_template_header_ << be_nl_2
<< "#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)"
@@ -1969,7 +1969,7 @@ TAO_CodeGen::end_ciao_svnt_template_header (void)
<< be_nl << "#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */"
<< be_nl;
- if (be_global->post_include () != 0)
+ if (be_global->post_include () != nullptr)
{
*this->ciao_svnt_template_header_ << "\n\n#include /**/ \""
<< be_global->post_include ()
@@ -1982,7 +1982,7 @@ TAO_CodeGen::end_ciao_svnt_template_header (void)
}
int
-TAO_CodeGen::end_ciao_svnt_template_source (void)
+TAO_CodeGen::end_ciao_svnt_template_source ()
{
*this->ciao_svnt_template_source_ << "\n\n#endif /* ifndef */\n";
@@ -1992,9 +1992,9 @@ TAO_CodeGen::end_ciao_svnt_template_source (void)
}
int
-TAO_CodeGen::end_ciao_exec_header (void)
+TAO_CodeGen::end_ciao_exec_header ()
{
- if (be_global->post_include () != 0)
+ if (be_global->post_include () != nullptr)
{
*this->ciao_exec_header_ << "\n\n#include /**/ \""
<< be_global->post_include ()
@@ -2007,7 +2007,7 @@ TAO_CodeGen::end_ciao_exec_header (void)
}
int
-TAO_CodeGen::end_ciao_exec_source (void)
+TAO_CodeGen::end_ciao_exec_source ()
{
*this->ciao_exec_source_ << "\n";
@@ -2015,7 +2015,7 @@ TAO_CodeGen::end_ciao_exec_source (void)
}
int
-TAO_CodeGen::end_ciao_exec_idl (void)
+TAO_CodeGen::end_ciao_exec_idl ()
{
*this->ciao_exec_idl_ << "\n\n#endif /* ifndef */\n";
@@ -2023,9 +2023,9 @@ TAO_CodeGen::end_ciao_exec_idl (void)
}
int
-TAO_CodeGen::end_ciao_conn_header (void)
+TAO_CodeGen::end_ciao_conn_header ()
{
- if (be_global->post_include () != 0)
+ if (be_global->post_include () != nullptr)
{
*this->ciao_conn_header_ << "\n\n#include /**/ \""
<< be_global->post_include ()
@@ -2038,7 +2038,7 @@ TAO_CodeGen::end_ciao_conn_header (void)
}
int
-TAO_CodeGen::end_ciao_conn_source (void)
+TAO_CodeGen::end_ciao_conn_source ()
{
*this->ciao_conn_source_ << "\n";
@@ -2046,7 +2046,7 @@ TAO_CodeGen::end_ciao_conn_source (void)
}
int
-TAO_CodeGen::end_ciao_ami_conn_idl (void)
+TAO_CodeGen::end_ciao_ami_conn_idl ()
{
*this->ciao_ami_conn_idl_ << "\n\n#endif /* ifndef */\n";
@@ -2066,7 +2066,7 @@ TAO_CodeGen::gperf_input_stream (TAO_OutStream *os)
}
TAO_OutStream *
-TAO_CodeGen::gperf_input_stream (void)
+TAO_CodeGen::gperf_input_stream ()
{
return this->gperf_input_stream_;
}
@@ -2079,7 +2079,7 @@ TAO_CodeGen::gperf_input_filename (char *filename)
}
char *
-TAO_CodeGen::gperf_input_filename (void)
+TAO_CodeGen::gperf_input_filename ()
{
return this->gperf_input_filename_;
}
@@ -2089,39 +2089,39 @@ TAO_CodeGen::gen_ident_string (TAO_OutStream *stream) const
{
const char *str = idl_global->ident_string ();
- if (str != 0)
+ if (str != nullptr)
{
*stream << "#" << str << be_nl_2;
}
}
void
-TAO_CodeGen::gen_export_files (void)
+TAO_CodeGen::gen_export_files ()
{
if (be_global->gen_stub_export_hdr_file ()
- && be_global->stub_export_macro () != 0
- && (be_global->stub_export_include () != 0 || be_global->stub_export_file () != 0))
+ && be_global->stub_export_macro () != nullptr
+ && (be_global->stub_export_include () != nullptr || be_global->stub_export_file () != nullptr))
{
this->gen_export_file (
- (be_global->stub_export_file () != 0) ? be_global->stub_export_file () : be_global->stub_export_include (),
+ (be_global->stub_export_file () != nullptr) ? be_global->stub_export_file () : be_global->stub_export_include (),
be_global->stub_export_macro (),
"stub");
}
if (be_global->gen_skel_export_hdr_file ()
- && be_global->skel_export_macro () != 0
- && be_global->skel_export_include () != 0)
+ && be_global->skel_export_macro () != nullptr
+ && be_global->skel_export_include () != nullptr)
{
this->gen_export_file (
- (be_global->skel_export_file () != 0) ? be_global->skel_export_file () : be_global->skel_export_include (),
+ (be_global->skel_export_file () != nullptr) ? be_global->skel_export_file () : be_global->skel_export_include (),
be_global->skel_export_macro (),
"skel",
true);
}
if (be_global->gen_svnt_export_hdr_file ()
- && be_global->svnt_export_macro () != 0
- && be_global->svnt_export_include () != 0)
+ && be_global->svnt_export_macro () != nullptr
+ && be_global->svnt_export_include () != nullptr)
{
this->gen_export_file (
be_global->svnt_export_include (),
@@ -2130,8 +2130,8 @@ TAO_CodeGen::gen_export_files (void)
}
if (be_global->gen_exec_export_hdr_file ()
- && be_global->exec_export_macro () != 0
- && be_global->exec_export_include () != 0)
+ && be_global->exec_export_macro () != nullptr
+ && be_global->exec_export_include () != nullptr)
{
this->gen_export_file (
be_global->exec_export_include (),
@@ -2140,8 +2140,8 @@ TAO_CodeGen::gen_export_files (void)
}
if (be_global->gen_conn_export_hdr_file ()
- && be_global->conn_export_macro () != 0
- && be_global->conn_export_include () != 0)
+ && be_global->conn_export_macro () != nullptr
+ && be_global->conn_export_include () != nullptr)
{
this->gen_export_file (
be_global->conn_export_include (),
@@ -2159,7 +2159,7 @@ TAO_CodeGen::gen_export_file (const char *filename,
// Svnt export macro may correctly default to skel
// export macro, so we just return silently. The
// null filename check below will catch a real error.
- if (macro == 0)
+ if (macro == nullptr)
{
return;
}
@@ -2170,7 +2170,7 @@ TAO_CodeGen::gen_export_file (const char *filename,
const char *output_path =
be_util::get_output_path (false, for_skel, false);
- if (output_path != 0)
+ if (output_path != nullptr)
{
// Turn '\' and '\\' into '/'.
char* i = const_cast<char*> (output_path);
@@ -2313,7 +2313,7 @@ TAO_CodeGen::gen_ifndef_string (const char *fname,
const char *extension = ACE_OS::strrchr (fname, '.');
- if (extension == 0)
+ if (extension == nullptr)
{
// File seems to have no extension, so let us take the name
// as it is.
@@ -2359,7 +2359,7 @@ TAO_CodeGen::gen_ifndef_string (const char *fname,
}
void
-TAO_CodeGen::gen_stub_hdr_includes (void)
+TAO_CodeGen::gen_stub_hdr_includes ()
{
// Include valuetype and Any/TypeCode headers before ORB core
// headers to make sure some things are parsed before some templates
@@ -2468,7 +2468,7 @@ TAO_CodeGen::gen_stub_hdr_includes (void)
{
ACE_Unbounded_Queue<char *> &ts_files =
idl_global->ciao_oci_ts_file_names ();
- char **tmp = 0;
+ char **tmp = nullptr;
for (ACE_Unbounded_Queue_Iterator<char *> i (ts_files);
!i.done ();
@@ -2578,7 +2578,7 @@ TAO_CodeGen::gen_stub_hdr_includes (void)
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 ();
@@ -2640,7 +2640,7 @@ TAO_CodeGen::gen_stub_hdr_includes (void)
"tao/Versioned_Namespace.h",
true);
- if ((be_global->versioning_include () != 0) && (ACE_OS::strlen (be_global->versioning_include ()) > 0))
+ if ((be_global->versioning_include () != nullptr) && (ACE_OS::strlen (be_global->versioning_include ()) > 0))
{
this->gen_standard_include (this->client_header_,
be_global->versioning_include (),
@@ -2659,7 +2659,7 @@ TAO_CodeGen::gen_stub_hdr_includes (void)
}
void
-TAO_CodeGen::gen_stub_src_includes (void)
+TAO_CodeGen::gen_stub_src_includes ()
{
// Generate the include statement for the precompiled header file.
if (be_global->pch_include ())
@@ -2793,7 +2793,7 @@ TAO_CodeGen::gen_stub_src_includes (void)
{
// Needed for _narrow(), which is now template-based.
this->gen_standard_include (this->client_stubs_,
- "ace/OS_NS_string.h");
+ "cstring");
}
if (be_global->gen_amh_classes ())
@@ -2805,7 +2805,7 @@ TAO_CodeGen::gen_stub_src_includes (void)
}
void
-TAO_CodeGen::gen_skel_hdr_includes (void)
+TAO_CodeGen::gen_skel_hdr_includes ()
{
// Include the definitions for the PortableServer namespace,
// this forces the application to link the POA library, a good
@@ -2836,7 +2836,7 @@ TAO_CodeGen::gen_skel_hdr_includes (void)
}
void
-TAO_CodeGen::gen_skel_src_includes (void)
+TAO_CodeGen::gen_skel_src_includes ()
{
// Only non-local interfaces generate anything in the skeleton.
if (!(idl_global->non_local_iface_seen_
@@ -2940,10 +2940,14 @@ TAO_CodeGen::gen_skel_src_includes (void)
// For Static_Allocator_Base
this->gen_standard_include (this->server_skeletons_,
"ace/Malloc_Allocator.h");
+
+ // For std::strcmp
+ this->gen_standard_include (this->server_skeletons_,
+ "cstring");
}
void
-TAO_CodeGen::gen_seq_file_includes (void)
+TAO_CodeGen::gen_seq_file_includes ()
{
// @@@ (JP) These can get more specialized, after the TAO seq template
// files have been split up.
@@ -3007,7 +3011,7 @@ TAO_CodeGen::gen_any_file_includes (TAO_OutStream * stream)
}
void
-TAO_CodeGen::gen_var_file_includes (void)
+TAO_CodeGen::gen_var_file_includes ()
{
this->gen_cond_file_include (
idl_global->valuetype_seen_
@@ -3459,13 +3463,13 @@ TAO_CodeGen::gen_svnt_src_includes (TAO_OutStream *stream)
}
void
-TAO_CodeGen::gen_exec_hdr_includes (void)
+TAO_CodeGen::gen_exec_hdr_includes ()
{
// All CIAO examples so far have component skeleton and servant
// generated code in the same library, using the skel export macro,
// so the values for the servant export default to the skel values.
// Eventually, there should be a way to completely decouple them.
- if (be_global->exec_export_include () != 0)
+ if (be_global->exec_export_include () != nullptr)
{
this->gen_standard_include (
this->ciao_exec_header_,
@@ -3479,7 +3483,7 @@ TAO_CodeGen::gen_exec_hdr_includes (void)
}
void
-TAO_CodeGen::gen_exec_src_includes (void)
+TAO_CodeGen::gen_exec_src_includes ()
{
// Generate the include statement for the exec source.
this->gen_standard_include (
@@ -3495,7 +3499,7 @@ TAO_CodeGen::gen_exec_src_includes (void)
}
void
-TAO_CodeGen::gen_exec_idl_includes (void)
+TAO_CodeGen::gen_exec_idl_includes ()
{
if (!be_global->gen_noeventccm ())
{
@@ -3558,7 +3562,7 @@ TAO_CodeGen::gen_exec_idl_includes (void)
idl_global->stripped_filename ()->get_string ());
}
- char **path_tmp = 0;
+ char **path_tmp = nullptr;
for (ACE_Unbounded_Queue_Iterator<char *>riter (
idl_global->ciao_lem_file_names ());
@@ -3574,7 +3578,7 @@ TAO_CodeGen::gen_exec_idl_includes (void)
// special case for ami4ccm, if xxxE.idl. don't include xxxAE.idl.
char *exe_idl_fname = ACE_OS::strdup(exec_idl_fname);
char * base = ACE_OS::strstr(exe_idl_fname, "E.idl");
- if (base != 0)
+ if (base != nullptr)
{
static char test[MAXPATHLEN];
ACE_OS::memset (test, 0, MAXPATHLEN);
@@ -3582,7 +3586,7 @@ TAO_CodeGen::gen_exec_idl_includes (void)
ACE_OS::strncpy(test, exe_idl_fname, base - exe_idl_fname);
ACE_OS::strcat (test, "AE.idl");
- if (ACE_OS::strstr ( *path_tmp, test) != 0)
+ if (ACE_OS::strstr ( *path_tmp, test) != nullptr)
{
//skip include
skip_incl = true;
@@ -3609,12 +3613,12 @@ TAO_CodeGen::is_system_file (const char * idl_name) const
}
void
-TAO_CodeGen::gen_conn_hdr_includes (void)
+TAO_CodeGen::gen_conn_hdr_includes ()
{
ACE_Unbounded_Queue<char *> &lem_file_names =
idl_global->ciao_lem_file_names ();
- char **path_tmp = 0;
+ char **path_tmp = nullptr;
for (ACE_Unbounded_Queue_Iterator<char *> riter (
lem_file_names);
@@ -3712,7 +3716,7 @@ TAO_CodeGen::gen_conn_hdr_includes (void)
}
void
-TAO_CodeGen::gen_conn_src_includes (void)
+TAO_CodeGen::gen_conn_src_includes ()
{
// Generate the include statement for the connector exec source.
this->gen_standard_include (
@@ -3729,7 +3733,7 @@ TAO_CodeGen::gen_conn_src_includes (void)
}
void
-TAO_CodeGen::gen_ami_conn_idl_includes (void)
+TAO_CodeGen::gen_ami_conn_idl_includes ()
{
// Include the AMI4CCM library entry point, if AMI4CCM is enabled.
if (be_global->ami4ccm_call_back ())
@@ -3819,7 +3823,7 @@ TAO_CodeGen::gen_conn_ts_includes (
*this->ciao_conn_header_ << be_nl;
}
- char **tmp = 0;
+ char **tmp = nullptr;
for (ACE_Unbounded_Queue_Iterator<char *> i (ts_files);
!i.done ();
@@ -3832,7 +3836,7 @@ TAO_CodeGen::gen_conn_ts_includes (
}
void
-TAO_CodeGen::destroy (void)
+TAO_CodeGen::destroy ()
{
delete this->client_header_;
delete this->server_header_;
diff --git a/TAO/TAO_IDL/be/be_component.cpp b/TAO/TAO_IDL/be/be_component.cpp
index be0855463bf..5262752f986 100644
--- a/TAO/TAO_IDL/be/be_component.cpp
+++ b/TAO/TAO_IDL/be/be_component.cpp
@@ -73,22 +73,20 @@ be_component::be_component (UTL_ScopedName *n,
this->has_constructor (true);
}
-be_component::~be_component (void)
+be_component::~be_component ()
{
}
be_component *
-be_component::base_component (void) const
+be_component::base_component () const
{
- return
- be_component::narrow_from_decl (
- this->AST_Component::base_component ());
+ return dynamic_cast<be_component*> (this->AST_Component::base_component ());
}
void
be_component::redefine (AST_Interface *from)
{
- be_component *bc = be_component::narrow_from_decl (from);
+ be_component *bc = dynamic_cast<be_component*> (from);
this->var_out_seq_decls_gen_ = bc->var_out_seq_decls_gen_;
AST_Component::redefine (from);
}
@@ -121,69 +119,66 @@ be_component::be_add_typedef (AST_Typedef *t)
}
ACE_CDR::ULong
-be_component::n_provides (void) const
+be_component::n_provides () const
{
return this->n_provides_;
}
ACE_CDR::ULong
-be_component::n_remote_provides (void) const
+be_component::n_remote_provides () const
{
return this->n_remote_provides_;
}
ACE_CDR::ULong
-be_component::n_uses (void) const
+be_component::n_uses () const
{
return this->n_uses_;
}
ACE_CDR::ULong
-be_component::n_remote_uses (void) const
+be_component::n_remote_uses () const
{
return this->n_remote_uses_;
}
bool
-be_component::has_uses_multiple (void) const
+be_component::has_uses_multiple () const
{
return this->has_uses_multiple_;
}
ACE_CDR::ULong
-be_component::n_publishes (void) const
+be_component::n_publishes () const
{
return this->n_publishes_;
}
ACE_CDR::ULong
-be_component::n_consumes (void) const
+be_component::n_consumes () const
{
return this->n_consumes_;
}
ACE_CDR::ULong
-be_component::n_emits (void) const
+be_component::n_emits () const
{
return this->n_emits_;
}
-IMPL_NARROW_FROM_DECL (be_component)
-IMPL_NARROW_FROM_SCOPE (be_component)
-
void
be_component::scan (UTL_Scope *s)
{
- if (s == 0)
+ if (s == nullptr)
{
return;
}
- AST_Extended_Port *ep = 0;
- AST_Mirror_Port *mp = 0;
- AST_Uses *u = 0;
- AST_Provides *p = 0;
- AST_Attribute *a = 0;
+ AST_Extended_Port *ep = nullptr;
+ AST_Mirror_Port *mp = nullptr;
+ AST_Uses *u = nullptr;
+ AST_Provides *p = nullptr;
+ AST_Attribute *a = nullptr;
AST_Decl::NodeType my_nt;
AST_Decl::NodeType scope_nt;
@@ -197,7 +192,7 @@ be_component::scan (UTL_Scope *s)
{
case AST_Decl::NT_provides:
++this->n_provides_;
- p = AST_Provides::narrow_from_decl (d);
+ p = dynamic_cast<AST_Provides*> (d);
if (!p->provides_type ()->is_local ())
{
@@ -207,7 +202,7 @@ be_component::scan (UTL_Scope *s)
continue;
case AST_Decl::NT_uses:
++this->n_uses_;
- u = AST_Uses::narrow_from_decl (d);
+ u = dynamic_cast<AST_Uses*> (d);
if (u->is_multiple ())
{
@@ -230,15 +225,15 @@ be_component::scan (UTL_Scope *s)
++this->n_emits_;
continue;
case AST_Decl::NT_ext_port:
- ep = AST_Extended_Port::narrow_from_decl (d);
+ ep = dynamic_cast<AST_Extended_Port*> (d);
this->scan (ep->port_type ());
continue;
case AST_Decl::NT_mirror_port:
- mp = AST_Mirror_Port::narrow_from_decl (d);
+ mp = dynamic_cast<AST_Mirror_Port*> (d);
this->mirror_scan (mp->port_type ());
continue;
case AST_Decl::NT_attr:
- a = AST_Attribute::narrow_from_decl (d);;
+ a = dynamic_cast<AST_Attribute*> (d);;
if (!a->readonly ())
{
@@ -263,10 +258,10 @@ be_component::scan (UTL_Scope *s)
}
}
- AST_Component *c = AST_Component::narrow_from_scope (s);
- AST_Interface *iface = 0;
+ AST_Component *c = dynamic_cast<AST_Component*> (s);
+ AST_Interface *iface = nullptr;
- if (c != 0)
+ if (c != nullptr)
{
for (long i = 0; i < c->n_supports (); ++i)
{
@@ -280,7 +275,7 @@ be_component::scan (UTL_Scope *s)
// will be 0 and the call will return immediately.
this->scan (c->base_component ());
}
- else if ((iface = AST_Interface::narrow_from_scope (s)) != 0)
+ else if ((iface = dynamic_cast<AST_Interface*> (s)) != nullptr)
{
for (long i = 0; i < iface->n_inherits (); ++i)
{
@@ -300,7 +295,7 @@ be_component::gen_stub_inheritance (TAO_OutStream *os)
AST_Component *parent = this->base_component ();
- if (parent != 0)
+ if (parent != nullptr)
{
*os << parent->name ();
}
@@ -335,7 +330,7 @@ be_component::gen_skel_inheritance (TAO_OutStream *os)
{
AST_Component *base = this->base_component ();
- if (base != 0)
+ if (base != nullptr)
{
*os << "public virtual POA_" << base->name ();
}
@@ -346,7 +341,7 @@ be_component::gen_skel_inheritance (TAO_OutStream *os)
long nsupports = this->n_inherits ();
AST_Type **supports = this->supports ();
- AST_Type *supported = 0;
+ AST_Type *supported = nullptr;
for (long i = 0; i < nsupports; ++i)
{
@@ -367,20 +362,14 @@ be_component::gen_is_a_ancestors (TAO_OutStream *os)
{
AST_Component *ancestor = this;
- while (ancestor != 0)
+ while (ancestor != nullptr)
{
- *os << "ACE_OS::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 << "ACE_OS::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;
}
@@ -388,9 +377,9 @@ be_component::gen_is_a_ancestors (TAO_OutStream *os)
void
be_component::mirror_scan (AST_PortType *pt)
{
- AST_Uses *u = 0;
- AST_Provides *p = 0;
- AST_Attribute *a = 0;
+ AST_Uses *u = nullptr;
+ AST_Provides *p = nullptr;
+ AST_Attribute *a = nullptr;
for (UTL_ScopeActiveIterator i (pt, UTL_Scope::IK_decls);
!i.is_done ();
@@ -402,7 +391,7 @@ be_component::mirror_scan (AST_PortType *pt)
{
case AST_Decl::NT_provides:
++this->n_uses_;
- p = AST_Provides::narrow_from_decl (d);
+ p = dynamic_cast<AST_Provides*> (d);
if (!p->provides_type ()->is_local ())
{
@@ -412,7 +401,7 @@ be_component::mirror_scan (AST_PortType *pt)
continue;
case AST_Decl::NT_uses:
++this->n_provides_;
- u = AST_Uses::narrow_from_decl (d);
+ u = dynamic_cast<AST_Uses*> (d);
if (!u->uses_type ()->is_local ())
{
@@ -421,7 +410,7 @@ be_component::mirror_scan (AST_PortType *pt)
continue;
case AST_Decl::NT_attr:
- a = AST_Attribute::narrow_from_decl (d);;
+ a = dynamic_cast<AST_Attribute*> (d);;
if (!a->readonly ())
{
diff --git a/TAO/TAO_IDL/be/be_component_fwd.cpp b/TAO/TAO_IDL/be/be_component_fwd.cpp
index 7cc6a8f441b..8efa3c94efd 100644
--- a/TAO/TAO_IDL/be/be_component_fwd.cpp
+++ b/TAO/TAO_IDL/be/be_component_fwd.cpp
@@ -36,12 +36,12 @@ be_component_fwd::be_component_fwd (AST_Interface *dummy,
this->size_type (AST_Type::VARIABLE);
}
-be_component_fwd::~be_component_fwd (void)
+be_component_fwd::~be_component_fwd ()
{
}
void
-be_component_fwd::destroy (void)
+be_component_fwd::destroy ()
{
this->AST_ComponentFwd::destroy ();
}
@@ -53,7 +53,3 @@ be_component_fwd::accept (be_visitor *visitor)
? 0
: visitor->visit_component_fwd (this));
}
-
-
-
-IMPL_NARROW_FROM_DECL (be_component_fwd)
diff --git a/TAO/TAO_IDL/be/be_connector.cpp b/TAO/TAO_IDL/be/be_connector.cpp
index b1c4c1c68a9..fb1863a9759 100644
--- a/TAO/TAO_IDL/be/be_connector.cpp
+++ b/TAO/TAO_IDL/be/be_connector.cpp
@@ -16,17 +16,17 @@ be_connector::be_connector (
n),
UTL_Scope (AST_Decl::NT_connector),
AST_Interface (n,
+ nullptr,
0,
- 0,
- 0,
+ nullptr,
0,
false,
false),
AST_Component (n,
base_connector,
+ nullptr,
0,
- 0,
- 0,
+ nullptr,
0),
AST_Connector (n,
base_connector),
@@ -36,17 +36,17 @@ be_connector::be_connector (
be_type (AST_Decl::NT_connector,
n),
be_interface (n,
+ nullptr,
0,
- 0,
- 0,
+ nullptr,
0,
false,
false),
be_component (n,
base_connector,
+ nullptr,
0,
- 0,
- 0,
+ nullptr,
0),
dds_connector_ (false),
ami_connector_ (false)
@@ -57,12 +57,12 @@ be_connector::be_connector (
}
}
-be_connector::~be_connector (void)
+be_connector::~be_connector ()
{
}
void
-be_connector::destroy (void)
+be_connector::destroy ()
{
this->AST_Connector::destroy ();
this->be_component::destroy ();
@@ -75,23 +75,23 @@ be_connector::accept (be_visitor *visitor)
}
bool
-be_connector::dds_connector (void)
+be_connector::dds_connector ()
{
return this->dds_connector_;
}
bool
-be_connector::ami_connector (void)
+be_connector::ami_connector ()
{
return this->ami_connector_;
}
void
-be_connector::check_ancestors (void)
+be_connector::check_ancestors ()
{
AST_Connector *base = this;
- while (base != 0)
+ while (base != nullptr)
{
const char *base_fname = base->full_name ();
@@ -112,14 +112,14 @@ be_connector::check_ancestors (void)
// If we have a templated module, enable it as dds_connector_
// for the moment
AST_Module *m =
- AST_Module::narrow_from_scope (this->defined_in ());
- AST_Template_Module_Inst *t_inst = 0;
- while (t_inst == 0 && m != 0)
+ dynamic_cast<AST_Module*> (this->defined_in ());
+ AST_Template_Module_Inst *t_inst = nullptr;
+ while (t_inst == nullptr && m != nullptr)
{
t_inst = m->from_inst ();
- m = AST_Module::narrow_from_scope (m->defined_in ());
+ m = dynamic_cast<AST_Module*> (m->defined_in ());
}
- if (t_inst != 0 && t_inst->template_args () != 0)
+ if (t_inst != nullptr && t_inst->template_args () != nullptr)
{
if (t_inst->template_args ()->size () > 0)
{
@@ -132,7 +132,3 @@ be_connector::check_ancestors (void)
base = base->base_connector ();
}
}
-
-IMPL_NARROW_FROM_DECL (be_connector)
-IMPL_NARROW_FROM_SCOPE (be_connector)
-
diff --git a/TAO/TAO_IDL/be/be_constant.cpp b/TAO/TAO_IDL/be/be_constant.cpp
index e1ea76357cf..faec5c24b21 100644
--- a/TAO/TAO_IDL/be/be_constant.cpp
+++ b/TAO/TAO_IDL/be/be_constant.cpp
@@ -33,12 +33,8 @@ be_constant::accept (be_visitor *visitor)
}
void
-be_constant::destroy (void)
+be_constant::destroy ()
{
this->be_decl::destroy ();
this->AST_Constant::destroy ();
}
-
-
-
-IMPL_NARROW_FROM_DECL (be_constant)
diff --git a/TAO/TAO_IDL/be/be_consumes.cpp b/TAO/TAO_IDL/be/be_consumes.cpp
index 479ef491ae5..319930737e3 100644
--- a/TAO/TAO_IDL/be/be_consumes.cpp
+++ b/TAO/TAO_IDL/be/be_consumes.cpp
@@ -20,15 +20,15 @@ be_consumes::be_consumes (UTL_ScopedName *n,
{
}
-be_consumes::~be_consumes (void)
+be_consumes::~be_consumes ()
{
}
be_eventtype *
-be_consumes::consumes_type (void) const
+be_consumes::consumes_type () const
{
return
- be_eventtype::narrow_from_decl (
+ dynamic_cast<be_eventtype*> (
this->AST_Consumes::consumes_type ());
}
@@ -39,10 +39,8 @@ be_consumes::accept (be_visitor *visitor)
}
void
-be_consumes::destroy (void)
+be_consumes::destroy ()
{
this->AST_Consumes::destroy ();
this->be_field::destroy ();
}
-
-IMPL_NARROW_FROM_DECL (be_consumes)
diff --git a/TAO/TAO_IDL/be/be_decl.cpp b/TAO/TAO_IDL/be/be_decl.cpp
index 51b8d05803b..07d121b3427 100644
--- a/TAO/TAO_IDL/be/be_decl.cpp
+++ b/TAO/TAO_IDL/be/be_decl.cpp
@@ -94,7 +94,7 @@ be_decl::be_decl (AST_Decl::NodeType type,
{
}
-be_decl::~be_decl (void)
+be_decl::~be_decl ()
{
}
@@ -103,7 +103,7 @@ be_decl::compute_full_name (const char *prefix,
const char *suffix,
char *&name)
{
- if (prefix == 0 || suffix == 0)
+ if (prefix == nullptr || suffix == nullptr)
{
return;
}
@@ -113,7 +113,7 @@ be_decl::compute_full_name (const char *prefix,
ACE_CString result_str;
// Get parent.
- if (this->defined_in () == 0)
+ if (this->defined_in () == nullptr)
{
// Global scope.
@@ -130,9 +130,9 @@ be_decl::compute_full_name (const char *prefix,
{
// Get scope name.
be_decl * const parent =
- be_scope::narrow_from_scope (this->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (this->defined_in ())->decl ();
- if (parent == 0)
+ if (parent == nullptr)
{
ACE_ERROR ((LM_ERROR,
"(%N:%l) be_decl::"
@@ -169,7 +169,7 @@ be_decl::compute_flat_name (const char *prefix,
const char *suffix,
char *&name)
{
- if (prefix == 0 || suffix == 0)
+ if (prefix == nullptr || suffix == nullptr)
{
return;
}
@@ -180,7 +180,7 @@ be_decl::compute_flat_name (const char *prefix,
ACE_CString result_str;
// Get parent.
- if (this->defined_in () == 0)
+ if (this->defined_in () == nullptr)
{
// Global scope.
@@ -199,8 +199,8 @@ be_decl::compute_flat_name (const char *prefix,
{
// Get scope name.
be_decl * const parent =
- be_scope::narrow_from_scope (this->defined_in ())->decl ();
- if (parent == 0)
+ dynamic_cast<be_scope*> (this->defined_in ())->decl ();
+ if (parent == nullptr)
{
ACE_ERROR ((LM_ERROR,
"(%N:%l) be_decl::"
@@ -233,7 +233,7 @@ be_decl::compute_flat_name (const char *prefix,
}
void
-be_decl::destroy (void)
+be_decl::destroy ()
{
}
@@ -245,7 +245,7 @@ be_decl::set_local (bool val)
// Return the scope created by this node (if one exists, else NULL).
be_scope *
-be_decl::scope (void)
+be_decl::scope ()
{
be_decl *d = this;
@@ -255,312 +255,312 @@ be_decl::scope (void)
// Resolve forward declared interface by looking at full_definition()
// field and iterating.
d =
- be_interface::narrow_from_decl (
- (be_interface_fwd::narrow_from_decl (this))->full_definition ()
+ dynamic_cast<be_interface*> (
+ (dynamic_cast<be_interface_fwd*> (this))->full_definition ()
);
// Fall through
case AST_Decl::NT_interface:
- return be_interface::narrow_from_decl (d);
+ return dynamic_cast<be_interface*> (d);
case AST_Decl::NT_module:
- return be_module::narrow_from_decl (d);
+ return dynamic_cast<be_module*> (d);
case AST_Decl::NT_root:
- return be_root::narrow_from_decl (d);
+ return dynamic_cast<be_root*> (d);
case AST_Decl::NT_except:
- return be_exception::narrow_from_decl (d);
+ return dynamic_cast<be_exception*> (d);
case AST_Decl::NT_union:
- return be_union::narrow_from_decl (d);
+ return dynamic_cast<be_union*> (d);
case AST_Decl::NT_struct:
- return be_structure::narrow_from_decl (d);
+ return dynamic_cast<be_structure*> (d);
case AST_Decl::NT_enum:
- return be_enum::narrow_from_decl (d);
+ return dynamic_cast<be_enum*> (d);
case AST_Decl::NT_op:
- return be_operation::narrow_from_decl (d);
+ return dynamic_cast<be_operation*> (d);
case AST_Decl::NT_factory:
- return be_factory::narrow_from_decl (d);
+ return dynamic_cast<be_factory*> (d);
case AST_Decl::NT_finder:
- return be_finder::narrow_from_decl (d);
+ return dynamic_cast<be_finder*> (d);
case AST_Decl::NT_sequence:
- return be_sequence::narrow_from_decl (d);
+ return dynamic_cast<be_sequence*> (d);
case AST_Decl::NT_valuetype:
- return be_valuetype::narrow_from_decl (d);
+ return dynamic_cast<be_valuetype*> (d);
case AST_Decl::NT_component:
- return be_component::narrow_from_decl (d);
+ return dynamic_cast<be_component*> (d);
case AST_Decl::NT_eventtype:
- return be_eventtype::narrow_from_decl (d);
+ return dynamic_cast<be_eventtype*> (d);
case AST_Decl::NT_home:
- return be_home::narrow_from_decl (d);
+ return dynamic_cast<be_home*> (d);
default:
- return (be_scope *)0;
+ return nullptr;
}
}
// Boolean methods to test if code was already generated.
bool
-be_decl::cli_hdr_gen (void)
+be_decl::cli_hdr_gen ()
{
return this->cli_hdr_gen_;
}
bool
-be_decl::cli_stub_gen (void)
+be_decl::cli_stub_gen ()
{
return this->cli_stub_gen_;
}
bool
-be_decl::cli_hdr_any_op_gen (void)
+be_decl::cli_hdr_any_op_gen ()
{
return this->cli_hdr_any_op_gen_;
}
bool
-be_decl::cli_stub_any_op_gen (void)
+be_decl::cli_stub_any_op_gen ()
{
return this->cli_stub_any_op_gen_;
}
bool
-be_decl::cli_hdr_cdr_op_gen (void)
+be_decl::cli_hdr_cdr_op_gen ()
{
return this->cli_hdr_cdr_op_gen_;
}
bool
-be_decl::cli_stub_cdr_op_gen (void)
+be_decl::cli_stub_cdr_op_gen ()
{
return this->cli_stub_cdr_op_gen_;
}
bool
-be_decl::cli_inline_cdr_op_gen (void)
+be_decl::cli_inline_cdr_op_gen ()
{
return this->cli_inline_cdr_op_gen_;
}
bool
-be_decl::cli_inline_cdr_decl_gen (void)
+be_decl::cli_inline_cdr_decl_gen ()
{
return this->cli_inline_cdr_decl_gen_;
}
bool
-be_decl::cli_traits_gen (void)
+be_decl::cli_traits_gen ()
{
return this->cli_traits_gen_;
}
bool
-be_decl::cli_arg_traits_gen (void)
+be_decl::cli_arg_traits_gen ()
{
return this->cli_arg_traits_gen_;
}
bool
-be_decl::srv_arg_traits_gen (void)
+be_decl::srv_arg_traits_gen ()
{
return this->srv_arg_traits_gen_;
}
bool
-be_decl::srv_sarg_traits_gen (void)
+be_decl::srv_sarg_traits_gen ()
{
return this->srv_sarg_traits_gen_;
}
bool
-be_decl::cli_pragma_inst_gen (void)
+be_decl::cli_pragma_inst_gen ()
{
return this->cli_pragma_inst_gen_;
}
bool
-be_decl::cli_inarg_tmpl_class_gen (void)
+be_decl::cli_inarg_tmpl_class_gen ()
{
return this->cli_inarg_tmpl_class_gen_;
}
bool
-be_decl::cli_inarg_pragma_inst_gen (void)
+be_decl::cli_inarg_pragma_inst_gen ()
{
return this->cli_inarg_pragma_inst_gen_;
}
bool
-be_decl::cli_inoutarg_tmpl_class_gen (void)
+be_decl::cli_inoutarg_tmpl_class_gen ()
{
return this->cli_inoutarg_tmpl_class_gen_;
}
bool
-be_decl::cli_inoutarg_pragma_inst_gen (void)
+be_decl::cli_inoutarg_pragma_inst_gen ()
{
return this->cli_inoutarg_pragma_inst_gen_;
}
bool
-be_decl::cli_outarg_tmpl_class_gen (void)
+be_decl::cli_outarg_tmpl_class_gen ()
{
return this->cli_outarg_tmpl_class_gen_;
}
bool
-be_decl::cli_outarg_pragma_inst_gen (void)
+be_decl::cli_outarg_pragma_inst_gen ()
{
return this->cli_outarg_pragma_inst_gen_;
}
bool
-be_decl::cli_retarg_tmpl_class_gen (void)
+be_decl::cli_retarg_tmpl_class_gen ()
{
return this->cli_retarg_tmpl_class_gen_;
}
bool
-be_decl::cli_retarg_pragma_inst_gen (void)
+be_decl::cli_retarg_pragma_inst_gen ()
{
return this->cli_retarg_pragma_inst_gen_;
}
bool
-be_decl::srv_tmpl_class_gen (void)
+be_decl::srv_tmpl_class_gen ()
{
return this->srv_tmpl_class_gen_;
}
bool
-be_decl::srv_pragma_inst_gen (void)
+be_decl::srv_pragma_inst_gen ()
{
return this->srv_pragma_inst_gen_;
}
bool
-be_decl::srv_inarg_tmpl_class_gen (void)
+be_decl::srv_inarg_tmpl_class_gen ()
{
return this->srv_inarg_tmpl_class_gen_;
}
bool
-be_decl::srv_inarg_pragma_inst_gen (void)
+be_decl::srv_inarg_pragma_inst_gen ()
{
return this->srv_inarg_pragma_inst_gen_;
}
bool
-be_decl::srv_inoutarg_tmpl_class_gen (void)
+be_decl::srv_inoutarg_tmpl_class_gen ()
{
return this->srv_inoutarg_tmpl_class_gen_;
}
bool
-be_decl::srv_inoutarg_pragma_inst_gen (void)
+be_decl::srv_inoutarg_pragma_inst_gen ()
{
return this->srv_inoutarg_pragma_inst_gen_;
}
bool
-be_decl::srv_outarg_tmpl_class_gen (void)
+be_decl::srv_outarg_tmpl_class_gen ()
{
return this->srv_outarg_tmpl_class_gen_;
}
bool
-be_decl::srv_outarg_pragma_inst_gen (void)
+be_decl::srv_outarg_pragma_inst_gen ()
{
return this->srv_outarg_pragma_inst_gen_;
}
bool
-be_decl::srv_retarg_tmpl_class_gen (void)
+be_decl::srv_retarg_tmpl_class_gen ()
{
return this->srv_retarg_tmpl_class_gen_;
}
bool
-be_decl::srv_retarg_pragma_inst_gen (void)
+be_decl::srv_retarg_pragma_inst_gen ()
{
return this->cli_retarg_pragma_inst_gen_;
}
bool
-be_decl::cli_inline_gen (void)
+be_decl::cli_inline_gen ()
{
return this->cli_inline_gen_;
}
bool
-be_decl::srv_hdr_gen (void)
+be_decl::srv_hdr_gen ()
{
return this->srv_hdr_gen_;
}
bool
-be_decl::impl_hdr_gen (void)
+be_decl::impl_hdr_gen ()
{
return this->impl_hdr_gen_;
}
bool
-be_decl::srv_skel_gen (void)
+be_decl::srv_skel_gen ()
{
return this->srv_skel_gen_;
}
bool
-be_decl::impl_skel_gen (void)
+be_decl::impl_skel_gen ()
{
return this->impl_skel_gen_;
}
bool
-be_decl::srv_inline_gen (void)
+be_decl::srv_inline_gen ()
{
return this->srv_inline_gen_;
}
bool
-be_decl::tie_skel_gen (void)
+be_decl::tie_skel_gen ()
{
return this->tie_skel_gen_;
}
bool
-be_decl::ccm_pre_proc_gen (void)
+be_decl::ccm_pre_proc_gen ()
{
return this->ccm_pre_proc_gen_;
}
bool
-be_decl::ex_idl_facet_gen (void)
+be_decl::ex_idl_facet_gen ()
{
return this->ex_idl_facet_gen_;
}
bool
-be_decl::svnt_hdr_facet_gen (void)
+be_decl::svnt_hdr_facet_gen ()
{
return this->svnt_hdr_facet_gen_;
}
bool
-be_decl::svnt_src_facet_gen (void)
+be_decl::svnt_src_facet_gen ()
{
return this->svnt_src_facet_gen_;
}
bool
-be_decl::exec_hdr_facet_gen (void)
+be_decl::exec_hdr_facet_gen ()
{
return this->exec_hdr_facet_gen_;
}
bool
-be_decl::exec_src_facet_gen (void)
+be_decl::exec_src_facet_gen ()
{
return this->exec_src_facet_gen_;
}
bool
-be_decl::ami4ccm_ex_idl_gen (void)
+be_decl::ami4ccm_ex_idl_gen ()
{
return this->ami4ccm_ex_idl_gen_;
}
@@ -838,7 +838,3 @@ be_decl::accept (be_visitor *visitor)
{
return visitor->visit_decl (this);
}
-
-
-
-IMPL_NARROW_FROM_DECL (be_decl)
diff --git a/TAO/TAO_IDL/be/be_emits.cpp b/TAO/TAO_IDL/be/be_emits.cpp
index af1edb18102..6e973c144b7 100644
--- a/TAO/TAO_IDL/be/be_emits.cpp
+++ b/TAO/TAO_IDL/be/be_emits.cpp
@@ -20,15 +20,15 @@ be_emits::be_emits (UTL_ScopedName *n,
{
}
-be_emits::~be_emits (void)
+be_emits::~be_emits ()
{
}
be_eventtype *
-be_emits::emits_type (void) const
+be_emits::emits_type () const
{
return
- be_eventtype::narrow_from_decl (
+ dynamic_cast<be_eventtype*> (
this->AST_Emits::emits_type ());
}
@@ -39,10 +39,8 @@ be_emits::accept (be_visitor *visitor)
}
void
-be_emits::destroy (void)
+be_emits::destroy ()
{
this->AST_Emits::destroy ();
this->be_field::destroy ();
}
-
-IMPL_NARROW_FROM_DECL (be_emits)
diff --git a/TAO/TAO_IDL/be/be_enum.cpp b/TAO/TAO_IDL/be/be_enum.cpp
index 520c315ef7d..40d419fe28a 100644
--- a/TAO/TAO_IDL/be/be_enum.cpp
+++ b/TAO/TAO_IDL/be/be_enum.cpp
@@ -76,7 +76,7 @@ be_enum::gen_ostream_operator (TAO_OutStream *os,
}
void
-be_enum::destroy (void)
+be_enum::destroy ()
{
// Call the destroy methods of our base classes.
// No need to call be_scope::destroy(). It has no
@@ -92,8 +92,3 @@ be_enum::accept (be_visitor *visitor)
{
return visitor->visit_enum (this);
}
-
-
-
-IMPL_NARROW_FROM_DECL (be_enum)
-IMPL_NARROW_FROM_SCOPE (be_enum)
diff --git a/TAO/TAO_IDL/be/be_enum_val.cpp b/TAO/TAO_IDL/be/be_enum_val.cpp
index 0970f1b2a6e..d16c0aefb4a 100644
--- a/TAO/TAO_IDL/be/be_enum_val.cpp
+++ b/TAO/TAO_IDL/be/be_enum_val.cpp
@@ -37,11 +37,8 @@ be_enum_val::accept (be_visitor *visitor)
}
void
-be_enum_val::destroy (void)
+be_enum_val::destroy ()
{
this->AST_EnumVal::destroy ();
this->be_decl::destroy ();
}
-
-IMPL_NARROW_FROM_DECL (be_enum_val)
-
diff --git a/TAO/TAO_IDL/be/be_eventtype.cpp b/TAO/TAO_IDL/be/be_eventtype.cpp
index 96b08a05e19..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,
@@ -92,7 +92,7 @@ be_eventtype::be_eventtype (UTL_ScopedName *n,
{
}
-be_eventtype::~be_eventtype (void)
+be_eventtype::~be_eventtype ()
{
}
@@ -107,12 +107,7 @@ be_eventtype::accept (be_visitor *visitor)
}
void
-be_eventtype::destroy (void)
+be_eventtype::destroy ()
{
this->be_valuetype::destroy ();
}
-
-
-
-IMPL_NARROW_FROM_DECL (be_eventtype)
-IMPL_NARROW_FROM_SCOPE (be_eventtype)
diff --git a/TAO/TAO_IDL/be/be_eventtype_fwd.cpp b/TAO/TAO_IDL/be/be_eventtype_fwd.cpp
index cd04d3a931f..c87fcae4c87 100644
--- a/TAO/TAO_IDL/be/be_eventtype_fwd.cpp
+++ b/TAO/TAO_IDL/be/be_eventtype_fwd.cpp
@@ -42,7 +42,7 @@ be_eventtype_fwd::be_eventtype_fwd (AST_Interface *dummy,
{
}
-be_eventtype_fwd::~be_eventtype_fwd (void)
+be_eventtype_fwd::~be_eventtype_fwd ()
{
}
@@ -55,12 +55,7 @@ be_eventtype_fwd::accept (be_visitor *visitor)
}
void
-be_eventtype_fwd::destroy (void)
+be_eventtype_fwd::destroy ()
{
this->be_valuetype_fwd::destroy ();
}
-
-
-
-IMPL_NARROW_FROM_DECL (be_eventtype_fwd)
-
diff --git a/TAO/TAO_IDL/be/be_exception.cpp b/TAO/TAO_IDL/be/be_exception.cpp
index 24101456c2d..84fda87d53a 100644
--- a/TAO/TAO_IDL/be/be_exception.cpp
+++ b/TAO/TAO_IDL/be/be_exception.cpp
@@ -55,7 +55,7 @@ be_exception::be_exception (UTL_ScopedName *n,
}
void
-be_exception::destroy (void)
+be_exception::destroy ()
{
// Call the destroy methods of our base classes.
this->be_scope::destroy ();
@@ -68,8 +68,3 @@ be_exception::accept (be_visitor *visitor)
{
return visitor->visit_exception (this);
}
-
-
-
-IMPL_NARROW_FROM_DECL (be_exception)
-IMPL_NARROW_FROM_SCOPE (be_exception)
diff --git a/TAO/TAO_IDL/be/be_extended_port.cpp b/TAO/TAO_IDL/be/be_extended_port.cpp
index bf7be8e98b8..01ffd7b9130 100644
--- a/TAO/TAO_IDL/be/be_extended_port.cpp
+++ b/TAO/TAO_IDL/be/be_extended_port.cpp
@@ -22,20 +22,20 @@ be_extended_port::be_extended_port (
{
}
-be_extended_port::~be_extended_port (void)
+be_extended_port::~be_extended_port ()
{
}
be_porttype *
-be_extended_port::port_type (void) const
+be_extended_port::port_type () const
{
return
- be_porttype::narrow_from_decl (
+ dynamic_cast<be_porttype*> (
this->AST_Extended_Port::port_type ());
}
void
-be_extended_port::destroy (void)
+be_extended_port::destroy ()
{
this->AST_Extended_Port::destroy ();
this->be_field::destroy ();
@@ -46,6 +46,3 @@ be_extended_port::accept (be_visitor *visitor)
{
return visitor->visit_extended_port (this);
}
-
-IMPL_NARROW_FROM_DECL (be_extended_port)
-
diff --git a/TAO/TAO_IDL/be/be_factory.cpp b/TAO/TAO_IDL/be/be_factory.cpp
index d15c489320d..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),
@@ -35,12 +35,12 @@ be_factory::be_factory (UTL_ScopedName *n)
{
}
-be_factory::~be_factory (void)
+be_factory::~be_factory ()
{
}
void
-be_factory::destroy (void)
+be_factory::destroy ()
{
// Call the destroy methods of our base classes.
this->be_scope::destroy ();
@@ -60,10 +60,7 @@ be_factory::be_add_argument (AST_Argument *arg)
{
this->add_to_scope (arg);
this->add_to_referenced (arg,
- 0,
- 0);
+ false,
+ nullptr);
return arg;
}
-
-IMPL_NARROW_FROM_DECL (be_factory)
-IMPL_NARROW_FROM_SCOPE (be_factory)
diff --git a/TAO/TAO_IDL/be/be_field.cpp b/TAO/TAO_IDL/be/be_field.cpp
index fd54c73baf2..55c1e689cc3 100644
--- a/TAO/TAO_IDL/be/be_field.cpp
+++ b/TAO/TAO_IDL/be/be_field.cpp
@@ -42,10 +42,10 @@ be_field::be_field (AST_Type *ft,
}
be_type *
-be_field::field_type (void) const
+be_field::field_type () const
{
return
- be_type::narrow_from_decl (
+ dynamic_cast<be_type*> (
this->AST_Field::field_type ());
}
@@ -55,7 +55,7 @@ be_field::gen_member_ostream_operator (TAO_OutStream *os,
bool use_underscore,
bool accessor)
{
- be_type *ft = be_type::narrow_from_decl (this->field_type ());
+ be_type *ft = dynamic_cast<be_type*> (this->field_type ());
ft->gen_member_ostream_operator (os,
instance_name,
use_underscore,
@@ -63,7 +63,7 @@ be_field::gen_member_ostream_operator (TAO_OutStream *os,
}
bool
-be_field::port_name_prefixed (void) const
+be_field::port_name_prefixed () const
{
return this->port_name_prefixed_;
}
@@ -81,10 +81,8 @@ be_field::accept (be_visitor *visitor)
}
void
-be_field::destroy (void)
+be_field::destroy ()
{
this->be_decl::destroy ();
this->AST_Field::destroy ();
}
-
-IMPL_NARROW_FROM_DECL (be_field)
diff --git a/TAO/TAO_IDL/be/be_finder.cpp b/TAO/TAO_IDL/be/be_finder.cpp
index 794aaedbf2c..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),
@@ -29,12 +29,12 @@ be_finder::be_finder (UTL_ScopedName *n)
{
}
-be_finder::~be_finder (void)
+be_finder::~be_finder ()
{
}
void
-be_finder::destroy (void)
+be_finder::destroy ()
{
// Call the destroy methods of our base classes.
this->be_factory::destroy ();
@@ -46,6 +46,3 @@ be_finder::accept (be_visitor *visitor)
{
return visitor->visit_finder (this);
}
-
-IMPL_NARROW_FROM_DECL (be_finder)
-IMPL_NARROW_FROM_SCOPE (be_finder)
diff --git a/TAO/TAO_IDL/be/be_fixed.cpp b/TAO/TAO_IDL/be/be_fixed.cpp
index e4657b0e038..c6a30eb1037 100644
--- a/TAO/TAO_IDL/be/be_fixed.cpp
+++ b/TAO/TAO_IDL/be/be_fixed.cpp
@@ -24,5 +24,3 @@ void be_fixed::destroy ()
be_type::destroy ();
AST_Fixed::destroy ();
}
-
-IMPL_NARROW_FROM_DECL (be_fixed)
diff --git a/TAO/TAO_IDL/be/be_generator.cpp b/TAO/TAO_IDL/be/be_generator.cpp
index c55a98046d6..541792d3e0c 100644
--- a/TAO/TAO_IDL/be/be_generator.cpp
+++ b/TAO/TAO_IDL/be/be_generator.cpp
@@ -121,10 +121,10 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
AST_Root *
be_generator::create_root (UTL_ScopedName *n)
{
- be_root *retval = 0;
+ be_root *retval = nullptr;
ACE_NEW_RETURN (retval,
be_root (n),
- 0);
+ nullptr);
return retval;
}
@@ -133,11 +133,11 @@ AST_PredefinedType *
be_generator::create_predefined_type (AST_PredefinedType::PredefinedType t,
UTL_ScopedName *n)
{
- be_predefined_type *retval = 0;
+ be_predefined_type *retval = nullptr;
ACE_NEW_RETURN (retval,
be_predefined_type (t,
n),
- 0);
+ nullptr);
return retval;
}
@@ -146,7 +146,7 @@ AST_Module *
be_generator::create_module (UTL_Scope *s,
UTL_ScopedName *n)
{
- AST_Module *retval = 0;
+ AST_Module *retval = nullptr;
// Check for another module of the same name in this scope.
for (UTL_ScopeActiveIterator iter (s, UTL_Scope::IK_decls);
@@ -155,13 +155,13 @@ be_generator::create_module (UTL_Scope *s,
{
// Can't just check node type here, since it could be a
// template module or template module instantiation.
- AST_Module *m = AST_Module::narrow_from_decl (iter.item ());
+ AST_Module *m = dynamic_cast<AST_Module*> (iter.item ());
if (m && m->local_name ()->compare (n->last_component ()))
{
// Create this new module with referance to the
// "first" previous module found in scope.
- ACE_NEW_RETURN (retval, be_module (n, m), 0);
+ ACE_NEW_RETURN (retval, be_module (n, m), nullptr);
retval->prefix (const_cast<char *> (m->prefix ()));
return retval;
}
@@ -172,7 +172,7 @@ be_generator::create_module (UTL_Scope *s,
// is itself a module, and has been previously opened, any
// of the previous openings may contain a previous opening
// of the module we're creating.
- AST_Module *prev_module = AST_Module::narrow_from_scope (s);
+ AST_Module *prev_module = dynamic_cast<AST_Module*> (s);
if (prev_module)
{
while (!!(prev_module = prev_module->previous_opening ()))
@@ -181,12 +181,12 @@ be_generator::create_module (UTL_Scope *s,
!iter.is_done ();
iter.next ())
{
- AST_Module *m = AST_Module::narrow_from_decl (iter.item ());
+ AST_Module *m = dynamic_cast<AST_Module*> (iter.item ());
if (m && m->local_name ()->compare (n->last_component ()))
{
// Create this new module with referance to the
// "first" previous module found in scope.
- ACE_NEW_RETURN (retval, be_module (n, m), 0);
+ ACE_NEW_RETURN (retval, be_module (n, m), nullptr);
return retval;
}
}
@@ -194,7 +194,7 @@ be_generator::create_module (UTL_Scope *s,
}
// There is no previous module to be found
- ACE_NEW_RETURN (retval, be_module (n), 0);
+ ACE_NEW_RETURN (retval, be_module (n), nullptr);
return retval;
}
@@ -207,7 +207,7 @@ be_generator::create_interface (UTL_ScopedName *n,
bool l,
bool a)
{
- be_interface *retval = 0;
+ be_interface *retval = nullptr;
ACE_NEW_RETURN (retval,
be_interface (n,
ih,
@@ -216,7 +216,7 @@ be_generator::create_interface (UTL_ScopedName *n,
nih_flat,
l,
a),
- 0);
+ nullptr);
/// Trigger this interation over the included pragmas when the
/// first local interface is seen in the main file. In an
@@ -236,18 +236,18 @@ be_generator::create_interface_fwd (UTL_ScopedName *n,
bool is_abstract)
{
AST_Interface *full_defn = this->create_interface (n,
- 0,
+ nullptr,
-1,
- 0,
+ nullptr,
0,
is_local,
is_abstract);
- be_interface_fwd *retval = 0;
+ be_interface_fwd *retval = nullptr;
ACE_NEW_RETURN (retval,
be_interface_fwd (full_defn,
n),
- 0);
+ nullptr);
full_defn->fwd_decl (retval);
return retval;
@@ -257,11 +257,11 @@ AST_ValueBox *
be_generator::create_valuebox (UTL_ScopedName *n,
AST_Type *boxed_type)
{
- be_valuebox *retval = 0;
+ be_valuebox *retval = nullptr;
ACE_NEW_RETURN (retval,
be_valuebox (boxed_type,
n),
- 0);
+ nullptr);
return retval;
}
@@ -280,7 +280,7 @@ be_generator::create_valuetype (UTL_ScopedName *n,
bool is_truncatable,
bool is_custom)
{
- be_valuetype *retval = 0;
+ be_valuetype *retval = nullptr;
ACE_NEW_RETURN (retval,
be_valuetype (n,
inherits,
@@ -294,7 +294,7 @@ be_generator::create_valuetype (UTL_ScopedName *n,
is_abstract,
is_truncatable,
is_custom),
- 0);
+ nullptr);
return retval;
}
@@ -304,23 +304,23 @@ be_generator::create_valuetype_fwd (UTL_ScopedName *n,
bool is_abstract)
{
AST_ValueType *full_defn = this->create_valuetype (n,
- 0,
+ nullptr,
-1,
+ nullptr,
+ nullptr,
0,
+ nullptr,
0,
- 0,
- 0,
- 0,
- 0,
+ nullptr,
is_abstract,
false,
false);
- be_valuetype_fwd *retval = 0;
+ be_valuetype_fwd *retval = nullptr;
ACE_NEW_RETURN (retval,
be_valuetype_fwd (full_defn,
n),
- 0);
+ nullptr);
full_defn->fwd_decl (retval);
return retval;
@@ -340,7 +340,7 @@ be_generator::create_eventtype (UTL_ScopedName *n,
bool is_truncatable,
bool is_custom)
{
- be_eventtype *retval = 0;
+ be_eventtype *retval = nullptr;
ACE_NEW_RETURN (retval,
be_eventtype (n,
inherits,
@@ -354,7 +354,7 @@ be_generator::create_eventtype (UTL_ScopedName *n,
is_abstract,
is_truncatable,
is_custom),
- 0);
+ nullptr);
return retval;
}
@@ -364,23 +364,23 @@ be_generator::create_eventtype_fwd (UTL_ScopedName *n,
bool is_abstract)
{
AST_EventType *full_defn = this->create_eventtype (n,
- 0,
+ nullptr,
-1,
+ nullptr,
+ nullptr,
0,
+ nullptr,
0,
- 0,
- 0,
- 0,
- 0,
+ nullptr,
is_abstract,
false,
false);
- be_eventtype_fwd *retval = 0;
+ be_eventtype_fwd *retval = nullptr;
ACE_NEW_RETURN (retval,
be_eventtype_fwd (full_defn,
n),
- 0);
+ nullptr);
full_defn->fwd_decl (retval);
return retval;
@@ -394,7 +394,7 @@ be_generator::create_component (UTL_ScopedName *n,
AST_Interface **supports_flat,
long n_supports_flat)
{
- be_component *retval = 0;
+ be_component *retval = nullptr;
ACE_NEW_RETURN (retval,
be_component (n,
base_component,
@@ -402,7 +402,7 @@ be_generator::create_component (UTL_ScopedName *n,
n_supports,
supports_flat,
n_supports_flat),
- 0);
+ nullptr);
return retval;
}
@@ -411,17 +411,17 @@ AST_ComponentFwd *
be_generator::create_component_fwd (UTL_ScopedName *n)
{
AST_Component *full_defn = this->create_component (n,
- 0,
- 0,
+ nullptr,
+ nullptr,
-1,
- 0,
+ nullptr,
0);
- be_component_fwd *retval = 0;
+ be_component_fwd *retval = nullptr;
ACE_NEW_RETURN (retval,
be_component_fwd (full_defn,
n),
- 0);
+ nullptr);
full_defn->fwd_decl (retval);
return retval;
@@ -437,7 +437,7 @@ be_generator::create_home (UTL_ScopedName *n,
AST_Interface **supports_flat,
long n_supports_flat)
{
- be_home *retval = 0;
+ be_home *retval = nullptr;
ACE_NEW_RETURN (retval,
be_home (n,
base_home,
@@ -447,7 +447,7 @@ be_generator::create_home (UTL_ScopedName *n,
n_supports,
supports_flat,
n_supports_flat),
- 0);
+ nullptr);
return retval;
}
@@ -457,12 +457,12 @@ be_generator::create_exception (UTL_ScopedName *n,
bool is_local,
bool is_abstract)
{
- be_exception *retval = 0;
+ be_exception *retval = nullptr;
ACE_NEW_RETURN (retval,
be_exception (n,
is_local,
is_abstract),
- 0);
+ nullptr);
return retval;
}
@@ -472,12 +472,12 @@ be_generator::create_structure (UTL_ScopedName *n,
bool is_local,
bool is_abstract)
{
- be_structure *retval = 0;
+ be_structure *retval = nullptr;
ACE_NEW_RETURN (retval,
be_structure (n,
is_local,
is_abstract),
- 0);
+ nullptr);
return retval;
}
@@ -489,11 +489,11 @@ be_generator::create_structure_fwd (UTL_ScopedName *n)
AST_Structure *full_defn = this->create_structure (n,
false,
false);
- be_structure_fwd *retval = 0;
+ be_structure_fwd *retval = nullptr;
ACE_NEW_RETURN (retval,
be_structure_fwd (full_defn,
n),
- 0);
+ nullptr);
full_defn->fwd_decl (retval);
return retval;
@@ -504,12 +504,12 @@ be_generator::create_enum (UTL_ScopedName *n,
bool is_local,
bool is_abstract)
{
- be_enum *retval = 0;
+ be_enum *retval = nullptr;
ACE_NEW_RETURN (retval,
be_enum (n,
is_local,
is_abstract),
- 0);
+ nullptr);
return retval;
}
@@ -521,14 +521,14 @@ be_generator::create_operation (AST_Type *rt,
bool is_local,
bool is_abstract)
{
- be_operation *retval = 0;
+ be_operation *retval = nullptr;
ACE_NEW_RETURN (retval,
be_operation (rt,
fl,
n,
is_local,
is_abstract),
- 0);
+ nullptr);
return retval;
}
@@ -538,12 +538,12 @@ be_generator::create_field (AST_Type *ft,
UTL_ScopedName *n,
AST_Field::Visibility vis)
{
- be_field *retval = 0;
+ be_field *retval = nullptr;
ACE_NEW_RETURN (retval,
be_field (ft,
n,
vis),
- 0);
+ nullptr);
return retval;
}
@@ -553,12 +553,12 @@ be_generator::create_argument (AST_Argument::Direction d,
AST_Type *ft,
UTL_ScopedName *n)
{
- be_argument *retval = 0;
+ be_argument *retval = nullptr;
ACE_NEW_RETURN (retval,
be_argument (d,
ft,
n),
- 0);
+ nullptr);
return retval;
}
@@ -570,14 +570,14 @@ be_generator::create_attribute (bool ro,
bool is_local,
bool is_abstract)
{
- be_attribute *retval = 0;
+ be_attribute *retval = nullptr;
ACE_NEW_RETURN (retval,
be_attribute (ro,
ft,
n,
is_local,
is_abstract),
- 0);
+ nullptr);
return retval;
}
@@ -588,13 +588,13 @@ be_generator::create_union (AST_ConcreteType *dt,
bool is_local,
bool is_abstract)
{
- be_union *retval = 0;
+ be_union *retval = nullptr;
ACE_NEW_RETURN (retval,
be_union (dt,
n,
is_local,
is_abstract),
- 0);
+ nullptr);
return retval;
}
@@ -602,15 +602,15 @@ be_generator::create_union (AST_ConcreteType *dt,
AST_UnionFwd *
be_generator::create_union_fwd (UTL_ScopedName *n)
{
- AST_Union *full_defn = this->create_union (0,
+ AST_Union *full_defn = this->create_union (nullptr,
n,
false,
false);
- be_union_fwd *retval = 0;
+ be_union_fwd *retval = nullptr;
ACE_NEW_RETURN (retval,
be_union_fwd (full_defn,
n),
- 0);
+ nullptr);
full_defn->fwd_decl (retval);
return retval;
@@ -621,12 +621,12 @@ be_generator::create_union_branch (UTL_LabelList *ll,
AST_Type *ft,
UTL_ScopedName *n)
{
- be_union_branch *retval = 0;
+ be_union_branch *retval = nullptr;
ACE_NEW_RETURN (retval,
be_union_branch (ll,
ft,
n),
- 0);
+ nullptr);
return retval;
}
@@ -635,11 +635,11 @@ AST_UnionLabel *
be_generator::create_union_label (AST_UnionLabel::UnionLabel ul,
AST_Expression *lv)
{
- be_union_label *retval = 0;
+ be_union_label *retval = nullptr;
ACE_NEW_RETURN (retval,
be_union_label (ul,
lv),
- 0);
+ nullptr);
return retval;
}
@@ -649,12 +649,12 @@ be_generator::create_constant (AST_Expression::ExprType et,
AST_Expression *ev,
UTL_ScopedName *n)
{
- be_constant *retval = 0;
+ be_constant *retval = nullptr;
ACE_NEW_RETURN (retval,
be_constant (et,
ev,
n),
- 0);
+ nullptr);
return retval;
}
@@ -662,10 +662,10 @@ be_generator::create_constant (AST_Expression::ExprType et,
AST_Expression *
be_generator::create_expr (UTL_ScopedName *n)
{
- be_expression *retval = 0;
+ be_expression *retval = nullptr;
ACE_NEW_RETURN (retval,
be_expression (n),
- 0);
+ nullptr);
return retval;
}
@@ -674,11 +674,11 @@ AST_Expression *
be_generator::create_expr (AST_Expression *b,
AST_Expression::ExprType t)
{
- be_expression *retval = 0;
+ be_expression *retval = nullptr;
ACE_NEW_RETURN (retval,
be_expression (b,
t),
- 0);
+ nullptr);
return retval;
}
@@ -688,12 +688,12 @@ be_generator::create_expr (AST_Expression::ExprComb c,
AST_Expression *v1,
AST_Expression *v2)
{
- be_expression *retval = 0;
+ be_expression *retval = nullptr;
ACE_NEW_RETURN (retval,
be_expression (c,
v1,
v2),
- 0);
+ nullptr);
return retval;
}
@@ -701,10 +701,10 @@ be_generator::create_expr (AST_Expression::ExprComb c,
AST_Expression *
be_generator::create_expr (ACE_CDR::Long l)
{
- be_expression *retval = 0;
+ be_expression *retval = nullptr;
ACE_NEW_RETURN (retval,
be_expression (l),
- 0);
+ nullptr);
return retval;
}
@@ -712,10 +712,10 @@ be_generator::create_expr (ACE_CDR::Long l)
AST_Expression *
be_generator::create_expr (ACE_CDR::LongLong l)
{
- be_expression *retval = 0;
+ be_expression *retval = nullptr;
ACE_NEW_RETURN (retval,
be_expression (l),
- 0);
+ nullptr);
return retval;
}
@@ -723,10 +723,10 @@ be_generator::create_expr (ACE_CDR::LongLong l)
AST_Expression *
be_generator::create_expr (ACE_CDR::Boolean b)
{
- be_expression *retval = 0;
+ be_expression *retval = nullptr;
ACE_NEW_RETURN (retval,
be_expression (b),
- 0);
+ nullptr);
return retval;
}
@@ -734,10 +734,10 @@ be_generator::create_expr (ACE_CDR::Boolean b)
AST_Expression *
be_generator::create_expr (ACE_CDR::ULong l)
{
- be_expression *retval = 0;
+ be_expression *retval = nullptr;
ACE_NEW_RETURN (retval,
be_expression (l),
- 0);
+ nullptr);
return retval;
}
@@ -745,10 +745,10 @@ be_generator::create_expr (ACE_CDR::ULong l)
AST_Expression *
be_generator::create_expr (ACE_CDR::ULongLong l)
{
- be_expression *retval = 0;
+ be_expression *retval = nullptr;
ACE_NEW_RETURN (retval,
be_expression (l),
- 0);
+ nullptr);
return retval;
}
@@ -757,10 +757,10 @@ AST_Expression *
be_generator::create_expr (ACE_CDR::ULong l,
AST_Expression::ExprType t)
{
- be_expression *retval = 0;
+ be_expression *retval = nullptr;
ACE_NEW_RETURN (retval,
be_expression (l, t),
- 0);
+ nullptr);
return retval;
}
@@ -768,10 +768,10 @@ be_generator::create_expr (ACE_CDR::ULong l,
AST_Expression *
be_generator::create_expr (UTL_String *s)
{
- be_expression *retval = 0;
+ be_expression *retval = nullptr;
ACE_NEW_RETURN (retval,
be_expression (s),
- 0);
+ nullptr);
return retval;
}
@@ -779,10 +779,10 @@ be_generator::create_expr (UTL_String *s)
AST_Expression *
be_generator::create_expr (ACE_CDR::Char c)
{
- be_expression *retval = 0;
+ be_expression *retval = nullptr;
ACE_NEW_RETURN (retval,
be_expression (c),
- 0);
+ nullptr);
return retval;
}
@@ -790,10 +790,10 @@ be_generator::create_expr (ACE_CDR::Char c)
AST_Expression *
be_generator::create_expr (ACE_OutputCDR::from_wchar wc)
{
- be_expression *retval = 0;
+ be_expression *retval = nullptr;
ACE_NEW_RETURN (retval,
be_expression (wc),
- 0);
+ nullptr);
return retval;
}
@@ -801,10 +801,10 @@ be_generator::create_expr (ACE_OutputCDR::from_wchar wc)
AST_Expression *
be_generator::create_expr (char *s)
{
- be_expression *retval = 0;
+ be_expression *retval = nullptr;
ACE_NEW_RETURN (retval,
be_expression (s),
- 0);
+ nullptr);
return retval;
}
@@ -812,10 +812,10 @@ be_generator::create_expr (char *s)
AST_Expression *
be_generator::create_expr (ACE_CDR::Double d)
{
- be_expression *retval = 0;
+ be_expression *retval = nullptr;
ACE_NEW_RETURN (retval,
be_expression (d),
- 0);
+ nullptr);
return retval;
}
@@ -823,10 +823,10 @@ be_generator::create_expr (ACE_CDR::Double d)
AST_Expression *
be_generator::create_expr (const ACE_CDR::Fixed &f)
{
- be_expression *retval = 0;
+ be_expression *retval = nullptr;
ACE_NEW_RETURN (retval,
be_expression (f),
- 0);
+ nullptr);
return retval;
}
@@ -835,11 +835,11 @@ AST_EnumVal *
be_generator::create_enum_val (ACE_CDR::ULong v,
UTL_ScopedName *n)
{
- be_enum_val *retval = 0;
+ be_enum_val *retval = nullptr;
ACE_NEW_RETURN (retval,
be_enum_val (v,
n),
- 0);
+ nullptr);
return retval;
}
@@ -851,14 +851,14 @@ be_generator::create_array (UTL_ScopedName *n,
bool is_local,
bool is_abstract)
{
- be_array *retval = 0;
+ be_array *retval = nullptr;
ACE_NEW_RETURN (retval,
be_array (n,
ndims,
dims,
is_local,
is_abstract),
- 0);
+ nullptr);
return retval;
}
@@ -870,14 +870,14 @@ be_generator::create_sequence (AST_Expression *v,
bool is_local,
bool is_abstract)
{
- be_sequence *retval = 0;
+ be_sequence *retval = nullptr;
ACE_NEW_RETURN (retval,
be_sequence (v,
bt,
n,
is_local,
is_abstract),
- 0);
+ nullptr);
return retval;
}
@@ -887,15 +887,15 @@ be_generator::create_string (AST_Expression *v)
{
Identifier id ("string");
UTL_ScopedName n (&id,
- 0);
+ nullptr);
- be_string *retval = 0;
+ be_string *retval = nullptr;
ACE_NEW_RETURN (retval,
be_string (AST_Decl::NT_string,
&n,
v,
1),
- 0);
+ nullptr);
return retval;
}
@@ -907,18 +907,18 @@ be_generator::create_wstring (AST_Expression *v)
? "string"
: "wstring");
UTL_ScopedName n (&id,
- 0);
+ nullptr);
AST_Decl::NodeType nt = sizeof (ACE_CDR::WChar) == 1
? AST_Decl::NT_string
: AST_Decl::NT_wstring;
- be_string *retval = 0;
+ be_string *retval = nullptr;
ACE_NEW_RETURN (retval,
be_string (nt,
&n,
v,
sizeof (ACE_CDR::WChar)),
- 0);
+ nullptr);
return retval;
}
@@ -928,9 +928,9 @@ be_generator::create_fixed (AST_Expression *digits,
AST_Expression *scale)
{
Identifier id ("fixed");
- UTL_ScopedName name (&id, 0);
- AST_Fixed *retval = 0;
- ACE_NEW_RETURN (retval, be_fixed (&name, digits, scale), 0);
+ UTL_ScopedName name (&id, nullptr);
+ AST_Fixed *retval = nullptr;
+ ACE_NEW_RETURN (retval, be_fixed (&name, digits, scale), nullptr);
return retval;
}
@@ -940,13 +940,13 @@ be_generator::create_typedef (AST_Type *bt,
bool is_local,
bool is_abstract)
{
- be_typedef *retval = 0;
+ be_typedef *retval = nullptr;
ACE_NEW_RETURN (retval,
be_typedef (bt,
n,
is_local,
is_abstract),
- 0);
+ nullptr);
return retval;
}
@@ -954,10 +954,10 @@ be_generator::create_typedef (AST_Type *bt,
AST_Native *
be_generator::create_native (UTL_ScopedName *n)
{
- be_native *retval = 0;
+ be_native *retval = nullptr;
ACE_NEW_RETURN (retval,
be_native (n),
- 0);
+ nullptr);
return retval;
}
@@ -965,10 +965,10 @@ be_generator::create_native (UTL_ScopedName *n)
AST_Factory *
be_generator::create_factory (UTL_ScopedName *n)
{
- be_factory *retval = 0;
+ be_factory *retval = nullptr;
ACE_NEW_RETURN (retval,
be_factory (n),
- 0);
+ nullptr);
return retval;
}
@@ -976,10 +976,10 @@ be_generator::create_factory (UTL_ScopedName *n)
AST_Finder *
be_generator::create_finder (UTL_ScopedName *n)
{
- be_finder *retval = 0;
+ be_finder *retval = nullptr;
ACE_NEW_RETURN (retval,
be_finder (n),
- 0);
+ nullptr);
return retval;
}
@@ -987,10 +987,10 @@ be_generator::create_finder (UTL_ScopedName *n)
AST_PortType *
be_generator::create_porttype (UTL_ScopedName *n)
{
- be_porttype *retval = 0;
+ be_porttype *retval = nullptr;
ACE_NEW_RETURN (retval,
be_porttype (n),
- 0);
+ nullptr);
return retval;
}
@@ -999,11 +999,11 @@ AST_Provides *
be_generator::create_provides (UTL_ScopedName *n,
AST_Type *provides_type)
{
- be_provides *retval = 0;
+ be_provides *retval = nullptr;
ACE_NEW_RETURN (retval,
be_provides (n,
provides_type),
- 0);
+ nullptr);
return retval;
}
@@ -1013,12 +1013,12 @@ be_generator::create_uses (UTL_ScopedName *n,
AST_Type *uses_type,
bool is_multiple)
{
- be_uses *retval = 0;
+ be_uses *retval = nullptr;
ACE_NEW_RETURN (retval,
be_uses (n,
uses_type,
is_multiple),
- 0);
+ nullptr);
return retval;
}
@@ -1027,11 +1027,11 @@ AST_Publishes *
be_generator::create_publishes (UTL_ScopedName *n,
AST_Type *publishes_type)
{
- be_publishes *retval = 0;
+ be_publishes *retval = nullptr;
ACE_NEW_RETURN (retval,
be_publishes (n,
publishes_type),
- 0);
+ nullptr);
return retval;
}
@@ -1040,11 +1040,11 @@ AST_Emits *
be_generator::create_emits (UTL_ScopedName *n,
AST_Type *emits_type)
{
- be_emits *retval = 0;
+ be_emits *retval = nullptr;
ACE_NEW_RETURN (retval,
be_emits (n,
emits_type),
- 0);
+ nullptr);
return retval;
}
@@ -1052,11 +1052,11 @@ AST_Consumes *
be_generator::create_consumes (UTL_ScopedName *n,
AST_Type *consumes_type)
{
- be_consumes *retval = 0;
+ be_consumes *retval = nullptr;
ACE_NEW_RETURN (retval,
be_consumes (n,
consumes_type),
- 0);
+ nullptr);
return retval;
}
@@ -1066,11 +1066,11 @@ be_generator::create_extended_port (
UTL_ScopedName *n,
AST_PortType *porttype_ref)
{
- be_extended_port *retval = 0;
+ be_extended_port *retval = nullptr;
ACE_NEW_RETURN (retval,
be_extended_port (n,
porttype_ref),
- 0);
+ nullptr);
return retval;
}
@@ -1080,11 +1080,11 @@ be_generator::create_mirror_port (
UTL_ScopedName *n,
AST_PortType *porttype_ref)
{
- be_mirror_port *retval = 0;
+ be_mirror_port *retval = nullptr;
ACE_NEW_RETURN (retval,
be_mirror_port (n,
porttype_ref),
- 0);
+ nullptr);
return retval;
}
@@ -1094,11 +1094,11 @@ be_generator::create_connector (
UTL_ScopedName *n,
AST_Connector *base_connector)
{
- be_connector *retval = 0;
+ be_connector *retval = nullptr;
ACE_NEW_RETURN (retval,
be_connector (n,
base_connector),
- 0);
+ nullptr);
return retval;
}
@@ -1108,11 +1108,11 @@ be_generator::create_template_module (
UTL_ScopedName *n,
FE_Utils::T_PARAMLIST_INFO *template_params)
{
- be_template_module *retval = 0;
+ be_template_module *retval = nullptr;
ACE_NEW_RETURN (retval,
be_template_module (n,
template_params),
- 0);
+ nullptr);
return retval;
}
@@ -1123,12 +1123,12 @@ be_generator::create_template_module_inst (
AST_Template_Module *ref,
FE_Utils::T_ARGLIST *template_args)
{
- be_template_module_inst *retval = 0;
+ be_template_module_inst *retval = nullptr;
ACE_NEW_RETURN (retval,
be_template_module_inst (n,
ref,
template_args),
- 0);
+ nullptr);
return retval;
}
@@ -1139,12 +1139,12 @@ be_generator::create_template_module_ref (
AST_Template_Module *ref,
UTL_StrList *param_refs)
{
- be_template_module_ref *retval = 0;
+ be_template_module_ref *retval = nullptr;
ACE_NEW_RETURN (retval,
be_template_module_ref (n,
ref,
param_refs),
- 0);
+ nullptr);
return retval;
}
@@ -1154,11 +1154,11 @@ be_generator::create_param_holder (
UTL_ScopedName *parameter_name,
FE_Utils::T_Param_Info *info)
{
- be_param_holder *retval = 0;
+ be_param_holder *retval = nullptr;
ACE_NEW_RETURN (retval,
be_param_holder (parameter_name,
info),
- 0);
+ nullptr);
return retval;
}
diff --git a/TAO/TAO_IDL/be/be_global.cpp b/TAO/TAO_IDL/be/be_global.cpp
index ac181d2a2cc..2aeaa3f633b 100644
--- a/TAO/TAO_IDL/be/be_global.cpp
+++ b/TAO/TAO_IDL/be/be_global.cpp
@@ -30,31 +30,31 @@
#include "ace/OS_NS_sys_stat.h"
#include "ace/OS_NS_ctype.h"
-TAO_IDL_BE_Export BE_GlobalData *be_global = 0;
+TAO_IDL_BE_Export BE_GlobalData *be_global = nullptr;
-BE_GlobalData::BE_GlobalData (void)
+BE_GlobalData::BE_GlobalData ()
: changing_standard_include_files_ (1),
- skel_export_macro_ (0),
- skel_export_include_ (0),
- skel_export_file_ (0),
- stub_export_macro_ (0),
- stub_export_include_ (0),
- stub_export_file_ (0),
- anyop_export_macro_ (0),
- anyop_export_include_ (0),
- exec_export_macro_ (0),
- exec_export_include_ (0),
- svnt_export_macro_ (0),
- svnt_export_include_ (0),
- conn_export_macro_ (0),
- conn_export_include_ (0),
- pch_include_ (0),
- pre_include_ (0),
- post_include_ (0),
- include_guard_ (0),
- safe_include_ (0),
- unique_include_ (0),
- stripped_filename_ (0),
+ skel_export_macro_ (nullptr),
+ skel_export_include_ (nullptr),
+ skel_export_file_ (nullptr),
+ stub_export_macro_ (nullptr),
+ stub_export_include_ (nullptr),
+ stub_export_file_ (nullptr),
+ anyop_export_macro_ (nullptr),
+ anyop_export_include_ (nullptr),
+ exec_export_macro_ (nullptr),
+ exec_export_include_ (nullptr),
+ svnt_export_macro_ (nullptr),
+ svnt_export_include_ (nullptr),
+ conn_export_macro_ (nullptr),
+ conn_export_include_ (nullptr),
+ pch_include_ (nullptr),
+ pre_include_ (nullptr),
+ post_include_ (nullptr),
+ include_guard_ (nullptr),
+ safe_include_ (nullptr),
+ unique_include_ (nullptr),
+ stripped_filename_ (nullptr),
core_versioning_begin_ ("\nTAO_BEGIN_VERSIONED_NAMESPACE_DECL\n"),
core_versioning_end_ ("\nTAO_END_VERSIONED_NAMESPACE_DECL\n"),
versioning_begin_ (),
@@ -88,15 +88,15 @@ BE_GlobalData::BE_GlobalData (void)
ciao_ami_conn_impl_hdr_ending_ (ACE::strnew ("_conn_i.h")),
ciao_ami_conn_impl_src_ending_ (ACE::strnew ("_conn_i.cpp")),
ciao_container_type_ (ACE::strnew ("Session")),
- output_dir_ (0),
- stub_include_dir_ (0),
- skel_output_dir_ (0),
- anyop_output_dir_ (0),
- exec_output_dir_ (0),
+ output_dir_ (nullptr),
+ stub_include_dir_ (nullptr),
+ skel_output_dir_ (nullptr),
+ anyop_output_dir_ (nullptr),
+ exec_output_dir_ (nullptr),
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),
@@ -118,11 +118,11 @@ BE_GlobalData::BE_GlobalData (void)
gen_empty_anyop_header_ (false),
lookup_strategy_ (TAO_PERFECT_HASH),
dds_impl_ (DDS_NONE),
- void_type_ (0),
- ccmobject_ (0),
- messaging_ (0),
- messaging_exceptionholder_ (0),
- messaging_replyhandler_ (0),
+ void_type_ (nullptr),
+ ccmobject_ (nullptr),
+ messaging_ (nullptr),
+ messaging_exceptionholder_ (nullptr),
+ messaging_replyhandler_ (nullptr),
gen_anyop_files_ (false),
gen_skel_files_ (true),
gen_svnt_cpp_files_ (true),
@@ -161,7 +161,7 @@ BE_GlobalData::BE_GlobalData (void)
{
}
-BE_GlobalData::~BE_GlobalData (void)
+BE_GlobalData::~BE_GlobalData ()
{
}
@@ -176,7 +176,7 @@ BE_GlobalData::changing_standard_include_files (size_t changing)
}
size_t
-BE_GlobalData::changing_standard_include_files (void)
+BE_GlobalData::changing_standard_include_files ()
{
return this->changing_standard_include_files_;
}
@@ -192,9 +192,9 @@ be_change_idl_file_extension (UTL_String* idl_file,
{
// @@ This shouldn't happen anyway; but a better error handling
// mechanism is needed.
- if (idl_file == 0 || new_extension == 0)
+ if (idl_file == nullptr || new_extension == nullptr)
{
- return 0;
+ return nullptr;
}
static char fname[MAXPATHLEN];
@@ -205,7 +205,7 @@ be_change_idl_file_extension (UTL_String* idl_file,
// Get the base part of the filename, we try several extensions
// before giving up.
- const char *base = 0;
+ const char *base = nullptr;
static const char* extensions[] = {
".idl",
@@ -220,22 +220,22 @@ be_change_idl_file_extension (UTL_String* idl_file,
{
base = ACE_OS::strstr (string, extensions[k]);
- if (base != 0)
+ if (base != nullptr)
{
break;
}
}
- if (base == 0)
+ if (base == nullptr)
{
- return 0;
+ return nullptr;
}
// Anyop * skel file output defaults to general output dir if not set.
const char *output_path =
be_util::get_output_path (for_anyop, for_skel, for_exec);
- if (!base_name_only && output_path != 0)
+ if (!base_name_only && output_path != nullptr)
{
// Path info should also be added to fname.
@@ -598,7 +598,7 @@ BE_GlobalData::be_get_client_hdr_fname (
}
const char *
-BE_GlobalData::be_get_client_stub_fname (void)
+BE_GlobalData::be_get_client_stub_fname ()
{
return
be_get_client_stub (idl_global->stripped_filename ());
@@ -650,14 +650,14 @@ BE_GlobalData::be_get_server_template_hdr_fname (
}
const char *
-BE_GlobalData::be_get_server_skeleton_fname (void)
+BE_GlobalData::be_get_server_skeleton_fname ()
{
return
be_get_server_skeleton (idl_global->stripped_filename ());
}
const char *
-BE_GlobalData::be_get_implementation_skeleton_fname (void)
+BE_GlobalData::be_get_implementation_skeleton_fname ()
{
return
be_get_implementation_skel (idl_global->stripped_filename ());
@@ -808,9 +808,9 @@ BE_GlobalData::be_get_ciao_ami_conn_impl_src_fname (
}
const char*
-BE_GlobalData::skel_export_macro (void) const
+BE_GlobalData::skel_export_macro () const
{
- if (this->skel_export_macro_ == 0)
+ if (this->skel_export_macro_ == nullptr)
{
return "";
}
@@ -826,7 +826,7 @@ BE_GlobalData::skel_export_macro (const char *s)
}
const char*
-BE_GlobalData::skel_export_include (void) const
+BE_GlobalData::skel_export_include () const
{
return this->skel_export_include_;
}
@@ -839,7 +839,7 @@ BE_GlobalData::skel_export_include (const char *s)
}
const char*
-BE_GlobalData::skel_export_file (void) const
+BE_GlobalData::skel_export_file () const
{
return this->skel_export_file_;
}
@@ -852,9 +852,9 @@ BE_GlobalData::skel_export_file (const char *s)
}
const char*
-BE_GlobalData::stub_export_macro (void) const
+BE_GlobalData::stub_export_macro () const
{
- if (this->stub_export_macro_ == 0)
+ if (this->stub_export_macro_ == nullptr)
{
return "";
}
@@ -870,7 +870,7 @@ BE_GlobalData::stub_export_macro (const char *s)
}
const char*
-BE_GlobalData::stub_export_include (void) const
+BE_GlobalData::stub_export_include () const
{
return this->stub_export_include_;
}
@@ -883,7 +883,7 @@ BE_GlobalData::stub_export_include (const char *s)
}
const char*
-BE_GlobalData::stub_export_file (void) const
+BE_GlobalData::stub_export_file () const
{
return this->stub_export_file_;
}
@@ -896,9 +896,9 @@ BE_GlobalData::stub_export_file (const char *s)
}
const char*
-BE_GlobalData::anyop_export_macro (void) const
+BE_GlobalData::anyop_export_macro () const
{
- if (this->anyop_export_macro_ == 0)
+ if (this->anyop_export_macro_ == nullptr)
{
return "";
}
@@ -914,7 +914,7 @@ BE_GlobalData::anyop_export_macro (const char *s)
}
const char*
-BE_GlobalData::anyop_export_include (void) const
+BE_GlobalData::anyop_export_include () const
{
return this->anyop_export_include_;
}
@@ -927,9 +927,9 @@ BE_GlobalData::anyop_export_include (const char *s)
}
const char*
-BE_GlobalData::exec_export_macro (void) const
+BE_GlobalData::exec_export_macro () const
{
- if (this->exec_export_macro_ == 0)
+ if (this->exec_export_macro_ == nullptr)
{
return "";
}
@@ -945,7 +945,7 @@ BE_GlobalData::exec_export_macro (const char *s)
}
const char*
-BE_GlobalData::exec_export_include (void) const
+BE_GlobalData::exec_export_include () const
{
return this->exec_export_include_;
}
@@ -958,9 +958,9 @@ BE_GlobalData::exec_export_include (const char *s)
}
const char*
-BE_GlobalData::svnt_export_macro (void) const
+BE_GlobalData::svnt_export_macro () const
{
- if (this->svnt_export_macro_ == 0)
+ if (this->svnt_export_macro_ == nullptr)
{
return "";
}
@@ -976,7 +976,7 @@ BE_GlobalData::svnt_export_macro (const char *s)
}
const char*
-BE_GlobalData::svnt_export_include (void) const
+BE_GlobalData::svnt_export_include () const
{
return this->svnt_export_include_;
}
@@ -989,9 +989,9 @@ BE_GlobalData::svnt_export_include (const char *s)
}
const char*
-BE_GlobalData::conn_export_macro (void) const
+BE_GlobalData::conn_export_macro () const
{
- if (this->conn_export_macro_ == 0)
+ if (this->conn_export_macro_ == nullptr)
{
return "";
}
@@ -1007,7 +1007,7 @@ BE_GlobalData::conn_export_macro (const char *s)
}
const char*
-BE_GlobalData::conn_export_include (void) const
+BE_GlobalData::conn_export_include () const
{
return this->conn_export_include_;
}
@@ -1020,7 +1020,7 @@ BE_GlobalData::conn_export_include (const char *s)
}
const char*
-BE_GlobalData::pch_include (void) const
+BE_GlobalData::pch_include () const
{
return this->pch_include_;
}
@@ -1033,7 +1033,7 @@ BE_GlobalData::pch_include (const char *s)
}
const char*
-BE_GlobalData::pre_include (void) const
+BE_GlobalData::pre_include () const
{
return this->pre_include_;
}
@@ -1046,7 +1046,7 @@ BE_GlobalData::pre_include (const char *s)
}
const char*
-BE_GlobalData::post_include (void) const
+BE_GlobalData::post_include () const
{
return this->post_include_;
}
@@ -1059,7 +1059,7 @@ BE_GlobalData::post_include (const char *s)
}
const char*
-BE_GlobalData::include_guard (void) const
+BE_GlobalData::include_guard () const
{
return this->include_guard_;
}
@@ -1072,7 +1072,7 @@ BE_GlobalData::include_guard (const char *s)
}
const char*
-BE_GlobalData::safe_include (void) const
+BE_GlobalData::safe_include () const
{
return this->safe_include_;
}
@@ -1085,7 +1085,7 @@ BE_GlobalData::safe_include (const char *s)
}
const char*
-BE_GlobalData::unique_include (void) const
+BE_GlobalData::unique_include () const
{
return this->unique_include_;
}
@@ -1098,7 +1098,7 @@ BE_GlobalData::unique_include (const char *s)
}
const char*
-BE_GlobalData::stripped_filename (void) const
+BE_GlobalData::stripped_filename () const
{
return this->stripped_filename_;
}
@@ -1111,7 +1111,7 @@ BE_GlobalData::stripped_filename (const char *s)
}
const char *
-BE_GlobalData::versioning_begin (void) const
+BE_GlobalData::versioning_begin () const
{
return this->versioning_begin_.c_str ();
}
@@ -1123,13 +1123,13 @@ BE_GlobalData::versioning_include (const char * s)
}
const char *
-BE_GlobalData::versioning_include (void) const
+BE_GlobalData::versioning_include () const
{
return this->versioning_include_.c_str ();
}
const char *
-BE_GlobalData::core_versioning_begin (void) const
+BE_GlobalData::core_versioning_begin () const
{
return this->core_versioning_begin_.c_str ();
}
@@ -1163,13 +1163,13 @@ BE_GlobalData::versioning_begin (const char * s)
}
const char *
-BE_GlobalData::versioning_end (void) const
+BE_GlobalData::versioning_end () const
{
return this->versioning_end_.c_str ();
}
const char *
-BE_GlobalData::core_versioning_end (void) const
+BE_GlobalData::core_versioning_end () const
{
return this->core_versioning_end_.c_str ();
}
@@ -1184,7 +1184,7 @@ BE_GlobalData::client_hdr_ending (const char* s)
// Get the client_hdr_ending.
const char*
-BE_GlobalData::client_hdr_ending (void) const
+BE_GlobalData::client_hdr_ending () const
{
return this->client_hdr_ending_;
}
@@ -1197,7 +1197,7 @@ BE_GlobalData::client_inline_ending (const char* s)
}
const char*
-BE_GlobalData::client_inline_ending (void) const
+BE_GlobalData::client_inline_ending () const
{
return this->client_inline_ending_;
}
@@ -1211,7 +1211,7 @@ BE_GlobalData::client_stub_ending (const char* s)
}
const char*
-BE_GlobalData::client_stub_ending (void) const
+BE_GlobalData::client_stub_ending () const
{
return this->client_stub_ending_;
}
@@ -1224,7 +1224,7 @@ BE_GlobalData::server_hdr_ending (const char* s)
}
const char*
-BE_GlobalData::server_hdr_ending (void) const
+BE_GlobalData::server_hdr_ending () const
{
return this->server_hdr_ending_;
}
@@ -1258,25 +1258,25 @@ BE_GlobalData::impl_class_suffix (const char* s)
}
const char*
-BE_GlobalData::impl_class_prefix (void) const
+BE_GlobalData::impl_class_prefix () const
{
return this->impl_class_prefix_;
}
const char*
-BE_GlobalData::implementation_hdr_ending (void) const
+BE_GlobalData::implementation_hdr_ending () const
{
return this->implementation_hdr_ending_;
}
const char*
-BE_GlobalData::impl_class_suffix (void) const
+BE_GlobalData::impl_class_suffix () const
{
return this->impl_class_suffix_;
}
const char*
-BE_GlobalData::implementation_skel_ending (void) const
+BE_GlobalData::implementation_skel_ending () const
{
return this->implementation_skel_ending_;
}
@@ -1289,7 +1289,7 @@ BE_GlobalData::server_template_hdr_ending (const char* s)
}
const char*
-BE_GlobalData::server_template_hdr_ending (void) const
+BE_GlobalData::server_template_hdr_ending () const
{
return this->server_template_hdr_ending_;
}
@@ -1302,7 +1302,7 @@ BE_GlobalData::server_skeleton_ending (const char* s)
}
const char*
-BE_GlobalData::server_skeleton_ending (void) const
+BE_GlobalData::server_skeleton_ending () const
{
return this->server_skeleton_ending_;
}
@@ -1315,7 +1315,7 @@ BE_GlobalData::server_template_skeleton_ending (const char* s)
}
const char*
-BE_GlobalData::server_template_skeleton_ending (void) const
+BE_GlobalData::server_template_skeleton_ending () const
{
return this->server_template_skeleton_ending_;
}
@@ -1334,13 +1334,13 @@ BE_GlobalData::use_clonable_in_args (bool clonable)
}
bool
-BE_GlobalData::use_clonable_in_args (void) const
+BE_GlobalData::use_clonable_in_args () const
{
return this->use_clonable_in_args_;
}
bool
-BE_GlobalData::gen_template_export (void) const
+BE_GlobalData::gen_template_export () const
{
return this->gen_template_export_;
}
@@ -1352,7 +1352,7 @@ BE_GlobalData::gen_template_export (bool val)
}
bool
-BE_GlobalData::gen_ostream_operators (void) const
+BE_GlobalData::gen_ostream_operators () const
{
return this->gen_ostream_operators_;
}
@@ -1365,7 +1365,7 @@ BE_GlobalData::gen_ostream_operators (bool val)
bool
-BE_GlobalData::gen_static_desc_operations (void) const
+BE_GlobalData::gen_static_desc_operations () const
{
return this->gen_static_desc_operations_;
}
@@ -1377,7 +1377,7 @@ BE_GlobalData::gen_static_desc_operations (bool val)
}
const char*
-BE_GlobalData::anyop_header_ending (void) const
+BE_GlobalData::anyop_header_ending () const
{
return this->anyop_hdr_ending_;
}
@@ -1390,7 +1390,7 @@ BE_GlobalData::anyop_source_ending (const char* s)
}
const char*
-BE_GlobalData::anyop_source_ending (void) const
+BE_GlobalData::anyop_source_ending () const
{
return this->anyop_src_ending_;
}
@@ -1403,7 +1403,7 @@ BE_GlobalData::ciao_svnt_header_ending (const char* s)
}
const char*
-BE_GlobalData::ciao_svnt_header_ending (void) const
+BE_GlobalData::ciao_svnt_header_ending () const
{
return this->ciao_svnt_hdr_ending_;
}
@@ -1416,7 +1416,7 @@ BE_GlobalData::ciao_svnt_source_ending (const char* s)
}
const char*
-BE_GlobalData::ciao_svnt_source_ending (void) const
+BE_GlobalData::ciao_svnt_source_ending () const
{
return this->ciao_svnt_src_ending_;
}
@@ -1429,7 +1429,7 @@ BE_GlobalData::ciao_svnt_header_template_ending (const char* s)
}
const char*
-BE_GlobalData::ciao_svnt_header_template_ending (void) const
+BE_GlobalData::ciao_svnt_header_template_ending () const
{
return this->ciao_svnt_hdr_template_ending_;
}
@@ -1442,7 +1442,7 @@ BE_GlobalData::ciao_svnt_source_template_ending (const char* s)
}
const char*
-BE_GlobalData::ciao_svnt_source_template_ending (void) const
+BE_GlobalData::ciao_svnt_source_template_ending () const
{
return this->ciao_svnt_src_template_ending_;
}
@@ -1455,7 +1455,7 @@ BE_GlobalData::ciao_exec_header_ending (const char* s)
}
const char*
-BE_GlobalData::ciao_exec_header_ending (void) const
+BE_GlobalData::ciao_exec_header_ending () const
{
return this->ciao_exec_hdr_ending_;
}
@@ -1468,7 +1468,7 @@ BE_GlobalData::ciao_exec_source_ending (const char* s)
}
const char*
-BE_GlobalData::ciao_exec_source_ending (void) const
+BE_GlobalData::ciao_exec_source_ending () const
{
return this->ciao_exec_src_ending_;
}
@@ -1481,7 +1481,7 @@ BE_GlobalData::ciao_exec_stub_header_ending (const char* s)
}
const char*
-BE_GlobalData::ciao_exec_stub_header_ending (void) const
+BE_GlobalData::ciao_exec_stub_header_ending () const
{
return this->ciao_exec_stub_hdr_ending_;
}
@@ -1494,7 +1494,7 @@ BE_GlobalData::ciao_exec_idl_ending (const char* s)
}
const char*
-BE_GlobalData::ciao_exec_idl_ending (void) const
+BE_GlobalData::ciao_exec_idl_ending () const
{
return this->ciao_exec_idl_ending_;
}
@@ -1507,7 +1507,7 @@ BE_GlobalData::ciao_conn_header_ending (const char* s)
}
const char*
-BE_GlobalData::ciao_conn_header_ending (void) const
+BE_GlobalData::ciao_conn_header_ending () const
{
return this->ciao_conn_hdr_ending_;
}
@@ -1520,7 +1520,7 @@ BE_GlobalData::ciao_conn_source_ending (const char* s)
}
const char*
-BE_GlobalData::ciao_conn_source_ending (void) const
+BE_GlobalData::ciao_conn_source_ending () const
{
return this->ciao_conn_src_ending_;
}
@@ -1533,7 +1533,7 @@ BE_GlobalData::dds_typesupport_hdr_ending (const char* s)
}
const char*
-BE_GlobalData::dds_typesupport_hdr_ending (void) const
+BE_GlobalData::dds_typesupport_hdr_ending () const
{
return this->dds_typesupport_hdr_ending_;
}
@@ -1546,7 +1546,7 @@ BE_GlobalData::ciao_ami_conn_idl_ending (const char* s)
}
const char *
-BE_GlobalData::ciao_ami_conn_idl_ending (void) const
+BE_GlobalData::ciao_ami_conn_idl_ending () const
{
return this->ciao_ami_conn_idl_ending_;
}
@@ -1559,7 +1559,7 @@ BE_GlobalData::ciao_ami_conn_impl_hdr_ending (const char* s)
}
const char *
-BE_GlobalData::ciao_ami_conn_impl_hdr_ending (void) const
+BE_GlobalData::ciao_ami_conn_impl_hdr_ending () const
{
return this->ciao_ami_conn_impl_hdr_ending_;
}
@@ -1572,7 +1572,7 @@ BE_GlobalData::ciao_ami_conn_impl_src_ending (const char* s)
}
const char *
-BE_GlobalData::ciao_ami_conn_impl_src_ending (void) const
+BE_GlobalData::ciao_ami_conn_impl_src_ending () const
{
return this->ciao_ami_conn_impl_src_ending_;
}
@@ -1585,7 +1585,7 @@ BE_GlobalData::ciao_container_type (const char* s)
}
const char *
-BE_GlobalData::ciao_container_type (void) const
+BE_GlobalData::ciao_container_type () const
{
return this->ciao_container_type_;
}
@@ -1598,12 +1598,12 @@ BE_GlobalData::output_dir (const char* s)
}
const char*
-BE_GlobalData::output_dir (void) const
+BE_GlobalData::output_dir () const
{
return this->output_dir_;
}
bool
-BE_GlobalData::overwrite_not_exec (void) const
+BE_GlobalData::overwrite_not_exec () const
{
return this->overwrite_not_exec_;
}
@@ -1622,7 +1622,7 @@ BE_GlobalData::skel_output_dir (const char* s)
}
const char*
-BE_GlobalData::skel_output_dir (void) const
+BE_GlobalData::skel_output_dir () const
{
return this->skel_output_dir_;
}
@@ -1635,7 +1635,7 @@ BE_GlobalData::stub_include_dir (const char* s)
}
const char*
-BE_GlobalData::stub_include_dir (void) const
+BE_GlobalData::stub_include_dir () const
{
return this->stub_include_dir_;
}
@@ -1648,7 +1648,7 @@ BE_GlobalData::anyop_output_dir (const char* s)
}
const char*
-BE_GlobalData::anyop_output_dir (void) const
+BE_GlobalData::anyop_output_dir () const
{
return this->anyop_output_dir_;
}
@@ -1661,7 +1661,7 @@ BE_GlobalData::exec_output_dir (const char* s)
}
const char*
-BE_GlobalData::exec_output_dir (void) const
+BE_GlobalData::exec_output_dir () const
{
return this->exec_output_dir_;
}
@@ -1672,7 +1672,7 @@ BE_GlobalData::any_support (bool val)
}
bool
-BE_GlobalData::any_support (void) const
+BE_GlobalData::any_support () const
{
return this->any_support_;
}
@@ -1684,7 +1684,7 @@ BE_GlobalData::cdr_support (bool val)
}
bool
-BE_GlobalData::cdr_support (void) const
+BE_GlobalData::cdr_support () const
{
return this->cdr_support_;
}
@@ -1696,7 +1696,7 @@ BE_GlobalData::tc_support (bool val)
}
bool
-BE_GlobalData::tc_support (void) const
+BE_GlobalData::tc_support () const
{
return this->tc_support_;
}
@@ -1708,7 +1708,7 @@ BE_GlobalData::obv_opt_accessor (bool val)
}
bool
-BE_GlobalData::obv_opt_accessor (void) const
+BE_GlobalData::obv_opt_accessor () const
{
return this->obv_opt_accessor_;
}
@@ -1720,7 +1720,7 @@ BE_GlobalData::gen_impl_files (bool val)
}
bool
-BE_GlobalData::gen_impl_files (void) const
+BE_GlobalData::gen_impl_files () const
{
return this->gen_impl_files_;
}
@@ -1732,7 +1732,7 @@ BE_GlobalData::gen_impl_debug_info (bool val)
}
bool
-BE_GlobalData::gen_impl_debug_info (void) const
+BE_GlobalData::gen_impl_debug_info () const
{
return this->gen_impl_debug_info_;
}
@@ -1744,7 +1744,7 @@ BE_GlobalData::gen_copy_ctor (bool val)
}
bool
-BE_GlobalData::gen_copy_ctor (void) const
+BE_GlobalData::gen_copy_ctor () const
{
return this->gen_copy_ctor_;
}
@@ -1756,7 +1756,7 @@ BE_GlobalData::gen_assign_op (bool val)
}
bool
-BE_GlobalData::gen_assign_op (void) const
+BE_GlobalData::gen_assign_op () const
{
return this->gen_assign_op_;
}
@@ -1768,7 +1768,7 @@ BE_GlobalData::gen_thru_poa_collocation (bool val)
}
bool
-BE_GlobalData::gen_thru_poa_collocation (void) const
+BE_GlobalData::gen_thru_poa_collocation () const
{
return this->gen_thru_poa_collocation_;
}
@@ -1780,7 +1780,7 @@ BE_GlobalData::gen_direct_collocation (bool val)
}
bool
-BE_GlobalData::gen_direct_collocation (void) const
+BE_GlobalData::gen_direct_collocation () const
{
return this->gen_direct_collocation_;
}
@@ -1792,7 +1792,7 @@ BE_GlobalData::gen_corba_e (bool val)
}
bool
-BE_GlobalData::gen_corba_e (void) const
+BE_GlobalData::gen_corba_e () const
{
return this->gen_corba_e_;
}
@@ -1804,7 +1804,7 @@ BE_GlobalData::gen_minimum_corba (bool val)
}
bool
-BE_GlobalData::gen_minimum_corba (void) const
+BE_GlobalData::gen_minimum_corba () const
{
return this->gen_minimum_corba_;
}
@@ -1816,7 +1816,7 @@ BE_GlobalData::gen_noeventccm (bool val)
}
bool
-BE_GlobalData::gen_noeventccm (void) const
+BE_GlobalData::gen_noeventccm () const
{
return this->gen_noeventccm_;
}
@@ -1828,7 +1828,7 @@ BE_GlobalData::gen_lwccm (bool val)
}
bool
-BE_GlobalData::gen_lwccm (void) const
+BE_GlobalData::gen_lwccm () const
{
return this->gen_lwccm_;
}
@@ -1841,7 +1841,7 @@ BE_GlobalData::opt_tc (bool val)
}
bool
-BE_GlobalData::opt_tc (void) const
+BE_GlobalData::opt_tc () const
{
return this->opt_tc_;
}
@@ -1853,7 +1853,7 @@ BE_GlobalData::ami4ccm_call_back (bool val)
}
bool
-BE_GlobalData::ami4ccm_call_back (void) const
+BE_GlobalData::ami4ccm_call_back () const
{
return this->ami4ccm_call_back_;
}
@@ -1865,7 +1865,7 @@ BE_GlobalData::ami_call_back (bool val)
}
bool
-BE_GlobalData::ami_call_back (void) const
+BE_GlobalData::ami_call_back () const
{
return this->ami_call_back_;
}
@@ -1877,7 +1877,7 @@ BE_GlobalData::gen_amh_classes (bool val)
}
bool
-BE_GlobalData::gen_amh_classes (void) const
+BE_GlobalData::gen_amh_classes () const
{
return this->gen_amh_classes_;
}
@@ -1889,7 +1889,7 @@ BE_GlobalData::gen_tie_classes (bool val)
}
bool
-BE_GlobalData::gen_tie_classes (void) const
+BE_GlobalData::gen_tie_classes () const
{
return this->gen_tie_classes_;
}
@@ -1901,7 +1901,7 @@ BE_GlobalData::gen_smart_proxies (bool val)
}
bool
-BE_GlobalData::gen_smart_proxies (void) const
+BE_GlobalData::gen_smart_proxies () const
{
return this->gen_smart_proxies_;
}
@@ -1913,7 +1913,7 @@ BE_GlobalData::gen_inline_constants (bool val)
}
bool
-BE_GlobalData::gen_inline_constants (void) const
+BE_GlobalData::gen_inline_constants () const
{
return this->gen_inline_constants_;
}
@@ -1925,7 +1925,7 @@ BE_GlobalData::gen_orb_h_include (bool val)
}
bool
-BE_GlobalData::gen_orb_h_include (void) const
+BE_GlobalData::gen_orb_h_include () const
{
return this->gen_orb_h_include_;
}
@@ -1937,7 +1937,7 @@ BE_GlobalData::gen_empty_anyop_header (bool val)
}
bool
-BE_GlobalData::gen_empty_anyop_header (void) const
+BE_GlobalData::gen_empty_anyop_header () const
{
return this->gen_empty_anyop_header_;
}
@@ -1949,7 +1949,7 @@ BE_GlobalData::lookup_strategy (LOOKUP_STRATEGY s)
}
BE_GlobalData::LOOKUP_STRATEGY
-BE_GlobalData::lookup_strategy (void) const
+BE_GlobalData::lookup_strategy () const
{
return this->lookup_strategy_;
}
@@ -1957,7 +1957,7 @@ BE_GlobalData::lookup_strategy (void) const
void
BE_GlobalData::dds_impl (char const * const val)
{
- ACE_CString tmp (val, 0, false);
+ ACE_CString tmp (val, nullptr, false);
if (tmp == "ndds")
{
@@ -1986,236 +1986,236 @@ BE_GlobalData::dds_impl (char const * const val)
}
BE_GlobalData::DDS_IMPL
-BE_GlobalData::dds_impl (void) const
+BE_GlobalData::dds_impl () const
{
return this->dds_impl_;
}
void
-BE_GlobalData::destroy (void)
+BE_GlobalData::destroy ()
{
ACE::strdelete (this->skel_export_macro_);
- this->skel_export_macro_ = 0;
+ this->skel_export_macro_ = nullptr;
ACE::strdelete (this->skel_export_include_);
- this->skel_export_include_ = 0;
+ this->skel_export_include_ = nullptr;
ACE::strdelete (this->skel_export_file_);
- this->skel_export_file_ = 0;
+ this->skel_export_file_ = nullptr;
ACE::strdelete (this->stub_export_macro_);
- this->stub_export_macro_ = 0;
+ this->stub_export_macro_ = nullptr;
ACE::strdelete (this->stub_export_include_);
- this->stub_export_include_ = 0;
+ this->stub_export_include_ = nullptr;
ACE::strdelete (this->stub_export_file_);
- this->stub_export_file_ = 0;
+ this->stub_export_file_ = nullptr;
ACE::strdelete (this->anyop_export_macro_);
- this->anyop_export_macro_ = 0;
+ this->anyop_export_macro_ = nullptr;
ACE::strdelete (this->anyop_export_include_);
- this->anyop_export_include_ = 0;
+ this->anyop_export_include_ = nullptr;
ACE::strdelete (this->exec_export_macro_);
- this->exec_export_macro_ = 0;
+ this->exec_export_macro_ = nullptr;
ACE::strdelete (this->exec_export_include_);
- this->exec_export_include_ = 0;
+ this->exec_export_include_ = nullptr;
ACE::strdelete (this->svnt_export_macro_);
- this->svnt_export_macro_ = 0;
+ this->svnt_export_macro_ = nullptr;
ACE::strdelete (this->svnt_export_include_);
- this->svnt_export_include_ = 0;
+ this->svnt_export_include_ = nullptr;
ACE::strdelete (this->conn_export_macro_);
- this->conn_export_macro_ = 0;
+ this->conn_export_macro_ = nullptr;
ACE::strdelete (this->conn_export_include_);
- this->conn_export_include_ = 0;
+ this->conn_export_include_ = nullptr;
ACE::strdelete (this->pch_include_);
- this->pch_include_ = 0;
+ this->pch_include_ = nullptr;
ACE::strdelete (this->pre_include_);
- this->pre_include_ = 0;
+ this->pre_include_ = nullptr;
ACE::strdelete (this->post_include_);
- this->post_include_ = 0;
+ this->post_include_ = nullptr;
ACE::strdelete (this->include_guard_);
- this->include_guard_ = 0;
+ this->include_guard_ = nullptr;
ACE::strdelete (this->safe_include_);
- this->safe_include_ = 0;
+ this->safe_include_ = nullptr;
ACE::strdelete (this->unique_include_);
- this->unique_include_ = 0;
+ this->unique_include_ = nullptr;
ACE::strdelete (this->stripped_filename_);
- this->stripped_filename_ = 0;
+ this->stripped_filename_ = nullptr;
ACE::strdelete (this->client_hdr_ending_);
- this->client_hdr_ending_ = 0;
+ this->client_hdr_ending_ = nullptr;
ACE::strdelete (this->client_stub_ending_);
- this->client_stub_ending_ = 0;
+ this->client_stub_ending_ = nullptr;
ACE::strdelete (this->client_inline_ending_);
- this->client_inline_ending_ = 0;
+ this->client_inline_ending_ = nullptr;
ACE::strdelete (this->server_hdr_ending_);
- this->server_hdr_ending_ = 0;
+ this->server_hdr_ending_ = nullptr;
ACE::strdelete (this->implementation_hdr_ending_);
- this->implementation_hdr_ending_ = 0;
+ this->implementation_hdr_ending_ = nullptr;
ACE::strdelete (this->implementation_skel_ending_);
- this->implementation_skel_ending_ = 0;
+ this->implementation_skel_ending_ = nullptr;
ACE::strdelete (this->impl_class_prefix_);
- this->impl_class_prefix_ = 0;
+ this->impl_class_prefix_ = nullptr;
ACE::strdelete (this->impl_class_suffix_);
- this->impl_class_suffix_ = 0;
+ this->impl_class_suffix_ = nullptr;
ACE::strdelete (this->server_template_hdr_ending_);
- this->server_template_hdr_ending_ = 0;
+ this->server_template_hdr_ending_ = nullptr;
ACE::strdelete (this->server_skeleton_ending_);
- this->server_skeleton_ending_ = 0;
+ this->server_skeleton_ending_ = nullptr;
ACE::strdelete (this->server_template_skeleton_ending_);
- this->server_template_skeleton_ending_ = 0;
+ this->server_template_skeleton_ending_ = nullptr;
ACE::strdelete (this->anyop_hdr_ending_);
- this->anyop_hdr_ending_ = 0;
+ this->anyop_hdr_ending_ = nullptr;
ACE::strdelete (this->anyop_src_ending_);
- this->anyop_src_ending_ = 0;
+ this->anyop_src_ending_ = nullptr;
ACE::strdelete (this->ciao_svnt_hdr_ending_);
- this->ciao_svnt_hdr_ending_ = 0;
+ this->ciao_svnt_hdr_ending_ = nullptr;
ACE::strdelete (this->ciao_svnt_src_ending_);
- this->ciao_svnt_src_ending_ = 0;
+ this->ciao_svnt_src_ending_ = nullptr;
ACE::strdelete (this->ciao_svnt_hdr_template_ending_);
- this->ciao_svnt_hdr_template_ending_ = 0;
+ this->ciao_svnt_hdr_template_ending_ = nullptr;
ACE::strdelete (this->ciao_svnt_src_template_ending_);
- this->ciao_svnt_src_template_ending_ = 0;
+ this->ciao_svnt_src_template_ending_ = nullptr;
ACE::strdelete (this->ciao_exec_hdr_ending_);
- this->ciao_exec_hdr_ending_ = 0;
+ this->ciao_exec_hdr_ending_ = nullptr;
ACE::strdelete (this->ciao_exec_src_ending_);
- this->ciao_exec_src_ending_ = 0;
+ this->ciao_exec_src_ending_ = nullptr;
ACE::strdelete (this->ciao_exec_stub_hdr_ending_);
- this->ciao_exec_stub_hdr_ending_ = 0;
+ this->ciao_exec_stub_hdr_ending_ = nullptr;
ACE::strdelete (this->ciao_exec_idl_ending_);
- this->ciao_exec_idl_ending_ = 0;
+ this->ciao_exec_idl_ending_ = nullptr;
ACE::strdelete (this->ciao_conn_hdr_ending_);
- this->ciao_conn_hdr_ending_ = 0;
+ this->ciao_conn_hdr_ending_ = nullptr;
ACE::strdelete (this->ciao_conn_src_ending_);
- this->ciao_conn_src_ending_ = 0;
+ this->ciao_conn_src_ending_ = nullptr;
ACE::strdelete (this->dds_typesupport_hdr_ending_);
- this->dds_typesupport_hdr_ending_ = 0;
+ this->dds_typesupport_hdr_ending_ = nullptr;
ACE::strdelete (this->ciao_ami_conn_idl_ending_);
- this->ciao_ami_conn_idl_ending_ = 0;
+ this->ciao_ami_conn_idl_ending_ = nullptr;
ACE::strdelete (this->ciao_ami_conn_impl_hdr_ending_);
- this->ciao_ami_conn_impl_hdr_ending_ = 0;
+ this->ciao_ami_conn_impl_hdr_ending_ = nullptr;
ACE::strdelete (this->ciao_ami_conn_impl_src_ending_);
- this->ciao_ami_conn_impl_src_ending_ = 0;
+ this->ciao_ami_conn_impl_src_ending_ = nullptr;
ACE::strdelete (this->ciao_container_type_);
- this->ciao_container_type_ = 0;
+ this->ciao_container_type_ = nullptr;
ACE::strdelete (this->output_dir_);
- this->output_dir_ = 0;
+ this->output_dir_ = nullptr;
ACE::strdelete (this->stub_include_dir_);
- this->stub_include_dir_ = 0;
+ this->stub_include_dir_ = nullptr;
ACE::strdelete (this->skel_output_dir_);
- this->skel_output_dir_ = 0;
+ this->skel_output_dir_ = nullptr;
ACE::strdelete (this->anyop_output_dir_);
- this->anyop_output_dir_ = 0;
+ this->anyop_output_dir_ = nullptr;
ACE::strdelete (this->exec_output_dir_);
- this->exec_output_dir_ = 0;
+ this->exec_output_dir_ = nullptr;
- if (0 != this->messaging_)
+ if (nullptr != this->messaging_)
{
this->messaging_->destroy ();
delete this->messaging_;
- this->messaging_ = 0;
+ this->messaging_ = nullptr;
}
- if (0 != this->messaging_exceptionholder_)
+ if (nullptr != this->messaging_exceptionholder_)
{
this->messaging_exceptionholder_->destroy ();
delete this->messaging_exceptionholder_;
- this->messaging_exceptionholder_ = 0;
+ this->messaging_exceptionholder_ = nullptr;
}
- if (0 != this->messaging_replyhandler_)
+ if (nullptr != this->messaging_replyhandler_)
{
this->messaging_replyhandler_->destroy ();
delete this->messaging_replyhandler_;
- this->messaging_replyhandler_ = 0;
+ this->messaging_replyhandler_ = nullptr;
}
- if (0 != tao_cg)
+ if (nullptr != tao_cg)
{
tao_cg->destroy ();
}
}
AST_PredefinedType *
-BE_GlobalData:: void_type (void)
+BE_GlobalData:: void_type ()
{
- if (0 == this->void_type_)
+ if (nullptr == this->void_type_)
{
AST_Decl *d =
idl_global->root ()->lookup_primitive_type (
AST_Expression::EV_void);
- this->void_type_ = AST_PredefinedType::narrow_from_decl (d);
+ this->void_type_ = dynamic_cast<AST_PredefinedType*> (d);
}
return this->void_type_;
}
be_interface *
-BE_GlobalData::ccmobject (void)
+BE_GlobalData::ccmobject ()
{
- if (0 == this->ccmobject_)
+ if (nullptr == this->ccmobject_)
{
- Identifier *local_id = 0;
+ Identifier *local_id = nullptr;
ACE_NEW_RETURN (local_id,
Identifier ("CCMObject"),
- 0);
- UTL_ScopedName *local_name = 0;
+ nullptr);
+ UTL_ScopedName *local_name = nullptr;
ACE_NEW_RETURN (local_name,
- UTL_ScopedName (local_id, 0),
- 0);
+ UTL_ScopedName (local_id, nullptr),
+ nullptr);
- Identifier *module_id = 0;
+ Identifier *module_id = nullptr;
ACE_NEW_RETURN (module_id,
Identifier ("Components"),
- 0);
+ nullptr);
UTL_ScopedName sn (module_id,
local_name);
@@ -2225,7 +2225,7 @@ BE_GlobalData::ccmobject (void)
sn.destroy ();
- if (0 == d)
+ if (nullptr == d)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_global::ccmobject - "
@@ -2233,32 +2233,32 @@ BE_GlobalData::ccmobject (void)
0);
}
- this->ccmobject_ = be_interface::narrow_from_decl (d);
+ this->ccmobject_ = dynamic_cast<be_interface*> (d);
}
return this->ccmobject_;
}
be_module *
-BE_GlobalData::messaging (void)
+BE_GlobalData::messaging ()
{
- if (0 == this->messaging_)
+ if (nullptr == this->messaging_)
{
- Identifier *id = 0;
- UTL_ScopedName *sn = 0;
+ Identifier *id = nullptr;
+ UTL_ScopedName *sn = nullptr;
ACE_NEW_RETURN (id,
Identifier ("Messaging"),
- 0);
+ nullptr);
ACE_NEW_RETURN (sn,
UTL_ScopedName (id,
- 0),
- 0);
+ nullptr),
+ nullptr);
ACE_NEW_RETURN (this->messaging_,
be_module (sn),
- 0);
+ nullptr);
this->messaging_->set_name (sn);
}
@@ -2267,52 +2267,52 @@ BE_GlobalData::messaging (void)
}
be_valuetype *
-BE_GlobalData::messaging_exceptionholder (void)
+BE_GlobalData::messaging_exceptionholder ()
{
- if (0 == this->messaging_exceptionholder_)
+ if (nullptr == this->messaging_exceptionholder_)
{
- Identifier *id = 0;
+ Identifier *id = nullptr;
be_module *msg = this->messaging ();
idl_global->scopes ().push (msg);
ACE_NEW_RETURN (id,
Identifier ("Messaging"),
- 0);
+ nullptr);
// Create a valuetype "ExceptionHolder"
// from which we inherit.
- UTL_ScopedName *full_name = 0;
+ UTL_ScopedName *full_name = nullptr;
ACE_NEW_RETURN (full_name,
UTL_ScopedName (id,
- 0),
- 0);
+ nullptr),
+ nullptr);
ACE_NEW_RETURN (id,
Identifier ("ExceptionHolder"),
- 0);
+ nullptr);
- UTL_ScopedName *local_name = 0;
+ UTL_ScopedName *local_name = nullptr;
ACE_NEW_RETURN (local_name,
UTL_ScopedName (id,
- 0),
- 0);
+ nullptr),
+ nullptr);
full_name->nconc (local_name);
ACE_NEW_RETURN (this->messaging_exceptionholder_,
be_valuetype (full_name,
+ nullptr,
0,
+ nullptr,
+ nullptr,
0,
+ nullptr,
0,
- 0,
- 0,
- 0,
- 0,
- 0,
+ nullptr,
0,
0,
0),
- 0);
+ nullptr);
this->messaging_exceptionholder_->set_name (full_name);
@@ -2332,49 +2332,49 @@ BE_GlobalData::messaging_exceptionholder (void)
}
be_interface *
-BE_GlobalData::messaging_replyhandler (void)
+BE_GlobalData::messaging_replyhandler ()
{
- if (0 == this->messaging_replyhandler_)
+ if (nullptr == this->messaging_replyhandler_)
{
be_module *msg = this->messaging ();
idl_global->scopes ().push (msg);
- Identifier *id = 0;
- UTL_ScopedName *local_name = 0;
+ Identifier *id = nullptr;
+ UTL_ScopedName *local_name = nullptr;
// Create a virtual module named "Messaging"
// "and an interface "ReplyHandler"
// from which we inherit.
ACE_NEW_RETURN (id,
Identifier ("Messaging"),
- 0);
+ nullptr);
- UTL_ScopedName *full_name = 0;
+ UTL_ScopedName *full_name = nullptr;
ACE_NEW_RETURN (full_name,
UTL_ScopedName (id,
- 0),
- 0);
+ nullptr),
+ nullptr);
ACE_NEW_RETURN (id,
Identifier ("ReplyHandler"),
- 0);
+ nullptr);
ACE_NEW_RETURN (local_name,
UTL_ScopedName (id,
- 0),
- 0);
+ nullptr),
+ nullptr);
full_name->nconc (local_name);
ACE_NEW_RETURN (this->messaging_replyhandler_,
be_interface (full_name,
- 0, // inherited interfaces
+ nullptr, // inherited interfaces
0, // number of inherited interfaces
- 0, // ancestors
+ nullptr, // ancestors
0, // number of ancestors
0, // not local
0), // not abstract
- 0);
+ nullptr);
this->messaging_replyhandler_->set_name (full_name);
this->messaging_replyhandler_->set_prefix_with_typeprefix ("omg.org");
@@ -2390,7 +2390,7 @@ BE_GlobalData::messaging_replyhandler (void)
}
bool
-BE_GlobalData::gen_anyop_files (void) const
+BE_GlobalData::gen_anyop_files () const
{
return this->gen_anyop_files_;
}
@@ -2402,7 +2402,7 @@ BE_GlobalData::gen_anyop_files (bool val)
}
bool
-BE_GlobalData::gen_skel_files (void) const
+BE_GlobalData::gen_skel_files () const
{
return this->gen_skel_files_;
}
@@ -2414,7 +2414,7 @@ BE_GlobalData::gen_skel_files (bool val)
}
bool
-BE_GlobalData::gen_svnt_cpp_files (void) const
+BE_GlobalData::gen_svnt_cpp_files () const
{
return this->gen_svnt_cpp_files_;
}
@@ -2426,7 +2426,7 @@ BE_GlobalData::gen_svnt_cpp_files (bool val)
}
bool
-BE_GlobalData::gen_svnt_t_files (void) const
+BE_GlobalData::gen_svnt_t_files () const
{
return this->gen_svnt_t_files_;
}
@@ -2438,7 +2438,7 @@ BE_GlobalData::gen_svnt_t_files (bool val)
}
bool
-BE_GlobalData::gen_client_inline (void) const
+BE_GlobalData::gen_client_inline () const
{
return this->gen_client_inline_;
}
@@ -2450,7 +2450,7 @@ BE_GlobalData::gen_client_inline (bool val)
}
bool
-BE_GlobalData::gen_client_stub (void) const
+BE_GlobalData::gen_client_stub () const
{
return this->gen_client_stub_;
}
@@ -2462,7 +2462,7 @@ BE_GlobalData::gen_client_stub (bool val)
}
bool
-BE_GlobalData::gen_client_header (void) const
+BE_GlobalData::gen_client_header () const
{
return this->gen_client_header_;
}
@@ -2474,7 +2474,7 @@ BE_GlobalData::gen_client_header (bool val)
}
bool
-BE_GlobalData::gen_server_skeleton (void) const
+BE_GlobalData::gen_server_skeleton () const
{
return this->gen_server_skeleton_;
}
@@ -2486,7 +2486,7 @@ BE_GlobalData::gen_server_skeleton (bool val)
}
bool
-BE_GlobalData::gen_server_header (void) const
+BE_GlobalData::gen_server_header () const
{
return this->gen_server_header_;
}
@@ -2498,7 +2498,7 @@ BE_GlobalData::gen_server_header (bool val)
}
bool
-BE_GlobalData::gen_local_iface_anyops (void) const
+BE_GlobalData::gen_local_iface_anyops () const
{
return this->gen_local_iface_anyops_;
}
@@ -2510,7 +2510,7 @@ BE_GlobalData::gen_local_iface_anyops (bool val)
}
bool
-BE_GlobalData::gen_custom_ending (void) const
+BE_GlobalData::gen_custom_ending () const
{
return this->gen_custom_ending_;
}
@@ -2522,7 +2522,7 @@ BE_GlobalData::gen_custom_ending (bool val)
}
bool
-BE_GlobalData::gen_unique_guards (void) const
+BE_GlobalData::gen_unique_guards () const
{
return this->gen_unique_guards_;
}
@@ -2534,7 +2534,7 @@ BE_GlobalData::gen_unique_guards (bool val)
}
bool
-BE_GlobalData::gen_ciao_svnt (void) const
+BE_GlobalData::gen_ciao_svnt () const
{
return this->gen_ciao_svnt_;
}
@@ -2546,7 +2546,7 @@ BE_GlobalData::gen_ciao_svnt (bool val)
}
bool
-BE_GlobalData::gen_ciao_exec_idl (void) const
+BE_GlobalData::gen_ciao_exec_idl () const
{
return this->gen_ciao_exec_idl_;
}
@@ -2558,7 +2558,7 @@ BE_GlobalData::gen_ciao_exec_idl (bool val)
}
bool
-BE_GlobalData::gen_ciao_exec_impl (void) const
+BE_GlobalData::gen_ciao_exec_impl () const
{
return this->gen_ciao_exec_impl_;
}
@@ -2570,7 +2570,7 @@ BE_GlobalData::gen_ciao_exec_impl (bool val)
}
bool
-BE_GlobalData::gen_ciao_exec_reactor_impl (void) const
+BE_GlobalData::gen_ciao_exec_reactor_impl () const
{
return this->gen_ciao_exec_reactor_impl_;
}
@@ -2582,7 +2582,7 @@ BE_GlobalData::gen_ciao_exec_reactor_impl (bool val)
}
bool
-BE_GlobalData::gen_ciao_conn_impl (void) const
+BE_GlobalData::gen_ciao_conn_impl () const
{
return this->gen_ciao_conn_impl_;
}
@@ -2594,7 +2594,7 @@ BE_GlobalData::gen_ciao_conn_impl (bool val)
}
bool
-BE_GlobalData::gen_dds_typesupport_idl (void) const
+BE_GlobalData::gen_dds_typesupport_idl () const
{
return this->gen_dds_typesupport_idl_;
}
@@ -2606,7 +2606,7 @@ BE_GlobalData::gen_dds_typesupport_idl (bool val)
}
bool
-BE_GlobalData::gen_ciao_valuefactory_reg (void) const
+BE_GlobalData::gen_ciao_valuefactory_reg () const
{
return this->gen_ciao_valuefactory_reg_;
}
@@ -2618,7 +2618,7 @@ BE_GlobalData::gen_ciao_valuefactory_reg (bool val)
}
bool
-BE_GlobalData::gen_stub_export_hdr_file (void) const
+BE_GlobalData::gen_stub_export_hdr_file () const
{
return this->gen_stub_export_hdr_file_;
}
@@ -2630,7 +2630,7 @@ BE_GlobalData::gen_stub_export_hdr_file (bool val)
}
bool
-BE_GlobalData::gen_skel_export_hdr_file (void) const
+BE_GlobalData::gen_skel_export_hdr_file () const
{
return this->gen_skel_export_hdr_file_;
}
@@ -2642,7 +2642,7 @@ BE_GlobalData::gen_skel_export_hdr_file (bool val)
}
bool
-BE_GlobalData::gen_svnt_export_hdr_file (void) const
+BE_GlobalData::gen_svnt_export_hdr_file () const
{
return this->gen_svnt_export_hdr_file_;
}
@@ -2654,7 +2654,7 @@ BE_GlobalData::gen_svnt_export_hdr_file (bool val)
}
bool
-BE_GlobalData::gen_exec_export_hdr_file (void) const
+BE_GlobalData::gen_exec_export_hdr_file () const
{
return this->gen_exec_export_hdr_file_;
}
@@ -2666,7 +2666,7 @@ BE_GlobalData::gen_exec_export_hdr_file (bool val)
}
bool
-BE_GlobalData::gen_conn_export_hdr_file (void) const
+BE_GlobalData::gen_conn_export_hdr_file () const
{
return this->gen_conn_export_hdr_file_;
}
@@ -2678,7 +2678,7 @@ BE_GlobalData::gen_conn_export_hdr_file (bool val)
}
bool
-BE_GlobalData::alt_mapping (void) const
+BE_GlobalData::alt_mapping () const
{
return this->alt_mapping_;
}
@@ -2690,7 +2690,7 @@ BE_GlobalData::alt_mapping (bool val)
}
bool
-BE_GlobalData::in_facet_servant (void) const
+BE_GlobalData::in_facet_servant () const
{
return this->in_facet_servant_;
}
@@ -2702,7 +2702,7 @@ BE_GlobalData::in_facet_servant (bool val)
}
bool
-BE_GlobalData::gen_arg_traits (void) const
+BE_GlobalData::gen_arg_traits () const
{
return this->gen_arg_traits_;
}
@@ -2714,7 +2714,7 @@ BE_GlobalData::gen_arg_traits (bool val)
}
bool
-BE_GlobalData::gen_anytypecode_adapter (void) const
+BE_GlobalData::gen_anytypecode_adapter () const
{
return this->gen_anytypecode_adapter_;
}
@@ -2738,7 +2738,7 @@ BE_GlobalData::no_fixed_err (bool val)
}
unsigned long
-BE_GlobalData::tab_size (void) const
+BE_GlobalData::tab_size () const
{
return this->tab_size_;
}
@@ -2750,7 +2750,7 @@ BE_GlobalData::tab_size (unsigned long val)
}
ACE_CString
-BE_GlobalData::spawn_options (void)
+BE_GlobalData::spawn_options ()
{
return idl_global->idl_flags ();
}
@@ -2902,7 +2902,7 @@ BE_GlobalData::parse_args (long &i, char **av)
case 'H':
idl_global->append_idl_flag (av[i + 1]);
- if (av[i + 1] == 0 || av[i + 1][0] == '-')
+ if (av[i + 1] == nullptr || av[i + 1][0] == '-')
{
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("no selection for -H option\n")));
@@ -2981,7 +2981,7 @@ BE_GlobalData::parse_args (long &i, char **av)
if (av[i][2] == '\0')
{
idl_global->append_idl_flag (av[i + 1]);
- ACE_CString tmp (av[i + 1], 0, false);
+ ACE_CString tmp (av[i + 1], nullptr, false);
#if defined (ACE_WIN32)
// WIN32's CreateProcess needs the full executable name
// when the gperf path is modified, but not for the default
@@ -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)
{
@@ -3713,7 +3713,7 @@ BE_GlobalData::parse_args (long &i, char **av)
case 'T':
if (av[i][2] == 'S')
{
- unsigned long ul = ACE_OS::strtoul (av[i + 1], 0, 10);
+ unsigned long ul = ACE_OS::strtoul (av[i + 1], nullptr, 10);
be_global->tab_size (ul);
++i;
}
diff --git a/TAO/TAO_IDL/be/be_helper.cpp b/TAO/TAO_IDL/be/be_helper.cpp
index b62ed54a062..1a0ed5e84a7 100644
--- a/TAO/TAO_IDL/be/be_helper.cpp
+++ b/TAO/TAO_IDL/be/be_helper.cpp
@@ -46,12 +46,12 @@ static const char copyright[] =
" * https://www.dre.vanderbilt.edu/~schmidt/TAO.html\n"
" **/";
-TAO_NL::TAO_NL (void)
+TAO_NL::TAO_NL ()
{
ACE_UNUSED_ARG (copyright);
}
-TAO_NL_2::TAO_NL_2 (void)
+TAO_NL_2::TAO_NL_2 ()
{
ACE_UNUSED_ARG (copyright);
}
@@ -75,8 +75,8 @@ const TAO_UNINDENT be_uidt_nl (1);
// Methods of the TAO_OutStream class.
-TAO_OutStream::TAO_OutStream (void)
- : fp_ (0),
+TAO_OutStream::TAO_OutStream ()
+ : fp_ (nullptr),
st_ (TAO_CLI_HDR),
indent_level_ (0)
{
@@ -86,13 +86,13 @@ TAO_OutStream::TAO_OutStream (void)
}
}
-TAO_OutStream::~TAO_OutStream (void)
+TAO_OutStream::~TAO_OutStream ()
{
// Close the underlying I/O handle only if it exists.
- if (this->fp_ != 0)
+ if (this->fp_ != nullptr)
{
ACE_OS::fclose (this->fp_);
- this->fp_ = 0;
+ this->fp_ = nullptr;
}
indent_level_ = 0;
@@ -102,12 +102,12 @@ int
TAO_OutStream::open (const char *fname,
TAO_OutStream::STREAM_TYPE st)
{
- if (fname != 0)
+ if (fname != nullptr)
{
// File name exists, open an I/O file handle.
this->fp_ = ACE_OS::fopen (fname, "w");
- if (this->fp_ != 0)
+ if (this->fp_ != nullptr)
{
this->st_ = st;
// Put the copyright notice. Not for the gperf's temp input
@@ -140,7 +140,7 @@ TAO_OutStream::stream_type (TAO_OutStream::STREAM_TYPE st)
}
TAO_OutStream::STREAM_TYPE
-TAO_OutStream::stream_type (void)
+TAO_OutStream::stream_type ()
{
return this->st_;
}
@@ -148,7 +148,7 @@ TAO_OutStream::stream_type (void)
// Return the underlying lowlevel file pointer.
// indentation.
FILE *&
-TAO_OutStream::file (void)
+TAO_OutStream::file ()
{
return this->fp_;
}
@@ -192,7 +192,7 @@ TAO_OutStream::decr_indent (unsigned short flag)
}
int
-TAO_OutStream::reset (void)
+TAO_OutStream::reset ()
{
this->indent_level_ = 0;
return 0;
@@ -200,7 +200,7 @@ TAO_OutStream::reset (void)
// Indented print.
int
-TAO_OutStream::indent (void)
+TAO_OutStream::indent ()
{
// Based on the current indentation level, leave appropriate number of blank
// spaces in the output.
@@ -216,7 +216,7 @@ TAO_OutStream::indent (void)
}
int
-TAO_OutStream::nl (void)
+TAO_OutStream::nl ()
{
ACE_OS::fprintf (this->fp_, "\n");
this->indent ();
@@ -239,7 +239,7 @@ TAO_OutStream::gen_ifdef_macro (const char *flat_name,
"_%s_",
tao_cg->upcase (flat_name));
- if (suffix != 0)
+ if (suffix != nullptr)
{
ACE_OS::strcat (macro, "_");
ACE_OS::strcat (macro, tao_cg->upcase (suffix));
@@ -287,7 +287,7 @@ TAO_OutStream::gen_ifdef_macro (const char *flat_name,
}
int
-TAO_OutStream::gen_endif (void)
+TAO_OutStream::gen_endif ()
{
*this << "\n\n#endif /* end #if !defined */";
@@ -464,7 +464,7 @@ TAO_OutStream::print (UTL_IdList *idl)
{
bool first = true;
bool second = false;
- Identifier *id = 0;
+ Identifier *id = nullptr;
for (UTL_IdListActiveIterator i (idl); !i.is_done (); i.next ())
{
@@ -505,7 +505,7 @@ TAO_OutStream::print (AST_Expression *expr)
AST_Expression::AST_ExprValue *ev = expr->ev ();
/// Never happens as far as I know, but just in case...
- if (ev == 0)
+ if (ev == nullptr)
{
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("TAO_OutStream::print() - ")
diff --git a/TAO/TAO_IDL/be/be_home.cpp b/TAO/TAO_IDL/be/be_home.cpp
index c83cd2aa991..b3e00cc5739 100644
--- a/TAO/TAO_IDL/be/be_home.cpp
+++ b/TAO/TAO_IDL/be/be_home.cpp
@@ -66,28 +66,28 @@ be_home::be_home (UTL_ScopedName *n,
// Some previous error may have caused a lookup failure, in which
// case we'll crash if we do the narrow below.
- if (managed_component == 0)
+ if (managed_component == nullptr)
{
idl_global->set_err_count (idl_global->err_count () + 1);
return;
}
be_component *bt =
- be_component::narrow_from_decl (managed_component);
+ dynamic_cast<be_component*> (managed_component);
bt->seen_in_operation (true);
idl_global->object_arg_seen_ = true;
}
-be_home::~be_home (void)
+be_home::~be_home ()
{
}
void
be_home::scan (UTL_Scope *s)
{
- if (s == 0)
+ if (s == nullptr)
{
return;
}
@@ -98,55 +98,55 @@ be_home::scan (UTL_Scope *s)
{
AST_Decl *d = i.item ();
AST_Attribute *attr =
- AST_Attribute::narrow_from_decl (d);
+ dynamic_cast<AST_Attribute*> (d);
- if (attr != 0 && ! attr->readonly ())
+ if (attr != nullptr && ! attr->readonly ())
{
this->has_rw_attributes_ = true;
return;
}
}
- AST_Home *h = AST_Home::narrow_from_scope (s);
+ AST_Home *h = dynamic_cast<AST_Home*> (s);
- if (h != 0)
+ if (h != nullptr)
{
this->scan (h->base_home ());
}
}
void
-be_home::destroy (void)
+be_home::destroy ()
{
delete [] this->full_skel_name_;
- this->full_skel_name_ = 0;
+ this->full_skel_name_ = nullptr;
delete [] this->full_coll_name_;
- this->full_coll_name_ = 0;
+ this->full_coll_name_ = nullptr;
delete [] this->local_coll_name_;
- this->local_coll_name_ = 0;
+ this->local_coll_name_ = nullptr;
delete [] this->relative_skel_name_;
- this->relative_skel_name_ = 0;
+ this->relative_skel_name_ = nullptr;
delete [] this->direct_proxy_impl_name_;
- this->direct_proxy_impl_name_ = 0;
+ this->direct_proxy_impl_name_ = nullptr;
delete [] this->full_direct_proxy_impl_name_;
- this->full_direct_proxy_impl_name_ = 0;
+ this->full_direct_proxy_impl_name_ = nullptr;
delete [] this->client_scope_;
- this->client_scope_ = 0;
+ this->client_scope_ = nullptr;
delete [] this->flat_client_scope_;
- this->flat_client_scope_ = 0;
+ this->flat_client_scope_ = nullptr;
delete [] this->server_scope_;
- this->server_scope_ = 0;
+ this->server_scope_ = nullptr;
delete [] this->flat_server_scope_;
- this->flat_server_scope_ = 0;
+ this->flat_server_scope_ = nullptr;
this->be_scope::destroy ();
this->be_type::destroy ();
@@ -162,6 +162,3 @@ be_home::accept (be_visitor *visitor)
? 0
: visitor->visit_home (this));
}
-
-IMPL_NARROW_FROM_DECL (be_home)
-IMPL_NARROW_FROM_SCOPE (be_home)
diff --git a/TAO/TAO_IDL/be/be_identifier_helper.cpp b/TAO/TAO_IDL/be/be_identifier_helper.cpp
index 9abb24ce0ba..72c848882b1 100644
--- a/TAO/TAO_IDL/be/be_identifier_helper.cpp
+++ b/TAO/TAO_IDL/be/be_identifier_helper.cpp
@@ -12,7 +12,7 @@ ACE_CString IdentifierHelper::tmp_retval_;
const char *
IdentifierHelper::type_name (be_type *t, be_visitor *visitor)
{
- AST_PredefinedType *pdt = 0;
+ AST_PredefinedType *pdt = nullptr;
switch (t->node_type ())
{
@@ -22,7 +22,7 @@ IdentifierHelper::type_name (be_type *t, be_visitor *visitor)
(void) t->accept (visitor);
return "";
case AST_Decl::NT_pre_defined:
- pdt = AST_PredefinedType::narrow_from_decl (t);
+ pdt = dynamic_cast<AST_PredefinedType*> (t);
switch (pdt->pt ())
{
@@ -78,7 +78,7 @@ IdentifierHelper::type_name (be_type *t, be_visitor *visitor)
Identifier *
IdentifierHelper::original_local_name (Identifier * local_name)
{
- Identifier * id = 0;
+ Identifier * id = nullptr;
const char *lname = local_name->get_string ();
// Remove _cxx_ if:
@@ -95,16 +95,16 @@ IdentifierHelper::original_local_name (Identifier * local_name)
const TAO_IDL_CPP_Keyword_Entry *entry =
cpp_key_tbl.lookup (lname + 5, len);
- if (entry != 0)
+ if (entry != nullptr)
{
// Remove _cxx_ and assign to the Identifier variable.
ACE_NEW_RETURN (id,
Identifier (lname + 5),
- 0);
+ nullptr);
}
}
- if (id == 0)
+ if (id == nullptr)
{
id = local_name->copy ();
}
@@ -118,7 +118,7 @@ IdentifierHelper::orig_sn (UTL_IdList * sn, bool for_idl)
ACE_CString retval;
bool first = true;
bool second = false;
- Identifier *id = 0;
+ Identifier *id = nullptr;
for (UTL_IdListActiveIterator i (sn); !i.is_done ();)
{
@@ -159,7 +159,7 @@ IdentifierHelper::orig_sn (UTL_IdList * sn, bool for_idl)
id->destroy ();
delete id;
- id = 0;
+ id = nullptr;
}
return retval;
diff --git a/TAO/TAO_IDL/be/be_init.cpp b/TAO/TAO_IDL/be/be_init.cpp
index 691eb0056cd..cb617133710 100644
--- a/TAO/TAO_IDL/be/be_init.cpp
+++ b/TAO/TAO_IDL/be/be_init.cpp
@@ -3,7 +3,7 @@
#include "../../tao/Version.h"
TAO_IDL_BE_Export void
-BE_version (void)
+BE_version ()
{
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("TAO_IDL_BE, version ") ACE_TEXT (TAO_VERSION)
diff --git a/TAO/TAO_IDL/be/be_interface.cpp b/TAO/TAO_IDL/be/be_interface.cpp
index fc1bba18bd5..ba3b0ce5ff0 100644
--- a/TAO/TAO_IDL/be/be_interface.cpp
+++ b/TAO/TAO_IDL/be/be_interface.cpp
@@ -82,23 +82,23 @@ be_interface::be_interface (UTL_ScopedName *n,
n),
be_type (AST_Decl::NT_interface,
n),
- direct_proxy_impl_name_ (0),
- full_direct_proxy_impl_name_ (0),
- client_scope_ (0),
- flat_client_scope_ (0),
- server_scope_ (0),
- flat_server_scope_ (0),
+ direct_proxy_impl_name_ (nullptr),
+ full_direct_proxy_impl_name_ (nullptr),
+ client_scope_ (nullptr),
+ flat_client_scope_ (nullptr),
+ server_scope_ (nullptr),
+ flat_server_scope_ (nullptr),
var_out_seq_decls_gen_ (false),
skel_count_ (0),
in_mult_inheritance_ (-1),
- original_interface_ (0),
+ original_interface_ (nullptr),
is_amh_rh_ (false),
is_ami_rh_ (false),
is_ami4ccm_rh_ (false),
- full_skel_name_ (0),
- full_coll_name_ (0),
- local_coll_name_ (0),
- relative_skel_name_ (0),
+ full_skel_name_ (nullptr),
+ full_coll_name_ (nullptr),
+ local_coll_name_ (nullptr),
+ relative_skel_name_ (nullptr),
cached_type_ (-1),
has_rw_attributes_ (false),
dds_connector_traits_done_ (false)
@@ -141,12 +141,12 @@ be_interface::be_interface (UTL_ScopedName *n,
}
}
-be_interface::~be_interface (void)
+be_interface::~be_interface ()
{
}
const char *
-be_interface::local_name (void)
+be_interface::local_name ()
{
// Return the local name.
// return this->strategy_->local_name ();
@@ -154,9 +154,9 @@ be_interface::local_name (void)
}
const char *
-be_interface::full_skel_name (void)
+be_interface::full_skel_name ()
{
- if (this->full_skel_name_ == 0)
+ if (this->full_skel_name_ == nullptr)
{
this->compute_full_skel_name ("POA_",
this->full_skel_name_);
@@ -169,8 +169,8 @@ const char *
be_interface::full_coll_name (int type)
{
this->compute_coll_names (type,
- 0, // prefix
- 0); // suffix
+ nullptr, // prefix
+ nullptr); // suffix
return this->full_coll_name_;
}
@@ -179,8 +179,8 @@ const char *
be_interface::local_coll_name (int type)
{
this->compute_coll_names (type,
- 0, // prefix
- 0); // suffix
+ nullptr, // prefix
+ nullptr); // suffix
return this->local_coll_name_;
}
@@ -196,7 +196,7 @@ void
be_interface::compute_full_skel_name (const char *prefix,
char *&skel_name)
{
- if (skel_name != 0)
+ if (skel_name != nullptr)
{
return;
}
@@ -204,7 +204,7 @@ be_interface::compute_full_skel_name (const char *prefix,
size_t namelen = ACE_OS::strlen (prefix);
long first = true;
long second = false;
- char *item_name = 0;
+ char *item_name = nullptr;
// In the first loop compute the total length.
for (UTL_IdListActiveIterator i (this->name ());
@@ -284,7 +284,7 @@ be_interface::compute_coll_names (int type,
const char *prefix,
const char *suffix)
{
- if (type == this->cached_type_ && this->full_coll_name_ != 0)
+ if (type == this->cached_type_ && this->full_coll_name_ != nullptr)
{
return;
}
@@ -296,8 +296,8 @@ be_interface::compute_coll_names (int type,
// Reset to zero in case allocations below fail, and cause
// premature return to caller.
- this->full_coll_name_ = 0;
- this->local_coll_name_ = 0;
+ this->full_coll_name_ = nullptr;
+ this->local_coll_name_ = nullptr;
}
static const char *collocated_names[] = {"_tao_thru_poa_collocated_",
@@ -494,8 +494,8 @@ be_interface::relative_name (const char *localname,
if (!ACE_OS::strcmp (def_curr, use_curr))
{
// They have same prefix, append to arg1.
- def_curr = (def_next ? (def_next+2) : 0); // Skip the ::
- use_curr = (use_next ? (use_next+2) : 0); // Skip the ::
+ def_curr = (def_next ? (def_next+2) : nullptr); // Skip the ::
+ use_curr = (use_next ? (use_next+2) : nullptr); // Skip the ::
}
else
{
@@ -533,7 +533,7 @@ be_interface::relative_name (const char *localname,
// Am I in some kind of a multiple inheritance?
int
-be_interface::in_mult_inheritance (void)
+be_interface::in_mult_inheritance ()
{
if (this->in_mult_inheritance_ == -1)
{
@@ -541,7 +541,7 @@ be_interface::in_mult_inheritance (void)
// Determine if we are in some form of a multiple inheritance.
if (this->traverse_inheritance_graph (
be_interface::in_mult_inheritance_helper,
- 0
+ nullptr
) == -1)
{
ACE_ERROR_RETURN ((LM_ERROR,
@@ -564,7 +564,7 @@ be_interface::in_mult_inheritance (int mi)
}
bool
-be_interface::has_rw_attributes (void) const
+be_interface::has_rw_attributes () const
{
return this->has_rw_attributes_;
}
@@ -572,7 +572,7 @@ be_interface::has_rw_attributes (void) const
void
be_interface::redefine (AST_Interface *from)
{
- be_interface *bi = be_interface::narrow_from_decl (from);
+ be_interface *bi = dynamic_cast<be_interface*> (from);
this->var_out_seq_decls_gen_ = bi->var_out_seq_decls_gen_;
this->has_mixed_parentage_ = bi->has_mixed_parentage_;
@@ -581,7 +581,7 @@ be_interface::redefine (AST_Interface *from)
ACE_Unbounded_Queue<AST_Interface *> &q =
idl_global->mixed_parentage_interfaces ();
size_t slot = 0;
- AST_Interface **t = 0;
+ AST_Interface **t = nullptr;
// The queue of interfaces with mixed parentage must
// replace each interface that has been forward
@@ -734,7 +734,7 @@ be_interface::gen_stub_ctor (TAO_OutStream *os)
// interface _var and _out template classes, as well as by the
// template sequence classes for object references.
void
-be_interface:: gen_var_out_seq_decls (void)
+be_interface::gen_var_out_seq_decls ()
{
if (this->var_out_seq_decls_gen_)
{
@@ -758,7 +758,7 @@ be_interface:: gen_var_out_seq_decls (void)
// execution of the IDL compiler) there is nothing
// to tell the IDL compiler that this interface is in any
// way special. All we can do is search for the prefix.
- ACE_CString test (lname, 0, false);
+ ACE_CString test (lname, nullptr, false);
bool has_ami4ccm_prefix = (test.find ("AMI4CCM_") == 0);
bool already_ami =
@@ -808,7 +808,7 @@ be_interface:: gen_var_out_seq_decls (void)
// ****************************************************************
TAO_IDL_Inheritance_Hierarchy_Worker::~TAO_IDL_Inheritance_Hierarchy_Worker (
- void)
+ )
{
}
@@ -841,7 +841,7 @@ TAO_IDL_Gen_OpTable_Worker::emit (be_interface *derived_interface,
{
// Generate entries for the derived class using the properties of its
// ancestors.
- be_interface *bi = be_interface::narrow_from_decl (base_interface);
+ be_interface *bi = dynamic_cast<be_interface*> (base_interface);
return bi->gen_optable_entries (derived_interface,
this->skeleton_name_,
os);
@@ -890,13 +890,13 @@ Pure_Virtual_Regenerator::emit (be_interface *derived_interface,
return 0;
}
- be_decl *d = 0;
+ be_decl *d = nullptr;
for (UTL_ScopeActiveIterator si (base_interface, UTL_Scope::IK_decls);
!si.is_done ();
si.next ())
{
- d = be_decl::narrow_from_decl (si.item ());
+ d = dynamic_cast<be_decl*> (si.item ());
if (d->node_type () == AST_Decl::NT_op)
{
@@ -981,15 +981,15 @@ be_interface::gen_operation_table (const char *flat_name,
// Generate the skeleton for the is_a method.
if (amh)
{
- *os << "{\"_is_a\", &TAO_AMH_Skeletons::_is_a_amh_skel, 0}," << be_nl;
+ *os << "{\"_is_a\", std::addressof(TAO_AMH_Skeletons::_is_a_amh_skel), nullptr}," << be_nl;
}
else if (be_global->gen_thru_poa_collocation ())
{
- *os << "{\"_is_a\", &TAO_ServantBase::_is_a_thru_poa_skel, 0}," << be_nl;
+ *os << "{\"_is_a\", std::addressof(TAO_ServantBase::_is_a_thru_poa_skel), nullptr}," << be_nl;
}
else
{
- *os << "{\"_is_a\", &TAO_ServantBase::_is_a_skel, 0}," << be_nl;
+ *os << "{\"_is_a\", std::addressof(TAO_ServantBase::_is_a_skel), nullptr}," << be_nl;
}
++this->skel_count_;
@@ -998,18 +998,18 @@ be_interface::gen_operation_table (const char *flat_name,
{
if (amh)
{
- *os << "{\"_non_existent\", &TAO_AMH_Skeletons"
- << "::_non_existent_amh_skel, 0}," << be_nl;
+ *os << "{\"_non_existent\", std::addressof(TAO_AMH_Skeletons"
+ << "::_non_existent_amh_skel), nullptr}," << be_nl;
}
else if (be_global->gen_thru_poa_collocation ())
{
- *os << "{\"_non_existent\", &TAO_ServantBase"
- << "::_non_existent_thru_poa_skel, 0}," << be_nl;
+ *os << "{\"_non_existent\", std::addressof(TAO_ServantBase"
+ << "::_non_existent_thru_poa_skel), nullptr}," << be_nl;
}
else
{
- *os << "{\"_non_existent\", &TAO_ServantBase"
- << "::_non_existent_skel, 0}," << be_nl;
+ *os << "{\"_non_existent\", std::addressof(TAO_ServantBase"
+ << "::_non_existent_skel), nullptr}," << be_nl;
}
++this->skel_count_;
@@ -1019,18 +1019,18 @@ be_interface::gen_operation_table (const char *flat_name,
{
if (amh)
{
- *os << "{\"_component\", &TAO_AMH_Skeletons"
- << "::_component_amh_skel, 0}," << be_nl;
+ *os << "{\"_component\", std::addressof(TAO_AMH_Skeletons"
+ << "::_component_amh_skel), nullptr}," << be_nl;
}
else if (be_global->gen_thru_poa_collocation ())
{
- *os << "{\"_component\", &TAO_ServantBase"
- << "::_component_thru_poa_skel, 0}," << be_nl;
+ *os << "{\"_component\", std::addressof(TAO_ServantBase"
+ << "::_component_thru_poa_skel), nullptr}," << be_nl;
}
else
{
- *os << "{\"_component\", &TAO_ServantBase"
- << "::_component_skel, 0}," << be_nl;
+ *os << "{\"_component\", std::addressof(TAO_ServantBase"
+ << "::_component_skel), nullptr}," << be_nl;
}
++this->skel_count_;
@@ -1040,13 +1040,13 @@ be_interface::gen_operation_table (const char *flat_name,
{
if (amh)
{
- *os << "{\"_interface\", &TAO_AMH_Skeletons"
- << "::_interface_amh_skel, 0}," << be_nl;
+ *os << "{\"_interface\", std::addressof(TAO_AMH_Skeletons"
+ << "::_interface_amh_skel), nullptr}," << be_nl;
}
else
{
- *os << "{\"_interface\", &TAO_ServantBase"
- << "::_interface_skel, 0}," << be_nl;
+ *os << "{\"_interface\", std::addressof(TAO_ServantBase"
+ << "::_interface_skel), nullptr}," << be_nl;
}
++this->skel_count_;
@@ -1056,18 +1056,18 @@ be_interface::gen_operation_table (const char *flat_name,
{
if (amh)
{
- *os << "{\"_repository_id\", &TAO_AMH_Skeletons"
- << "::_repository_id_amh_skel, 0}" << be_uidt_nl;
+ *os << "{\"_repository_id\", std::addressof(TAO_AMH_Skeletons"
+ << "::_repository_id_amh_skel), nullptr}" << be_uidt_nl;
}
else if (be_global->gen_thru_poa_collocation ())
{
- *os << "{\"_repository_id\", &TAO_ServantBase"
- << "::_repository_id_thru_poa_skel, 0}" << be_uidt_nl;
+ *os << "{\"_repository_id\", std::addressof(TAO_ServantBase"
+ << "::_repository_id_thru_poa_skel), nullptr}" << be_uidt_nl;
}
else
{
- *os << "{\"_repository_id\", &TAO_ServantBase"
- << "::_repository_id_skel, 0}" << be_uidt_nl;
+ *os << "{\"_repository_id\", std::addressof(TAO_ServantBase"
+ << "::_repository_id_skel), nullptr}" << be_uidt_nl;
}
++this->skel_count_;
@@ -1107,7 +1107,7 @@ be_interface::gen_operation_table (const char *flat_name,
// We must randomize this a bit in order to avoid problems with
// processing more than one idl file (in separate processes) with
// the same name (in different directories).
- char *temp_file = 0;
+ char *temp_file = nullptr;
ACE_NEW_RETURN (temp_file,
char [ACE_OS::strlen (idl_global->temp_dir ())
+ 11 // The number of possible digits in
@@ -1148,10 +1148,10 @@ be_interface::gen_operation_table (const char *flat_name,
// Make a new outstream to hold the gperf_temp_file for this
// interface.
- TAO_OutStream *os = 0;
+ TAO_OutStream *os = nullptr;
ACE_NEW_NORETURN (os, TAO_OutStream);
- if (os == 0)
+ if (os == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"be_visitor_interface_ss"
@@ -1205,18 +1205,18 @@ be_interface::gen_operation_table (const char *flat_name,
if (amh)
{
- *os << "_is_a,&TAO_AMH_Skeletons"
- << "::_is_a_amh_skel, 0" << be_nl;
+ *os << "_is_a,std::addressof(TAO_AMH_Skeletons"
+ << "::_is_a_amh_skel), nullptr" << be_nl;
}
else if (be_global->gen_thru_poa_collocation ())
{
- *os << "_is_a,&TAO_ServantBase"
- << "::_is_a_thru_poa_skel, 0" << be_nl;
+ *os << "_is_a,std::addressof(TAO_ServantBase"
+ << "::_is_a_thru_poa_skel), nullptr" << be_nl;
}
else
{
- *os << "_is_a,&TAO_ServantBase"
- << "::_is_a_skel, 0" << be_nl;
+ *os << "_is_a,std::addressof(TAO_ServantBase"
+ << "::_is_a_skel), nullptr" << be_nl;
}
++this->skel_count_;
@@ -1225,18 +1225,18 @@ be_interface::gen_operation_table (const char *flat_name,
{
if (amh)
{
- *os << "_non_existent,&TAO_AMH_Skeletons"
- << "::_non_existent_amh_skel, 0" << be_nl;
+ *os << "_non_existent,std::addressof(TAO_AMH_Skeletons"
+ << "::_non_existent_amh_skel), nullptr" << be_nl;
}
else if (be_global->gen_thru_poa_collocation ())
{
- *os << "_non_existent,&TAO_ServantBase"
- << "::_non_existent_thru_poa_skel, 0" << be_nl;
+ *os << "_non_existent,std::addressof(TAO_ServantBase"
+ << "::_non_existent_thru_poa_skel), nullptr" << be_nl;
}
else
{
- *os << "_non_existent,&TAO_ServantBase"
- << "::_non_existent_skel, 0" << be_nl;
+ *os << "_non_existent,std::addressof(TAO_ServantBase"
+ << "::_non_existent_skel), nullptr" << be_nl;
}
++this->skel_count_;
@@ -1246,18 +1246,18 @@ be_interface::gen_operation_table (const char *flat_name,
{
if (amh)
{
- *os << "_component,&TAO_AMH_Skeletons"
- << "::_component_amh_skel, 0" << be_nl;
+ *os << "_component,std::addressof(TAO_AMH_Skeletons"
+ << "::_component_amh_skel), nullptr" << be_nl;
}
else if (be_global->gen_thru_poa_collocation ())
{
- *os << "_component,&TAO_ServantBase"
- << "::_component_thru_poa_skel, 0" << be_nl;
+ *os << "_component,std::addressof(TAO_ServantBase"
+ << "::_component_thru_poa_skel), nullptr" << be_nl;
}
else
{
- *os << "_component,&TAO_ServantBase"
- << "::_component_skel, 0" << be_nl;
+ *os << "_component,std::addressof(TAO_ServantBase"
+ << "::_component_skel), nullptr" << be_nl;
}
++this->skel_count_;
}
@@ -1266,13 +1266,13 @@ be_interface::gen_operation_table (const char *flat_name,
{
if (amh)
{
- *os << "_interface,&TAO_AMH_Skeletons"
- << "::_interface_amh_skel, 0" << be_nl;
+ *os << "_interface,std::addressof(TAO_AMH_Skeletons"
+ << "::_interface_amh_skel), nullptr" << be_nl;
}
else
{
- *os << "_interface,&TAO_ServantBase"
- << "::_interface_skel, 0" << be_nl;
+ *os << "_interface,std::addressof(TAO_ServantBase"
+ << "::_interface_skel), nullptr" << be_nl;
}
++this->skel_count_;
@@ -1282,18 +1282,18 @@ be_interface::gen_operation_table (const char *flat_name,
{
if (amh)
{
- *os << "_repository_id,&TAO_AMH_Skeletons"
- << "::_repository_id_amh_skel, 0" << be_nl;
+ *os << "_repository_id,std::addressof(TAO_AMH_Skeletons"
+ << "::_repository_id_amh_skel), nullptr" << be_nl;
}
else if (be_global->gen_thru_poa_collocation ())
{
- *os << "_repository_id,&TAO_ServantBase"
- << "::_repository_id_thru_poa_skel, 0" << be_nl;
+ *os << "_repository_id,std::addressof(TAO_ServantBase"
+ << "::_repository_id_thru_poa_skel), nullptr" << be_nl;
}
else
{
- *os << "_repository_id,&TAO_ServantBase"
- << "::_repository_id_skel, 0" << be_nl;
+ *os << "_repository_id,std::addressof(TAO_ServantBase"
+ << "::_repository_id_skel), nullptr" << be_nl;
}
++this->skel_count_;
@@ -1337,7 +1337,7 @@ be_interface::convert_parent_ops (be_visitor *visitor)
// Traverse the graph.
Pure_Virtual_Regenerator worker (visitor);
- if (this->traverse_inheritance_graph (worker, 0) == -1)
+ if (this->traverse_inheritance_graph (worker, nullptr) == -1)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_interface::"
@@ -1387,7 +1387,7 @@ be_interface::gen_optable_entries (be_interface *derived_interface,
if (d->node_type () == AST_Decl::NT_op)
{
be_operation *op =
- be_operation::narrow_from_decl (d);
+ dynamic_cast<be_operation*> (d);
if (op->is_sendc_ami ())
{
@@ -1395,19 +1395,19 @@ be_interface::gen_optable_entries (be_interface *derived_interface,
}
// We are an operation node.
- *os << "{\"" << d->original_local_name () << "\", &"
+ *os << "{\"" << d->original_local_name () << "\", std::addressof("
<< full_skeleton_name << "::"
- << d->local_name () << "_skel,";
+ << d->local_name () << "_skel),";
if (be_global->gen_direct_collocation ())
{
- *os << " &"
+ *os << " std::addressof("
<< this->full_direct_proxy_impl_name ()
- << "::" << d->local_name ();
+ << "::" << d->local_name () << ")";
}
else
{
- *os << " 0";
+ *os << " nullptr";
}
*os << "}," << be_nl;
@@ -1417,26 +1417,26 @@ be_interface::gen_optable_entries (be_interface *derived_interface,
else if (d->node_type () == AST_Decl::NT_attr)
{
AST_Attribute *attr =
- AST_Attribute::narrow_from_decl (d);
+ dynamic_cast<AST_Attribute*> (d);
- if (attr == 0)
+ if (attr == nullptr)
return -1;
// Generate only the "get" entry if we are
// readonly.
*os << "{\"_get_" << d->original_local_name ()
- << "\", &" << full_skeleton_name
- << "::_get_" << d->local_name () << "_skel,";
+ << "\", std::addressof(" << full_skeleton_name
+ << "::_get_" << d->local_name () << "_skel),";
if (be_global->gen_direct_collocation ())
{
- *os << " &"
+ *os << " std::addressof("
<< this->full_direct_proxy_impl_name ()
- << "::_get_" << d->local_name ();
+ << "::_get_" << d->local_name () << ")";
}
else
{
- *os << " 0";
+ *os << " nullptr";
}
*os << "}," << be_nl;
@@ -1447,18 +1447,18 @@ be_interface::gen_optable_entries (be_interface *derived_interface,
{
// The set method
*os << "{\"_set_" << d->original_local_name ()
- << "\", &" << full_skeleton_name
- << "::_set_" << d->local_name () << "_skel,";
+ << "\", std::addressof(" << full_skeleton_name
+ << "::_set_" << d->local_name () << "_skel),";
if (be_global->gen_direct_collocation ())
{
- *os << " &"
+ *os << " std::addressof("
<< this->full_direct_proxy_impl_name ()
- << "::_set_" << d->local_name ();
+ << "::_set_" << d->local_name () << ")";
}
else
{
- *os << " 0";
+ *os << " nullptr";
}
*os << "}," << be_nl;
@@ -1488,7 +1488,7 @@ be_interface::gen_optable_entries (be_interface *derived_interface,
if (d->node_type () == AST_Decl::NT_op)
{
be_operation *op =
- be_operation::narrow_from_decl (d);
+ dynamic_cast<be_operation*> (d);
if (op->is_sendc_ami ())
{
@@ -1513,54 +1513,54 @@ be_interface::gen_optable_entries (be_interface *derived_interface,
{
ACE_CString nspace = name.substring (0, name.rfind (':') - 1);
name = name.substring (name.rfind (':') + 1);
- *os << d->original_local_name () << ",&POA_"
+ *os << d->original_local_name () << ",std::addressof(POA_"
<< nspace.c_str () << "::AMH_"
<< name.c_str () << "::"
<< d->original_local_name ()
- << "_skel,";
+ << "_skel),";
}
else
{
- *os << d->original_local_name () << ",&POA_AMH_"
+ *os << d->original_local_name () << ",std::addressof(POA_AMH_"
<< name.c_str () << "::"
<< d->original_local_name ()
- << "_skel,";
+ << "_skel),";
}
}
else
{
if (!d->is_abstract ())
{
- *os << d->original_local_name () << ",&POA_"
- << d->full_name () << "_skel,";
+ *os << d->original_local_name () << ",std::addressof(POA_"
+ << d->full_name () << "_skel),";
}
else
{
- *os << d->original_local_name () << ",&"
+ *os << d->original_local_name () << ",std::addressof("
<< full_skeleton_name << "::"
<< d->original_local_name ()
- << "_skel,";
+ << "_skel),";
}
}
if (be_global->gen_direct_collocation ())
{
if (!d->is_abstract ())
{
- *os << " &"
+ *os << " std::addressof("
<< this->full_direct_proxy_impl_name ()
- << "::" << d->local_name ();
+ << "::" << d->local_name () << ")";
}
else
{
- *os << " &"
+ *os << " std::addressof("
<< derived_interface->full_direct_proxy_impl_name ()
- << "::" << d->local_name ();
+ << "::" << d->local_name () << ")";
}
}
else
{
- *os << " 0";
+ *os << " nullptr";
}
*os << "\n";
@@ -1570,9 +1570,9 @@ be_interface::gen_optable_entries (be_interface *derived_interface,
else if (d->node_type () == AST_Decl::NT_attr)
{
AST_Attribute *attr =
- AST_Attribute::narrow_from_decl (d);
+ dynamic_cast<AST_Attribute*> (d);
- if (attr == 0)
+ if (attr == nullptr)
{
return -1;
}
@@ -1588,15 +1588,15 @@ be_interface::gen_optable_entries (be_interface *derived_interface,
if (!d->is_abstract ())
{
- *os << "_get_" << d->original_local_name () << ",&POA_"
+ *os << "_get_" << d->original_local_name () << ",std::addressof(POA_"
<< nspace.c_str () << "_get_"
- << d->original_local_name () << "_skel,";
+ << d->original_local_name () << "_skel),";
if (be_global->gen_direct_collocation ())
{
- *os << " &"
+ *os << " std::addressof("
<< this->full_direct_proxy_impl_name ()
- << "::_get_" << d->local_name ();
+ << "::_get_" << d->local_name () << ")";
}
else
{
@@ -1605,19 +1605,19 @@ be_interface::gen_optable_entries (be_interface *derived_interface,
}
else
{
- *os << "_get_" << d->original_local_name () << ",&"
+ *os << "_get_" << d->original_local_name () << ",std::addressof("
<< full_skeleton_name << "::_get_"
- << d->original_local_name () << "_skel,";
+ << d->original_local_name () << "_skel),";
if (be_global->gen_direct_collocation ())
{
- *os << " &"
+ *os << " std::addressof("
<< derived_interface->full_direct_proxy_impl_name ()
- << "::_get_" << d->local_name ();
+ << "::_get_" << d->local_name () << ")";
}
else
{
- *os << " 0";
+ *os << " nullptr";
}
}
@@ -1630,37 +1630,37 @@ be_interface::gen_optable_entries (be_interface *derived_interface,
if (!d->is_abstract ())
{
// The set method
- *os << "_set_" << d->original_local_name () << ",&POA_"
+ *os << "_set_" << d->original_local_name () << ",std::addressof(POA_"
<< nspace.c_str () << "_set_"
- << d->original_local_name () << "_skel,";
+ << d->original_local_name () << "_skel),";
if (be_global->gen_direct_collocation ())
{
- *os << " &"
+ *os << " std::addressof("
<< this->full_direct_proxy_impl_name ()
- << "::_set_" << d->local_name ();
+ << "::_set_" << d->local_name () << ")";
}
else
{
- *os << " 0";
+ *os << " nullptr";
}
}
else
{
// The set method in case abstract
- *os << "_set_" << d->original_local_name () << ",&"
+ *os << "_set_" << d->original_local_name () << ",std::addressof("
<< full_skeleton_name << "::_set_"
- << d->original_local_name () << "_skel,";
+ << d->original_local_name () << "_skel),";
if (be_global->gen_direct_collocation ())
{
- *os << " &"
+ *os << " std::addressof("
<< derived_interface->full_direct_proxy_impl_name ()
- << "::_set_" << d->local_name ();
+ << "::_set_" << d->local_name () << ")";
}
else
{
- *os << " 0";
+ *os << " nullptr";
}
}
@@ -1767,7 +1767,7 @@ be_interface::traverse_inheritance_graph (
bool abstract_paths_only,
bool add_ccm_object)
{
- AST_Type *intf = 0; // element inside the queue
+ AST_Type *intf = nullptr; // element inside the queue
if (!this->insert_queue.is_empty ())
{
@@ -1786,7 +1786,7 @@ be_interface::traverse_inheritance_graph (
if (nt == AST_Decl::NT_home)
{
this->enqueue_base_home_r (
- AST_Home::narrow_from_decl (intf));
+ dynamic_cast<AST_Home*> (intf));
}
// If we are doing a component, we check for a parent.
@@ -1798,7 +1798,7 @@ be_interface::traverse_inheritance_graph (
}
this->enqueue_base_component_r (
- AST_Component::narrow_from_decl (intf));
+ dynamic_cast<AST_Component*> (intf));
}
(void) this->insert_non_dup (intf, abstract_paths_only);
@@ -1831,7 +1831,7 @@ be_interface::traverse_inheritance_graph (
-1);
}
- be_interface *bi = be_interface::narrow_from_decl (intf);
+ be_interface *bi = dynamic_cast<be_interface*> (intf);
// Use the helper method to generate code for ourself using the
// properties of the element dequeued. For the first iteration, the
@@ -2019,7 +2019,7 @@ be_interface::gen_gperf_lookup_methods (const char *flat_name)
}
// And reset file to 0 because otherwise there is a problem during destruction of stream.
- tao_cg->gperf_input_stream ()->file () = 0;
+ tao_cg->gperf_input_stream ()->file () = nullptr;
// Open the temp file.
#if defined (ACE_OPENVMS)
@@ -2309,10 +2309,7 @@ be_interface::is_a_helper (be_interface * /*derived*/,
TAO_OutStream *os)
{
// Emit the comparison code.
- *os << "ACE_OS::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;
}
@@ -2340,8 +2337,8 @@ be_interface::copy_ctor_helper (be_interface *derived,
}
else if (base->is_nested ())
{
- be_decl *scope = 0;
- scope = be_scope::narrow_from_scope (base->defined_in ())->decl ();
+ be_decl *scope = nullptr;
+ scope = dynamic_cast<be_scope*> (base->defined_in ())->decl ();
*os << "POA_" << scope->name () << "::"
<< base->local_name () << " (rhs)";
@@ -2428,7 +2425,7 @@ be_interface::op_attr_decl_helper (be_interface * /*derived */,
be_interface *ancestor,
TAO_OutStream *os)
{
- if (be_component::narrow_from_decl (ancestor) != 0)
+ if (dynamic_cast<be_component*> (ancestor) != nullptr)
{
return 0;
}
@@ -2447,7 +2444,7 @@ be_interface::op_attr_decl_helper (be_interface * /*derived */,
if (nt == AST_Decl::NT_op)
{
- be_operation *op = be_operation::narrow_from_decl (d);
+ be_operation *op = dynamic_cast<be_operation*> (d);
/// No sendc_* operations in facet servants. If the
/// original interface had these generated as AMI
@@ -2471,7 +2468,7 @@ be_interface::op_attr_decl_helper (be_interface * /*derived */,
}
else if (nt == AST_Decl::NT_attr)
{
- be_attribute *attr = be_attribute::narrow_from_decl (d);
+ be_attribute *attr = dynamic_cast<be_attribute*> (d);
be_visitor_attribute v (&ctx);
if (v.visit_attribute (attr) == -1)
@@ -2490,37 +2487,37 @@ be_interface::op_attr_decl_helper (be_interface * /*derived */,
}
void
-be_interface::destroy (void)
+be_interface::destroy ()
{
delete [] this->full_skel_name_;
- this->full_skel_name_ = 0;
+ this->full_skel_name_ = nullptr;
delete [] this->full_coll_name_;
- this->full_coll_name_ = 0;
+ this->full_coll_name_ = nullptr;
delete [] this->local_coll_name_;
- this->local_coll_name_ = 0;
+ this->local_coll_name_ = nullptr;
delete [] this->relative_skel_name_;
- this->relative_skel_name_ = 0;
+ this->relative_skel_name_ = nullptr;
delete [] this->direct_proxy_impl_name_;
- this->direct_proxy_impl_name_ = 0;
+ this->direct_proxy_impl_name_ = nullptr;
delete [] this->full_direct_proxy_impl_name_;
- this->full_direct_proxy_impl_name_ = 0;
+ this->full_direct_proxy_impl_name_ = nullptr;
delete [] this->client_scope_;
- this->client_scope_ = 0;
+ this->client_scope_ = nullptr;
delete [] this->flat_client_scope_;
- this->flat_client_scope_ = 0;
+ this->flat_client_scope_ = nullptr;
delete [] this->server_scope_;
- this->server_scope_ = 0;
+ this->server_scope_ = nullptr;
delete [] this->flat_server_scope_;
- this->flat_server_scope_ = 0;
+ this->flat_server_scope_ = nullptr;
// Call the destroy methods of our base classes.
this->AST_Interface::destroy ();
@@ -2541,13 +2538,13 @@ be_interface::original_interface (be_interface *original_interface)
}
be_interface *
-be_interface::original_interface (void)
+be_interface::original_interface ()
{
return this->original_interface_;
}
bool
-be_interface::is_event_consumer (void)
+be_interface::is_event_consumer ()
{
return
this->pd_n_inherits == 1
@@ -2586,7 +2583,7 @@ be_interface::enqueue_base_component_r (AST_Component *node)
{
AST_Component *base = node->base_component ();
- if (base == 0)
+ if (base == nullptr)
{
return;
}
@@ -2609,7 +2606,7 @@ be_interface::enqueue_base_home_r (AST_Home *node)
{
AST_Home *base = node->base_home ();
- if (base == 0)
+ if (base == nullptr)
{
return;
}
@@ -2628,7 +2625,7 @@ be_interface::enqueue_base_home_r (AST_Home *node)
}
bool
-be_interface::dds_connector_traits_done (void) const
+be_interface::dds_connector_traits_done () const
{
return this->dds_connector_traits_done_;
}
@@ -2706,7 +2703,7 @@ void
be_interface::gen_skel_inheritance (TAO_OutStream *os)
{
long n_parents = this->n_inherits ();
- AST_Type *parent = 0;
+ AST_Type *parent = nullptr;
AST_Type **parents = this->inherits ();
bool has_concrete_parent = false;
@@ -2756,34 +2753,25 @@ be_interface::gen_is_a_ancestors (TAO_OutStream *os)
if (this->is_abstract () || this->has_mixed_parentage ())
{
- *os << "ACE_OS::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 << "ACE_OS::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 << "ACE_OS::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;
@@ -2879,7 +2867,7 @@ be_interface::gen_ami4ccm_idl (TAO_OutStream *os)
}
bool
-be_interface::is_ami_rh (void) const
+be_interface::is_ami_rh () const
{
return this->is_ami_rh_;
}
@@ -2891,7 +2879,7 @@ be_interface::is_ami_rh (bool val)
}
bool
-be_interface::is_ami4ccm_rh (void) const
+be_interface::is_ami4ccm_rh () const
{
return this->is_ami4ccm_rh_;
}
@@ -2903,9 +2891,9 @@ be_interface::is_ami4ccm_rh (bool val)
}
const char *
-be_interface::direct_proxy_impl_name (void)
+be_interface::direct_proxy_impl_name ()
{
- if (this->direct_proxy_impl_name_ == 0)
+ if (this->direct_proxy_impl_name_ == nullptr)
{
this->direct_proxy_impl_name_ =
this->create_with_prefix_suffix (
@@ -2919,9 +2907,9 @@ be_interface::direct_proxy_impl_name (void)
}
const char *
-be_interface::full_direct_proxy_impl_name (void)
+be_interface::full_direct_proxy_impl_name ()
{
- if (this->full_direct_proxy_impl_name_ == 0)
+ if (this->full_direct_proxy_impl_name_ == nullptr)
{
const char *scope = this->server_enclosing_scope ();
const char *base_name = this->direct_proxy_impl_name ();
@@ -2931,7 +2919,7 @@ be_interface::full_direct_proxy_impl_name (void)
ACE_NEW_RETURN (this->full_direct_proxy_impl_name_,
char[length + 1],
- 0);
+ nullptr);
ACE_OS::strcpy (this->full_direct_proxy_impl_name_,
scope);
@@ -2944,9 +2932,9 @@ be_interface::full_direct_proxy_impl_name (void)
const char *
-be_interface::client_enclosing_scope (void)
+be_interface::client_enclosing_scope ()
{
- if (this->client_scope_ == 0)
+ if (this->client_scope_ == nullptr)
{
const char *full_name = this->full_name ();
const char *name = this->local_name ();
@@ -2955,7 +2943,7 @@ be_interface::client_enclosing_scope (void)
size_t length = ACE_OS::strlen (full_name) - offset;
ACE_NEW_RETURN (this->client_scope_,
char[length + 1],
- 0);
+ nullptr);
ACE_OS::strncpy (this->client_scope_, full_name, length);
this->client_scope_[length] = '\0';
@@ -2965,9 +2953,9 @@ be_interface::client_enclosing_scope (void)
}
const char *
-be_interface::flat_client_enclosing_scope (void)
+be_interface::flat_client_enclosing_scope ()
{
- if (this->flat_client_scope_ == 0)
+ if (this->flat_client_scope_ == nullptr)
{
const char *full_name = this->flat_name ();
const char *name =
@@ -2978,7 +2966,7 @@ be_interface::flat_client_enclosing_scope (void)
ACE_NEW_RETURN (this->flat_client_scope_,
char[length + 1],
- 0);
+ nullptr);
ACE_OS::strncpy (this->flat_client_scope_,
full_name,
@@ -2990,9 +2978,9 @@ be_interface::flat_client_enclosing_scope (void)
}
const char *
-be_interface::server_enclosing_scope (void)
+be_interface::server_enclosing_scope ()
{
- if (this->server_scope_ == 0)
+ if (this->server_scope_ == nullptr)
{
const char *full_name =
this->full_coll_name (be_interface::DIRECT);
@@ -3004,7 +2992,7 @@ be_interface::server_enclosing_scope (void)
size_t length = ACE_OS::strlen (full_name) - offset;
ACE_NEW_RETURN (this->server_scope_,
char[length + 1],
- 0);
+ nullptr);
ACE_OS::strncpy (this->server_scope_, full_name, length);
this->server_scope_[length] = '\0';
@@ -3019,7 +3007,7 @@ be_interface::create_with_prefix_suffix (const char *prefix,
const char *suffix,
const char *separator)
{
- char *cat_string = 0;
+ char *cat_string = nullptr;
size_t length =
ACE_OS::strlen (str) +
ACE_OS::strlen (prefix) +
@@ -3029,7 +3017,7 @@ be_interface::create_with_prefix_suffix (const char *prefix,
ACE_NEW_RETURN (cat_string,
char[length],
- 0);
+ nullptr);
ACE_OS::strcpy (cat_string, prefix);
ACE_OS::strcat (cat_string, str);
@@ -3038,6 +3026,3 @@ be_interface::create_with_prefix_suffix (const char *prefix,
return cat_string;
}
-
-IMPL_NARROW_FROM_DECL (be_interface)
-IMPL_NARROW_FROM_SCOPE (be_interface)
diff --git a/TAO/TAO_IDL/be/be_interface_fwd.cpp b/TAO/TAO_IDL/be/be_interface_fwd.cpp
index 79415551ea4..e1134961c1e 100644
--- a/TAO/TAO_IDL/be/be_interface_fwd.cpp
+++ b/TAO/TAO_IDL/be/be_interface_fwd.cpp
@@ -35,7 +35,7 @@ be_interface_fwd::be_interface_fwd (AST_Interface *dummy,
this->size_type (AST_Type::VARIABLE);
}
-be_interface_fwd::~be_interface_fwd (void)
+be_interface_fwd::~be_interface_fwd ()
{
}
@@ -44,7 +44,7 @@ be_interface_fwd::seen_in_sequence (bool val)
{
this->be_type::seen_in_sequence (val);
be_interface *fd =
- be_interface::narrow_from_decl (this->full_definition ());
+ dynamic_cast<be_interface*> (this->full_definition ());
fd->seen_in_sequence (val);
}
@@ -53,12 +53,12 @@ be_interface_fwd::seen_in_operation (bool val)
{
this->be_type::seen_in_operation (val);
be_interface *fd =
- be_interface::narrow_from_decl (this->full_definition ());
+ dynamic_cast<be_interface*> (this->full_definition ());
fd->seen_in_operation (val);
}
void
-be_interface_fwd::destroy (void)
+be_interface_fwd::destroy ()
{
this->be_type::destroy ();
this->AST_InterfaceFwd::destroy ();
@@ -69,7 +69,3 @@ be_interface_fwd::accept (be_visitor *visitor)
{
return visitor->visit_interface_fwd (this);
}
-
-
-
-IMPL_NARROW_FROM_DECL (be_interface_fwd)
diff --git a/TAO/TAO_IDL/be/be_mirror_port.cpp b/TAO/TAO_IDL/be/be_mirror_port.cpp
index 8ee81e31128..48c2f84d19d 100644
--- a/TAO/TAO_IDL/be/be_mirror_port.cpp
+++ b/TAO/TAO_IDL/be/be_mirror_port.cpp
@@ -26,12 +26,12 @@ be_mirror_port::be_mirror_port (
{
}
-be_mirror_port::~be_mirror_port (void)
+be_mirror_port::~be_mirror_port ()
{
}
void
-be_mirror_port::destroy (void)
+be_mirror_port::destroy ()
{
this->AST_Mirror_Port::destroy ();
this->be_extended_port::destroy ();
@@ -43,6 +43,3 @@ be_mirror_port::accept (be_visitor *visitor)
{
return visitor->visit_mirror_port (this);
}
-
-IMPL_NARROW_FROM_DECL (be_mirror_port)
-
diff --git a/TAO/TAO_IDL/be/be_module.cpp b/TAO/TAO_IDL/be/be_module.cpp
index 00c679e588d..71d6a3b04db 100644
--- a/TAO/TAO_IDL/be/be_module.cpp
+++ b/TAO/TAO_IDL/be/be_module.cpp
@@ -24,7 +24,7 @@ be_module::be_module (UTL_ScopedName *n, AST_Module *previous)
}
void
-be_module::destroy (void)
+be_module::destroy ()
{
// Call the destroy methods of our base classes.
this->be_scope::destroy ();
@@ -37,6 +37,3 @@ be_module::accept (be_visitor *visitor)
{
return visitor->visit_module (this);
}
-
-IMPL_NARROW_FROM_DECL (be_module)
-IMPL_NARROW_FROM_SCOPE (be_module)
diff --git a/TAO/TAO_IDL/be/be_native.cpp b/TAO/TAO_IDL/be/be_native.cpp
index 6725f29d60d..8bc0e1eb352 100644
--- a/TAO/TAO_IDL/be/be_native.cpp
+++ b/TAO/TAO_IDL/be/be_native.cpp
@@ -43,19 +43,19 @@ be_native::be_native (UTL_ScopedName *n)
}
int
-be_native::gen_typecode (void)
+be_native::gen_typecode ()
{
return 0;
}
long
-be_native::tc_size (void)
+be_native::tc_size ()
{
return 0;
}
void
-be_native::destroy (void)
+be_native::destroy ()
{
this->be_exception::destroy ();
this->AST_Native::destroy ();
@@ -66,7 +66,3 @@ be_native::accept (be_visitor *visitor)
{
return visitor->visit_native (this);
}
-
-
-
-IMPL_NARROW_FROM_DECL(be_native)
diff --git a/TAO/TAO_IDL/be/be_null_return_emitter.cpp b/TAO/TAO_IDL/be/be_null_return_emitter.cpp
index 350bb316b90..f8a3fa23c9a 100644
--- a/TAO/TAO_IDL/be/be_null_return_emitter.cpp
+++ b/TAO/TAO_IDL/be/be_null_return_emitter.cpp
@@ -26,7 +26,7 @@ be_null_return_emitter::be_null_return_emitter (
{
}
-be_null_return_emitter::~be_null_return_emitter (void)
+be_null_return_emitter::~be_null_return_emitter ()
{
}
diff --git a/TAO/TAO_IDL/be/be_operation.cpp b/TAO/TAO_IDL/be/be_operation.cpp
index 5422f80cd0a..012bc7bdd08 100644
--- a/TAO/TAO_IDL/be/be_operation.cpp
+++ b/TAO/TAO_IDL/be/be_operation.cpp
@@ -55,19 +55,19 @@ be_operation::be_operation (AST_Type *rt,
if (!this->is_local ())
{
- be_type *bt = be_type::narrow_from_decl (rt);
+ be_type *bt = dynamic_cast<be_type*> (rt);
bt->seen_in_operation (true);
be_util::set_arg_seen_bit (bt);
idl_global->non_local_op_seen_ = true;
}
}
-be_operation::~be_operation (void)
+be_operation::~be_operation ()
{
}
void
-be_operation::destroy (void)
+be_operation::destroy ()
{
// Call the destroy methods of our base classes.
this->be_scope::destroy ();
@@ -86,15 +86,15 @@ be_operation::be_add_argument (AST_Argument *arg)
{
this->add_to_scope (arg);
this->add_to_referenced (arg,
- 0,
- 0);
+ false,
+ nullptr);
return arg;
}
int
be_operation::be_insert_exception (AST_Exception *ex)
{
- UTL_ExceptList *new_list = 0;
+ UTL_ExceptList *new_list = nullptr;
ACE_NEW_RETURN (new_list,
UTL_ExceptList (ex,
this->pd_exceptions),
@@ -104,7 +104,7 @@ be_operation::be_insert_exception (AST_Exception *ex)
}
bool
-be_operation::is_sendc_ami (void) const
+be_operation::is_sendc_ami () const
{
return this->is_sendc_ami_;
}
@@ -116,7 +116,7 @@ be_operation::is_sendc_ami (bool val)
}
bool
-be_operation::is_excep_ami (void) const
+be_operation::is_excep_ami () const
{
return this->is_excep_ami_;
}
@@ -128,7 +128,7 @@ be_operation::is_excep_ami (bool val)
}
bool
-be_operation::is_attr_op (void) const
+be_operation::is_attr_op () const
{
return this->is_attr_op_;
}
@@ -138,6 +138,3 @@ be_operation::is_attr_op (bool val)
{
this->is_attr_op_ = val;
}
-
-IMPL_NARROW_FROM_DECL (be_operation)
-IMPL_NARROW_FROM_SCOPE (be_operation)
diff --git a/TAO/TAO_IDL/be/be_param_holder.cpp b/TAO/TAO_IDL/be/be_param_holder.cpp
index d9c6aeed908..0388f2aa116 100644
--- a/TAO/TAO_IDL/be/be_param_holder.cpp
+++ b/TAO/TAO_IDL/be/be_param_holder.cpp
@@ -31,7 +31,7 @@ be_param_holder::be_param_holder (UTL_ScopedName *parameter_name,
{
}
-be_param_holder::~be_param_holder (void)
+be_param_holder::~be_param_holder ()
{
}
@@ -42,11 +42,8 @@ be_param_holder::accept (be_visitor *visitor)
}
void
-be_param_holder::destroy (void)
+be_param_holder::destroy ()
{
this->AST_Param_Holder::destroy ();
this->be_type::destroy ();
}
-
-IMPL_NARROW_FROM_DECL (be_param_holder)
-
diff --git a/TAO/TAO_IDL/be/be_porttype.cpp b/TAO/TAO_IDL/be/be_porttype.cpp
index 9cd5e14a99f..58d776165c6 100644
--- a/TAO/TAO_IDL/be/be_porttype.cpp
+++ b/TAO/TAO_IDL/be/be_porttype.cpp
@@ -18,12 +18,12 @@ be_porttype::be_porttype (UTL_ScopedName *n)
{
}
-be_porttype::~be_porttype (void)
+be_porttype::~be_porttype ()
{
}
void
-be_porttype::destroy (void)
+be_porttype::destroy ()
{
this->AST_PortType::destroy ();
}
@@ -33,6 +33,3 @@ be_porttype::accept (be_visitor *visitor)
{
return visitor->visit_porttype (this);
}
-
-IMPL_NARROW_FROM_DECL (be_porttype)
-IMPL_NARROW_FROM_SCOPE (be_porttype)
diff --git a/TAO/TAO_IDL/be/be_predefined_type.cpp b/TAO/TAO_IDL/be/be_predefined_type.cpp
index fedc10172dd..7aa8a813c9b 100644
--- a/TAO/TAO_IDL/be/be_predefined_type.cpp
+++ b/TAO/TAO_IDL/be/be_predefined_type.cpp
@@ -123,19 +123,19 @@ be_predefined_type::gen_member_ostream_operator (TAO_OutStream *os,
// Overriden method.
void
-be_predefined_type::compute_tc_name (void)
+be_predefined_type::compute_tc_name ()
{
// Start with the head as the CORBA namespace.
- Identifier *corba_id = 0;
+ Identifier *corba_id = nullptr;
ACE_NEW (corba_id,
Identifier ("CORBA"));
ACE_NEW (this->tc_name_,
UTL_ScopedName (corba_id,
- 0));
+ nullptr));
- Identifier *id = 0;
- UTL_ScopedName *conc_name = 0;
+ Identifier *id = nullptr;
+ UTL_ScopedName *conc_name = nullptr;
switch (this->pt ())
{
@@ -229,13 +229,13 @@ be_predefined_type::compute_tc_name (void)
ACE_NEW (conc_name,
UTL_ScopedName (id,
- 0));
+ nullptr));
this->tc_name_->nconc (conc_name);
}
void
-be_predefined_type::compute_repoID (void)
+be_predefined_type::compute_repoID ()
{
switch (this->pt ())
{
@@ -256,12 +256,8 @@ be_predefined_type::accept (be_visitor *visitor)
}
void
-be_predefined_type::destroy (void)
+be_predefined_type::destroy ()
{
this->AST_PredefinedType::destroy ();
this->be_type::destroy ();
}
-
-
-
-IMPL_NARROW_FROM_DECL (be_predefined_type)
diff --git a/TAO/TAO_IDL/be/be_produce.cpp b/TAO/TAO_IDL/be/be_produce.cpp
index 1db60dd8097..052b3145f4e 100644
--- a/TAO/TAO_IDL/be/be_produce.cpp
+++ b/TAO/TAO_IDL/be/be_produce.cpp
@@ -76,14 +76,14 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
// Clean up before exit, whether successful or not.
TAO_IDL_BE_Export void
-BE_cleanup (void)
+BE_cleanup ()
{
idl_global->destroy ();
}
// Abort this run of the BE.
TAO_IDL_BE_Export void
-BE_abort (void)
+BE_abort ()
{
ACE_ERROR ((LM_ERROR,
"Fatal Error - Aborting\n"));
@@ -97,7 +97,7 @@ BE_visit_root (be_visitor_decl &root_visitor,
const char *which_pass)
{
static be_root *root =
- be_root::narrow_from_decl (idl_global->root ());
+ dynamic_cast<be_root*> (idl_global->root ());
if (-1 == root->accept (&root_visitor))
{
@@ -112,7 +112,7 @@ BE_visit_root (be_visitor_decl &root_visitor,
// Do the work of this BE. This is the starting point for code generation.
TAO_IDL_BE_Export void
-BE_produce (void)
+BE_produce ()
{
be_visitor_context ctx;
diff --git a/TAO/TAO_IDL/be/be_provides.cpp b/TAO/TAO_IDL/be/be_provides.cpp
index 5d6fcbcf775..8d89b138c4f 100644
--- a/TAO/TAO_IDL/be/be_provides.cpp
+++ b/TAO/TAO_IDL/be/be_provides.cpp
@@ -32,20 +32,18 @@ be_provides::be_provides (UTL_ScopedName *n,
{
}
-be_provides::~be_provides (void)
+be_provides::~be_provides ()
{
}
be_type *
-be_provides::provides_type (void) const
+be_provides::provides_type () const
{
return
- be_type::narrow_from_decl (
+ dynamic_cast<be_type*> (
this->AST_Provides::provides_type ());
}
-IMPL_NARROW_FROM_DECL (be_provides)
-
int
be_provides::accept (be_visitor *visitor)
{
@@ -53,7 +51,7 @@ be_provides::accept (be_visitor *visitor)
}
void
-be_provides::destroy (void)
+be_provides::destroy ()
{
this->AST_Provides::destroy ();
this->be_field::destroy ();
diff --git a/TAO/TAO_IDL/be/be_publishes.cpp b/TAO/TAO_IDL/be/be_publishes.cpp
index 7920c556635..ff23536a39b 100644
--- a/TAO/TAO_IDL/be/be_publishes.cpp
+++ b/TAO/TAO_IDL/be/be_publishes.cpp
@@ -20,15 +20,15 @@ be_publishes::be_publishes (UTL_ScopedName *n,
{
}
-be_publishes::~be_publishes (void)
+be_publishes::~be_publishes ()
{
}
be_eventtype *
-be_publishes::publishes_type (void) const
+be_publishes::publishes_type () const
{
return
- be_eventtype::narrow_from_decl (
+ dynamic_cast<be_eventtype*> (
this->AST_Publishes::publishes_type ());
}
@@ -39,10 +39,8 @@ be_publishes::accept (be_visitor *visitor)
}
void
-be_publishes::destroy (void)
+be_publishes::destroy ()
{
this->AST_Publishes::destroy ();
this->be_field::destroy ();
}
-
-IMPL_NARROW_FROM_DECL (be_publishes)
diff --git a/TAO/TAO_IDL/be/be_root.cpp b/TAO/TAO_IDL/be/be_root.cpp
index 8c4340f7e1a..430ac4d1f37 100644
--- a/TAO/TAO_IDL/be/be_root.cpp
+++ b/TAO/TAO_IDL/be/be_root.cpp
@@ -31,12 +31,12 @@ be_root::be_root (UTL_ScopedName *n)
{
}
-be_root::~be_root (void)
+be_root::~be_root ()
{
}
void
-be_root::destroy (void)
+be_root::destroy ()
{
// Call the destroy methods of our base classes.
@@ -54,8 +54,3 @@ be_root::accept (be_visitor *visitor)
{
return visitor->visit_root (this);
}
-
-
-
-IMPL_NARROW_FROM_DECL (be_root)
-IMPL_NARROW_FROM_SCOPE (be_root)
diff --git a/TAO/TAO_IDL/be/be_scope.cpp b/TAO/TAO_IDL/be/be_scope.cpp
index 90439922ea7..cdbf44f9635 100644
--- a/TAO/TAO_IDL/be/be_scope.cpp
+++ b/TAO/TAO_IDL/be/be_scope.cpp
@@ -15,7 +15,7 @@
#include "be_visitor.h"
// Default Constructor.
-be_scope::be_scope (void)
+be_scope::be_scope ()
: UTL_Scope (),
comma_ (0)
{
@@ -28,7 +28,7 @@ be_scope::be_scope (AST_Decl::NodeType type)
{
}
-be_scope::~be_scope (void)
+be_scope::~be_scope ()
{
}
@@ -43,7 +43,7 @@ be_scope::be_add_field (AST_Field *f)
AST_Argument *
be_scope::be_add_argument (AST_Argument *)
{
- return 0;
+ return nullptr;
}
void
@@ -53,54 +53,54 @@ be_scope::comma (unsigned short comma)
}
int
-be_scope::comma (void) const
+be_scope::comma () const
{
return this->comma_;
}
// Return the scope created by this node (if one exists, else NULL).
be_decl *
-be_scope::decl (void)
+be_scope::decl ()
{
switch (this->scope_node_type ())
{
case AST_Decl::NT_interface:
- return be_interface::narrow_from_scope (this);
+ return dynamic_cast<be_interface*> (this);
case AST_Decl::NT_valuetype:
- return be_valuetype::narrow_from_scope (this);
+ return dynamic_cast<be_valuetype*> (this);
case AST_Decl::NT_eventtype:
- return be_eventtype::narrow_from_scope (this);
+ return dynamic_cast<be_eventtype*> (this);
case AST_Decl::NT_component:
- return be_component::narrow_from_scope (this);
+ return dynamic_cast<be_component*> (this);
case AST_Decl::NT_connector:
- return be_connector::narrow_from_scope (this);
+ return dynamic_cast<be_connector*> (this);
case AST_Decl::NT_home:
- return be_home::narrow_from_scope (this);
+ return dynamic_cast<be_home*> (this);
case AST_Decl::NT_module:
- return be_module::narrow_from_scope (this);
+ return dynamic_cast<be_module*> (this);
case AST_Decl::NT_root:
- return be_root::narrow_from_scope (this);
+ return dynamic_cast<be_root*> (this);
case AST_Decl::NT_except:
- return be_exception::narrow_from_scope (this);
+ return dynamic_cast<be_exception*> (this);
case AST_Decl::NT_union:
- return be_union::narrow_from_scope (this);
+ return dynamic_cast<be_union*> (this);
case AST_Decl::NT_struct:
- return be_structure::narrow_from_scope (this);
+ return dynamic_cast<be_structure*> (this);
case AST_Decl::NT_enum:
- return be_enum::narrow_from_scope (this);
+ return dynamic_cast<be_enum*> (this);
case AST_Decl::NT_op:
- return be_operation::narrow_from_scope (this);
+ return dynamic_cast<be_operation*> (this);
case AST_Decl::NT_factory:
- return be_factory::narrow_from_scope (this);
+ return dynamic_cast<be_factory*> (this);
case AST_Decl::NT_finder:
- return be_finder::narrow_from_scope (this);
+ return dynamic_cast<be_finder*> (this);
default:
- return (be_decl *)0;
+ return (be_decl *)nullptr;
}
}
void
-be_scope::destroy (void)
+be_scope::destroy ()
{
}
@@ -109,5 +109,3 @@ be_scope::accept (be_visitor *visitor)
{
return visitor->visit_scope (this);
}
-
-IMPL_NARROW_FROM_SCOPE (be_scope)
diff --git a/TAO/TAO_IDL/be/be_sequence.cpp b/TAO/TAO_IDL/be/be_sequence.cpp
index 76a067fcad0..e59a718ad6d 100644
--- a/TAO/TAO_IDL/be/be_sequence.cpp
+++ b/TAO/TAO_IDL/be/be_sequence.cpp
@@ -55,7 +55,7 @@ be_sequence::be_sequence (AST_Expression *v,
be_type (AST_Decl::NT_sequence,
n),
mt_ (be_sequence::MNG_UNKNOWN),
- field_node_ (0)
+ field_node_ (nullptr)
{
// Always the case.
this->has_constructor (true);
@@ -96,12 +96,12 @@ be_sequence::be_sequence (AST_Expression *v,
}
AST_Decl::NodeType nt = t->node_type ();
- AST_Typedef *td = 0;
- AST_Type *pbt = 0;
+ AST_Typedef *td = nullptr;
+ AST_Type *pbt = nullptr;
if (nt == AST_Decl::NT_typedef)
{
- td = AST_Typedef::narrow_from_decl (t);
+ td = dynamic_cast<AST_Typedef*> (t);
pbt = td->primitive_base_type ();
nt = pbt->node_type ();
}
@@ -109,7 +109,7 @@ be_sequence::be_sequence (AST_Expression *v,
if (nt == AST_Decl::NT_pre_defined)
{
AST_PredefinedType *pdt =
- AST_PredefinedType::narrow_from_decl (pbt ? pbt : t);
+ dynamic_cast<AST_PredefinedType*> (pbt ? pbt : t);
switch (pdt->pt ())
{
@@ -123,19 +123,19 @@ be_sequence::be_sequence (AST_Expression *v,
}
be_type *
-be_sequence::base_type (void) const
+be_sequence::base_type () const
{
return
- be_type::narrow_from_decl (
+ dynamic_cast<be_type*> (
this->AST_Sequence::base_type ());
}
// Helper to create_name.
char *
-be_sequence::gen_name (void)
+be_sequence::gen_name ()
{
char namebuf [NAMEBUFSIZE];
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Reset the buffer.
ACE_OS::memset (namebuf,
@@ -143,9 +143,9 @@ be_sequence::gen_name (void)
NAMEBUFSIZE);
// Retrieve the base type.
- bt = be_type::narrow_from_decl (this->base_type ());
+ bt = dynamic_cast<be_type*> (this->base_type ());
- if (bt == 0)
+ if (bt == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_sequence::"
@@ -161,9 +161,9 @@ be_sequence::gen_name (void)
if (bt->node_type () == AST_Decl::NT_sequence)
{
// Our base type is an anonymous sequence.
- be_sequence *seq = be_sequence::narrow_from_decl (bt);
+ be_sequence *seq = dynamic_cast<be_sequence*> (bt);
- if (seq == 0)
+ if (seq == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_sequence::"
@@ -215,11 +215,11 @@ be_sequence::gen_name (void)
int
be_sequence::create_name (be_typedef *node)
{
- static char *namebuf = 0;
- UTL_ScopedName *n = 0;
+ static char *namebuf = nullptr;
+ UTL_ScopedName *n = nullptr;
// Scope in which we are defined.
- be_decl *scope = 0;
+ be_decl *scope = nullptr;
// If there is a typedef node, we use its name as our name.
if (node)
@@ -236,22 +236,22 @@ be_sequence::create_name (be_typedef *node)
// Now see if we have a fully scoped name and if so, generate one.
UTL_Scope *us = this->defined_in ();
- scope = be_scope::narrow_from_scope (us)->decl ();
+ scope = dynamic_cast<be_scope*> (us)->decl ();
- if (scope != 0)
+ if (scope != nullptr)
{
// Make a copy of the enclosing scope's name.
n = (UTL_ScopedName *) scope->name ()->copy ();
- Identifier *id = 0;
+ Identifier *id = nullptr;
ACE_NEW_RETURN (id,
Identifier (namebuf),
-1);
- UTL_ScopedName *conc_name = 0;
+ UTL_ScopedName *conc_name = nullptr;
ACE_NEW_RETURN (conc_name,
UTL_ScopedName (id,
- 0),
+ nullptr),
-1);
// Add our local name as the last component.
@@ -275,27 +275,27 @@ be_sequence::create_name (be_typedef *node)
// Does this sequence have a managed type sequence element?
be_sequence::MANAGED_TYPE
-be_sequence::managed_type (void)
+be_sequence::managed_type ()
{
if (this->mt_ == be_sequence::MNG_UNKNOWN) // Not calculated yet.
{
// Base types.
- be_type *bt = 0;
- be_type *prim_type = 0;
+ be_type *bt = nullptr;
+ be_type *prim_type = nullptr;
- bt = be_type::narrow_from_decl (this->base_type ());
+ bt = dynamic_cast<be_type*> (this->base_type ());
if (!bt)
ACE_ERROR_RETURN ((LM_ERROR,
"TAO_IDL (%N:%l) "
- "be_type::narrow_from_decl "
+ "dynamic_cast<be_type*> "
"failed\n"),
be_sequence::MNG_UNKNOWN);
if (bt->node_type () == AST_Decl::NT_typedef)
{
// Get the primitive base type of this typedef node.
- be_typedef *t = be_typedef::narrow_from_decl (bt);
+ be_typedef *t = dynamic_cast<be_typedef*> (bt);
prim_type = t->primitive_base_type ();
}
else
@@ -329,7 +329,7 @@ be_sequence::managed_type (void)
case AST_Decl::NT_pre_defined:
{
be_predefined_type * const bpd =
- be_predefined_type::narrow_from_decl (prim_type);
+ dynamic_cast<be_predefined_type*> (prim_type);
AST_PredefinedType::PredefinedType pt = bpd->pt ();
@@ -361,9 +361,9 @@ be_sequence::managed_type (void)
AST_Sequence *
be_sequence::fe_add_sequence (AST_Sequence *t)
{
- if (t == 0)
+ if (t == nullptr)
{
- return 0;
+ return nullptr;
}
this->add_to_local_types (t);
@@ -372,7 +372,7 @@ be_sequence::fe_add_sequence (AST_Sequence *t)
// Overridden method
be_decl *
-be_sequence::decl (void)
+be_sequence::decl ()
{
return this;
}
@@ -426,10 +426,10 @@ be_sequence::instance_name ()
'\0',
NAMEBUFSIZE);
- be_type *bt = 0;
- bt = be_type::narrow_from_decl (this->base_type ());
+ be_type *bt = nullptr;
+ bt = dynamic_cast<be_type*> (this->base_type ());
- if (bt == 0)
+ if (bt == nullptr)
{
ACE_ERROR ((LM_ERROR,
"(%N:%l) be_visitor_sequence_ch::"
@@ -447,7 +447,7 @@ be_sequence::instance_name ()
if (bt->node_type () == AST_Decl::NT_typedef)
{
// Get the primitive base type of this typedef node.
- be_typedef *t = be_typedef::narrow_from_decl (bt);
+ be_typedef *t = dynamic_cast<be_typedef*> (bt);
prim_type = t->primitive_base_type ();
}
@@ -523,9 +523,9 @@ be_sequence::instance_name ()
// TAO provides extensions for octet sequences, first find out
// if the base type is an octet (or an alias for octet)
be_predefined_type *predef =
- be_predefined_type::narrow_from_decl (prim_type);
+ dynamic_cast<be_predefined_type*> (prim_type);
- if (predef != 0
+ if (predef != nullptr
&& predef->pt() == AST_PredefinedType::PT_octet)
{
ACE_OS::sprintf (namebuf,
@@ -558,7 +558,7 @@ be_sequence::gen_base_class_name (TAO_OutStream *os,
const char * linebreak,
AST_Decl *ctx_scope)
{
- be_type *elem = be_type::narrow_from_decl (this->base_type ());
+ be_type *elem = dynamic_cast<be_type*> (this->base_type ());
/*
if (be_global->alt_mapping () && this->unbounded ())
{
@@ -621,11 +621,11 @@ be_sequence::gen_base_class_name (TAO_OutStream *os,
break;
case be_sequence::MNG_STRING:
{
- be_type *prim_type = 0;
+ be_type *prim_type = nullptr;
if (elem->node_type () == AST_Decl::NT_typedef)
{
// Get the primitive base type of this typedef node.
- be_typedef *t = be_typedef::narrow_from_decl (elem);
+ be_typedef *t = dynamic_cast<be_typedef*> (elem);
prim_type = t->primitive_base_type ();
}
else
@@ -636,7 +636,7 @@ be_sequence::gen_base_class_name (TAO_OutStream *os,
if (prim_type->node_type () == AST_Decl::NT_string)
{
be_string *str =
- be_string::narrow_from_decl (prim_type);
+ dynamic_cast<be_string*> (prim_type);
if (!str)
{
ACE_ERROR_RETURN ((LM_ERROR,
@@ -680,11 +680,11 @@ be_sequence::gen_base_class_name (TAO_OutStream *os,
break;
case be_sequence::MNG_WSTRING:
{
- be_type *prim_type = 0;
+ be_type *prim_type = nullptr;
if (elem->node_type () == AST_Decl::NT_typedef)
{
// Get the primitive base type of this typedef node.
- be_typedef *t = be_typedef::narrow_from_decl (elem);
+ be_typedef *t = dynamic_cast<be_typedef*> (elem);
prim_type = t->primitive_base_type ();
}
else
@@ -695,7 +695,7 @@ be_sequence::gen_base_class_name (TAO_OutStream *os,
if (prim_type->node_type () == AST_Decl::NT_wstring)
{
be_string *str =
- be_string::narrow_from_decl (prim_type);
+ dynamic_cast<be_string*> (prim_type);
if (!str)
{
ACE_ERROR_RETURN ((LM_ERROR,
@@ -794,7 +794,7 @@ be_sequence::gen_base_class_name (TAO_OutStream *os,
}
be_field *
-be_sequence::field_node (void) const
+be_sequence::field_node () const
{
return this->field_node_;
}
@@ -807,19 +807,19 @@ be_sequence::field_node (be_field *node)
// Overriden method.
void
-be_sequence::compute_tc_name (void)
+be_sequence::compute_tc_name ()
{
// Sequence TypeCodes can only be accessed through an alias
// TypeCode. Generate a TypeCode name that is meant for internal
// use alone.
- Identifier * tao_id = 0;
+ Identifier * tao_id = nullptr;
ACE_NEW (tao_id,
Identifier ("TAO"));
ACE_NEW (this->tc_name_,
UTL_ScopedName (tao_id,
- 0));
+ nullptr));
char bound[30] = { 0 };
@@ -832,25 +832,25 @@ be_sequence::compute_tc_name (void)
+ ACE_CString (this->flat_name ())
+ ACE_CString (bound);
- Identifier * typecode_scope = 0;
+ Identifier * typecode_scope = nullptr;
ACE_NEW (typecode_scope,
Identifier ("TypeCode"));
- UTL_ScopedName * tc_scope_conc_name = 0;
+ UTL_ScopedName * tc_scope_conc_name = nullptr;
ACE_NEW (tc_scope_conc_name,
UTL_ScopedName (typecode_scope,
- 0));
+ nullptr));
this->tc_name_->nconc (tc_scope_conc_name);
- Identifier * id = 0;
+ Identifier * id = nullptr;
ACE_NEW (id,
Identifier (local_tc_name.c_str ()));
- UTL_ScopedName * conc_name = 0;
+ UTL_ScopedName * conc_name = nullptr;
ACE_NEW (conc_name,
UTL_ScopedName (id,
- 0));
+ nullptr));
this->tc_name_->nconc (conc_name);
}
@@ -870,14 +870,10 @@ be_sequence::smart_fwd_helper_name (AST_Decl *ctx_scope,
}
void
-be_sequence::destroy (void)
+be_sequence::destroy ()
{
// Call the destroy methods of our base classes.
this->be_scope::destroy ();
this->be_type::destroy ();
this->AST_Sequence::destroy ();
}
-
-
-
-IMPL_NARROW_FROM_DECL (be_sequence)
diff --git a/TAO/TAO_IDL/be/be_string.cpp b/TAO/TAO_IDL/be/be_string.cpp
index 4219440c874..fa08fc47ec9 100644
--- a/TAO/TAO_IDL/be/be_string.cpp
+++ b/TAO/TAO_IDL/be/be_string.cpp
@@ -95,9 +95,9 @@ be_string::gen_member_ostream_operator (TAO_OutStream *os,
// Overriden method.
void
-be_string::compute_tc_name (void)
+be_string::compute_tc_name ()
{
- Identifier * id = 0;
+ Identifier * id = nullptr;
ACE_CDR::ULong val = 0UL;
AST_Expression zero (val);
@@ -107,13 +107,13 @@ be_string::compute_tc_name (void)
// constants.
// Start with the head as the CORBA namespace.
- Identifier * corba_id = 0;
+ Identifier * corba_id = nullptr;
ACE_NEW (corba_id,
Identifier ("CORBA"));
ACE_NEW (this->tc_name_,
UTL_ScopedName (corba_id,
- 0));
+ nullptr));
ACE_NEW (id,
Identifier (this->width () == 1
@@ -125,26 +125,26 @@ be_string::compute_tc_name (void)
// We have a bounded string. Generate a TypeCode name that is
// meant for internal use alone.
- Identifier * tao_id = 0;
+ Identifier * tao_id = nullptr;
ACE_NEW (tao_id,
Identifier ("TAO"));
ACE_NEW (this->tc_name_,
UTL_ScopedName (tao_id,
- 0));
+ nullptr));
ACE_CString local_tc_name =
ACE_CString ("tc_")
+ ACE_CString (this->flat_name ());
- Identifier * typecode_scope = 0;
+ Identifier * typecode_scope = nullptr;
ACE_NEW (typecode_scope,
Identifier ("TypeCode"));
- UTL_ScopedName * tc_scope_conc_name = 0;
+ UTL_ScopedName * tc_scope_conc_name = nullptr;
ACE_NEW (tc_scope_conc_name,
UTL_ScopedName (typecode_scope,
- 0));
+ nullptr));
this->tc_name_->nconc (tc_scope_conc_name);
@@ -154,10 +154,10 @@ be_string::compute_tc_name (void)
zero.destroy ();
- UTL_ScopedName *conc_name = 0;
+ UTL_ScopedName *conc_name = nullptr;
ACE_NEW (conc_name,
UTL_ScopedName (id,
- 0));
+ nullptr));
this->tc_name_->nconc (conc_name);
}
@@ -169,10 +169,8 @@ be_string::accept (be_visitor * visitor)
}
void
-be_string::destroy (void)
+be_string::destroy ()
{
this->be_type::destroy ();
this->AST_String::destroy ();
}
-
-IMPL_NARROW_FROM_DECL (be_string)
diff --git a/TAO/TAO_IDL/be/be_structure.cpp b/TAO/TAO_IDL/be/be_structure.cpp
index 75224d09216..24874c51167 100644
--- a/TAO/TAO_IDL/be/be_structure.cpp
+++ b/TAO/TAO_IDL/be/be_structure.cpp
@@ -81,7 +81,7 @@ be_structure::be_structure (AST_Decl::NodeType nt,
void
be_structure::redefine (AST_Structure *from)
{
- be_structure *bs = be_structure::narrow_from_decl (from);
+ be_structure *bs = dynamic_cast<be_structure*> (from);
this->common_varout_gen_ = bs->common_varout_gen_;
this->AST_Structure::redefine (from);
}
@@ -111,10 +111,10 @@ be_structure::gen_ostream_operator (TAO_OutStream *os,
for (long i = 0; i < n; ++i)
{
- be_field *f = be_field::narrow_from_decl (this->pd_decls[i]);
+ be_field *f = dynamic_cast<be_field*> (this->pd_decls[i]);
// We don't want any decls, just members.
- if (f == 0)
+ if (f == nullptr)
{
continue;
}
@@ -145,7 +145,7 @@ be_structure::gen_ostream_operator (TAO_OutStream *os,
}
void
-be_structure::destroy (void)
+be_structure::destroy ()
{
// Call the destroy methods of our base classes.
this->be_scope::destroy ();
@@ -158,6 +158,3 @@ be_structure::accept (be_visitor *visitor)
{
return visitor->visit_structure (this);
}
-
-IMPL_NARROW_FROM_DECL (be_structure)
-IMPL_NARROW_FROM_SCOPE (be_structure)
diff --git a/TAO/TAO_IDL/be/be_structure_fwd.cpp b/TAO/TAO_IDL/be/be_structure_fwd.cpp
index 40df470d4aa..fb789735705 100644
--- a/TAO/TAO_IDL/be/be_structure_fwd.cpp
+++ b/TAO/TAO_IDL/be/be_structure_fwd.cpp
@@ -29,12 +29,12 @@ be_structure_fwd::be_structure_fwd (AST_Structure *dummy,
{
}
-be_structure_fwd::~be_structure_fwd (void)
+be_structure_fwd::~be_structure_fwd ()
{
}
void
-be_structure_fwd::destroy (void)
+be_structure_fwd::destroy ()
{
this->be_type::destroy ();
this->AST_StructureFwd::destroy ();
@@ -45,7 +45,3 @@ be_structure_fwd::accept (be_visitor *visitor)
{
return visitor->visit_structure_fwd (this);
}
-
-
-
-IMPL_NARROW_FROM_DECL (be_structure_fwd)
diff --git a/TAO/TAO_IDL/be/be_template_module.cpp b/TAO/TAO_IDL/be/be_template_module.cpp
index 14fe8190139..a82a7413057 100644
--- a/TAO/TAO_IDL/be/be_template_module.cpp
+++ b/TAO/TAO_IDL/be/be_template_module.cpp
@@ -20,12 +20,12 @@ be_template_module::be_template_module (
{
}
-be_template_module::~be_template_module (void)
+be_template_module::~be_template_module ()
{
}
void
-be_template_module::destroy (void)
+be_template_module::destroy ()
{
this->AST_Template_Module::destroy ();
this->be_scope::destroy ();
@@ -42,6 +42,3 @@ be_template_module::accept (be_visitor *)
// to generate implied IDL.
return 0;
}
-
-IMPL_NARROW_FROM_DECL (be_template_module)
-IMPL_NARROW_FROM_SCOPE (be_template_module)
diff --git a/TAO/TAO_IDL/be/be_template_module_inst.cpp b/TAO/TAO_IDL/be/be_template_module_inst.cpp
index 3380ad2f6c7..bcc5ac8ce25 100644
--- a/TAO/TAO_IDL/be/be_template_module_inst.cpp
+++ b/TAO/TAO_IDL/be/be_template_module_inst.cpp
@@ -24,12 +24,12 @@ be_template_module_inst::be_template_module_inst (
{
}
-be_template_module_inst::~be_template_module_inst (void)
+be_template_module_inst::~be_template_module_inst ()
{
}
void
-be_template_module_inst::destroy (void)
+be_template_module_inst::destroy ()
{
this->AST_Template_Module_Inst::destroy ();
}
@@ -39,6 +39,3 @@ be_template_module_inst::accept (be_visitor *visitor)
{
return visitor->visit_template_module_inst (this);
}
-
-IMPL_NARROW_FROM_DECL (be_template_module_inst)
-
diff --git a/TAO/TAO_IDL/be/be_template_module_ref.cpp b/TAO/TAO_IDL/be/be_template_module_ref.cpp
index 20f30788315..3fa20740229 100644
--- a/TAO/TAO_IDL/be/be_template_module_ref.cpp
+++ b/TAO/TAO_IDL/be/be_template_module_ref.cpp
@@ -24,12 +24,12 @@ be_template_module_ref::be_template_module_ref (
{
}
-be_template_module_ref::~be_template_module_ref (void)
+be_template_module_ref::~be_template_module_ref ()
{
}
void
-be_template_module_ref::destroy (void)
+be_template_module_ref::destroy ()
{
this->AST_Template_Module_Ref::destroy ();
this->be_field::destroy ();
@@ -40,6 +40,3 @@ be_template_module_ref::accept (be_visitor *visitor)
{
return visitor->visit_template_module_ref (this);
}
-
-IMPL_NARROW_FROM_DECL (be_template_module_ref)
-
diff --git a/TAO/TAO_IDL/be/be_type.cpp b/TAO/TAO_IDL/be/be_type.cpp
index 5a429a23a46..dcc4bf6f369 100644
--- a/TAO/TAO_IDL/be/be_type.cpp
+++ b/TAO/TAO_IDL/be/be_type.cpp
@@ -35,18 +35,18 @@ be_type::be_type (AST_Decl::NodeType nt,
n),
be_decl (nt,
n),
- tc_name_ (0),
+ tc_name_ (nullptr),
common_varout_gen_ (false),
seen_in_sequence_ (false),
seen_in_operation_ (false)
{
- if (n != 0)
+ if (n != nullptr)
{
this->gen_fwd_helper_name ();
}
}
-be_type::~be_type (void)
+be_type::~be_type ()
{
}
@@ -56,37 +56,37 @@ be_type::~be_type (void)
// predefined types.
void
-be_type::compute_tc_name (void)
+be_type::compute_tc_name ()
{
static char namebuf [NAMEBUFSIZE];
UTL_ScopedName *n = this->name ();
- if (this->tc_name_ != 0)
+ if (this->tc_name_ != nullptr)
{
this->tc_name_->destroy ();
delete this->tc_name_;
- this->tc_name_ = 0;
+ this->tc_name_ = nullptr;
}
ACE_OS::memset (namebuf,
'\0',
NAMEBUFSIZE);
- while (n->tail () != 0)
+ while (n->tail () != nullptr)
{
// Does not exist.
- if (this->tc_name_ == 0)
+ if (this->tc_name_ == nullptr)
{
ACE_NEW (this->tc_name_,
UTL_ScopedName (n->head ()->copy (),
- 0));
+ nullptr));
}
else
{
- UTL_ScopedName *conc_name = 0;
+ UTL_ScopedName *conc_name = nullptr;
ACE_NEW (conc_name,
UTL_ScopedName (n->head ()->copy (),
- 0));
+ nullptr));
this->tc_name_->nconc (conc_name);
}
@@ -98,23 +98,23 @@ be_type::compute_tc_name (void)
"_tc_%s",
n->last_component ()->get_string ());
- Identifier *id = 0;
+ Identifier *id = nullptr;
ACE_NEW (id,
Identifier (namebuf));
// Does not exist.
- if (this->tc_name_ == 0)
+ if (this->tc_name_ == nullptr)
{
ACE_NEW (this->tc_name_,
UTL_ScopedName (id,
- 0));
+ nullptr));
}
else
{
- UTL_ScopedName *conc_name = 0;
+ UTL_ScopedName *conc_name = nullptr;
ACE_NEW (conc_name,
UTL_ScopedName (id,
- 0));
+ nullptr));
this->tc_name_->nconc (conc_name);
}
@@ -122,10 +122,10 @@ be_type::compute_tc_name (void)
// Retrieve typecode name.
UTL_ScopedName *
-be_type::tc_name (void)
+be_type::tc_name ()
{
// Compute and init the member.
- if (this->tc_name_ == 0)
+ if (this->tc_name_ == nullptr)
{
this->compute_tc_name ();
}
@@ -145,7 +145,7 @@ be_type::nested_sp_type_name (be_decl *use_scope,
const char *prefix)
{
// Our defining scope.
- be_decl *fu_scope = 0;
+ be_decl *fu_scope = nullptr;
char fu_name [NAMEBUFSIZE];
char fl_name [NAMEBUFSIZE];
@@ -159,11 +159,11 @@ be_type::nested_sp_type_name (be_decl *use_scope,
NAMEBUFSIZE);
fu_scope = this->defined_in ()
- ? be_scope::narrow_from_scope (this->defined_in ())->decl ()
- : 0;
+ ? dynamic_cast<be_scope*> (this->defined_in ())->decl ()
+ : nullptr;
ACE_OS::strcat (fu_name,
- (fu_scope != 0 ? fu_scope->full_name () : ""));
+ (fu_scope != nullptr ? fu_scope->full_name () : ""));
ACE_OS::strcat (fu_name,
"::TAO_");
@@ -185,14 +185,14 @@ be_type::nested_sp_type_name (be_decl *use_scope,
}
void
-be_type::gen_fwd_helper_name (void)
+be_type::gen_fwd_helper_name ()
{
AST_Decl *parent = ScopeAsDecl (this->defined_in ());
- Identifier *segment = 0;
- char *tmp = 0;
+ Identifier *segment = nullptr;
+ char *tmp = nullptr;
this->fwd_helper_name_.clear (true);
- if (parent != 0 && parent->node_type () != AST_Decl::NT_root)
+ if (parent != nullptr && parent->node_type () != AST_Decl::NT_root)
{
for (UTL_IdListActiveIterator i (parent->name ());
!i.is_done ();
@@ -235,7 +235,7 @@ be_type::gen_member_ostream_operator (TAO_OutStream *os,
}
const char *
-be_type::fwd_helper_name (void) const
+be_type::fwd_helper_name () const
{
return this->fwd_helper_name_.fast_rep ();
}
@@ -303,19 +303,19 @@ be_type::gen_stub_decls (TAO_OutStream *os)
<< "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl_2;
- AST_Interface *i = AST_Interface::narrow_from_decl (this);
- AST_ValueType *v = AST_ValueType::narrow_from_decl (this);
+ AST_Interface *i = dynamic_cast<AST_Interface*> (this);
+ AST_ValueType *v = dynamic_cast<AST_ValueType*> (this);
- if (i != 0)
+ if (i != nullptr)
{
*os << "typedef " << this->local_name ()
- << (v == 0 ? "_ptr" : " *") << " _ptr_type;";
+ << (v == nullptr ? "_ptr" : " *") << " _ptr_type;";
}
bool skip_varout = false;
- AST_Sequence *s = AST_Sequence::narrow_from_decl (this);
+ AST_Sequence *s = dynamic_cast<AST_Sequence*> (this);
- if (s != 0)
+ if (s != nullptr)
{
// _vars and _outs not supported yet by alt mapping.
if (be_global->alt_mapping () && s->unbounded ())
@@ -346,7 +346,7 @@ be_type::gen_stub_decls (TAO_OutStream *os)
}
bool
-be_type::seen_in_sequence (void) const
+be_type::seen_in_sequence () const
{
return this->seen_in_sequence_;
}
@@ -358,7 +358,7 @@ be_type::seen_in_sequence (bool val)
}
bool
-be_type::seen_in_operation (void) const
+be_type::seen_in_operation () const
{
return this->seen_in_operation_;
}
@@ -370,20 +370,20 @@ be_type::seen_in_operation (bool val)
}
AST_Decl::NodeType
-be_type::base_node_type (void) const
+be_type::base_node_type () const
{
return const_cast<be_type*> (this)->node_type ();
}
// Cleanup method
void
-be_type::destroy (void)
+be_type::destroy ()
{
- if (this->tc_name_ != 0)
+ if (this->tc_name_ != nullptr)
{
this->tc_name_->destroy ();
delete this->tc_name_;
- this->tc_name_ = 0;
+ this->tc_name_ = nullptr;
}
this->be_decl::destroy ();
@@ -394,7 +394,3 @@ be_type::accept (be_visitor *visitor)
{
return visitor->visit_type (this);
}
-
-
-
-IMPL_NARROW_FROM_DECL (be_type)
diff --git a/TAO/TAO_IDL/be/be_typedef.cpp b/TAO/TAO_IDL/be/be_typedef.cpp
index 2763137e85d..bee4349fe04 100644
--- a/TAO/TAO_IDL/be/be_typedef.cpp
+++ b/TAO/TAO_IDL/be/be_typedef.cpp
@@ -56,7 +56,7 @@ be_typedef::seen_in_sequence (bool val)
// Some compilers seems to have a problem with a function
// that's both virtual and overloaded.
bool
-be_typedef::seen_in_operation (void) const
+be_typedef::seen_in_operation () const
{
return this->be_type::seen_in_operation ();
}
@@ -70,26 +70,26 @@ be_typedef::seen_in_operation (bool val)
// Given a typedef node, traverse the chain of base types until they are no
// more typedefs, and return that most primitive base type.
be_type *
-be_typedef::primitive_base_type (void)
+be_typedef::primitive_base_type ()
{
be_type *d = this;
- be_typedef *temp = 0;
+ be_typedef *temp = nullptr;
while (d && d->node_type () == AST_Decl::NT_typedef)
{
- temp = be_typedef::narrow_from_decl (d);
- d = be_type::narrow_from_decl (temp->base_type ());
+ temp = dynamic_cast<be_typedef*> (d);
+ d = dynamic_cast<be_type*> (temp->base_type ());
}
return d;
}
AST_Decl::NodeType
-be_typedef::base_node_type (void) const
+be_typedef::base_node_type () const
{
be_typedef *td = const_cast<be_typedef *> (this);
- be_type *base = be_type::narrow_from_decl (td->base_type ());
+ be_type *base = dynamic_cast<be_type*> (td->base_type ());
return base->base_node_type ();
}
@@ -107,7 +107,7 @@ be_typedef::gen_member_ostream_operator (TAO_OutStream *os,
}
void
-be_typedef::destroy (void)
+be_typedef::destroy ()
{
this->AST_Typedef::destroy ();
this->be_type::destroy ();
@@ -118,5 +118,3 @@ be_typedef::accept (be_visitor *visitor)
{
return visitor->visit_typedef (this);
}
-
-IMPL_NARROW_FROM_DECL (be_typedef)
diff --git a/TAO/TAO_IDL/be/be_union.cpp b/TAO/TAO_IDL/be/be_union.cpp
index 2493aed1c23..f13367ddab0 100644
--- a/TAO/TAO_IDL/be/be_union.cpp
+++ b/TAO/TAO_IDL/be/be_union.cpp
@@ -66,13 +66,13 @@ be_union::be_union (AST_ConcreteType *dt,
void
be_union::redefine (AST_Structure *from)
{
- be_union *bu = be_union::narrow_from_decl (from);
+ be_union *bu = dynamic_cast<be_union*> (from);
this->common_varout_gen_ = bu->common_varout_gen_;
AST_Union::redefine (from);
}
bool
-be_union::has_duplicate_case_labels (void)
+be_union::has_duplicate_case_labels ()
{
for (UTL_ScopeActiveIterator si (this, UTL_Scope::IK_decls);
!si.is_done ();
@@ -80,7 +80,7 @@ be_union::has_duplicate_case_labels (void)
{
AST_Decl *d = si.item ();
AST_UnionBranch *ub =
- AST_UnionBranch::narrow_from_decl (d);
+ dynamic_cast<AST_UnionBranch*> (d);
if (ub->label_list_length () > 1)
{
@@ -108,10 +108,10 @@ be_union::gen_ostream_operator (TAO_OutStream *os,
for (long i = 0; i < this->pd_decls_used; ++i)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->pd_decls[i]);
+ dynamic_cast<be_union_branch*> (this->pd_decls[i]);
// We don't want any decls, just members.
- if (ub == 0)
+ if (ub == nullptr)
{
continue;
}
@@ -151,7 +151,7 @@ be_union::gen_ostream_operator (TAO_OutStream *os,
*os << "strm << ";
- be_type *ub_ft = be_type::narrow_from_decl (ub->field_type ());
+ be_type *ub_ft = dynamic_cast<be_type*> (ub->field_type ());
AST_Decl::NodeType ub_nt = ub_ft->node_type ();
// catch anonymous Array member types
bool ub_use_underscore = ub_nt == AST_Decl::NT_array;
@@ -181,7 +181,7 @@ be_union::gen_ostream_operator (TAO_OutStream *os,
}
void
-be_union::destroy (void)
+be_union::destroy ()
{
// Call the destroy methods of our base classes.
this->be_scope::destroy ();
@@ -198,7 +198,7 @@ be_union::accept (be_visitor *visitor)
}
bool
-be_union::gen_empty_default_label (void)
+be_union::gen_empty_default_label ()
{
// A non-empty explicit default label will be generated.
if (this->default_index () != -1)
@@ -207,7 +207,7 @@ be_union::gen_empty_default_label (void)
}
AST_ConcreteType *disc = this->disc_type ();
- if (disc == 0)
+ if (disc == nullptr)
{
return true; // In reality this is an error.
}
@@ -223,8 +223,8 @@ be_union::gen_empty_default_label (void)
return (n_labels <= ACE_UINT32_MAX);
}
- AST_PredefinedType *pdt = AST_PredefinedType::narrow_from_decl (disc);
- if (pdt == 0)
+ AST_PredefinedType *pdt = dynamic_cast<AST_PredefinedType*> (disc);
+ if (pdt == nullptr)
{
return true; // In reality this is an error.
}
@@ -266,7 +266,7 @@ be_union::be_add_union_branch (AST_UnionBranch *b)
}
ACE_UINT64
-be_union::nlabels (void)
+be_union::nlabels ()
{
ACE_UINT64 retval = 0;
@@ -276,9 +276,9 @@ be_union::nlabels (void)
{
AST_Decl *d = si.item ();
AST_UnionBranch *ub =
- AST_UnionBranch::narrow_from_decl (d);
+ dynamic_cast<AST_UnionBranch*> (d);
- if (ub != 0)
+ if (ub != nullptr)
{
retval += ub->label_list_length ();
}
@@ -286,8 +286,3 @@ be_union::nlabels (void)
return retval;
}
-
-
-
-IMPL_NARROW_FROM_DECL (be_union)
-IMPL_NARROW_FROM_SCOPE (be_union)
diff --git a/TAO/TAO_IDL/be/be_union_branch.cpp b/TAO/TAO_IDL/be/be_union_branch.cpp
index 17dd1156d16..217857d51bf 100644
--- a/TAO/TAO_IDL/be/be_union_branch.cpp
+++ b/TAO/TAO_IDL/be/be_union_branch.cpp
@@ -54,17 +54,17 @@ be_union_branch::gen_label_value (TAO_OutStream *os, unsigned long index)
// If the enum is not in the global scope we have to prefix it.
be_union *u =
- be_union::narrow_from_scope (this->defined_in ());
+ dynamic_cast<be_union*> (this->defined_in ());
- if (u == 0)
+ if (u == nullptr)
{
return -1;
}
be_type* dt =
- be_type::narrow_from_decl (u->disc_type ());
+ dynamic_cast<be_type*> (u->disc_type ());
- if (dt == 0)
+ if (dt == nullptr)
{
return -1;
}
@@ -83,9 +83,9 @@ be_union_branch::gen_label_value (TAO_OutStream *os, unsigned long index)
// Find where was the enum defined, if it was defined in the globa
// scope, then it is easy to generate the enum values....
be_scope* scope =
- be_scope::narrow_from_scope (dt->defined_in ());
+ dynamic_cast<be_scope*> (dt->defined_in ());
- if (scope == 0)
+ if (scope == nullptr)
{
*os << e->n ();
return 0;
@@ -141,7 +141,7 @@ be_union_branch::gen_default_label_value (TAO_OutStream *os,
// discriminant, so we must generate the string name.
{
AST_ConcreteType *act = bu->disc_type ();
- be_enum *be = be_enum::narrow_from_decl (act);
+ be_enum *be = dynamic_cast<be_enum*> (act);
UTL_ScopedName *sn = be->value_to_name (dv.u.enum_val);
if (sn)
@@ -183,12 +183,8 @@ be_union_branch::accept (be_visitor *visitor)
}
void
-be_union_branch::destroy (void)
+be_union_branch::destroy ()
{
this->be_decl::destroy ();
this->AST_UnionBranch::destroy ();
}
-
-
-
-IMPL_NARROW_FROM_DECL (be_union_branch)
diff --git a/TAO/TAO_IDL/be/be_union_fwd.cpp b/TAO/TAO_IDL/be/be_union_fwd.cpp
index 064cbece771..0980994c2ee 100644
--- a/TAO/TAO_IDL/be/be_union_fwd.cpp
+++ b/TAO/TAO_IDL/be/be_union_fwd.cpp
@@ -34,12 +34,12 @@ be_union_fwd::be_union_fwd (AST_Union *dummy,
{
}
-be_union_fwd::~be_union_fwd (void)
+be_union_fwd::~be_union_fwd ()
{
}
void
-be_union_fwd::destroy (void)
+be_union_fwd::destroy ()
{
this->be_structure_fwd::destroy ();
}
@@ -49,7 +49,3 @@ be_union_fwd::accept (be_visitor *visitor)
{
return visitor->visit_union_fwd (this);
}
-
-
-
-IMPL_NARROW_FROM_DECL (be_union_fwd)
diff --git a/TAO/TAO_IDL/be/be_union_label.cpp b/TAO/TAO_IDL/be/be_union_label.cpp
index 9d0cd9f3c84..7b15a4fad7e 100644
--- a/TAO/TAO_IDL/be/be_union_label.cpp
+++ b/TAO/TAO_IDL/be/be_union_label.cpp
@@ -15,7 +15,7 @@ be_union_label::accept (be_visitor *visitor)
}
void
-be_union_label::destroy (void)
+be_union_label::destroy ()
{
this->AST_UnionLabel::destroy ();
}
diff --git a/TAO/TAO_IDL/be/be_uses.cpp b/TAO/TAO_IDL/be/be_uses.cpp
index 1837fb30a19..46e35d90690 100644
--- a/TAO/TAO_IDL/be/be_uses.cpp
+++ b/TAO/TAO_IDL/be/be_uses.cpp
@@ -19,19 +19,19 @@ be_uses::be_uses (UTL_ScopedName *n,
n),
be_field (uses_type,
n),
- original_uses_ (0)
+ original_uses_ (nullptr)
{
}
-be_uses::~be_uses (void)
+be_uses::~be_uses ()
{
}
be_type *
-be_uses::uses_type (void) const
+be_uses::uses_type () const
{
return
- be_type::narrow_from_decl (
+ dynamic_cast<be_type*> (
this->AST_Uses::uses_type ());
}
@@ -42,7 +42,7 @@ be_uses::accept (be_visitor *visitor)
}
void
-be_uses::destroy (void)
+be_uses::destroy ()
{
this->AST_Uses::destroy ();
this->be_field::destroy ();
@@ -55,9 +55,7 @@ be_uses::original_uses (be_uses *original_uses)
}
be_uses *
-be_uses::original_uses (void)
+be_uses::original_uses ()
{
return this->original_uses_;
}
-
-IMPL_NARROW_FROM_DECL (be_uses)
diff --git a/TAO/TAO_IDL/be/be_util.cpp b/TAO/TAO_IDL/be/be_util.cpp
index 14813ba4f6b..cc605a4e5c1 100644
--- a/TAO/TAO_IDL/be/be_util.cpp
+++ b/TAO/TAO_IDL/be/be_util.cpp
@@ -34,7 +34,7 @@ be_util::gen_nested_namespace_begin (TAO_OutStream *os,
be_module *node,
bool skel)
{
- char *item_name = 0;
+ char *item_name = nullptr;
bool first_level = true;
for (UTL_IdListActiveIterator i (node->name ());
@@ -154,11 +154,11 @@ be_util::prep_be_arg (char *s)
static const char stripped_filename[] = "stripped_filename=";
static const char no_fixed_err[] = "no_fixed_err";
- char* last = 0;
+ char* last = nullptr;
for (char* arg = ACE_OS::strtok_r (s, ",", &last);
- arg != 0;
- arg = ACE_OS::strtok_r (0, ",", &last))
+ arg != nullptr;
+ arg = ACE_OS::strtok_r (nullptr, ",", &last))
{
if (ACE_OS::strstr (arg, arg_macro) == arg)
{
@@ -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)
{
@@ -326,7 +326,7 @@ be_util::prep_be_arg (char *s)
}
void
-be_util::arg_post_proc (void)
+be_util::arg_post_proc ()
{
// Let us try to use Perfect Hashing Operation Lookup Strategy. Let
// us check whether things are fine with GPERF.
@@ -384,7 +384,7 @@ be_util::arg_post_proc (void)
}
void
-be_util::usage (void)
+be_util::usage ()
{
ACE_DEBUG ((
LM_DEBUG,
@@ -940,14 +940,14 @@ be_util::usage (void)
}
AST_Generator *
-be_util::generator_init (void)
+be_util::generator_init ()
{
tao_cg = TAO_CODEGEN::instance ();
- AST_Generator *gen = 0;
+ AST_Generator *gen = nullptr;
ACE_NEW_RETURN (gen,
be_generator,
- 0);
+ nullptr);
return gen;
}
@@ -957,15 +957,15 @@ be_util::get_output_path (bool for_anyop,
bool for_skel,
bool for_exec)
{
- if (for_anyop && 0 != be_global->anyop_output_dir ())
+ if (for_anyop && nullptr != be_global->anyop_output_dir ())
{
return be_global->anyop_output_dir ();
}
- else if (for_skel && 0 != be_global->skel_output_dir ())
+ else if (for_skel && nullptr != be_global->skel_output_dir ())
{
return be_global->skel_output_dir ();
}
- else if (for_exec && 0 != be_global->exec_output_dir ())
+ else if (for_exec && nullptr != be_global->exec_output_dir ())
{
return be_global->exec_output_dir ();
}
@@ -1008,7 +1008,7 @@ be_util::overwrite_ciao_exec_files ()
void
be_util::set_arg_seen_bit (be_type *bt)
{
- if (bt == 0)
+ if (bt == nullptr)
{
return;
}
@@ -1017,9 +1017,9 @@ be_util::set_arg_seen_bit (be_type *bt)
{
case AST_Decl::NT_typedef:
{
- AST_Typedef *td = AST_Typedef::narrow_from_decl (bt);
+ AST_Typedef *td = dynamic_cast<AST_Typedef*> (bt);
be_util::set_arg_seen_bit (
- be_type::narrow_from_decl (td->primitive_base_type ())
+ dynamic_cast<be_type*> (td->primitive_base_type ())
);
break;
}
@@ -1049,8 +1049,8 @@ be_util::set_arg_seen_bit (be_type *bt)
case AST_Decl::NT_struct_fwd:
case AST_Decl::NT_union_fwd:
{
- AST_StructureFwd *fwd = AST_StructureFwd::narrow_from_decl (bt);
- be_type *fd = be_type::narrow_from_decl (fwd->full_definition ());
+ AST_StructureFwd *fwd = dynamic_cast<AST_StructureFwd*> (bt);
+ be_type *fd = dynamic_cast<be_type*> (fwd->full_definition ());
be_util::set_arg_seen_bit (fd);
break;
}
@@ -1061,7 +1061,7 @@ be_util::set_arg_seen_bit (be_type *bt)
case AST_Decl::NT_string:
case AST_Decl::NT_wstring:
{
- AST_String *str = AST_String::narrow_from_decl (bt);
+ AST_String *str = dynamic_cast<AST_String*> (bt);
if (str->max_size ()->ev ()->u.ulval == 0)
{
@@ -1090,7 +1090,7 @@ be_util::set_arg_seen_bit (be_type *bt)
break;
case AST_Decl::NT_pre_defined:
{
- AST_PredefinedType *pdt = AST_PredefinedType::narrow_from_decl (bt);
+ AST_PredefinedType *pdt = dynamic_cast<AST_PredefinedType*> (bt);
switch (pdt->pt ())
{
diff --git a/TAO/TAO_IDL/be/be_valuebox.cpp b/TAO/TAO_IDL/be/be_valuebox.cpp
index 21d00fd2972..eca86d93483 100644
--- a/TAO/TAO_IDL/be/be_valuebox.cpp
+++ b/TAO/TAO_IDL/be/be_valuebox.cpp
@@ -57,13 +57,9 @@ be_valuebox::accept (be_visitor *visitor)
void
-be_valuebox::destroy (void)
+be_valuebox::destroy ()
{
// Call the destroy methods of our base classes.
this->AST_ValueBox::destroy ();
this->be_type::destroy ();
}
-
-
-
-IMPL_NARROW_FROM_DECL (be_valuebox)
diff --git a/TAO/TAO_IDL/be/be_valuetype.cpp b/TAO/TAO_IDL/be/be_valuetype.cpp
index eeb9d21a15f..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,
@@ -77,7 +77,7 @@ be_valuetype::be_valuetype (UTL_ScopedName *n,
custom),
supports_abstract_ (false),
var_out_seq_decls_gen_ (false),
- full_obv_skel_name_ (0),
+ full_obv_skel_name_ (nullptr),
is_amh_excep_holder_ (false)
{
// Check that redefine() copies all members.
@@ -85,9 +85,9 @@ be_valuetype::be_valuetype (UTL_ScopedName *n,
// Always the case.
this->size_type (AST_Type::VARIABLE);
- AST_Module *m = AST_Module::narrow_from_scope (this->defined_in ());
+ AST_Module *m = dynamic_cast<AST_Module*> (this->defined_in ());
- if (m != 0)
+ if (m != nullptr)
{
m->set_has_nested_valuetype ();
}
@@ -98,9 +98,9 @@ be_valuetype::be_valuetype (UTL_ScopedName *n,
for (long i = 0; i < this->pd_n_supports; ++i)
{
be_interface *intf =
- be_interface::narrow_from_decl (this->pd_supports[i]);
+ dynamic_cast<be_interface*> (this->pd_supports[i]);
- if (intf == 0)
+ if (intf == nullptr)
{
// The item is a template param holder.
continue;
@@ -131,18 +131,18 @@ be_valuetype::be_valuetype (UTL_ScopedName *n,
}
}
-be_valuetype::~be_valuetype (void)
+be_valuetype::~be_valuetype ()
{
}
void
be_valuetype::redefine (AST_Interface *from)
{
- be_valuetype *bv = be_valuetype::narrow_from_decl (from);
+ be_valuetype *bv = dynamic_cast<be_valuetype*> (from);
// This should always be TRUE, but our signature is inherited, so
// the narrow is necessary and should always be checked.
- if (bv != 0)
+ if (bv != nullptr)
{
this->var_out_seq_decls_gen_ = bv->var_out_seq_decls_gen_;
}
@@ -153,14 +153,14 @@ be_valuetype::redefine (AST_Interface *from)
// Is true if non-virtual accessor and modifier should be generated
// If #pragma TAO OBV opt_accessor (todo) is used or -Wb,obv_opt_accessor.
bool
-be_valuetype::opt_accessor (void)
+be_valuetype::opt_accessor ()
{
return be_global->obv_opt_accessor ();
}
// Compute stringified fully scoped skeleton name (OBV_name).
void
-be_valuetype::compute_fullobvskelname (void)
+be_valuetype::compute_fullobvskelname ()
{
this->compute_full_skel_name ("OBV_",
this->full_obv_skel_name_);
@@ -168,9 +168,9 @@ be_valuetype::compute_fullobvskelname (void)
// Retrieve the fully scoped skeleton name.
const char*
-be_valuetype::full_obv_skel_name (void)
+be_valuetype::full_obv_skel_name ()
{
- if (0 == this->full_obv_skel_name_)
+ if (nullptr == this->full_obv_skel_name_)
{
this->compute_fullobvskelname ();
}
@@ -179,13 +179,13 @@ be_valuetype::full_obv_skel_name (void)
}
const char *
-be_valuetype::fwd_helper_name (void) const
+be_valuetype::fwd_helper_name () const
{
return this->fwd_helper_name_.fast_rep ();
}
be_valuetype::FactoryStyle
-be_valuetype::determine_factory_style (void)
+be_valuetype::determine_factory_style ()
{
FactoryStyle factory_style = FS_UNKNOWN;
@@ -197,7 +197,7 @@ be_valuetype::determine_factory_style (void)
// 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 (void)
if (node_type == AST_Decl::NT_factory)
{
- have_factory = 1;
+ have_factory = true;
break;
}
@@ -249,7 +249,7 @@ be_valuetype::determine_factory_style (void)
}
bool
-be_valuetype::have_operation (void)
+be_valuetype::have_operation ()
{
// Check whatever scope we get for operations/attributes.
@@ -301,9 +301,9 @@ be_valuetype::have_operation (void)
for (i = 0; i < n_inherits; ++i)
{
- be_valuetype *vt = be_valuetype::narrow_from_decl (inherits[i]);
+ be_valuetype *vt = dynamic_cast<be_valuetype*> (inherits[i]);
- if (vt != 0 && vt->have_operation ())
+ if (vt != nullptr && vt->have_operation ())
{
have_operation = true;
break;
@@ -316,12 +316,12 @@ be_valuetype::have_operation (void)
// Check for operations on supported interfaces
AST_Type * supported = this->supports_concrete ();
- if (supported != 0)
+ if (supported != nullptr)
{
be_interface *intf =
- be_interface::narrow_from_decl (supported);
+ dynamic_cast<be_interface*> (supported);
- if (intf != 0)
+ if (intf != nullptr)
{
have_operation =
be_valuetype::have_supported_op (intf);
@@ -349,7 +349,7 @@ be_valuetype::have_supported_op (be_interface * node)
{
AST_Decl *d = si.item ();
- if (d == 0)
+ if (d == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_valuetype::")
@@ -378,9 +378,9 @@ be_valuetype::have_supported_op (be_interface * node)
for (i = 0; i < n_inherits; ++i)
{
be_interface * intf =
- be_interface::narrow_from_decl (inherits[i]);
+ dynamic_cast<be_interface*> (inherits[i]);
- if (intf != 0)
+ if (intf != nullptr)
{
have_supported_op =
be_valuetype::have_supported_op (intf);
@@ -397,7 +397,7 @@ be_valuetype::have_supported_op (be_interface * node)
}
bool
-be_valuetype::will_have_factory (void)
+be_valuetype::will_have_factory ()
{
FactoryStyle fs = this->determine_factory_style ();
@@ -405,15 +405,15 @@ be_valuetype::will_have_factory (void)
}
bool
-be_valuetype::has_member (void)
+be_valuetype::has_member ()
{
AST_Type *parent = this->pd_inherits_concrete;
// We're looking for inherited members too.
- if (parent != 0)
+ if (parent != nullptr)
{
be_valuetype *be_parent =
- be_valuetype::narrow_from_decl (parent);
+ dynamic_cast<be_valuetype*> (parent);
if (be_parent->has_member ())
{
@@ -435,7 +435,7 @@ be_valuetype::has_member (void)
}
bool
-be_valuetype::is_amh_excep_holder (void) const
+be_valuetype::is_amh_excep_holder () const
{
return this->is_amh_excep_holder_;
}
@@ -551,7 +551,7 @@ be_valuetype::gen_ostream_operator (TAO_OutStream *os,
// interface _var and _out template classes, as well as by the
// template sequence classes for object references.
void
-be_valuetype::gen_var_out_seq_decls (void)
+be_valuetype::gen_var_out_seq_decls ()
{
if (this->var_out_seq_decls_gen_)
{
@@ -589,29 +589,29 @@ be_valuetype::gen_var_out_seq_decls (void)
// For building the pre and postfix of private data fields.
const char *
-be_valuetype::field_pd_prefix (void)
+be_valuetype::field_pd_prefix ()
{
return "_pd_";
}
const char *
-be_valuetype::field_pd_postfix (void)
+be_valuetype::field_pd_postfix ()
{
return "";
}
be_valuetype *
-be_valuetype::statefull_inherit (void)
+be_valuetype::statefull_inherit ()
{
- if (this->pd_inherits_concrete != 0)
+ if (this->pd_inherits_concrete != nullptr)
{
return
- be_valuetype::narrow_from_decl (
+ dynamic_cast<be_valuetype*> (
this->pd_inherits_concrete);
}
else
{
- return 0;
+ return nullptr;
}
}
@@ -623,10 +623,10 @@ be_valuetype::accept (be_visitor *visitor)
}
void
-be_valuetype::destroy (void)
+be_valuetype::destroy ()
{
delete [] this->full_obv_skel_name_;
- this->full_obv_skel_name_ = 0;
+ this->full_obv_skel_name_ = nullptr;
this->be_interface::destroy ();
this->AST_ValueType::destroy ();
@@ -651,10 +651,10 @@ be_valuetype::data_members_count (AST_Field::Visibility vis)
0);
}
- AST_Field *field = AST_Field::narrow_from_decl (d);
- AST_Attribute *attr = AST_Attribute::narrow_from_decl (d);
+ AST_Field *field = dynamic_cast<AST_Field*> (d);
+ AST_Attribute *attr = dynamic_cast<AST_Attribute*> (d);
- if (field == 0 || attr != 0)
+ if (field == nullptr || attr != nullptr)
{
continue;
}
@@ -672,7 +672,7 @@ be_valuetype::data_members_count (AST_Field::Visibility vis)
}
bool
-be_valuetype::supports_abstract (void) const
+be_valuetype::supports_abstract () const
{
return this->supports_abstract_;
}
@@ -701,7 +701,7 @@ be_valuetype::traverse_supports_list_graphs (
this->insert_queue.reset ();
this->del_queue.reset ();
- be_interface *supported_interface = 0;
+ be_interface *supported_interface = nullptr;
for (long i = 0; i < n_supports; ++i)
{
@@ -718,7 +718,7 @@ be_valuetype::traverse_supports_list_graphs (
}
supported_interface =
- be_interface::narrow_from_decl (this->pd_supports[i]);
+ dynamic_cast<be_interface*> (this->pd_supports[i]);
// Insert a supported interface in the queue.
if (this->insert_queue.enqueue_tail (supported_interface) == -1)
@@ -744,13 +744,13 @@ be_valuetype::traverse_concrete_inheritance_graph (tao_code_emitter gen,
{
AST_Type *supported = this->supports_concrete ();
- if (supported == 0)
+ if (supported == nullptr)
{
return 0;
}
be_interface *concrete =
- be_interface::narrow_from_decl (supported);
+ dynamic_cast<be_interface*> (supported);
// Make sure the queues are empty.
this->insert_queue.reset ();
@@ -783,6 +783,3 @@ be_valuetype::abstract_supports_helper (be_interface *,
return 0;
}
-
-IMPL_NARROW_FROM_DECL (be_valuetype)
-IMPL_NARROW_FROM_SCOPE (be_valuetype)
diff --git a/TAO/TAO_IDL/be/be_valuetype_fwd.cpp b/TAO/TAO_IDL/be/be_valuetype_fwd.cpp
index a10a3874255..b6151ea0f69 100644
--- a/TAO/TAO_IDL/be/be_valuetype_fwd.cpp
+++ b/TAO/TAO_IDL/be/be_valuetype_fwd.cpp
@@ -36,7 +36,7 @@ be_valuetype_fwd::be_valuetype_fwd (AST_Interface *dummy,
{
}
-be_valuetype_fwd::~be_valuetype_fwd (void)
+be_valuetype_fwd::~be_valuetype_fwd ()
{
}
@@ -47,12 +47,7 @@ be_valuetype_fwd::accept (be_visitor *visitor)
}
void
-be_valuetype_fwd::destroy (void)
+be_valuetype_fwd::destroy ()
{
this->be_interface_fwd::destroy ();
}
-
-
-
-IMPL_NARROW_FROM_DECL (be_valuetype_fwd)
-
diff --git a/TAO/TAO_IDL/be/be_visitor.cpp b/TAO/TAO_IDL/be/be_visitor.cpp
index bd4b8ff125c..e8b1736bb77 100644
--- a/TAO/TAO_IDL/be/be_visitor.cpp
+++ b/TAO/TAO_IDL/be/be_visitor.cpp
@@ -21,11 +21,11 @@
#include "ace/config-all.h"
-be_visitor::be_visitor (void)
+be_visitor::be_visitor ()
{
}
-be_visitor::~be_visitor (void)
+be_visitor::~be_visitor ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_amh_pre_proc.cpp b/TAO/TAO_IDL/be/be_visitor_amh_pre_proc.cpp
index bf34b126a16..87b095402ab 100644
--- a/TAO/TAO_IDL/be/be_visitor_amh_pre_proc.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_amh_pre_proc.cpp
@@ -32,7 +32,7 @@ be_visitor_amh_pre_proc::be_visitor_amh_pre_proc (be_visitor_context *ctx)
{
}
-be_visitor_amh_pre_proc::~be_visitor_amh_pre_proc (void)
+be_visitor_amh_pre_proc::~be_visitor_amh_pre_proc ()
{
}
@@ -68,7 +68,7 @@ int
be_visitor_amh_pre_proc::visit_interface (be_interface *node)
{
// Do not generate AMH classes for any sort of implied IDL.
- if (node->original_interface () != 0)
+ if (node->original_interface () != nullptr)
{
return 0;
}
@@ -106,14 +106,14 @@ be_visitor_amh_pre_proc::visit_interface (be_interface *node)
excep_holder->is_amh_excep_holder (true);
AST_Module *module =
- AST_Module::narrow_from_scope (node->defined_in ());
+ dynamic_cast<AST_Module*> (node->defined_in ());
module->set_has_nested_valuetype ();
// Create the ResponseHandler class
be_interface *response_handler =
this->create_response_handler (node,
excep_holder);
- if (response_handler == 0)
+ if (response_handler == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_amh_pre_proc::"
@@ -167,16 +167,16 @@ be_visitor_amh_pre_proc::create_response_handler (
// the inherited classes in the original interface, change their
// names and then use the symbol table to look up the
// AMH-response-handler nodes.
- be_interface *response_handler = 0;
+ be_interface *response_handler = nullptr;
ACE_NEW_RETURN (response_handler,
be_interface (amh_name, // name
- 0, // list of inherited
+ nullptr, // list of inherited
0, // number of inherited
- 0, // list of ancestors
+ nullptr, // list of ancestors
0, // number of ancestors
1, // local
0), // non-abstract
- 0);
+ nullptr);
idl_global->scopes ().pop ();
@@ -190,7 +190,7 @@ be_visitor_amh_pre_proc::create_response_handler (
// and set the prefix to the node's prefix. All this is
// necessary in case the node's prefix was modified after
// its declaration.
- response_handler->AST_Decl::repoID (0);
+ response_handler->AST_Decl::repoID (nullptr);
response_handler->prefix (const_cast<char*> (node->prefix ()));
response_handler->gen_fwd_helper_name ();
@@ -229,9 +229,9 @@ be_visitor_amh_pre_proc::add_rh_node_members ( be_interface *node,
if (nt == AST_Decl::NT_attr)
{
- be_attribute *attr = be_attribute::narrow_from_decl (d);
+ be_attribute *attr = dynamic_cast<be_attribute*> (d);
- if (attr != 0)
+ if (attr != nullptr)
{
status =
this->create_response_handler_attribute (attr,
@@ -250,9 +250,9 @@ be_visitor_amh_pre_proc::add_rh_node_members ( be_interface *node,
}
else if (nt == AST_Decl::NT_op)
{
- be_operation* operation = be_operation::narrow_from_decl (d);
+ be_operation* operation = dynamic_cast<be_operation*> (d);
- if (operation != 0)
+ if (operation != nullptr)
{
status =
this->create_response_handler_operation (operation,
@@ -285,7 +285,7 @@ be_visitor_amh_pre_proc::create_response_handler_operation (
be_valuetype *exception_holder
)
{
- if (node == 0)
+ if (node == nullptr)
{
return -1;
}
@@ -325,7 +325,7 @@ be_visitor_amh_pre_proc::create_response_handler_attribute (
get_operation->destroy ();
delete get_operation;
- get_operation = 0;
+ get_operation = nullptr;
if (status == -1)
{
@@ -349,7 +349,7 @@ be_visitor_amh_pre_proc::create_response_handler_attribute (
set_operation->destroy ();
delete set_operation;
- set_operation = 0;
+ set_operation = nullptr;
return status;
}
@@ -362,7 +362,7 @@ be_visitor_amh_pre_proc::add_exception_reply (be_operation *node,
UTL_ScopedName *operation_name = node->compute_name ("",
"_excep");
- be_operation *node_excep = 0;
+ be_operation *node_excep = nullptr;
ACE_NEW_RETURN (node_excep,
be_operation (be_global->void_type (),
AST_Operation::OP_noflags,
@@ -373,17 +373,17 @@ be_visitor_amh_pre_proc::add_exception_reply (be_operation *node,
node_excep->set_name (operation_name);
- Identifier *arg_id = 0;
+ Identifier *arg_id = nullptr;
ACE_NEW_RETURN (arg_id,
Identifier ("holder"),
-1);
- UTL_ScopedName *arg_name = 0;
+ UTL_ScopedName *arg_name = nullptr;
ACE_NEW_RETURN (arg_name,
- UTL_ScopedName (arg_id, 0),
+ UTL_ScopedName (arg_id, nullptr),
-1);
- be_argument *argument = 0;
+ be_argument *argument = nullptr;
ACE_NEW_RETURN (argument,
be_argument (AST_Argument::dir_IN,
exception_holder,
@@ -396,7 +396,7 @@ be_visitor_amh_pre_proc::add_exception_reply (be_operation *node,
node_excep->set_defined_in (response_handler);
- if (0 == response_handler->be_add_operation (node_excep))
+ if (nullptr == response_handler->be_add_operation (node_excep))
{
return -1;
}
@@ -408,8 +408,8 @@ int
be_visitor_amh_pre_proc::add_normal_reply (be_operation *node,
be_interface *response_handler)
{
- Identifier *id = 0;
- UTL_ScopedName *sn = 0;
+ Identifier *id = nullptr;
+ UTL_ScopedName *sn = nullptr;
ACE_CString original_op_name (
node->name ()->last_component ()->get_string ()
@@ -424,13 +424,13 @@ be_visitor_amh_pre_proc::add_normal_reply (be_operation *node,
ACE_NEW_RETURN (sn,
UTL_ScopedName (id,
- 0),
+ nullptr),
-1);
op_name->nconc (sn);
// Create the operation
- be_operation *operation = 0;
+ be_operation *operation = nullptr;
ACE_NEW_RETURN (operation,
be_operation (be_global->void_type (),
AST_Operation::OP_noflags,
@@ -445,18 +445,18 @@ be_visitor_amh_pre_proc::add_normal_reply (be_operation *node,
if (!node->void_return_type ())
{
- Identifier *arg_id = 0;
+ Identifier *arg_id = nullptr;
ACE_NEW_RETURN (arg_id,
Identifier ("return_value"),
-1);
- UTL_ScopedName *arg_name = 0;
+ UTL_ScopedName *arg_name = nullptr;
ACE_NEW_RETURN (arg_name,
- UTL_ScopedName (arg_id, 0),
+ UTL_ScopedName (arg_id, nullptr),
-1);
// Create the argument
- be_argument *arg = 0;
+ be_argument *arg = nullptr;
ACE_NEW_RETURN (arg,
be_argument (AST_Argument::dir_IN,
node->return_type (),
@@ -481,7 +481,7 @@ be_visitor_amh_pre_proc::add_normal_reply (be_operation *node,
{
operation->destroy ();
delete operation;
- operation = 0;
+ operation = nullptr;
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_amh_pre_proc::")
@@ -491,14 +491,14 @@ be_visitor_amh_pre_proc::add_normal_reply (be_operation *node,
}
- //be_decl *arg = be_decl::narrow_from_decl (d);
- AST_Argument *original_arg = AST_Argument::narrow_from_decl (d);
+ //be_decl *arg = dynamic_cast<be_decl*> (d);
+ AST_Argument *original_arg = dynamic_cast<AST_Argument*> (d);
if (original_arg->direction () == AST_Argument::dir_INOUT ||
original_arg->direction () == AST_Argument::dir_OUT)
{
// Create the argument
- be_argument *arg = 0;
+ be_argument *arg = nullptr;
ACE_NEW_RETURN (arg,
be_argument (AST_Argument::dir_IN,
original_arg->field_type (),
@@ -516,7 +516,7 @@ be_visitor_amh_pre_proc::add_normal_reply (be_operation *node,
// After having generated the operation we insert it into the
// response handler interface.
- if (0 == response_handler->be_add_operation (operation))
+ if (nullptr == response_handler->be_add_operation (operation))
{
return -1;
}
@@ -548,7 +548,7 @@ be_visitor_amh_pre_proc::create_exception_holder (be_interface *node)
idl_global->valuefactory_seen_ = true;
const int inherit_count = 0;
- AST_Type **p_intf = 0;
+ AST_Type **p_intf = nullptr;
UTL_ScopedName *excep_holder_name =
node->compute_name ("AMH_",
@@ -557,21 +557,21 @@ be_visitor_amh_pre_proc::create_exception_holder (be_interface *node)
UTL_Scope *s = node->defined_in ();
idl_global->scopes ().push (s);
- be_valuetype *excep_holder = 0;
+ be_valuetype *excep_holder = nullptr;
ACE_NEW_RETURN (excep_holder,
be_valuetype (excep_holder_name,
p_intf,
inherit_count,
+ nullptr,
+ nullptr,
0,
+ nullptr,
0,
- 0,
- 0,
- 0,
- 0,
+ nullptr,
0,
0,
0),
- 0);
+ nullptr);
idl_global->scopes ().pop ();
@@ -582,7 +582,7 @@ be_visitor_amh_pre_proc::create_exception_holder (be_interface *node)
// and set the prefix to the node's prefix. All this is
// necessary in case the node's prefix was modified after
// its declaration.
- excep_holder->AST_Decl::repoID (0);
+ excep_holder->AST_Decl::repoID (nullptr);
excep_holder->prefix (const_cast<char*> (node->prefix ()));
excep_holder->gen_fwd_helper_name ();
@@ -597,7 +597,7 @@ be_visitor_amh_pre_proc::create_exception_holder (be_interface *node)
{
AST_Decl *d = si.item ();
- if (d == 0)
+ if (d == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_amh_pre_proc::"
@@ -606,16 +606,16 @@ be_visitor_amh_pre_proc::create_exception_holder (be_interface *node)
0);
}
- be_decl *op = be_decl::narrow_from_decl (d);
+ be_decl *op = dynamic_cast<be_decl*> (d);
AST_Decl::NodeType nt = d->node_type ();
if (nt == AST_Decl::NT_attr)
{
- AST_Attribute *attribute = AST_Attribute::narrow_from_decl (d);
+ AST_Attribute *attribute = dynamic_cast<AST_Attribute*> (d);
- if (attribute == 0)
+ if (attribute == nullptr)
{
- return 0;
+ return nullptr;
}
this->create_raise_operation (op,
@@ -651,13 +651,13 @@ be_visitor_amh_pre_proc::create_raise_operation (
Operation_Kind operation_kind
)
{
- Identifier *id = 0;
- UTL_ScopedName *sn = 0;
- be_operation *orig_op = 0;
+ Identifier *id = nullptr;
+ UTL_ScopedName *sn = nullptr;
+ be_operation *orig_op = nullptr;
if (operation_kind == NORMAL)
{
- orig_op = be_operation::narrow_from_decl (node);
+ orig_op = dynamic_cast<be_operation*> (node);
}
// Name the operation properly
@@ -683,12 +683,12 @@ be_visitor_amh_pre_proc::create_raise_operation (
ACE_NEW_RETURN (sn,
UTL_ScopedName (id,
- 0),
+ nullptr),
-1);
op_name->nconc (sn);
- be_operation *operation = 0;
+ be_operation *operation = nullptr;
ACE_NEW_RETURN (operation,
be_operation (be_global->void_type (),
AST_Operation::OP_noflags,
@@ -707,7 +707,7 @@ be_visitor_amh_pre_proc::create_raise_operation (
// Copy the exceptions.
UTL_ExceptList *exceptions = orig_op->exceptions ();
- if (0 != exceptions)
+ if (nullptr != exceptions)
{
operation->be_add_exceptions (exceptions->copy ());
}
@@ -716,7 +716,7 @@ be_visitor_amh_pre_proc::create_raise_operation (
// After having generated the operation we insert it into the
// exceptionholder valuetype.
- if (0 == excep_holder->be_add_operation (operation))
+ if (nullptr == excep_holder->be_add_operation (operation))
{
return -1;
}
@@ -751,14 +751,14 @@ be_visitor_amh_pre_proc::generate_get_operation (be_attribute *node)
static_cast<UTL_ScopedName *> (node->name ()-> copy ());
get_name->last_component ()->replace_string (new_op_name.c_str ());
- be_operation *operation = 0;
+ be_operation *operation = nullptr;
ACE_NEW_RETURN (operation,
be_operation (node->field_type (),
AST_Operation::OP_noflags,
get_name,
1,
0),
- 0);
+ nullptr);
operation->set_name (get_name);
operation->set_defined_in (node->defined_in ());
@@ -779,24 +779,24 @@ be_visitor_amh_pre_proc::generate_set_operation (be_attribute *node)
set_op_name->last_component ()->replace_string (new_op_name.c_str ());
// argument type is the same as the attribute type
- be_argument *arg = 0;
+ be_argument *arg = nullptr;
ACE_NEW_RETURN (arg,
be_argument (AST_Argument::dir_IN,
node->field_type (),
set_op_name),
- 0);
+ nullptr);
arg->set_name (dynamic_cast<UTL_ScopedName *> (node->name ()->copy ()));
// create the operation
- be_operation *operation = 0;
+ be_operation *operation = nullptr;
ACE_NEW_RETURN (operation,
be_operation (be_global->void_type (),
AST_Operation::OP_noflags,
set_op_name,
0,
0),
- 0);
+ nullptr);
operation->set_name (set_op_name);
operation->set_defined_in (node->defined_in ());
diff --git a/TAO/TAO_IDL/be/be_visitor_ami_pre_proc.cpp b/TAO/TAO_IDL/be/be_visitor_ami_pre_proc.cpp
index d9b13eba963..cc0145cd2e8 100644
--- a/TAO/TAO_IDL/be/be_visitor_ami_pre_proc.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_ami_pre_proc.cpp
@@ -40,7 +40,7 @@ be_visitor_ami_pre_proc::be_visitor_ami_pre_proc (be_visitor_context *ctx)
{
}
-be_visitor_ami_pre_proc::~be_visitor_ami_pre_proc (void)
+be_visitor_ami_pre_proc::~be_visitor_ami_pre_proc ()
{
}
@@ -122,7 +122,7 @@ be_visitor_ami_pre_proc::visit_interface (be_interface *node)
AST_Decl *first_stored =
node->defined_in ()->lookup_by_name_local (node_lname, false);
- if (0 != first_stored && first_stored->node_type () == AST_Decl::NT_home)
+ if (nullptr != first_stored && first_stored->node_type () == AST_Decl::NT_home)
{
return 0;
}
@@ -137,14 +137,14 @@ be_visitor_ami_pre_proc::visit_interface (be_interface *node)
AST_Decl *d = s->lookup_by_name_local (&local_id, false);
local_id.destroy ();
- if (0 != d)
+ if (nullptr != d)
{
return 0;
}
}
AST_Module *module =
- AST_Module::narrow_from_scope (node->defined_in ());
+ dynamic_cast<AST_Module*> (node->defined_in ());
if (!module)
{
@@ -203,7 +203,7 @@ be_visitor_ami_pre_proc::visit_operation (be_operation *node)
}
be_interface *parent =
- be_interface::narrow_from_scope (node->defined_in ());
+ dynamic_cast<be_interface*> (node->defined_in ());
// If we're here, we're sure that the arg traits specialization
// for this will be needed.
@@ -231,7 +231,7 @@ be_visitor_ami_pre_proc::visit_attribute (be_attribute *node)
set_operation->destroy ();
delete set_operation;
- set_operation = 0;
+ set_operation = nullptr;
}
/// Temporarily generate the get operation.
@@ -243,7 +243,7 @@ be_visitor_ami_pre_proc::visit_attribute (be_attribute *node)
get_operation->destroy ();
delete get_operation;
- get_operation = 0;
+ get_operation = nullptr;
return 0;
}
@@ -275,7 +275,7 @@ be_visitor_ami_pre_proc::create_reply_handler (be_interface *node)
AST_Type **p_intf =
this->create_inheritance_list (node, n_parents);
- if (p_intf == 0)
+ if (p_intf == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_ami_pre_proc::visit_interface - "
@@ -283,16 +283,16 @@ be_visitor_ami_pre_proc::create_reply_handler (be_interface *node)
0);
}
- be_interface *reply_handler = 0;
+ be_interface *reply_handler = nullptr;
ACE_NEW_RETURN (reply_handler,
be_interface (reply_handler_name, // name
p_intf, // list of inherited
n_parents, // number of inherited
- 0, // list of all ancestors
+ nullptr, // list of all ancestors
0, // number of ancestors
0, // non-local
0), // non-abstract
- 0);
+ nullptr);
// Back to reality.
idl_global->scopes ().pop ();
@@ -307,7 +307,7 @@ be_visitor_ami_pre_proc::create_reply_handler (be_interface *node)
// and set the prefix to the node's prefix. All this is
// necessary in case the node's prefix was modified after
// its declaration.
- reply_handler->AST_Decl::repoID (0);
+ reply_handler->AST_Decl::repoID (nullptr);
reply_handler->prefix (const_cast<char*> (node->prefix ()));
reply_handler->gen_fwd_helper_name ();
@@ -340,7 +340,7 @@ be_visitor_ami_pre_proc::create_reply_handler (be_interface *node)
if (d->node_type () == AST_Decl::NT_attr)
{
- be_attribute *attribute = be_attribute::narrow_from_decl (d);
+ be_attribute *attribute = dynamic_cast<be_attribute*> (d);
if (attribute)
{
@@ -355,7 +355,7 @@ be_visitor_ami_pre_proc::create_reply_handler (be_interface *node)
get_operation->destroy ();
delete get_operation;
- get_operation = 0;
+ get_operation = nullptr;
if (!attribute->readonly ())
{
@@ -370,13 +370,13 @@ be_visitor_ami_pre_proc::create_reply_handler (be_interface *node)
set_operation->destroy ();
delete set_operation;
- set_operation = 0;
+ set_operation = nullptr;
}
}
}
else
{
- be_operation* operation = be_operation::narrow_from_decl (d);
+ be_operation* operation = dynamic_cast<be_operation*> (d);
if (operation)
{
@@ -402,11 +402,11 @@ be_visitor_ami_pre_proc::create_sendc_operation (be_operation *node)
if (node->flags () == AST_Operation::OP_oneway)
{
// We do nothing for oneways!
- return 0;
+ return nullptr;
}
- Identifier *id = 0;
- UTL_ScopedName *sn = 0;
+ Identifier *id = nullptr;
+ UTL_ScopedName *sn = nullptr;
// Create the new name
// Prepend "sendc_" to the name of the operation
@@ -422,14 +422,14 @@ be_visitor_ami_pre_proc::create_sendc_operation (be_operation *node)
idl_global->scopes ().push (node->defined_in ());
// Create the operation
- be_operation *op = 0;
+ be_operation *op = nullptr;
ACE_NEW_RETURN (op,
be_operation (be_global->void_type (),
AST_Operation::OP_noflags,
op_name,
false,
false),
- 0);
+ nullptr);
idl_global->scopes ().pop ();
@@ -439,7 +439,7 @@ be_visitor_ami_pre_proc::create_sendc_operation (be_operation *node)
// Look up the field type.
UTL_Scope *s = node->defined_in ();
- be_interface *parent = be_interface::narrow_from_scope (s);
+ be_interface *parent = dynamic_cast<be_interface*> (s);
// Add the pre- and suffix
ACE_CString handler_local_name;
@@ -452,11 +452,11 @@ be_visitor_ami_pre_proc::create_sendc_operation (be_operation *node)
AST_Interface *handler = parent->ami_handler ();
- if (0 == handler)
+ if (nullptr == handler)
{
op->destroy ();
delete op;
- op = 0;
+ op = nullptr;
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_ami_pre_proc::")
@@ -467,28 +467,28 @@ be_visitor_ami_pre_proc::create_sendc_operation (be_operation *node)
}
be_interface *field_type =
- be_interface::narrow_from_decl (handler);
+ dynamic_cast<be_interface*> (handler);
ACE_NEW_RETURN (id,
Identifier ("ami_handler"),
- 0);
+ nullptr);
- UTL_ScopedName *tmp = 0;
+ UTL_ScopedName *tmp = nullptr;
ACE_NEW_RETURN (tmp,
UTL_ScopedName (id,
- 0),
- 0);
+ nullptr),
+ nullptr);
sn = (UTL_ScopedName *)op->name ()->copy ();
sn->nconc (tmp);
- be_argument *arg = 0;
+ be_argument *arg = nullptr;
ACE_NEW_RETURN (arg,
be_argument (AST_Argument::dir_IN,
field_type, // is also a valuetype
sn),
- 0);
+ nullptr);
arg->set_defined_in (op);
arg->set_name (sn);
@@ -522,20 +522,20 @@ be_visitor_ami_pre_proc::create_sendc_operation (be_operation *node)
}
- AST_Argument *original_arg = AST_Argument::narrow_from_decl (d);
+ AST_Argument *original_arg = dynamic_cast<AST_Argument*> (d);
if (original_arg->direction () == AST_Argument::dir_IN ||
original_arg->direction () == AST_Argument::dir_INOUT)
{
// Create the argument.
- be_argument *arg = 0;
+ be_argument *arg = nullptr;
UTL_ScopedName *new_name =
(UTL_ScopedName *)original_arg->name ()->copy ();
ACE_NEW_RETURN (arg,
be_argument (AST_Argument::dir_IN,
original_arg->field_type (),
new_name),
- 0);
+ nullptr);
arg->set_defined_in (op);
arg->set_name (new_name);
@@ -565,8 +565,8 @@ be_visitor_ami_pre_proc::create_reply_handler_operation (
return 0;
}
- Identifier *id = 0;
- UTL_ScopedName *sn = 0;
+ Identifier *id = nullptr;
+ UTL_ScopedName *sn = nullptr;
ACE_CString original_op_name (
node->name ()->last_component ()->get_string ()
@@ -581,13 +581,13 @@ be_visitor_ami_pre_proc::create_reply_handler_operation (
ACE_NEW_RETURN (sn,
UTL_ScopedName (id,
- 0),
+ nullptr),
-1);
op_name->nconc (sn);
// Create the operation.
- be_operation *operation = 0;
+ be_operation *operation = nullptr;
ACE_NEW_RETURN (operation,
be_operation (be_global->void_type (),
AST_Operation::OP_noflags,
@@ -606,18 +606,18 @@ be_visitor_ami_pre_proc::create_reply_handler_operation (
Identifier ("ami_return_val"),
-1);
- UTL_ScopedName *tmp = 0;
+ UTL_ScopedName *tmp = nullptr;
ACE_NEW_RETURN (tmp,
UTL_ScopedName (id,
- 0),
+ nullptr),
-1);
sn = (UTL_ScopedName *)operation->name ()->copy ();
sn->nconc (tmp);
// Create the argument.
- be_argument *arg = 0;
+ be_argument *arg = nullptr;
ACE_NEW_RETURN (arg,
be_argument (AST_Argument::dir_IN,
node->return_type (),
@@ -642,11 +642,11 @@ be_visitor_ami_pre_proc::create_reply_handler_operation (
{
AST_Decl *d = si.item ();
- if (d == 0)
+ if (d == nullptr)
{
operation->destroy ();
delete operation;
- operation = 0;
+ operation = nullptr;
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_ami_pre_proc::")
@@ -656,13 +656,13 @@ be_visitor_ami_pre_proc::create_reply_handler_operation (
}
- AST_Argument *original_arg = AST_Argument::narrow_from_decl (d);
+ AST_Argument *original_arg = dynamic_cast<AST_Argument*> (d);
if (original_arg->direction () == AST_Argument::dir_INOUT ||
original_arg->direction () == AST_Argument::dir_OUT)
{
// Create the argument.
- be_argument *arg = 0;
+ be_argument *arg = nullptr;
UTL_ScopedName *new_name =
(UTL_ScopedName *)original_arg->name ()->copy ();
ACE_NEW_RETURN (arg,
@@ -685,7 +685,7 @@ be_visitor_ami_pre_proc::create_reply_handler_operation (
{
UTL_ExceptList *exceptions = node->exceptions ();
- if (0 != exceptions)
+ if (nullptr != exceptions)
{
operation->be_add_exceptions (exceptions->copy ());
}
@@ -693,7 +693,7 @@ be_visitor_ami_pre_proc::create_reply_handler_operation (
// After having generated the operation we insert it into the
// reply handler interface.
- if (0 == reply_handler->be_add_operation (operation))
+ if (nullptr == reply_handler->be_add_operation (operation))
{
return -1;
}
@@ -713,8 +713,8 @@ be_visitor_ami_pre_proc::create_excep_operation (be_operation *node,
}
// Create the return type, which is "void".
- Identifier *id = 0;
- UTL_ScopedName *sn = 0;
+ Identifier *id = nullptr;
+ UTL_ScopedName *sn = nullptr;
// Create the argument.
ACE_NEW_RETURN (id,
@@ -723,11 +723,11 @@ be_visitor_ami_pre_proc::create_excep_operation (be_operation *node,
ACE_NEW_RETURN (sn,
UTL_ScopedName (id,
- 0),
+ nullptr),
-1);
be_valuetype *excep_holder = be_global->messaging_exceptionholder ();
- be_argument *arg = 0;
+ be_argument *arg = nullptr;
ACE_NEW_RETURN (arg,
be_argument (AST_Argument::dir_IN,
excep_holder, // is also a valuetype
@@ -754,7 +754,7 @@ be_visitor_ami_pre_proc::create_excep_operation (be_operation *node,
ACE_NEW_RETURN (sn,
UTL_ScopedName (id,
- 0),
+ nullptr),
-1);
op_name->nconc (sn);
@@ -762,7 +762,7 @@ be_visitor_ami_pre_proc::create_excep_operation (be_operation *node,
AST_PredefinedType *rt = be_global->void_type ();
// Create the operation.
- be_operation *operation = 0;
+ be_operation *operation = nullptr;
ACE_NEW_RETURN (operation,
be_operation (rt,
AST_Operation::OP_noflags,
@@ -785,7 +785,7 @@ be_visitor_ami_pre_proc::create_excep_operation (be_operation *node,
// be needed when collocation is disabled.
UTL_ExceptList *exceptions = node->exceptions ();
- if (0 != exceptions)
+ if (nullptr != exceptions)
{
operation->be_add_exceptions (exceptions->copy ());
}
@@ -815,7 +815,7 @@ be_visitor_ami_pre_proc::visit_scope (be_scope *node)
}
}
- AST_Decl **elements = 0;
+ AST_Decl **elements = nullptr;
ACE_NEW_RETURN (elements,
AST_Decl *[number_of_elements],
-1);
@@ -842,7 +842,7 @@ be_visitor_ami_pre_proc::visit_scope (be_scope *node)
if (!d)
{
delete [] elements;
- elements = 0;
+ elements = nullptr;
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_scope::visit_scope - "
"bad node in this scope\n"),
@@ -855,7 +855,7 @@ be_visitor_ami_pre_proc::visit_scope (be_scope *node)
continue;
}
- be_decl *bd = be_decl::narrow_from_decl (d);
+ be_decl *bd = dynamic_cast<be_decl*> (d);
// Set the scope node as "node" in which the code is being
// generated so that elements in the node's scope can use it
@@ -866,10 +866,10 @@ be_visitor_ami_pre_proc::visit_scope (be_scope *node)
this->ctx_->node (bd);
// Send the visitor.
- if (bd == 0 || bd->accept (this) == -1)
+ if (bd == nullptr || bd->accept (this) == -1)
{
delete [] elements;
- elements = 0;
+ elements = nullptr;
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_scope::visit_scope - "
"codegen for scope failed\n"),
@@ -878,7 +878,7 @@ be_visitor_ami_pre_proc::visit_scope (be_scope *node)
} // end of while loop
delete [] elements;
- elements = 0;
+ elements = nullptr;
} // end of if
return 0;
@@ -910,14 +910,14 @@ be_visitor_ami_pre_proc::generate_get_operation (be_attribute *node)
static_cast<UTL_ScopedName *> (node->name ()->copy ());
get_name->last_component ()->replace_string (new_op_name.c_str ());
- be_operation *operation = 0;
+ be_operation *operation = nullptr;
ACE_NEW_RETURN (operation,
be_operation (node->field_type (),
AST_Operation::OP_noflags,
get_name,
false,
false),
- 0);
+ nullptr);
operation->set_name (get_name);
operation->set_defined_in (node->defined_in ());
@@ -926,7 +926,7 @@ be_visitor_ami_pre_proc::generate_get_operation (be_attribute *node)
// be needed when collocation is disabled.
UTL_ExceptList *exceptions = node->get_get_exceptions ();
- if (0 != exceptions)
+ if (nullptr != exceptions)
{
operation->be_add_exceptions (exceptions->copy ());
}
@@ -948,24 +948,24 @@ be_visitor_ami_pre_proc::generate_set_operation (be_attribute *node)
set_name->last_component ()->replace_string (new_op_name.c_str ());
// Argument type is the same as the attribute type.
- be_argument *arg = 0;
+ be_argument *arg = nullptr;
ACE_NEW_RETURN (arg,
be_argument (AST_Argument::dir_IN,
node->field_type (),
set_name),
- 0);
+ nullptr);
arg->set_name ((UTL_ScopedName *) node->name ()->copy ());
// Create the operation.
- be_operation *operation = 0;
+ be_operation *operation = nullptr;
ACE_NEW_RETURN (operation,
be_operation (be_global->void_type (),
AST_Operation::OP_noflags,
set_name,
false,
false),
- 0);
+ nullptr);
operation->set_name (set_name);
operation->set_defined_in (node->defined_in ());
@@ -975,7 +975,7 @@ be_visitor_ami_pre_proc::generate_set_operation (be_attribute *node)
// be needed when collocation is disabled.
UTL_ExceptList *exceptions = node->get_set_exceptions ();
- if (0 != exceptions)
+ if (nullptr != exceptions)
{
operation->be_add_exceptions (exceptions->copy ());
}
@@ -988,11 +988,11 @@ AST_Type **
be_visitor_ami_pre_proc::create_inheritance_list (be_interface *node,
long &n_rh_parents)
{
- AST_Type **retval = 0;
+ AST_Type **retval = nullptr;
long const n_parents = node->n_inherits ();
AST_Type **parents = node->inherits ();
- AST_Type *parent = 0;
+ AST_Type *parent = nullptr;
for (long i = 0; i < n_parents; ++i)
{
@@ -1012,7 +1012,7 @@ be_visitor_ami_pre_proc::create_inheritance_list (be_interface *node,
ACE_NEW_RETURN (retval,
AST_Type *[1],
- 0);
+ nullptr);
retval[0] = inherit_intf;
n_rh_parents = 1;
@@ -1021,7 +1021,7 @@ be_visitor_ami_pre_proc::create_inheritance_list (be_interface *node,
{
ACE_NEW_RETURN (retval,
AST_Type *[n_rh_parents],
- 0);
+ nullptr);
ACE_CString prefix ("AMI_");
@@ -1051,9 +1051,9 @@ be_visitor_ami_pre_proc::create_inheritance_list (be_interface *node,
node->defined_in ()->lookup_by_name (rh_parent_name,
true);
- if (d != 0)
+ if (d != nullptr)
{
- retval[index] = AST_Interface::narrow_from_decl (d);
+ retval[index] = dynamic_cast<AST_Interface*> (d);
retval[index++]->set_prefix_with_typeprefix (parent->prefix () ?
const_cast<char*> (parent->prefix()) :
const_cast<char*> (""));
@@ -1061,7 +1061,7 @@ be_visitor_ami_pre_proc::create_inheritance_list (be_interface *node,
rh_parent_name->destroy ();
delete rh_parent_name;
- rh_parent_name = 0;
+ rh_parent_name = nullptr;
}
// Just a sanity check until we're sure this works in all use cases.
@@ -1078,7 +1078,7 @@ be_visitor_ami_pre_proc::create_inheritance_list (be_interface *node,
}
int
-be_visitor_ami_pre_proc::generate_ami4ccm_idl (void)
+be_visitor_ami_pre_proc::generate_ami4ccm_idl ()
{
/// The interfaces in the list below are from this IDL file,
/// which then must be processed with the -GC option, so we
@@ -1115,7 +1115,7 @@ be_visitor_ami_pre_proc::generate_ami4ccm_idl (void)
! i.done ();
i.advance ())
{
- char **item = 0;
+ char **item = nullptr;
i.next (item);
UTL_ScopedName *sn =
@@ -1126,25 +1126,25 @@ be_visitor_ami_pre_proc::generate_ami4ccm_idl (void)
AST_Decl *d = s->lookup_by_name (sn, true);
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error (sn);
sn->destroy ();
delete sn;
- sn = 0;
+ sn = nullptr;
continue;
}
sn->destroy ();
delete sn;
- sn = 0;
+ sn = nullptr;
be_interface *iface =
- be_interface::narrow_from_decl (d);
+ dynamic_cast<be_interface*> (d);
- if (iface == 0)
+ if (iface == nullptr)
{
idl_global->err ()->interface_expected (d);
continue;
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 9a16e7d7ced..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
@@ -29,7 +29,7 @@ be_visitor_any_extracted_type_decl::be_visitor_any_extracted_type_decl (
}
be_visitor_any_extracted_type_decl::~be_visitor_any_extracted_type_decl (
- void)
+ )
{
}
@@ -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;
}
@@ -157,7 +157,7 @@ be_visitor_any_extracted_type_decl::visit_sequence (be_sequence *node)
{
be_type *bt = this->ctx_->alias ();
- if (bt == 0)
+ if (bt == nullptr)
{
bt = node;
}
@@ -203,7 +203,7 @@ be_visitor_any_extracted_type_decl::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (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 c8de4b12d65..c759000c029 100644
--- a/TAO/TAO_IDL/be/be_visitor_arg_traits.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_arg_traits.cpp
@@ -51,7 +51,7 @@ be_visitor_arg_traits::be_visitor_arg_traits (const char *S,
{
}
-be_visitor_arg_traits::~be_visitor_arg_traits (void)
+be_visitor_arg_traits::~be_visitor_arg_traits ()
{
delete [] this->S_;
}
@@ -209,7 +209,7 @@ be_visitor_arg_traits::visit_interface_fwd (be_interface_fwd *node)
}
be_interface *fd =
- be_interface::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_interface*> (node->full_definition ());
// The logic in visit_interface() should handle what gets generated
// and what doesn't.
@@ -368,7 +368,7 @@ be_visitor_arg_traits::visit_valuetype_fwd (be_valuetype_fwd *node)
}
be_valuetype *fd =
- be_valuetype::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_valuetype*> (node->full_definition ());
// The logic in visit_valuetype() should handle what gets generated
// and what doesn't.
@@ -418,7 +418,7 @@ be_visitor_arg_traits::visit_operation (be_operation *node)
// Arg_Traits<> template parameter.
if (nt == AST_Decl::NT_string || nt == AST_Decl::NT_wstring)
{
- AST_String *str = AST_String::narrow_from_decl (rt);
+ AST_String *str = dynamic_cast<AST_String*> (rt);
ACE_CDR::ULong bound = str->max_size ()->ev ()->u.ulval;
if (bound > 0)
@@ -484,14 +484,14 @@ be_visitor_arg_traits::visit_operation (be_operation *node)
int
be_visitor_arg_traits::visit_attribute (be_attribute *node)
{
- if (this->ctx_->alias () != 0 || this->generated (node))
+ if (this->ctx_->alias () != nullptr || this->generated (node))
{
return 0;
}
- AST_String *st = AST_String::narrow_from_decl (node->field_type ());
+ AST_String *st = dynamic_cast<AST_String*> (node->field_type ());
- if (st == 0)
+ if (st == nullptr)
{
return 0;
}
@@ -559,7 +559,7 @@ be_visitor_arg_traits::visit_attribute (be_attribute *node)
int
be_visitor_arg_traits::visit_argument (be_argument *node)
{
- if (this->ctx_->alias () != 0 || this->generated (node))
+ if (this->ctx_->alias () != nullptr || this->generated (node))
{
return 0;
}
@@ -575,7 +575,7 @@ be_visitor_arg_traits::visit_argument (be_argument *node)
return 0;
}
- be_string *st = be_string::narrow_from_decl (bt);
+ be_string *st = dynamic_cast<be_string*> (bt);
ACE_CDR::ULong bound = st->max_size ()->ev ()->u.ulval;
if (bound == 0)
@@ -674,7 +674,7 @@ be_visitor_arg_traits::visit_sequence (be_sequence *node)
be_typedef *alias = this->ctx_->alias ();
/// No arg traits for anonymous sequences.
- if (alias == 0)
+ if (alias == nullptr)
{
return 0;
}
@@ -741,7 +741,7 @@ be_visitor_arg_traits::visit_string (be_string *node)
// since a bounded (w)string of the same length may be used or typedef'd
// more than once.
- if (alias == 0)
+ if (alias == nullptr)
{
os->gen_ifdef_macro (node->flat_name (), guard_suffix.c_str (), false);
}
@@ -758,14 +758,14 @@ be_visitor_arg_traits::visit_string (be_string *node)
}
size_t bound_length = num_digits + 1;
- char* bound_string = 0;
+ char* bound_string = nullptr;
ACE_NEW_RETURN (bound_string, char[bound_length], -1) ;
ACE_OS::sprintf (bound_string, ACE_UINT32_FORMAT_SPECIFIER_ASCII, bound);
size_t cat_length = ACE_OS::strlen (alias->local_name ()->get_string ()) +
ACE_OS::strlen (bound_string) +
1;
- char* cat_string = 0;
+ char* cat_string = nullptr;
ACE_NEW_RETURN (cat_string, char[cat_length], -1) ;
ACE_OS::strcpy (cat_string, alias->local_name ()->get_string ()) ;
ACE_OS::strcat (cat_string, bound_string);
@@ -785,7 +785,7 @@ be_visitor_arg_traits::visit_string (be_string *node)
*os << be_nl_2
<< "struct ";
- if (alias == 0)
+ if (alias == nullptr)
{
*os << node->flat_name ();
}
@@ -802,7 +802,7 @@ be_visitor_arg_traits::visit_string (be_string *node)
<< "class "
<< this->S_ << "Arg_Traits<";
- if (0 == alias)
+ if (nullptr == alias)
{
*os << node->flat_name ();
}
@@ -845,7 +845,7 @@ be_visitor_arg_traits::visit_array (be_array *node)
// Add the alias check here because anonymous arrays can't be
// operation arguments.
- if (this->generated (node) || this->ctx_->alias () == 0)
+ if (this->generated (node) || this->ctx_->alias () == nullptr)
{
return 0;
}
@@ -992,7 +992,7 @@ be_visitor_arg_traits::visit_structure (be_structure *node)
int
be_visitor_arg_traits::visit_field (be_field *node)
{
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -1106,7 +1106,7 @@ be_visitor_arg_traits::visit_union (be_union *node)
int
be_visitor_arg_traits::visit_union_branch (be_union_branch *node)
{
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -1172,7 +1172,7 @@ be_visitor_arg_traits::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -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;
}
}
@@ -1242,7 +1242,7 @@ be_visitor_arg_traits::generated (be_decl *node,
}
const char *
-be_visitor_arg_traits::insert_policy (void)
+be_visitor_arg_traits::insert_policy ()
{
if (be_global->any_support ())
{
diff --git a/TAO/TAO_IDL/be/be_visitor_argument/arglist.cpp b/TAO/TAO_IDL/be/be_visitor_argument/arglist.cpp
index da6cfa447e6..432928452bd 100644
--- a/TAO/TAO_IDL/be/be_visitor_argument/arglist.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_argument/arglist.cpp
@@ -22,7 +22,7 @@ be_visitor_args_arglist::be_visitor_args_arglist (be_visitor_context *ctx)
{
}
-be_visitor_args_arglist::~be_visitor_args_arglist (void)
+be_visitor_args_arglist::~be_visitor_args_arglist ()
{
}
@@ -32,7 +32,7 @@ int be_visitor_args_arglist::visit_argument (be_argument *node)
this->ctx_->node (node);
// Retrieve the type.
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -280,7 +280,7 @@ int be_visitor_args_arglist::visit_sequence (be_sequence *node)
// then 'type_name' below will output 'sequence'.
if (node->imported () && node->anonymous ())
{
- (void) node->create_name (0);
+ (void) node->create_name (nullptr);
}
TAO_OutStream *os = this->ctx_->stream ();
@@ -417,7 +417,7 @@ int be_visitor_args_arglist::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_argument/argument.cpp b/TAO/TAO_IDL/be/be_visitor_argument/argument.cpp
index f345289f030..5bad138dd40 100644
--- a/TAO/TAO_IDL/be/be_visitor_argument/argument.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_argument/argument.cpp
@@ -18,7 +18,7 @@ be_visitor_args::be_visitor_args (be_visitor_context *ctx)
{
}
-be_visitor_args::~be_visitor_args (void)
+be_visitor_args::~be_visitor_args ()
{
}
@@ -39,7 +39,7 @@ be_visitor_args::type_name (be_type *node,
'\0',
NAMEBUFSIZE);
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Use the typedefed name if that is the one
// used in the IDL defn.
@@ -67,7 +67,7 @@ be_visitor_args::type_name (be_type *node,
// Helper that returns the direction type of the argument
AST_Argument::Direction
-be_visitor_args::direction (void)
+be_visitor_args::direction ()
{
if (this->fixed_direction_ != -1)
{
@@ -77,7 +77,7 @@ be_visitor_args::direction (void)
// Grab the argument node. We know that our context has stored the right
// argument node.
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_argument*> (this->ctx_->node ());
return arg->direction ();
}
@@ -146,7 +146,7 @@ be_visitor_args::gen_pd_arg (be_predefined_type *node,
const char *to_from = to_from_str.c_str ();
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_argument*> (this->ctx_->node ());
const char *lname = arg->local_name ()->get_string ();
switch (pt)
diff --git a/TAO/TAO_IDL/be/be_visitor_argument/invoke_cs.cpp b/TAO/TAO_IDL/be/be_visitor_argument/invoke_cs.cpp
index 891adb52b07..bba3d3ed72e 100644
--- a/TAO/TAO_IDL/be/be_visitor_argument/invoke_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_argument/invoke_cs.cpp
@@ -22,7 +22,7 @@ be_visitor_args_invoke_cs (be_visitor_context *ctx)
}
be_visitor_args_invoke_cs::
-~be_visitor_args_invoke_cs (void)
+~be_visitor_args_invoke_cs ()
{
}
@@ -30,7 +30,7 @@ int be_visitor_args_invoke_cs::visit_argument (be_argument *node)
{
this->ctx_->node (node);
be_type *bt =
- be_type::narrow_from_decl (node->field_type ());
+ dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -128,7 +128,7 @@ int be_visitor_args_invoke_cs::visit_array (be_array *node)
{
TAO_OutStream *os = this->ctx_->stream ();
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_argument*> (this->ctx_->node ());
if (this->ctx_->sub_state () == TAO_CodeGen::TAO_CDR_OUTPUT)
{
@@ -175,7 +175,7 @@ int be_visitor_args_invoke_cs::visit_enum (be_enum *)
{
TAO_OutStream *os = this->ctx_->stream ();
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_argument*> (this->ctx_->node ());
if (this->ctx_->sub_state () == TAO_CodeGen::TAO_CDR_OUTPUT)
{
@@ -254,7 +254,7 @@ int be_visitor_args_invoke_cs::visit_sequence (be_sequence *)
{
TAO_OutStream *os = this->ctx_->stream ();
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_argument*> (this->ctx_->node ());
if (this->ctx_->sub_state () == TAO_CodeGen::TAO_CDR_OUTPUT)
{
@@ -298,7 +298,7 @@ int be_visitor_args_invoke_cs::visit_string (be_string *node)
{
TAO_OutStream *os = this->ctx_->stream ();
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_argument*> (this->ctx_->node ());
if (this->ctx_->sub_state () == TAO_CodeGen::TAO_CDR_OUTPUT)
{
@@ -402,7 +402,7 @@ int be_visitor_args_invoke_cs::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -447,11 +447,11 @@ be_visitor_args_invoke_cs::visit_home (
}
-int be_visitor_args_invoke_cs::emit_common (void)
+int be_visitor_args_invoke_cs::emit_common ()
{
TAO_OutStream *os = this->ctx_->stream ();
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_argument*> (this->ctx_->node ());
if (this->ctx_->sub_state () == TAO_CodeGen::TAO_CDR_OUTPUT)
{
@@ -495,7 +495,7 @@ int be_visitor_args_invoke_cs::emit_common2 (be_type *node)
{
TAO_OutStream *os = this->ctx_->stream ();
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_argument*> (this->ctx_->node ());
if (this->ctx_->sub_state () == TAO_CodeGen::TAO_CDR_OUTPUT)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_argument/marshal_ss.cpp b/TAO/TAO_IDL/be/be_visitor_argument/marshal_ss.cpp
index 2c2f2fd09e3..6b3f0e041bf 100644
--- a/TAO/TAO_IDL/be/be_visitor_argument/marshal_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_argument/marshal_ss.cpp
@@ -24,7 +24,7 @@ be_visitor_args_marshal_ss (be_visitor_context *ctx)
}
be_visitor_args_marshal_ss::
-~be_visitor_args_marshal_ss (void)
+~be_visitor_args_marshal_ss ()
{
}
@@ -32,7 +32,7 @@ int be_visitor_args_marshal_ss::visit_argument (
be_argument *node)
{
this->ctx_->node (node);
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -130,7 +130,7 @@ int be_visitor_args_marshal_ss::visit_array (be_array *)
{
TAO_OutStream *os = this->ctx_->stream ();
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_argument*> (this->ctx_->node ());
const char *lname = arg->local_name ()->get_string ();
if (this->ctx_->sub_state () == TAO_CodeGen::TAO_CDR_INPUT)
@@ -173,7 +173,7 @@ int be_visitor_args_marshal_ss::visit_enum (be_enum *)
{
TAO_OutStream *os = this->ctx_->stream ();
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_argument*> (this->ctx_->node ());
const char *lname = arg->local_name ()->get_string ();
if (this->ctx_->sub_state () == TAO_CodeGen::TAO_CDR_INPUT)
@@ -252,7 +252,7 @@ int be_visitor_args_marshal_ss::visit_sequence (be_sequence *)
{
TAO_OutStream *os = this->ctx_->stream ();
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_argument*> (this->ctx_->node ());
const char *lname = arg->local_name ()->get_string ();
if (this->ctx_->sub_state () == TAO_CodeGen::TAO_CDR_INPUT)
@@ -297,7 +297,7 @@ int be_visitor_args_marshal_ss::visit_string (be_string *node)
{
TAO_OutStream *os = this->ctx_->stream ();
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_argument*> (this->ctx_->node ());
const char *lname = arg->local_name ()->get_string ();
ACE_CDR::ULong bound = node->max_size ()->ev ()->u.ulval;
bool wide =
@@ -394,7 +394,7 @@ int be_visitor_args_marshal_ss::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -439,11 +439,11 @@ be_visitor_args_marshal_ss::visit_home (
}
int
-be_visitor_args_marshal_ss::emit_common (void)
+be_visitor_args_marshal_ss::emit_common ()
{
TAO_OutStream *os = this->ctx_->stream ();
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_argument*> (this->ctx_->node ());
const char *lname = arg->local_name ()->get_string ();
if (this->ctx_->sub_state () == TAO_CodeGen::TAO_CDR_INPUT)
@@ -488,7 +488,7 @@ be_visitor_args_marshal_ss::emit_common2 (be_type *node)
{
TAO_OutStream *os = this->ctx_->stream ();
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_argument*> (this->ctx_->node ());
const char *lname = arg->local_name ()->get_string ();
AST_Type::SIZE_TYPE st = node->size_type ();
diff --git a/TAO/TAO_IDL/be/be_visitor_argument/upcall_ss.cpp b/TAO/TAO_IDL/be/be_visitor_argument/upcall_ss.cpp
index deb129f256b..47685db6143 100644
--- a/TAO/TAO_IDL/be/be_visitor_argument/upcall_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_argument/upcall_ss.cpp
@@ -21,14 +21,14 @@ be_visitor_args_upcall_ss::be_visitor_args_upcall_ss (be_visitor_context *ctx)
{
}
-be_visitor_args_upcall_ss::~be_visitor_args_upcall_ss (void)
+be_visitor_args_upcall_ss::~be_visitor_args_upcall_ss ()
{
}
int be_visitor_args_upcall_ss::visit_argument (be_argument *node)
{
this->ctx_->node (node);
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -61,7 +61,7 @@ int be_visitor_args_upcall_ss::visit_array (be_array *node)
{
TAO_OutStream *os = this->ctx_->stream ();
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_argument*> (this->ctx_->node ());
switch (this->direction ())
{
@@ -108,7 +108,7 @@ int be_visitor_args_upcall_ss::visit_enum (be_enum *)
{
TAO_OutStream *os = this->ctx_->stream ();
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_argument*> (this->ctx_->node ());
switch (this->direction ())
{
@@ -158,7 +158,7 @@ int be_visitor_args_upcall_ss::visit_predefined_type (
{
TAO_OutStream *os = this->ctx_->stream ();
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_argument*> (this->ctx_->node ());
AST_PredefinedType::PredefinedType pt = node->pt ();
if (pt == AST_PredefinedType::PT_any)
@@ -248,7 +248,7 @@ int be_visitor_args_upcall_ss::visit_sequence (
{
TAO_OutStream *os = this->ctx_->stream ();
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_argument*> (this->ctx_->node ());
switch (this->direction ())
{
@@ -307,7 +307,7 @@ int be_visitor_args_upcall_ss::visit_typedef (
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -343,11 +343,11 @@ be_visitor_args_upcall_ss::visit_eventtype_fwd (
return this->visit_valuetype_fwd (node);
}
-int be_visitor_args_upcall_ss::emit_common (void)
+int be_visitor_args_upcall_ss::emit_common ()
{
TAO_OutStream *os = this->ctx_->stream ();
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_argument*> (this->ctx_->node ());
switch (this->direction ())
{
@@ -397,7 +397,7 @@ int be_visitor_args_upcall_ss::emit_common2 (
{
TAO_OutStream *os = this->ctx_->stream ();
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_argument*> (this->ctx_->node ());
switch (this->direction ())
{
diff --git a/TAO/TAO_IDL/be/be_visitor_argument/vardecl_ss.cpp b/TAO/TAO_IDL/be/be_visitor_argument/vardecl_ss.cpp
index 0bf36459e38..f8505ad354a 100644
--- a/TAO/TAO_IDL/be/be_visitor_argument/vardecl_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_argument/vardecl_ss.cpp
@@ -23,7 +23,7 @@ be_visitor_args_vardecl_ss::be_visitor_args_vardecl_ss (
{
}
-be_visitor_args_vardecl_ss::~be_visitor_args_vardecl_ss (void)
+be_visitor_args_vardecl_ss::~be_visitor_args_vardecl_ss ()
{
}
@@ -31,7 +31,7 @@ int be_visitor_args_vardecl_ss::visit_argument (
be_argument *node)
{
this->ctx_->node (node);
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -65,8 +65,8 @@ int be_visitor_args_vardecl_ss::visit_array (
{
TAO_OutStream *os = this->ctx_->stream ();
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
- be_type *bt = 0;
+ dynamic_cast<be_argument*> (this->ctx_->node ());
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -113,8 +113,8 @@ int be_visitor_args_vardecl_ss::visit_enum (be_enum *node)
{
TAO_OutStream *os = this->ctx_->stream ();
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
- be_type *bt = 0;
+ dynamic_cast<be_argument*> (this->ctx_->node ());
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -175,8 +175,8 @@ int be_visitor_args_vardecl_ss::visit_predefined_type (
{
TAO_OutStream *os = this->ctx_->stream ();
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
- be_type *bt = 0;
+ dynamic_cast<be_argument*> (this->ctx_->node ());
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -260,8 +260,8 @@ int be_visitor_args_vardecl_ss::visit_sequence (
{
TAO_OutStream *os = this->ctx_->stream ();
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
- be_type *bt = 0;
+ dynamic_cast<be_argument*> (this->ctx_->node ());
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -295,7 +295,7 @@ int be_visitor_args_vardecl_ss::visit_string (
{
TAO_OutStream *os = this->ctx_->stream ();
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_argument*> (this->ctx_->node ());
switch (this->direction ())
{
@@ -358,7 +358,7 @@ int be_visitor_args_vardecl_ss::visit_typedef (
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -401,8 +401,8 @@ be_visitor_args_vardecl_ss::emit_common (
{
TAO_OutStream *os = this->ctx_->stream ();
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
- be_type *bt = 0;
+ dynamic_cast<be_argument*> (this->ctx_->node ());
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -438,8 +438,8 @@ be_visitor_args_vardecl_ss::emit_common2 (be_type *node)
{
TAO_OutStream *os = this->ctx_->stream ();
be_argument *arg =
- be_argument::narrow_from_decl (this->ctx_->node ());
- be_type *bt = 0;
+ dynamic_cast<be_argument*> (this->ctx_->node ());
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
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 602ab334825..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
@@ -18,7 +18,7 @@ be_visitor_array_any_op_ch::be_visitor_array_any_op_ch (
{
}
-be_visitor_array_any_op_ch::~be_visitor_array_any_op_ch (void)
+be_visitor_array_any_op_ch::~be_visitor_array_any_op_ch ()
{
}
@@ -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 163c65fc6e5..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
@@ -18,7 +18,7 @@ be_visitor_array_any_op_cs::be_visitor_array_any_op_cs (
{
}
-be_visitor_array_any_op_cs::~be_visitor_array_any_op_cs (void)
+be_visitor_array_any_op_cs::~be_visitor_array_any_op_cs ()
{
}
@@ -88,7 +88,7 @@ be_visitor_array_any_op_cs::visit_array (be_array *node)
<< be_idt << be_idt_nl
<< "_tao_any," << be_nl
<< node->name () << "_forany::_tao_any_destructor," << be_nl
- << (td != 0 ? td->tc_name () : node->tc_name ()) << "," << be_nl
+ << (td != nullptr ? td->tc_name () : node->tc_name ()) << "," << be_nl
<< "_tao_elem.nocopy ()" << be_idt_nl
<< "? _tao_elem.ptr ()" << be_nl
<< ": "
@@ -108,13 +108,13 @@ be_visitor_array_any_op_cs::visit_array (be_array *node)
<< ">::extract (" << be_idt << be_idt_nl
<< "_tao_any," << be_nl
<< node->name () << "_forany::_tao_any_destructor," << be_nl
- << (td != 0 ? td->tc_name () : node->tc_name ()) << "," << be_nl
+ << (td != nullptr ? td->tc_name () : node->tc_name ()) << "," << be_nl
<< "_tao_elem.out ()" << be_uidt_nl
<< ");" << be_uidt << be_uidt << be_uidt << be_uidt_nl
<< "}";
*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.cpp b/TAO/TAO_IDL/be/be_visitor_array/array.cpp
index 7bb40c6e001..a64f84367e1 100644
--- a/TAO/TAO_IDL/be/be_visitor_array/array.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_array/array.cpp
@@ -16,7 +16,7 @@ be_visitor_array::be_visitor_array (be_visitor_context *ctx)
{
}
-be_visitor_array::~be_visitor_array (void)
+be_visitor_array::~be_visitor_array ()
{
}
@@ -147,7 +147,7 @@ be_visitor_array::visit_typedef (be_typedef *node)
if (nt == AST_Decl::NT_pre_defined)
{
- AST_PredefinedType *pdt = AST_PredefinedType::narrow_from_decl (pbt);
+ AST_PredefinedType *pdt = dynamic_cast<AST_PredefinedType*> (pbt);
pt = pdt->pt ();
}
@@ -169,7 +169,7 @@ int
be_visitor_array::visit_node (be_type *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -196,7 +196,7 @@ int
be_visitor_array::emit_common (be_type *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
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 50e9e8facf1..bfcec987fbd 100644
--- a/TAO/TAO_IDL/be/be_visitor_array/array_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_array/array_ch.cpp
@@ -17,7 +17,7 @@ be_visitor_array_ch::be_visitor_array_ch (be_visitor_context *ctx)
{
}
-be_visitor_array_ch::~be_visitor_array_ch (void)
+be_visitor_array_ch::~be_visitor_array_ch ()
{
}
@@ -35,7 +35,7 @@ int be_visitor_array_ch::visit_array (be_array *node)
this->ctx_->node (node);
// Retrieve the type.
- be_type *bt = be_type::narrow_from_decl (node->base_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->base_type ());
if (!bt)
{
@@ -70,7 +70,7 @@ int be_visitor_array_ch::visit_array (be_array *node)
// If the array is an anonymous member and if its element type
// is a declaration (not a reference), we must generate code for
// the declaration.
- if (this->ctx_->alias () == 0 // Not a typedef.
+ if (this->ctx_->alias () == nullptr // Not a typedef.
&& bt->is_child (this->ctx_->scope ()->decl ()))
{
int status = 0;
@@ -126,7 +126,7 @@ int be_visitor_array_ch::visit_array (be_array *node)
be_typedef *td = this->ctx_->tdef ();
- if (td == 0)
+ if (td == nullptr)
{
// We are dealing with an anonymous array case. Generate a typedef with
// an _ prepended to the name.
@@ -165,7 +165,7 @@ int be_visitor_array_ch::visit_array (be_array *node)
'\0',
2);
- if (this->ctx_->tdef () != 0)
+ if (this->ctx_->tdef () != nullptr)
{
anon_p[0] = '\0';
}
@@ -193,7 +193,7 @@ int be_visitor_array_ch::visit_array (be_array *node)
<< " {};" << be_nl;
// No _var or _out class for an anonymous (non-typedef'd) array.
- if (td != 0)
+ if (td != nullptr)
{
// Generate _var class decl.
// An _out decl is generated only for a variable size array.
@@ -270,7 +270,7 @@ int be_visitor_array_ch::visit_array (be_array *node)
storage_class = storage_class + " ";
}
- if (td != 0)
+ if (td != nullptr)
{
// Typedefed array.
*os << storage_class.c_str() << node->nested_type_name (scope, "_slice")
@@ -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 11d7cccbaac..eafc05c4e2d 100644
--- a/TAO/TAO_IDL/be/be_visitor_array/array_ci.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_array/array_ci.cpp
@@ -16,7 +16,7 @@ be_visitor_array_ci::be_visitor_array_ci (be_visitor_context *ctx)
{
}
-be_visitor_array_ci::~be_visitor_array_ci (void)
+be_visitor_array_ci::~be_visitor_array_ci ()
{
}
@@ -31,7 +31,7 @@ int be_visitor_array_ci::visit_array (be_array *node)
this->ctx_->node (node); // save the array node
// If we contain an anonymous sequence, generate code for it here.
- be_type *bt = be_type::narrow_from_decl (node->base_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->base_type ());
if (!bt)
{
@@ -61,7 +61,7 @@ int be_visitor_array_ci::visit_array (be_array *node)
// If the array is an anonymous member and if its element type
// is a declaration (not a reference), we must generate code for
// the declaration.
- if (this->ctx_->alias () == 0 // Not a typedef.
+ if (this->ctx_->alias () == nullptr // Not a typedef.
&& bt->is_child (this->ctx_->scope ()->decl ()))
{
int status = 0;
@@ -121,7 +121,7 @@ int be_visitor_array_ci::visit_array (be_array *node)
if (node->is_nested ())
{
be_decl *parent =
- be_scope::narrow_from_scope (node->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (node->defined_in ())->decl ();
ACE_OS::sprintf (fname,
"%s::_%s",
parent->full_name (),
@@ -153,7 +153,7 @@ int be_visitor_array_ci::visit_array (be_array *node)
if (nt == AST_Decl::NT_typedef)
{
- be_typedef *td = be_typedef::narrow_from_decl (bt);
+ be_typedef *td = dynamic_cast<be_typedef*> (bt);
unique = td->primitive_base_type ()->flat_name ();
}
else
@@ -220,7 +220,7 @@ int be_visitor_array_ci::visit_array (be_array *node)
<< "{" << be_idt_nl;
ACE_CDR::ULong ndims = node->n_dims ();
- be_array *primitive_type = 0;
+ be_array *primitive_type = nullptr;
if (bt->node_type () == AST_Decl::NT_typedef)
{
@@ -234,11 +234,11 @@ int be_visitor_array_ci::visit_array (be_array *node)
while (tmp->node_type () == AST_Decl::NT_typedef)
{
- be_typedef *tdef = be_typedef::narrow_from_decl (tmp);
- tmp = be_type::narrow_from_decl (tdef->base_type ());
+ be_typedef *tdef = dynamic_cast<be_typedef*> (tmp);
+ tmp = dynamic_cast<be_type*> (tdef->base_type ());
}
- primitive_type = be_array::narrow_from_decl (tmp);
+ primitive_type = dynamic_cast<be_array*> (tmp);
}
*os << "// Zero each individual element." << be_nl;
@@ -249,7 +249,7 @@ int be_visitor_array_ci::visit_array (be_array *node)
// Retrieve the ith dimension value.
AST_Expression *expr = node->dims ()[i];
- if ((expr == 0) || ((expr != 0) && (expr->ev () == 0)))
+ if ((expr == nullptr) || ((expr != nullptr) && (expr->ev () == nullptr)))
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_array_cs::"
@@ -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 edfd9e18351..df353da2a53 100644
--- a/TAO/TAO_IDL/be/be_visitor_array/array_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_array/array_cs.cpp
@@ -16,7 +16,7 @@ be_visitor_array_cs::be_visitor_array_cs (be_visitor_context *ctx)
{
}
-be_visitor_array_cs::~be_visitor_array_cs (void)
+be_visitor_array_cs::~be_visitor_array_cs ()
{
}
@@ -33,7 +33,7 @@ int be_visitor_array_cs::visit_array (be_array *node)
this->ctx_->node (node);
// Retrieve the type.
- be_type *bt = be_type::narrow_from_decl (node->base_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->base_type ());
if (!bt)
{
@@ -70,7 +70,7 @@ int be_visitor_array_cs::visit_array (be_array *node)
if (node->is_nested ())
{
be_decl *parent =
- be_scope::narrow_from_scope (node->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (node->defined_in ())->decl ();
ACE_OS::sprintf (fname,
"%s::_%s",
parent->full_name (),
@@ -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, ";
@@ -164,7 +164,7 @@ int be_visitor_array_cs::visit_array (be_array *node)
// Retrieve the ith dimension value.
AST_Expression *expr = node->dims ()[i];
- if ((expr == 0) || ((expr != 0) && (expr->ev () == 0)))
+ if ((expr == nullptr) || ((expr != nullptr) && (expr->ev () == nullptr)))
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_array_cs::"
@@ -192,7 +192,7 @@ int be_visitor_array_cs::visit_array (be_array *node)
// Now generate code such that every element of the array gets assigned
// inside the innermost level of the nested loops generated above.
- be_array *primitive_type = 0;
+ be_array *primitive_type = nullptr;
if (bt->node_type () == AST_Decl::NT_typedef)
{
@@ -206,14 +206,14 @@ int be_visitor_array_cs::visit_array (be_array *node)
while (tmp->node_type () == AST_Decl::NT_typedef)
{
- be_typedef *tdef = be_typedef::narrow_from_decl (tmp);
- tmp = be_type::narrow_from_decl (tdef->base_type ());
+ be_typedef *tdef = dynamic_cast<be_typedef*> (tmp);
+ tmp = dynamic_cast<be_type*> (tdef->base_type ());
}
- primitive_type = be_array::narrow_from_decl (tmp);
+ primitive_type = dynamic_cast<be_array*> (tmp);
}
- if (primitive_type != 0)
+ if (primitive_type != nullptr)
{
// The base type is a typedef to another array type, so
// we use the base type's copy method.
@@ -297,7 +297,7 @@ int be_visitor_array_cs::visit_array (be_array *node)
// If the member's element type
// is a declaration (not a reference), we must generate code for
// the declaration.
- if (this->ctx_->alias () == 0 // Not a typedef.
+ if (this->ctx_->alias () == nullptr // Not a typedef.
&& bt->is_child (this->ctx_->scope ()->decl ()))
{
int status = 0;
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 e4f4bda808b..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
@@ -19,7 +19,7 @@ be_visitor_array_cdr_op_ch::be_visitor_array_cdr_op_ch (
{
}
-be_visitor_array_cdr_op_ch::~be_visitor_array_cdr_op_ch (void)
+be_visitor_array_cdr_op_ch::~be_visitor_array_cdr_op_ch ()
{
}
@@ -33,7 +33,7 @@ be_visitor_array_cdr_op_ch::visit_array (be_array *node)
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = be_type::narrow_from_decl (node->base_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->base_type ());
AST_Decl::NodeType nt = bt->node_type ();
// If the node is an array of anonymous sequence, we need to
@@ -55,7 +55,7 @@ be_visitor_array_cdr_op_ch::visit_array (be_array *node)
// If the array is an anonymous member and if its element type
// is a declaration (not a reference), we must generate code for
// the declaration.
- if (this->ctx_->alias () == 0 && // Not a typedef.
+ if (this->ctx_->alias () == nullptr && // Not a typedef.
bt->is_child (this->ctx_->scope ()->decl ()))
{
int status = 0;
@@ -100,12 +100,12 @@ be_visitor_array_cdr_op_ch::visit_array (be_array *node)
*os << be_global->core_versioning_begin () << be_nl;
- be_scope* scope = be_scope::narrow_from_scope (node->defined_in ());
+ be_scope* scope = dynamic_cast<be_scope*> (node->defined_in ());
be_decl* parent = scope->decl ();
be_typedef *td = this->ctx_->tdef ();
ACE_CString arg_name (ACE_CString (parent->full_name ())
+ "::"
- + (td == 0 ? "_" : "")
+ + (td == nullptr ? "_" : "")
+ node->local_name ()->get_string ()
+ "_forany &_tao_array");
@@ -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_array/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_array/cdr_op_cs.cpp
index 1f8d4590b74..160bf640597 100644
--- a/TAO/TAO_IDL/be/be_visitor_array/cdr_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_array/cdr_op_cs.cpp
@@ -18,7 +18,7 @@ be_visitor_array_cdr_op_cs::be_visitor_array_cdr_op_cs (
{
}
-be_visitor_array_cdr_op_cs::~be_visitor_array_cdr_op_cs (void)
+be_visitor_array_cdr_op_cs::~be_visitor_array_cdr_op_cs ()
{
}
@@ -41,7 +41,7 @@ be_visitor_array_cdr_op_cs::visit_array (be_array *node)
}
// Retrieve the base type.
- be_type *bt = be_type::narrow_from_decl (node->base_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->base_type ());
if (!bt)
{
@@ -74,7 +74,7 @@ be_visitor_array_cdr_op_cs::visit_array (be_array *node)
// If the array is an anonymous member and if its element type
// is a declaration (not a reference), we must generate code for
// the declaration.
- if (this->ctx_->alias () == 0 // Not a typedef.
+ if (this->ctx_->alias () == nullptr // Not a typedef.
&& bt->is_child (this->ctx_->scope ()->decl ()))
{
int status = 0;
@@ -124,7 +124,7 @@ be_visitor_array_cdr_op_cs::visit_array (be_array *node)
'\0',
NAMEBUFSIZE);
- bool use_underscore = (this->ctx_->tdef () == 0);
+ bool use_underscore = (this->ctx_->tdef () == nullptr);
if (!use_underscore)
{
@@ -140,7 +140,7 @@ be_visitor_array_cdr_op_cs::visit_array (be_array *node)
if (node->is_nested ())
{
be_decl *parent =
- be_scope::narrow_from_scope (node->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (node->defined_in ())->decl ();
ACE_OS::sprintf (fname,
"%s::_%s",
parent->full_name (),
@@ -286,9 +286,9 @@ be_visitor_array_cdr_op_cs::visit_predefined_type (
// Grab the array node.
be_array *array =
- be_array::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_array*> (this->ctx_->node ());
- if (array == 0)
+ if (array == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_array_cdr_op_cs::"
@@ -465,7 +465,7 @@ be_visitor_array_cdr_op_cs::visit_predefined_type (
// Retrieve the ith dimension value.
AST_Expression *expr = array->dims ()[i];
- if ((expr == 0) || ((expr != 0) && (expr->ev () == 0)))
+ if ((expr == nullptr) || ((expr != nullptr) && (expr->ev () == nullptr)))
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_array_cdr_op_cs::"
@@ -542,7 +542,7 @@ be_visitor_array_cdr_op_cs::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -553,10 +553,10 @@ be_visitor_array_cdr_op_cs::visit_node (be_type *bt)
TAO_OutStream *os = this->ctx_->stream ();
ACE_CDR::ULong i;
be_array *node =
- be_array::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_array*> (this->ctx_->node ());
AST_Decl::NodeType nt = bt->node_type ();
- if (node == 0)
+ if (node == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_array_cdr_op_cs::"
@@ -580,7 +580,7 @@ be_visitor_array_cdr_op_cs::visit_node (be_type *bt)
// Retrieve the ith dimension value.
AST_Expression *expr = node->dims ()[i];
- if ((expr == 0) || ((expr != 0) && (expr->ev () == 0)))
+ if ((expr == nullptr) || ((expr != nullptr) && (expr->ev () == nullptr)))
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_array_cdr_op_cs::"
@@ -633,11 +633,11 @@ be_visitor_array_cdr_op_cs::visit_node (be_type *bt)
}
else
{
- be_string *str = 0;
+ be_string *str = nullptr;
if (bt->node_type () == AST_Decl::NT_string ||
bt->node_type () == AST_Decl::NT_wstring)
{
- str = be_string::narrow_from_decl (bt);
+ str = dynamic_cast<be_string*> (bt);
if (!str)
{
ACE_ERROR_RETURN ((LM_ERROR,
@@ -649,7 +649,7 @@ be_visitor_array_cdr_op_cs::visit_node (be_type *bt)
}
*os << "_tao_marshal_flag = (strm >> ";
- if (str != 0 && str->max_size ()->ev ()->u.ulval != 0)
+ if (str != nullptr && str->max_size ()->ev ()->u.ulval != 0)
{
if (str->width () == (long) sizeof (char))
{
@@ -698,7 +698,7 @@ be_visitor_array_cdr_op_cs::visit_node (be_type *bt)
// We need to separately handle this case of pseudo
// objects because they have a _var type.
be_predefined_type *pt =
- be_predefined_type::narrow_from_decl (bt);
+ dynamic_cast<be_predefined_type*> (bt);
if (!pt)
{
@@ -760,11 +760,11 @@ be_visitor_array_cdr_op_cs::visit_node (be_type *bt)
}
else
{
- be_string *str = 0;
+ be_string *str = nullptr;
if (bt->node_type () == AST_Decl::NT_string ||
bt->node_type () == AST_Decl::NT_wstring)
{
- str = be_string::narrow_from_decl (bt);
+ str = dynamic_cast<be_string*> (bt);
if (!str)
{
ACE_ERROR_RETURN ((LM_ERROR,
@@ -776,7 +776,7 @@ be_visitor_array_cdr_op_cs::visit_node (be_type *bt)
}
*os << "_tao_marshal_flag = (strm << ";
- if (str != 0 && str->max_size ()->ev ()->u.ulval != 0)
+ if (str != nullptr && str->max_size ()->ev ()->u.ulval != 0)
{
if (str->width () == (long) sizeof (char))
{
@@ -825,7 +825,7 @@ be_visitor_array_cdr_op_cs::visit_node (be_type *bt)
// We need to separately handle this case of pseudo
// objects because they have a _var type.
be_predefined_type *pt =
- be_predefined_type::narrow_from_decl (bt);
+ dynamic_cast<be_predefined_type*> (bt);
if (!pt)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_attr_assign.cpp b/TAO/TAO_IDL/be/be_visitor_attr_assign.cpp
index 692367b1245..51fd3762802 100644
--- a/TAO/TAO_IDL/be/be_visitor_attr_assign.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_attr_assign.cpp
@@ -18,12 +18,12 @@
be_visitor_attr_assign::be_visitor_attr_assign (
be_visitor_context *ctx)
: be_visitor_decl (ctx),
- attr_name_ (0),
+ attr_name_ (nullptr),
attr_name_string_ ("this->")
{
}
-be_visitor_attr_assign::~be_visitor_attr_assign (void)
+be_visitor_attr_assign::~be_visitor_attr_assign ()
{
}
@@ -110,7 +110,7 @@ be_visitor_attr_assign::visit_sequence (be_sequence *)
{
be_type *bt = this->ctx_->alias ();
- if (bt == 0)
+ if (bt == nullptr)
{
/// Support anonymous types?
return -1;
@@ -167,7 +167,7 @@ be_visitor_attr_assign::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_attr_init.cpp b/TAO/TAO_IDL/be/be_visitor_attr_init.cpp
index 5808490dcfc..752eea411f0 100644
--- a/TAO/TAO_IDL/be/be_visitor_attr_init.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_attr_init.cpp
@@ -22,7 +22,7 @@ be_visitor_attr_init::be_visitor_attr_init (
{
}
-be_visitor_attr_init::~be_visitor_attr_init (void)
+be_visitor_attr_init::~be_visitor_attr_init ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_attr_return.cpp b/TAO/TAO_IDL/be/be_visitor_attr_return.cpp
index 4ff0e93139e..731e32bb18d 100644
--- a/TAO/TAO_IDL/be/be_visitor_attr_return.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_attr_return.cpp
@@ -22,7 +22,7 @@ be_visitor_attr_return::be_visitor_attr_return (
{
}
-be_visitor_attr_return::~be_visitor_attr_return (void)
+be_visitor_attr_return::~be_visitor_attr_return ()
{
}
@@ -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 ("
@@ -146,7 +146,7 @@ be_visitor_attr_return::visit_sequence (be_sequence *)
{
be_type *bt = this->ctx_->alias ();
- if (bt == 0)
+ if (bt == nullptr)
{
/// Support anonymous types?
return -1;
@@ -222,7 +222,7 @@ be_visitor_attr_return::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_attr_setarg_type.cpp b/TAO/TAO_IDL/be/be_visitor_attr_setarg_type.cpp
index 6dc5900e433..b434a50014c 100644
--- a/TAO/TAO_IDL/be/be_visitor_attr_setarg_type.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_attr_setarg_type.cpp
@@ -21,7 +21,7 @@ be_visitor_attr_setarg_type::be_visitor_attr_setarg_type (
{
}
-be_visitor_attr_setarg_type::~be_visitor_attr_setarg_type (void)
+be_visitor_attr_setarg_type::~be_visitor_attr_setarg_type ()
{
}
@@ -30,7 +30,7 @@ be_visitor_attr_setarg_type::visit_array (be_array *)
{
be_type *bt = this->ctx_->alias ();
- if (bt == 0)
+ if (bt == nullptr)
{
/// Support anonymous types?
return -1;
@@ -107,7 +107,7 @@ be_visitor_attr_setarg_type::visit_sequence (be_sequence *)
{
be_type *bt = this->ctx_->alias ();
- if (bt == 0)
+ if (bt == nullptr)
{
/// Support anonymous types?
return -1;
@@ -156,7 +156,7 @@ be_visitor_attr_setarg_type::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_attribute/attribute.cpp b/TAO/TAO_IDL/be/be_visitor_attribute/attribute.cpp
index 77337f29a73..a7069c430a8 100644
--- a/TAO/TAO_IDL/be/be_visitor_attribute/attribute.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_attribute/attribute.cpp
@@ -40,12 +40,12 @@
be_visitor_attribute::be_visitor_attribute (be_visitor_context *ctx)
: be_visitor_decl (ctx),
for_facets_ (false),
- op_scope_ (0),
+ op_scope_ (nullptr),
exec_class_extension_ ("_exec_i")
{
}
-be_visitor_attribute::~be_visitor_attribute (void)
+be_visitor_attribute::~be_visitor_attribute ()
{
}
@@ -59,14 +59,14 @@ be_visitor_attribute::visit_attribute (be_attribute *node)
AST_Decl *d = ScopeAsDecl (s);
ACE_CString op_name (this->ctx_->port_prefix ());
op_name += node->local_name ()->get_string ();
- Identifier *op_id = 0;
+ Identifier *op_id = nullptr;
ACE_NEW_RETURN (op_id,
Identifier (op_name.c_str ()),
-1);
- UTL_ScopedName *op_ln = 0;
+ UTL_ScopedName *op_ln = nullptr;
ACE_NEW_RETURN (op_ln,
- UTL_ScopedName (op_id, 0),
+ UTL_ScopedName (op_id, nullptr),
-1);
UTL_ScopedName *op_sn =
@@ -76,7 +76,7 @@ be_visitor_attribute::visit_attribute (be_attribute *node)
// first the "get" operation
be_operation get_op (node->field_type (),
AST_Operation::OP_noflags,
- 0,
+ nullptr,
node->is_local (),
node->is_abstract ());
@@ -84,7 +84,7 @@ be_visitor_attribute::visit_attribute (be_attribute *node)
get_op.set_name (op_sn);
UTL_ExceptList *get_exceptions = node->get_get_exceptions ();
- if (0 != get_exceptions)
+ if (nullptr != get_exceptions)
{
get_op.be_add_exceptions (get_exceptions->copy ());
}
@@ -229,7 +229,7 @@ be_visitor_attribute::visit_attribute (be_attribute *node)
// Create the set method.
Identifier id ("void");
UTL_ScopedName sn (&id,
- 0);
+ nullptr);
// The return type is "void".
be_predefined_type rt (AST_PredefinedType::PT_void,
@@ -246,7 +246,7 @@ be_visitor_attribute::visit_attribute (be_attribute *node)
// Create the operation.
be_operation set_op (&rt,
AST_Operation::OP_noflags,
- 0,
+ nullptr,
node->is_local (),
node->is_abstract ());
set_op.set_defined_in (node->defined_in ());
@@ -255,7 +255,7 @@ be_visitor_attribute::visit_attribute (be_attribute *node)
UTL_ExceptList *set_exceptions = node->get_set_exceptions ();
- if (0 != set_exceptions)
+ if (nullptr != set_exceptions)
{
set_op.be_add_exceptions (set_exceptions->copy ());
}
diff --git a/TAO/TAO_IDL/be/be_visitor_attribute/ccm_init.cpp b/TAO/TAO_IDL/be/be_visitor_attribute/ccm_init.cpp
index 68056b645bb..7175cdf71f9 100644
--- a/TAO/TAO_IDL/be/be_visitor_attribute/ccm_init.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_attribute/ccm_init.cpp
@@ -15,12 +15,12 @@
be_visitor_attribute_ccm_init::be_visitor_attribute_ccm_init (
be_visitor_context *ctx)
: be_visitor_any_extracted_type_decl (ctx),
- attr_ (0)
+ attr_ (nullptr)
{
}
be_visitor_attribute_ccm_init::~be_visitor_attribute_ccm_init (
- void)
+ )
{
}
@@ -35,7 +35,7 @@ be_visitor_attribute_ccm_init::visit_attribute (
be_interface *intf = this->ctx_->interface ();
- if (intf != 0)
+ if (intf != nullptr)
{
AST_Decl::NodeType snt = intf->node_type ();
AST_Decl::NodeType ant =
@@ -49,7 +49,7 @@ be_visitor_attribute_ccm_init::visit_attribute (
}
attr_ = node;
- be_type *ft = be_type::narrow_from_decl (node->field_type ());
+ be_type *ft = dynamic_cast<be_type*> (node->field_type ());
return ft->accept (this);
}
@@ -165,12 +165,12 @@ be_visitor_attribute_ccm_init::visit_valuetype (
}
void
-be_visitor_attribute_ccm_init::emit_init_block (void)
+be_visitor_attribute_ccm_init::emit_init_block ()
{
this->open_if_block ();
be_visitor_any_extracted_type_decl decl_emitter (this->ctx_);
- be_type *ft = be_type::narrow_from_decl (attr_->field_type ());
+ be_type *ft = dynamic_cast<be_type*> (attr_->field_type ());
if (ft->accept (&decl_emitter) == -1)
{
@@ -228,7 +228,7 @@ be_visitor_attribute_ccm_init::emit_error (
}
void
-be_visitor_attribute_ccm_init::open_if_block (void)
+be_visitor_attribute_ccm_init::open_if_block ()
{
os_ << be_nl_2
<< "if (ACE_OS::strcmp (descr_name, \""
@@ -239,7 +239,7 @@ be_visitor_attribute_ccm_init::open_if_block (void)
}
void
-be_visitor_attribute_ccm_init::close_if_block (void)
+be_visitor_attribute_ccm_init::close_if_block ()
{
os_ << be_nl
<< "continue;" << be_uidt_nl
diff --git a/TAO/TAO_IDL/be/be_visitor_attribute/set_from_extracted.cpp b/TAO/TAO_IDL/be/be_visitor_attribute/set_from_extracted.cpp
index 4de6e726456..47583e17a98 100644
--- a/TAO/TAO_IDL/be/be_visitor_attribute/set_from_extracted.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_attribute/set_from_extracted.cpp
@@ -19,7 +19,7 @@ be_visitor_attribute_set_from_extracted::be_visitor_attribute_set_from_extracted
}
be_visitor_attribute_set_from_extracted::~be_visitor_attribute_set_from_extracted (
- void)
+ )
{
}
@@ -137,7 +137,7 @@ be_visitor_attribute_set_from_extracted::visit_typedef (
be_typedef *node)
{
be_type *pbt =
- be_type::narrow_from_decl (node->primitive_base_type ());
+ dynamic_cast<be_type*> (node->primitive_base_type ());
return (pbt->accept (this));
}
diff --git a/TAO/TAO_IDL/be/be_visitor_ccm_pre_proc.cpp b/TAO/TAO_IDL/be/be_visitor_ccm_pre_proc.cpp
index f54de26ad5d..2b0c7d847eb 100644
--- a/TAO/TAO_IDL/be/be_visitor_ccm_pre_proc.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_ccm_pre_proc.cpp
@@ -74,24 +74,24 @@ be_visitor_ccm_pre_proc::be_visitor_ccm_pre_proc (
be_visitor_context *ctx)
: be_visitor_component_scope (ctx),
module_id_ ("Components"),
- cookie_ (0),
- already_connected_ (0),
- invalid_connection_ (0),
- no_connection_ (0),
- exceeded_connection_limit_ (0),
- create_failure_ (0),
- remove_failure_ (0),
- finder_failure_ (0),
- invalid_key_ (0),
- unknown_key_value_ (0),
- duplicate_key_value_ (0),
- comp_ (0),
- home_ (0),
+ cookie_ (nullptr),
+ already_connected_ (nullptr),
+ invalid_connection_ (nullptr),
+ no_connection_ (nullptr),
+ exceeded_connection_limit_ (nullptr),
+ create_failure_ (nullptr),
+ remove_failure_ (nullptr),
+ finder_failure_ (nullptr),
+ invalid_key_ (nullptr),
+ unknown_key_value_ (nullptr),
+ duplicate_key_value_ (nullptr),
+ comp_ (nullptr),
+ home_ (nullptr),
ccm_lookups_done_ (false)
{
}
-be_visitor_ccm_pre_proc::~be_visitor_ccm_pre_proc (void)
+be_visitor_ccm_pre_proc::~be_visitor_ccm_pre_proc ()
{
this->module_id_.destroy ();
}
@@ -212,16 +212,16 @@ be_visitor_ccm_pre_proc::visit_provides (be_provides *node)
ACE_CString prefix ("provide_");
prefix += this->ctx_->port_prefix ();
- AST_Operation *provides_op = 0;
+ AST_Operation *provides_op = nullptr;
UTL_ScopedName *op_name =
this->create_scoped_name (prefix.c_str (),
node->local_name ()->get_string (),
- 0,
+ nullptr,
comp_);
ACE_NEW_RETURN (provides_op,
be_operation (node->provides_type (),
AST_Operation::OP_noflags,
- 0,
+ nullptr,
0,
0),
-1);
@@ -230,7 +230,7 @@ be_visitor_ccm_pre_proc::visit_provides (be_provides *node)
provides_op->set_imported (comp_->imported ());
provides_op->set_name (op_name);
- if (0 == comp_->be_add_operation (provides_op))
+ if (nullptr == comp_->be_add_operation (provides_op))
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_ccm_pre_proc::")
@@ -390,7 +390,7 @@ be_visitor_ccm_pre_proc::visit_home (be_home *node)
{
AST_Interface *xplicit = this->create_explicit (node);
- if (xplicit == 0)
+ if (xplicit == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_ccm_pre_proc::")
@@ -401,7 +401,7 @@ be_visitor_ccm_pre_proc::visit_home (be_home *node)
AST_Interface *implicit = this->create_implicit (node);
- if (implicit == 0)
+ if (implicit == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_ccm_pre_proc::")
@@ -420,7 +420,7 @@ be_visitor_ccm_pre_proc::visit_home (be_home *node)
-1);
}
- if (this->create_equivalent (node, xplicit, implicit) == 0)
+ if (this->create_equivalent (node, xplicit, implicit) == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_ccm_pre_proc::")
@@ -460,7 +460,7 @@ int
be_visitor_ccm_pre_proc::visit_eventtype_fwd (be_eventtype_fwd *node)
{
be_eventtype *fd =
- be_eventtype::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_eventtype*> (node->full_definition ());
return this->visit_eventtype (fd);
}
@@ -480,7 +480,7 @@ be_visitor_ccm_pre_proc::gen_implicit_ops (be_home *node,
AST_Type *pk = node->primary_key ();
- if (pk == 0)
+ if (pk == nullptr)
{
return 0;
}
@@ -534,13 +534,13 @@ be_visitor_ccm_pre_proc::gen_connect_single (be_uses *node)
UTL_ScopedName *op_full_name =
this->create_scoped_name (prefix.c_str (),
node->local_name ()->get_string (),
- 0,
+ nullptr,
comp_);
- be_operation *op = 0;
+ be_operation *op = nullptr;
ACE_NEW_RETURN (op,
be_operation (be_global->void_type (),
AST_Operation::OP_noflags,
- 0,
+ nullptr,
0,
0),
-1);
@@ -549,8 +549,8 @@ be_visitor_ccm_pre_proc::gen_connect_single (be_uses *node)
op->set_name (op_full_name);
Identifier arg_id ("conxn");
UTL_ScopedName arg_name (&arg_id,
- 0);
- be_argument *arg = 0;
+ nullptr);
+ be_argument *arg = nullptr;
ACE_NEW_RETURN (arg,
be_argument (AST_Argument::dir_IN,
node->uses_type (),
@@ -559,19 +559,19 @@ be_visitor_ccm_pre_proc::gen_connect_single (be_uses *node)
arg_id.destroy ();
op->be_add_argument (arg);
- UTL_ExceptList *tail = 0;
+ UTL_ExceptList *tail = nullptr;
ACE_NEW_RETURN (tail,
UTL_ExceptList (this->invalid_connection_,
- 0),
+ nullptr),
-1);
- UTL_ExceptList *connect_single = 0;
+ UTL_ExceptList *connect_single = nullptr;
ACE_NEW_RETURN (connect_single,
UTL_ExceptList (this->already_connected_,
tail),
-1);
op->be_add_exceptions (connect_single);
- if (0 == comp_->be_add_operation (op))
+ if (nullptr == comp_->be_add_operation (op))
{
return -1;
}
@@ -590,27 +590,27 @@ be_visitor_ccm_pre_proc::gen_disconnect_single (be_uses *node)
UTL_ScopedName *op_full_name =
this->create_scoped_name (prefix.c_str (),
node->local_name ()->get_string (),
- 0,
+ nullptr,
comp_);
- be_operation *op = 0;
+ be_operation *op = nullptr;
ACE_NEW_RETURN (op,
be_operation (node->uses_type (),
AST_Operation::OP_noflags,
- 0,
+ nullptr,
0,
0),
-1);
op->set_name (op_full_name);
op->set_defined_in (comp_);
op->set_imported (comp_->imported ());
- UTL_ExceptList *disconnect_single = 0;
+ UTL_ExceptList *disconnect_single = nullptr;
ACE_NEW_RETURN (disconnect_single,
UTL_ExceptList (this->no_connection_,
- 0),
+ nullptr),
-1);
op->be_add_exceptions (disconnect_single);
- if (0 == comp_->be_add_operation (op))
+ if (nullptr == comp_->be_add_operation (op))
{
return -1;
}
@@ -629,13 +629,13 @@ be_visitor_ccm_pre_proc::gen_get_connection_single (be_uses *node)
UTL_ScopedName *op_full_name =
this->create_scoped_name (prefix.c_str (),
node->local_name ()->get_string (),
- 0,
+ nullptr,
comp_);
- be_operation *op = 0;
+ be_operation *op = nullptr;
ACE_NEW_RETURN (op,
be_operation (node->uses_type (),
AST_Operation::OP_noflags,
- 0,
+ nullptr,
0,
0),
-1);
@@ -643,7 +643,7 @@ be_visitor_ccm_pre_proc::gen_get_connection_single (be_uses *node)
op->set_defined_in (comp_);
op->set_imported (comp_->imported ());
- if (0 == comp_->be_add_operation (op))
+ if (nullptr == comp_->be_add_operation (op))
{
return -1;
}
@@ -662,14 +662,14 @@ be_visitor_ccm_pre_proc::gen_connect_multiple (be_uses *node)
UTL_ScopedName *op_full_name =
this->create_scoped_name (prefix.c_str (),
node->local_name ()->get_string (),
- 0,
+ nullptr,
comp_);
- be_operation *op = 0;
+ be_operation *op = nullptr;
ACE_NEW_RETURN (op,
be_operation (this->cookie_,
AST_Operation::OP_noflags,
- 0,
+ nullptr,
0,
0),
-1);
@@ -678,8 +678,8 @@ be_visitor_ccm_pre_proc::gen_connect_multiple (be_uses *node)
op->set_imported (comp_->imported ());
Identifier arg_id ("connection");
UTL_ScopedName arg_name (&arg_id,
- 0);
- be_argument *arg = 0;
+ nullptr);
+ be_argument *arg = nullptr;
ACE_NEW_RETURN (arg,
be_argument (AST_Argument::dir_IN,
node->uses_type (),
@@ -687,19 +687,19 @@ be_visitor_ccm_pre_proc::gen_connect_multiple (be_uses *node)
-1);
arg_id.destroy ();
op->be_add_argument (arg);
- UTL_ExceptList *tail = 0;
+ UTL_ExceptList *tail = nullptr;
ACE_NEW_RETURN (tail,
UTL_ExceptList (this->invalid_connection_,
- 0),
+ nullptr),
-1);
- UTL_ExceptList *connect_multiple = 0;
+ UTL_ExceptList *connect_multiple = nullptr;
ACE_NEW_RETURN (connect_multiple,
UTL_ExceptList (this->exceeded_connection_limit_,
tail),
-1);
op->be_add_exceptions (connect_multiple);
- if (0 == comp_->be_add_operation (op))
+ if (nullptr == comp_->be_add_operation (op))
{
return -1;
}
@@ -718,13 +718,13 @@ be_visitor_ccm_pre_proc::gen_disconnect_multiple (be_uses *node)
UTL_ScopedName *op_full_name =
this->create_scoped_name (prefix.c_str (),
node->local_name ()->get_string (),
- 0,
+ nullptr,
comp_);
- be_operation *op = 0;
+ be_operation *op = nullptr;
ACE_NEW_RETURN (op,
be_operation (node->uses_type (),
AST_Operation::OP_noflags,
- 0,
+ nullptr,
0,
0),
-1);
@@ -733,8 +733,8 @@ be_visitor_ccm_pre_proc::gen_disconnect_multiple (be_uses *node)
op->set_imported (comp_->imported ());
Identifier arg_id ("ck");
UTL_ScopedName arg_name (&arg_id,
- 0);
- be_argument *arg = 0;
+ nullptr);
+ be_argument *arg = nullptr;
ACE_NEW_RETURN (arg,
be_argument (AST_Argument::dir_IN,
this->cookie_,
@@ -742,14 +742,14 @@ be_visitor_ccm_pre_proc::gen_disconnect_multiple (be_uses *node)
-1);
arg_id.destroy ();
op->be_add_argument (arg);
- UTL_ExceptList *disconnect_multiple = 0;
+ UTL_ExceptList *disconnect_multiple = nullptr;
ACE_NEW_RETURN (disconnect_multiple,
UTL_ExceptList (this->invalid_connection_,
- 0),
+ nullptr),
-1);
op->be_add_exceptions (disconnect_multiple);
- if (0 == comp_->be_add_operation (op))
+ if (nullptr == comp_->be_add_operation (op))
{
return -1;
}
@@ -768,7 +768,7 @@ be_visitor_ccm_pre_proc::gen_get_connection_multiple (be_uses *node)
UTL_ScopedName *op_full_name =
this->create_scoped_name (prefix.c_str (),
node->local_name ()->get_string (),
- 0,
+ nullptr,
comp_);
// Look up the implied IDL typedef created in the front end.
@@ -780,17 +780,17 @@ be_visitor_ccm_pre_proc::gen_get_connection_multiple (be_uses *node)
connections_string += "Connections";
Identifier connections_id (connections_string.c_str ());
UTL_ScopedName connections_name (&connections_id,
- 0);
+ nullptr);
AST_Decl *d = comp_->lookup_by_name (&connections_name,
true);
- be_typedef *td = be_typedef::narrow_from_decl (d);
+ be_typedef *td = dynamic_cast<be_typedef*> (d);
connections_id.destroy ();
- be_operation *op = 0;
+ be_operation *op = nullptr;
ACE_NEW_RETURN (op,
be_operation (td,
AST_Operation::OP_noflags,
- 0,
+ nullptr,
0,
0),
-1);
@@ -798,7 +798,7 @@ be_visitor_ccm_pre_proc::gen_get_connection_multiple (be_uses *node)
op->set_defined_in (comp_);
op->set_imported (comp_->imported ());
- if (0 == comp_->be_add_operation (op))
+ if (nullptr == comp_->be_add_operation (op))
{
return -1;
}
@@ -815,13 +815,13 @@ be_visitor_ccm_pre_proc::gen_push_op (be_eventtype *node,
UTL_ScopedName *op_full_name =
this->create_scoped_name ("push_",
node->local_name (),
- 0,
+ nullptr,
consumer);
- be_operation *push_op = 0;
+ be_operation *push_op = nullptr;
ACE_NEW_RETURN (push_op,
be_operation (be_global->void_type (),
AST_Operation::OP_noflags,
- 0,
+ nullptr,
false,
false),
-1);
@@ -829,13 +829,13 @@ be_visitor_ccm_pre_proc::gen_push_op (be_eventtype *node,
push_op->set_imported (node->imported ());
push_op->set_name (op_full_name);
ACE_CString arg_string ("the_",
- 0,
+ nullptr,
false);
arg_string += node->local_name ();
Identifier arg_id (arg_string.fast_rep ());
UTL_ScopedName arg_name (&arg_id,
- 0);
- be_argument *arg = 0;
+ nullptr);
+ be_argument *arg = nullptr;
ACE_NEW_RETURN (arg,
be_argument (AST_Argument::dir_IN,
node,
@@ -844,7 +844,7 @@ be_visitor_ccm_pre_proc::gen_push_op (be_eventtype *node,
arg_id.destroy ();
push_op->be_add_argument (arg);
- if (0 == consumer->be_add_operation (push_op))
+ if (nullptr == consumer->be_add_operation (push_op))
{
return -1;
}
@@ -863,13 +863,13 @@ be_visitor_ccm_pre_proc::gen_subscribe (be_publishes *node)
UTL_ScopedName *op_name =
this->create_scoped_name ("subscribe_",
node->local_name ()->get_string (),
- 0,
+ nullptr,
comp_);
- be_operation *op = 0;
+ be_operation *op = nullptr;
ACE_NEW_RETURN (op,
be_operation (this->cookie_,
AST_Operation::OP_noflags,
- 0,
+ nullptr,
0,
0),
-1);
@@ -879,11 +879,11 @@ be_visitor_ccm_pre_proc::gen_subscribe (be_publishes *node)
AST_Interface *i = this->lookup_consumer (node);
- if (i == 0)
+ if (i == nullptr)
{
op->destroy ();
delete op;
- op = 0;
+ op = nullptr;
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_ccm_pre_proc::")
@@ -894,22 +894,22 @@ be_visitor_ccm_pre_proc::gen_subscribe (be_publishes *node)
Identifier arg_id ("consumer");
UTL_ScopedName arg_name (&arg_id,
- 0);
- be_argument *arg = 0;
+ nullptr);
+ be_argument *arg = nullptr;
ACE_NEW_RETURN (arg,
be_argument (AST_Argument::dir_IN,
i,
&arg_name),
-1);
op->be_add_argument (arg);
- UTL_ExceptList *subscribe = 0;
+ UTL_ExceptList *subscribe = nullptr;
ACE_NEW_RETURN (subscribe,
UTL_ExceptList (this->exceeded_connection_limit_,
- 0),
+ nullptr),
-1);
op->be_add_exceptions (subscribe);
- if (0 == comp_->be_add_operation (op))
+ if (nullptr == comp_->be_add_operation (op))
{
return -1;
}
@@ -927,7 +927,7 @@ be_visitor_ccm_pre_proc::gen_unsubscribe (be_publishes *node)
AST_Interface *i = this->lookup_consumer (node);
- if (i == 0)
+ if (i == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_ccm_pre_proc::")
@@ -939,13 +939,13 @@ be_visitor_ccm_pre_proc::gen_unsubscribe (be_publishes *node)
UTL_ScopedName *op_name =
this->create_scoped_name ("unsubscribe_",
node->local_name ()->get_string (),
- 0,
+ nullptr,
comp_);
- be_operation *op = 0;
+ be_operation *op = nullptr;
ACE_NEW_RETURN (op,
be_operation (i,
AST_Operation::OP_noflags,
- 0,
+ nullptr,
0,
0),
-1);
@@ -954,22 +954,22 @@ be_visitor_ccm_pre_proc::gen_unsubscribe (be_publishes *node)
op->set_name (op_name);
Identifier arg_id ("ck");
UTL_ScopedName arg_name (&arg_id,
- 0);
- be_argument *arg = 0;
+ nullptr);
+ be_argument *arg = nullptr;
ACE_NEW_RETURN (arg,
be_argument (AST_Argument::dir_IN,
this->cookie_,
&arg_name),
-1);
op->be_add_argument (arg);
- UTL_ExceptList *unsubscribe = 0;
+ UTL_ExceptList *unsubscribe = nullptr;
ACE_NEW_RETURN (unsubscribe,
UTL_ExceptList (this->invalid_connection_,
- 0),
+ nullptr),
-1);
op->be_add_exceptions (unsubscribe);
- if (0 == comp_->be_add_operation (op))
+ if (nullptr == comp_->be_add_operation (op))
{
return -1;
}
@@ -988,13 +988,13 @@ be_visitor_ccm_pre_proc::gen_emits_connect (be_emits *node)
UTL_ScopedName *op_name =
this->create_scoped_name ("connect_",
node->local_name ()->get_string (),
- 0,
+ nullptr,
comp_);
- be_operation *op = 0;
+ be_operation *op = nullptr;
ACE_NEW_RETURN (op,
be_operation (be_global->void_type (),
AST_Operation::OP_noflags,
- 0,
+ nullptr,
0,
0),
-1);
@@ -1003,11 +1003,11 @@ be_visitor_ccm_pre_proc::gen_emits_connect (be_emits *node)
op->set_imported (comp_->imported ());
AST_Interface *i = this->lookup_consumer (node);
- if (i == 0)
+ if (i == nullptr)
{
op->destroy ();
delete op;
- op = 0;
+ op = nullptr;
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_ccm_pre_proc::")
@@ -1018,22 +1018,22 @@ be_visitor_ccm_pre_proc::gen_emits_connect (be_emits *node)
Identifier arg_id ("consumer");
UTL_ScopedName arg_name (&arg_id,
- 0);
- be_argument *arg = 0;
+ nullptr);
+ be_argument *arg = nullptr;
ACE_NEW_RETURN (arg,
be_argument (AST_Argument::dir_IN,
i,
&arg_name),
-1);
op->be_add_argument (arg);
- UTL_ExceptList *emits_connect = 0;
+ UTL_ExceptList *emits_connect = nullptr;
ACE_NEW_RETURN (emits_connect,
UTL_ExceptList (this->already_connected_,
- 0),
+ nullptr),
-1);
op->be_add_exceptions (emits_connect);
- if (0 == comp_->be_add_operation (op))
+ if (nullptr == comp_->be_add_operation (op))
{
return -1;
}
@@ -1051,7 +1051,7 @@ be_visitor_ccm_pre_proc::gen_emits_disconnect (be_emits *node)
AST_Interface *i = this->lookup_consumer (node);
- if (i == 0)
+ if (i == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_ccm_pre_proc::")
@@ -1063,27 +1063,27 @@ be_visitor_ccm_pre_proc::gen_emits_disconnect (be_emits *node)
UTL_ScopedName *op_name =
this->create_scoped_name ("disconnect_",
node->local_name ()->get_string (),
- 0,
+ nullptr,
comp_);
- be_operation *op = 0;
+ be_operation *op = nullptr;
ACE_NEW_RETURN (op,
be_operation (i,
AST_Operation::OP_noflags,
- 0,
+ nullptr,
0,
0),
-1);
op->set_name (op_name);
op->set_defined_in (comp_);
op->set_imported (comp_->imported ());
- UTL_ExceptList *emits_disconnect = 0;
+ UTL_ExceptList *emits_disconnect = nullptr;
ACE_NEW_RETURN (emits_disconnect,
UTL_ExceptList (this->no_connection_,
- 0),
+ nullptr),
-1);
op->be_add_exceptions (emits_disconnect);
- if (0 == comp_->be_add_operation (op))
+ if (nullptr == comp_->be_add_operation (op))
{
return -1;
}
@@ -1101,7 +1101,7 @@ be_visitor_ccm_pre_proc::gen_get_consumer (be_consumes *node)
AST_Interface *i = this->lookup_consumer (node);
- if (i == 0)
+ if (i == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_ccm_pre_proc::")
@@ -1113,13 +1113,13 @@ be_visitor_ccm_pre_proc::gen_get_consumer (be_consumes *node)
UTL_ScopedName *op_name =
this->create_scoped_name ("get_consumer_",
node->local_name ()->get_string (),
- 0,
+ nullptr,
comp_);
- be_operation *op = 0;
+ be_operation *op = nullptr;
ACE_NEW_RETURN (op,
be_operation (i,
AST_Operation::OP_noflags,
- 0,
+ nullptr,
0,
0),
-1);
@@ -1127,7 +1127,7 @@ be_visitor_ccm_pre_proc::gen_get_consumer (be_consumes *node)
op->set_defined_in (comp_);
op->set_imported (comp_->imported ());
- if (0 == comp_->be_add_operation (op))
+ if (nullptr == comp_->be_add_operation (op))
{
return -1;
}
@@ -1139,32 +1139,32 @@ int
be_visitor_ccm_pre_proc::gen_create (be_home *node,
AST_Interface *implicit)
{
- UTL_ScopedName *op_name = this->create_scoped_name (0,
+ UTL_ScopedName *op_name = this->create_scoped_name (nullptr,
"create",
- 0,
+ nullptr,
implicit);
- be_operation *op = 0;
+ be_operation *op = nullptr;
ACE_NEW_RETURN (op,
be_operation (node->managed_component (),
AST_Operation::OP_noflags,
- 0,
+ nullptr,
0,
0),
-1);
op->set_name (op_name);
AST_Type *pk = node->primary_key ();
- UTL_ExceptList *exceps = 0;
+ UTL_ExceptList *exceps = nullptr;
ACE_NEW_RETURN (exceps,
UTL_ExceptList (this->create_failure_,
- 0),
+ nullptr),
-1);
- if (pk != 0 && !be_global->gen_lwccm ())
+ if (pk != nullptr && !be_global->gen_lwccm ())
{
Identifier arg_id ("key");
UTL_ScopedName arg_name (&arg_id,
- 0);
- AST_Argument *arg = 0;
+ nullptr);
+ AST_Argument *arg = nullptr;
ACE_NEW_RETURN (arg,
be_argument (AST_Argument::dir_IN,
pk,
@@ -1173,12 +1173,12 @@ be_visitor_ccm_pre_proc::gen_create (be_home *node,
arg_id.destroy ();
op->be_add_argument (arg);
- UTL_ExceptList *tail = 0;
+ UTL_ExceptList *tail = nullptr;
ACE_NEW_RETURN (tail,
UTL_ExceptList (this->invalid_key_,
- 0),
+ nullptr),
-1);
- UTL_ExceptList *middle = 0;
+ UTL_ExceptList *middle = nullptr;
ACE_NEW_RETURN (middle,
UTL_ExceptList (this->duplicate_key_value_,
tail),
@@ -1190,7 +1190,7 @@ be_visitor_ccm_pre_proc::gen_create (be_home *node,
op->set_defined_in (implicit);
op->set_imported (node->imported ());
- if (0 == implicit->be_add_operation (op))
+ if (nullptr == implicit->be_add_operation (op))
{
return -1;
}
@@ -1202,15 +1202,15 @@ int
be_visitor_ccm_pre_proc::gen_find_by_primary_key (be_home *node,
AST_Interface *implicit)
{
- UTL_ScopedName *op_name = this->create_scoped_name (0,
+ UTL_ScopedName *op_name = this->create_scoped_name (nullptr,
"find_by_primary_key",
- 0,
+ nullptr,
implicit);
- be_operation *op = 0;
+ be_operation *op = nullptr;
ACE_NEW_RETURN (op,
be_operation (node->managed_component (),
AST_Operation::OP_noflags,
- 0,
+ nullptr,
0,
0),
-1);
@@ -1218,8 +1218,8 @@ be_visitor_ccm_pre_proc::gen_find_by_primary_key (be_home *node,
AST_Type *pk = node->primary_key ();
Identifier arg_id ("key");
UTL_ScopedName arg_name (&arg_id,
- 0);
- AST_Argument *arg = 0;
+ nullptr);
+ AST_Argument *arg = nullptr;
ACE_NEW_RETURN (arg,
be_argument (AST_Argument::dir_IN,
pk,
@@ -1228,14 +1228,14 @@ be_visitor_ccm_pre_proc::gen_find_by_primary_key (be_home *node,
arg_id.destroy ();
op->be_add_argument (arg);
- UTL_ExceptList *tail = 0;
- UTL_ExceptList *middle = 0;
+ UTL_ExceptList *tail = nullptr;
+ UTL_ExceptList *middle = nullptr;
if (!be_global->gen_lwccm ())
{
ACE_NEW_RETURN (tail,
UTL_ExceptList (this->invalid_key_,
- 0),
+ nullptr),
-1);
ACE_NEW_RETURN (middle,
UTL_ExceptList (this->unknown_key_value_,
@@ -1243,7 +1243,7 @@ be_visitor_ccm_pre_proc::gen_find_by_primary_key (be_home *node,
-1);
}
- UTL_ExceptList *exceps = 0;
+ UTL_ExceptList *exceps = nullptr;
ACE_NEW_RETURN (exceps,
UTL_ExceptList (this->finder_failure_,
middle),
@@ -1252,7 +1252,7 @@ be_visitor_ccm_pre_proc::gen_find_by_primary_key (be_home *node,
op->set_defined_in (implicit);
op->set_imported (node->imported ());
- if (0 == implicit->be_add_operation (op))
+ if (nullptr == implicit->be_add_operation (op))
{
return -1;
}
@@ -1264,15 +1264,15 @@ int
be_visitor_ccm_pre_proc::gen_remove (be_home *node,
AST_Interface *implicit)
{
- UTL_ScopedName *op_name = this->create_scoped_name (0,
+ UTL_ScopedName *op_name = this->create_scoped_name (nullptr,
"remove",
- 0,
+ nullptr,
implicit);
- be_operation *op = 0;
+ be_operation *op = nullptr;
ACE_NEW_RETURN (op,
be_operation (be_global->void_type (),
AST_Operation::OP_noflags,
- 0,
+ nullptr,
0,
0),
-1);
@@ -1280,8 +1280,8 @@ be_visitor_ccm_pre_proc::gen_remove (be_home *node,
AST_Type *pk = node->primary_key ();
Identifier arg_id ("key");
UTL_ScopedName arg_name (&arg_id,
- 0);
- AST_Argument *arg = 0;
+ nullptr);
+ AST_Argument *arg = nullptr;
ACE_NEW_RETURN (arg,
be_argument (AST_Argument::dir_IN,
pk,
@@ -1290,14 +1290,14 @@ be_visitor_ccm_pre_proc::gen_remove (be_home *node,
arg_id.destroy ();
op->be_add_argument (arg);
- UTL_ExceptList *tail = 0;
- UTL_ExceptList *middle = 0;
+ UTL_ExceptList *tail = nullptr;
+ UTL_ExceptList *middle = nullptr;
if (!be_global->gen_lwccm ())
{
ACE_NEW_RETURN (tail,
UTL_ExceptList (this->invalid_key_,
- 0),
+ nullptr),
-1);
ACE_NEW_RETURN (middle,
UTL_ExceptList (this->unknown_key_value_,
@@ -1305,7 +1305,7 @@ be_visitor_ccm_pre_proc::gen_remove (be_home *node,
-1);
}
- UTL_ExceptList *exceps = 0;
+ UTL_ExceptList *exceps = nullptr;
ACE_NEW_RETURN (exceps,
UTL_ExceptList (this->remove_failure_,
middle),
@@ -1314,7 +1314,7 @@ be_visitor_ccm_pre_proc::gen_remove (be_home *node,
op->set_defined_in (implicit);
op->set_imported (node->imported ());
- if (0 == implicit->be_add_operation (op))
+ if (nullptr == implicit->be_add_operation (op))
{
return -1;
}
@@ -1326,23 +1326,23 @@ int
be_visitor_ccm_pre_proc::gen_get_primary_key (be_home *node,
AST_Interface *implicit)
{
- UTL_ScopedName *op_name = this->create_scoped_name (0,
+ UTL_ScopedName *op_name = this->create_scoped_name (nullptr,
"get_primary_key",
- 0,
+ nullptr,
implicit);
- be_operation *op = 0;
+ be_operation *op = nullptr;
ACE_NEW_RETURN (op,
be_operation (node->primary_key (),
AST_Operation::OP_noflags,
- 0,
+ nullptr,
0,
0),
-1);
op->set_name (op_name);
Identifier arg_id ("comp");
UTL_ScopedName arg_name (&arg_id,
- 0);
- AST_Argument *arg = 0;
+ nullptr);
+ AST_Argument *arg = nullptr;
ACE_NEW_RETURN (arg,
be_argument (AST_Argument::dir_IN,
node->managed_component (),
@@ -1353,7 +1353,7 @@ be_visitor_ccm_pre_proc::gen_get_primary_key (be_home *node,
op->set_defined_in (implicit);
op->set_imported (node->imported ());
- if (0 == implicit->be_add_operation (op))
+ if (nullptr == implicit->be_add_operation (op))
{
return -1;
}
@@ -1377,13 +1377,13 @@ be_visitor_ccm_pre_proc::gen_extended_port (be_porttype *pt)
}
int
-be_visitor_ccm_pre_proc::lookup_cookie (void)
+be_visitor_ccm_pre_proc::lookup_cookie ()
{
- if (this->cookie_ == 0)
+ if (this->cookie_ == nullptr)
{
Identifier local_id ("Cookie");
UTL_ScopedName local_name (&local_id,
- 0);
+ nullptr);
UTL_ScopedName cookie_name (&this->module_id_,
&local_name);
AST_Decl *d =
@@ -1391,15 +1391,15 @@ be_visitor_ccm_pre_proc::lookup_cookie (void)
true);
local_id.destroy ();
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error (&cookie_name);
return -1;
}
- this->cookie_ = be_valuetype::narrow_from_decl (d);
+ this->cookie_ = dynamic_cast<be_valuetype*> (d);
- if (this->cookie_ == 0)
+ if (this->cookie_ == nullptr)
{
idl_global->err ()->valuetype_expected (d);
return -1;
@@ -1410,7 +1410,7 @@ be_visitor_ccm_pre_proc::lookup_cookie (void)
}
int
-be_visitor_ccm_pre_proc::lookup_exceptions (void)
+be_visitor_ccm_pre_proc::lookup_exceptions ()
{
int status = 0;
@@ -1460,7 +1460,7 @@ be_visitor_ccm_pre_proc::lookup_one_exception (const char *name,
{
Identifier id (name);
UTL_ScopedName local_name (&id,
- 0);
+ nullptr);
UTL_ScopedName scoped_name (&this->module_id_,
&local_name);
AST_Decl *d =
@@ -1468,15 +1468,15 @@ be_visitor_ccm_pre_proc::lookup_one_exception (const char *name,
true);
id.destroy ();
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error (&scoped_name);
return -1;
}
- result = be_exception::narrow_from_decl (d);
+ result = dynamic_cast<be_exception*> (d);
- if (result == 0)
+ if (result == nullptr)
{
return -1;
}
@@ -1491,7 +1491,7 @@ be_visitor_ccm_pre_proc::create_event_consumer (be_eventtype *node)
UTL_Scope *s = node->defined_in ();
UTL_ScopedName *consumer_name =
- this->create_scoped_name (0,
+ this->create_scoped_name (nullptr,
node->local_name (),
"Consumer",
ScopeAsDecl (node->defined_in ()));
@@ -1500,13 +1500,13 @@ be_visitor_ccm_pre_proc::create_event_consumer (be_eventtype *node)
/// declared eventtypes. Since forward declarations can
/// appear any number of times, we need to check that this
/// event consumer hasn't already been created.
- if (s->lookup_by_name (consumer_name, true) != 0)
+ if (s->lookup_by_name (consumer_name, true) != nullptr)
{
return 0;
}
- AST_Interface *event_consumer = 0;
- AST_Module *m = AST_Module::narrow_from_scope (s);
+ AST_Interface *event_consumer = nullptr;
+ AST_Module *m = dynamic_cast<AST_Module*> (s);
// We're at global scope here so we need to fool the scope stack
// for a minute so the correct repo id can be calculated at
@@ -1515,11 +1515,11 @@ be_visitor_ccm_pre_proc::create_event_consumer (be_eventtype *node)
Identifier parent_id ("EventConsumerBase");
UTL_ScopedName parent_local_name (&parent_id,
- 0);
+ nullptr);
UTL_ScopedName parent_full_name (&this->module_id_,
&parent_local_name);
UTL_NameList parent_list (&parent_full_name,
- 0);
+ nullptr);
FE_InterfaceHeader header (consumer_name,
&parent_list,
false,
@@ -1543,7 +1543,7 @@ be_visitor_ccm_pre_proc::create_event_consumer (be_eventtype *node)
event_consumer->set_imported (node->imported ());
event_consumer->set_name (consumer_name);
be_interface *bec =
- be_interface::narrow_from_decl (event_consumer);
+ dynamic_cast<be_interface*> (event_consumer);
bec->original_interface (node);
// Set repo id to 0, so it will be recomputed on the next access,
@@ -1551,10 +1551,10 @@ be_visitor_ccm_pre_proc::create_event_consumer (be_eventtype *node)
// necessary in case the eventtype's prefix was modified after
// its declaration. We assume 'implied IDL' means that the
// derived event consumer interface should have the same prefix.
- event_consumer->repoID (0);
+ event_consumer->repoID (nullptr);
event_consumer->prefix (const_cast<char*> (node->prefix ()));
- be_type::narrow_from_decl (event_consumer)->gen_fwd_helper_name ();
+ dynamic_cast<be_type*> (event_consumer)->gen_fwd_helper_name ();
m->be_add_interface (event_consumer);
return this->gen_push_op (node,
event_consumer);
@@ -1571,17 +1571,17 @@ be_visitor_ccm_pre_proc::lookup_consumer (be_field *node)
impl->defined_in ()->lookup_by_name_local (&rettype_id, false);
rettype_id.destroy ();
- if (d == 0)
+ if (d == nullptr)
{
- return 0;
+ return nullptr;
}
- AST_Interface *i = AST_Interface::narrow_from_decl (d);
+ AST_Interface *i = dynamic_cast<AST_Interface*> (d);
- if (i == 0)
+ if (i == nullptr)
{
idl_global->err ()->interface_expected (d);
- return 0;
+ return nullptr;
}
return i;
@@ -1607,32 +1607,32 @@ be_visitor_ccm_pre_proc::create_explicit (be_home *node)
AST_Interface *
be_visitor_ccm_pre_proc::create_implicit (be_home *node)
{
- Identifier *parent_id = 0;
+ Identifier *parent_id = nullptr;
ACE_NEW_RETURN (parent_id,
Identifier ("KeylessCCMHome"),
- 0);
+ nullptr);
- UTL_ScopedName *parent_local_name = 0;
+ UTL_ScopedName *parent_local_name = nullptr;
ACE_NEW_RETURN (parent_local_name,
- UTL_ScopedName (parent_id, 0),
- 0);
+ UTL_ScopedName (parent_id, nullptr),
+ nullptr);
- UTL_ScopedName *parent_full_name = 0;
+ UTL_ScopedName *parent_full_name = nullptr;
ACE_NEW_RETURN (parent_full_name,
UTL_ScopedName (this->module_id_.copy (),
parent_local_name),
- 0);
+ nullptr);
- UTL_NameList parent_list (parent_full_name, 0);
+ UTL_NameList parent_list (parent_full_name, nullptr);
- UTL_NameList *parent_list_ptr = 0;
+ UTL_NameList *parent_list_ptr = nullptr;
- if (node->primary_key () == 0)
+ if (node->primary_key () == nullptr)
{
parent_list_ptr = &parent_list;
}
- FE_InterfaceHeader header (0,
+ FE_InterfaceHeader header (nullptr,
parent_list_ptr,
false,
false,
@@ -1644,12 +1644,12 @@ be_visitor_ccm_pre_proc::create_implicit (be_home *node)
idl_global->scopes ().push (node->defined_in ());
UTL_ScopedName *implicit_name =
- this->create_scoped_name (0,
+ this->create_scoped_name (nullptr,
node->local_name (),
"Implicit",
ScopeAsDecl (node->defined_in ()));
- be_interface *i = 0;
+ be_interface *i = nullptr;
ACE_NEW_RETURN (i,
be_interface (implicit_name,
header.inherits (),
@@ -1658,7 +1658,7 @@ be_visitor_ccm_pre_proc::create_implicit (be_home *node)
header.n_inherits_flat (),
false,
false),
- 0);
+ nullptr);
// Back to reality.
idl_global->scopes ().pop ();
@@ -1675,7 +1675,7 @@ be_visitor_ccm_pre_proc::create_implicit (be_home *node)
i->gen_fwd_helper_name ();
i->original_interface (node);
- AST_Module *m = AST_Module::narrow_from_scope (node->defined_in ());
+ AST_Module *m = dynamic_cast<AST_Module*> (node->defined_in ());
m->be_add_interface (i);
return i;
@@ -1688,15 +1688,15 @@ be_visitor_ccm_pre_proc::create_equivalent (be_home *node,
{
UTL_Scope *s = node->defined_in ();
UTL_ScopedName *equiv_name =
- this->create_scoped_name (0,
+ this->create_scoped_name (nullptr,
node->local_name (),
- 0,
+ nullptr,
ScopeAsDecl (s));
UTL_NameList tail (implicit->name (),
- 0);
+ nullptr);
UTL_NameList parent_list (xplicit->name (),
&tail);
- FE_InterfaceHeader header (0,
+ FE_InterfaceHeader header (nullptr,
&parent_list,
false,
false,
@@ -1707,7 +1707,7 @@ be_visitor_ccm_pre_proc::create_equivalent (be_home *node,
// interface construction time.
idl_global->scopes ().push (node->defined_in ());
- be_interface *retval = 0;
+ be_interface *retval = nullptr;
ACE_NEW_RETURN (retval,
be_interface (equiv_name,
header.inherits (),
@@ -1716,7 +1716,7 @@ be_visitor_ccm_pre_proc::create_equivalent (be_home *node,
header.n_inherits_flat (),
false,
false),
- 0);
+ nullptr);
// Back to reality.
idl_global->scopes ().pop ();
@@ -1733,12 +1733,12 @@ be_visitor_ccm_pre_proc::create_equivalent (be_home *node,
UTL_ScopedName *unmangled_name =
static_cast<UTL_ScopedName *> (node->name ()->copy ());
UTL_ScopedName *mangled_name =
- this->create_scoped_name (0,
+ this->create_scoped_name (nullptr,
node->local_name (),
"_tao_home_name_extension",
ScopeAsDecl (s));
node->set_name (mangled_name);
- AST_Module *m = AST_Module::narrow_from_scope (s);
+ AST_Module *m = dynamic_cast<AST_Module*> (s);
/// Calling be_add_interface() here calls add_to_referenced(),
/// which will give a redef error.
@@ -1755,19 +1755,19 @@ be_visitor_ccm_pre_proc::create_scoped_name (const char *prefix,
AST_Decl *parent)
{
ACE_CString local_string (prefix,
- 0,
+ nullptr,
false);
local_string += local_name;
local_string += suffix;
- Identifier *local_id = 0;
+ Identifier *local_id = nullptr;
ACE_NEW_RETURN (local_id,
Identifier (local_string.fast_rep ()),
- 0);
- UTL_ScopedName *last_segment = 0;
+ nullptr);
+ UTL_ScopedName *last_segment = nullptr;
ACE_NEW_RETURN (last_segment,
UTL_ScopedName (local_id,
- 0),
- 0);
+ nullptr),
+ nullptr);
UTL_ScopedName *full_name =
static_cast<UTL_ScopedName *> (parent->name ()->copy ());
full_name->nconc (last_segment);
@@ -1777,28 +1777,28 @@ be_visitor_ccm_pre_proc::create_scoped_name (const char *prefix,
UTL_NameList *
be_visitor_ccm_pre_proc::compute_inheritance (be_home *node)
{
- UTL_NameList *retval = 0;
+ UTL_NameList *retval = nullptr;
- if (node->base_home () == 0)
+ if (node->base_home () == nullptr)
{
- Identifier *local_id = 0;
+ Identifier *local_id = nullptr;
ACE_NEW_RETURN (local_id,
Identifier ("CCMHome"),
- 0);
- UTL_ScopedName *local_name = 0;
+ nullptr);
+ UTL_ScopedName *local_name = nullptr;
ACE_NEW_RETURN (local_name,
UTL_ScopedName (local_id,
- 0),
- 0);
- UTL_ScopedName *full_name = 0;
+ nullptr),
+ nullptr);
+ UTL_ScopedName *full_name = nullptr;
ACE_NEW_RETURN (full_name,
UTL_ScopedName (this->module_id_.copy (),
local_name),
- 0);
+ nullptr);
ACE_NEW_RETURN (retval,
UTL_NameList (full_name,
- 0),
- 0);
+ nullptr),
+ nullptr);
}
else
@@ -1812,13 +1812,13 @@ be_visitor_ccm_pre_proc::compute_inheritance (be_home *node)
parent_name->last_component ()->replace_string (new_local.c_str ());
ACE_NEW_RETURN (retval,
UTL_NameList (parent_name,
- 0),
- 0);
+ nullptr),
+ nullptr);
}
long n_supports = node->n_inherits ();
- UTL_ScopedName *supported_name = 0;
- UTL_NameList *conc_value = 0;
+ UTL_ScopedName *supported_name = nullptr;
+ UTL_NameList *conc_value = nullptr;
for (long i = 0; i < n_supports; ++i)
{
@@ -1826,8 +1826,8 @@ be_visitor_ccm_pre_proc::compute_inheritance (be_home *node)
static_cast<UTL_ScopedName *> (node->inherits ()[i]->name ()->copy ());
ACE_NEW_RETURN (conc_value,
UTL_NameList (supported_name,
- 0),
- 0);
+ nullptr),
+ nullptr);
retval->nconc (conc_value);
}
@@ -1835,7 +1835,7 @@ be_visitor_ccm_pre_proc::compute_inheritance (be_home *node)
}
int
-be_visitor_ccm_pre_proc::generate_ami4ccm_uses (void)
+be_visitor_ccm_pre_proc::generate_ami4ccm_uses ()
{
/// The interfaces in the list below are from this IDL file,
/// which then must be processed with the -GC option, so we
@@ -1857,7 +1857,7 @@ be_visitor_ccm_pre_proc::generate_ami4ccm_uses (void)
! i.done ();
i.advance ())
{
- char **item = 0;
+ char **item = nullptr;
i.next (item);
UTL_ScopedName *sn =
@@ -1868,24 +1868,24 @@ be_visitor_ccm_pre_proc::generate_ami4ccm_uses (void)
AST_Decl *d = s->lookup_by_name (sn, true);
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error (sn);
sn->destroy ();
delete sn;
- sn = 0;
+ sn = nullptr;
continue;
}
sn->destroy ();
delete sn;
- sn = 0;
+ sn = nullptr;
- be_uses *u = be_uses::narrow_from_decl (d);
+ be_uses *u = dynamic_cast<be_uses*> (d);
- if (u == 0)
+ if (u == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_ccm_pre_proc")
@@ -1896,7 +1896,7 @@ be_visitor_ccm_pre_proc::generate_ami4ccm_uses (void)
}
be_interface *iface =
- be_interface::narrow_from_decl (u->uses_type ());
+ dynamic_cast<be_interface*> (u->uses_type ());
/// The real AMI_xxx exists only in the *A.idl file, so
/// we create a dummy as the uses type for the implied
@@ -1904,23 +1904,23 @@ be_visitor_ccm_pre_proc::generate_ami4ccm_uses (void)
/// already been created for this uses type.
be_interface *ami_iface =
- be_interface::narrow_from_decl (iface->ami4ccm_uses ());
+ dynamic_cast<be_interface*> (iface->ami4ccm_uses ());
- if (ami_iface == 0)
+ if (ami_iface == nullptr)
{
ACE_CString iname ("AMI4CCM_");
iname += iface->local_name ();
Identifier itmp_id (iname.c_str ());
- UTL_ScopedName itmp_sn (&itmp_id, 0);
+ UTL_ScopedName itmp_sn (&itmp_id, nullptr);
s = iface->defined_in ();
idl_global->scopes ().push (s);
ACE_NEW_RETURN (ami_iface,
be_interface (&itmp_sn,
+ nullptr,
0,
- 0,
- 0,
+ nullptr,
0,
true,
false),
@@ -1945,11 +1945,11 @@ be_visitor_ccm_pre_proc::generate_ami4ccm_uses (void)
ACE_CString uname ("sendc_");
uname += u->local_name ()->get_string ();
Identifier utmp_id (uname.c_str ());
- UTL_ScopedName utmp_sn (&utmp_id, 0);
+ UTL_ScopedName utmp_sn (&utmp_id, nullptr);
s = u->defined_in ();
idl_global->scopes ().push (s);
- be_uses *ami_uses = 0;
+ be_uses *ami_uses = nullptr;
ACE_NEW_RETURN (ami_uses,
be_uses (&utmp_sn,
ami_iface,
@@ -1970,7 +1970,7 @@ be_visitor_ccm_pre_proc::generate_ami4ccm_uses (void)
*/
// Grammar ensures this narrowing will never be 0.
AST_Component *c =
- AST_Component::narrow_from_scope (s);
+ dynamic_cast<AST_Component*> (s);
FE_Utils::create_uses_multiple_stuff (c, ami_uses);
}
}
diff --git a/TAO/TAO_IDL/be/be_visitor_component/component.cpp b/TAO/TAO_IDL/be/be_visitor_component/component.cpp
index 5bf1836db45..72050e8148e 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/component.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/component.cpp
@@ -16,7 +16,7 @@ be_visitor_component::be_visitor_component (be_visitor_context *ctx)
{
}
-be_visitor_component::~be_visitor_component (void)
+be_visitor_component::~be_visitor_component ()
{
}
@@ -316,7 +316,7 @@ be_visitor_component::visit_extended_port (
/// original porttype, this is a way for visitors down the
/// line to tell what scope we are actually in.
this->ctx_->interface (
- be_interface::narrow_from_scope (node->defined_in ()));
+ dynamic_cast<be_interface*> (node->defined_in ()));
be_porttype *pt = node->port_type ();
@@ -345,7 +345,7 @@ be_visitor_component::visit_mirror_port (be_mirror_port *node)
/// original porttype, this is a way for visitors down the
/// line to tell what scope we are actually in.
this->ctx_->interface (
- be_interface::narrow_from_scope (node->defined_in ()));
+ dynamic_cast<be_interface*> (node->defined_in ()));
be_porttype *pt = node->port_type ();
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 50ba087ec5a..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
@@ -15,13 +15,13 @@
be_visitor_component_ami_rh_ex_base::be_visitor_component_ami_rh_ex_base (
be_visitor_context *ctx)
: be_visitor_scope (ctx),
- iface_ (0),
- port_ (0)
+ iface_ (nullptr),
+ port_ (nullptr)
{
}
be_visitor_component_ami_rh_ex_base::~be_visitor_component_ami_rh_ex_base (
- void)
+ )
{
}
@@ -33,7 +33,7 @@ be_visitor_component_ami_rh_ex_base::post_process (be_decl *bd)
if (bd->node_type () == AST_Decl::NT_argument)
{
AST_Argument *arg =
- AST_Argument::narrow_from_decl (bd);
+ dynamic_cast<AST_Argument*> (bd);
if (arg->direction () != AST_Argument::dir_IN
&& ! this->last_inout_or_out_node (bd))
@@ -46,7 +46,7 @@ be_visitor_component_ami_rh_ex_base::post_process (be_decl *bd)
}
void
-be_visitor_component_ami_rh_ex_base::init (void)
+be_visitor_component_ami_rh_ex_base::init ()
{
UTL_Scope *s = this->iface_->defined_in ();
AST_Decl *scope = ScopeAsDecl (s);
@@ -94,7 +94,7 @@ be_visitor_component_ami_rh_ex_base::gen_excep_op (
}
void
-be_visitor_component_ami_rh_ex_base::gen_op_body (void)
+be_visitor_component_ami_rh_ex_base::gen_op_body ()
{
}
@@ -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 56c89bfd64c..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
@@ -18,7 +18,7 @@ be_visitor_component_ami_rh_exh::be_visitor_component_ami_rh_exh (
{
}
-be_visitor_component_ami_rh_exh::~be_visitor_component_ami_rh_exh (void)
+be_visitor_component_ami_rh_exh::~be_visitor_component_ami_rh_exh ()
{
}
@@ -28,7 +28,7 @@ be_visitor_component_ami_rh_exh::visit_uses (be_uses *node)
this->port_ = node;
this->iface_ =
- be_interface::narrow_from_decl (node->uses_type ());
+ dynamic_cast<be_interface*> (node->uses_type ());
this->init ();
@@ -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
{
@@ -120,25 +120,25 @@ be_visitor_component_ami_rh_exh::visit_operation (
if (!vrt)
{
- Identifier *id = 0;
- UTL_ScopedName *sn = 0;
+ Identifier *id = nullptr;
+ UTL_ScopedName *sn = nullptr;
ACE_NEW_RETURN (id,
Identifier ("ami_return_val"),
-1);
- UTL_ScopedName *tmp = 0;
+ UTL_ScopedName *tmp = nullptr;
ACE_NEW_RETURN (tmp,
UTL_ScopedName (id,
- 0),
+ nullptr),
-1);
sn = (UTL_ScopedName *)node->name ()->copy ();
sn->nconc (tmp);
// Create the argument.
- be_argument *arg = 0;
+ be_argument *arg = nullptr;
ACE_NEW_RETURN (arg,
be_argument (AST_Argument::dir_OUT,
node->return_type (),
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 cf8df9cddea..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
@@ -19,7 +19,7 @@ be_visitor_component_ami_rh_exs::be_visitor_component_ami_rh_exs (
{
}
-be_visitor_component_ami_rh_exs::~be_visitor_component_ami_rh_exs (void)
+be_visitor_component_ami_rh_exs::~be_visitor_component_ami_rh_exs ()
{
}
@@ -29,19 +29,19 @@ be_visitor_component_ami_rh_exs::visit_uses (be_uses *node)
this->port_ = node;
this->iface_ =
- be_interface::narrow_from_decl (node->uses_type ());
+ dynamic_cast<be_interface*> (node->uses_type ());
this->init ();
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
{
@@ -121,25 +121,25 @@ be_visitor_component_ami_rh_exs::visit_operation (
if (!vrt)
{
- Identifier *id = 0;
- UTL_ScopedName *sn = 0;
+ Identifier *id = nullptr;
+ UTL_ScopedName *sn = nullptr;
ACE_NEW_RETURN (id,
Identifier ("ami_return_val"),
-1);
- UTL_ScopedName *tmp = 0;
+ UTL_ScopedName *tmp = nullptr;
ACE_NEW_RETURN (tmp,
UTL_ScopedName (id,
- 0),
+ nullptr),
-1);
sn = (UTL_ScopedName *)node->name ()->copy ();
sn->nconc (tmp);
// Create the argument.
- be_argument *arg = 0;
+ be_argument *arg = nullptr;
ACE_NEW_RETURN (arg,
be_argument (AST_Argument::dir_OUT,
node->return_type (),
@@ -225,7 +225,7 @@ be_visitor_component_ami_rh_exs::visit_argument (
}
void
-be_visitor_component_ami_rh_exs::gen_op_body (void)
+be_visitor_component_ami_rh_exs::gen_op_body ()
{
os_ << be_nl
<< "{" << be_idt_nl
diff --git a/TAO/TAO_IDL/be/be_visitor_component/component_ex_idl.cpp b/TAO/TAO_IDL/be/be_visitor_component/component_ex_idl.cpp
index 5fcd2665e55..35a2cdd0515 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/component_ex_idl.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/component_ex_idl.cpp
@@ -18,7 +18,7 @@ be_visitor_component_ex_idl::be_visitor_component_ex_idl (
{
}
-be_visitor_component_ex_idl::~be_visitor_component_ex_idl (void)
+be_visitor_component_ex_idl::~be_visitor_component_ex_idl ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_component/component_exh.cpp b/TAO/TAO_IDL/be/be_visitor_component/component_exh.cpp
index 55b941d8a80..cfb2a7196aa 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/component_exh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/component_exh.cpp
@@ -22,7 +22,7 @@ be_visitor_component_exh::be_visitor_component_exh (
export_macro_ = be_global->exec_export_macro ();
}
-be_visitor_component_exh::~be_visitor_component_exh (void)
+be_visitor_component_exh::~be_visitor_component_exh ()
{
}
@@ -36,8 +36,7 @@ be_visitor_component_exh::visit_component (be_component *node)
this->node_ = node;
- /// CIDL-generated namespace used 'CIDL_' + composition name.
- /// Now we use 'CIAO_' + component's flat name.
+ /// Use 'CIAO_' + component's flat name.
os_ << be_nl_2
<< "/// Namespace for implementation of " << node->full_name () << " component" << be_nl
<< "namespace CIAO_" << node->flat_name ()
@@ -74,7 +73,7 @@ be_visitor_component_exh::visit_component (be_component *node)
! i.done ();
i.advance ())
{
- char **item = 0;
+ char **item = nullptr;
i.next (item);
UTL_ScopedName *sn =
@@ -85,24 +84,24 @@ be_visitor_component_exh::visit_component (be_component *node)
AST_Decl *d = s->lookup_by_name (sn, true);
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error (sn);
sn->destroy ();
delete sn;
- sn = 0;
+ sn = nullptr;
continue;
}
sn->destroy ();
delete sn;
- sn = 0;
+ sn = nullptr;
- be_uses *u = be_uses::narrow_from_decl (d);
+ be_uses *u = dynamic_cast<be_uses*> (d);
- if (u == 0)
+ if (u == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_component_exh")
@@ -113,7 +112,7 @@ be_visitor_component_exh::visit_component (be_component *node)
}
be_component *c =
- be_component::narrow_from_decl (
+ dynamic_cast<be_component*> (
ScopeAsDecl (u->defined_in ()));
if (c == node)
diff --git a/TAO/TAO_IDL/be/be_visitor_component/component_exs.cpp b/TAO/TAO_IDL/be/be_visitor_component/component_exs.cpp
index e95463cf1bc..b890516c0a1 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/component_exs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/component_exs.cpp
@@ -22,7 +22,7 @@ be_visitor_component_exs::be_visitor_component_exs (
export_macro_ = be_global->exec_export_macro ();
}
-be_visitor_component_exs::~be_visitor_component_exs (void)
+be_visitor_component_exs::~be_visitor_component_exs ()
{
}
@@ -37,8 +37,7 @@ be_visitor_component_exs::visit_component (be_component *node)
node_ = node;
- /// CIDL-generated namespace used 'CIDL_' + composition name.
- /// Now we use 'CIAO_' + component's flat name.
+ /// Use 'CIAO_' + component's flat name.
os_ << be_nl_2
<< "namespace CIAO_" << node->flat_name ()
<< "_Impl" << be_nl
@@ -75,7 +74,7 @@ be_visitor_component_exs::visit_component (be_component *node)
! i.done ();
i.advance ())
{
- char **item = 0;
+ char **item = nullptr;
i.next (item);
UTL_ScopedName *sn =
@@ -86,24 +85,24 @@ be_visitor_component_exs::visit_component (be_component *node)
AST_Decl *d = s->lookup_by_name (sn, true);
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error (sn);
sn->destroy ();
delete sn;
- sn = 0;
+ sn = nullptr;
continue;
}
sn->destroy ();
delete sn;
- sn = 0;
+ sn = nullptr;
- be_uses *u = be_uses::narrow_from_decl (d);
+ be_uses *u = dynamic_cast<be_uses*> (d);
- if (u == 0)
+ if (u == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_component_exs")
@@ -114,7 +113,7 @@ be_visitor_component_exs::visit_component (be_component *node)
}
be_component *c =
- be_component::narrow_from_decl (
+ dynamic_cast<be_component*> (
ScopeAsDecl (u->defined_in ()));
if (c == node)
diff --git a/TAO/TAO_IDL/be/be_visitor_component/component_svh.cpp b/TAO/TAO_IDL/be/be_visitor_component/component_svh.cpp
index 4c54bdf4398..009fc949d27 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/component_svh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/component_svh.cpp
@@ -26,7 +26,7 @@ be_visitor_component_svh::be_visitor_component_svh (be_visitor_context *ctx)
}
}
-be_visitor_component_svh::~be_visitor_component_svh (void)
+be_visitor_component_svh::~be_visitor_component_svh ()
{
}
@@ -42,8 +42,7 @@ be_visitor_component_svh::visit_component (be_component *node)
/// code generation.
node->scan (node);
- /// CIDL-generated namespace used 'CIDL_' + composition name.
- /// Now we use 'CIAO_' + component's flat name.
+ /// Use 'CIAO_' + component's flat name.
os_ << be_nl_2
<< "namespace CIAO_" << node->flat_name ()
<< "_Impl" << be_nl
diff --git a/TAO/TAO_IDL/be/be_visitor_component/component_svs.cpp b/TAO/TAO_IDL/be/be_visitor_component/component_svs.cpp
index 17909773375..d5030f23013 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/component_svs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/component_svs.cpp
@@ -26,7 +26,7 @@ be_visitor_component_svs::be_visitor_component_svs (be_visitor_context *ctx)
}
}
-be_visitor_component_svs::~be_visitor_component_svs (void)
+be_visitor_component_svs::~be_visitor_component_svs ()
{
}
@@ -38,8 +38,7 @@ be_visitor_component_svs::visit_component (be_component *node)
return 0;
}
- /// CIDL-generated namespace used 'CIDL_' + composition name.
- /// Now we use 'CIAO_' + component's flat name.
+ /// Use 'CIAO_' + component's flat name.
os_ << be_nl_2
<< "namespace CIAO_" << node->flat_name ()
<< "_Impl" << be_nl
diff --git a/TAO/TAO_IDL/be/be_visitor_component/component_svth.cpp b/TAO/TAO_IDL/be/be_visitor_component/component_svth.cpp
index 577c7f3cbd2..50aa72bc274 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/component_svth.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/component_svth.cpp
@@ -26,7 +26,7 @@ be_visitor_component_svth::be_visitor_component_svth (be_visitor_context *ctx)
}
}
-be_visitor_component_svth::~be_visitor_component_svth (void)
+be_visitor_component_svth::~be_visitor_component_svth ()
{
}
@@ -42,8 +42,7 @@ be_visitor_component_svth::visit_component (be_component *node)
/// code generation.
node->scan (node);
- /// CIDL-generated namespace used 'CIDL_' + composition name.
- /// Now we use 'CIAO_' + component's flat name.
+ /// Use 'CIAO_' + component's flat name.
os_ << be_nl_2
<< "namespace CIAO_" << node->flat_name ()
<< "_Impl" << be_nl
diff --git a/TAO/TAO_IDL/be/be_visitor_component/component_svts.cpp b/TAO/TAO_IDL/be/be_visitor_component/component_svts.cpp
index 4287154b275..fa96d579498 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/component_svts.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/component_svts.cpp
@@ -26,7 +26,7 @@ be_visitor_component_svts::be_visitor_component_svts (be_visitor_context *ctx)
}
}
-be_visitor_component_svts::~be_visitor_component_svts (void)
+be_visitor_component_svts::~be_visitor_component_svts ()
{
}
@@ -38,8 +38,7 @@ be_visitor_component_svts::visit_component (be_component *node)
return 0;
}
- /// CIDL-generated namespace used 'CIDL_' + composition name.
- /// Now we use 'CIAO_' + component's flat name.
+ /// Use 'CIAO_' + component's flat name.
os_ << be_nl_2
<< "namespace CIAO_" << node->flat_name ()
<< "_Impl" << be_nl
diff --git a/TAO/TAO_IDL/be/be_visitor_component/context_ex_idl.cpp b/TAO/TAO_IDL/be/be_visitor_component/context_ex_idl.cpp
index 3a6be29fa1f..1e0c8462031 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/context_ex_idl.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/context_ex_idl.cpp
@@ -19,7 +19,7 @@ be_visitor_context_ex_idl::be_visitor_context_ex_idl (
}
be_visitor_context_ex_idl::~be_visitor_context_ex_idl (
- void)
+ )
{
}
@@ -36,7 +36,7 @@ be_visitor_context_ex_idl::visit_component (be_component *node)
AST_Component *base = node->base_component ();
- if (base == 0)
+ if (base == nullptr)
{
os_ << "::Components::"
<< be_global->ciao_container_type () << "Context";
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 8a08a862fd1..7ae81441c30 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/context_svth.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/context_svth.cpp
@@ -17,7 +17,7 @@ be_visitor_context_svth::be_visitor_context_svth (be_visitor_context *ctx)
{
}
-be_visitor_context_svth::~be_visitor_context_svth (void)
+be_visitor_context_svth::~be_visitor_context_svth ()
{
}
@@ -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 8678ab83ed1..3b1355474cb 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/context_svts.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/context_svts.cpp
@@ -17,7 +17,7 @@ be_visitor_context_svts::be_visitor_context_svts (be_visitor_context *ctx)
{
}
-be_visitor_context_svts::~be_visitor_context_svts (void)
+be_visitor_context_svts::~be_visitor_context_svts ()
{
}
@@ -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_ex_idl.cpp b/TAO/TAO_IDL/be/be_visitor_component/executor_ex_idl.cpp
index 18701bbb2cb..9cdfad5b5a6 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/executor_ex_idl.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/executor_ex_idl.cpp
@@ -19,7 +19,7 @@ be_visitor_executor_ex_idl::be_visitor_executor_ex_idl (
}
be_visitor_executor_ex_idl::~be_visitor_executor_ex_idl (
- void)
+ )
{
}
@@ -37,7 +37,7 @@ be_visitor_executor_ex_idl::visit_component (
<< be_idt_nl
<< ": ";
- if (base == 0)
+ if (base == nullptr)
{
os_ << "::Components::EnterpriseComponent";
}
@@ -204,7 +204,7 @@ be_visitor_executor_ex_idl::visit_consumes (
}
void
-be_visitor_executor_ex_idl::gen_supported (void)
+be_visitor_executor_ex_idl::gen_supported ()
{
os_ << be_idt;
@@ -226,7 +226,7 @@ be_visitor_executor_ex_idl::gen_exception_list (
const char *prefix,
bool closed)
{
- if (exceptions != 0 && exceptions->length () > 0)
+ if (exceptions != nullptr && exceptions->length () > 0)
{
os_ << be_idt_nl
<< prefix << "raises ( ";
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 76f80a31c3d..412debc236a 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/executor_exh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/executor_exh.cpp
@@ -24,7 +24,7 @@ be_visitor_executor_exh::be_visitor_executor_exh (
export_macro_ = be_global->exec_export_macro ();
}
-be_visitor_executor_exh::~be_visitor_executor_exh (void)
+be_visitor_executor_exh::~be_visitor_executor_exh ()
{
}
@@ -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 23525462dd7..d2d93264f93 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/executor_exs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/executor_exs.cpp
@@ -14,14 +14,14 @@
be_visitor_executor_exs::be_visitor_executor_exs (
be_visitor_context *ctx)
: be_visitor_component_scope (ctx),
- op_scope_ (0),
+ op_scope_ (nullptr),
comment_start_border_ ("/**"),
comment_end_border_ (" */"),
your_code_here_ ("/* Your code here. */")
{
}
-be_visitor_executor_exs::~be_visitor_executor_exs (void)
+be_visitor_executor_exs::~be_visitor_executor_exs ()
{
}
@@ -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/executor_exs_attr_init.cpp b/TAO/TAO_IDL/be/be_visitor_component/executor_exs_attr_init.cpp
index e18fe809272..beb75e7c658 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/executor_exs_attr_init.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/executor_exs_attr_init.cpp
@@ -19,7 +19,7 @@ be_visitor_executor_exs_attr_init::be_visitor_executor_exs_attr_init (
{
}
-be_visitor_executor_exs_attr_init::~be_visitor_executor_exs_attr_init (void)
+be_visitor_executor_exs_attr_init::~be_visitor_executor_exs_attr_init ()
{
}
@@ -100,7 +100,7 @@ be_visitor_executor_exs_attr_init::pre_process (be_decl *node)
}
bool
-be_visitor_executor_exs_attr_init::attr_generated (void) const
+be_visitor_executor_exs_attr_init::attr_generated () const
{
return this->semicolon_generated_;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_component/executor_private_exh.cpp b/TAO/TAO_IDL/be/be_visitor_component/executor_private_exh.cpp
index 3c454482c49..8073752ac4c 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/executor_private_exh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/executor_private_exh.cpp
@@ -20,7 +20,7 @@ be_visitor_executor_private_exh::be_visitor_executor_private_exh (
{
}
-be_visitor_executor_private_exh::~be_visitor_executor_private_exh (void)
+be_visitor_executor_private_exh::~be_visitor_executor_private_exh ()
{
}
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 0503c92c7dc..8ba4b0082f3 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/facet_exh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/facet_exh.cpp
@@ -24,7 +24,7 @@ be_visitor_facet_exh::be_visitor_facet_exh (
export_macro_ = be_global->exec_export_macro ();
}
-be_visitor_facet_exh::~be_visitor_facet_exh (void)
+be_visitor_facet_exh::~be_visitor_facet_exh ()
{
}
@@ -69,12 +69,12 @@ 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)
{
be_interface *intf =
- be_interface::narrow_from_decl (impl);
+ dynamic_cast<be_interface*> (impl);
os_ << be_nl_2
<< "/** @name Operations and attributes from "
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 6501c49524b..1c401ba88db 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/facet_exs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/facet_exs.cpp
@@ -14,13 +14,13 @@
be_visitor_facet_exs::be_visitor_facet_exs (
be_visitor_context *ctx)
: be_visitor_component_scope (ctx),
- op_scope_ (0),
+ op_scope_ (nullptr),
comment_start_border_ ("/**"),
comment_end_border_ (" */")
{
}
-be_visitor_facet_exs::~be_visitor_facet_exs (void)
+be_visitor_facet_exs::~be_visitor_facet_exs ()
{
}
@@ -55,7 +55,7 @@ be_visitor_facet_exs::visit_attribute (be_attribute *node)
}
be_decl *attr_scope =
- be_decl::narrow_from_decl (ScopeAsDecl (node->defined_in ()));
+ dynamic_cast<be_decl*> (ScopeAsDecl (node->defined_in ()));
nt = attr_scope->node_type ();
@@ -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
<< "}";
@@ -115,7 +115,7 @@ be_visitor_facet_exs::visit_provides (be_provides *node)
if (impl->node_type () == AST_Decl::NT_interface)
{
be_interface *intf =
- be_interface::narrow_from_decl (impl);
+ dynamic_cast<be_interface*> (impl);
os_ << be_nl_2
<< "// Operations from ::" << intf->full_name ();
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 eb710e03ba9..9fbd6a8de25 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/servant_svh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/servant_svh.cpp
@@ -17,7 +17,7 @@ be_visitor_servant_svh::be_visitor_servant_svh (be_visitor_context *ctx)
{
}
-be_visitor_servant_svh::~be_visitor_servant_svh (void)
+be_visitor_servant_svh::~be_visitor_servant_svh ()
{
}
@@ -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;
}
@@ -291,7 +291,7 @@ be_visitor_servant_svh::visit_consumes (be_consumes *node)
ACE_CString holder (obj_name);
ACE_CString::size_type pos = holder.rfind (':');
- const char *ev_lname = 0;
+ const char *ev_lname = nullptr;
if (pos == ACE_CString::npos)
{
@@ -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;
@@ -383,7 +383,7 @@ be_visitor_servant_svh::visit_consumes (be_consumes *node)
}
void
-be_visitor_servant_svh::gen_non_type_specific (void)
+be_visitor_servant_svh::gen_non_type_specific ()
{
os_ << be_nl_2
<< "// Base class overrides."
@@ -406,7 +406,7 @@ be_visitor_servant_svh::gen_non_type_specific (void)
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 (void)
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 (void)
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 bf1420b8c4f..3f081adcfb4 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/servant_svs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/servant_svs.cpp
@@ -13,11 +13,11 @@
be_visitor_servant_svs::be_visitor_servant_svs (be_visitor_context *ctx)
: be_visitor_component_scope (ctx),
- op_scope_ (0)
+ op_scope_ (nullptr)
{
}
-be_visitor_servant_svs::~be_visitor_servant_svs (void)
+be_visitor_servant_svs::~be_visitor_servant_svs ()
{
}
@@ -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
@@ -648,7 +648,7 @@ be_visitor_servant_svs::visit_consumes (be_consumes *node)
}
void
-be_visitor_servant_svs::gen_provides_top (void)
+be_visitor_servant_svs::gen_provides_top ()
{
if (this->node_->n_provides () == 0UL)
{
@@ -702,7 +702,7 @@ be_visitor_servant_svs::gen_provides_top (void)
}
void
-be_visitor_servant_svs::gen_publishes_top (void)
+be_visitor_servant_svs::gen_publishes_top ()
{
ACE_CDR::ULong npubs = this->node_->n_publishes ();
@@ -773,9 +773,9 @@ be_visitor_servant_svs::gen_publishes_top (void)
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,"
@@ -809,7 +809,7 @@ be_visitor_servant_svs::gen_publishes_top (void)
}
void
-be_visitor_servant_svs::gen_uses_top (void)
+be_visitor_servant_svs::gen_uses_top ()
{
ACE_CDR::ULong nuses = this->node_->n_uses ();
@@ -880,9 +880,9 @@ be_visitor_servant_svs::gen_uses_top (void)
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,"
@@ -916,7 +916,7 @@ be_visitor_servant_svs::gen_uses_top (void)
}
void
-be_visitor_servant_svs::gen_emits_top (void)
+be_visitor_servant_svs::gen_emits_top ()
{
/// Generated whether the component has emits ports
/// or not, except if we are generating a LwCCM
@@ -991,7 +991,7 @@ be_visitor_servant_svs::gen_emits_top (void)
}
void
-be_visitor_servant_svs::gen_get_all_emitters (void)
+be_visitor_servant_svs::gen_get_all_emitters ()
{
if (be_global->gen_lwccm () || be_global->gen_noeventccm () || this->node_->n_emits () == 0UL)
{
@@ -1001,9 +1001,9 @@ be_visitor_servant_svs::gen_get_all_emitters (void)
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,"
@@ -1039,7 +1039,7 @@ be_visitor_obv_factory_reg::be_visitor_obv_factory_reg (
{
}
-be_visitor_obv_factory_reg::~be_visitor_obv_factory_reg (void)
+be_visitor_obv_factory_reg::~be_visitor_obv_factory_reg ()
{
}
@@ -1087,7 +1087,7 @@ be_visitor_attr_set::be_visitor_attr_set (be_visitor_context *ctx)
{
}
-be_visitor_attr_set::~be_visitor_attr_set (void)
+be_visitor_attr_set::~be_visitor_attr_set ()
{
}
@@ -1112,7 +1112,7 @@ be_visitor_attr_set::visit_attribute (be_attribute *node)
int
be_visitor_attr_set::visit_component_scope (be_component *node)
{
- if (node == 0)
+ if (node == nullptr)
{
return 0;
}
@@ -1168,7 +1168,7 @@ be_visitor_facet_executor_block::be_visitor_facet_executor_block (
}
be_visitor_facet_executor_block::~be_visitor_facet_executor_block (
- void)
+ )
{
}
@@ -1199,7 +1199,7 @@ be_visitor_connect_block::be_visitor_connect_block (
{
}
-be_visitor_connect_block::~be_visitor_connect_block (void)
+be_visitor_connect_block::~be_visitor_connect_block ()
{
}
@@ -1247,7 +1247,7 @@ be_visitor_disconnect_block::be_visitor_disconnect_block (
}
be_visitor_disconnect_block::~be_visitor_disconnect_block (
- void)
+ )
{
}
@@ -1295,7 +1295,7 @@ be_visitor_receptacle_desc::be_visitor_receptacle_desc (
}
be_visitor_receptacle_desc::~be_visitor_receptacle_desc (
- void)
+ )
{
}
@@ -1364,7 +1364,7 @@ be_visitor_subscribe_block::be_visitor_subscribe_block (
}
be_visitor_subscribe_block::~be_visitor_subscribe_block (
- void)
+ )
{
}
@@ -1400,7 +1400,7 @@ be_visitor_unsubscribe_block::be_visitor_unsubscribe_block (
}
be_visitor_unsubscribe_block::~be_visitor_unsubscribe_block (
- void)
+ )
{
}
@@ -1432,7 +1432,7 @@ be_visitor_event_source_desc::be_visitor_event_source_desc (
}
be_visitor_event_source_desc::~be_visitor_event_source_desc (
- void)
+ )
{
}
@@ -1478,7 +1478,7 @@ be_visitor_connect_consumer_block::be_visitor_connect_consumer_block (
{
}
-be_visitor_connect_consumer_block::~be_visitor_connect_consumer_block (void)
+be_visitor_connect_consumer_block::~be_visitor_connect_consumer_block ()
{
}
@@ -1516,7 +1516,7 @@ be_visitor_disconnect_consumer_block::be_visitor_disconnect_consumer_block (
}
be_visitor_disconnect_consumer_block::~be_visitor_disconnect_consumer_block (
- void)
+ )
{
}
@@ -1548,7 +1548,7 @@ be_visitor_emitter_desc::be_visitor_emitter_desc (
}
be_visitor_emitter_desc::~be_visitor_emitter_desc (
- void)
+ )
{
}
@@ -1583,7 +1583,7 @@ be_visitor_populate_port_tables::be_visitor_populate_port_tables (
}
be_visitor_populate_port_tables::~be_visitor_populate_port_tables (
- void)
+ )
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_component_fwd/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_component_fwd/any_op_ch.cpp
index 7b3ee0415d6..f0a1f99be9f 100644
--- a/TAO/TAO_IDL/be/be_visitor_component_fwd/any_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component_fwd/any_op_ch.cpp
@@ -18,7 +18,7 @@ be_visitor_component_fwd_any_op_ch::be_visitor_component_fwd_any_op_ch (
{
}
-be_visitor_component_fwd_any_op_ch::~be_visitor_component_fwd_any_op_ch (void)
+be_visitor_component_fwd_any_op_ch::~be_visitor_component_fwd_any_op_ch ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_component_fwd/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_component_fwd/cdr_op_ch.cpp
index d8d155023ab..fa60dd92946 100644
--- a/TAO/TAO_IDL/be/be_visitor_component_fwd/cdr_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component_fwd/cdr_op_ch.cpp
@@ -18,7 +18,7 @@ be_visitor_component_fwd_cdr_op_ch::be_visitor_component_fwd_cdr_op_ch (
{
}
-be_visitor_component_fwd_cdr_op_ch::~be_visitor_component_fwd_cdr_op_ch (void)
+be_visitor_component_fwd_cdr_op_ch::~be_visitor_component_fwd_cdr_op_ch ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_component_fwd/component_fwd_ch.cpp b/TAO/TAO_IDL/be/be_visitor_component_fwd/component_fwd_ch.cpp
index 47443384619..68c6ce58147 100644
--- a/TAO/TAO_IDL/be/be_visitor_component_fwd/component_fwd_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component_fwd/component_fwd_ch.cpp
@@ -17,7 +17,7 @@ be_visitor_component_fwd_ch::be_visitor_component_fwd_ch (
{
}
-be_visitor_component_fwd_ch::~be_visitor_component_fwd_ch (void)
+be_visitor_component_fwd_ch::~be_visitor_component_fwd_ch ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_component_scope.cpp b/TAO/TAO_IDL/be/be_visitor_component_scope.cpp
index 750de044bd6..c7f28aeccf3 100644
--- a/TAO/TAO_IDL/be/be_visitor_component_scope.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component_scope.cpp
@@ -26,7 +26,7 @@
be_visitor_component_scope::be_visitor_component_scope (
be_visitor_context *ctx)
: be_visitor_scope (ctx),
- node_ (0),
+ node_ (nullptr),
os_ (*ctx->stream ()),
export_macro_ (be_global->svnt_export_macro ()),
in_ext_port_ (false)
@@ -42,7 +42,7 @@ be_visitor_component_scope::be_visitor_component_scope (
}
be_visitor_component_scope::~be_visitor_component_scope (
- void)
+ )
{
}
@@ -119,7 +119,7 @@ int
be_visitor_component_scope::visit_component_scope (
be_component *node)
{
- if (node == 0)
+ if (node == nullptr)
{
return 0;
}
@@ -154,14 +154,14 @@ be_visitor_component_scope::visit_porttype_scope_mirror (
!si.is_done ();
si.next ())
{
- be_decl *d = be_decl::narrow_from_decl (si.item ());
+ be_decl *d = dynamic_cast<be_decl*> (si.item ());
switch (d->node_type ())
{
case AST_Decl::NT_provides:
{
be_provides *p =
- be_provides::narrow_from_decl (d);
+ dynamic_cast<be_provides*> (d);
be_uses mirror_node (p->name (),
p->provides_type (),
@@ -182,7 +182,7 @@ be_visitor_component_scope::visit_porttype_scope_mirror (
case AST_Decl::NT_uses:
{
be_uses *u =
- be_uses::narrow_from_decl (d);
+ dynamic_cast<be_uses*> (d);
be_provides mirror_node (u->name (),
u->uses_type ());
@@ -224,7 +224,7 @@ be_visitor_component_scope::node (be_component *c)
}
void
-be_visitor_component_scope::gen_svnt_entrypoint_decl (void)
+be_visitor_component_scope::gen_svnt_entrypoint_decl ()
{
os_ << be_nl_2
<< "extern \"C\" " << export_macro_.c_str ()
@@ -239,7 +239,7 @@ be_visitor_component_scope::gen_svnt_entrypoint_decl (void)
}
void
-be_visitor_component_scope::gen_svnt_entrypoint_defn (void)
+be_visitor_component_scope::gen_svnt_entrypoint_defn ()
{
ACE_CString sname_str (
ScopeAsDecl (node_->defined_in ())->full_name ());
@@ -279,7 +279,7 @@ be_visitor_component_scope::gen_svnt_entrypoint_defn (void)
}
void
-be_visitor_component_scope::gen_exec_entrypoint_decl (void)
+be_visitor_component_scope::gen_exec_entrypoint_decl ()
{
os_ << be_nl_2
<< "/// Factory method and library entry point used by the middleware" << be_nl
@@ -287,17 +287,17 @@ be_visitor_component_scope::gen_exec_entrypoint_decl (void)
<< "extern \"C\" " << export_macro_.c_str ()
<< " ::Components::EnterpriseComponent_ptr" << be_nl
<< "create_" << node_->flat_name ()
- << "_Impl (void);";
+ << "_Impl ();";
}
void
-be_visitor_component_scope::gen_exec_entrypoint_defn (void)
+be_visitor_component_scope::gen_exec_entrypoint_defn ()
{
os_ << be_nl_2
<< "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 35e0d1ec5fd..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
@@ -22,7 +22,7 @@ be_visitor_connector_ami_exh::be_visitor_connector_ami_exh (
this->export_macro_ = be_global->conn_export_macro ();
}
-be_visitor_connector_ami_exh::~be_visitor_connector_ami_exh (void)
+be_visitor_connector_ami_exh::~be_visitor_connector_ami_exh ()
{
}
@@ -36,8 +36,7 @@ be_visitor_connector_ami_exh::visit_connector (be_connector *node)
this->node_ = node;
- /// CIDL-generated namespace used 'CIDL_' + composition name.
- /// Now we use 'CIAO_' + component's flat name.
+ /// Use 'CIAO_' + component's flat name.
os_ << be_nl_2
<< "namespace CIAO_" << node->flat_name ()
<< "_Impl" << be_nl
@@ -77,13 +76,13 @@ be_visitor_connector_ami_exh::visit_connector (be_connector *node)
}
void
-be_visitor_connector_ami_exh::gen_entrypoint (void)
+be_visitor_connector_ami_exh::gen_entrypoint ()
{
os_ << be_nl_2
<< "extern \"C\" " << this->export_macro_.c_str ()
<< " ::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 a74d9fafba6..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
@@ -18,7 +18,7 @@ be_visitor_connector_ami_exs::be_visitor_connector_ami_exs (
{
}
-be_visitor_connector_ami_exs::~be_visitor_connector_ami_exs (void)
+be_visitor_connector_ami_exs::~be_visitor_connector_ami_exs ()
{
}
@@ -32,8 +32,7 @@ be_visitor_connector_ami_exs::visit_connector (be_connector *node)
this->node_ = node;
- /// CIDL-generated namespace used 'CIDL_' + composition name.
- /// Now we use 'CIAO_' + component's flat name.
+ /// Use 'CIAO_' + component's flat name.
os_ << be_nl_2
<< "namespace CIAO_" << node->flat_name ()
<< "_Impl" << be_nl
@@ -70,14 +69,14 @@ be_visitor_connector_ami_exs::visit_connector (be_connector *node)
}
void
-be_visitor_connector_ami_exs::gen_entrypoint (void)
+be_visitor_connector_ami_exs::gen_entrypoint ()
{
AST_Decl *s = ScopeAsDecl (this->node_->defined_in ());
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_ex_base.cpp b/TAO/TAO_IDL/be/be_visitor_connector/connector_dds_ex_base.cpp
index 7343204497f..b52a43f1df2 100644
--- a/TAO/TAO_IDL/be/be_visitor_connector/connector_dds_ex_base.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_connector/connector_dds_ex_base.cpp
@@ -26,15 +26,15 @@
be_visitor_connector_dds_ex_base::be_visitor_connector_dds_ex_base (
be_visitor_context *ctx)
: be_visitor_component_scope (ctx),
- t_inst_ (0),
- t_ref_ (0),
- t_params_ (0),
- base_tname_ (0)
+ t_inst_ (nullptr),
+ t_ref_ (nullptr),
+ t_params_ (nullptr),
+ base_tname_ (nullptr)
{
}
be_visitor_connector_dds_ex_base::~be_visitor_connector_dds_ex_base (
- void)
+ )
{
}
@@ -47,7 +47,7 @@ be_visitor_connector_dds_ex_base::begin (be_connector *node)
AST_Connector *base = node;
- while (this->t_args_.is_empty () && base != 0)
+ while (this->t_args_.is_empty () && base != nullptr)
{
this->process_template_args (base);
base = base->base_connector ();
@@ -58,8 +58,7 @@ be_visitor_connector_dds_ex_base::begin (be_connector *node)
return false;
}
- /// CIDL-generated namespace used 'CIDL_' + composition name.
- /// Now we use 'CIAO_' + component's flat name.
+ /// Use 'CIAO_' + component's flat name.
os_ << be_nl_2
<< "namespace CIAO_" << node->flat_name ()
<< "_Impl" << be_nl
@@ -79,7 +78,7 @@ be_visitor_connector_dds_ex_base::is_dds_type (
if (base)
{
- while (base->base_connector () != 0)
+ while (base->base_connector () != nullptr)
{
base = base->base_connector ();
}
@@ -88,15 +87,15 @@ be_visitor_connector_dds_ex_base::is_dds_type (
if (ACE_OS::strcmp (lname, "DDS_Base") == 0)
{
- AST_Structure *s = AST_Structure::narrow_from_decl (d);
+ AST_Structure *s = dynamic_cast<AST_Structure*> (d);
- if (s == 0)
+ if (s == nullptr)
{
- AST_Typedef *td = AST_Typedef::narrow_from_decl (d);
+ AST_Typedef *td = dynamic_cast<AST_Typedef*> (d);
- if (td != 0)
+ if (td != nullptr)
{
- s = AST_Structure::narrow_from_decl (td->primitive_base_type ());
+ s = dynamic_cast<AST_Structure*> (td->primitive_base_type ());
}
}
@@ -115,7 +114,7 @@ be_visitor_connector_dds_ex_base::process_template_args (
AST_Connector *node)
{
AST_Module *m =
- AST_Module::narrow_from_scope (node->defined_in ());
+ dynamic_cast<AST_Module*> (node->defined_in ());
/// If this is non-zero, we use this to limit our template
/// args list to those used in the alias. If it is zero, we
@@ -127,13 +126,13 @@ be_visitor_connector_dds_ex_base::process_template_args (
/// We assume the connector comes from the instantiation
/// of a template module, and the regular module it's
/// defined in (at some level) will have a reference to it.
- while (this->t_inst_ == 0 && m != 0)
+ while (this->t_inst_ == nullptr && m != nullptr)
{
this->t_inst_ = m->from_inst ();
- m = AST_Module::narrow_from_scope (m->defined_in ());
+ m = dynamic_cast<AST_Module*> (m->defined_in ());
}
- if (this->t_inst_ == 0)
+ if (this->t_inst_ == nullptr)
{
/// Probably means we're trying the base connector
/// of DDS_State or DDS_Event, in which case we
@@ -155,7 +154,7 @@ be_visitor_connector_dds_ex_base::process_template_args (
/// We depend on the DDS datatype being the first template
/// argument for now, this may change.
- AST_Decl **datatype = 0;
+ AST_Decl **datatype = nullptr;
int const status = this->t_args_.get (datatype, 0UL);
if (status != 0)
@@ -173,14 +172,14 @@ be_visitor_connector_dds_ex_base::process_template_args (
}
void
-be_visitor_connector_dds_ex_base::match_template_args (void)
+be_visitor_connector_dds_ex_base::match_template_args ()
{
/// If the connector was declared in an aliased templated
/// module, we want to populate our template args list with
/// only the args referenced in the alias (see FOR loop
/// below). Otherwise, we just copy the containing template
/// module instantiation's arg list.
- if (this->t_ref_ == 0)
+ if (this->t_ref_ == nullptr)
{
this->t_args_ = *this->t_inst_->template_args ();
return;
@@ -198,12 +197,12 @@ be_visitor_connector_dds_ex_base::match_template_args (void)
! ci.done ();
ci.advance (), ++slot)
{
- FE_Utils::T_Param_Info *t_param = 0;
+ FE_Utils::T_Param_Info *t_param = nullptr;
ci.next (t_param);
if (t_param->name_ == ref_name)
{
- AST_Decl **d = 0;
+ AST_Decl **d = nullptr;
this->t_inst_->template_args ()->get (d, slot);
this->t_args_.enqueue_tail (*d);
break;
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 37275aabd0d..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
@@ -33,7 +33,7 @@ be_visitor_connector_dds_exh::be_visitor_connector_dds_exh (
export_macro_ = be_global->conn_export_macro ();
}
-be_visitor_connector_dds_exh::~be_visitor_connector_dds_exh (void)
+be_visitor_connector_dds_exh::~be_visitor_connector_dds_exh ()
{
}
@@ -58,7 +58,7 @@ be_visitor_connector_dds_exh::visit_connector (be_connector *node)
!i.done ();
i.advance ())
{
- AST_Decl **item = 0;
+ AST_Decl **item = nullptr;
i.next (item);
AST_Decl *d = *item;
@@ -87,7 +87,7 @@ be_visitor_connector_dds_exh::visit_connector (be_connector *node)
!i.done ();
i.advance (), ++slot)
{
- AST_Decl **item = 0;
+ AST_Decl **item = nullptr;
i.next (item);
AST_Decl *d = *item;
@@ -103,7 +103,7 @@ be_visitor_connector_dds_exh::visit_connector (be_connector *node)
bool needs_bool = false;
bool is_fixed = false;
- FE_Utils::T_Param_Info *param = 0;
+ FE_Utils::T_Param_Info *param = nullptr;
if (this->t_params_->get (param, slot - 1) != 0)
{
@@ -117,13 +117,13 @@ be_visitor_connector_dds_exh::visit_connector (be_connector *node)
if (d->node_type () == AST_Decl::NT_typedef)
{
/// Strip away all layers of typedef before narrowing.
- AST_Typedef *td = AST_Typedef::narrow_from_decl (d);
+ AST_Typedef *td = dynamic_cast<AST_Typedef*> (d);
d = td->primitive_base_type ();
}
/// No need to check if this is 0, but must narrow
/// to call virtual function size_type() below.
- AST_Type *t = AST_Type::narrow_from_decl (d);
+ AST_Type *t = dynamic_cast<AST_Type*> (d);
switch (param->type_)
{
@@ -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 ();
@@ -175,7 +175,7 @@ be_visitor_connector_dds_exh::visit_connector (be_connector *node)
!iter.done ();
iter.advance ())
{
- be_interface **item = 0;
+ be_interface **item = nullptr;
iter.next (item);
(*item)->dds_connector_traits_done (false);
@@ -218,7 +218,7 @@ be_visitor_connector_dds_exh::visit_mirror_port (
!iter.done ();
iter.advance ())
{
- be_interface **item = 0;
+ be_interface **item = nullptr;
iter.next (item);
(*item)->dds_connector_traits_done (false);
@@ -231,7 +231,7 @@ int
be_visitor_connector_dds_exh::visit_provides (be_provides *node)
{
be_interface *iface =
- be_interface::narrow_from_decl (node->provides_type ());
+ dynamic_cast<be_interface*> (node->provides_type ());
this->gen_interface_connector_trait (iface, node, true);
@@ -242,7 +242,7 @@ int
be_visitor_connector_dds_exh::visit_uses (be_uses *node)
{
be_interface *iface =
- be_interface::narrow_from_decl (node->uses_type ());
+ dynamic_cast<be_interface*> (node->uses_type ());
this->gen_interface_connector_trait (iface, node, false);
@@ -356,7 +356,7 @@ be_visitor_connector_dds_exh::gen_dds_traits (AST_Decl *datatype)
}
void
-be_visitor_connector_dds_exh::gen_connector_traits (void)
+be_visitor_connector_dds_exh::gen_connector_traits ()
{
AST_Decl *comp_scope =
ScopeAsDecl (this->node_->defined_in ());
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 45424fa074d..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
@@ -24,7 +24,7 @@ be_visitor_connector_dds_exs::be_visitor_connector_dds_exs (
export_macro_ = be_global->conn_export_macro ();
}
-be_visitor_connector_dds_exs::~be_visitor_connector_dds_exs (void)
+be_visitor_connector_dds_exs::~be_visitor_connector_dds_exs ()
{
}
@@ -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";
@@ -61,7 +61,7 @@ be_visitor_connector_dds_exs::visit_connector (be_connector *node)
!i.done ();
i.advance (), ++slot)
{
- AST_Decl **item = 0;
+ AST_Decl **item = nullptr;
i.next (item);
AST_Decl *d = *item;
@@ -77,7 +77,7 @@ be_visitor_connector_dds_exs::visit_connector (be_connector *node)
bool needs_bool = false;
bool is_fixed = false;
- FE_Utils::T_Param_Info *param = 0;
+ FE_Utils::T_Param_Info *param = nullptr;
if (this->t_params_->get (param, slot - 1) != 0)
{
@@ -91,13 +91,13 @@ be_visitor_connector_dds_exs::visit_connector (be_connector *node)
if (d->node_type () == AST_Decl::NT_typedef)
{
/// Strip away all layers of typedef before narrowing.
- AST_Typedef *td = AST_Typedef::narrow_from_decl (d);
+ AST_Typedef *td = dynamic_cast<AST_Typedef*> (d);
d = td->primitive_base_type ();
}
/// No need to check if this is 0, but must narrow
/// to call virtual function size_type() below.
- AST_Type *t = AST_Type::narrow_from_decl (d);
+ AST_Type *t = dynamic_cast<AST_Type*> (d);
switch (param->type_)
{
@@ -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 5bdd441b4b1..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
@@ -23,7 +23,7 @@ be_visitor_executor_ami_exh::be_visitor_executor_ami_exh (
export_macro_ = be_global->conn_export_macro ();
}
-be_visitor_executor_ami_exh::~be_visitor_executor_ami_exh (void)
+be_visitor_executor_ami_exh::~be_visitor_executor_ami_exh ()
{
}
@@ -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 3f8265af4d2..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
@@ -18,7 +18,7 @@ be_visitor_executor_ami_exs::be_visitor_executor_ami_exs (
{
}
-be_visitor_executor_ami_exs::~be_visitor_executor_ami_exs (void)
+be_visitor_executor_ami_exs::~be_visitor_executor_ami_exs ()
{
}
@@ -35,12 +35,12 @@ 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);
AST_Extended_Port *p =
- AST_Extended_Port::narrow_from_decl (j.item ());
+ dynamic_cast<AST_Extended_Port*> (j.item ());
bool first = true;
int port_nr = 0;
@@ -49,9 +49,9 @@ be_visitor_executor_ami_exs::visit_connector (be_connector *node)
i.next ())
{
AST_Decl *d = i.item ();
- AST_Provides *p = AST_Provides::narrow_from_decl (d);
+ AST_Provides *p = dynamic_cast<AST_Provides*> (d);
- if (p != 0)
+ if (p != nullptr)
{
if (first)
{
@@ -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 dbe687392dc..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
@@ -17,10 +17,10 @@
be_visitor_facet_ami_exh::be_visitor_facet_ami_exh (
be_visitor_context *ctx)
: be_visitor_component_scope (ctx),
- iface_ (0),
- callback_iface_ (0),
- scope_name_ (0),
- iface_name_ (0),
+ iface_ (nullptr),
+ callback_iface_ (nullptr),
+ scope_name_ (nullptr),
+ iface_name_ (nullptr),
sync_ (false)
{
// This is initialized in the base class to svnt_export_macro()
@@ -30,7 +30,7 @@ be_visitor_facet_ami_exh::be_visitor_facet_ami_exh (
export_macro_ = be_global->conn_export_macro ();
}
-be_visitor_facet_ami_exh::~be_visitor_facet_ami_exh (void)
+be_visitor_facet_ami_exh::~be_visitor_facet_ami_exh ()
{
}
@@ -51,7 +51,7 @@ int
be_visitor_facet_ami_exh::visit_provides (be_provides *node)
{
this->iface_ =
- be_interface::narrow_from_decl (node->provides_type ());
+ dynamic_cast<be_interface*> (node->provides_type ());
if (this->gen_reply_handler_class () == -1)
{
@@ -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)
@@ -103,7 +103,7 @@ be_visitor_facet_ami_exh::visit_attribute (be_attribute *node)
return 0;
}
Identifier id ("void");
- UTL_ScopedName sn (&id, 0);
+ UTL_ScopedName sn (&id, nullptr);
// Create the return type, which is "void"
be_predefined_type rt (AST_PredefinedType::PT_void, &sn);
@@ -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);
@@ -206,18 +206,18 @@ be_visitor_facet_ami_exh::init (bool for_impl)
UTL_ScopedName *sn =
FE_Utils::string_to_scoped_name (this->handler_str_.c_str ());
AST_Decl *d = s->lookup_by_name (sn, true, false);
- this->callback_iface_ = be_interface::narrow_from_decl (d);
+ this->callback_iface_ = dynamic_cast<be_interface*> (d);
- if (this->callback_iface_ == 0)
+ if (this->callback_iface_ == nullptr)
this->sync_ = true;
sn->destroy ();
delete sn;
- sn = 0;
+ sn = nullptr;
}
int
-be_visitor_facet_ami_exh::gen_reply_handler_class (void)
+be_visitor_facet_ami_exh::gen_reply_handler_class ()
{
os_ << be_nl_2 << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__;
@@ -239,7 +239,7 @@ be_visitor_facet_ami_exh::gen_reply_handler_class (void)
<< 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 (
@@ -269,7 +269,7 @@ be_visitor_facet_ami_exh::gen_reply_handler_class (void)
}
int
-be_visitor_facet_ami_exh::gen_facet_executor_class (void)
+be_visitor_facet_ami_exh::gen_facet_executor_class ()
{
os_ << be_nl_2 << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__;
@@ -288,9 +288,9 @@ be_visitor_facet_ami_exh::gen_facet_executor_class (void)
<< 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 (
@@ -299,7 +299,7 @@ be_visitor_facet_ami_exh::gen_facet_executor_class (void)
handler_str += "::";
handler_str += tmp;
- if (ACE_OS::strstr (tmp.c_str(), "AMI4CCM") != 0)
+ if (ACE_OS::strstr (tmp.c_str(), "AMI4CCM") != nullptr)
this->sync_ = false;
else
this->sync_ = true;
@@ -312,10 +312,10 @@ be_visitor_facet_ami_exh::gen_facet_executor_class (void)
sn->destroy ();
delete sn;
- sn = 0;
+ sn = nullptr;
be_interface *sync_iface =
- be_interface::narrow_from_decl (d);
+ dynamic_cast<be_interface*> (d);
/// The overload of traverse_inheritance_graph() used here
/// doesn't automatically prime the queues.
@@ -371,7 +371,7 @@ be_visitor_facet_ami_exh::gen_facet_executor_class (void)
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 c711169ad5e..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
@@ -21,7 +21,7 @@ be_visitor_facet_ami_exs::be_visitor_facet_ami_exs (
{
}
-be_visitor_facet_ami_exs::~be_visitor_facet_ami_exs (void)
+be_visitor_facet_ami_exs::~be_visitor_facet_ami_exs ()
{
}
@@ -43,7 +43,7 @@ be_visitor_facet_ami_exs::visit_provides (be_provides *node)
{
this->iface_ =
- be_interface::narrow_from_decl (node->provides_type ());
+ dynamic_cast<be_interface*> (node->provides_type ());
if (this->gen_reply_handler_class () == -1)
{
@@ -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)
{
@@ -94,7 +94,7 @@ be_visitor_facet_ami_exs::visit_attribute (be_attribute *node)
return 0;
}
Identifier id ("void");
- UTL_ScopedName sn (&id, 0);
+ UTL_ScopedName sn (&id, nullptr);
// Create the return type, which is "void"
be_predefined_type rt (AST_PredefinedType::PT_void, &sn);
@@ -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);
@@ -203,7 +203,7 @@ be_visitor_facet_ami_exs::post_process (be_decl *node)
return 0;
}
void
-be_visitor_facet_ami_exs::init (void)
+be_visitor_facet_ami_exs::init ()
{
UTL_Scope *s = this->iface_->defined_in ();
ACE_CString handler_str (
@@ -219,13 +219,13 @@ be_visitor_facet_ami_exs::init (void)
sn->destroy ();
delete sn;
- sn = 0;
+ sn = nullptr;
be_interface *callback_iface =
- be_interface::narrow_from_decl (d);
+ dynamic_cast<be_interface*> (d);
- if (callback_iface == 0)
+ if (callback_iface == nullptr)
this->sync_ = true;
else
this->sync_ = false;
@@ -233,7 +233,7 @@ be_visitor_facet_ami_exs::init (void)
}
int
-be_visitor_facet_ami_exs::gen_reply_handler_class (void)
+be_visitor_facet_ami_exs::gen_reply_handler_class ()
{
this->for_reply_handler_ = true;
@@ -268,7 +268,7 @@ be_visitor_facet_ami_exs::gen_reply_handler_class (void)
os_ << be_nl_2
<< iface_name << suffix << "::~"
- << iface_name << suffix << " (void)" << be_nl
+ << iface_name << suffix << " ()" << be_nl
<< "{" << be_nl
<< "}";
@@ -291,11 +291,11 @@ be_visitor_facet_ami_exs::gen_reply_handler_class (void)
sn->destroy ();
delete sn;
- sn = 0;
+ sn = nullptr;
be_interface *callback_iface =
- be_interface::narrow_from_decl (d);
+ dynamic_cast<be_interface*> (d);
/// The overload of traverse_inheritance_graph() used here
/// doesn't automatically prime the queues.
@@ -325,7 +325,7 @@ be_visitor_facet_ami_exs::gen_reply_handler_class (void)
}
int
-be_visitor_facet_ami_exs::gen_facet_executor_class (void)
+be_visitor_facet_ami_exs::gen_facet_executor_class ()
{
this->for_reply_handler_ = false;
@@ -337,13 +337,13 @@ be_visitor_facet_ami_exs::gen_facet_executor_class (void)
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
<< "}";
@@ -360,10 +360,10 @@ be_visitor_facet_ami_exs::gen_facet_executor_class (void)
sn->destroy ();
delete sn;
- sn = 0;
+ sn = nullptr;
be_interface *sync_iface =
- be_interface::narrow_from_decl (d);
+ dynamic_cast<be_interface*> (d);
/// The overload of traverse_inheritance_graph() used here
/// doesn't automatically prime the queues.
@@ -389,7 +389,7 @@ be_visitor_facet_ami_exs::gen_facet_executor_class (void)
}
- ACE_CString scope_str (scope_name, 0, false);
+ ACE_CString scope_str (scope_name, nullptr, false);
const char *container_type = be_global->ciao_container_type ();
@@ -421,7 +421,7 @@ be_visitor_facet_ami_exs::gen_facet_executor_class (void)
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
@@ -477,7 +477,7 @@ be_visitor_facet_ami_exs::gen_reply_hander_op (be_operation *node)
UTL_ScopeActiveIterator i (node, UTL_Scope::IK_decls);
AST_Decl *d = i.item ();
AST_Argument *arg =
- AST_Argument::narrow_from_decl (d);
+ dynamic_cast<AST_Argument*> (d);
AST_Type *t = arg->field_type ();
ACE_CString type_name = t->full_name ();
@@ -539,7 +539,7 @@ be_visitor_facet_ami_exs::gen_facet_executor_op (be_operation *node)
{
// do not handle not sendc operations.
- if (ACE_OS::strstr (node->local_name()->get_string (), "sendc_")== 0)
+ if (ACE_OS::strstr (node->local_name()->get_string (), "sendc_")== nullptr)
return 0;
os_ << be_nl_2
@@ -653,7 +653,7 @@ be_visitor_facet_ami_exs::gen_facet_executor_sync_op (be_operation *node)
os_ << be_nl_2;
// generate the return type.
- be_type *bt = be_type::narrow_from_decl (node->return_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->return_type ());
if (!bt)
{
@@ -701,10 +701,10 @@ be_visitor_facet_ami_exs::gen_facet_executor_sync_op (be_operation *node)
os_ << be_nl
<< "{" << be_idt_nl;
- AST_PredefinedType *pdt = 0;
- pdt = AST_PredefinedType::narrow_from_decl (bt);
+ AST_PredefinedType *pdt = nullptr;
+ pdt = dynamic_cast<AST_PredefinedType*> (bt);
bool ret = true;
- if ((pdt != 0) && (pdt->pt () == AST_PredefinedType::PT_void))
+ if ((pdt != nullptr) && (pdt->pt () == AST_PredefinedType::PT_void))
ret =false;
os_ << "::" << scope->full_name () << smart_scope
diff --git a/TAO/TAO_IDL/be/be_visitor_constant/constant_ch.cpp b/TAO/TAO_IDL/be/be_visitor_constant/constant_ch.cpp
index a8100df3ba0..ef25afde9ca 100644
--- a/TAO/TAO_IDL/be/be_visitor_constant/constant_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_constant/constant_ch.cpp
@@ -16,7 +16,7 @@ be_visitor_constant_ch::be_visitor_constant_ch (be_visitor_context *ctx)
{
}
-be_visitor_constant_ch::~be_visitor_constant_ch (void)
+be_visitor_constant_ch::~be_visitor_constant_ch ()
{
}
@@ -43,10 +43,10 @@ be_visitor_constant_ch::visit_constant (be_constant *node)
AST_Expression::ExprType etype = node->et ();
AST_Decl::NodeType snt = node->defined_in ()->scope_node_type ();
- if (tdef != 0)
+ if (tdef != nullptr)
{
nt = tdef->node_type ();
- be_typedef *td = be_typedef:: narrow_from_decl (tdef);
+ be_typedef *td = dynamic_cast<be_typedef*> (tdef);
bnt = td->base_node_type ();
}
diff --git a/TAO/TAO_IDL/be/be_visitor_constant/constant_cs.cpp b/TAO/TAO_IDL/be/be_visitor_constant/constant_cs.cpp
index 403a16a9f7e..1db7973d95f 100644
--- a/TAO/TAO_IDL/be/be_visitor_constant/constant_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_constant/constant_cs.cpp
@@ -16,7 +16,7 @@ be_visitor_constant_cs::be_visitor_constant_cs (be_visitor_context *ctx)
{
}
-be_visitor_constant_cs::~be_visitor_constant_cs (void)
+be_visitor_constant_cs::~be_visitor_constant_cs ()
{
}
@@ -56,7 +56,7 @@ be_visitor_constant_cs::visit_constant (be_constant *node)
*os << be_nl_2;
if (be_global->gen_inline_constants () && !forbidden_in_class)
{
- // Some compilers (especially Microsoft) always define storeage
+ // Some compilers (especially Microsoft) always define storage
// when the initialiser is given, therefore the header has already
// done this (which is non-C++ complient by the way).
*os << "#ifndef ACE_HAS_HEADER_ALLOCATED_CLASS_STATIC_CONST_INT_STOREAGE" << be_nl << " ";
diff --git a/TAO/TAO_IDL/be/be_visitor_context.cpp b/TAO/TAO_IDL/be/be_visitor_context.cpp
index 358281ed669..15cc1cd7069 100644
--- a/TAO/TAO_IDL/be/be_visitor_context.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_context.cpp
@@ -13,19 +13,19 @@
#include "be_extern.h"
#include "be_helper.h"
-be_visitor_context::be_visitor_context (void)
+be_visitor_context::be_visitor_context ()
: ast_visitor_context (),
state_ (TAO_CodeGen::TAO_INITIAL),
sub_state_ (TAO_CodeGen::TAO_SUB_STATE_UNKNOWN),
- os_ (0),
- scope_ (0),
- node_ (0),
- alias_ (0),
- tdef_ (0),
- attr_ (0),
- exception_ (0),
- comma_ (0),
- interface_ (0)
+ os_ (nullptr),
+ scope_ (nullptr),
+ node_ (nullptr),
+ alias_ (nullptr),
+ tdef_ (nullptr),
+ attr_ (nullptr),
+ exception_ (false),
+ comma_ (false),
+ interface_ (nullptr)
{
}
@@ -67,7 +67,7 @@ be_visitor_context::operator= (const be_visitor_context &ctx)
return *this;
}
-be_visitor_context::~be_visitor_context (void)
+be_visitor_context::~be_visitor_context ()
{
// We do not own anything.
}
@@ -75,21 +75,21 @@ be_visitor_context::~be_visitor_context (void)
//= helpers
void
-be_visitor_context::reset (void)
+be_visitor_context::reset ()
{
this->state_ = TAO_CodeGen::TAO_INITIAL;
this->sub_state_ = TAO_CodeGen::TAO_SUB_STATE_UNKNOWN;
- this->os_ = 0;
- this->scope_ = 0;
- this->node_ = 0;
- this->alias_ = 0;
- this->tdef_ = 0;
- this->attr_ = 0;
- this->exception_ = 0;
- this->comma_ = 0;
- this->interface_ = 0;
- this->template_args_ = 0;
- this->template_params_ = 0;
+ this->os_ = nullptr;
+ this->scope_ = nullptr;
+ this->node_ = nullptr;
+ this->alias_ = nullptr;
+ this->tdef_ = nullptr;
+ this->attr_ = nullptr;
+ this->exception_ = false;
+ this->comma_ = false;
+ this->interface_ = nullptr;
+ this->template_args_ = nullptr;
+ this->template_params_ = nullptr;
this->port_prefix_ = "";
}
@@ -100,7 +100,7 @@ be_visitor_context::stream (TAO_OutStream *os)
}
TAO_OutStream *
-be_visitor_context::stream (void)
+be_visitor_context::stream ()
{
static TAO_OutStream null_stream;
return os_ ? os_ : &null_stream;
@@ -113,7 +113,7 @@ be_visitor_context::scope (be_scope *s)
}
be_scope *
-be_visitor_context::scope (void)
+be_visitor_context::scope ()
{
return this->scope_;
}
@@ -125,7 +125,7 @@ be_visitor_context::node (be_decl *n)
}
be_decl *
-be_visitor_context::node (void)
+be_visitor_context::node ()
{
return this->node_;
}
@@ -137,7 +137,7 @@ be_visitor_context::state (TAO_CodeGen::CG_STATE st)
}
TAO_CodeGen::CG_STATE
-be_visitor_context::state (void)
+be_visitor_context::state ()
{
return this->state_;
}
@@ -149,7 +149,7 @@ be_visitor_context::sub_state (TAO_CodeGen::CG_SUB_STATE st)
}
TAO_CodeGen::CG_SUB_STATE
-be_visitor_context::sub_state (void)
+be_visitor_context::sub_state ()
{
return this->sub_state_;
}
@@ -161,7 +161,7 @@ be_visitor_context::tdef (be_typedef *node)
}
be_typedef *
-be_visitor_context::tdef (void)
+be_visitor_context::tdef ()
{
return this->tdef_;
}
@@ -173,7 +173,7 @@ be_visitor_context::alias (be_typedef *node)
}
be_typedef *
-be_visitor_context::alias (void)
+be_visitor_context::alias ()
{
return this->alias_;
}
@@ -185,7 +185,7 @@ be_visitor_context::attribute (be_attribute *node)
}
be_attribute *
-be_visitor_context::attribute (void)
+be_visitor_context::attribute ()
{
return this->attr_;
}
@@ -197,7 +197,7 @@ be_visitor_context::exception (bool ib)
}
bool
-be_visitor_context::exception (void)
+be_visitor_context::exception ()
{
return this->exception_;
}
@@ -209,7 +209,7 @@ be_visitor_context::comma (bool ib)
}
bool
-be_visitor_context::comma (void)
+be_visitor_context::comma ()
{
return this->comma_;
}
@@ -221,19 +221,19 @@ be_visitor_context::interface (be_interface *interface)
}
be_interface *
-be_visitor_context::interface (void) const
+be_visitor_context::interface () const
{
return this->interface_;
}
ACE_CString &
-be_visitor_context::port_prefix (void)
+be_visitor_context::port_prefix ()
{
return this->port_prefix_;
}
const char *
-be_visitor_context::export_macro (void) const
+be_visitor_context::export_macro () const
{
switch (this->state_)
{
@@ -258,7 +258,7 @@ be_visitor_context::export_macro (void) const
}
const char *
-be_visitor_context::non_null_export_macro (void) const
+be_visitor_context::non_null_export_macro () const
{
const char *anyop_export = be_global->anyop_export_macro ();
diff --git a/TAO/TAO_IDL/be/be_visitor_dds_ts_idl.cpp b/TAO/TAO_IDL/be/be_visitor_dds_ts_idl.cpp
index f7374989670..ada0800b67c 100644
--- a/TAO/TAO_IDL/be/be_visitor_dds_ts_idl.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_dds_ts_idl.cpp
@@ -28,11 +28,11 @@
be_visitor_dds_ts_idl::be_visitor_dds_ts_idl (
be_visitor_context *ctx)
: be_visitor_scope (ctx),
- os_ptr_ (0)
+ os_ptr_ (nullptr)
{
}
-be_visitor_dds_ts_idl::~be_visitor_dds_ts_idl (void)
+be_visitor_dds_ts_idl::~be_visitor_dds_ts_idl ()
{
}
@@ -317,7 +317,7 @@ be_visitor_dds_ts_idl::gen_datareader (be_type *node)
}
int
-be_visitor_dds_ts_idl::init_file (void)
+be_visitor_dds_ts_idl::init_file ()
{
/// Open an IDL file for writing.
ACE_CString orig (
@@ -358,12 +358,12 @@ be_visitor_dds_ts_idl::init_file (void)
}
void
-be_visitor_dds_ts_idl::fini_file (void)
+be_visitor_dds_ts_idl::fini_file ()
{
*this->os_ptr_ << be_nl_2
<< "#endif /* ifndef */\n"
<< "\n";
delete this->os_ptr_;
- this->os_ptr_ = 0;
+ this->os_ptr_ = nullptr;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_decl.cpp b/TAO/TAO_IDL/be/be_visitor_decl.cpp
index 14ec839436f..c735b7bcc13 100644
--- a/TAO/TAO_IDL/be/be_visitor_decl.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_decl.cpp
@@ -23,12 +23,12 @@ be_visitor_decl::be_visitor_decl (be_visitor_context *ctx)
{
}
-be_visitor_decl::~be_visitor_decl (void)
+be_visitor_decl::~be_visitor_decl ()
{
}
be_visitor_context *
-be_visitor_decl::ctx (void)
+be_visitor_decl::ctx ()
{
return this->ctx_;
}
@@ -37,7 +37,7 @@ int
be_visitor_decl::gen_anonymous_base_type (be_type *bt,
TAO_CodeGen::CG_STATE cg_state)
{
- be_typedef *tdef = be_typedef::narrow_from_decl (bt);
+ be_typedef *tdef = dynamic_cast<be_typedef*> (bt);
if (!tdef)
{
@@ -45,7 +45,7 @@ be_visitor_decl::gen_anonymous_base_type (be_type *bt,
ctx.state (cg_state);
// In case our container was typedef'd.
- ctx.tdef (0);
+ ctx.tdef (nullptr);
int status = 0;
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 52fd1b3fc7b..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
@@ -17,7 +17,7 @@ be_visitor_enum_any_op_ch::be_visitor_enum_any_op_ch (
{
}
-be_visitor_enum_any_op_ch::~be_visitor_enum_any_op_ch (void)
+be_visitor_enum_any_op_ch::~be_visitor_enum_any_op_ch ()
{
}
@@ -35,7 +35,7 @@ be_visitor_enum_any_op_ch::visit_enum (be_enum *node)
*os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__;
- be_module *module = 0;
+ be_module *module = nullptr;
if (node->is_nested ())
{
@@ -46,7 +46,7 @@ be_visitor_enum_any_op_ch::visit_enum (be_enum *node)
{
if (nt == AST_Decl::NT_module)
{
- module = be_module::narrow_from_decl (d);
+ module = dynamic_cast<be_module*> (d);
break;
}
else
@@ -56,7 +56,7 @@ be_visitor_enum_any_op_ch::visit_enum (be_enum *node)
}
}
- if (module != 0)
+ if (module != nullptr)
{
// Some compilers handle "any" operators in a namespace
// corresponding to their module, others do not.
@@ -90,11 +90,11 @@ be_visitor_enum_any_op_ch::visit_enum (be_enum *node)
*os << be_global->core_versioning_end () << be_nl;
- if (module != 0)
+ if (module != nullptr)
{
*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 62be2400733..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
@@ -17,7 +17,7 @@ be_visitor_enum_any_op_cs::be_visitor_enum_any_op_cs (
{
}
-be_visitor_enum_any_op_cs::~be_visitor_enum_any_op_cs (void)
+be_visitor_enum_any_op_cs::~be_visitor_enum_any_op_cs ()
{
}
@@ -68,7 +68,7 @@ be_visitor_enum_any_op_cs::visit_enum (be_enum *node)
*os << be_global->core_versioning_end () << be_nl;
- be_module *module = 0;
+ be_module *module = nullptr;
if (node->is_nested ())
{
AST_Decl *d = node;
@@ -78,7 +78,7 @@ be_visitor_enum_any_op_cs::visit_enum (be_enum *node)
{
if (nt == AST_Decl::NT_module)
{
- module = be_module::narrow_from_decl (d);
+ module = dynamic_cast<be_module*> (d);
break;
}
else
@@ -88,7 +88,7 @@ be_visitor_enum_any_op_cs::visit_enum (be_enum *node)
}
}
- if (module != 0)
+ if (module != nullptr)
{
// Some compilers handle "any" operators in a namespace corresponding
// to their module, others do not.
@@ -166,11 +166,11 @@ be_visitor_enum_any_op_cs::visit_enum (be_enum *node)
*os << be_global->core_versioning_end () << be_nl;
- if (module != 0)
+ if (module != nullptr)
{
*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/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_enum/cdr_op_ch.cpp
index 4717ce4c8d6..5c0e63d33ac 100644
--- a/TAO/TAO_IDL/be/be_visitor_enum/cdr_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_enum/cdr_op_ch.cpp
@@ -16,7 +16,7 @@ be_visitor_enum_cdr_op_ch::be_visitor_enum_cdr_op_ch (be_visitor_context *ctx)
{
}
-be_visitor_enum_cdr_op_ch::~be_visitor_enum_cdr_op_ch (void)
+be_visitor_enum_cdr_op_ch::~be_visitor_enum_cdr_op_ch ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_enum/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_enum/cdr_op_cs.cpp
index 4e269fca772..5ff226289aa 100644
--- a/TAO/TAO_IDL/be/be_visitor_enum/cdr_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_enum/cdr_op_cs.cpp
@@ -16,7 +16,7 @@ be_visitor_enum_cdr_op_cs::be_visitor_enum_cdr_op_cs (be_visitor_context *ctx)
{
}
-be_visitor_enum_cdr_op_cs::~be_visitor_enum_cdr_op_cs (void)
+be_visitor_enum_cdr_op_cs::~be_visitor_enum_cdr_op_cs ()
{
}
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 c08274dc244..32f9694a2ba 100644
--- a/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp
@@ -22,7 +22,7 @@ be_visitor_enum_ch::be_visitor_enum_ch (be_visitor_context *ctx)
{
}
-be_visitor_enum_ch::~be_visitor_enum_ch (void)
+be_visitor_enum_ch::~be_visitor_enum_ch ()
{
}
@@ -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_enum/enum_cs.cpp b/TAO/TAO_IDL/be/be_visitor_enum/enum_cs.cpp
index 5def28c74e5..aeaac4931ed 100644
--- a/TAO/TAO_IDL/be/be_visitor_enum/enum_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_enum/enum_cs.cpp
@@ -22,7 +22,7 @@ be_visitor_enum_cs::be_visitor_enum_cs (be_visitor_context *ctx)
{
}
-be_visitor_enum_cs::~be_visitor_enum_cs (void)
+be_visitor_enum_cs::~be_visitor_enum_cs ()
{
}
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 220bbc8daf3..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
@@ -17,7 +17,7 @@ be_visitor_exception_any_op_ch::be_visitor_exception_any_op_ch (
{
}
-be_visitor_exception_any_op_ch::~be_visitor_exception_any_op_ch (void)
+be_visitor_exception_any_op_ch::~be_visitor_exception_any_op_ch ()
{
}
@@ -36,7 +36,7 @@ be_visitor_exception_any_op_ch::visit_exception (be_exception *node)
*os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__;
- be_module *module = 0;
+ be_module *module = nullptr;
if (node->is_nested ())
{
AST_Decl *d = node;
@@ -46,7 +46,7 @@ be_visitor_exception_any_op_ch::visit_exception (be_exception *node)
{
if (nt == AST_Decl::NT_module)
{
- module = be_module::narrow_from_decl (d);
+ module = dynamic_cast<be_module*> (d);
break;
}
else
@@ -56,7 +56,7 @@ be_visitor_exception_any_op_ch::visit_exception (be_exception *node)
}
}
- if (module != 0)
+ if (module != nullptr)
{
// Some compilers handle "any" operators in a namespace
// corresponding to their module, others do not.
@@ -92,7 +92,7 @@ be_visitor_exception_any_op_ch::visit_exception (be_exception *node)
*os << be_global->core_versioning_end () << be_nl;
- if (module != 0)
+ if (module != nullptr)
{
*os << "\n\n#endif";
}
@@ -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;
}
@@ -114,7 +114,7 @@ int
be_visitor_exception_any_op_ch::visit_field (be_field *node)
{
// First generate the type information.
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
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 3f6ef5dea96..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
@@ -18,7 +18,7 @@ be_visitor_exception_any_op_cs::be_visitor_exception_any_op_cs (
{
}
-be_visitor_exception_any_op_cs::~be_visitor_exception_any_op_cs (void)
+be_visitor_exception_any_op_cs::~be_visitor_exception_any_op_cs ()
{
}
@@ -103,7 +103,7 @@ be_visitor_exception_any_op_cs::visit_exception (be_exception *node)
*os << be_global->core_versioning_end () << be_nl;
- be_module *module = 0;
+ be_module *module = nullptr;
if (node->is_nested ())
{
AST_Decl *d = node;
@@ -113,7 +113,7 @@ be_visitor_exception_any_op_cs::visit_exception (be_exception *node)
{
if (nt == AST_Decl::NT_module)
{
- module = be_module::narrow_from_decl (d);
+ module = dynamic_cast<be_module*> (d);
break;
}
else
@@ -123,7 +123,7 @@ be_visitor_exception_any_op_cs::visit_exception (be_exception *node)
}
}
- if (module != 0)
+ if (module != nullptr)
{
// Some compilers handle "any" operators in a namespace corresponding
// to their module, others do not.
@@ -244,7 +244,7 @@ be_visitor_exception_any_op_cs::visit_exception (be_exception *node)
*os << be_global->core_versioning_end () << be_nl;
- if (module != 0)
+ if (module != nullptr)
{
*os << "\n\n#endif";
}
@@ -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;
}
@@ -266,7 +266,7 @@ int
be_visitor_exception_any_op_cs::visit_field (be_field *node)
{
// First generate the type information.
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
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 646b4b3b5ea..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
@@ -19,7 +19,7 @@ be_visitor_exception_cdr_op_ch::be_visitor_exception_cdr_op_ch (
{
}
-be_visitor_exception_cdr_op_ch::~be_visitor_exception_cdr_op_ch (void)
+be_visitor_exception_cdr_op_ch::~be_visitor_exception_cdr_op_ch ()
{
}
@@ -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 7c18447874c..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
@@ -17,7 +17,7 @@ be_visitor_exception_cdr_op_cs::be_visitor_exception_cdr_op_cs (
{
}
-be_visitor_exception_cdr_op_cs::~be_visitor_exception_cdr_op_cs (void)
+be_visitor_exception_cdr_op_cs::~be_visitor_exception_cdr_op_cs ()
{
}
@@ -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/ctor_assign.cpp b/TAO/TAO_IDL/be/be_visitor_exception/ctor_assign.cpp
index eb6d879e173..07949f99c42 100644
--- a/TAO/TAO_IDL/be/be_visitor_exception/ctor_assign.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_exception/ctor_assign.cpp
@@ -19,7 +19,7 @@ be_visitor_exception_ctor_assign::be_visitor_exception_ctor_assign (
{
}
-be_visitor_exception_ctor_assign::~be_visitor_exception_ctor_assign (void)
+be_visitor_exception_ctor_assign::~be_visitor_exception_ctor_assign ()
{
}
@@ -48,7 +48,7 @@ be_visitor_exception_ctor_assign::visit_field (be_field *node)
this->ctx_->node (node);
// Retrieve the type.
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -344,7 +344,7 @@ be_visitor_exception_ctor_assign::visit_structure_fwd (
be_structure_fwd *node)
{
be_structure *s =
- be_structure::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_structure*> (node->full_definition ());
return this->visit_structure (s);
}
@@ -375,7 +375,7 @@ int
be_visitor_exception_ctor_assign::visit_union_fwd (be_union_fwd *node)
{
be_union *u =
- be_union::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_union*> (node->full_definition ());
return this->visit_union (u);
}
@@ -394,7 +394,7 @@ be_visitor_exception_ctor_assign::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_exception/exception.cpp b/TAO/TAO_IDL/be/be_visitor_exception/exception.cpp
index 6f41600faa1..f1e7c6b5fdb 100644
--- a/TAO/TAO_IDL/be/be_visitor_exception/exception.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_exception/exception.cpp
@@ -17,7 +17,7 @@ be_visitor_exception::be_visitor_exception (be_visitor_context *ctx)
{
}
-be_visitor_exception::~be_visitor_exception (void)
+be_visitor_exception::~be_visitor_exception ()
{
}
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 b1a89b0904d..ad0751a4dad 100644
--- a/TAO/TAO_IDL/be/be_visitor_exception/exception_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_exception/exception_ch.cpp
@@ -23,7 +23,7 @@ be_visitor_exception_ch::be_visitor_exception_ch (be_visitor_context *ctx)
{
}
-be_visitor_exception_ch::~be_visitor_exception_ch (void)
+be_visitor_exception_ch::~be_visitor_exception_ch ()
{
}
@@ -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_ci.cpp b/TAO/TAO_IDL/be/be_visitor_exception/exception_ci.cpp
index 69ffb0d436a..6cd46fd03e1 100644
--- a/TAO/TAO_IDL/be/be_visitor_exception/exception_ci.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_exception/exception_ci.cpp
@@ -16,7 +16,7 @@ be_visitor_exception_ci::be_visitor_exception_ci (be_visitor_context *ctx)
{
}
-be_visitor_exception_ci::~be_visitor_exception_ci (void)
+be_visitor_exception_ci::~be_visitor_exception_ci ()
{
}
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 c0e0427d1ba..a25dc7fb3da 100644
--- a/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp
@@ -21,7 +21,7 @@ be_visitor_exception_cs::be_visitor_exception_cs (be_visitor_context *ctx)
{
}
-be_visitor_exception_cs::~be_visitor_exception_cs (void)
+be_visitor_exception_cs::~be_visitor_exception_cs ()
{
}
@@ -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_exception/exception_ctor.cpp b/TAO/TAO_IDL/be/be_visitor_exception/exception_ctor.cpp
index 27fd2e6206f..b4730800ba1 100644
--- a/TAO/TAO_IDL/be/be_visitor_exception/exception_ctor.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_exception/exception_ctor.cpp
@@ -16,7 +16,7 @@ be_visitor_exception_ctor::be_visitor_exception_ctor (be_visitor_context *ctx)
{
}
-be_visitor_exception_ctor::~be_visitor_exception_ctor (void)
+be_visitor_exception_ctor::~be_visitor_exception_ctor ()
{
}
@@ -90,7 +90,7 @@ be_visitor_exception_ctor::visit_field (be_field *node)
TAO_OutStream *os = this->ctx_->stream (); // get output stream
// Retrieve the type.
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -119,7 +119,7 @@ int
be_visitor_exception_ctor::visit_array (be_array *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -132,7 +132,7 @@ be_visitor_exception_ctor::visit_array (be_array *node)
*os << "const ";
- be_typedef *tdef = be_typedef::narrow_from_decl (bt);
+ be_typedef *tdef = dynamic_cast<be_typedef*> (bt);
if (this->ctx_->state () != TAO_CodeGen::TAO_EXCEPTION_CTOR_CH
&& !tdef)
@@ -154,7 +154,7 @@ int
be_visitor_exception_ctor::visit_enum (be_enum *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -181,7 +181,7 @@ int
be_visitor_exception_ctor::visit_interface (be_interface *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -208,7 +208,7 @@ int
be_visitor_exception_ctor::visit_interface_fwd (be_interface_fwd *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -253,10 +253,10 @@ int
be_visitor_exception_ctor::visit_predefined_type (be_predefined_type *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
be_typedef *td = this->ctx_->alias ();
- if (td != 0)
+ if (td != nullptr)
{
bt = td;
}
@@ -315,7 +315,7 @@ int
be_visitor_exception_ctor::visit_sequence (be_sequence *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -361,7 +361,7 @@ int
be_visitor_exception_ctor::visit_structure (be_structure *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -391,7 +391,7 @@ be_visitor_exception_ctor::visit_structure_fwd (
be_structure_fwd *node)
{
be_structure *s =
- be_structure::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_structure*> (node->full_definition ());
return this->visit_structure (s);
}
@@ -400,7 +400,7 @@ int
be_visitor_exception_ctor::visit_union (be_union *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -429,7 +429,7 @@ int
be_visitor_exception_ctor::visit_union_fwd (be_union_fwd *node)
{
be_union *u =
- be_union::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_union*> (node->full_definition ());
return this->visit_union (u);
}
@@ -448,7 +448,7 @@ be_visitor_exception_ctor::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -456,7 +456,7 @@ int
be_visitor_exception_ctor::emit_common (be_type *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
diff --git a/TAO/TAO_IDL/be/be_visitor_field/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_field/cdr_op_ch.cpp
index be1477f0b21..09909a0f4fe 100644
--- a/TAO/TAO_IDL/be/be_visitor_field/cdr_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_field/cdr_op_ch.cpp
@@ -25,7 +25,7 @@ be_visitor_field_cdr_op_ch::be_visitor_field_cdr_op_ch (be_visitor_context *ctx)
}
// Destructor.
-be_visitor_field_cdr_op_ch::~be_visitor_field_cdr_op_ch (void)
+be_visitor_field_cdr_op_ch::~be_visitor_field_cdr_op_ch ()
{
}
@@ -33,7 +33,7 @@ be_visitor_field_cdr_op_ch::~be_visitor_field_cdr_op_ch (void)
int
be_visitor_field_cdr_op_ch::visit_field (be_field *node)
{
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -182,7 +182,7 @@ be_visitor_field_cdr_op_ch::visit_structure_fwd (
be_structure_fwd *node)
{
be_structure *s =
- be_structure::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_structure*> (node->full_definition ());
return this->visit_structure (s);
}
@@ -207,7 +207,7 @@ be_visitor_field_cdr_op_ch::visit_typedef (be_typedef *node)
), -1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -244,7 +244,7 @@ int
be_visitor_field_cdr_op_ch::visit_union_fwd (be_union_fwd *node)
{
be_union *u =
- be_union::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_union*> (node->full_definition ());
return this->visit_union (u);
}
diff --git a/TAO/TAO_IDL/be/be_visitor_field/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_field/cdr_op_cs.cpp
index 9c336055a34..79c2c13aff0 100644
--- a/TAO/TAO_IDL/be/be_visitor_field/cdr_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_field/cdr_op_cs.cpp
@@ -21,14 +21,14 @@ be_visitor_field_cdr_op_cs::be_visitor_field_cdr_op_cs (
{
}
-be_visitor_field_cdr_op_cs::~be_visitor_field_cdr_op_cs (void)
+be_visitor_field_cdr_op_cs::~be_visitor_field_cdr_op_cs ()
{
}
int
be_visitor_field_cdr_op_cs::visit_field (be_field *node)
{
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -81,9 +81,9 @@ be_visitor_field_cdr_op_cs::visit_array (be_array *node)
TAO_OutStream *os = this->ctx_->stream ();
be_field *f =
- be_field::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_field*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_field_cdr_op_cs::"
@@ -102,7 +102,7 @@ be_visitor_field_cdr_op_cs::visit_array (be_array *node)
'\0',
NAMEBUFSIZE);
- if (this->ctx_->alias () == 0 // Not a typedef.
+ if (this->ctx_->alias () == nullptr // Not a typedef.
&& node->is_child (this->ctx_->scope ()->decl ()))
{
// For anonymous arrays ...
@@ -112,7 +112,7 @@ be_visitor_field_cdr_op_cs::visit_array (be_array *node)
if (node->is_nested ())
{
be_decl *parent =
- be_scope::narrow_from_scope (node->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (node->defined_in ())->decl ();
ACE_OS::sprintf (fname,
"%s::_%s",
parent->full_name (),
@@ -188,9 +188,9 @@ be_visitor_field_cdr_op_cs::visit_enum (be_enum *node)
// Retrieve the field node.
be_field *f =
- be_field::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_field*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_field_cdr_op_cs::"
@@ -231,9 +231,9 @@ be_visitor_field_cdr_op_cs::visit_interface (be_interface *node)
{
TAO_OutStream *os = this->ctx_->stream ();
be_field *f =
- be_field::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_field*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_field_cdr_op_cs::"
@@ -305,9 +305,9 @@ be_visitor_field_cdr_op_cs::visit_interface_fwd (be_interface_fwd *node)
// Retrieve the field node.
be_field *f =
- be_field::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_field*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_field_cdr_op_cs::"
@@ -404,13 +404,13 @@ be_visitor_field_cdr_op_cs::visit_eventtype_fwd (be_eventtype_fwd *node)
int
-be_visitor_field_cdr_op_cs::emit_valuetype_common (void)
+be_visitor_field_cdr_op_cs::emit_valuetype_common ()
{
TAO_OutStream *os = this->ctx_->stream ();
be_field *f =
- be_field::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_field*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_field_cdr_op_cs::"
@@ -456,9 +456,9 @@ be_visitor_field_cdr_op_cs::visit_predefined_type (be_predefined_type *node)
// Retrieve the field node.
be_field *f =
- be_field::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_field*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_field_cdr_op_cs::"
@@ -579,9 +579,9 @@ be_visitor_field_cdr_op_cs::visit_sequence (be_sequence *node)
// Retrieve the field node.
be_field *f =
- be_field::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_field*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_field_cdr_op_cs::"
@@ -624,9 +624,9 @@ be_visitor_field_cdr_op_cs::visit_string (be_string *str)
// Retrieve the field node.
be_field *f =
- be_field::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_field*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_field_cdr_op_cs::"
@@ -640,7 +640,7 @@ be_visitor_field_cdr_op_cs::visit_string (be_string *str)
switch (this->ctx_->sub_state ())
{
case TAO_CodeGen::TAO_CDR_INPUT:
- if (str != 0 && str->max_size ()->ev ()->u.ulval != 0)
+ if (str != nullptr && str->max_size ()->ev ()->u.ulval != 0)
{
if (str->width () == (long) sizeof (char))
{
@@ -662,7 +662,7 @@ be_visitor_field_cdr_op_cs::visit_string (be_string *str)
break;
case TAO_CodeGen::TAO_CDR_OUTPUT:
- if (str != 0 && str->max_size ()->ev ()->u.ulval != 0)
+ if (str != nullptr && str->max_size ()->ev ()->u.ulval != 0)
{
if (str->width () == (long) sizeof (char))
{
@@ -726,9 +726,9 @@ be_visitor_field_cdr_op_cs::visit_structure (be_structure *node)
// retrieve the field node.
be_field *f =
- be_field::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_field*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_field_cdr_op_cs::"
@@ -769,7 +769,7 @@ be_visitor_field_cdr_op_cs::visit_structure_fwd (
be_structure_fwd *node)
{
be_structure *s =
- be_structure::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_structure*> (node->full_definition ());
return this->visit_structure (s);
}
@@ -789,7 +789,7 @@ be_visitor_field_cdr_op_cs::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -821,9 +821,9 @@ be_visitor_field_cdr_op_cs::visit_union (be_union *node)
// Retrieve the field node.
be_field *f =
- be_field::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_field*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_field_cdr_op_cs::"
@@ -863,7 +863,7 @@ int
be_visitor_field_cdr_op_cs::visit_union_fwd (be_union_fwd *node)
{
be_union *u =
- be_union::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_union*> (node->full_definition ());
return this->visit_union (u);
}
@@ -887,9 +887,9 @@ be_visitor_cdr_op_field_decl::be_visitor_cdr_op_field_decl (
int
be_visitor_cdr_op_field_decl::visit_field (be_field *node)
{
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
- if (bt == 0)
+ if (bt == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_cdr_op_field_decl::"
@@ -920,9 +920,9 @@ be_visitor_cdr_op_field_decl::visit_array (be_array *node)
// Retrieve the field node.
be_field *f =
- be_field::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_field*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_cdr_op_field_decl::"
@@ -939,7 +939,7 @@ be_visitor_cdr_op_field_decl::visit_array (be_array *node)
'\0',
NAMEBUFSIZE);
- if (this->ctx_->alias () == 0 // Not a typedef.
+ if (this->ctx_->alias () == nullptr // Not a typedef.
&& node->is_child (this->ctx_->scope ()->decl ()))
{
// For anonymous arrays,
@@ -949,7 +949,7 @@ be_visitor_cdr_op_field_decl::visit_array (be_array *node)
if (node->is_nested ())
{
- be_decl *parent = be_scope::narrow_from_scope (node->defined_in ())->decl ();
+ be_decl *parent = dynamic_cast<be_scope*> (node->defined_in ())->decl ();
ACE_OS::sprintf (fname,
"%s::_%s",
parent->full_name (),
@@ -1005,7 +1005,7 @@ be_visitor_cdr_op_field_decl::visit_typedef (be_typedef *node)
// The node to be visited in the base primitve type that gets typedefed.
be_type *bt = node->primitive_base_type ();
- if (bt == 0 || bt->accept (this) == -1)
+ if (bt == nullptr || bt->accept (this) == -1)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_cdr_op_field_decl::"
@@ -1014,6 +1014,6 @@ be_visitor_cdr_op_field_decl::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_field/field_ch.cpp b/TAO/TAO_IDL/be/be_visitor_field/field_ch.cpp
index 105c71840dc..46691909cae 100644
--- a/TAO/TAO_IDL/be/be_visitor_field/field_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_field/field_ch.cpp
@@ -23,7 +23,7 @@ be_visitor_field_ch::be_visitor_field_ch (be_visitor_context *ctx)
{
}
-be_visitor_field_ch::~be_visitor_field_ch (void)
+be_visitor_field_ch::~be_visitor_field_ch ()
{
}
@@ -31,7 +31,7 @@ int
be_visitor_field_ch::visit_field (be_field *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -67,7 +67,7 @@ int
be_visitor_field_ch::visit_array (be_array *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -137,7 +137,7 @@ int
be_visitor_field_ch::visit_enum (be_enum *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -226,7 +226,7 @@ int
be_visitor_field_ch::emit_common (be_type *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -261,10 +261,10 @@ int
be_visitor_field_ch::visit_predefined_type (be_predefined_type *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
be_typedef *td = this->ctx_->alias ();
- if (td != 0)
+ if (td != nullptr)
{
bt = td;
}
@@ -296,7 +296,7 @@ int
be_visitor_field_ch::visit_sequence (be_sequence *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -313,7 +313,7 @@ be_visitor_field_ch::visit_sequence (be_sequence *node)
// Put the field node into the (anonymous) sequence node, to be
// used later for unique name generation.
be_field *member_node =
- be_field::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_field*> (this->ctx_->node ());
node->field_node (member_node);
// This was already generated in the corresponding valuetype class.
@@ -357,7 +357,7 @@ be_visitor_field_ch::visit_sequence (be_sequence *node)
// ACE_NESTED_CLASS macro generated by nested_type_name
// is not necessary in all cases.
- be_typedef *tdef = be_typedef::narrow_from_decl (bt);
+ be_typedef *tdef = dynamic_cast<be_typedef*> (bt);
// This was a typedefed array.
// ACE_NESTED_CLASS macro generated by nested_type_name
@@ -402,7 +402,7 @@ int
be_visitor_field_ch::visit_structure (be_structure *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -456,7 +456,7 @@ int
be_visitor_field_ch::visit_structure_fwd (be_structure_fwd *node)
{
be_structure *s =
- be_structure::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_structure*> (node->full_definition ());
return this->visit_structure (s);
}
@@ -479,7 +479,7 @@ be_visitor_field_ch::visit_typedef (be_typedef *node)
}
// Reset the alias.
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -487,7 +487,7 @@ int
be_visitor_field_ch::visit_union (be_union *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -543,7 +543,7 @@ int
be_visitor_field_ch::visit_union_fwd (be_union_fwd *node)
{
be_union *u =
- be_union::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_union*> (node->full_definition ());
return this->visit_union (u);
}
diff --git a/TAO/TAO_IDL/be/be_visitor_field/field_ci.cpp b/TAO/TAO_IDL/be/be_visitor_field/field_ci.cpp
index eae1db16f16..07781ae74ff 100644
--- a/TAO/TAO_IDL/be/be_visitor_field/field_ci.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_field/field_ci.cpp
@@ -19,7 +19,7 @@ be_visitor_field_ci::be_visitor_field_ci (be_visitor_context *ctx)
{
}
-be_visitor_field_ci::~be_visitor_field_ci (void)
+be_visitor_field_ci::~be_visitor_field_ci ()
{
}
@@ -27,7 +27,7 @@ int
be_visitor_field_ci::visit_field (be_field *node)
{
be_type *bt =
- be_type::narrow_from_decl (node->field_type ());
+ dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -111,7 +111,7 @@ be_visitor_field_ci::visit_structure_fwd (
be_structure_fwd *node)
{
be_structure *s =
- be_structure::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_structure*> (node->full_definition ());
return this->visit_structure (s);
}
@@ -131,7 +131,7 @@ be_visitor_field_ci::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -162,7 +162,7 @@ int
be_visitor_field_ci::visit_union_fwd (be_union_fwd *node)
{
be_union *u =
- be_union::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_union*> (node->full_definition ());
return this->visit_union (u);
}
diff --git a/TAO/TAO_IDL/be/be_visitor_field/field_cs.cpp b/TAO/TAO_IDL/be/be_visitor_field/field_cs.cpp
index 93bfe7181fb..8ba93034609 100644
--- a/TAO/TAO_IDL/be/be_visitor_field/field_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_field/field_cs.cpp
@@ -25,14 +25,14 @@ be_visitor_field_cs::be_visitor_field_cs (be_visitor_context *ctx)
{
}
-be_visitor_field_cs::~be_visitor_field_cs (void)
+be_visitor_field_cs::~be_visitor_field_cs ()
{
}
int
be_visitor_field_cs::visit_field (be_field *node)
{
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -154,7 +154,7 @@ be_visitor_field_cs::visit_structure_fwd (
be_structure_fwd *node)
{
be_structure *s =
- be_structure::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_structure*> (node->full_definition ());
return this->visit_structure (s);
}
@@ -174,7 +174,7 @@ be_visitor_field_cs::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -205,7 +205,7 @@ int
be_visitor_field_cs::visit_union_fwd (be_union_fwd *node)
{
be_union *u =
- be_union::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_union*> (node->full_definition ());
return this->visit_union (u);
}
diff --git a/TAO/TAO_IDL/be/be_visitor_home/home_ex_idl.cpp b/TAO/TAO_IDL/be/be_visitor_home/home_ex_idl.cpp
index 6aef08a239e..6d989d0bda9 100644
--- a/TAO/TAO_IDL/be/be_visitor_home/home_ex_idl.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_home/home_ex_idl.cpp
@@ -14,12 +14,12 @@
be_visitor_home_ex_idl::be_visitor_home_ex_idl (
be_visitor_context *ctx)
: be_visitor_scope (ctx),
- node_ (0),
+ node_ (nullptr),
os_ (*ctx->stream ())
{
}
-be_visitor_home_ex_idl::~be_visitor_home_ex_idl (void)
+be_visitor_home_ex_idl::~be_visitor_home_ex_idl ()
{
}
@@ -62,7 +62,7 @@ be_visitor_home_ex_idl::visit_attribute (be_attribute *node)
os_ << be_nl
<< (rd_only ? "readonly " : "") << "attribute ";
- be_type *ft = be_type::narrow_from_decl (node->field_type ());
+ be_type *ft = dynamic_cast<be_type*> (node->field_type ());
os_ << IdentifierHelper::type_name (ft, this);
os_ << " "
@@ -89,7 +89,7 @@ be_visitor_home_ex_idl::visit_operation (be_operation *node)
os_ << "oneway ";
}
- be_type *rt = be_type::narrow_from_decl (node->return_type ());
+ be_type *rt = dynamic_cast<be_type*> (node->return_type ());
os_ << IdentifierHelper::type_name (rt, this);
@@ -136,7 +136,7 @@ be_visitor_home_ex_idl::visit_argument (be_argument *node)
return -1;
}
- be_type *ft = be_type::narrow_from_decl (node->field_type ());
+ be_type *ft = dynamic_cast<be_type*> (node->field_type ());
os_ << IdentifierHelper::type_name (ft, this)
<< " "
@@ -178,7 +178,7 @@ be_visitor_home_ex_idl::visit_sequence (be_sequence *node)
// Keep output statements separate because of side effects.
os_ << "sequence<";
- be_type *bt = be_type::narrow_from_decl (node->base_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->base_type ());
os_ << IdentifierHelper::type_name (bt, this);
@@ -210,7 +210,7 @@ be_visitor_home_ex_idl::visit_string (be_string *node)
}
void
-be_visitor_home_ex_idl::gen_implicit (void)
+be_visitor_home_ex_idl::gen_implicit ()
{
os_ << be_nl
<< "local interface CCM_"
@@ -224,7 +224,7 @@ be_visitor_home_ex_idl::gen_implicit (void)
}
void
-be_visitor_home_ex_idl::gen_explicit (void)
+be_visitor_home_ex_idl::gen_explicit ()
{
os_ << be_nl_2
<< "local interface CCM_"
@@ -234,7 +234,7 @@ be_visitor_home_ex_idl::gen_explicit (void)
AST_Home *base = node_->base_home ();
- if (base == 0)
+ if (base == nullptr)
{
os_ << "::Components::HomeExecutorBase";
@@ -270,7 +270,7 @@ be_visitor_home_ex_idl::gen_explicit (void)
}
void
-be_visitor_home_ex_idl::gen_derived (void)
+be_visitor_home_ex_idl::gen_derived ()
{
ACE_CString lname_str =
IdentifierHelper::try_escape (node_->original_local_name ());
@@ -285,7 +285,7 @@ be_visitor_home_ex_idl::gen_derived (void)
}
void
-be_visitor_home_ex_idl::gen_supported (void)
+be_visitor_home_ex_idl::gen_supported ()
{
os_ << be_idt;
@@ -309,7 +309,7 @@ be_visitor_home_ex_idl::gen_exception_list (
{
ACE_CDR::Long cutoff = (init_op ? 1 : 0);
- if (exceptions != 0 && exceptions->length () > cutoff)
+ if (exceptions != nullptr && exceptions->length () > cutoff)
{
os_ << be_idt_nl
<< prefix << "raises ( ";
@@ -351,7 +351,7 @@ be_visitor_home_ex_idl::gen_exception_list (
}
void
-be_visitor_home_ex_idl::gen_home_executor (void)
+be_visitor_home_ex_idl::gen_home_executor ()
{
AST_Component *comp = node_->managed_component ();
AST_Decl *scope = ScopeAsDecl (node_->defined_in ());
@@ -377,7 +377,7 @@ be_visitor_home_ex_idl::gen_home_executor (void)
}
void
-be_visitor_home_ex_idl::restore_scope (void)
+be_visitor_home_ex_idl::restore_scope ()
{
for (UTL_ScopeActiveIterator iter (node_, UTL_Scope::IK_decls);
! iter.is_done ();
@@ -389,7 +389,7 @@ be_visitor_home_ex_idl::restore_scope (void)
UTL_ScopedName *nconc_name =
new UTL_ScopedName (d->local_name ()->copy (),
- 0);
+ nullptr);
UTL_ScopedName *new_name =
dynamic_cast<UTL_ScopedName *> (node_->name ()->copy ());
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 7214009bfca..c0953bcfbb7 100644
--- a/TAO/TAO_IDL/be/be_visitor_home/home_exh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_home/home_exh.cpp
@@ -13,14 +13,14 @@
be_visitor_home_exh::be_visitor_home_exh (be_visitor_context *ctx)
: be_visitor_scope (ctx),
- node_ (0),
- comp_ (0),
+ node_ (nullptr),
+ comp_ (nullptr),
os_ (*ctx->stream ()),
export_macro_ (be_global->exec_export_macro ())
{
}
-be_visitor_home_exh::~be_visitor_home_exh (void)
+be_visitor_home_exh::~be_visitor_home_exh ()
{
}
@@ -35,8 +35,7 @@ be_visitor_home_exh::visit_home (be_home *node)
node_ = node;
comp_ = node_->managed_component ();
- /// CIDL-generated namespace used 'CIDL_' + composition name.
- /// Now we use 'CIAO_' + component's flat name.
+ /// Use 'CIAO_' + component's flat name.
os_ << be_nl_2
<< "namespace CIAO_" << comp_->flat_name () << "_Impl" << be_nl
<< "{" << be_idt;
@@ -99,7 +98,7 @@ be_visitor_home_exh::visit_factory (be_factory *node)
}
int
-be_visitor_home_exh::gen_exec_class (void)
+be_visitor_home_exh::gen_exec_class ()
{
// We don't want a '_cxx_' prefix here.
const char *lname =
@@ -120,15 +119,15 @@ be_visitor_home_exh::gen_exec_class (void)
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_;
- while (h != 0)
+ while (h != nullptr)
{
if (this->visit_scope (h) != 0)
{
@@ -144,7 +143,7 @@ be_visitor_home_exh::gen_exec_class (void)
// A closure of all the supported interfaces is stored
// in the base class 'pd_inherits_flat' member.
be_interface *bi =
- be_interface::narrow_from_decl (h->inherits ()[i]);
+ dynamic_cast<be_interface*> (h->inherits ()[i]);
int status =
bi->traverse_inheritance_graph (
@@ -163,14 +162,14 @@ be_visitor_home_exh::gen_exec_class (void)
}
}
- h = be_home::narrow_from_decl (h->base_home ());
+ h = dynamic_cast<be_home*> (h->base_home ());
}
os_ << be_nl_2
<< "/// Factory method";
os_ << be_nl
- << "virtual ::Components::EnterpriseComponent_ptr create (void);";
+ << "virtual ::Components::EnterpriseComponent_ptr create ();";
os_ << be_uidt_nl
<< "};";
@@ -179,14 +178,14 @@ be_visitor_home_exh::gen_exec_class (void)
}
void
-be_visitor_home_exh::gen_entrypoint (void)
+be_visitor_home_exh::gen_entrypoint ()
{
os_ << be_nl_2
<< "/// Factory method for " << node_->full_name () << be_nl
<< "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 4d85b77fe57..634b9cb3ae0 100644
--- a/TAO/TAO_IDL/be/be_visitor_home/home_exs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_home/home_exs.cpp
@@ -13,8 +13,8 @@
be_visitor_home_exs::be_visitor_home_exs (be_visitor_context *ctx)
: be_visitor_scope (ctx),
- node_ (0),
- comp_ (0),
+ node_ (nullptr),
+ comp_ (nullptr),
os_ (*ctx->stream ()),
comment_start_border_ ("/**"),
comment_end_border_ (" */"),
@@ -23,7 +23,7 @@ be_visitor_home_exs::be_visitor_home_exs (be_visitor_context *ctx)
{
}
-be_visitor_home_exs::~be_visitor_home_exs (void)
+be_visitor_home_exs::~be_visitor_home_exs ()
{
}
@@ -38,8 +38,7 @@ be_visitor_home_exs::visit_home (be_home *node)
node_ = node;
comp_ = node_->managed_component ();
- /// CIDL-generated namespace used 'CIDL_' + composition name.
- /// Now we use 'CIAO_' + component's flat name.
+ /// Use 'CIAO_' + component's flat name.
os_ << be_nl_2
<< "namespace CIAO_" << comp_->flat_name () << "_Impl" << be_nl
<< "{" << be_idt;
@@ -114,7 +113,7 @@ be_visitor_home_exs::visit_factory (be_factory *node)
}
int
-be_visitor_home_exs::gen_exec_class (void)
+be_visitor_home_exs::gen_exec_class ()
{
// No '_cxx_' prefix.
const char *lname =
@@ -127,18 +126,18 @@ be_visitor_home_exs::gen_exec_class (void)
<< 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
<< "}";
be_home *h = node_;
- while (h != 0)
+ while (h != nullptr)
{
if (this->visit_scope (h) != 0)
{
@@ -155,7 +154,7 @@ be_visitor_home_exs::gen_exec_class (void)
// A closure of all the supported interfaces is stored
// in the base class 'pd_inherits_flat' member.
be_interface *bi =
- be_interface::narrow_from_decl (h->inherits ()[i]);
+ dynamic_cast<be_interface*> (h->inherits ()[i]);
bi->get_insert_queue ().reset ();
bi->get_del_queue ().reset ();
@@ -181,7 +180,7 @@ be_visitor_home_exs::gen_exec_class (void)
}
}
- h = be_home::narrow_from_decl (h->base_home ());
+ h = dynamic_cast<be_home*> (h->base_home ());
}
os_ << be_nl_2
@@ -189,7 +188,7 @@ be_visitor_home_exs::gen_exec_class (void)
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
@@ -208,13 +207,13 @@ be_visitor_home_exs::gen_exec_class (void)
}
void
-be_visitor_home_exs::gen_entrypoint (void)
+be_visitor_home_exs::gen_entrypoint ()
{
os_ << be_nl_2
<< "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 cc21257c2b8..dcf444cd61b 100644
--- a/TAO/TAO_IDL/be/be_visitor_home/home_svh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_home/home_svh.cpp
@@ -13,8 +13,8 @@
be_visitor_home_svh::be_visitor_home_svh (be_visitor_context *ctx)
: be_visitor_scope (ctx),
- node_ (0),
- comp_ (0),
+ node_ (nullptr),
+ comp_ (nullptr),
os_ (*ctx->stream ()),
export_macro_ (be_global->svnt_export_macro ())
{
@@ -28,7 +28,7 @@ be_visitor_home_svh::be_visitor_home_svh (be_visitor_context *ctx)
}
}
-be_visitor_home_svh::~be_visitor_home_svh (void)
+be_visitor_home_svh::~be_visitor_home_svh ()
{
}
@@ -44,8 +44,7 @@ be_visitor_home_svh::visit_home (be_home *node)
node_ = node;
comp_ = node_->managed_component ();
- /// CIDL-generated namespace used 'CIDL_' + composition name.
- /// Now we use 'CIAO_' + component's flat name.
+ /// Use 'CIAO_' + component's flat name.
os_ << be_nl_2
<< "namespace CIAO_" << comp_->flat_name () << "_Impl" << be_nl
<< "{" << be_idt;
@@ -87,7 +86,7 @@ be_visitor_home_svh::visit_factory (be_factory *node)
// An inherited factory/finder needs to return the managed
// component of the home where it is defined.
be_home *h =
- be_home::narrow_from_scope (node->defined_in ());
+ dynamic_cast<be_home*> (node->defined_in ());
AST_Component *c = h->managed_component ();
@@ -120,7 +119,7 @@ be_visitor_home_svh::visit_finder (be_finder *node)
}
int
-be_visitor_home_svh::gen_servant_class (void)
+be_visitor_home_svh::gen_servant_class ()
{
AST_Decl *scope = ScopeAsDecl (node_->defined_in ());
ACE_CString sname_str (scope->full_name ());
@@ -154,7 +153,7 @@ be_visitor_home_svh::gen_servant_class (void)
<< "_Container_ptr c);" << be_uidt;
os_ << be_nl_2
- << "virtual ~" << lname << "_Servant (void);";
+ << "virtual ~" << lname << "_Servant ();";
if (this->node_->has_rw_attributes ())
{
@@ -166,7 +165,7 @@ be_visitor_home_svh::gen_servant_class (void)
AST_Type *pk = node_->primary_key ();
- if (pk != 0)
+ if (pk != nullptr)
{
os_ << be_nl_2
<< "// Implicit home primary key operations - not supported.";
@@ -200,7 +199,7 @@ AST_Type *pk = node_->primary_key ();
be_home *h = node_;
- while (h != 0)
+ while (h != nullptr)
{
if (this->visit_scope (h) != 0)
{
@@ -216,7 +215,7 @@ AST_Type *pk = node_->primary_key ();
// A closure of all the supported interfaces is stored
// in the base class 'pd_inherits_flat' member.
be_interface *bi =
- be_interface::narrow_from_decl (h->inherits ()[i]);
+ dynamic_cast<be_interface*> (h->inherits ()[i]);
int status =
bi->traverse_inheritance_graph (
@@ -235,7 +234,7 @@ AST_Type *pk = node_->primary_key ();
}
}
- h = be_home::narrow_from_decl (h->base_home ());
+ h = dynamic_cast<be_home*> (h->base_home ());
}
os_ << be_uidt_nl
@@ -245,7 +244,7 @@ AST_Type *pk = node_->primary_key ();
}
void
-be_visitor_home_svh::gen_entrypoint (void)
+be_visitor_home_svh::gen_entrypoint ()
{
os_ << be_nl_2
<< "extern \"C\" " << export_macro_.c_str ()
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 12d36a276ef..805646d81b7 100644
--- a/TAO/TAO_IDL/be/be_visitor_home/home_svs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_home/home_svs.cpp
@@ -13,8 +13,8 @@
be_visitor_home_svs::be_visitor_home_svs (be_visitor_context *ctx)
: be_visitor_scope (ctx),
- node_ (0),
- comp_ (0),
+ node_ (nullptr),
+ comp_ (nullptr),
os_ (*ctx->stream ()),
export_macro_ (be_global->svnt_export_macro ()),
for_finder_ (false)
@@ -29,7 +29,7 @@ be_visitor_home_svs::be_visitor_home_svs (be_visitor_context *ctx)
}
}
-be_visitor_home_svs::~be_visitor_home_svs (void)
+be_visitor_home_svs::~be_visitor_home_svs ()
{
}
@@ -44,8 +44,7 @@ be_visitor_home_svs::visit_home (be_home *node)
node_ = node;
comp_ = node_->managed_component ();
- /// CIDL-generated namespace used 'CIDL_' + composition name.
- /// Now we use 'CIAO_' + component's flat name.
+ /// Use 'CIAO_' + component's flat name.
os_ << be_nl_2
<< "namespace CIAO_" << comp_->flat_name () << "_Impl" << be_nl
<< "{" << be_idt;
@@ -102,7 +101,7 @@ be_visitor_home_svs::visit_factory (be_factory *node)
// An inherited factory/finder needs to return the managed
// component of the home where it is defined.
be_home *h =
- be_home::narrow_from_scope (node->defined_in ());
+ dynamic_cast<be_home*> (node->defined_in ());
AST_Component *c = h->managed_component ();
@@ -204,7 +203,7 @@ be_visitor_home_svs::visit_finder (be_finder *node)
}
int
-be_visitor_home_svs::gen_servant_class (void)
+be_visitor_home_svs::gen_servant_class ()
{
AST_Decl *scope = ScopeAsDecl (node_->defined_in ());
ACE_CString sname_str (scope->full_name ());
@@ -236,7 +235,7 @@ be_visitor_home_svs::gen_servant_class (void)
<< "}";
os_ << be_nl_2
- << lname << "_Servant::~" << lname << "_Servant (void)"
+ << lname << "_Servant::~" << lname << "_Servant ()"
<< be_nl
<< "{" << be_nl
<< "}";
@@ -275,7 +274,7 @@ be_visitor_home_svs::gen_servant_class (void)
AST_Type *pk = node_->primary_key ();
- if (pk != 0)
+ if (pk != nullptr)
{
os_ << be_nl_2
<< "::" << comp_->name () << "_ptr" << be_nl
@@ -330,7 +329,7 @@ be_visitor_home_svs::gen_servant_class (void)
be_home *h = node_;
- while (h != 0)
+ while (h != nullptr)
{
if (this->visit_scope (h) != 0)
{
@@ -346,7 +345,7 @@ be_visitor_home_svs::gen_servant_class (void)
// A closure of all the supported interfaces is stored
// in the base class 'pd_inherits_flat' member.
be_interface *bi =
- be_interface::narrow_from_decl (h->inherits ()[i]);
+ dynamic_cast<be_interface*> (h->inherits ()[i]);
bi->get_insert_queue ().reset ();
bi->get_del_queue ().reset ();
@@ -373,14 +372,14 @@ be_visitor_home_svs::gen_servant_class (void)
}
- h = be_home::narrow_from_decl (h->base_home ());
+ h = dynamic_cast<be_home*> (h->base_home ());
}
return 0;
}
void
-be_visitor_home_svs::gen_entrypoint (void)
+be_visitor_home_svs::gen_entrypoint ()
{
ACE_CString sname_str (
ScopeAsDecl (node_->defined_in ())->full_name ());
@@ -443,14 +442,14 @@ be_visitor_home_attr_set::be_visitor_home_attr_set (
{
}
-be_visitor_home_attr_set::~be_visitor_home_attr_set (void)
+be_visitor_home_attr_set::~be_visitor_home_attr_set ()
{
}
int
be_visitor_home_attr_set::visit_home (be_home *node)
{
- if (node == 0)
+ if (node == nullptr)
{
return 0;
}
@@ -459,7 +458,7 @@ be_visitor_home_attr_set::visit_home (be_home *node)
!i.is_done ();
i.next ())
{
- be_decl *d = be_decl::narrow_from_decl (i.item ());
+ be_decl *d = dynamic_cast<be_decl*> (i.item ());
if (d->accept (this) == -1)
{
@@ -471,7 +470,7 @@ be_visitor_home_attr_set::visit_home (be_home *node)
}
}
- be_home *h = be_home::narrow_from_decl (node->base_home ());
+ be_home *h = dynamic_cast<be_home*> (node->base_home ());
return this->visit_home (h);
}
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/amh_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface/amh_ch.cpp
index f73289a33df..98ef62a49d4 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/amh_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/amh_ch.cpp
@@ -17,7 +17,7 @@ be_visitor_amh_interface_ch::be_visitor_amh_interface_ch (
{
}
-be_visitor_amh_interface_ch::~be_visitor_amh_interface_ch (void)
+be_visitor_amh_interface_ch::~be_visitor_amh_interface_ch ()
{
}
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 f5f4cd4bb34..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
@@ -17,7 +17,7 @@ be_visitor_amh_rh_interface_sh::be_visitor_amh_rh_interface_sh (
{
}
-be_visitor_amh_rh_interface_sh::~be_visitor_amh_rh_interface_sh (void)
+be_visitor_amh_rh_interface_sh::~be_visitor_amh_rh_interface_sh ()
{
}
@@ -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 9c8a8d087be..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
@@ -17,7 +17,7 @@ be_visitor_amh_rh_interface_ss::be_visitor_amh_rh_interface_ss (
{
}
-be_visitor_amh_rh_interface_ss::~be_visitor_amh_rh_interface_ss (void)
+be_visitor_amh_rh_interface_ss::~be_visitor_amh_rh_interface_ss ()
{
}
@@ -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 a4945489238..74a665c0482 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/amh_sh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/amh_sh.cpp
@@ -17,7 +17,7 @@ be_visitor_amh_interface_sh::be_visitor_amh_interface_sh (
{
}
-be_visitor_amh_interface_sh::~be_visitor_amh_interface_sh (void)
+be_visitor_amh_interface_sh::~be_visitor_amh_interface_sh ()
{
}
@@ -34,7 +34,7 @@ be_visitor_amh_interface_sh::visit_interface (be_interface *node)
}
// Do not generate AMH classes for any sort of implied IDL.
- if (node->original_interface () != 0)
+ if (node->original_interface () != nullptr)
{
return 0;
}
@@ -78,9 +78,9 @@ be_visitor_amh_interface_sh::visit_interface (be_interface *node)
ACE_CString amh_name ("POA_");
// @@ The following code is *NOT* exception-safe.
- char *buf = 0;
+ char *buf = nullptr;
be_interface *base =
- be_interface::narrow_from_decl (node->inherits ()[i]);
+ dynamic_cast<be_interface*> (node->inherits ()[i]);
base->compute_full_name ("AMH_", "", buf);
amh_name += buf;
// buf was allocated by ACE_OS::strdup, so we need to use free
@@ -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)
{
@@ -189,7 +189,7 @@ be_visitor_amh_interface_sh::add_original_members (be_interface *node,
if (d->node_type () == AST_Decl::NT_attr)
{
- be_attribute *attribute = be_attribute::narrow_from_decl (d);
+ be_attribute *attribute = dynamic_cast<be_attribute*> (d);
if (!attribute)
{
@@ -198,7 +198,7 @@ be_visitor_amh_interface_sh::add_original_members (be_interface *node,
}
else
{
- be_operation* operation = be_operation::narrow_from_decl (d);
+ be_operation* operation = dynamic_cast<be_operation*> (d);
if (operation)
{
@@ -226,8 +226,8 @@ be_visitor_amh_interface_sh::add_amh_operation (be_operation *node,
return 0;
}
- Identifier *id = 0;
- UTL_ScopedName *sn = 0;
+ Identifier *id = nullptr;
+ UTL_ScopedName *sn = nullptr;
ACE_NEW_RETURN (id,
Identifier ("void"),
@@ -235,11 +235,11 @@ be_visitor_amh_interface_sh::add_amh_operation (be_operation *node,
ACE_NEW_RETURN (sn,
UTL_ScopedName (id,
- 0),
+ nullptr),
-1);
// Create the return type, which is "void"
- be_predefined_type *rt = 0;
+ be_predefined_type *rt = nullptr;
ACE_NEW_RETURN (rt,
be_predefined_type (AST_PredefinedType::PT_void,
sn),
@@ -258,13 +258,13 @@ be_visitor_amh_interface_sh::add_amh_operation (be_operation *node,
ACE_NEW_RETURN (sn,
UTL_ScopedName (id,
- 0),
+ nullptr),
-1);
op_name->nconc (sn);
// Create the operation
- be_operation *operation = 0;
+ be_operation *operation = nullptr;
ACE_NEW_RETURN (operation,
be_operation (rt, //node->return_type (),
AST_Operation::OP_noflags,
@@ -290,7 +290,7 @@ be_visitor_amh_interface_sh::add_amh_operation (be_operation *node,
{
operation->destroy ();
delete operation;
- operation = 0;
+ operation = nullptr;
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_amh_pre_proc::")
@@ -301,13 +301,13 @@ be_visitor_amh_interface_sh::add_amh_operation (be_operation *node,
}
AST_Argument *original_arg =
- AST_Argument::narrow_from_decl (d);
+ dynamic_cast<AST_Argument*> (d);
if (original_arg->direction () == AST_Argument::dir_INOUT ||
original_arg->direction () == AST_Argument::dir_IN)
{
// Create the argument.
- be_argument *arg = 0;
+ be_argument *arg = nullptr;
ACE_NEW_RETURN (arg,
be_argument (original_arg->direction (),
original_arg->field_type (),
@@ -323,7 +323,7 @@ be_visitor_amh_interface_sh::add_amh_operation (be_operation *node,
// After having generated the operation we insert it into the
// AMH node interface.
- if (0 == amh_node->be_add_operation (operation))
+ if (nullptr == amh_node->be_add_operation (operation))
{
return -1;
}
@@ -335,27 +335,27 @@ be_visitor_amh_interface_sh::add_amh_operation (be_operation *node,
be_interface *
be_visitor_amh_interface_sh::create_amh_class (ACE_CString name)
{
- Identifier *id = 0;
+ Identifier *id = nullptr;
ACE_NEW_RETURN (id,
Identifier (name.c_str ()),
- 0);
+ nullptr);
- UTL_ScopedName *amh_class_name = 0;
+ UTL_ScopedName *amh_class_name = nullptr;
ACE_NEW_RETURN (amh_class_name,
UTL_ScopedName (id,
- 0),
- 0);
+ nullptr),
+ nullptr);
- be_interface *amh_class = 0;
+ be_interface *amh_class = nullptr;
ACE_NEW_RETURN (amh_class,
be_interface (amh_class_name, // name
- 0, // list of inherited
+ nullptr, // list of inherited
0, // number of inherited
- 0, // list of ancestors
+ nullptr, // list of ancestors
0, // number of ancestors
0, // non-local
0), // non-abstract
- 0);
+ nullptr);
amh_class->set_name (amh_class_name);
return amh_class;
@@ -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 766f8e5a6f2..e792b18f3c4 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/amh_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/amh_ss.cpp
@@ -16,7 +16,7 @@ be_visitor_amh_interface_ss::be_visitor_amh_interface_ss (
{
}
-be_visitor_amh_interface_ss::~be_visitor_amh_interface_ss (void)
+be_visitor_amh_interface_ss::~be_visitor_amh_interface_ss ()
{
}
@@ -38,7 +38,7 @@ int
be_visitor_amh_interface_ss::visit_interface (be_interface *node)
{
// Do not generate AMH classes for any sort of implied IDL.
- if (node->original_interface () != 0)
+ if (node->original_interface () != nullptr)
{
return 0;
}
@@ -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 ()->"
@@ -79,7 +79,7 @@ be_visitor_amh_interface_ss::this_method (be_interface *node)
<< "ACE_NEW_RETURN (" << be_idt << be_idt_nl
<< "tmp," << be_nl
<< "::CORBA::Object (stub, _tao_opt_colloc, this)," << be_nl
- << "0" << be_uidt_nl
+ << "nullptr" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
*os << "::CORBA::Object_var obj = tmp;" << be_nl
@@ -157,7 +157,7 @@ public:
};
TAO_IDL_Downcast_Implementation_Worker::
-TAO_IDL_Downcast_Implementation_Worker (void)
+TAO_IDL_Downcast_Implementation_Worker ()
{
}
@@ -173,7 +173,7 @@ emit (be_interface * /* derived */,
ACE_CString amh_name ("POA_");
// @@ The following code is *NOT* exception-safe.
- char *buf = 0;
+ char *buf = nullptr;
base->compute_full_name ("AMH_", "", buf);
amh_name += buf;
// buf was allocated using ACE_OS::strdup, so we must use free instead
@@ -194,14 +194,14 @@ class TAO_IDL_Copy_Ctor_Worker
: public TAO_IDL_Inheritance_Hierarchy_Worker
{
public:
- TAO_IDL_Copy_Ctor_Worker (void);
+ TAO_IDL_Copy_Ctor_Worker ();
virtual int emit (be_interface *base,
TAO_OutStream *os,
be_interface *derived);
};
-TAO_IDL_Copy_Ctor_Worker::TAO_IDL_Copy_Ctor_Worker (void)
+TAO_IDL_Copy_Ctor_Worker::TAO_IDL_Copy_Ctor_Worker ()
{
}
@@ -219,8 +219,8 @@ TAO_IDL_Copy_Ctor_Worker::emit (be_interface *derived,
if (base->is_nested ())
{
- be_decl *scope = 0;
- scope = be_scope::narrow_from_scope (base->defined_in ())->decl ();
+ be_decl *scope = nullptr;
+ scope = dynamic_cast<be_scope*> (base->defined_in ())->decl ();
*os << "POA_" << scope->name () << "::AMH_"
<< base->local_name () << " (rhs)";
@@ -233,7 +233,7 @@ TAO_IDL_Copy_Ctor_Worker::emit (be_interface *derived,
ACE_CString amh_name ("POA_");
// @@ The following code is *NOT* exception-safe.
- char *buf = 0;
+ char *buf = nullptr;
base->compute_full_name ("AMH_", "", buf);
amh_name += buf;
// buf was allocated by ACE_OS::strdup, so we need to use free
@@ -275,7 +275,7 @@ ACE_CString
be_visitor_amh_interface_ss::generate_flat_name (be_interface *node)
{
// @@ The following code is *NOT* exception-safe.
- char *buf = 0;
+ char *buf = nullptr;
node->compute_flat_name ("AMH_", "", buf);
// @@ This whole thing would be more efficient if we could pass the
@@ -306,7 +306,7 @@ be_visitor_amh_interface_ss::generate_full_skel_name (be_interface *node)
ACE_CString result ("POA_");
// @@ The following code is *NOT* exception-safe.
- char *buf = 0;
+ char *buf = nullptr;
node->compute_full_name ("AMH_", "", buf);
result += buf;
// buf was allocated using ACE_OS::strdup, so we must use free instead
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/ami4ccm_conn_ex_idl.cpp b/TAO/TAO_IDL/be/be_visitor_interface/ami4ccm_conn_ex_idl.cpp
index c7c001a671b..ceee283915f 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/ami4ccm_conn_ex_idl.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/ami4ccm_conn_ex_idl.cpp
@@ -18,7 +18,7 @@ be_visitor_ami4ccm_conn_ex_idl::be_visitor_ami4ccm_conn_ex_idl (
{
}
-be_visitor_ami4ccm_conn_ex_idl::~be_visitor_ami4ccm_conn_ex_idl (void)
+be_visitor_ami4ccm_conn_ex_idl::~be_visitor_ami4ccm_conn_ex_idl ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/ami4ccm_rh_ex_idl.cpp b/TAO/TAO_IDL/be/be_visitor_interface/ami4ccm_rh_ex_idl.cpp
index 2eeb3cb4307..4947b6291e4 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/ami4ccm_rh_ex_idl.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/ami4ccm_rh_ex_idl.cpp
@@ -19,7 +19,7 @@ be_visitor_ami4ccm_rh_ex_idl::be_visitor_ami4ccm_rh_ex_idl (
{
}
-be_visitor_ami4ccm_rh_ex_idl::~be_visitor_ami4ccm_rh_ex_idl (void)
+be_visitor_ami4ccm_rh_ex_idl::~be_visitor_ami4ccm_rh_ex_idl ()
{
}
@@ -106,7 +106,7 @@ be_visitor_ami4ccm_rh_ex_idl::visit_operation (be_operation *node)
if (!node->void_return_type ())
{
be_type *t =
- be_type::narrow_from_decl (node->return_type ());
+ dynamic_cast<be_type*> (node->return_type ());
os_ << be_nl
<< "in "
@@ -158,7 +158,7 @@ be_visitor_ami4ccm_rh_ex_idl::visit_argument (be_argument *node)
}
be_type *t =
- be_type::narrow_from_decl (node->field_type ());
+ dynamic_cast<be_type*> (node->field_type ());
os_ << be_nl
<< "in ";
@@ -206,18 +206,18 @@ int
be_visitor_ami4ccm_rh_ex_idl::pre_process (be_decl *node)
{
be_operation *op =
- be_operation::narrow_from_scope (this->ctx_->scope ());
+ dynamic_cast<be_operation*> (this->ctx_->scope ());
- if (op == 0)
+ if (op == nullptr)
{
return 0;
}
bool void_ret_type = op->void_return_type ();
- be_argument *arg = be_argument::narrow_from_decl (node);
+ be_argument *arg = dynamic_cast<be_argument*> (node);
- if (arg == 0)
+ if (arg == nullptr)
{
return 0;
}
@@ -258,7 +258,7 @@ be_visitor_ami4ccm_rh_ex_idl::gen_attr_rh_ops (bool is_set_op,
if (!is_set_op)
{
be_type *t =
- be_type::narrow_from_decl (node->field_type ());
+ dynamic_cast<be_type*> (node->field_type ());
os_ << be_idt_nl << "in ";
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/ami4ccm_sendc_ex_idl.cpp b/TAO/TAO_IDL/be/be_visitor_interface/ami4ccm_sendc_ex_idl.cpp
index 1cbc59cd559..c0bab2857f8 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/ami4ccm_sendc_ex_idl.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/ami4ccm_sendc_ex_idl.cpp
@@ -15,11 +15,11 @@ be_visitor_ami4ccm_sendc_ex_idl::be_visitor_ami4ccm_sendc_ex_idl (
be_visitor_context *ctx)
: be_visitor_scope (ctx),
os_ (*ctx->stream ()),
- iface_ (0)
+ iface_ (nullptr)
{
}
-be_visitor_ami4ccm_sendc_ex_idl::~be_visitor_ami4ccm_sendc_ex_idl (void)
+be_visitor_ami4ccm_sendc_ex_idl::~be_visitor_ami4ccm_sendc_ex_idl ()
{
}
@@ -51,7 +51,7 @@ be_visitor_ami4ccm_sendc_ex_idl::visit_interface (be_interface *node)
for (long i = 0; i < node->n_inherits_flat (); ++i)
{
be_interface *ancestor =
- be_interface::narrow_from_decl (inh_flat[i]);
+ dynamic_cast<be_interface*> (inh_flat[i]);
if (this->visit_scope (ancestor) == -1)
{
@@ -121,7 +121,7 @@ be_visitor_ami4ccm_sendc_ex_idl::visit_argument (be_argument *node)
else
{
be_type *t =
- be_type::narrow_from_decl (node->field_type ());
+ dynamic_cast<be_type*> (node->field_type ());
os_ << be_nl
<< "in ";
@@ -169,9 +169,9 @@ be_visitor_ami4ccm_sendc_ex_idl::visit_sequence (be_sequence *node)
int
be_visitor_ami4ccm_sendc_ex_idl::pre_process (be_decl *node)
{
- be_argument *arg = be_argument::narrow_from_decl (node);
+ be_argument *arg = dynamic_cast<be_argument*> (node);
- if (arg == 0)
+ if (arg == nullptr)
{
return 0;
}
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 13df2b47da4..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
@@ -18,7 +18,7 @@ be_visitor_interface_any_op_ch::be_visitor_interface_any_op_ch
{
}
-be_visitor_interface_any_op_ch::~be_visitor_interface_any_op_ch (void)
+be_visitor_interface_any_op_ch::~be_visitor_interface_any_op_ch ()
{
}
@@ -42,7 +42,7 @@ be_visitor_interface_any_op_ch::visit_interface (be_interface *node)
*os << be_nl_2;
- be_module *module = 0;
+ be_module *module = nullptr;
if (node->is_nested ())
{
@@ -53,7 +53,7 @@ be_visitor_interface_any_op_ch::visit_interface (be_interface *node)
{
if (nt == AST_Decl::NT_module)
{
- module = be_module::narrow_from_decl (d);
+ module = dynamic_cast<be_module*> (d);
break;
}
else
@@ -63,7 +63,7 @@ be_visitor_interface_any_op_ch::visit_interface (be_interface *node)
}
}
- if (module != 0)
+ if (module != nullptr)
{
// Some compilers handle "any" operators in a namespace
// corresponding to their module, others do not.
@@ -101,7 +101,7 @@ be_visitor_interface_any_op_ch::visit_interface (be_interface *node)
*os << be_global->core_versioning_end () << be_nl;
- if (module != 0)
+ if (module != nullptr)
{
*os << "\n\n#endif";
}
@@ -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 6cb026e9f28..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
@@ -18,7 +18,7 @@ be_visitor_interface_any_op_cs::be_visitor_interface_any_op_cs (
{
}
-be_visitor_interface_any_op_cs::~be_visitor_interface_any_op_cs (void)
+be_visitor_interface_any_op_cs::~be_visitor_interface_any_op_cs ()
{
}
@@ -112,7 +112,7 @@ be_visitor_interface_any_op_cs::visit_interface (be_interface *node)
*os << be_global->core_versioning_end () << be_nl;
- be_module *module = 0;
+ be_module *module = nullptr;
if (node->is_nested ())
{
@@ -123,7 +123,7 @@ be_visitor_interface_any_op_cs::visit_interface (be_interface *node)
{
if (nt == AST_Decl::NT_module)
{
- module = be_module::narrow_from_decl (d);
+ module = dynamic_cast<be_module*> (d);
break;
}
else
@@ -133,7 +133,7 @@ be_visitor_interface_any_op_cs::visit_interface (be_interface *node)
}
}
- if (module != 0)
+ if (module != nullptr)
{
// Some compilers handle "any" operators in a namespace corresponding
// to their module, others do not.
@@ -238,7 +238,7 @@ be_visitor_interface_any_op_cs::visit_interface (be_interface *node)
*os << be_global->core_versioning_end () << be_nl;
- if (module != 0)
+ if (module != nullptr)
{
*os << "\n\n#endif";
}
@@ -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 9c37d52049d..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
@@ -18,7 +18,7 @@ be_visitor_interface_cdr_op_ch::be_visitor_interface_cdr_op_ch (
{
}
-be_visitor_interface_cdr_op_ch::~be_visitor_interface_cdr_op_ch (void)
+be_visitor_interface_cdr_op_ch::~be_visitor_interface_cdr_op_ch ()
{
}
@@ -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 d9a04a235e5..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
@@ -17,7 +17,7 @@ be_visitor_interface_cdr_op_cs::be_visitor_interface_cdr_op_cs (
{
}
-be_visitor_interface_cdr_op_cs::~be_visitor_interface_cdr_op_cs (void)
+be_visitor_interface_cdr_op_cs::~be_visitor_interface_cdr_op_cs ()
{
}
@@ -106,25 +106,24 @@ be_visitor_interface_cdr_op_cs::visit_interface (be_interface *node)
<< "if (!(strm >> obj.inout ()))" << be_idt_nl
<< "{" << be_idt_nl
<< "return false;" << be_uidt_nl
- << "}" << be_uidt_nl << be_nl
- << "typedef ::" << node->name () << " RHS_SCOPED_NAME;"
- << be_nl_2
+ << "}" << be_uidt_nl
+ << be_nl
<< "// Narrow to the right type." << be_nl;
- *os << "_tao_objref =" << be_idt_nl;
+ *os << "_tao_objref = ";
if (!node->is_abstract ())
{
- *os << "TAO::Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow ("
+ *os << "TAO::Narrow_Utils< ::" << node->name () << ">::unchecked_narrow ("
<< "obj.in ());";
}
else
{
- *os << "TAO::AbstractBase_Narrow_Utils<RHS_SCOPED_NAME>::unchecked_narrow ("
+ *os << "TAO::AbstractBase_Narrow_Utils< ::" << node->name () << ">::unchecked_narrow ("
<< "obj.in ());";
}
- *os << be_nl << be_uidt_nl;
+ *os << be_nl_2;
*os << "return true;" << be_uidt_nl
<< "}" << be_nl;
@@ -138,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 d7114306b98..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
@@ -8,7 +8,7 @@ be_visitor_interface_direct_proxy_impl_sh (be_visitor_context *ctx)
}
be_visitor_interface_direct_proxy_impl_sh::
-~be_visitor_interface_direct_proxy_impl_sh (void)
+~be_visitor_interface_direct_proxy_impl_sh ()
{
// No-Op.
}
@@ -38,7 +38,7 @@ be_visitor_interface_direct_proxy_impl_sh::visit_interface (
if (node->n_inherits () > 0)
{
- AST_Type *parent = 0;
+ AST_Type *parent = nullptr;
for (int i = 0; i < node->n_inherits (); ++i)
{
@@ -50,7 +50,7 @@ be_visitor_interface_direct_proxy_impl_sh::visit_interface (
}
be_interface *inherited =
- be_interface::narrow_from_decl (parent);
+ dynamic_cast<be_interface*> (parent);
if (first_concrete)
{
@@ -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)
{
@@ -111,7 +111,7 @@ be_visitor_interface_direct_proxy_impl_sh::gen_abstract_ops_helper (
return 0;
}
- AST_Decl *d = 0;
+ AST_Decl *d = nullptr;
be_visitor_context ctx;
ctx.stream (os);
ctx.state (TAO_CodeGen::TAO_INTERFACE_DIRECT_PROXY_IMPL_SH);
@@ -122,7 +122,7 @@ be_visitor_interface_direct_proxy_impl_sh::gen_abstract_ops_helper (
{
d = si.item ();
- if (d == 0)
+ if (d == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_interface_thru_poa_proxy_"
@@ -132,7 +132,7 @@ be_visitor_interface_direct_proxy_impl_sh::gen_abstract_ops_helper (
}
UTL_ScopedName item_new_name (d->local_name (),
- 0);
+ nullptr);
// We pass the node's is_abstract flag to the operation
// constructor so we will get the right generated operation
@@ -140,13 +140,13 @@ be_visitor_interface_direct_proxy_impl_sh::gen_abstract_ops_helper (
// abstract interface in a concrete interface or component.
if (d->node_type () == AST_Decl::NT_op)
{
- be_operation *op = be_operation::narrow_from_decl (d);
+ be_operation *op = dynamic_cast<be_operation*> (d);
be_visitor_operation_proxy_impl_xh op_visitor (&ctx);
op_visitor.visit_operation (op);
}
else if (d->node_type () == AST_Decl::NT_attr)
{
- AST_Attribute *attr = AST_Attribute::narrow_from_decl (d);
+ AST_Attribute *attr = dynamic_cast<AST_Attribute*> (d);
be_attribute new_attr (attr->readonly (),
attr->field_type (),
&item_new_name,
@@ -156,21 +156,21 @@ be_visitor_interface_direct_proxy_impl_sh::gen_abstract_ops_helper (
UTL_ExceptList *get_exceptions = attr->get_get_exceptions ();
- if (0 != get_exceptions)
+ if (nullptr != get_exceptions)
{
new_attr.be_add_get_exceptions (get_exceptions->copy ());
}
UTL_ExceptList *set_exceptions = attr->get_set_exceptions ();
- if (0 != set_exceptions)
+ if (nullptr != set_exceptions)
{
new_attr.be_add_set_exceptions (set_exceptions->copy ());
}
be_visitor_attribute attr_visitor (&ctx);
attr_visitor.visit_attribute (&new_attr);
- ctx.attribute (0);
+ ctx.attribute (nullptr);
new_attr.destroy ();
}
}
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 e54120f1e10..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
@@ -9,7 +9,7 @@ be_visitor_interface_direct_proxy_impl_ss (be_visitor_context *ctx)
}
be_visitor_interface_direct_proxy_impl_ss::
-~be_visitor_interface_direct_proxy_impl_ss (void)
+~be_visitor_interface_direct_proxy_impl_ss ()
{
}
@@ -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)
@@ -61,7 +61,7 @@ be_visitor_interface_direct_proxy_impl_ss::gen_abstract_ops_helper (
return 0;
}
- AST_Decl *d = 0;
+ AST_Decl *d = nullptr;
be_visitor_context ctx;
ctx.stream (os);
ctx.state (TAO_CodeGen::TAO_INTERFACE_DIRECT_PROXY_IMPL_SS);
@@ -72,7 +72,7 @@ be_visitor_interface_direct_proxy_impl_ss::gen_abstract_ops_helper (
{
d = si.item ();
- if (d == 0)
+ if (d == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_interface_direct_proxy"
@@ -83,14 +83,14 @@ be_visitor_interface_direct_proxy_impl_ss::gen_abstract_ops_helper (
AST_Decl::NodeType nt = d->node_type ();
- UTL_ScopedName *item_new_name = 0;
- UTL_ScopedName *new_name = 0;
+ UTL_ScopedName *item_new_name = nullptr;
+ UTL_ScopedName *new_name = nullptr;
if (AST_Decl::NT_op == nt || AST_Decl::NT_attr == nt)
{
ACE_NEW_RETURN (item_new_name,
UTL_ScopedName (d->local_name ()->copy (),
- 0),
+ nullptr),
-1);
new_name = (UTL_ScopedName *) node->name ()->copy ();
@@ -107,7 +107,7 @@ be_visitor_interface_direct_proxy_impl_ss::gen_abstract_ops_helper (
// abstract interface in a concrete interface or component.
if (d->node_type () == AST_Decl::NT_op)
{
- be_operation *op = be_operation::narrow_from_decl (d);
+ be_operation *op = dynamic_cast<be_operation*> (d);
UTL_ScopedName *old_name =
(UTL_ScopedName *) op->name ()->copy ();
op->set_name (new_name);
@@ -123,10 +123,10 @@ be_visitor_interface_direct_proxy_impl_ss::gen_abstract_ops_helper (
}
else if (d->node_type () == AST_Decl::NT_attr)
{
- AST_Attribute *attr = AST_Attribute::narrow_from_decl (d);
+ AST_Attribute *attr = dynamic_cast<AST_Attribute*> (d);
be_attribute new_attr (attr->readonly (),
attr->field_type (),
- 0,
+ nullptr,
attr->is_local (),
attr->is_abstract ());
new_attr.set_defined_in (node);
@@ -134,21 +134,21 @@ be_visitor_interface_direct_proxy_impl_ss::gen_abstract_ops_helper (
UTL_ExceptList *get_exceptions = attr->get_get_exceptions ();
- if (0 != get_exceptions)
+ if (nullptr != get_exceptions)
{
new_attr.be_add_get_exceptions (get_exceptions->copy ());
}
UTL_ExceptList *set_exceptions = attr->get_set_exceptions ();
- if (0 != set_exceptions)
+ if (nullptr != set_exceptions)
{
new_attr.be_add_set_exceptions (set_exceptions->copy ());
}
be_visitor_attribute attr_visitor (&ctx);
attr_visitor.visit_attribute (&new_attr);
- ctx.attribute (0);
+ ctx.attribute (nullptr);
new_attr.destroy ();
}
}
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 a022fdd2d52..21130dd0ba5 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/facet_svth.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/facet_svth.cpp
@@ -17,7 +17,7 @@ be_visitor_facet_svth::be_visitor_facet_svth (be_visitor_context *ctx)
{
}
-be_visitor_facet_svth::~be_visitor_facet_svth (void)
+be_visitor_facet_svth::~be_visitor_facet_svth ()
{
}
@@ -37,7 +37,7 @@ be_visitor_facet_svth::visit_interface (be_interface *node)
const char *lname = node->local_name ();
be_decl *scope =
- be_scope::narrow_from_scope (node->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (node->defined_in ())->decl ();
ACE_CString suffix (scope->flat_name ());
if (suffix != "")
@@ -64,12 +64,12 @@ 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)
{
be_interface *intf =
- be_interface::narrow_from_decl (node);
+ dynamic_cast<be_interface*> (node);
be_global->in_facet_servant (true);
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 fae40ad6ef1..441df38fd93 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/facet_svts.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/facet_svts.cpp
@@ -17,7 +17,7 @@ be_visitor_facet_svts::be_visitor_facet_svts (be_visitor_context *ctx)
{
}
-be_visitor_facet_svts::~be_visitor_facet_svts (void)
+be_visitor_facet_svts::~be_visitor_facet_svts ()
{
}
@@ -36,7 +36,7 @@ be_visitor_facet_svts::visit_interface (be_interface *node)
const char *lname = node->local_name ();
be_decl *scope =
- be_scope::narrow_from_scope (node->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (node->defined_in ())->decl ();
ACE_CString sname_str (scope->full_name ());
@@ -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
<< "}";
@@ -75,7 +75,7 @@ be_visitor_facet_svts::visit_interface (be_interface *node)
if (is_intf)
{
be_interface *op_scope =
- be_interface::narrow_from_decl (node);
+ dynamic_cast<be_interface*> (node);
os_ << be_nl_2
<< "// All facet operations and attributes.";
@@ -147,7 +147,7 @@ be_facet_op_attr_defn_helper::emit (be_interface * /* derived_interface */,
case AST_Decl::NT_op:
{
be_operation *op =
- be_operation::narrow_from_decl (d);
+ dynamic_cast<be_operation*> (d);
/// If AMI implied IDL was generated for the
/// original interface, we don't want those
@@ -174,7 +174,7 @@ be_facet_op_attr_defn_helper::emit (be_interface * /* derived_interface */,
case AST_Decl::NT_attr:
{
be_attribute *attr =
- be_attribute::narrow_from_decl (d);
+ dynamic_cast<be_attribute*> (d);
be_visitor_attribute v (&ctx);
v.op_scope (op_scope_);
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface.cpp
index 81171e0d3e3..879a8d66789 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/interface.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/interface.cpp
@@ -16,7 +16,7 @@ be_visitor_interface::be_visitor_interface (be_visitor_context *ctx)
{
}
-be_visitor_interface::~be_visitor_interface (void)
+be_visitor_interface::~be_visitor_interface ()
{
}
@@ -35,9 +35,9 @@ be_visitor_interface::visit_scope (be_scope *node)
return -1;
}
- be_interface *intf = be_interface::narrow_from_scope (node);
+ be_interface *intf = dynamic_cast<be_interface*> (node);
- if (intf == 0)
+ if (intf == nullptr)
{
return 0;
}
@@ -52,7 +52,7 @@ be_visitor_interface::visit_scope (be_scope *node)
return 0;
}
- be_interface::tao_code_emitter helper = 0;
+ be_interface::tao_code_emitter helper = nullptr;
switch (this->ctx_->state ())
{
@@ -84,7 +84,7 @@ be_visitor_interface::visit_scope (be_scope *node)
break;
}
- if (helper == 0)
+ if (helper == nullptr)
{
return 0;
}
@@ -113,7 +113,7 @@ int
be_visitor_interface::is_amh_rh_node (be_interface *node)
{
//If, is implied-IDL
- if (node->original_interface () != 0)
+ if (node->original_interface () != nullptr)
{
// and the name starts with AMH
if (ACE_OS::strncmp (node->local_name (), "AMH", 3) == 0)
@@ -130,7 +130,7 @@ void
be_visitor_interface::add_abstract_op_args (AST_Operation *old_op,
be_operation &new_op)
{
- AST_Decl *d = 0;
+ AST_Decl *d = nullptr;
for (UTL_ScopeActiveIterator si (old_op, UTL_Scope::IK_decls);
!si.is_done ();
@@ -142,7 +142,7 @@ be_visitor_interface::add_abstract_op_args (AST_Operation *old_op,
UTL_ExceptList *excep_list = old_op->exceptions ();
- if (0 != excep_list)
+ if (nullptr != excep_list)
{
new_op.be_add_exceptions (excep_list->copy ());
}
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 761b7806411..102a7c67036 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp
@@ -16,7 +16,7 @@ be_visitor_interface_ch::be_visitor_interface_ch (be_visitor_context *ctx)
{
}
-be_visitor_interface_ch::~be_visitor_interface_ch (void)
+be_visitor_interface_ch::~be_visitor_interface_ch ()
{
}
@@ -39,7 +39,7 @@ be_visitor_interface_ch::visit_interface (be_interface *node)
*os << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__;
- AST_Component *c = AST_Component::narrow_from_decl (node);
+ AST_Component *c = dynamic_cast<AST_Component*> (node);
// Now generate the class definition.
*os << be_nl_2
@@ -74,7 +74,7 @@ be_visitor_interface_ch::visit_interface (be_interface *node)
<< "static " << node->local_name () << "_ptr " << "_duplicate ("
<< node->local_name () << "_ptr obj);" << be_nl_2;
- if (c == 0)
+ if (c == nullptr)
{
*os << "static void _tao_release ("
<< node->local_name () << "_ptr obj);"
@@ -91,7 +91,7 @@ be_visitor_interface_ch::visit_interface (be_interface *node)
-1);
}
- if (c == 0)
+ if (c == nullptr)
{
if (! this->gen_xxx_narrow ("_unchecked_narrow", node, os))
{
@@ -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,12 +228,12 @@ 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;
}
- if (c != 0)
+ if (c != nullptr)
{
// Friends declarations, component only.
*os << be_nl_2
@@ -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.
@@ -255,12 +255,15 @@ be_visitor_interface_ch::visit_interface (be_interface *node)
{
*os << "// Private and unimplemented for concrete interfaces." << be_nl
<< node->local_name () << " (const "
- << node->local_name () << " &);" << be_nl_2;
+ << node->local_name () << " &) = delete;" << be_nl
+ << node->local_name () << " ("
+ << node->local_name () << " &&) = delete;" << be_nl;
}
- *os << "void operator= (const " << node->local_name () << " &);";
-
- *os << be_uidt_nl
+ *os << node->local_name ()
+ << " &operator= (const " << node->local_name () << " &) = delete;" << be_nl
+ << node->local_name ()
+ << " &operator= (" << node->local_name () << " &&) = delete;" << be_uidt_nl
<< "};";
be_visitor_context ctx (*this->ctx_);
@@ -328,7 +331,7 @@ be_visitor_interface_ch::visit_extended_port (be_extended_port *node)
/// original porttype, this is a way for visitors down the
/// line to tell what scope we are actually in.
this->ctx_->interface (
- be_interface::narrow_from_scope (node->defined_in ()));
+ dynamic_cast<be_interface*> (node->defined_in ()));
/// Will ignore everything but porttype attributes.
int status = this->visit_scope (node->port_type ());
@@ -357,7 +360,7 @@ be_visitor_interface_ch::visit_mirror_port (be_mirror_port *node)
/// original porttype, this is a way for visitors down the
/// line to tell what scope we are actually in.
this->ctx_->interface (
- be_interface::narrow_from_scope (node->defined_in ()));
+ dynamic_cast<be_interface*> (node->defined_in ()));
/// Will ignore everything but porttype attributes.
int status = this->visit_scope (node->port_type ());
@@ -386,7 +389,7 @@ be_visitor_interface_ch::gen_abstract_ops_helper (be_interface *node,
return 0;
}
- AST_Decl *d = 0;
+ AST_Decl *d = nullptr;
be_visitor_context ctx;
ctx.stream (os);
@@ -396,7 +399,7 @@ be_visitor_interface_ch::gen_abstract_ops_helper (be_interface *node,
{
d = si.item ();
- if (d == 0)
+ if (d == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_interface::")
@@ -408,7 +411,7 @@ be_visitor_interface_ch::gen_abstract_ops_helper (be_interface *node,
if (d->node_type () == AST_Decl::NT_op)
{
- be_operation *op = be_operation::narrow_from_decl (d);
+ be_operation *op = dynamic_cast<be_operation*> (d);
op->set_local (node->is_local ());
ctx.state (TAO_CodeGen::TAO_OPERATION_CH);
be_visitor_operation_ch op_visitor (&ctx);
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 d5b0bf8b0fa..5129d1965d2 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/interface_ci.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_ci.cpp
@@ -16,7 +16,7 @@ be_visitor_interface_ci::be_visitor_interface_ci (be_visitor_context *ctx)
{
}
-be_visitor_interface_ci::~be_visitor_interface_ci (void)
+be_visitor_interface_ci::~be_visitor_interface_ci ()
{
}
@@ -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 ec2e9924172..072a877ecad 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp
@@ -15,7 +15,7 @@ be_visitor_interface_cs::be_visitor_interface_cs (be_visitor_context *ctx)
{
}
-be_visitor_interface_cs::~be_visitor_interface_cs (void)
+be_visitor_interface_cs::~be_visitor_interface_cs ()
{
}
@@ -27,7 +27,7 @@ be_visitor_interface_cs::visit_interface (be_interface *node)
return 0;
}
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Set the right type.
if (this->ctx_->alias ())
@@ -39,7 +39,7 @@ be_visitor_interface_cs::visit_interface (be_interface *node)
bt = node;
}
- AST_Component *c = AST_Component::narrow_from_decl (node);
+ AST_Component *c = dynamic_cast<AST_Component*> (node);
TAO_OutStream *os = this->ctx_->stream ();
if (node->is_defined () && be_global->gen_arg_traits ())
@@ -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
@@ -99,7 +99,7 @@ be_visitor_interface_cs::visit_interface (be_interface *node)
<< "return ";
- if (node->is_abstract () || c != 0)
+ if (node->is_abstract () || c != nullptr)
{
*os << "cdr << p;";
}
@@ -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
@@ -248,7 +248,7 @@ be_visitor_interface_cs::visit_interface (be_interface *node)
}
// The _unchecked_narrow method, not for components.
- if (c == 0 && ! this->gen_xxx_narrow ("unchecked_narrow", node))
+ if (c == nullptr && ! this->gen_xxx_narrow ("unchecked_narrow", node))
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_interface_cs::")
@@ -260,10 +260,10 @@ 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 0;" << be_uidt_nl
+ << "return nullptr;" << be_uidt_nl
<< "}" << be_nl_2;
// The _duplicate method
@@ -280,7 +280,7 @@ be_visitor_interface_cs::visit_interface (be_interface *node)
<< "}" << be_nl_2;
// The _tao_release method
- if (c == 0)
+ if (c == nullptr)
{
*os << "void" << be_nl
<< node->full_name () << "::_tao_release ("
@@ -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;
}
@@ -524,7 +523,7 @@ be_visitor_interface_cs::visit_extended_port (be_extended_port *node)
/// original porttype, this is a way for visitors down the
/// line to tell what scope we are actually in.
this->ctx_->interface (
- be_interface::narrow_from_scope (node->defined_in ()));
+ dynamic_cast<be_interface*> (node->defined_in ()));
/// Will ignore everything but porttype attributes.
int status = this->visit_scope (node->port_type ());
@@ -553,7 +552,7 @@ be_visitor_interface_cs::visit_mirror_port (be_mirror_port *node)
/// original porttype, this is a way for visitors down the
/// line to tell what scope we are actually in.
this->ctx_->interface (
- be_interface::narrow_from_scope (node->defined_in ()));
+ dynamic_cast<be_interface*> (node->defined_in ()));
/// Will ignore everything but porttype attributes.
int status = this->visit_scope (node->port_type ());
@@ -584,7 +583,7 @@ be_visitor_interface_cs::gen_abstract_ops_helper (be_interface *node,
return 0;
}
- AST_Decl *d = 0;
+ AST_Decl *d = nullptr;
be_visitor_context ctx;
ctx.stream (os);
@@ -594,7 +593,7 @@ be_visitor_interface_cs::gen_abstract_ops_helper (be_interface *node,
{
d = si.item ();
- if (d == 0)
+ if (d == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_interface_cs::"
@@ -605,17 +604,17 @@ be_visitor_interface_cs::gen_abstract_ops_helper (be_interface *node,
if (d->node_type () == AST_Decl::NT_op)
{
- UTL_ScopedName *item_new_name = 0;
+ UTL_ScopedName *item_new_name = nullptr;
ACE_NEW_RETURN (item_new_name,
UTL_ScopedName (d->local_name ()->copy (),
- 0),
+ nullptr),
-1);
UTL_ScopedName *new_op_name =
(UTL_ScopedName *)node->name ()->copy ();
new_op_name->nconc (item_new_name);
- be_operation *op = be_operation::narrow_from_decl (d);
+ be_operation *op = dynamic_cast<be_operation*> (d);
UTL_ScopedName *old_op_name =
(UTL_ScopedName *) op->name ()->copy ();
op->set_name (new_op_name);
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_ex_idl.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_ex_idl.cpp
index 21c0f1e5e1d..3e486fdedf7 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/interface_ex_idl.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_ex_idl.cpp
@@ -18,7 +18,7 @@ be_visitor_interface_ex_idl::be_visitor_interface_ex_idl (
{
}
-be_visitor_interface_ex_idl::~be_visitor_interface_ex_idl (void)
+be_visitor_interface_ex_idl::~be_visitor_interface_ex_idl ()
{
}
@@ -26,7 +26,7 @@ int
be_visitor_interface_ex_idl::visit_interface (be_interface *node)
{
// Skip implied IDL nodes.
- if (node->original_interface () != 0)
+ if (node->original_interface () != nullptr)
{
return 0;
}
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 eb8ac329352..448c1ebf838 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/interface_ih.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_ih.cpp
@@ -16,7 +16,7 @@ be_visitor_interface_ih::be_visitor_interface_ih (be_visitor_context *ctx)
{
}
-be_visitor_interface_ih::~be_visitor_interface_ih (void)
+be_visitor_interface_ih::~be_visitor_interface_ih ()
{
}
@@ -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 1bf00f89aa9..0d7589dbbd4 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/interface_is.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_is.cpp
@@ -16,7 +16,7 @@ be_visitor_interface_is::be_visitor_interface_is (be_visitor_context *ctx)
{
}
-be_visitor_interface_is::~be_visitor_interface_is (void)
+be_visitor_interface_is::~be_visitor_interface_is ()
{
}
@@ -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;
@@ -92,8 +92,8 @@ be_visitor_interface_is::visit_interface (be_interface *node)
if (node->is_nested ())
{
- be_decl *scope = 0;
- scope = be_scope::narrow_from_scope (node->defined_in ())->decl ();
+ be_decl *scope = nullptr;
+ scope = dynamic_cast<be_scope*> (node->defined_in ())->decl ();
*os << " POA_" << scope->name () << "::"
<< node->local_name () << " (rhs)";
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 a0c021c1a9e..0dd4c94accc 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/interface_sh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_sh.cpp
@@ -16,7 +16,7 @@ be_visitor_interface_sh::be_visitor_interface_sh (be_visitor_context *ctx)
{
}
-be_visitor_interface_sh::~be_visitor_interface_sh (void)
+be_visitor_interface_sh::~be_visitor_interface_sh ()
{
}
@@ -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)
@@ -194,7 +194,7 @@ be_visitor_interface_sh::gen_abstract_ops_helper (
return 0;
}
- AST_Decl *d = 0;
+ AST_Decl *d = nullptr;
be_visitor_context ctx;
ctx.stream (os);
ctx.state (TAO_CodeGen::TAO_ROOT_SH);
@@ -205,7 +205,7 @@ be_visitor_interface_sh::gen_abstract_ops_helper (
{
d = si.item ();
- if (d == 0)
+ if (d == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_interface_sh::")
@@ -215,17 +215,17 @@ be_visitor_interface_sh::gen_abstract_ops_helper (
}
UTL_ScopedName item_new_name (d->local_name (),
- 0);
+ nullptr);
if (d->node_type () == AST_Decl::NT_op)
{
- be_operation *op = be_operation::narrow_from_decl (d);
+ be_operation *op = dynamic_cast<be_operation*> (d);
be_visitor_operation_sh op_visitor (&ctx);
op_visitor.visit_operation (op);
}
else if (d->node_type () == AST_Decl::NT_attr)
{
- AST_Attribute *attr = AST_Attribute::narrow_from_decl (d);
+ AST_Attribute *attr = dynamic_cast<AST_Attribute*> (d);
be_attribute new_attr (attr->readonly (),
attr->field_type (),
&item_new_name,
@@ -235,21 +235,21 @@ be_visitor_interface_sh::gen_abstract_ops_helper (
UTL_ExceptList *get_exceptions = attr->get_get_exceptions ();
- if (0 != get_exceptions)
+ if (nullptr != get_exceptions)
{
new_attr.be_add_get_exceptions (get_exceptions->copy ());
}
UTL_ExceptList *set_exceptions = attr->get_set_exceptions ();
- if (0 != set_exceptions)
+ if (nullptr != set_exceptions)
{
new_attr.be_add_set_exceptions (set_exceptions->copy ());
}
be_visitor_attribute attr_visitor (&ctx);
attr_visitor.visit_attribute (&new_attr);
- ctx.attribute (0);
+ ctx.attribute (nullptr);
new_attr.destroy ();
}
}
@@ -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 fa3e691ebc8..81256400f5f 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp
@@ -19,7 +19,7 @@ be_visitor_interface_ss::be_visitor_interface_ss (be_visitor_context *ctx)
{
}
-be_visitor_interface_ss::~be_visitor_interface_ss (void)
+be_visitor_interface_ss::~be_visitor_interface_ss ()
{
}
@@ -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 << "!ACE_OS::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
- << "!ACE_OS::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;
@@ -261,7 +254,7 @@ be_visitor_interface_ss::gen_abstract_ops_helper (
return 0;
}
- AST_Decl *d = 0;
+ AST_Decl *d = nullptr;
be_visitor_context ctx;
ctx.stream (os);
ctx.state (TAO_CodeGen::TAO_ROOT_SS);
@@ -272,7 +265,7 @@ be_visitor_interface_ss::gen_abstract_ops_helper (
{
d = si.item ();
- if (d == 0)
+ if (d == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_interface_ss::")
@@ -283,14 +276,14 @@ be_visitor_interface_ss::gen_abstract_ops_helper (
AST_Decl::NodeType nt = d->node_type ();
- UTL_ScopedName *item_new_name = 0;
- UTL_ScopedName *new_name = 0;
+ UTL_ScopedName *item_new_name = nullptr;
+ UTL_ScopedName *new_name = nullptr;
if (AST_Decl::NT_op == nt || AST_Decl::NT_attr == nt)
{
ACE_NEW_RETURN (item_new_name,
UTL_ScopedName (d->local_name ()->copy (),
- 0),
+ nullptr),
-1);
new_name = (UTL_ScopedName *) node->name ()->copy ();
@@ -307,7 +300,7 @@ be_visitor_interface_ss::gen_abstract_ops_helper (
// abstract interface in a concrete interface or component.
if (AST_Decl::NT_op == nt)
{
- be_operation *op = be_operation::narrow_from_decl (d);
+ be_operation *op = dynamic_cast<be_operation*> (d);
UTL_ScopedName *old_name =
(UTL_ScopedName *) op->name ()->copy ();
op->set_name (new_name);
@@ -324,10 +317,10 @@ be_visitor_interface_ss::gen_abstract_ops_helper (
else if (AST_Decl::NT_attr == nt)
{
AST_Attribute *attr =
- AST_Attribute::narrow_from_decl (d);
+ dynamic_cast<AST_Attribute*> (d);
be_attribute new_attr (attr->readonly (),
attr->field_type (),
- 0,
+ nullptr,
attr->is_local (),
attr->is_abstract ());
new_attr.set_defined_in (node);
@@ -336,7 +329,7 @@ be_visitor_interface_ss::gen_abstract_ops_helper (
UTL_ExceptList *get_exceptions =
attr->get_get_exceptions ();
- if (0 != get_exceptions)
+ if (nullptr != get_exceptions)
{
new_attr.be_add_get_exceptions (get_exceptions->copy ());
}
@@ -344,14 +337,14 @@ be_visitor_interface_ss::gen_abstract_ops_helper (
UTL_ExceptList *set_exceptions =
attr->get_set_exceptions ();
- if (0 != set_exceptions)
+ if (nullptr != set_exceptions)
{
new_attr.be_add_set_exceptions (set_exceptions->copy ());
}
be_visitor_attribute attr_visitor (&ctx);
attr_visitor.visit_attribute (&new_attr);
- ctx.attribute (0);
+ ctx.attribute (nullptr);
new_attr.destroy ();
}
}
@@ -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 ="
@@ -397,18 +390,15 @@ be_visitor_interface_ss::this_method (be_interface *node)
*os << "_tao_opt_colloc";
*os << ", this)," << be_nl
- << "0);" << be_uidt << be_uidt_nl << be_nl;
+ << "nullptr);" << be_uidt << be_uidt_nl << be_nl;
*os << "::CORBA::Object_var obj = tmp;" << be_nl
<< "(void) safe_stub.release ();" << be_nl_2
- << "typedef ::" << node->name () << " STUB_SCOPED_NAME;"
- << be_nl
- << "return" << be_idt_nl
- << "TAO::Narrow_Utils<STUB_SCOPED_NAME>::unchecked_narrow ("
- << be_idt << be_idt_nl
+ << "return "
+ << "TAO::Narrow_Utils< ::" << node->name () << ">::unchecked_narrow ("
<< "obj.in ());";
- *os << be_uidt << be_uidt << be_uidt << be_uidt_nl
+ *os << be_uidt_nl
<< "}";
}
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_svth.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_svth.cpp
index 467432362c1..0ebf03db35f 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/interface_svth.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_svth.cpp
@@ -18,7 +18,7 @@ be_visitor_interface_svth::be_visitor_interface_svth (
{
}
-be_visitor_interface_svth::~be_visitor_interface_svth (void)
+be_visitor_interface_svth::~be_visitor_interface_svth ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_svts.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_svts.cpp
index 0f764a2b801..81da50fde3a 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/interface_svts.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_svts.cpp
@@ -18,7 +18,7 @@ be_visitor_interface_svts::be_visitor_interface_svts (
{
}
-be_visitor_interface_svts::~be_visitor_interface_svts (void)
+be_visitor_interface_svts::~be_visitor_interface_svts ()
{
}
@@ -42,7 +42,7 @@ int
be_visitor_interface_svts::visit_operation (be_operation *node)
{
be_visitor_operation_svs v (this->ctx_);
- v.scope (be_interface::narrow_from_decl (
+ v.scope (dynamic_cast<be_interface*> (
this->ctx_->scope ()->decl ()));
return v.visit_operation (node);
@@ -54,7 +54,7 @@ be_visitor_interface_svts::visit_attribute (be_attribute *node)
be_visitor_attribute v (this->ctx_);
v.for_facets (true);
- v.op_scope (be_interface::narrow_from_decl (
+ v.op_scope (dynamic_cast<be_interface*> (
this->ctx_->scope ()->decl ()));
return v.visit_attribute (node);
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 eb0620e67a7..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
@@ -17,14 +17,14 @@ be_visitor_interface_smart_proxy_ch::be_visitor_interface_smart_proxy_ch (
{
}
-be_visitor_interface_smart_proxy_ch::~be_visitor_interface_smart_proxy_ch (void)
+be_visitor_interface_smart_proxy_ch::~be_visitor_interface_smart_proxy_ch ()
{
}
int be_visitor_interface_smart_proxy_ch::visit_interface (be_interface *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -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 ()
@@ -114,14 +114,14 @@ int be_visitor_interface_smart_proxy_ch::visit_interface (be_interface *node)
for (i = 0; i < node->n_inherits (); i++)
{
be_interface *inherited =
- be_interface::narrow_from_decl (node->inherits ()[i]);
- be_decl *scope = 0;
+ dynamic_cast<be_interface*> (node->inherits ()[i]);
+ be_decl *scope = nullptr;
if (inherited->is_nested ())
{
// Inherited node is used in the scope of "node" node.
scope =
- be_scope::narrow_from_scope (node->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (node->defined_in ())->decl ();
}
*os << "," << be_nl << " public virtual ";
@@ -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 1149f0384f0..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
@@ -18,9 +18,7 @@ be_visitor_interface_smart_proxy_cs::be_visitor_interface_smart_proxy_cs (
{
}
-be_visitor_interface_smart_proxy_cs::~be_visitor_interface_smart_proxy_cs (
- void
- )
+be_visitor_interface_smart_proxy_cs::~be_visitor_interface_smart_proxy_cs ()
{
}
@@ -36,7 +34,7 @@ int be_visitor_interface_smart_proxy_cs::visit_interface (be_interface *node)
// Its necessary to take care of the nested case. The smart proxy classes
// are in the same scope as the proxy.
- be_decl* scope = be_scope::narrow_from_scope (node->defined_in ())->decl ();
+ be_decl* scope = dynamic_cast<be_scope*> (node->defined_in ())->decl ();
*os << be_nl_2
<< scope->full_name ();
@@ -67,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
<< "}";
@@ -100,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
@@ -118,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."
@@ -169,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
@@ -238,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;
@@ -251,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";
@@ -265,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;
@@ -279,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;
@@ -304,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 58f86811c6e..85f7e25cbf1 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/tie_sh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/tie_sh.cpp
@@ -18,7 +18,7 @@ be_visitor_interface_tie_sh::be_visitor_interface_tie_sh (
{
}
-be_visitor_interface_tie_sh::~be_visitor_interface_tie_sh (void)
+be_visitor_interface_tie_sh::~be_visitor_interface_tie_sh ()
{
}
@@ -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 5bd6a66367d..2aefd8183b7 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/tie_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/tie_ss.cpp
@@ -18,7 +18,7 @@ be_visitor_interface_tie_ss::be_visitor_interface_tie_ss (
{
}
-be_visitor_interface_tie_ss::~be_visitor_interface_tie_ss (void)
+be_visitor_interface_tie_ss::~be_visitor_interface_tie_ss ()
{
}
@@ -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 6589e9f170c..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
@@ -18,7 +18,7 @@ be_visitor_interface_fwd_any_op_ch::be_visitor_interface_fwd_any_op_ch (
{
}
-be_visitor_interface_fwd_any_op_ch::~be_visitor_interface_fwd_any_op_ch (void)
+be_visitor_interface_fwd_any_op_ch::~be_visitor_interface_fwd_any_op_ch ()
{
}
@@ -48,14 +48,14 @@ be_visitor_interface_fwd_any_op_ch::visit_interface_fwd (
*os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl_2;
- be_module *module = 0;
+ be_module *module = nullptr;
if (node->is_nested () &&
node->defined_in ()->scope_node_type () == AST_Decl::NT_module)
{
- module = be_module::narrow_from_scope (node->defined_in ());
+ module = dynamic_cast<be_module*> (node->defined_in ());
- if (0 == module)
+ if (nullptr == module)
{
ACE_ERROR_RETURN ((LM_ERROR,
"be_visitor_valuebox_any_op_ch::"
@@ -101,11 +101,11 @@ be_visitor_interface_fwd_any_op_ch::visit_interface_fwd (
*os << be_global->core_versioning_end () << be_nl;
- if (module != 0)
+ if (module != nullptr)
{
*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 20199cf5d0c..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
@@ -18,7 +18,7 @@ be_visitor_interface_fwd_cdr_op_ch::be_visitor_interface_fwd_cdr_op_ch (
{
}
-be_visitor_interface_fwd_cdr_op_ch::~be_visitor_interface_fwd_cdr_op_ch (void)
+be_visitor_interface_fwd_cdr_op_ch::~be_visitor_interface_fwd_cdr_op_ch ()
{
}
@@ -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_interface_fwd/interface_fwd_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface_fwd/interface_fwd_ch.cpp
index 352675c9189..2529a46ccf3 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface_fwd/interface_fwd_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface_fwd/interface_fwd_ch.cpp
@@ -17,7 +17,7 @@ be_visitor_interface_fwd_ch::be_visitor_interface_fwd_ch (
{
}
-be_visitor_interface_fwd_ch::~be_visitor_interface_fwd_ch (void)
+be_visitor_interface_fwd_ch::~be_visitor_interface_fwd_ch ()
{
}
@@ -31,7 +31,7 @@ be_visitor_interface_fwd_ch::visit_interface_fwd (be_interface_fwd *node)
}
AST_Interface *fd = node->full_definition ();
- be_interface *bfd = be_interface::narrow_from_decl (fd);
+ be_interface *bfd = dynamic_cast<be_interface*> (fd);
// This will be a no-op if it has already been done for this node.
bfd->gen_var_out_seq_decls ();
diff --git a/TAO/TAO_IDL/be/be_visitor_member_type_decl.cpp b/TAO/TAO_IDL/be/be_visitor_member_type_decl.cpp
index 9917cbac4f4..eae48a5e4e0 100644
--- a/TAO/TAO_IDL/be/be_visitor_member_type_decl.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_member_type_decl.cpp
@@ -21,7 +21,7 @@ be_visitor_member_type_decl::be_visitor_member_type_decl (
{
}
-be_visitor_member_type_decl::~be_visitor_member_type_decl (void)
+be_visitor_member_type_decl::~be_visitor_member_type_decl ()
{
}
@@ -30,7 +30,7 @@ be_visitor_member_type_decl::visit_array (be_array *)
{
be_type *bt = this->ctx_->alias ();
- if (bt == 0)
+ if (bt == nullptr)
{
/// Support anonymous types?
return -1;
@@ -110,7 +110,7 @@ be_visitor_member_type_decl::visit_sequence (be_sequence *)
{
be_type *bt = this->ctx_->alias ();
- if (bt == 0)
+ if (bt == nullptr)
{
/// Support anonymous types?
return -1;
@@ -151,7 +151,7 @@ be_visitor_member_type_decl::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_module/any_op.cpp b/TAO/TAO_IDL/be/be_visitor_module/any_op.cpp
index 65576becd8c..3c642a7bbe8 100644
--- a/TAO/TAO_IDL/be/be_visitor_module/any_op.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_module/any_op.cpp
@@ -17,7 +17,7 @@ be_visitor_module_any_op::be_visitor_module_any_op (be_visitor_context *ctx)
{
}
-be_visitor_module_any_op::~be_visitor_module_any_op (void)
+be_visitor_module_any_op::~be_visitor_module_any_op ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_module/cdr_op.cpp b/TAO/TAO_IDL/be/be_visitor_module/cdr_op.cpp
index ae5fb8db117..75c65619fd0 100644
--- a/TAO/TAO_IDL/be/be_visitor_module/cdr_op.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_module/cdr_op.cpp
@@ -17,7 +17,7 @@ be_visitor_module_cdr_op::be_visitor_module_cdr_op (be_visitor_context *ctx)
{
}
-be_visitor_module_cdr_op::~be_visitor_module_cdr_op (void)
+be_visitor_module_cdr_op::~be_visitor_module_cdr_op ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_module/module.cpp b/TAO/TAO_IDL/be/be_visitor_module/module.cpp
index 5cd0cf15ed2..28cd2dedcd7 100644
--- a/TAO/TAO_IDL/be/be_visitor_module/module.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_module/module.cpp
@@ -16,7 +16,7 @@ be_visitor_module::be_visitor_module (be_visitor_context *ctx)
{
}
-be_visitor_module::~be_visitor_module (void)
+be_visitor_module::~be_visitor_module ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_module/module_ch.cpp b/TAO/TAO_IDL/be/be_visitor_module/module_ch.cpp
index 85636db20ea..9f27e58ac96 100644
--- a/TAO/TAO_IDL/be/be_visitor_module/module_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_module/module_ch.cpp
@@ -16,7 +16,7 @@ be_visitor_module_ch::be_visitor_module_ch (be_visitor_context *ctx)
{
}
-be_visitor_module_ch::~be_visitor_module_ch (void)
+be_visitor_module_ch::~be_visitor_module_ch ()
{
}
@@ -29,7 +29,7 @@ be_visitor_module_ch::visit_module (be_module *node)
}
TAO_OutStream *os = this->ctx_->stream ();
- TAO_OutStream *aos = 0;
+ TAO_OutStream *aos = nullptr;
*os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl_2;
diff --git a/TAO/TAO_IDL/be/be_visitor_module/module_ih.cpp b/TAO/TAO_IDL/be/be_visitor_module/module_ih.cpp
index 971954b23ce..ecf4e15c7f6 100644
--- a/TAO/TAO_IDL/be/be_visitor_module/module_ih.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_module/module_ih.cpp
@@ -16,7 +16,7 @@ be_visitor_module_ih::be_visitor_module_ih (be_visitor_context *ctx)
{
}
-be_visitor_module_ih::~be_visitor_module_ih (void)
+be_visitor_module_ih::~be_visitor_module_ih ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_module/module_sh.cpp b/TAO/TAO_IDL/be/be_visitor_module/module_sh.cpp
index 126bd313960..53e787c0e30 100644
--- a/TAO/TAO_IDL/be/be_visitor_module/module_sh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_module/module_sh.cpp
@@ -16,7 +16,7 @@ be_visitor_module_sh::be_visitor_module_sh (be_visitor_context *ctx)
{
}
-be_visitor_module_sh::~be_visitor_module_sh (void)
+be_visitor_module_sh::~be_visitor_module_sh ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_native/native_ch.cpp b/TAO/TAO_IDL/be/be_visitor_native/native_ch.cpp
index 0ef79436a49..9017e596896 100644
--- a/TAO/TAO_IDL/be/be_visitor_native/native_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_native/native_ch.cpp
@@ -23,7 +23,7 @@ be_visitor_native_ch::be_visitor_native_ch (be_visitor_context *ctx)
{
}
-be_visitor_native_ch::~be_visitor_native_ch (void)
+be_visitor_native_ch::~be_visitor_native_ch ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_null_return_value.cpp b/TAO/TAO_IDL/be/be_visitor_null_return_value.cpp
index 91c17cabbbb..12f226ea1c6 100644
--- a/TAO/TAO_IDL/be/be_visitor_null_return_value.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_null_return_value.cpp
@@ -23,7 +23,7 @@ be_visitor_null_return_value::be_visitor_null_return_value (
{
}
-be_visitor_null_return_value::~be_visitor_null_return_value (void)
+be_visitor_null_return_value::~be_visitor_null_return_value ()
{
}
@@ -122,7 +122,7 @@ be_visitor_null_return_value::visit_sequence (be_sequence *node)
const char *fname = node->full_name ();
be_typedef *td = this->ctx_->tdef ();
- if (td != 0)
+ if (td != nullptr)
{
fname = td->full_name ();
}
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/amh_rh_sh.cpp b/TAO/TAO_IDL/be/be_visitor_operation/amh_rh_sh.cpp
index 9e934d95725..080f6c6b715 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/amh_rh_sh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/amh_rh_sh.cpp
@@ -17,7 +17,7 @@ be_visitor_amh_rh_operation_sh::be_visitor_amh_rh_operation_sh (
{
}
-be_visitor_amh_rh_operation_sh::~be_visitor_amh_rh_operation_sh (void)
+be_visitor_amh_rh_operation_sh::~be_visitor_amh_rh_operation_sh ()
{
}
@@ -46,8 +46,8 @@ be_visitor_amh_rh_operation_sh::visit_operation (be_operation *node)
: node->defined_in ();
// Needs to be one or the other.
- if (be_interface::narrow_from_scope (s) == 0
- && be_porttype::narrow_from_scope (s) == 0)
+ if (dynamic_cast<be_interface*> (s) == nullptr
+ && dynamic_cast<be_porttype*> (s) == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_amh_rh_operation_sh::")
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/amh_rh_ss.cpp b/TAO/TAO_IDL/be/be_visitor_operation/amh_rh_ss.cpp
index c16e63c9736..9e2e9b98cf9 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/amh_rh_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/amh_rh_ss.cpp
@@ -16,7 +16,7 @@ be_visitor_amh_rh_operation_ss::be_visitor_amh_rh_operation_ss (
{
}
-be_visitor_amh_rh_operation_ss::~be_visitor_amh_rh_operation_ss (void)
+be_visitor_amh_rh_operation_ss::~be_visitor_amh_rh_operation_ss ()
{
}
@@ -43,13 +43,13 @@ be_visitor_amh_rh_operation_ss::visit_operation (be_operation *node)
? this->ctx_->attribute ()->defined_in ()
: node->defined_in ();
- be_interface *intf = be_interface::narrow_from_scope (s);
+ be_interface *intf = dynamic_cast<be_interface*> (s);
- if (intf == 0)
+ if (intf == nullptr)
{
- be_porttype *pt = be_porttype::narrow_from_scope (s);
+ be_porttype *pt = dynamic_cast<be_porttype*> (s);
- if (pt == 0)
+ if (pt == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_amh_rh_operation_sh::")
@@ -63,14 +63,14 @@ be_visitor_amh_rh_operation_ss::visit_operation (be_operation *node)
}
}
- char *buf = 0;
+ char *buf = nullptr;
intf->compute_full_name ("TAO_", "", buf);
ACE_CString response_handler_implementation_name ("POA_");
response_handler_implementation_name += buf;
// buf was allocated by ACE_OS::strdup, so we need to use free instead
// of delete.
ACE_OS::free (buf);
- buf = 0;
+ buf = nullptr;
// Step 1 : Generate return type: always void
*os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl
@@ -125,7 +125,7 @@ be_visitor_amh_rh_operation_ss::visit_operation (be_operation *node)
// 4) The implied valuetype ends in ExceptionHolder
const char *last_underbar = ACE_OS::strrchr (node->full_name (), '_');
- if (last_underbar != 0
+ if (last_underbar != nullptr
&& ACE_OS::strcmp (last_underbar, "_excep") == 0)
{
if (node->nmembers () == 1)
@@ -136,17 +136,17 @@ be_visitor_amh_rh_operation_ss::visit_operation (be_operation *node)
if (!i.is_done ())
{
be_argument *argument =
- be_argument::narrow_from_decl (i.item ());
+ dynamic_cast<be_argument*> (i.item ());
be_valuetype *vt =
- be_valuetype::narrow_from_decl (argument->field_type ());
+ dynamic_cast<be_valuetype*> (argument->field_type ());
- if (vt != 0
+ if (vt != nullptr
&& vt->original_interface () == intf->original_interface ())
{
const char *last_E =
ACE_OS::strrchr (vt->full_name (), 'E');
- if (last_E != 0
+ if (last_E != nullptr
&& ACE_OS::strcmp (last_E, "ExceptionHolder") == 0)
{
is_an_exception_reply = 1;
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/amh_sh.cpp b/TAO/TAO_IDL/be/be_visitor_operation/amh_sh.cpp
index 45a289e6fe5..f926fced243 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/amh_sh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/amh_sh.cpp
@@ -18,7 +18,7 @@ be_visitor_amh_operation_sh::be_visitor_amh_operation_sh (
{
}
-be_visitor_amh_operation_sh::~be_visitor_amh_operation_sh (void)
+be_visitor_amh_operation_sh::~be_visitor_amh_operation_sh ()
{
}
@@ -53,9 +53,9 @@ be_visitor_amh_operation_sh::visit_operation (be_operation *node)
i.next ())
{
be_argument *argument =
- be_argument::narrow_from_decl (i.item ());
+ dynamic_cast<be_argument*> (i.item ());
- if (argument == 0
+ if (argument == nullptr
|| argument->direction () == AST_Argument::dir_OUT)
{
continue;
@@ -139,16 +139,16 @@ be_visitor_amh_operation_sh::generate_shared_prologue (
// if this operation node was an attribute node in disguise, we get this
// information from the context
be_interface *intf =
- be_interface::narrow_from_scope (node->defined_in ());
+ dynamic_cast<be_interface*> (node->defined_in ());
- if (this->ctx_->attribute () != 0)
+ if (this->ctx_->attribute () != nullptr)
{
- intf = be_interface::narrow_from_scope (
+ intf = dynamic_cast<be_interface*> (
this->ctx_->attribute()->defined_in ()
);
}
- if (intf == 0)
+ if (intf == nullptr)
{
ACE_ERROR ((LM_ERROR,
"(%N:%l) be_visitor_amh_operation_sh::"
@@ -177,5 +177,5 @@ be_visitor_amh_operation_sh::generate_shared_prologue (
// buf was allocated by ACE_OS::strdup, so we must use free instead
// of delete.
ACE_OS::free (buf);
- buf = 0;
+ buf = nullptr;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/amh_ss.cpp b/TAO/TAO_IDL/be/be_visitor_operation/amh_ss.cpp
index 459e253fb1c..d188e056618 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/amh_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/amh_ss.cpp
@@ -17,7 +17,7 @@ be_visitor_amh_operation_ss::be_visitor_amh_operation_ss (
{
}
-be_visitor_amh_operation_ss::~be_visitor_amh_operation_ss (void)
+be_visitor_amh_operation_ss::~be_visitor_amh_operation_ss ()
{
}
@@ -62,9 +62,9 @@ be_visitor_amh_operation_ss::visit_operation (be_operation *node)
si.next ())
{
be_argument *argument =
- be_argument::narrow_from_decl (si.item ());
+ dynamic_cast<be_argument*> (si.item ());
- if (argument == 0
+ if (argument == nullptr
|| argument->direction () == AST_Argument::dir_OUT)
{
continue;
@@ -99,9 +99,9 @@ be_visitor_amh_operation_ss::visit_operation (be_operation *node)
sj.next ())
{
be_argument *argument =
- be_argument::narrow_from_decl (sj.item ());
+ dynamic_cast<be_argument*> (sj.item ());
- if (argument == 0
+ if (argument == nullptr
|| argument->direction () == AST_Argument::dir_OUT)
{
continue;
@@ -151,11 +151,11 @@ be_visitor_amh_operation_ss::visit_operation (be_operation *node)
!i.is_done ();)
{
be_argument *argument =
- be_argument::narrow_from_decl (i.item ());
+ dynamic_cast<be_argument*> (i.item ());
i.next ();
- if (argument == 0
+ if (argument == nullptr
|| argument->direction () == AST_Argument::dir_OUT)
{
continue;
@@ -308,9 +308,9 @@ be_visitor_amh_operation_ss::generate_shared_prologue (be_decl *node,
// if this operation node was an attribute node in disguise, we get this
// information from the context
be_interface *intf =
- be_interface::narrow_from_scope (node->defined_in ());
+ dynamic_cast<be_interface*> (node->defined_in ());
- if (intf == 0)
+ if (intf == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_operation_ss::"
@@ -327,7 +327,7 @@ be_visitor_amh_operation_ss::generate_shared_prologue (be_decl *node,
// buf was allocated by ACE_OS::strdup, so we need to use free instead
// of delete.
ACE_OS::free (buf);
- buf = 0;
+ buf = nullptr;
*os << "void" << be_nl
<< amh_skel_name.c_str () << "::"
@@ -359,7 +359,7 @@ be_visitor_amh_operation_ss::generate_shared_section (be_decl *node,
TAO_OutStream *os)
{
be_interface *intf =
- be_interface::narrow_from_scope (node->defined_in ());
+ dynamic_cast<be_interface*> (node->defined_in ());
if (!intf)
{
@@ -377,7 +377,7 @@ be_visitor_amh_operation_ss::generate_shared_section (be_decl *node,
// buf was allocated by ACE_OS::strdup, so we need to use free instead
// of delete.
ACE_OS::free (buf);
- buf = 0;
+ buf = nullptr;
*os << be_nl
<< "TAO_ORB_Core *orb_core =" << be_idt_nl
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 359af9aab39..b073286e4d7 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/ami_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/ami_cs.cpp
@@ -18,7 +18,7 @@ be_visitor_operation_ami_cs::be_visitor_operation_ami_cs (
{
}
-be_visitor_operation_ami_cs::~be_visitor_operation_ami_cs (void)
+be_visitor_operation_ami_cs::~be_visitor_operation_ami_cs ()
{
}
@@ -62,9 +62,9 @@ be_visitor_operation_ami_cs::visit_operation (be_operation *node)
// Grab the scope name.
be_decl *parent =
- be_scope::narrow_from_scope (node->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (node->defined_in ())->decl ();
- if (parent == 0)
+ if (parent == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_operation_ami_cs::"
@@ -103,7 +103,7 @@ be_visitor_operation_ami_cs::visit_operation (be_operation *node)
if (node->has_native ()) // native exists => no stub
{
be_predefined_type bpt (AST_PredefinedType::PT_void,
- 0);
+ nullptr);
int const status = this->gen_raise_exception ("::CORBA::MARSHAL",
"");
@@ -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
@@ -154,9 +154,9 @@ be_visitor_operation_ami_cs::visit_operation (be_operation *node)
*os << be_nl_2
<< "TAO::Argument *_the_tao_operation_signature[] =" << be_idt_nl
<< "{" << be_idt_nl
- << "&_tao_retval";
+ << "std::addressof(_tao_retval)";
- AST_Argument *arg = 0;
+ AST_Argument *arg = nullptr;
UTL_ScopeActiveIterator arg_list_iter (ami_op,
UTL_Scope::IK_decls);
@@ -165,10 +165,10 @@ be_visitor_operation_ami_cs::visit_operation (be_operation *node)
for (; ! arg_list_iter.is_done (); arg_list_iter.next ())
{
- arg = AST_Argument::narrow_from_decl (arg_list_iter.item ());
+ arg = dynamic_cast<AST_Argument*> (arg_list_iter.item ());
*os << "," << be_nl
- << "&_tao_" << arg->local_name ();
+ << "std::addressof(_tao_" << arg->local_name () << ")";
}
*os << be_uidt_nl
@@ -225,7 +225,7 @@ be_visitor_operation_ami_cs::visit_operation (be_operation *node)
if (parent->is_nested ())
{
be_decl *gparent =
- be_scope::narrow_from_scope (parent->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (parent->defined_in ())->decl ();
*os << gparent->name () << "::";
}
@@ -245,10 +245,10 @@ int
be_visitor_operation_ami_cs::visit_argument (be_argument *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0; // argument type
+ be_type *bt = nullptr; // argument type
// Retrieve the type for this argument.
- bt = be_type::narrow_from_decl (node->field_type ());
+ bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
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 1e4c533a705..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
@@ -19,7 +19,7 @@ be_visitor_operation_ami_handler_reply_stub_operation_cs (
}
be_visitor_operation_ami_handler_reply_stub_operation_cs::
-~be_visitor_operation_ami_handler_reply_stub_operation_cs (void)
+~be_visitor_operation_ami_handler_reply_stub_operation_cs ()
{
}
@@ -44,14 +44,14 @@ int
be_visitor_operation_ami_handler_reply_stub_operation_cs::visit_operation (
be_operation *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
be_visitor_context ctx;
TAO_OutStream *os = this->ctx_->stream ();
this->ctx_->node (node);
// Initialize the return type variable.
- bt = be_type::narrow_from_decl (node->return_type ());
+ bt = dynamic_cast<be_type*> (node->return_type ());
if (!bt)
{
@@ -74,7 +74,7 @@ be_visitor_operation_ami_handler_reply_stub_operation_cs::visit_operation (
// Get the scope name.
be_decl *parent =
- be_scope::narrow_from_scope (node->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (node->defined_in ())->decl ();
if (!parent)
{
@@ -155,7 +155,7 @@ be_visitor_operation_ami_handler_reply_stub_operation_cs::visit_operation (
*os << be_nl << "static TAO::Exception_Data " << "exceptions_data [] =" << be_nl;
*os << "{" << be_idt_nl;
- be_exception *ex = 0;
+ be_exception *ex = nullptr;
// Initialize an iterator to iterate thru the exception list.
// Continue until each element is visited.
@@ -163,7 +163,7 @@ be_visitor_operation_ami_handler_reply_stub_operation_cs::visit_operation (
for (UTL_ExceptlistActiveIterator ei (node->exceptions ());
!ei.is_done ();)
{
- ex = be_exception::narrow_from_decl (ei.item ());
+ ex = dynamic_cast<be_exception*> (ei.item ());
*os << "{" << be_idt_nl
<< "\"" << ex->repoID () << "\"," << be_nl;
@@ -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
@@ -246,10 +246,10 @@ be_visitor_operation_ami_handler_reply_stub_operation_cs::visit_argument (
)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Retrieve the type for this argument.
- bt = be_type::narrow_from_decl (node->field_type ());
+ bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp b/TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp
index aeb7d0d0ca9..9e72f70475d 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp
@@ -25,7 +25,7 @@ be_visitor_operation_arglist::be_visitor_operation_arglist (
{
}
-be_visitor_operation_arglist::~be_visitor_operation_arglist (void)
+be_visitor_operation_arglist::~be_visitor_operation_arglist ()
{
}
@@ -148,24 +148,24 @@ be_visitor_operation_arglist::visit_argument (be_argument *node)
// inside the scope of the interface node. In such cases, we would like to
// generate the appropriate relative scoped names.
be_operation *op =
- be_operation::narrow_from_scope (this->ctx_->scope ());
- be_interface *intf = 0;
+ dynamic_cast<be_operation*> (this->ctx_->scope ());
+ be_interface *intf = nullptr;
// We need the interface node in which this operation was defined. However,
// if this operation node was an attribute node in disguise, we get this
// information from the context
- if (op == 0)
+ if (op == nullptr)
{
be_factory *f =
- be_factory::narrow_from_scope (this->ctx_->scope ());
+ dynamic_cast<be_factory*> (this->ctx_->scope ());
- intf = be_interface::narrow_from_scope (f->defined_in ());
+ intf = dynamic_cast<be_interface*> (f->defined_in ());
}
else
{
intf = this->ctx_->attribute ()
- ? be_interface::narrow_from_scope (this->ctx_->attribute ()->defined_in ())
- : be_interface::narrow_from_scope (op->defined_in ());
+ ? dynamic_cast<be_interface*> (this->ctx_->attribute ()->defined_in ())
+ : dynamic_cast<be_interface*> (op->defined_in ());
}
// Set new scope.
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/argument.cpp b/TAO/TAO_IDL/be/be_visitor_operation/argument.cpp
index ca8756a0886..8eb0700cea0 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/argument.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/argument.cpp
@@ -23,7 +23,7 @@ be_visitor_operation_argument::be_visitor_operation_argument (
{
}
-be_visitor_operation_argument::~be_visitor_operation_argument (void)
+be_visitor_operation_argument::~be_visitor_operation_argument ()
{
}
@@ -87,9 +87,9 @@ be_visitor_operation_argument::visit_argument (be_argument *node)
// inside the scope of the interface node. In such cases, we would like to
// generate the appropriate relative scoped names.
be_operation *op =
- be_operation::narrow_from_scope (this->ctx_->scope ());
+ dynamic_cast<be_operation*> (this->ctx_->scope ());
- if (op == 0)
+ if (op == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_arglist::"
@@ -103,8 +103,8 @@ be_visitor_operation_argument::visit_argument (be_argument *node)
// information from the context.
be_interface *intf;
intf = this->ctx_->attribute ()
- ? be_interface::narrow_from_scope (this->ctx_->attribute ()->defined_in ())
- : be_interface::narrow_from_scope (op->defined_in ());
+ ? dynamic_cast<be_interface*> (this->ctx_->attribute ()->defined_in ())
+ : dynamic_cast<be_interface*> (op->defined_in ());
if (!intf)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/argument_invoke.cpp b/TAO/TAO_IDL/be/be_visitor_operation/argument_invoke.cpp
index d86ea3ee5b8..a1423254492 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/argument_invoke.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/argument_invoke.cpp
@@ -19,16 +19,13 @@
be_visitor_operation_argument_invoke::be_visitor_operation_argument_invoke (
be_visitor_context
- *ctx
- )
+ *ctx)
: be_visitor_operation_argument (ctx),
last_arg_printed_ (be_visitor_operation_argument_invoke::TAO_ARG_NONE)
{
}
-be_visitor_operation_argument_invoke::~be_visitor_operation_argument_invoke (
- void
- )
+be_visitor_operation_argument_invoke::~be_visitor_operation_argument_invoke ()
{
}
@@ -37,7 +34,7 @@ be_visitor_operation_argument_invoke::pre_process (be_decl *bd)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_argument *arg = be_argument::narrow_from_decl (bd);
+ be_argument *arg = dynamic_cast<be_argument*> (bd);
if (!arg)
{
@@ -97,7 +94,7 @@ be_visitor_operation_argument_invoke::pre_process (be_decl *bd)
int
be_visitor_operation_argument_invoke::post_process (be_decl *bd)
{
- be_argument *arg = be_argument::narrow_from_decl (bd);
+ be_argument *arg = dynamic_cast<be_argument*> (bd);
if (!arg)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/argument_marshal.cpp b/TAO/TAO_IDL/be/be_visitor_operation/argument_marshal.cpp
index 45a51afde58..57693c39b6f 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/argument_marshal.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/argument_marshal.cpp
@@ -19,16 +19,13 @@
be_visitor_operation_argument_marshal::be_visitor_operation_argument_marshal (
be_visitor_context
- *ctx
- )
+ *ctx)
: be_visitor_operation_argument (ctx),
last_arg_printed_ (be_visitor_operation_argument_marshal::TAO_ARG_NONE)
{
}
-be_visitor_operation_argument_marshal::~be_visitor_operation_argument_marshal (
- void
- )
+be_visitor_operation_argument_marshal::~be_visitor_operation_argument_marshal ()
{
}
@@ -37,7 +34,7 @@ be_visitor_operation_argument_marshal::pre_process (be_decl *bd)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_argument *arg = be_argument::narrow_from_decl (bd);
+ be_argument *arg = dynamic_cast<be_argument*> (bd);
if (!arg)
{
@@ -97,7 +94,7 @@ be_visitor_operation_argument_marshal::pre_process (be_decl *bd)
int
be_visitor_operation_argument_marshal::post_process (be_decl *bd)
{
- be_argument *arg = be_argument::narrow_from_decl (bd);
+ be_argument *arg = dynamic_cast<be_argument*> (bd);
if (!arg)
{
@@ -178,7 +175,7 @@ be_visitor_args_decl::visit_argument (be_argument *node)
this->ctx_->node (node); // save the argument node
// retrieve the type of the argument
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
return bt->accept (this);
}
@@ -191,9 +188,9 @@ be_visitor_args_decl::visit_array (be_array *node)
// retrieve the field node
be_argument *f =
- be_argument::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_argument*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_args_decl::"
@@ -221,7 +218,7 @@ be_visitor_args_decl::visit_array (be_array *node)
if (node->is_nested ())
{
be_decl *parent =
- be_scope::narrow_from_scope (node->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (node->defined_in ())->decl ();
ACE_OS::sprintf (fname,
"%s::_%s",
@@ -275,6 +272,6 @@ be_visitor_args_decl::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/direct_proxy_impl_ss.cpp b/TAO/TAO_IDL/be/be_visitor_operation/direct_proxy_impl_ss.cpp
index 714bcfa1e3b..aab0e909e4b 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/direct_proxy_impl_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/direct_proxy_impl_ss.cpp
@@ -7,7 +7,7 @@ be_visitor_operation_direct_proxy_impl_ss (be_visitor_context *ctx)
}
be_visitor_operation_direct_proxy_impl_ss::
-~be_visitor_operation_direct_proxy_impl_ss (void)
+~be_visitor_operation_direct_proxy_impl_ss ()
{
}
@@ -32,13 +32,13 @@ be_visitor_operation_direct_proxy_impl_ss::visit_operation (
? this->ctx_->attribute ()->defined_in ()
: node->defined_in ();
- be_interface *intf = be_interface::narrow_from_scope (s);
+ be_interface *intf = dynamic_cast<be_interface*> (s);
- if (intf == 0)
+ if (intf == nullptr)
{
- be_porttype *pt = be_porttype::narrow_from_scope (s);
+ be_porttype *pt = dynamic_cast<be_porttype*> (s);
- if (pt == 0)
+ if (pt == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_operation_")
@@ -153,12 +153,12 @@ be_visitor_operation_direct_proxy_impl_ss::gen_invoke (
return 0;
}
- AST_Argument *arg = 0;
+ AST_Argument *arg = nullptr;
int index = 1;
for (; !si.is_done (); si.next (), ++index)
{
- arg = AST_Argument::narrow_from_decl (si.item ());
+ arg = dynamic_cast<AST_Argument*> (si.item ());
*os << (index == 1 ? "" : ",") << be_nl
<< "((TAO::Arg_Traits< ";
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/exceptlist_cs.cpp b/TAO/TAO_IDL/be/be_visitor_operation/exceptlist_cs.cpp
index e234183eda7..7a4e5274a17 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/exceptlist_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/exceptlist_cs.cpp
@@ -23,7 +23,7 @@ be_visitor_operation_exceptlist_cs::be_visitor_operation_exceptlist_cs (
{
}
-be_visitor_operation_exceptlist_cs::~be_visitor_operation_exceptlist_cs (void)
+be_visitor_operation_exceptlist_cs::~be_visitor_operation_exceptlist_cs ()
{
}
@@ -41,7 +41,7 @@ be_visitor_operation_exceptlist_cs::visit_operation (be_operation *node)
<< "_exceptiondata [] = " << be_idt_nl;
*os << "{" << be_idt_nl;
- be_exception *ex = 0;
+ be_exception *ex = nullptr;
// Initialize an iterator to iterate thru the exception list.
// Continue until each element is visited.
@@ -50,7 +50,7 @@ be_visitor_operation_exceptlist_cs::visit_operation (be_operation *node)
!ei.is_done ();)
{
AST_Decl *d = ei.item ();
- ex = be_exception::narrow_from_decl (d);
+ ex = dynamic_cast<be_exception*> (d);
*os << "{" << be_idt_nl
<< "\"" << ex->repoID () << "\"," << be_nl
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/exceptlist_ss.cpp b/TAO/TAO_IDL/be/be_visitor_operation/exceptlist_ss.cpp
index 9b8db063795..8d54dfbce92 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/exceptlist_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/exceptlist_ss.cpp
@@ -23,7 +23,7 @@ be_visitor_operation_exceptlist_ss::be_visitor_operation_exceptlist_ss (
{
}
-be_visitor_operation_exceptlist_ss::~be_visitor_operation_exceptlist_ss (void)
+be_visitor_operation_exceptlist_ss::~be_visitor_operation_exceptlist_ss ()
{
}
@@ -47,7 +47,7 @@ be_visitor_operation_exceptlist_ss::visit_operation (be_operation * node)
for (UTL_ExceptlistActiveIterator ei (node->exceptions ());
!ei.is_done ();)
{
- be_exception * ex = be_exception::narrow_from_decl (ei.item ());
+ be_exception * ex = dynamic_cast<be_exception*> (ei.item ());
*os << ex->tc_name ();
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/operation.cpp b/TAO/TAO_IDL/be/be_visitor_operation/operation.cpp
index 479ee59a5a6..498b403d1da 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/operation.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/operation.cpp
@@ -20,7 +20,7 @@ be_visitor_operation::be_visitor_operation (be_visitor_context *ctx)
{
}
-be_visitor_operation::~be_visitor_operation (void)
+be_visitor_operation::~be_visitor_operation ()
{
}
@@ -31,12 +31,12 @@ be_visitor_operation::void_return_type (be_type *bt)
if (bt->node_type () == AST_Decl::NT_pre_defined)
{
be_predefined_type * const bpd =
- be_predefined_type::narrow_from_decl (bt);
+ dynamic_cast<be_predefined_type*> (bt);
if (!bpd)
ACE_ERROR_RETURN ((LM_ERROR,
"TAO_IDL (%N:%l) "
- "be_predefined_type::narrow_from_decl "
+ "dynamic_cast<be_predefined_type*> "
"failed\n"),
0);
@@ -75,14 +75,14 @@ be_visitor_operation::count_non_out_parameters (be_operation *node)
si.next ())
{
be_argument *bd =
- be_argument::narrow_from_decl (si.item ());
+ dynamic_cast<be_argument*> (si.item ());
// We do not generate insertion operators for valuetypes
// yet. Do not include them in the count.
be_valuetype *vt =
- be_valuetype::narrow_from_decl (bd->field_type ());
+ dynamic_cast<be_valuetype*> (bd->field_type ());
- if ((bd->direction () != AST_Argument::dir_OUT) && vt == 0)
+ if ((bd->direction () != AST_Argument::dir_OUT) && vt == nullptr)
{
++count;
}
@@ -106,7 +106,7 @@ be_visitor_operation::is_amh_exception_holder (be_interface *node)
{
//ACE_DEBUG ((LM_DEBUG, "Passed first test of amh_excepholder\n"));
const char *last_E = ACE_OS::strrchr (node->full_name (), 'E');
- if (last_E != 0
+ if (last_E != nullptr
&& ACE_OS::strcmp (last_E, "ExceptionHolder") == 0)
{
//ACE_DEBUG ((LM_DEBUG, "be_visitor_operation: Passed second test of amh_excepholder\n"));
@@ -140,13 +140,13 @@ be_visitor_operation::gen_stub_operation_body (
? this->ctx_->attribute ()->defined_in ()
: node->defined_in ();
- be_interface *intf = be_interface::narrow_from_scope (s);
+ be_interface *intf = dynamic_cast<be_interface*> (s);
- if (intf == 0)
+ if (intf == nullptr)
{
- be_porttype *pt = be_porttype::narrow_from_scope (s);
+ be_porttype *pt = dynamic_cast<be_porttype*> (s);
- if (pt == 0)
+ if (pt == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_operation::")
@@ -213,18 +213,18 @@ be_visitor_operation::gen_stub_operation_body (
*os << be_nl_2
<< "TAO::Argument *_the_tao_operation_signature [] =" << be_idt_nl
<< "{" << be_idt_nl
- << "&_tao_retval";
+ << "std::addressof(_tao_retval)";
- AST_Argument *arg = 0;
+ AST_Argument *arg = nullptr;
for (UTL_ScopeActiveIterator arg_list_iter (node, UTL_Scope::IK_decls);
! arg_list_iter.is_done ();
arg_list_iter.next ())
{
- arg = AST_Argument::narrow_from_decl (arg_list_iter.item ());
+ arg = dynamic_cast<AST_Argument*> (arg_list_iter.item ());
*os << "," << be_nl
- << "&_tao_" << arg->local_name ();
+ << "std::addressof(_tao_" << arg->local_name () << ")";
}
*os << be_uidt_nl
@@ -329,7 +329,7 @@ be_visitor_operation::gen_stub_operation_body (
}
else
{
- *os << "_tao_call.invoke (0, 0);";
+ *os << "_tao_call.invoke (nullptr, 0);";
}
if (!this->void_return_type (return_type))
@@ -408,7 +408,7 @@ be_visitor_operation::gen_stub_body_arglist (be_operation *node,
TAO_OutStream *os,
bool ami)
{
- AST_Argument *arg = 0;
+ AST_Argument *arg = nullptr;
UTL_ScopeActiveIterator arg_decl_iter (node, UTL_Scope::IK_decls);
if (ami)
@@ -419,7 +419,7 @@ be_visitor_operation::gen_stub_body_arglist (be_operation *node,
for (; ! arg_decl_iter.is_done (); arg_decl_iter.next ())
{
- arg = AST_Argument::narrow_from_decl (arg_decl_iter.item ());
+ arg = dynamic_cast<AST_Argument*> (arg_decl_iter.item ());
*os << be_nl
<< "TAO::Arg_Traits< ";
@@ -459,11 +459,11 @@ be_visitor_operation::gen_arg_template_param_name (AST_Decl *scope,
AST_Type *bt,
TAO_OutStream *os)
{
- AST_Typedef *alias = 0;
+ AST_Typedef *alias = nullptr;
if (bt->node_type () == AST_Decl::NT_typedef)
{
- alias = AST_Typedef::narrow_from_decl (bt);
+ alias = dynamic_cast<AST_Typedef*> (bt);
}
AST_Decl::NodeType nt = bt->unaliased_type ()->node_type ();
@@ -472,7 +472,7 @@ be_visitor_operation::gen_arg_template_param_name (AST_Decl *scope,
if (nt == AST_Decl::NT_string || nt == AST_Decl::NT_wstring)
{
AST_String *s =
- AST_String::narrow_from_decl (bt->unaliased_type ());
+ dynamic_cast<AST_String*> (bt->unaliased_type ());
bound = s->max_size ()->ev ()->u.ulval;
// If the (w)string is unbounded, code is generated below by the
@@ -481,7 +481,7 @@ be_visitor_operation::gen_arg_template_param_name (AST_Decl *scope,
{
*os << "::TAO::";
- if (alias != 0)
+ if (alias != nullptr)
{
*os << alias->local_name () << "_" << bound;
}
@@ -513,7 +513,7 @@ be_visitor_operation::gen_arg_template_param_name (AST_Decl *scope,
if (nt == AST_Decl::NT_pre_defined)
{
AST_PredefinedType *pdt =
- AST_PredefinedType::narrow_from_decl (ut);
+ dynamic_cast<AST_PredefinedType*> (ut);
switch (pdt->pt ())
{
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/operation_ch.cpp b/TAO/TAO_IDL/be/be_visitor_operation/operation_ch.cpp
index 736845088ba..9135f9dfe30 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/operation_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/operation_ch.cpp
@@ -20,7 +20,7 @@ be_visitor_operation_ch::be_visitor_operation_ch (be_visitor_context *ctx)
{
}
-be_visitor_operation_ch::~be_visitor_operation_ch (void)
+be_visitor_operation_ch::~be_visitor_operation_ch ()
{
}
@@ -34,7 +34,7 @@ be_visitor_operation_ch::visit_operation (be_operation *node)
*os << be_nl_2;
// STEP I: generate the return type.
- be_type *bt = be_type::narrow_from_decl (node->return_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->return_type ());
if (!bt)
{
@@ -97,12 +97,12 @@ be_visitor_operation_ch::visit_operation (be_operation *node)
}
be_interface *intf =
- be_interface::narrow_from_scope (node->defined_in ());
+ dynamic_cast<be_interface*> (node->defined_in ());
/// If we are in a reply handler, are not an excep_* operation,
/// and have no native args, then generate the AMI static
/// reply stub declaration.
- if (intf != 0
+ if (intf != nullptr
&& intf->is_ami_rh ()
&& !node->is_excep_ami ()
&& !node->has_native ())
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/operation_cs.cpp b/TAO/TAO_IDL/be/be_visitor_operation/operation_cs.cpp
index 4177101bb59..ec94769a15e 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/operation_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/operation_cs.cpp
@@ -20,7 +20,7 @@ be_visitor_operation_cs::be_visitor_operation_cs (be_visitor_context *ctx)
{
}
-be_visitor_operation_cs::~be_visitor_operation_cs (void)
+be_visitor_operation_cs::~be_visitor_operation_cs ()
{
}
@@ -47,13 +47,13 @@ be_visitor_operation_cs::visit_operation (be_operation *node)
? this->ctx_->attribute ()->defined_in ()
: node->defined_in ();
- be_interface *intf = be_interface::narrow_from_scope (s);
+ be_interface *intf = dynamic_cast<be_interface*> (s);
- if (intf == 0)
+ if (intf == nullptr)
{
- be_porttype *pt = be_porttype::narrow_from_scope (s);
+ be_porttype *pt = dynamic_cast<be_porttype*> (s);
- if (pt == 0)
+ if (pt == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_operation_cs::")
@@ -65,7 +65,7 @@ be_visitor_operation_cs::visit_operation (be_operation *node)
{
intf = this->ctx_->interface ();
- if (intf == 0)
+ if (intf == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_operation_cs::")
@@ -88,7 +88,7 @@ be_visitor_operation_cs::visit_operation (be_operation *node)
<< "// " << __FILE__ << ":" << __LINE__ << be_nl_2;
// Retrieve the operation return type.
- be_type *bt = be_type::narrow_from_decl (node->return_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->return_type ());
if (!bt)
{
@@ -142,7 +142,7 @@ be_visitor_operation_cs::visit_operation (be_operation *node)
/// If we are in a reply handler, are not an execp_* operation,
/// and have no native args, then generate the AMI static
/// reply stub declaration.
- if (intf != 0
+ if (intf != nullptr
&& intf->is_ami_rh ()
&& !node->is_excep_ami ()
&& !node->has_native ())
@@ -171,7 +171,7 @@ be_visitor_operation_cs::visit_argument (be_argument *node)
// This method is used to generate the ParamData table entry.
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/operation_exs.cpp b/TAO/TAO_IDL/be/be_visitor_operation/operation_exs.cpp
index 5e52b120d66..38a7844492b 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/operation_exs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/operation_exs.cpp
@@ -14,13 +14,13 @@
be_visitor_operation_exs::be_visitor_operation_exs (be_visitor_context *ctx)
: be_visitor_scope (ctx),
os_ (*ctx->stream ()),
- scope_ (0),
+ scope_ (nullptr),
your_code_here_ ("/* Your code here. */"),
class_extension_ ("_exec_i")
{
}
-be_visitor_operation_exs::~be_visitor_operation_exs (void)
+be_visitor_operation_exs::~be_visitor_operation_exs ()
{
}
@@ -38,9 +38,9 @@ be_visitor_operation_exs::visit_operation (be_operation *node)
os_ << be_nl_2;
// Retrieve the operation return type.
- be_type *rt = be_type::narrow_from_decl (node->return_type ());
+ be_type *rt = dynamic_cast<be_type*> (node->return_type ());
- if (rt == 0)
+ if (rt == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_operation_exs::")
@@ -111,7 +111,7 @@ be_visitor_operation_exs::gen_op_body (be_type *return_type)
<< your_code_here_;
be_operation *op =
- be_operation::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_operation*> (this->ctx_->node ());
if (! op->void_return_type ())
{
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/operation_ih.cpp b/TAO/TAO_IDL/be/be_visitor_operation/operation_ih.cpp
index 67c4ad7bf65..26ab9dace41 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/operation_ih.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/operation_ih.cpp
@@ -16,7 +16,7 @@ be_visitor_operation_ih::be_visitor_operation_ih (be_visitor_context *ctx)
{
}
-be_visitor_operation_ih::~be_visitor_operation_ih (void)
+be_visitor_operation_ih::~be_visitor_operation_ih ()
{
}
@@ -44,7 +44,7 @@ be_visitor_operation_ih::visit_operation (be_operation *node)
*os << "virtual" << be_nl;
// STEP I: generate the return type
- be_type *bt = be_type::narrow_from_decl (node->return_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->return_type ());
if (!bt)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/operation_is.cpp b/TAO/TAO_IDL/be/be_visitor_operation/operation_is.cpp
index 7a3a3893e98..2de4bd8c983 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/operation_is.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/operation_is.cpp
@@ -16,7 +16,7 @@ be_visitor_operation_is::be_visitor_operation_is (be_visitor_context *ctx)
{
}
-be_visitor_operation_is::~be_visitor_operation_is (void)
+be_visitor_operation_is::~be_visitor_operation_is ()
{
}
@@ -35,7 +35,7 @@ be_visitor_operation_is::visit_operation (be_operation *node)
this->ctx_->node (node); // save the node
// STEP I: generate the return type
- be_type *bt = be_type::narrow_from_decl (node->return_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->return_type ());
if (!bt)
{
@@ -64,7 +64,7 @@ be_visitor_operation_is::visit_operation (be_operation *node)
-1);
}
- const char *classname = 0;
+ const char *classname = nullptr;
if (intf)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/operation_sh.cpp b/TAO/TAO_IDL/be/be_visitor_operation/operation_sh.cpp
index d0aa64d2023..d26e0eb61eb 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/operation_sh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/operation_sh.cpp
@@ -16,7 +16,7 @@ be_visitor_operation_sh::be_visitor_operation_sh (be_visitor_context *ctx)
{
}
-be_visitor_operation_sh::~be_visitor_operation_sh (void)
+be_visitor_operation_sh::~be_visitor_operation_sh ()
{
}
@@ -38,7 +38,7 @@ be_visitor_operation_sh::visit_operation (be_operation *node)
*os << "virtual ";
// STEP I: generate the return type.
- be_type *bt = be_type::narrow_from_decl (node->return_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->return_type ());
if (!bt)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/operation_ss.cpp b/TAO/TAO_IDL/be/be_visitor_operation/operation_ss.cpp
index 1c04abc57a8..a3256880c8e 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/operation_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/operation_ss.cpp
@@ -16,7 +16,7 @@ be_visitor_operation_ss::be_visitor_operation_ss (be_visitor_context *ctx)
{
}
-be_visitor_operation_ss::~be_visitor_operation_ss (void)
+be_visitor_operation_ss::~be_visitor_operation_ss ()
{
}
@@ -30,7 +30,7 @@ be_visitor_operation_ss::visit_operation (be_operation * node)
}
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
this->ctx_->node (node);
@@ -43,7 +43,7 @@ be_visitor_operation_ss::visit_operation (be_operation * node)
}
// Retrieve the operation return type.
- bt = be_type::narrow_from_decl (node->return_type ());
+ bt = dynamic_cast<be_type*> (node->return_type ());
if (!bt)
{
@@ -65,7 +65,7 @@ be_visitor_operation_ss::visit_argument (be_argument *node)
TAO_OutStream *os = this->ctx_->stream ();
// Retrieve the type for this argument.
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -127,9 +127,9 @@ be_visitor_operation_ss::gen_skel_operation_body (be_operation * node,
? this->ctx_->attribute ()->defined_in ()
: node->defined_in ();
- be_interface *intf = be_interface::narrow_from_scope (s);
+ be_interface *intf = dynamic_cast<be_interface*> (s);
- if (intf == 0)
+ if (intf == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_operation_ss::")
@@ -220,17 +220,17 @@ be_visitor_operation_ss::gen_skel_operation_body (be_operation * node,
*os << be_nl_2
<< "TAO::Argument * const args[] =" << be_idt_nl
<< "{" << be_idt_nl
- << "&retval";
+ << "std::addressof(retval)";
for (UTL_ScopeActiveIterator arg_list_iter (node, UTL_Scope::IK_decls);
! arg_list_iter.is_done ();
arg_list_iter.next ())
{
AST_Argument * const arg =
- AST_Argument::narrow_from_decl (arg_list_iter.item ());
+ dynamic_cast<AST_Argument*> (arg_list_iter.item ());
*os << "," << be_nl
- << "&_tao_" << arg->local_name ();
+ << "std::addressof(_tao_" << arg->local_name () << ")";
}
*os << be_uidt_nl
@@ -280,7 +280,7 @@ be_visitor_operation_ss::gen_skel_operation_body (be_operation * node,
}
else
{
- *os << " , 0" << be_nl
+ *os << " , nullptr" << be_nl
<< " , 0";
}
@@ -300,7 +300,7 @@ be_visitor_operation_ss::gen_skel_body_arglist (be_operation * node,
arg_decl_iter.next ())
{
AST_Argument * const arg =
- AST_Argument::narrow_from_decl (arg_decl_iter.item ());
+ dynamic_cast<AST_Argument*> (arg_decl_iter.item ());
*os << be_nl
<< "TAO::SArg_Traits< ";
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/operation_svs.cpp b/TAO/TAO_IDL/be/be_visitor_operation/operation_svs.cpp
index 0a7f41b866c..f238e8996d9 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/operation_svs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/operation_svs.cpp
@@ -15,11 +15,11 @@
be_visitor_operation_svs::be_visitor_operation_svs (
be_visitor_context *ctx)
: be_visitor_scope (ctx),
- scope_ (0)
+ scope_ (nullptr)
{
}
-be_visitor_operation_svs::~be_visitor_operation_svs (void)
+be_visitor_operation_svs::~be_visitor_operation_svs ()
{
}
@@ -37,9 +37,9 @@ be_visitor_operation_svs::visit_operation (be_operation *node)
<< be_nl;
}
// Retrieve the operation return type.
- be_type *bt = be_type::narrow_from_decl (node->return_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->return_type ());
- if (bt == 0)
+ if (bt == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"be_visitor_operation_svs::"
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/proxy_impl_xh.cpp b/TAO/TAO_IDL/be/be_visitor_operation/proxy_impl_xh.cpp
index 46dadc29d59..87bdd4dc2da 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/proxy_impl_xh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/proxy_impl_xh.cpp
@@ -6,7 +6,7 @@ be_visitor_operation_proxy_impl_xh::be_visitor_operation_proxy_impl_xh (
{
}
-be_visitor_operation_proxy_impl_xh::~be_visitor_operation_proxy_impl_xh (void)
+be_visitor_operation_proxy_impl_xh::~be_visitor_operation_proxy_impl_xh ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/rettype.cpp b/TAO/TAO_IDL/be/be_visitor_operation/rettype.cpp
index 8096821e52e..08115517406 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/rettype.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/rettype.cpp
@@ -23,7 +23,7 @@ be_visitor_operation_rettype::be_visitor_operation_rettype (be_visitor_context
{
}
-be_visitor_operation_rettype::~be_visitor_operation_rettype (void)
+be_visitor_operation_rettype::~be_visitor_operation_rettype ()
{
}
@@ -76,7 +76,7 @@ int
be_visitor_operation_rettype::visit_predefined_type (
be_predefined_type *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -195,7 +195,7 @@ be_visitor_operation_rettype::visit_typedef (
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -286,9 +286,9 @@ be_visitor_operation_rettype::visit_valuebox (
const char *
be_visitor_operation_rettype::type_name (be_type *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
- if (this->ctx_->alias () != 0)
+ if (this->ctx_->alias () != nullptr)
{
// A typedefed return type.
bt = this->ctx_->alias ();
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/rettype_return_cs.cpp b/TAO/TAO_IDL/be/be_visitor_operation/rettype_return_cs.cpp
index dffded06c3e..035f27cb707 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/rettype_return_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/rettype_return_cs.cpp
@@ -24,7 +24,7 @@ be_visitor_operation_rettype_return_cs (be_visitor_context *ctx)
}
be_visitor_operation_rettype_return_cs::
-~be_visitor_operation_rettype_return_cs (void)
+~be_visitor_operation_rettype_return_cs ()
{
}
@@ -189,7 +189,7 @@ be_visitor_operation_rettype_return_cs::visit_typedef (
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/smart_proxy_ch.cpp b/TAO/TAO_IDL/be/be_visitor_operation/smart_proxy_ch.cpp
index 41520dce0f7..3a4522ffbbf 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/smart_proxy_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/smart_proxy_ch.cpp
@@ -16,15 +16,12 @@
// ******************************************************
be_visitor_operation_smart_proxy_ch::be_visitor_operation_smart_proxy_ch (
- be_visitor_context *ctx
- )
+ be_visitor_context *ctx)
: be_visitor_scope (ctx)
{
}
-be_visitor_operation_smart_proxy_ch::~be_visitor_operation_smart_proxy_ch (
- void
- )
+be_visitor_operation_smart_proxy_ch::~be_visitor_operation_smart_proxy_ch ()
{
}
@@ -41,7 +38,7 @@ be_visitor_operation_smart_proxy_ch::visit_operation (be_operation *node)
*os << "virtual ";
// STEP I: generate the return type.
- be_type *bt = be_type::narrow_from_decl (node->return_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->return_type ());
if (!bt)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/smart_proxy_cs.cpp b/TAO/TAO_IDL/be/be_visitor_operation/smart_proxy_cs.cpp
index 0ca7300e45b..7173c94b322 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/smart_proxy_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/smart_proxy_cs.cpp
@@ -17,9 +17,7 @@ be_visitor_operation_smart_proxy_cs::be_visitor_operation_smart_proxy_cs (
{
}
-be_visitor_operation_smart_proxy_cs::~be_visitor_operation_smart_proxy_cs (
- void
- )
+be_visitor_operation_smart_proxy_cs::~be_visitor_operation_smart_proxy_cs ()
{
}
@@ -37,13 +35,13 @@ int be_visitor_operation_smart_proxy_cs::visit_operation (be_operation *node)
? this->ctx_->attribute ()->defined_in ()
: node->defined_in ();
- be_interface *intf = be_interface::narrow_from_scope (s);
+ be_interface *intf = dynamic_cast<be_interface*> (s);
- if (intf == 0)
+ if (intf == nullptr)
{
- be_porttype *pt = be_porttype::narrow_from_scope (s);
+ be_porttype *pt = dynamic_cast<be_porttype*> (s);
- if (pt == 0)
+ if (pt == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_operation_")
@@ -58,7 +56,7 @@ int be_visitor_operation_smart_proxy_cs::visit_operation (be_operation *node)
}
}
- be_type *bt = be_type::narrow_from_decl (node->return_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->return_type ());
if (!bt)
{
@@ -87,7 +85,7 @@ int be_visitor_operation_smart_proxy_cs::visit_operation (be_operation *node)
// node (i.e the operation) is already in a scope lower than intf
// (i.e. be_interface), so for deciding the exact scope use intf.
- be_decl* scope = be_scope::narrow_from_scope (intf->defined_in ())->decl ();
+ be_decl* scope = dynamic_cast<be_scope*> (intf->defined_in ())->decl ();
*os << " ";
*os << scope->full_name ();
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/tie_sh.cpp b/TAO/TAO_IDL/be/be_visitor_operation/tie_sh.cpp
index 2448df4c6cc..fb24e5ed20d 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/tie_sh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/tie_sh.cpp
@@ -18,7 +18,7 @@ be_visitor_operation_tie_sh::be_visitor_operation_tie_sh (
{
}
-be_visitor_operation_tie_sh::~be_visitor_operation_tie_sh (void)
+be_visitor_operation_tie_sh::~be_visitor_operation_tie_sh ()
{
}
@@ -36,7 +36,7 @@ be_visitor_operation_tie_sh::visit_operation (be_operation *node)
this->ctx_->node (node);
// STEP I: generate the return type.
- be_type *bt = be_type::narrow_from_decl (node->return_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->return_type ());
if (!bt)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/tie_ss.cpp b/TAO/TAO_IDL/be/be_visitor_operation/tie_ss.cpp
index 9450b60e1e3..6d68b3ec985 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/tie_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/tie_ss.cpp
@@ -17,7 +17,7 @@ be_visitor_operation_tie_ss::be_visitor_operation_tie_ss (
{
}
-be_visitor_operation_tie_ss::~be_visitor_operation_tie_ss (void)
+be_visitor_operation_tie_ss::~be_visitor_operation_tie_ss ()
{
}
@@ -44,7 +44,7 @@ int be_visitor_operation_tie_ss::visit_operation (be_operation *node)
}
// Retrieve the operation return type.
- be_type *bt = be_type::narrow_from_decl (node->return_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->return_type ());
if (!bt)
{
@@ -71,7 +71,7 @@ int be_visitor_operation_tie_ss::visit_operation (be_operation *node)
// Check for conflicts between the arg name and the proposed template
// class identifier
AST_Argument *arg =
- AST_Argument::narrow_from_decl (si.item ());
+ dynamic_cast<AST_Argument*> (si.item ());
if (! ACE_OS::strcmp (arg->local_name ()->get_string (),
template_name.c_str ()))
@@ -127,9 +127,9 @@ int be_visitor_operation_tie_ss::visit_operation (be_operation *node)
*os << be_nl << "{" << be_idt_nl;
- be_predefined_type *pdt = be_predefined_type::narrow_from_decl (bt);
+ be_predefined_type *pdt = dynamic_cast<be_predefined_type*> (bt);
- if (pdt == 0 || pdt->pt () != AST_PredefinedType::PT_void)
+ if (pdt == nullptr || pdt->pt () != AST_PredefinedType::PT_void)
{
*os << "return ";
}
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 2df7ec104ad..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
@@ -19,7 +19,7 @@ be_visitor_operation_upcall_command_ss::be_visitor_operation_upcall_command_ss (
}
be_visitor_operation_upcall_command_ss::~be_visitor_operation_upcall_command_ss (
- void)
+ )
{
}
@@ -35,8 +35,8 @@ be_visitor_operation_upcall_command_ss::visit (
}
be_interface * const intf = this->ctx_->attribute ()
- ? be_interface::narrow_from_scope (this->ctx_->attribute ()->defined_in ())
- : be_interface::narrow_from_scope (node->defined_in ());
+ ? dynamic_cast<be_interface*> (this->ctx_->attribute ()->defined_in ())
+ : dynamic_cast<be_interface*> (node->defined_in ());
if (!intf)
{
@@ -47,7 +47,7 @@ be_visitor_operation_upcall_command_ss::visit (
-1);
}
- be_module *module = 0;
+ be_module *module = nullptr;
TAO_OutStream & os = *this->ctx_->stream ();
@@ -57,9 +57,9 @@ be_visitor_operation_upcall_command_ss::visit (
if (intf->is_nested () &&
intf->defined_in ()->scope_node_type () == AST_Decl::NT_module)
{
- module = be_module::narrow_from_scope (intf->defined_in ());
+ module = dynamic_cast<be_module*> (intf->defined_in ());
- if (module == 0)
+ if (module == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_operation_")
@@ -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 ())
@@ -200,7 +200,7 @@ be_visitor_operation_upcall_command_ss::visit (
os << be_uidt_nl
<< "};";
- if (module != 0)
+ if (module != nullptr)
{
be_util::gen_nested_namespace_end (&os, module);
}
@@ -228,18 +228,18 @@ be_visitor_operation_upcall_command_ss::gen_upcall (
for (; !si.is_done (); si.next (), ++index)
{
AST_Argument * const arg =
- AST_Argument::narrow_from_decl (si.item ());
+ dynamic_cast<AST_Argument*> (si.item ());
// Finish the check for the _excep method
if (excep_method)
{
excep_method = false;
be_argument *argument =
- be_argument::narrow_from_decl (si.item ());
+ dynamic_cast<be_argument*> (si.item ());
be_valuetype *value_type =
- be_valuetype::narrow_from_decl (argument->field_type ());
+ dynamic_cast<be_valuetype*> (argument->field_type ());
- if (value_type != 0)
+ if (value_type != nullptr)
{
static const char *excepholder = "ExceptionHolder";
static const size_t excepholder_len =
diff --git a/TAO/TAO_IDL/be/be_visitor_root/any_op.cpp b/TAO/TAO_IDL/be/be_visitor_root/any_op.cpp
index 56a0feed9b1..439da73062d 100644
--- a/TAO/TAO_IDL/be/be_visitor_root/any_op.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_root/any_op.cpp
@@ -22,7 +22,7 @@ be_visitor_root_any_op::be_visitor_root_any_op (be_visitor_context *ctx)
{
}
-be_visitor_root_any_op::~be_visitor_root_any_op (void)
+be_visitor_root_any_op::~be_visitor_root_any_op ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_root/cdr_op.cpp b/TAO/TAO_IDL/be/be_visitor_root/cdr_op.cpp
index bd62a120467..89cb9e23096 100644
--- a/TAO/TAO_IDL/be/be_visitor_root/cdr_op.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_root/cdr_op.cpp
@@ -22,7 +22,7 @@ be_visitor_root_cdr_op::be_visitor_root_cdr_op (be_visitor_context *ctx)
{
}
-be_visitor_root_cdr_op::~be_visitor_root_cdr_op (void)
+be_visitor_root_cdr_op::~be_visitor_root_cdr_op ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_root/root.cpp b/TAO/TAO_IDL/be/be_visitor_root/root.cpp
index e2e0ec92fae..ef1ad8a4882 100644
--- a/TAO/TAO_IDL/be/be_visitor_root/root.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_root/root.cpp
@@ -17,7 +17,7 @@ be_visitor_root::be_visitor_root (be_visitor_context *ctx)
{
}
-be_visitor_root::~be_visitor_root (void)
+be_visitor_root::~be_visitor_root ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_root/root_ch.cpp b/TAO/TAO_IDL/be/be_visitor_root/root_ch.cpp
index 44adb8fb6c7..d2cfc9934c8 100644
--- a/TAO/TAO_IDL/be/be_visitor_root/root_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_root/root_ch.cpp
@@ -17,11 +17,11 @@
be_visitor_root_ch::be_visitor_root_ch (be_visitor_context *ctx)
: be_visitor_root (ctx),
- o_ (0)
+ o_ (nullptr)
{
}
-be_visitor_root_ch::~be_visitor_root_ch (void)
+be_visitor_root_ch::~be_visitor_root_ch ()
{
}
@@ -116,7 +116,7 @@ be_visitor_root_ch::visit_root (be_root *node)
}
int
-be_visitor_root_ch::init (void)
+be_visitor_root_ch::init ()
{
/// First open the client-side file for writing
int status =
@@ -148,7 +148,7 @@ be_visitor_root_ch::gen_arg_traits (be_root *node)
}
void
-be_visitor_root_ch::gen_fwd_decls (void)
+be_visitor_root_ch::gen_fwd_decls ()
{
if (idl_global->non_local_iface_seen_)
{
@@ -175,7 +175,7 @@ be_visitor_root_ch::gen_fwd_decls (void)
}
void
-be_visitor_root_ch::gen_ref_counting_overrides (void)
+be_visitor_root_ch::gen_ref_counting_overrides ()
{
size_t size = be_global->non_defined_interfaces.size ();
@@ -185,7 +185,7 @@ be_visitor_root_ch::gen_ref_counting_overrides (void)
}
size_t index = 0;
- be_interface_fwd *ifwd = 0;
+ be_interface_fwd *ifwd = nullptr;
*o_ << be_nl_2
<< "// TAO_IDL - Generated from" << be_nl
@@ -221,7 +221,7 @@ be_visitor_root_ch::gen_ref_counting_overrides (void)
}
void
-be_visitor_root_ch::gen_static_corba_overrides (void)
+be_visitor_root_ch::gen_static_corba_overrides ()
{
size_t size = idl_global->mixed_parentage_interfaces ().size ();
@@ -231,7 +231,7 @@ be_visitor_root_ch::gen_static_corba_overrides (void)
}
size_t index = 0;
- AST_Interface *i = 0;
+ AST_Interface *i = nullptr;
*o_ << be_nl_2
<< "// TAO_IDL - Generated from" << be_nl
diff --git a/TAO/TAO_IDL/be/be_visitor_root/root_ci.cpp b/TAO/TAO_IDL/be/be_visitor_root/root_ci.cpp
index 7e6e0b32c19..aedb03c7454 100644
--- a/TAO/TAO_IDL/be/be_visitor_root/root_ci.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_root/root_ci.cpp
@@ -16,7 +16,7 @@ be_visitor_root_ci::be_visitor_root_ci (be_visitor_context *ctx)
{
}
-be_visitor_root_ci::~be_visitor_root_ci (void)
+be_visitor_root_ci::~be_visitor_root_ci ()
{
}
@@ -55,7 +55,7 @@ be_visitor_root_ci::visit_root (be_root *node)
}
int
-be_visitor_root_ci::init (void)
+be_visitor_root_ci::init ()
{
/// First open the client-side file for writing
int status =
diff --git a/TAO/TAO_IDL/be/be_visitor_root/root_cnh.cpp b/TAO/TAO_IDL/be/be_visitor_root/root_cnh.cpp
index df203ce008c..834a0896cb0 100644
--- a/TAO/TAO_IDL/be/be_visitor_root/root_cnh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_root/root_cnh.cpp
@@ -17,7 +17,7 @@ be_visitor_root_cnh::be_visitor_root_cnh (be_visitor_context *ctx)
{
}
-be_visitor_root_cnh::~be_visitor_root_cnh (void)
+be_visitor_root_cnh::~be_visitor_root_cnh ()
{
}
@@ -46,7 +46,7 @@ be_visitor_root_cnh::visit_root (be_root *node)
}
int
-be_visitor_root_cnh::init (void)
+be_visitor_root_cnh::init ()
{
// First open the client-side header file for writing.
int status =
diff --git a/TAO/TAO_IDL/be/be_visitor_root/root_cns.cpp b/TAO/TAO_IDL/be/be_visitor_root/root_cns.cpp
index 1d9a05c44cf..fd83265d321 100644
--- a/TAO/TAO_IDL/be/be_visitor_root/root_cns.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_root/root_cns.cpp
@@ -17,7 +17,7 @@ be_visitor_root_cns::be_visitor_root_cns (be_visitor_context *ctx)
{
}
-be_visitor_root_cns::~be_visitor_root_cns (void)
+be_visitor_root_cns::~be_visitor_root_cns ()
{
}
@@ -46,7 +46,7 @@ be_visitor_root_cns::visit_root (be_root *node)
}
int
-be_visitor_root_cns::init (void)
+be_visitor_root_cns::init ()
{
// First open the client-side header file for writing.
int status =
diff --git a/TAO/TAO_IDL/be/be_visitor_root/root_cs.cpp b/TAO/TAO_IDL/be/be_visitor_root/root_cs.cpp
index 88c61e03276..c535e266697 100644
--- a/TAO/TAO_IDL/be/be_visitor_root/root_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_root/root_cs.cpp
@@ -16,7 +16,7 @@ be_visitor_root_cs::be_visitor_root_cs (be_visitor_context *ctx)
{
}
-be_visitor_root_cs::~be_visitor_root_cs (void)
+be_visitor_root_cs::~be_visitor_root_cs ()
{
}
@@ -76,7 +76,7 @@ be_visitor_root_cs::visit_root (be_root *node)
}
int
-be_visitor_root_cs::init (void)
+be_visitor_root_cs::init ()
{
/// First open the client-side file for writing
int status =
diff --git a/TAO/TAO_IDL/be/be_visitor_root/root_ex_idl.cpp b/TAO/TAO_IDL/be/be_visitor_root/root_ex_idl.cpp
index 69ca7540719..c07d97c752b 100644
--- a/TAO/TAO_IDL/be/be_visitor_root/root_ex_idl.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_root/root_ex_idl.cpp
@@ -17,7 +17,7 @@ be_visitor_root_ex_idl::be_visitor_root_ex_idl (
{
}
-be_visitor_root_ex_idl::~be_visitor_root_ex_idl (void)
+be_visitor_root_ex_idl::~be_visitor_root_ex_idl ()
{
}
@@ -46,7 +46,7 @@ be_visitor_root_ex_idl::visit_root (be_root *node)
}
int
-be_visitor_root_ex_idl::init (void)
+be_visitor_root_ex_idl::init ()
{
// First open the client-side header file for writing.
int const status =
diff --git a/TAO/TAO_IDL/be/be_visitor_root/root_exh.cpp b/TAO/TAO_IDL/be/be_visitor_root/root_exh.cpp
index 8d7f3e298e7..f067a2b3650 100644
--- a/TAO/TAO_IDL/be/be_visitor_root/root_exh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_root/root_exh.cpp
@@ -17,7 +17,7 @@ be_visitor_root_exh::be_visitor_root_exh (be_visitor_context *ctx)
{
}
-be_visitor_root_exh::~be_visitor_root_exh (void)
+be_visitor_root_exh::~be_visitor_root_exh ()
{
}
@@ -46,7 +46,7 @@ be_visitor_root_exh::visit_root (be_root *node)
}
int
-be_visitor_root_exh::init (void)
+be_visitor_root_exh::init ()
{
// First open the client-side header file for writing.
int status =
diff --git a/TAO/TAO_IDL/be/be_visitor_root/root_exs.cpp b/TAO/TAO_IDL/be/be_visitor_root/root_exs.cpp
index 23b8f6a90cc..0f4fed06651 100644
--- a/TAO/TAO_IDL/be/be_visitor_root/root_exs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_root/root_exs.cpp
@@ -17,7 +17,7 @@ be_visitor_root_exs::be_visitor_root_exs (be_visitor_context *ctx)
{
}
-be_visitor_root_exs::~be_visitor_root_exs (void)
+be_visitor_root_exs::~be_visitor_root_exs ()
{
}
@@ -46,7 +46,7 @@ be_visitor_root_exs::visit_root (be_root *node)
}
int
-be_visitor_root_exs::init (void)
+be_visitor_root_exs::init ()
{
// First open the client-side header file for writing.
int status =
diff --git a/TAO/TAO_IDL/be/be_visitor_root/root_ih.cpp b/TAO/TAO_IDL/be/be_visitor_root/root_ih.cpp
index a587795780a..79153d5c5f5 100644
--- a/TAO/TAO_IDL/be/be_visitor_root/root_ih.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_root/root_ih.cpp
@@ -16,7 +16,7 @@ be_visitor_root_ih::be_visitor_root_ih (be_visitor_context *ctx)
{
}
-be_visitor_root_ih::~be_visitor_root_ih (void)
+be_visitor_root_ih::~be_visitor_root_ih ()
{
}
@@ -46,7 +46,7 @@ be_visitor_root_ih::visit_root (be_root *node)
}
int
-be_visitor_root_ih::init (void)
+be_visitor_root_ih::init ()
{
/// First open the implementation header file for writing.
int status =
diff --git a/TAO/TAO_IDL/be/be_visitor_root/root_is.cpp b/TAO/TAO_IDL/be/be_visitor_root/root_is.cpp
index 702037acb05..59cf3774f95 100644
--- a/TAO/TAO_IDL/be/be_visitor_root/root_is.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_root/root_is.cpp
@@ -15,7 +15,7 @@ be_visitor_root_is::be_visitor_root_is (be_visitor_context *ctx)
{
}
-be_visitor_root_is::~be_visitor_root_is (void)
+be_visitor_root_is::~be_visitor_root_is ()
{
}
@@ -42,7 +42,7 @@ be_visitor_root_is::visit_root (be_root *node)
}
int
-be_visitor_root_is::init (void)
+be_visitor_root_is::init ()
{
/// First open the file for writing.
int status =
diff --git a/TAO/TAO_IDL/be/be_visitor_root/root_sh.cpp b/TAO/TAO_IDL/be/be_visitor_root/root_sh.cpp
index 4439ce8e8d9..86a90fb6c77 100644
--- a/TAO/TAO_IDL/be/be_visitor_root/root_sh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_root/root_sh.cpp
@@ -16,7 +16,7 @@ be_visitor_root_sh::be_visitor_root_sh (be_visitor_context *ctx)
{
}
-be_visitor_root_sh::~be_visitor_root_sh (void)
+be_visitor_root_sh::~be_visitor_root_sh ()
{
}
@@ -62,7 +62,7 @@ be_visitor_root_sh::visit_root (be_root *node)
}
int
-be_visitor_root_sh::init (void)
+be_visitor_root_sh::init ()
{
/// First open the server-side file for writing
int status =
diff --git a/TAO/TAO_IDL/be/be_visitor_root/root_ss.cpp b/TAO/TAO_IDL/be/be_visitor_root/root_ss.cpp
index 7155616850e..b9eac55f549 100644
--- a/TAO/TAO_IDL/be/be_visitor_root/root_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_root/root_ss.cpp
@@ -16,7 +16,7 @@ be_visitor_root_ss::be_visitor_root_ss (be_visitor_context *ctx)
{
}
-be_visitor_root_ss::~be_visitor_root_ss (void)
+be_visitor_root_ss::~be_visitor_root_ss ()
{
}
@@ -50,7 +50,7 @@ be_visitor_root_ss::visit_root (be_root *node)
}
int
-be_visitor_root_ss::init (void)
+be_visitor_root_ss::init ()
{
/// First open the server-side file for writing
int status =
diff --git a/TAO/TAO_IDL/be/be_visitor_root/root_sth.cpp b/TAO/TAO_IDL/be/be_visitor_root/root_sth.cpp
index 64fee51a744..99b145d6462 100644
--- a/TAO/TAO_IDL/be/be_visitor_root/root_sth.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_root/root_sth.cpp
@@ -16,7 +16,7 @@ be_visitor_root_sth::be_visitor_root_sth (be_visitor_context *ctx)
{
}
-be_visitor_root_sth::~be_visitor_root_sth (void)
+be_visitor_root_sth::~be_visitor_root_sth ()
{
}
@@ -127,7 +127,7 @@ be_visitor_root_sth::visit_component (be_component *node)
}
int
-be_visitor_root_sth::init (void)
+be_visitor_root_sth::init ()
{
/// First open the server-side file for writing
int status =
diff --git a/TAO/TAO_IDL/be/be_visitor_root/root_svh.cpp b/TAO/TAO_IDL/be/be_visitor_root/root_svh.cpp
index db753dffb12..f9f8f0c392d 100644
--- a/TAO/TAO_IDL/be/be_visitor_root/root_svh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_root/root_svh.cpp
@@ -16,7 +16,7 @@ be_visitor_root_svh::be_visitor_root_svh (be_visitor_context *ctx)
{
}
-be_visitor_root_svh::~be_visitor_root_svh (void)
+be_visitor_root_svh::~be_visitor_root_svh ()
{
}
@@ -45,7 +45,7 @@ be_visitor_root_svh::visit_root (be_root *node)
}
int
-be_visitor_root_svh::init (void)
+be_visitor_root_svh::init ()
{
/// First open the file for writing.
int status =
diff --git a/TAO/TAO_IDL/be/be_visitor_root/root_svs.cpp b/TAO/TAO_IDL/be/be_visitor_root/root_svs.cpp
index 900b7854b0a..c95f57595e4 100644
--- a/TAO/TAO_IDL/be/be_visitor_root/root_svs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_root/root_svs.cpp
@@ -16,7 +16,7 @@ be_visitor_root_svs::be_visitor_root_svs (be_visitor_context *ctx)
{
}
-be_visitor_root_svs::~be_visitor_root_svs (void)
+be_visitor_root_svs::~be_visitor_root_svs ()
{
}
@@ -45,7 +45,7 @@ be_visitor_root_svs::visit_root (be_root *node)
}
int
-be_visitor_root_svs::init (void)
+be_visitor_root_svs::init ()
{
// First open the ciao servant source file for writing.
int const status =
diff --git a/TAO/TAO_IDL/be/be_visitor_root/root_svth.cpp b/TAO/TAO_IDL/be/be_visitor_root/root_svth.cpp
index 78f75df71a0..e235b9255c2 100644
--- a/TAO/TAO_IDL/be/be_visitor_root/root_svth.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_root/root_svth.cpp
@@ -16,7 +16,7 @@ be_visitor_root_svth::be_visitor_root_svth (be_visitor_context *ctx)
{
}
-be_visitor_root_svth::~be_visitor_root_svth (void)
+be_visitor_root_svth::~be_visitor_root_svth ()
{
}
@@ -45,7 +45,7 @@ be_visitor_root_svth::visit_root (be_root *node)
}
int
-be_visitor_root_svth::init (void)
+be_visitor_root_svth::init ()
{
/// First open the file for writing.
int const status =
diff --git a/TAO/TAO_IDL/be/be_visitor_root/root_svts.cpp b/TAO/TAO_IDL/be/be_visitor_root/root_svts.cpp
index d6232163125..44d063f3df1 100644
--- a/TAO/TAO_IDL/be/be_visitor_root/root_svts.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_root/root_svts.cpp
@@ -16,7 +16,7 @@ be_visitor_root_svts::be_visitor_root_svts (be_visitor_context *ctx)
{
}
-be_visitor_root_svts::~be_visitor_root_svts (void)
+be_visitor_root_svts::~be_visitor_root_svts ()
{
}
@@ -45,7 +45,7 @@ be_visitor_root_svts::visit_root (be_root *node)
}
int
-be_visitor_root_svts::init (void)
+be_visitor_root_svts::init ()
{
// First open the client-side header file for writing.
int status =
diff --git a/TAO/TAO_IDL/be/be_visitor_scope.cpp b/TAO/TAO_IDL/be/be_visitor_scope.cpp
index c2902c45dc5..e67a1afe354 100644
--- a/TAO/TAO_IDL/be/be_visitor_scope.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_scope.cpp
@@ -29,7 +29,7 @@ be_visitor_scope::be_visitor_scope (be_visitor_context *ctx)
{
}
-be_visitor_scope::~be_visitor_scope (void)
+be_visitor_scope::~be_visitor_scope ()
{
}
@@ -37,7 +37,7 @@ be_visitor_scope::~be_visitor_scope (void)
int
be_visitor_scope::visit_scope (be_scope *node)
{
- if (node == 0)
+ if (node == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_scope::visit_scope - "
@@ -54,7 +54,7 @@ be_visitor_scope::visit_scope (be_scope *node)
{
AST_Decl *d = si.item ();
- if (d == 0)
+ if (d == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_scope::visit_scope - "
@@ -67,7 +67,7 @@ be_visitor_scope::visit_scope (be_scope *node)
continue;
}
- be_decl *bd = be_decl::narrow_from_decl (d);
+ be_decl *bd = dynamic_cast<be_decl*> (d);
// Set the scope node as "node" in which the code is being
// generated so that elements in the node's scope can use it
@@ -88,7 +88,7 @@ be_visitor_scope::visit_scope (be_scope *node)
}
// Send the visitor.
- if (bd == 0 || bd->accept (this) == -1)
+ if (bd == nullptr || bd->accept (this) == -1)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_scope::visit_scope - "
@@ -122,7 +122,7 @@ be_visitor_scope::pre_process (be_decl *)
}
int
-be_visitor_scope::elem_number (void)
+be_visitor_scope::elem_number ()
{
// Return the current element that we are working on.
return this->elem_number_;
@@ -134,14 +134,14 @@ be_visitor_scope::next_elem (be_decl *elem,
be_decl *&successor)
{
be_decl *ctx_scope = this->ctx_->scope ()->decl ();
- be_scope *node = 0;
+ be_scope *node = nullptr;
- if (ctx_scope != 0)
+ if (ctx_scope != nullptr)
{
node = ctx_scope->scope ();
}
- if (ctx_scope == 0 || node == 0)
+ if (ctx_scope == nullptr || node == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_scope::next_elem - "
@@ -149,16 +149,16 @@ be_visitor_scope::next_elem (be_decl *elem,
-1);
}
- successor = 0;
+ successor = nullptr;
// Initialize an iterator to iterate thru our scope.
for (UTL_ScopeActiveIterator si (node, UTL_Scope::IK_decls);
!si.is_done ();
si.next ())
{
- be_decl *bd = be_decl::narrow_from_decl (si.item ());
+ be_decl *bd = dynamic_cast<be_decl*> (si.item ());
- if (bd == 0)
+ if (bd == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_scope::next_elem - "
@@ -180,9 +180,9 @@ be_visitor_scope::next_elem (be_decl *elem,
return 0;
}
- successor = be_decl::narrow_from_decl (si.item ());
+ successor = dynamic_cast<be_decl*> (si.item ());
- if (successor == 0)
+ if (successor == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_scope::next_elem - "
@@ -200,24 +200,24 @@ be_visitor_scope::next_elem (be_decl *elem,
bool
be_visitor_scope::last_node (be_decl *bd)
{
- be_decl *next = 0;
+ be_decl *next = nullptr;
(void) this->next_elem (bd,
next);
- return (next == 0);
+ return (next == nullptr);
}
bool
be_visitor_scope::last_inout_or_out_node (be_decl *)
{
// Return true if we are the last inout or out argument.
- be_decl *next = 0;
+ be_decl *next = nullptr;
(void) this->next_elem (this->ctx_->node (),
next);
- while (next != 0)
+ while (next != nullptr)
{
- be_argument *arg = be_argument::narrow_from_decl (next);
+ be_argument *arg = dynamic_cast<be_argument*> (next);
if (arg->direction () == AST_Argument::dir_INOUT
|| arg->direction () == AST_Argument::dir_OUT)
@@ -226,7 +226,7 @@ be_visitor_scope::last_inout_or_out_node (be_decl *)
return false;
}
- be_decl *next_next = 0;
+ be_decl *next_next = nullptr;
this->next_elem (next,
next_next);
diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp
index 9c927db93be..5cc90dcf290 100644
--- a/TAO/TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp
@@ -18,7 +18,7 @@ be_visitor_sequence_any_op_ch::be_visitor_sequence_any_op_ch (
{
}
-be_visitor_sequence_any_op_ch::~be_visitor_sequence_any_op_ch (void)
+be_visitor_sequence_any_op_ch::~be_visitor_sequence_any_op_ch ()
{
}
@@ -55,7 +55,7 @@ be_visitor_sequence_any_op_ch::visit_sequence (be_sequence *node)
if (alt)
{
be_type *bt =
- be_type::narrow_from_decl (node->base_type ());
+ dynamic_cast<be_type*> (node->base_type ());
name = "std::vector<";
name += bt->full_name ();
@@ -66,7 +66,7 @@ be_visitor_sequence_any_op_ch::visit_sequence (be_sequence *node)
name = node->full_name ();
}
- be_module *module = 0;
+ be_module *module = nullptr;
if (node->is_nested ())
{
AST_Decl *d = node;
@@ -76,7 +76,7 @@ be_visitor_sequence_any_op_ch::visit_sequence (be_sequence *node)
{
if (nt == AST_Decl::NT_module)
{
- module = be_module::narrow_from_decl (d);
+ module = dynamic_cast<be_module*> (d);
break;
}
else
@@ -86,7 +86,7 @@ be_visitor_sequence_any_op_ch::visit_sequence (be_sequence *node)
}
}
- if (module != 0)
+ if (module != nullptr)
{
// Some compilers handle "any" operators in a namespace
// corresponding to their module, others do not.
@@ -150,7 +150,7 @@ be_visitor_sequence_any_op_ch::visit_sequence (be_sequence *node)
*os << be_global->core_versioning_end () << be_nl;
- if (module != 0)
+ if (module != nullptr)
{
*os << "\n\n#endif";
}
diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/any_op_cs.cpp
index ff3efd24709..a49fdcbeeb6 100644
--- a/TAO/TAO_IDL/be/be_visitor_sequence/any_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_sequence/any_op_cs.cpp
@@ -18,7 +18,7 @@ be_visitor_sequence_any_op_cs::be_visitor_sequence_any_op_cs (
{
}
-be_visitor_sequence_any_op_cs::~be_visitor_sequence_any_op_cs (void)
+be_visitor_sequence_any_op_cs::~be_visitor_sequence_any_op_cs ()
{
}
@@ -50,11 +50,11 @@ be_visitor_sequence_any_op_cs::visit_sequence (be_sequence *node)
if (be_global->alt_mapping () && node->max_size ()->ev ()->u.ulval == 0)
{
be_type *bt =
- be_type::narrow_from_decl (node->base_type ());
+ dynamic_cast<be_type*> (node->base_type ());
if (bt->node_type () == AST_Decl::NT_typedef)
{
- be_typedef *td = be_typedef::narrow_from_decl (bt);
+ be_typedef *td = dynamic_cast<be_typedef*> (bt);
bt = td->primitive_base_type ();
}
@@ -71,8 +71,8 @@ be_visitor_sequence_any_op_cs::visit_sequence (be_sequence *node)
{
tc = ANY_ARRAY;
}
- else if (be_interface::narrow_from_decl (bt) != 0
- && be_valuetype::narrow_from_decl (bt) == 0)
+ else if (dynamic_cast<be_interface*> (bt) != nullptr
+ && dynamic_cast<be_valuetype*> (bt) == nullptr)
{
tc = ANY_OBJREF;
}
@@ -184,7 +184,7 @@ be_visitor_sequence_any_op_cs::visit_sequence (be_sequence *node)
// for the TypeCode to pass to the Any operator impls.
be_typedef *td = this->ctx_->tdef ();
- be_module *module = 0;
+ be_module *module = nullptr;
if (node->is_nested ())
{
AST_Decl *d = node;
@@ -194,7 +194,7 @@ be_visitor_sequence_any_op_cs::visit_sequence (be_sequence *node)
{
if (nt == AST_Decl::NT_module)
{
- module = be_module::narrow_from_decl (d);
+ module = dynamic_cast<be_module*> (d);
break;
}
else
@@ -204,7 +204,7 @@ be_visitor_sequence_any_op_cs::visit_sequence (be_sequence *node)
}
}
- if (module != 0)
+ if (module != nullptr)
{
// Some compilers handle "any" operators in a namespace
// corresponding to their module, others do not.
@@ -224,7 +224,7 @@ be_visitor_sequence_any_op_cs::visit_sequence (be_sequence *node)
<< be_idt_nl
<< "_tao_any," << be_nl
<< "::" << node->name () << "::_tao_any_destructor," << be_nl
- << "::" << (td != 0 ? td->tc_name () : node->tc_name ()) << "," << be_nl
+ << "::" << (td != nullptr ? td->tc_name () : node->tc_name ()) << "," << be_nl
<< "_tao_elem);" << be_uidt
<< be_uidt_nl
<< "}" << be_nl_2;
@@ -240,7 +240,7 @@ be_visitor_sequence_any_op_cs::visit_sequence (be_sequence *node)
<< be_idt_nl
<< "_tao_any," << be_nl
<< "::" << node->name () << "::_tao_any_destructor," << be_nl
- << "::" << (td != 0 ? td->tc_name () : node->tc_name ()) << "," << be_nl
+ << "::" << (td != nullptr ? td->tc_name () : node->tc_name ()) << "," << be_nl
<< "_tao_elem);" << be_uidt
<< be_uidt_nl
<< "}" << be_nl_2;
@@ -256,7 +256,7 @@ be_visitor_sequence_any_op_cs::visit_sequence (be_sequence *node)
<< be_idt_nl
<< "_tao_any," << be_nl
<< "::" << node->name () << "::_tao_any_destructor," << be_nl
- << "::" << (td != 0 ? td->tc_name () : node->tc_name ()) << "," << be_nl
+ << "::" << (td != nullptr ? td->tc_name () : node->tc_name ()) << "," << be_nl
<< "_tao_elem);" << be_uidt
<< be_uidt_nl
<< "}";
@@ -283,7 +283,7 @@ be_visitor_sequence_any_op_cs::visit_sequence (be_sequence *node)
<< be_idt_nl
<< "_tao_any," << be_nl
<< node->name () << "::_tao_any_destructor," << be_nl
- << (td != 0 ? td->tc_name () : node->tc_name ()) << "," << be_nl
+ << (td != nullptr ? td->tc_name () : node->tc_name ()) << "," << be_nl
<< "_tao_elem);" << be_uidt
<< be_uidt_nl
<< "}" << be_nl_2;
@@ -299,7 +299,7 @@ be_visitor_sequence_any_op_cs::visit_sequence (be_sequence *node)
<< be_idt_nl
<< "_tao_any," << be_nl
<< node->name () << "::_tao_any_destructor," << be_nl
- << (td != 0 ? td->tc_name () : node->tc_name ()) << "," << be_nl
+ << (td != nullptr ? td->tc_name () : node->tc_name ()) << "," << be_nl
<< "_tao_elem);" << be_uidt
<< be_uidt_nl
<< "}" << be_nl_2;
@@ -315,14 +315,14 @@ be_visitor_sequence_any_op_cs::visit_sequence (be_sequence *node)
<< be_idt_nl
<< "_tao_any," << be_nl
<< node->name () << "::_tao_any_destructor," << be_nl
- << (td != 0 ? td->tc_name () : node->tc_name ()) << "," << be_nl
+ << (td != nullptr ? td->tc_name () : node->tc_name ()) << "," << be_nl
<< "_tao_elem);" << be_uidt
<< be_uidt_nl
<< "}";
*os << be_global->core_versioning_end () << be_nl;
- if (module != 0)
+ if (module != nullptr)
{
*os << "\n\n#endif";
}
diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/buffer_type.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/buffer_type.cpp
index b8b8398c3bd..932929e7425 100644
--- a/TAO/TAO_IDL/be/be_visitor_sequence/buffer_type.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_sequence/buffer_type.cpp
@@ -22,7 +22,7 @@ be_visitor_sequence_buffer_type::be_visitor_sequence_buffer_type (
{
}
-be_visitor_sequence_buffer_type::~be_visitor_sequence_buffer_type (void)
+be_visitor_sequence_buffer_type::~be_visitor_sequence_buffer_type ()
{
}
@@ -31,7 +31,7 @@ int
be_visitor_sequence_buffer_type::visit_node (be_type *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -269,6 +269,6 @@ be_visitor_sequence_buffer_type::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
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 ffe0da6995d..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
@@ -23,7 +23,7 @@ be_visitor_sequence_cdr_op_ch::be_visitor_sequence_cdr_op_ch (
{
}
-be_visitor_sequence_cdr_op_ch::~be_visitor_sequence_cdr_op_ch (void)
+be_visitor_sequence_cdr_op_ch::~be_visitor_sequence_cdr_op_ch ()
{
}
@@ -42,7 +42,7 @@ be_visitor_sequence_cdr_op_ch::visit_sequence (be_sequence *node)
return 0;
}
- be_type *base_type = be_type::narrow_from_decl (node->base_type ());
+ be_type *base_type = dynamic_cast<be_type*> (node->base_type ());
// If our base type is an anonymous sequence, generate code for it here.
if (base_type->node_type () == AST_Decl::NT_sequence)
@@ -58,15 +58,15 @@ be_visitor_sequence_cdr_op_ch::visit_sequence (be_sequence *node)
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = be_type::narrow_from_decl (node);
- be_typedef *tdef = be_typedef::narrow_from_decl (bt);
+ be_type *bt = dynamic_cast<be_type*> (node);
+ be_typedef *tdef = dynamic_cast<be_typedef*> (bt);
*os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__;
// If we're an anonymous sequence, we must protect against
// being declared more than once.
- if (tdef == 0)
+ if (tdef == nullptr)
{
*os << "\n\n#if !defined _TAO_CDR_OP_"
<< node->flat_name () << "_H_"
@@ -122,12 +122,12 @@ be_visitor_sequence_cdr_op_ch::visit_sequence (be_sequence *node)
*os << be_nl
<< be_global->core_versioning_end () << be_nl;
- if (tdef == 0)
+ if (tdef == nullptr)
{
*os << "\n\n#endif /* _TAO_CDR_OP_"
<< 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 a5b3d008e81..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
@@ -24,7 +24,7 @@ be_visitor_sequence_cdr_op_cs::be_visitor_sequence_cdr_op_cs (
{
}
-be_visitor_sequence_cdr_op_cs::~be_visitor_sequence_cdr_op_cs (void)
+be_visitor_sequence_cdr_op_cs::~be_visitor_sequence_cdr_op_cs ()
{
}
@@ -55,7 +55,7 @@ be_visitor_sequence_cdr_op_cs::visit_sequence (be_sequence *node)
TAO_OutStream *os = this->ctx_->stream ();
be_type *bt =
- be_type::narrow_from_decl (node->base_type ());
+ dynamic_cast<be_type*> (node->base_type ());
if (!bt)
{
@@ -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_base.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/sequence_base.cpp
index 6602ec8030e..b4257eb0324 100644
--- a/TAO/TAO_IDL/be/be_visitor_sequence/sequence_base.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_sequence/sequence_base.cpp
@@ -21,7 +21,7 @@ be_visitor_sequence_base::be_visitor_sequence_base (be_visitor_context *ctx)
{
}
-be_visitor_sequence_base::~be_visitor_sequence_base (void)
+be_visitor_sequence_base::~be_visitor_sequence_base ()
{
}
@@ -41,7 +41,7 @@ int
be_visitor_sequence_base::visit_node (be_type *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -172,7 +172,7 @@ be_visitor_sequence_base::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -186,7 +186,7 @@ be_visitor_sequence_base_template_args (be_visitor_context *ctx,
be_visitor_sequence_base_template_args::
-~be_visitor_sequence_base_template_args (void)
+~be_visitor_sequence_base_template_args ()
{
}
@@ -194,7 +194,7 @@ int
be_visitor_sequence_base_template_args::visit_interface (be_interface *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -225,7 +225,7 @@ be_visitor_sequence_base_template_args::visit_interface_fwd (
)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
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 6606887c9f8..dcd96d21466 100644
--- a/TAO/TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp
@@ -17,13 +17,13 @@ be_visitor_sequence_ch::be_visitor_sequence_ch (be_visitor_context *ctx)
{
}
-be_visitor_sequence_ch::~be_visitor_sequence_ch (void)
+be_visitor_sequence_ch::~be_visitor_sequence_ch ()
{
}
int be_visitor_sequence_ch::visit_sequence (be_sequence *node)
{
- if (node->defined_in () == 0)
+ if (node->defined_in () == nullptr)
{
// The node is a nested sequence, and has had no scope defined.
node->set_defined_in (DeclAsScope (this->ctx_->scope ()->decl ()));
@@ -55,9 +55,9 @@ int be_visitor_sequence_ch::visit_sequence (be_sequence *node)
// Retrieve the base type since we may need to do some code
// generation for the base type.
- be_type *bt = be_type::narrow_from_decl (node->base_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->base_type ());
- if (bt == 0)
+ if (bt == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_sequence_ch::")
@@ -77,7 +77,7 @@ int be_visitor_sequence_ch::visit_sequence (be_sequence *node)
// to create_name will not get confused and give our anonymous
// sequence element type the same name as we have.
be_typedef *tmp = this->ctx_->tdef ();
- this->ctx_->tdef (0);
+ this->ctx_->tdef (nullptr);
if (bt->accept (this) != 0)
{
@@ -133,12 +133,12 @@ int be_visitor_sequence_ch::visit_sequence (be_sequence *node)
/// and _outs. They may get redefined and reinstated later.
if (!be_global->alt_mapping () || !node->unbounded ())
{
- if (this->ctx_->tdef () != 0)
+ if (this->ctx_->tdef () != nullptr)
{
*os << "class " << node->local_name () << ";";
}
- if (this->ctx_->tdef () != 0)
+ if (this->ctx_->tdef () != nullptr)
{
this->gen_varout_typedefs (node, bt);
}
@@ -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 ())
{
@@ -238,23 +238,23 @@ int be_visitor_sequence_ch::visit_sequence (be_sequence *node)
}
// Default copy/move constructor and assignment operators
- *os << "\n#if defined (ACE_HAS_CPP11)" << be_nl
+ *os << be_nl
<< node->local_name () << " (const " << node->local_name () << " &) = default;" << be_nl
<< node->local_name () << " (" << node->local_name () << " &&) = default;" << be_nl
<< node->local_name () << "& operator= (const " << node->local_name () << " &) = default;" << be_nl
<< node->local_name () << "& operator= (" << node->local_name () << " &&) = default;"
- << "\n#endif /* ACE_HAS_CPP11 */" << be_nl;
+ << 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;
@@ -263,28 +263,28 @@ int be_visitor_sequence_ch::visit_sequence (be_sequence *node)
// TAO provides extensions for octet sequences, first find out if
// the base type is an octet (or an alias for octet).
- be_predefined_type *predef = 0;
+ be_predefined_type *predef = nullptr;
if (bt->base_node_type () == AST_Type::NT_pre_defined)
{
be_typedef* alias =
- be_typedef::narrow_from_decl (bt);
+ dynamic_cast<be_typedef*> (bt);
- if (alias == 0)
+ if (alias == nullptr)
{
- predef = be_predefined_type::narrow_from_decl (bt);
+ predef = dynamic_cast<be_predefined_type*> (bt);
}
else
{
predef =
- be_predefined_type::narrow_from_decl (
+ dynamic_cast<be_predefined_type*> (
alias->primitive_base_type ()
);
}
}
// Now generate the extension...
- if (predef != 0
+ if (predef != nullptr
&& predef->pt () == AST_PredefinedType::PT_octet
&& node->unbounded ()
&& !be_global->alt_mapping ())
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 f06f0bf1693..978866d68b5 100644
--- a/TAO/TAO_IDL/be/be_visitor_sequence/sequence_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_sequence/sequence_cs.cpp
@@ -20,7 +20,7 @@ be_visitor_sequence_cs::be_visitor_sequence_cs (be_visitor_context *ctx)
{
}
-be_visitor_sequence_cs::~be_visitor_sequence_cs (void)
+be_visitor_sequence_cs::~be_visitor_sequence_cs ()
{
}
@@ -53,9 +53,9 @@ int be_visitor_sequence_cs::visit_sequence (be_sequence *node)
return 0;
}
- be_type *bt = be_type::narrow_from_decl (node->base_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->base_type ());
- if (bt == 0)
+ if (bt == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_sequence_cs::")
@@ -74,7 +74,7 @@ int be_visitor_sequence_cs::visit_sequence (be_sequence *node)
// to create_name will not get confused and give our anonymous
// sequence element type the same name as we have.
be_typedef *tmp = this->ctx_->tdef ();
- this->ctx_->tdef (0);
+ this->ctx_->tdef (nullptr);
if (bt->accept (this) != 0)
{
@@ -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 bde9bfa0731..df8603b9463 100644
--- a/TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp
@@ -22,7 +22,7 @@ be_visitor_structure_any_op_ch::be_visitor_structure_any_op_ch (
{
}
-be_visitor_structure_any_op_ch::~be_visitor_structure_any_op_ch (void)
+be_visitor_structure_any_op_ch::~be_visitor_structure_any_op_ch ()
{
}
@@ -41,7 +41,7 @@ be_visitor_structure_any_op_ch::visit_structure (be_structure *node)
*os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl_2;
- be_module *module = 0;
+ be_module *module = nullptr;
if (node->is_nested ())
{
AST_Decl *d = node;
@@ -51,7 +51,7 @@ be_visitor_structure_any_op_ch::visit_structure (be_structure *node)
{
if (nt == AST_Decl::NT_module)
{
- module = be_module::narrow_from_decl (d);
+ module = dynamic_cast<be_module*> (d);
break;
}
else
@@ -61,7 +61,7 @@ be_visitor_structure_any_op_ch::visit_structure (be_structure *node)
}
}
- if (module != 0)
+ if (module != nullptr)
{
// Some compilers handle "any" operators in a namespace
// corresponding to their module, others do not.
@@ -95,7 +95,7 @@ be_visitor_structure_any_op_ch::visit_structure (be_structure *node)
*os << be_global->core_versioning_end () << be_nl;
- if (module != 0)
+ if (module != nullptr)
{
*os << "\n\n#endif";
}
@@ -110,17 +110,17 @@ be_visitor_structure_any_op_ch::visit_structure (be_structure *node)
-1);
}
- node->cli_hdr_any_op_gen (1);
+ node->cli_hdr_any_op_gen (true);
return 0;
}
int
be_visitor_structure_any_op_ch::visit_field (be_field *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
// First generate the type information.
- bt = be_type::narrow_from_decl (node->field_type ());
+ bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
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 b938d981a43..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
@@ -23,7 +23,7 @@ be_visitor_structure_any_op_cs::be_visitor_structure_any_op_cs (
{
}
-be_visitor_structure_any_op_cs::~be_visitor_structure_any_op_cs (void)
+be_visitor_structure_any_op_cs::~be_visitor_structure_any_op_cs ()
{
}
@@ -77,7 +77,7 @@ be_visitor_structure_any_op_cs::visit_structure (be_structure *node)
}
- be_module *module = 0;
+ be_module *module = nullptr;
if (node->is_nested ())
{
AST_Decl *d = node;
@@ -87,7 +87,7 @@ be_visitor_structure_any_op_cs::visit_structure (be_structure *node)
{
if (nt == AST_Decl::NT_module)
{
- module = be_module::narrow_from_decl (d);
+ module = dynamic_cast<be_module*> (d);
break;
}
else
@@ -97,7 +97,7 @@ be_visitor_structure_any_op_cs::visit_structure (be_structure *node)
}
}
- if (module != 0)
+ if (module != nullptr)
{
// Some compilers handle "any" operators in a namespace corresponding
// to their module, others do not.
@@ -213,7 +213,7 @@ be_visitor_structure_any_op_cs::visit_structure (be_structure *node)
*os << be_global->core_versioning_end () << be_nl;
- if (module != 0)
+ if (module != nullptr)
{
*os << "\n\n#endif";
}
@@ -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;
}
@@ -235,7 +235,7 @@ int
be_visitor_structure_any_op_cs::visit_field (be_field *node)
{
// First generate the type information.
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_structure/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_structure/cdr_op_ch.cpp
index 36eaa146bcd..4c873c0e7ec 100644
--- a/TAO/TAO_IDL/be/be_visitor_structure/cdr_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_structure/cdr_op_ch.cpp
@@ -23,7 +23,7 @@ be_visitor_structure_cdr_op_ch::be_visitor_structure_cdr_op_ch (
{
}
-be_visitor_structure_cdr_op_ch::~be_visitor_structure_cdr_op_ch (void)
+be_visitor_structure_cdr_op_ch::~be_visitor_structure_cdr_op_ch ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_structure/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_structure/cdr_op_cs.cpp
index ec8989e87b4..ed19672a653 100644
--- a/TAO/TAO_IDL/be/be_visitor_structure/cdr_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_structure/cdr_op_cs.cpp
@@ -17,7 +17,7 @@ be_visitor_structure_cdr_op_cs::be_visitor_structure_cdr_op_cs (
{
}
-be_visitor_structure_cdr_op_cs::~be_visitor_structure_cdr_op_cs (void)
+be_visitor_structure_cdr_op_cs::~be_visitor_structure_cdr_op_cs ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_structure/structure.cpp b/TAO/TAO_IDL/be/be_visitor_structure/structure.cpp
index dc541350607..ecd2ee05479 100644
--- a/TAO/TAO_IDL/be/be_visitor_structure/structure.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_structure/structure.cpp
@@ -16,7 +16,7 @@ be_visitor_structure::be_visitor_structure (be_visitor_context *ctx)
{
}
-be_visitor_structure::~be_visitor_structure (void)
+be_visitor_structure::~be_visitor_structure ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_structure/structure_ch.cpp b/TAO/TAO_IDL/be/be_visitor_structure/structure_ch.cpp
index b9cffa5a891..24bbbdf3550 100644
--- a/TAO/TAO_IDL/be/be_visitor_structure/structure_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_structure/structure_ch.cpp
@@ -20,7 +20,7 @@ be_visitor_structure_ch::be_visitor_structure_ch (be_visitor_context *ctx)
{
}
-be_visitor_structure_ch::~be_visitor_structure_ch (void)
+be_visitor_structure_ch::~be_visitor_structure_ch ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_structure/structure_ci.cpp b/TAO/TAO_IDL/be/be_visitor_structure/structure_ci.cpp
index 4074e0c5d54..2814fa8ff44 100644
--- a/TAO/TAO_IDL/be/be_visitor_structure/structure_ci.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_structure/structure_ci.cpp
@@ -20,7 +20,7 @@ be_visitor_structure_ci::be_visitor_structure_ci (be_visitor_context *ctx)
{
}
-be_visitor_structure_ci::~be_visitor_structure_ci (void)
+be_visitor_structure_ci::~be_visitor_structure_ci ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_structure/structure_cs.cpp b/TAO/TAO_IDL/be/be_visitor_structure/structure_cs.cpp
index 7800264a0dc..29028da44cb 100644
--- a/TAO/TAO_IDL/be/be_visitor_structure/structure_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_structure/structure_cs.cpp
@@ -20,7 +20,7 @@ be_visitor_structure_cs::be_visitor_structure_cs (be_visitor_context *ctx)
{
}
-be_visitor_structure_cs::~be_visitor_structure_cs (void)
+be_visitor_structure_cs::~be_visitor_structure_cs ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_structure_fwd/structure_fwd_ch.cpp b/TAO/TAO_IDL/be/be_visitor_structure_fwd/structure_fwd_ch.cpp
index eef782f6182..6bbe50fb757 100644
--- a/TAO/TAO_IDL/be/be_visitor_structure_fwd/structure_fwd_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_structure_fwd/structure_fwd_ch.cpp
@@ -17,7 +17,7 @@ be_visitor_structure_fwd_ch::be_visitor_structure_fwd_ch (
{
}
-be_visitor_structure_fwd_ch::~be_visitor_structure_fwd_ch (void)
+be_visitor_structure_fwd_ch::~be_visitor_structure_fwd_ch ()
{
}
@@ -33,7 +33,7 @@ be_visitor_structure_fwd_ch::visit_structure_fwd (be_structure_fwd *node)
TAO_OutStream *os = this->ctx_->stream ();
be_structure *fd =
- be_structure::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_structure*> (node->full_definition ());
// This will be a no-op if it has already been done for this node.
fd->gen_common_varout (os);
diff --git a/TAO/TAO_IDL/be/be_visitor_template_export.cpp b/TAO/TAO_IDL/be/be_visitor_template_export.cpp
index 47205281d4d..59dce19e81c 100644
--- a/TAO/TAO_IDL/be/be_visitor_template_export.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_template_export.cpp
@@ -25,7 +25,7 @@ be_visitor_template_export::be_visitor_template_export (
{
}
-be_visitor_template_export::~be_visitor_template_export (void)
+be_visitor_template_export::~be_visitor_template_export ()
{
}
@@ -71,32 +71,32 @@ be_visitor_template_export::visit_sequence (be_sequence *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = be_type::narrow_from_decl (node->base_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->base_type ());
// TAO provides extensions for octet sequences, first find out if
// the base type is an octet (or an alias for octet).
- be_predefined_type *predef = 0;
+ be_predefined_type *predef = nullptr;
if (bt->base_node_type () == AST_Type::NT_pre_defined)
{
be_typedef* alias =
- be_typedef::narrow_from_decl (bt);
+ dynamic_cast<be_typedef*> (bt);
- if (alias == 0)
+ if (alias == nullptr)
{
- predef = be_predefined_type::narrow_from_decl (bt);
+ predef = dynamic_cast<be_predefined_type*> (bt);
}
else
{
predef =
- be_predefined_type::narrow_from_decl (
+ dynamic_cast<be_predefined_type*> (
alias->primitive_base_type ()
);
}
}
// When it is a sequence add a special guard
- if (predef != 0 && predef->pt () == AST_PredefinedType::PT_octet
+ if (predef != nullptr && predef->pt () == AST_PredefinedType::PT_octet
&& node->unbounded ())
{
*os << "\n#if (TAO_NO_COPY_OCTET_SEQUENCES == 0)";
@@ -119,7 +119,7 @@ be_visitor_template_export::visit_sequence (be_sequence *node)
*os << ";" << be_uidt;
- if (predef != 0 && predef->pt () == AST_PredefinedType::PT_octet
+ if (predef != nullptr && predef->pt () == AST_PredefinedType::PT_octet
&& node->unbounded ())
{
*os << "\n#endif /* TAO_NO_COPY_OCTET_SEQUENCE == 0 */";
@@ -143,6 +143,6 @@ be_visitor_template_export::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_traits.cpp b/TAO/TAO_IDL/be/be_visitor_traits.cpp
index cd0c733da33..ae8161b414b 100644
--- a/TAO/TAO_IDL/be/be_visitor_traits.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_traits.cpp
@@ -44,7 +44,7 @@ be_visitor_traits::be_visitor_traits (be_visitor_context *ctx)
{
}
-be_visitor_traits::~be_visitor_traits (void)
+be_visitor_traits::~be_visitor_traits ()
{
}
@@ -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
@@ -161,7 +161,7 @@ be_visitor_traits::visit_interface_fwd (be_interface_fwd *node)
}
be_interface *fd =
- be_interface::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_interface*> (node->full_definition ());
// We want to generate just the declaration of the Arg_Traits<>
// specialization if the interface is forward declared but not defined.
@@ -234,7 +234,7 @@ be_visitor_traits::visit_valuetype_fwd (be_valuetype_fwd *node)
}
be_valuetype *fd =
- be_valuetype::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_valuetype*> (node->full_definition ());
// The logic in visit_valuetype() should handle what gets generated
// and what doesn't.
@@ -320,7 +320,7 @@ be_visitor_traits::visit_eventtype_fwd (be_eventtype_fwd *node)
int
be_visitor_traits::visit_field (be_field *node)
{
- be_type *ft = be_type::narrow_from_decl (node->field_type ());
+ be_type *ft = dynamic_cast<be_type*> (node->field_type ());
if (ft->accept (this) == -1)
{
@@ -336,7 +336,7 @@ be_visitor_traits::visit_field (be_field *node)
int
be_visitor_traits::visit_union_branch (be_union_branch *node)
{
- be_type *ft = be_type::narrow_from_decl (node->field_type ());
+ be_type *ft = dynamic_cast<be_type*> (node->field_type ());
AST_Decl::NodeType nt = ft->node_type ();
// All we are trying to catch in here are anonymous array members.
@@ -411,7 +411,7 @@ be_visitor_traits::visit_array (be_array *node)
if (node->is_nested ())
{
be_decl *parent =
- be_scope::narrow_from_scope (node->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (node->defined_in ())->decl ();
name_holder = parent->full_name ();
name_holder += "::";
@@ -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);"
@@ -485,7 +485,7 @@ be_visitor_traits::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
node->cli_traits_gen (true);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_typecode/alias_typecode.cpp b/TAO/TAO_IDL/be/be_visitor_typecode/alias_typecode.cpp
index 6e655d80b99..59636667018 100644
--- a/TAO/TAO_IDL/be/be_visitor_typecode/alias_typecode.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_typecode/alias_typecode.cpp
@@ -21,7 +21,7 @@ TAO::be_visitor_alias_typecode::be_visitor_alias_typecode (
int
TAO::be_visitor_alias_typecode::visit_typedef (be_typedef * node)
{
- be_type * const base = be_type::narrow_from_decl (node->base_type ());
+ be_type * const base = dynamic_cast<be_type*> (node->base_type ());
return this->common (node, base, "tk_alias");
@@ -32,7 +32,7 @@ TAO::be_visitor_alias_typecode::visit_typedef (be_typedef * node)
int
TAO::be_visitor_alias_typecode::visit_valuebox (be_valuebox * node)
{
- be_type * const base = be_type::narrow_from_decl (node->boxed_type ());
+ be_type * const base = dynamic_cast<be_type*> (node->boxed_type ());
return this->common (node, base, "tk_value_box");
}
diff --git a/TAO/TAO_IDL/be/be_visitor_typecode/enum_typecode.cpp b/TAO/TAO_IDL/be/be_visitor_typecode/enum_typecode.cpp
index 87f980a3a57..1e641558d78 100644
--- a/TAO/TAO_IDL/be/be_visitor_typecode/enum_typecode.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_typecode/enum_typecode.cpp
@@ -76,7 +76,7 @@ TAO::be_visitor_enum_typecode::visit_members (be_enum * node)
i.next ())
{
AST_Decl * const d = i.item ();
- AST_EnumVal * const item = AST_EnumVal::narrow_from_decl (d);
+ AST_EnumVal * const item = dynamic_cast<AST_EnumVal*> (d);
// os << item->name ();
os << "\"" << item->original_local_name () << "\"";
diff --git a/TAO/TAO_IDL/be/be_visitor_typecode/objref_typecode.cpp b/TAO/TAO_IDL/be/be_visitor_typecode/objref_typecode.cpp
index 9209875fc37..74177b36dbc 100644
--- a/TAO/TAO_IDL/be/be_visitor_typecode/objref_typecode.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_typecode/objref_typecode.cpp
@@ -30,7 +30,7 @@ TAO::be_visitor_objref_typecode::visit_interface (be_interface * node)
static char const local_interface[] = "local_interface";
static char const objref[] = "objref";
- char const * kind = 0;
+ char const * kind = nullptr;
if (dynamic_cast<be_component *> (node))
kind = component;
diff --git a/TAO/TAO_IDL/be/be_visitor_typecode/struct_typecode.cpp b/TAO/TAO_IDL/be/be_visitor_typecode/struct_typecode.cpp
index d17c4be7e1b..ff909252566 100644
--- a/TAO/TAO_IDL/be/be_visitor_typecode/struct_typecode.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_typecode/struct_typecode.cpp
@@ -39,7 +39,7 @@ TAO::be_visitor_struct_typecode::visit_structure (be_structure * node)
// we're repeated and we're recursive so just leave
return 0;
}
- else if (this->queue_insert (this->tc_queue_, node, 0) == 0)
+ else if (this->queue_insert (this->tc_queue_, node, 0) == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_struct_typecode::"
@@ -164,7 +164,7 @@ TAO::be_visitor_struct_typecode::visit (AST_Structure * node,
<< node->nfields () << ");"
<< be_uidt_nl << be_nl;
- if (this->gen_typecode_ptr (be_type::narrow_from_decl (node)) != 0)
+ if (this->gen_typecode_ptr (dynamic_cast<be_type*> (node)) != 0)
{
return -1;
}
@@ -175,7 +175,7 @@ TAO::be_visitor_struct_typecode::visit (AST_Structure * node,
int
TAO::be_visitor_struct_typecode::gen_member_typecodes (AST_Structure * node)
{
- AST_Field ** member_ptr = 0;
+ AST_Field ** member_ptr = nullptr;
ACE_CDR::ULong const count = node->nfields ();
for (ACE_CDR::ULong i = 0; i < count; ++i)
@@ -183,7 +183,7 @@ TAO::be_visitor_struct_typecode::gen_member_typecodes (AST_Structure * node)
node->field (member_ptr, i);
be_type * const member_type =
- be_type::narrow_from_decl ((*member_ptr)->field_type ());
+ dynamic_cast<be_type*> ((*member_ptr)->field_type ());
if (this->is_typecode_generation_required (member_type)
&& member_type->accept (this) != 0)
@@ -194,7 +194,7 @@ TAO::be_visitor_struct_typecode::gen_member_typecodes (AST_Structure * node)
/* MCO@20101020 - this is unnecessary since the check for recursiveness
* of *this* typecode has already been done before calling this method
- be_structure *bs = be_structure::narrow_from_decl (node);
+ be_structure *bs = dynamic_cast<be_structure*> (node);
if (bs)
{
be_visitor_typecode_defn::QNode const * const qnode =
@@ -217,7 +217,7 @@ TAO::be_visitor_struct_typecode::gen_member_typecodes (AST_Structure * node)
int
TAO::be_visitor_struct_typecode::visit_members (AST_Structure * node)
{
- AST_Field ** member_ptr = 0;
+ AST_Field ** member_ptr = nullptr;
ACE_CDR::ULong const count = node->nfields ();
TAO_OutStream & os = *this->ctx_->stream ();
@@ -226,10 +226,10 @@ TAO::be_visitor_struct_typecode::visit_members (AST_Structure * node)
node->field (member_ptr, i);
be_decl * const member_decl =
- be_decl::narrow_from_decl (*member_ptr);
+ dynamic_cast<be_decl*> (*member_ptr);
be_type * const member_type =
- be_type::narrow_from_decl ((*member_ptr)->field_type ());
+ dynamic_cast<be_type*> ((*member_ptr)->field_type ());
os << "{ "
<< "\"" << member_decl->original_local_name () << "\", "
diff --git a/TAO/TAO_IDL/be/be_visitor_typecode/typecode_decl.cpp b/TAO/TAO_IDL/be/be_visitor_typecode/typecode_decl.cpp
index b07080f85ab..46b547a446b 100644
--- a/TAO/TAO_IDL/be/be_visitor_typecode/typecode_decl.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_typecode/typecode_decl.cpp
@@ -21,7 +21,7 @@ be_visitor_typecode_decl::be_visitor_typecode_decl (be_visitor_context *ctx)
}
}
-be_visitor_typecode_decl::~be_visitor_typecode_decl (void)
+be_visitor_typecode_decl::~be_visitor_typecode_decl ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_typecode/typecode_defn.cpp b/TAO/TAO_IDL/be/be_visitor_typecode/typecode_defn.cpp
index e9dcd3b4ee5..9696d002830 100644
--- a/TAO/TAO_IDL/be/be_visitor_typecode/typecode_defn.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_typecode/typecode_defn.cpp
@@ -18,7 +18,7 @@ class Scoped_Compute_Queue_Guard
{
public:
Scoped_Compute_Queue_Guard (be_visitor_typecode_defn* );
- ~Scoped_Compute_Queue_Guard (void);
+ ~Scoped_Compute_Queue_Guard ();
private:
be_visitor_typecode_defn* customer_;
@@ -29,7 +29,7 @@ Scoped_Compute_Queue_Guard::Scoped_Compute_Queue_Guard (
)
:customer_ (customer)
{
- if (customer_ != 0)
+ if (customer_ != nullptr)
{
// Reset the compute queue to set the stage for computing our
// encapsulation length.
@@ -37,9 +37,9 @@ Scoped_Compute_Queue_Guard::Scoped_Compute_Queue_Guard (
}
}
-Scoped_Compute_Queue_Guard::~Scoped_Compute_Queue_Guard (void)
+Scoped_Compute_Queue_Guard::~Scoped_Compute_Queue_Guard ()
{
- if (customer_ != 0)
+ if (customer_ != nullptr)
{
// Reset the compute queue since we must not affect computation of other
// nodes.
@@ -70,7 +70,7 @@ be_visitor_typecode_defn::be_visitor_typecode_defn (be_visitor_context * ctx)
}
}
-be_visitor_typecode_defn::~be_visitor_typecode_defn (void)
+be_visitor_typecode_defn::~be_visitor_typecode_defn ()
{
this->queue_reset (this->tc_queue_);
this->queue_reset (this->compute_queue_);
@@ -98,9 +98,9 @@ be_visitor_typecode_defn::gen_typecode_ptr (be_type * node)
node->defined_in ()->scope_node_type () == AST_Decl::NT_module)
{
be_module * const module =
- be_module::narrow_from_scope (node->defined_in ());
+ dynamic_cast<be_module*> (node->defined_in ());
- if (module == 0)
+ if (module == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_typecode_defn::")
@@ -188,9 +188,9 @@ be_visitor_typecode_defn::gen_forward_declared_typecode (be_type * node)
node->defined_in ()->scope_node_type () == AST_Decl::NT_module)
{
be_module * const module =
- be_module::narrow_from_scope (node->defined_in ());
+ dynamic_cast<be_module*> (node->defined_in ());
- if (module == 0)
+ if (module == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_typecode_defn::")
@@ -238,7 +238,7 @@ be_visitor_typecode_defn::is_typecode_generation_required (be_type * node)
true);
be_interface * const intf =
- d != 0 ? be_interface::narrow_from_decl (d) : 0;
+ d != nullptr ? dynamic_cast<be_interface*> (d) : nullptr;
if (intf && intf->is_defined ())
{
@@ -251,7 +251,7 @@ be_visitor_typecode_defn::is_typecode_generation_required (be_type * node)
// structures and unions
AST_Structure * const st =
- AST_Structure::narrow_from_decl (node);
+ dynamic_cast<AST_Structure*> (node);
if (st && st->is_defined ())
{
@@ -263,7 +263,7 @@ be_visitor_typecode_defn::is_typecode_generation_required (be_type * node)
}
void
-be_visitor_typecode_defn::gen_begin_NS_for_anon (void)
+be_visitor_typecode_defn::gen_begin_NS_for_anon ()
{
TAO_OutStream & os = *this->ctx_->stream ();
@@ -276,7 +276,7 @@ be_visitor_typecode_defn::gen_begin_NS_for_anon (void)
}
void
-be_visitor_typecode_defn::gen_end_NS_for_anon (void)
+be_visitor_typecode_defn::gen_end_NS_for_anon ()
{
TAO_OutStream & os = *this->ctx_->stream ();
@@ -289,7 +289,7 @@ be_visitor_typecode_defn::gen_end_NS_for_anon (void)
int
be_visitor_typecode_defn::visit_array (be_array *node)
{
- be_type * const base = be_type::narrow_from_decl (node->base_type ());
+ be_type * const base = dynamic_cast<be_type*> (node->base_type ());
TAO_OutStream & os = *this->ctx_->stream ();
@@ -452,7 +452,7 @@ be_visitor_typecode_defn::visit_interface_fwd (be_interface_fwd * node)
int
be_visitor_typecode_defn::visit_sequence (be_sequence * node)
{
- be_type * const base = be_type::narrow_from_decl (node->base_type ());
+ be_type * const base = dynamic_cast<be_type*> (node->base_type ());
TAO_OutStream & os = *this->ctx_->stream ();
@@ -615,7 +615,7 @@ be_visitor_typecode_defn::visit_typedef (be_typedef * node)
// visited are strings and sequences. All others have their own
// full-fledged visitors (e.g. objref_typecode, etc.)
- be_type * const base = be_type::narrow_from_decl (node->base_type ());
+ be_type * const base = dynamic_cast<be_type*> (node->base_type ());
this->recursion_detect_ = true;
@@ -711,9 +711,9 @@ be_visitor_typecode_defn::queue_insert (
ACE_CDR::Long offset
)
{
- be_visitor_typecode_defn::QNode *qnode = 0;
+ be_visitor_typecode_defn::QNode *qnode = nullptr;
- ACE_NEW_RETURN (qnode, be_visitor_typecode_defn::QNode, 0);
+ ACE_NEW_RETURN (qnode, be_visitor_typecode_defn::QNode, nullptr);
qnode->node = node;
qnode->offset = offset;
@@ -741,8 +741,8 @@ be_visitor_typecode_defn::queue_lookup (
!iter.done ();
iter.advance ())
{
- be_visitor_typecode_defn::QNode **addr = 0;
- be_visitor_typecode_defn::QNode *item = 0;
+ be_visitor_typecode_defn::QNode **addr = nullptr;
+ be_visitor_typecode_defn::QNode *item = nullptr;
iter.next (addr);
item = *addr;
@@ -754,7 +754,7 @@ be_visitor_typecode_defn::queue_lookup (
}
}
- return 0;
+ return nullptr;
}
void
@@ -763,7 +763,7 @@ queue_reset (ACE_Unbounded_Queue <be_visitor_typecode_defn::QNode *> & queue)
{
while (!queue.is_empty ())
{
- be_visitor_typecode_defn::QNode * qnode = 0;
+ be_visitor_typecode_defn::QNode * qnode = nullptr;
(void) queue.dequeue_head (qnode);
delete qnode;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_typecode/union_typecode.cpp b/TAO/TAO_IDL/be/be_visitor_typecode/union_typecode.cpp
index 8616f9212f5..4ed2f4d340a 100644
--- a/TAO/TAO_IDL/be/be_visitor_typecode/union_typecode.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_typecode/union_typecode.cpp
@@ -39,7 +39,7 @@ TAO::be_visitor_union_typecode::visit_union (be_union * node)
// we're repeated and we're recursive so just leave
return 0;
}
- else if (this->queue_insert (this->tc_queue_, node, 0) == 0)
+ else if (this->queue_insert (this->tc_queue_, node, 0) == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_typecode::"
@@ -65,9 +65,9 @@ TAO::be_visitor_union_typecode::visit_union (be_union * node)
<< "// " << __FILE__ << ":" << __LINE__ << be_nl_2;
be_type * const discriminant_type =
- be_type::narrow_from_decl (node->disc_type ());
+ dynamic_cast<be_type*> (node->disc_type ());
- ACE_ASSERT (discriminant_type != 0);
+ ACE_ASSERT (discriminant_type != nullptr);
if (this->gen_case_typecodes (node) != 0)
{
@@ -121,7 +121,7 @@ TAO::be_visitor_union_typecode::visit_union (be_union * node)
<< node->default_index () << ");" << be_uidt_nl
<< be_uidt_nl;
- if (this->gen_typecode_ptr (be_type::narrow_from_decl (node)) != 0)
+ if (this->gen_typecode_ptr (dynamic_cast<be_type*> (node)) != 0)
{
return -1;
}
@@ -132,7 +132,7 @@ TAO::be_visitor_union_typecode::visit_union (be_union * node)
int
TAO::be_visitor_union_typecode::gen_case_typecodes (be_union * node)
{
- AST_Field ** member_ptr = 0;
+ AST_Field ** member_ptr = nullptr;
ACE_CDR::ULong const count = node->nfields ();
@@ -141,7 +141,7 @@ TAO::be_visitor_union_typecode::gen_case_typecodes (be_union * node)
node->field (member_ptr, i);
be_type * const member_type =
- be_type::narrow_from_decl ((*member_ptr)->field_type ());
+ dynamic_cast<be_type*> ((*member_ptr)->field_type ());
if (this->is_typecode_generation_required (member_type)
&& member_type->accept (this) != 0)
@@ -175,7 +175,7 @@ TAO::be_visitor_union_typecode::visit_cases (be_union * node)
// Generate array containing union case/branch characterstics.
be_type * const discriminant_type =
- be_type::narrow_from_decl (node->disc_type ());
+ dynamic_cast<be_type*> (node->disc_type ());
ACE_CString tao_cases ("_tao_cases_");
ACE_CString const fields_name (tao_cases
@@ -189,16 +189,16 @@ TAO::be_visitor_union_typecode::visit_cases (be_union * node)
ACE_CDR::ULong const countFields = node->nfields ();
for (ACE_CDR::ULong fieldNumber = 0u; fieldNumber < countFields; ++fieldNumber)
{
- AST_Field ** member_ptr = 0;
+ AST_Field ** member_ptr = nullptr;
node->field (member_ptr, fieldNumber);
be_type * const type =
- be_type::narrow_from_decl ((*member_ptr)->field_type ());
+ dynamic_cast<be_type*> ((*member_ptr)->field_type ());
be_union_branch * const branch =
- be_union_branch::narrow_from_decl (*member_ptr);
+ dynamic_cast<be_union_branch*> (*member_ptr);
- ACE_ASSERT (branch != 0);
+ ACE_ASSERT (branch != nullptr);
ACE_CDR::ULong numberOfLabels = branch->label_list_length ();
// Check for a default branch for the current union field.
diff --git a/TAO/TAO_IDL/be/be_visitor_typecode/value_typecode.cpp b/TAO/TAO_IDL/be/be_visitor_typecode/value_typecode.cpp
index 6103a7de557..0fce2fa7734 100644
--- a/TAO/TAO_IDL/be/be_visitor_typecode/value_typecode.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_typecode/value_typecode.cpp
@@ -39,7 +39,7 @@ TAO::be_visitor_value_typecode::visit_valuetype (be_valuetype * node)
// we're repeated and we're recursive so just leave
return 0;
}
- else if (this->queue_insert (this->tc_queue_, node, 0) == 0)
+ else if (this->queue_insert (this->tc_queue_, node, 0) == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_value_typecode::"
@@ -155,7 +155,7 @@ TAO::be_visitor_value_typecode::visit_valuetype (be_valuetype * node)
if (concrete_base)
{
be_type * const base_type =
- be_type::narrow_from_decl (concrete_base);
+ dynamic_cast<be_type*> (concrete_base);
ACE_ASSERT (base_type);
@@ -172,7 +172,7 @@ TAO::be_visitor_value_typecode::visit_valuetype (be_valuetype * node)
<< count << ");" << be_uidt_nl
<< be_uidt_nl;
- if (this->gen_typecode_ptr (be_type::narrow_from_decl (node)) != 0)
+ if (this->gen_typecode_ptr (dynamic_cast<be_type*> (node)) != 0)
{
return -1;
}
@@ -198,7 +198,7 @@ TAO::be_visitor_value_typecode::gen_member_typecodes (be_valuetype * node)
0);
}
- AST_Field * const field = AST_Field::narrow_from_decl (d);
+ AST_Field * const field = dynamic_cast<AST_Field*> (d);
if (!field
|| field->visibility () == AST_Field::vis_NA)
@@ -207,7 +207,7 @@ TAO::be_visitor_value_typecode::gen_member_typecodes (be_valuetype * node)
}
be_type * const member_type =
- be_type::narrow_from_decl (field->field_type ());
+ dynamic_cast<be_type*> (field->field_type ());
if (this->is_typecode_generation_required (member_type)
&& member_type->accept (this) != 0)
@@ -259,7 +259,7 @@ TAO::be_visitor_value_typecode::visit_members (be_valuetype * node)
"bad node in this scope\n"), 0);
}
- AST_Field * const field = AST_Field::narrow_from_decl (d);
+ AST_Field * const field = dynamic_cast<AST_Field*> (d);
if (!field)
{
@@ -274,10 +274,10 @@ TAO::be_visitor_value_typecode::visit_members (be_valuetype * node)
}
be_decl * const member_decl =
- be_decl::narrow_from_decl (field);
+ dynamic_cast<be_decl*> (field);
be_type * const member_type =
- be_type::narrow_from_decl (field->field_type ());
+ dynamic_cast<be_type*> (field->field_type ());
os << "{ "
<< "\"" << member_decl->original_local_name () << "\", "
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 446cff9a3b0..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
@@ -21,7 +21,7 @@ be_visitor_typedef_any_op_ch::be_visitor_typedef_any_op_ch (
{
}
-be_visitor_typedef_any_op_ch::~be_visitor_typedef_any_op_ch (void)
+be_visitor_typedef_any_op_ch::~be_visitor_typedef_any_op_ch ()
{
}
@@ -60,7 +60,7 @@ be_visitor_typedef_any_op_ch::visit_typedef (be_typedef *node)
// the type maybe. In the latter, we just need typedefs for the type and all
// associated _var, _out, and other types.
- be_type *bt = 0; // base type
+ be_type *bt = nullptr; // base type
if (this->ctx_->tdef ())
{
@@ -92,7 +92,7 @@ be_visitor_typedef_any_op_ch::visit_typedef (be_typedef *node)
"failed to accept visitor\n"),
-1);
}
- this->ctx_->alias (0); // reset
+ this->ctx_->alias (nullptr); // reset
}
else
{
@@ -122,17 +122,17 @@ be_visitor_typedef_any_op_ch::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->tdef (0); // reset
+ this->ctx_->tdef (nullptr); // reset
}
- node->cli_hdr_any_op_gen (1);
+ node->cli_hdr_any_op_gen (true);
return 0;
}
int
be_visitor_typedef_any_op_ch::visit_array (be_array *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -163,7 +163,7 @@ be_visitor_typedef_any_op_ch::visit_array (be_array *node)
int
be_visitor_typedef_any_op_ch::visit_enum (be_enum *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -193,7 +193,7 @@ be_visitor_typedef_any_op_ch::visit_enum (be_enum *node)
int
be_visitor_typedef_any_op_ch::visit_sequence (be_sequence *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -223,7 +223,7 @@ be_visitor_typedef_any_op_ch::visit_sequence (be_sequence *node)
int
be_visitor_typedef_any_op_ch::visit_structure (be_structure *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -253,7 +253,7 @@ be_visitor_typedef_any_op_ch::visit_structure (be_structure *node)
int
be_visitor_typedef_any_op_ch::visit_union (be_union *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
diff --git a/TAO/TAO_IDL/be/be_visitor_typedef/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_typedef/any_op_cs.cpp
index 3d3a68e300c..d42b9417928 100644
--- a/TAO/TAO_IDL/be/be_visitor_typedef/any_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_typedef/any_op_cs.cpp
@@ -22,7 +22,7 @@ be_visitor_typedef_any_op_cs::be_visitor_typedef_any_op_cs (
{
}
-be_visitor_typedef_any_op_cs::~be_visitor_typedef_any_op_cs (void)
+be_visitor_typedef_any_op_cs::~be_visitor_typedef_any_op_cs ()
{
}
@@ -59,7 +59,7 @@ be_visitor_typedef_any_op_cs::visit_typedef (be_typedef *node)
// the type maybe. In the latter, we just need typedefs for the type and all
// associated _var, _out, and other types.
- be_type *bt = 0; // base type
+ be_type *bt = nullptr; // base type
if (this->ctx_->tdef ())
{
@@ -92,7 +92,7 @@ be_visitor_typedef_any_op_cs::visit_typedef (be_typedef *node)
), -1);
}
- this->ctx_->alias (0); // reset
+ this->ctx_->alias (nullptr); // reset
}
else
{
@@ -101,7 +101,7 @@ be_visitor_typedef_any_op_cs::visit_typedef (be_typedef *node)
this->ctx_->tdef (node); // save the typedef node
// Grab the immediate base type node.
- bt = be_type::narrow_from_decl (node->base_type ());
+ bt = dynamic_cast<be_type*> (node->base_type ());
if (!bt)
{
@@ -122,7 +122,7 @@ be_visitor_typedef_any_op_cs::visit_typedef (be_typedef *node)
), -1);
}
- this->ctx_->tdef (0); // Reset.
+ this->ctx_->tdef (nullptr); // Reset.
}
node->cli_stub_any_op_gen (true);
@@ -132,7 +132,7 @@ be_visitor_typedef_any_op_cs::visit_typedef (be_typedef *node)
int
be_visitor_typedef_any_op_cs::visit_array (be_array *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ()) // typedef of a typedef
bt = this->ctx_->alias ();
@@ -160,7 +160,7 @@ be_visitor_typedef_any_op_cs::visit_array (be_array *node)
int
be_visitor_typedef_any_op_cs::visit_enum (be_enum *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ()) // typedef of a typedef
bt = this->ctx_->alias ();
@@ -187,7 +187,7 @@ be_visitor_typedef_any_op_cs::visit_enum (be_enum *node)
int
be_visitor_typedef_any_op_cs::visit_sequence (be_sequence *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ()) // typedef of a typedef
bt = this->ctx_->alias ();
@@ -214,7 +214,7 @@ be_visitor_typedef_any_op_cs::visit_sequence (be_sequence *node)
int
be_visitor_typedef_any_op_cs::visit_structure (be_structure *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ()) // typedef of a typedef
bt = this->ctx_->alias ();
@@ -241,7 +241,7 @@ be_visitor_typedef_any_op_cs::visit_structure (be_structure *node)
int
be_visitor_typedef_any_op_cs::visit_union (be_union *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ()) // typedef of a typedef
bt = this->ctx_->alias ();
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 eb40ff0be2c..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
@@ -21,7 +21,7 @@ be_visitor_typedef_cdr_op_ch::be_visitor_typedef_cdr_op_ch (
{
}
-be_visitor_typedef_cdr_op_ch::~be_visitor_typedef_cdr_op_ch (void)
+be_visitor_typedef_cdr_op_ch::~be_visitor_typedef_cdr_op_ch ()
{
}
@@ -59,7 +59,7 @@ be_visitor_typedef_cdr_op_ch::visit_typedef (be_typedef *node)
// the type maybe. In the latter, we just need typedefs for the type and all
// associated _var, _out, and other types.
- be_type *bt = 0; // base type
+ be_type *bt = nullptr; // base type
if (this->ctx_->tdef ())
{
@@ -92,7 +92,7 @@ be_visitor_typedef_cdr_op_ch::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0); // reset
+ this->ctx_->alias (nullptr); // reset
}
else
{
@@ -101,7 +101,7 @@ be_visitor_typedef_cdr_op_ch::visit_typedef (be_typedef *node)
this->ctx_->tdef (node); // save the typedef node
// Grab the immediate base type node.
- bt = be_type::narrow_from_decl (node->base_type ());
+ bt = dynamic_cast<be_type*> (node->base_type ());
if (!bt)
{
@@ -122,17 +122,17 @@ be_visitor_typedef_cdr_op_ch::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->tdef (0);
+ this->ctx_->tdef (nullptr);
}
- node->cli_hdr_cdr_op_gen (1);
+ node->cli_hdr_cdr_op_gen (true);
return 0;
}
int
be_visitor_typedef_cdr_op_ch::visit_array (be_array *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -163,7 +163,7 @@ be_visitor_typedef_cdr_op_ch::visit_array (be_array *node)
int
be_visitor_typedef_cdr_op_ch::visit_enum (be_enum *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -193,7 +193,7 @@ be_visitor_typedef_cdr_op_ch::visit_enum (be_enum *node)
int
be_visitor_typedef_cdr_op_ch::visit_sequence (be_sequence *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -223,7 +223,7 @@ be_visitor_typedef_cdr_op_ch::visit_sequence (be_sequence *node)
int
be_visitor_typedef_cdr_op_ch::visit_structure (be_structure *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -253,7 +253,7 @@ be_visitor_typedef_cdr_op_ch::visit_structure (be_structure *node)
int
be_visitor_typedef_cdr_op_ch::visit_union (be_union *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
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 0afec693394..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
@@ -22,7 +22,7 @@ be_visitor_typedef_cdr_op_cs::be_visitor_typedef_cdr_op_cs (
{
}
-be_visitor_typedef_cdr_op_cs::~be_visitor_typedef_cdr_op_cs (void)
+be_visitor_typedef_cdr_op_cs::~be_visitor_typedef_cdr_op_cs ()
{
}
@@ -55,7 +55,7 @@ be_visitor_typedef_cdr_op_cs::visit_typedef (be_typedef *node)
// the type maybe. In the latter, we just need typedefs for the type and all
// associated _var, _out, and other types.
- be_type *bt = 0; // base type
+ be_type *bt = nullptr; // base type
if (this->ctx_->tdef ())
{
@@ -88,7 +88,7 @@ be_visitor_typedef_cdr_op_cs::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0); // reset
+ this->ctx_->alias (nullptr); // reset
}
else
{
@@ -97,7 +97,7 @@ be_visitor_typedef_cdr_op_cs::visit_typedef (be_typedef *node)
this->ctx_->tdef (node); // save the typedef node
// grab the immediate base type node
- bt = be_type::narrow_from_decl (node->base_type ());
+ bt = dynamic_cast<be_type*> (node->base_type ());
if (!bt)
{
@@ -118,17 +118,17 @@ be_visitor_typedef_cdr_op_cs::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->tdef (0); // reset
+ this->ctx_->tdef (nullptr); // reset
}
- node->cli_stub_cdr_op_gen (1);
+ node->cli_stub_cdr_op_gen (true);
return 0;
}
int
be_visitor_typedef_cdr_op_cs::visit_array (be_array *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ()) // typedef of a typedef
{
@@ -160,7 +160,7 @@ be_visitor_typedef_cdr_op_cs::visit_array (be_array *node)
int
be_visitor_typedef_cdr_op_cs::visit_sequence (be_sequence *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ()) // typedef of a typedef
{
@@ -191,7 +191,7 @@ be_visitor_typedef_cdr_op_cs::visit_sequence (be_sequence *node)
int
be_visitor_typedef_cdr_op_cs::visit_structure (be_structure *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ()) // typedef of a typedef
{
@@ -222,7 +222,7 @@ be_visitor_typedef_cdr_op_cs::visit_structure (be_structure *node)
int
be_visitor_typedef_cdr_op_cs::visit_union (be_union *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ()) // typedef of a typedef
{
diff --git a/TAO/TAO_IDL/be/be_visitor_typedef/typedef.cpp b/TAO/TAO_IDL/be/be_visitor_typedef/typedef.cpp
index 93defa2abb2..070e3c679ab 100644
--- a/TAO/TAO_IDL/be/be_visitor_typedef/typedef.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_typedef/typedef.cpp
@@ -20,7 +20,7 @@ be_visitor_typedef::be_visitor_typedef (be_visitor_context *ctx)
{
}
-be_visitor_typedef::~be_visitor_typedef (void)
+be_visitor_typedef::~be_visitor_typedef ()
{
}
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 be22cc09883..11ece6e78d2 100644
--- a/TAO/TAO_IDL/be/be_visitor_typedef/typedef_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_typedef/typedef_ch.cpp
@@ -20,7 +20,7 @@ be_visitor_typedef_ch::be_visitor_typedef_ch (be_visitor_context *ctx)
{
}
-be_visitor_typedef_ch::~be_visitor_typedef_ch (void)
+be_visitor_typedef_ch::~be_visitor_typedef_ch ()
{
}
@@ -48,7 +48,7 @@ be_visitor_typedef_ch::visit_typedef (be_typedef *node)
// the type maybe. In the latter, we just need typedefs for the type and all
// associated _var, _out, and other types.
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->tdef ())
{
@@ -81,7 +81,7 @@ be_visitor_typedef_ch::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
}
else
{
@@ -90,7 +90,7 @@ be_visitor_typedef_ch::visit_typedef (be_typedef *node)
this->ctx_->tdef (node);
// Grab the immediate base type node.
- bt = be_type::narrow_from_decl (node->base_type ());
+ bt = dynamic_cast<be_type*> (node->base_type ());
if (!bt)
{
@@ -130,7 +130,7 @@ be_visitor_typedef_ch::visit_typedef (be_typedef *node)
}
}
- this->ctx_->tdef (0);
+ this->ctx_->tdef (nullptr);
}
return 0;
@@ -142,7 +142,7 @@ be_visitor_typedef_ch::visit_array (be_array *node)
TAO_OutStream *os = this->ctx_->stream ();
be_typedef *tdef = this->ctx_->tdef ();
be_decl *scope = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Is the base type an alias to an array node or an actual array node.
if (this->ctx_->alias ())
@@ -203,11 +203,11 @@ be_visitor_typedef_ch::visit_array (be_array *node)
// output statement.
const char *static_decl = "";
- AST_Module *scope = AST_Module::narrow_from_scope (tdef->defined_in ());
+ AST_Module *scope = dynamic_cast<AST_Module*> (tdef->defined_in ());
// If the typedef is not declared globally or in a module, the
// associated array memory management function must be static.
- if (scope == 0)
+ if (scope == nullptr)
{
static_decl = "static ";
}
@@ -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
@@ -261,7 +261,7 @@ be_visitor_typedef_ch::visit_enum (be_enum *node)
TAO_OutStream *os = this->ctx_->stream ();
be_typedef *tdef = this->ctx_->tdef ();
be_decl *scope = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Typedef of a typedef?
if (this->ctx_->alias ())
@@ -305,7 +305,7 @@ be_visitor_typedef_ch::visit_interface (be_interface *node)
TAO_OutStream *os = this->ctx_->stream ();
be_typedef *tdef = this->ctx_->tdef ();
be_decl *scope = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Typedef of a typedef?
if (this->ctx_->alias ())
@@ -343,7 +343,7 @@ int
be_visitor_typedef_ch::visit_interface_fwd (be_interface_fwd *)
{
// be_interface *fd =
-// be_interface::narrow_from_decl (node->full_definition ());
+// dynamic_cast<be_interface*> (node->full_definition ());
// return this->visit_interface (fd);
return 0;
}
@@ -354,7 +354,7 @@ be_visitor_typedef_ch::visit_predefined_type (be_predefined_type *node)
TAO_OutStream *os = this->ctx_->stream ();
be_typedef *tdef = this->ctx_->tdef ();
be_decl *scope = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Typedef of a typedef?
if (this->ctx_->alias ())
@@ -433,7 +433,7 @@ be_visitor_typedef_ch::visit_sequence (be_sequence *node)
TAO_OutStream *os = this->ctx_->stream ();
be_typedef *tdef = this->ctx_->tdef ();
be_decl *scope = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Typedef of a typedef?
if (this->ctx_->alias ())
@@ -481,7 +481,7 @@ be_visitor_typedef_ch::visit_structure (be_structure *node)
TAO_OutStream *os = this->ctx_->stream ();
be_typedef *tdef = this->ctx_->tdef ();
be_decl *scope = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Typedef of a typedef?
if (this->ctx_->alias ())
@@ -527,7 +527,7 @@ be_visitor_typedef_ch::visit_union (be_union *node)
TAO_OutStream *os = this->ctx_->stream ();
be_typedef *tdef = this->ctx_->tdef ();
be_decl *scope = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Typedef of a typedef?
if (this->ctx_->alias ())
@@ -573,7 +573,7 @@ be_visitor_typedef_ch::visit_valuebox (be_valuebox *node)
TAO_OutStream *os = this->ctx_->stream ();
be_typedef *tdef = this->ctx_->tdef ();
be_decl *scope = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Typedef of a typedef?
if (this->ctx_->alias ())
@@ -609,7 +609,7 @@ be_visitor_typedef_ch::visit_valuetype (be_valuetype *node)
TAO_OutStream *os = this->ctx_->stream ();
be_typedef *tdef = this->ctx_->tdef ();
be_decl *scope = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Typedef of a typedef?
if (this->ctx_->alias ())
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 2928526e184..c305d181e52 100644
--- a/TAO/TAO_IDL/be/be_visitor_typedef/typedef_ci.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_typedef/typedef_ci.cpp
@@ -20,7 +20,7 @@ be_visitor_typedef_ci::be_visitor_typedef_ci (be_visitor_context *ctx)
{
}
-be_visitor_typedef_ci::~be_visitor_typedef_ci (void)
+be_visitor_typedef_ci::~be_visitor_typedef_ci ()
{
}
@@ -48,7 +48,7 @@ be_visitor_typedef_ci::visit_typedef (be_typedef *node)
// the type maybe. In the latter, we just need typedefs for the type and all
// associated _var, _out, and other types.
- be_type *bt = 0; // base type
+ be_type *bt = nullptr; // base type
if (this->ctx_->tdef ())
{
@@ -81,7 +81,7 @@ be_visitor_typedef_ci::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
}
else
{
@@ -90,7 +90,7 @@ be_visitor_typedef_ci::visit_typedef (be_typedef *node)
this->ctx_->tdef (node); // save the typedef node
// grab the immediate base type node
- bt = be_type::narrow_from_decl (node->base_type ());
+ bt = dynamic_cast<be_type*> (node->base_type ());
if (!bt)
{
@@ -111,7 +111,7 @@ be_visitor_typedef_ci::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->tdef (0);
+ this->ctx_->tdef (nullptr);
}
return 0;
@@ -122,7 +122,7 @@ be_visitor_typedef_ci::visit_array (be_array *node)
{
TAO_OutStream *os = this->ctx_->stream (); // output stream
be_typedef *tdef = this->ctx_->tdef (); // typedef node
- be_type *bt = 0;
+ be_type *bt = nullptr;
// This doesn't catch 'typedef of a typedef' if the node is
// imported, so we check for that below before generating
@@ -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;
@@ -216,7 +216,7 @@ be_visitor_typedef_ci::visit_array (be_array *node)
int
be_visitor_typedef_ci::visit_sequence (be_sequence *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ()) // typedef of a typedef
{
@@ -247,7 +247,7 @@ be_visitor_typedef_ci::visit_sequence (be_sequence *node)
int
be_visitor_typedef_ci::visit_structure (be_structure *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ()) // typedef of a typedef
{
@@ -278,7 +278,7 @@ be_visitor_typedef_ci::visit_structure (be_structure *node)
int
be_visitor_typedef_ci::visit_union (be_union *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ()) // typedef of a typedef
{
diff --git a/TAO/TAO_IDL/be/be_visitor_typedef/typedef_cs.cpp b/TAO/TAO_IDL/be/be_visitor_typedef/typedef_cs.cpp
index 4068d88b3b3..b8d5f78f02e 100644
--- a/TAO/TAO_IDL/be/be_visitor_typedef/typedef_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_typedef/typedef_cs.cpp
@@ -20,7 +20,7 @@ be_visitor_typedef_cs::be_visitor_typedef_cs (be_visitor_context *ctx)
{
}
-be_visitor_typedef_cs::~be_visitor_typedef_cs (void)
+be_visitor_typedef_cs::~be_visitor_typedef_cs ()
{
}
@@ -48,7 +48,7 @@ be_visitor_typedef_cs::visit_typedef (be_typedef *node)
// the type maybe. In the latter, we just need typedefs for the type and all
// associated _var, _out, and other types.
- be_type *bt = 0; // base type
+ be_type *bt = nullptr; // base type
if (this->ctx_->tdef ())
{
@@ -81,7 +81,7 @@ be_visitor_typedef_cs::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
}
else
{
@@ -90,7 +90,7 @@ be_visitor_typedef_cs::visit_typedef (be_typedef *node)
this->ctx_->tdef (node);
// Grab the immediate base type node.
- bt = be_type::narrow_from_decl (node->base_type ());
+ bt = dynamic_cast<be_type*> (node->base_type ());
if (!bt)
{
@@ -128,7 +128,7 @@ be_visitor_typedef_cs::visit_typedef (be_typedef *node)
}
- this->ctx_->tdef (0);
+ this->ctx_->tdef (nullptr);
}
return 0;
@@ -137,7 +137,7 @@ be_visitor_typedef_cs::visit_typedef (be_typedef *node)
int
be_visitor_typedef_cs::visit_sequence (be_sequence *node)
{
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Typedef of a typedef?
if (this->ctx_->alias ())
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 d7522094c26..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
@@ -17,7 +17,7 @@ be_visitor_union_any_op_ch::be_visitor_union_any_op_ch (
{
}
-be_visitor_union_any_op_ch::~be_visitor_union_any_op_ch (void)
+be_visitor_union_any_op_ch::~be_visitor_union_any_op_ch ()
{
}
@@ -36,21 +36,21 @@ be_visitor_union_any_op_ch::visit_union (be_union *node)
*os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl_2;
- be_module *module = 0;
+ be_module *module = nullptr;
AST_Decl *decl = node;
if (decl->is_nested ())
{
if (node->defined_in ()->scope_node_type () == AST_Decl::NT_interface)
{
- be_interface *intf = 0;
- intf = be_interface::narrow_from_scope (node->defined_in ());
+ be_interface *intf = nullptr;
+ intf = dynamic_cast<be_interface*> (node->defined_in ());
decl = intf;
}
if (decl->defined_in ()->scope_node_type () == AST_Decl::NT_module)
{
- module = be_module::narrow_from_scope (decl->defined_in ());
+ module = dynamic_cast<be_module*> (decl->defined_in ());
if (!module)
{
@@ -94,7 +94,7 @@ be_visitor_union_any_op_ch::visit_union (be_union *node)
*os << be_global->core_versioning_end () << be_nl;
- if (module != 0)
+ if (module != nullptr)
{
*os << "\n\n#endif";
}
@@ -106,8 +106,8 @@ be_visitor_union_any_op_ch::visit_union (be_union *node)
{
AST_Decl *d = si.item ();
- be_enum *e = be_enum::narrow_from_decl (d);
- if (e != 0)
+ be_enum *e = dynamic_cast<be_enum*> (d);
+ if (e != nullptr)
{
be_visitor_enum_any_op_ch visitor (&ctx);
@@ -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;
}
@@ -139,7 +139,7 @@ int
be_visitor_union_any_op_ch::visit_union_branch (be_union_branch *node)
{
// First generate the type information.
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
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 ed636e42cac..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
@@ -17,7 +17,7 @@ be_visitor_union_any_op_cs::be_visitor_union_any_op_cs (
{
}
-be_visitor_union_any_op_cs::~be_visitor_union_any_op_cs (void)
+be_visitor_union_any_op_cs::~be_visitor_union_any_op_cs ()
{
}
@@ -70,21 +70,21 @@ be_visitor_union_any_op_cs::visit_union (be_union *node)
*os << be_global->core_versioning_end () << be_nl;
- be_module *module = 0;
+ be_module *module = nullptr;
AST_Decl *decl = node;
if (decl->is_nested ())
{
if (node->defined_in ()->scope_node_type () == AST_Decl::NT_interface)
{
- be_interface *intf = 0;
- intf = be_interface::narrow_from_scope (node->defined_in ());
+ be_interface *intf = nullptr;
+ intf = dynamic_cast<be_interface*> (node->defined_in ());
decl = intf;
}
if (decl->defined_in ()->scope_node_type () == AST_Decl::NT_module)
{
- module = be_module::narrow_from_scope (decl->defined_in ());
+ module = dynamic_cast<be_module*> (decl->defined_in ());
if (!module)
{
@@ -209,7 +209,7 @@ be_visitor_union_any_op_cs::visit_union (be_union *node)
*os << be_global->core_versioning_end () << be_nl;
- if (module != 0)
+ if (module != nullptr)
{
*os << "\n\n#endif";
}
@@ -221,8 +221,8 @@ be_visitor_union_any_op_cs::visit_union (be_union *node)
{
AST_Decl *d = si.item ();
- be_enum *e = be_enum::narrow_from_decl (d);
- if (e != 0)
+ be_enum *e = dynamic_cast<be_enum*> (d);
+ if (e != nullptr)
{
be_visitor_enum_any_op_cs visitor (&ctx);
@@ -247,14 +247,14 @@ 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;
}
int
be_visitor_union_any_op_cs::visit_union_branch (be_union_branch *node)
{
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
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 c703262324d..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
@@ -18,7 +18,7 @@ be_visitor_union_cdr_op_ch::be_visitor_union_cdr_op_ch (
{
}
-be_visitor_union_cdr_op_ch::~be_visitor_union_cdr_op_ch (void)
+be_visitor_union_cdr_op_ch::~be_visitor_union_cdr_op_ch ()
{
}
@@ -65,8 +65,8 @@ be_visitor_union_cdr_op_ch::visit_union (be_union *node)
{
AST_Decl *d = si.item ();
- be_enum *e = be_enum::narrow_from_decl (d);
- if (e != 0)
+ be_enum *e = dynamic_cast<be_enum*> (d);
+ if (e != nullptr)
{
be_visitor_enum_cdr_op_ch visitor (&ctx);
@@ -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/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union/cdr_op_cs.cpp
index d182f67c0b6..f3173b1742b 100644
--- a/TAO/TAO_IDL/be/be_visitor_union/cdr_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union/cdr_op_cs.cpp
@@ -17,7 +17,7 @@ be_visitor_union_cdr_op_cs::be_visitor_union_cdr_op_cs (
{
}
-be_visitor_union_cdr_op_cs::~be_visitor_union_cdr_op_cs (void)
+be_visitor_union_cdr_op_cs::~be_visitor_union_cdr_op_cs ()
{
}
@@ -42,8 +42,8 @@ be_visitor_union_cdr_op_cs::visit_union (be_union *node)
{
AST_Decl *d = si.item ();
- be_enum *e = be_enum::narrow_from_decl (d);
- if (e != 0)
+ be_enum *e = dynamic_cast<be_enum*> (d);
+ if (e != nullptr)
{
be_visitor_enum_cdr_op_cs visitor (&ctx);
@@ -159,7 +159,7 @@ be_visitor_union_cdr_op_cs::visit_union (be_union *node)
<< "{" << be_idt_nl;
be_type* disc_type =
- be_type::narrow_from_decl (node->disc_type ());
+ dynamic_cast<be_type*> (node->disc_type ());
// Generate a temporary to store the discriminant
*os << disc_type->full_name ()
@@ -240,7 +240,7 @@ be_visitor_union_cdr_op_cs::visit_union (be_union *node)
*os << "return result;" << be_uidt_nl
<< "}" << be_nl;
- bool use_underscore = (this->ctx_->tdef () == 0);
+ bool use_underscore = (this->ctx_->tdef () == nullptr);
if (be_global->gen_ostream_operators ())
{
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 b8d565cf865..9f4f09196be 100644
--- a/TAO/TAO_IDL/be/be_visitor_union/discriminant_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union/discriminant_ch.cpp
@@ -17,7 +17,7 @@ be_visitor_union_discriminant_ch::be_visitor_union_discriminant_ch (
{
}
-be_visitor_union_discriminant_ch::~be_visitor_union_discriminant_ch (void)
+be_visitor_union_discriminant_ch::~be_visitor_union_discriminant_ch ()
{
}
@@ -26,8 +26,8 @@ be_visitor_union_discriminant_ch::visit_enum (be_enum *node)
{
// Get the enclosing union backend.
be_union *bu =
- be_union::narrow_from_decl (this->ctx_->node ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->node ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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;
}
@@ -81,8 +81,8 @@ be_visitor_union_discriminant_ch::visit_predefined_type (be_predefined_type
{
// get the enclosing union backend.
be_union *bu =
- be_union::narrow_from_decl (this->ctx_->node ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->node ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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;
}
@@ -125,6 +125,6 @@ be_visitor_union_discriminant_ch::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
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 1d1f5372921..ce1b7ca49e6 100644
--- a/TAO/TAO_IDL/be/be_visitor_union/discriminant_ci.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union/discriminant_ci.cpp
@@ -17,7 +17,7 @@ be_visitor_union_discriminant_ci::be_visitor_union_discriminant_ci (
{
}
-be_visitor_union_discriminant_ci::~be_visitor_union_discriminant_ci (void)
+be_visitor_union_discriminant_ci::~be_visitor_union_discriminant_ci ()
{
}
@@ -25,8 +25,8 @@ int
be_visitor_union_discriminant_ci::visit_enum (be_enum *node)
{
be_union *bu =
- be_union::narrow_from_decl (this->ctx_->node ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->node ());
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -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
<< "}";
@@ -114,9 +114,9 @@ be_visitor_union_discriminant_ci::visit_predefined_type (
)
{
be_union *bu =
- be_union::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union*> (this->ctx_->node ());
- be_type *bt = 0;
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -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
<< "}";
@@ -235,6 +235,6 @@ be_visitor_union_discriminant_ci::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_union/discriminant_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union/discriminant_cs.cpp
index fcebbea9129..d147b318362 100644
--- a/TAO/TAO_IDL/be/be_visitor_union/discriminant_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union/discriminant_cs.cpp
@@ -18,7 +18,7 @@ be_visitor_union_discriminant_cs::be_visitor_union_discriminant_cs (
{
}
-be_visitor_union_discriminant_cs::~be_visitor_union_discriminant_cs (void)
+be_visitor_union_discriminant_cs::~be_visitor_union_discriminant_cs ()
{
}
@@ -26,8 +26,8 @@ int
be_visitor_union_discriminant_cs::visit_enum (be_enum *node)
{
be_union *bu =
- be_union::narrow_from_decl (this->ctx_->node ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->node ());
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
diff --git a/TAO/TAO_IDL/be/be_visitor_union/union.cpp b/TAO/TAO_IDL/be/be_visitor_union/union.cpp
index 9ed497927ac..ddee451480c 100644
--- a/TAO/TAO_IDL/be/be_visitor_union/union.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union/union.cpp
@@ -16,7 +16,7 @@ be_visitor_union::be_visitor_union (be_visitor_context *ctx)
{
}
-be_visitor_union::~be_visitor_union (void)
+be_visitor_union::~be_visitor_union ()
{
}
@@ -110,7 +110,7 @@ be_visitor_union::visit_union_branch (be_union_branch *node)
be_visitor_union::BoolUnionBranch
be_visitor_union::boolean_branch (be_union_branch *b)
{
- be_union *u = be_union::narrow_from_scope (b->defined_in ());
+ be_union *u = dynamic_cast<be_union*> (b->defined_in ());
if (!u || u->udisc_type () != AST_Expression::EV_bool)
return BUB_NONE;
@@ -131,7 +131,7 @@ be_visitor_union::boolean_branch (be_union_branch *b)
u->field (f, i);
if (*f != b)
{
- AST_UnionBranch *other = AST_UnionBranch::narrow_from_decl (*f);
+ AST_UnionBranch *other = dynamic_cast<AST_UnionBranch*> (*f);
for (unsigned long j = 0; j < other->label_list_length (); ++j)
{
has_other = true;
@@ -162,10 +162,10 @@ be_visitor_union_cdr_op_cs::pre_process (be_decl *bd)
TAO_OutStream *os = this->ctx_->stream ();
be_union_branch* b =
- be_union_branch::narrow_from_decl (bd);
+ dynamic_cast<be_union_branch*> (bd);
// Could be a type decl.
- if (b == 0)
+ if (b == nullptr)
{
return 0;
}
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 5c8f1be9fb5..3943c07a55f 100644
--- a/TAO/TAO_IDL/be/be_visitor_union/union_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union/union_ch.cpp
@@ -16,7 +16,7 @@ be_visitor_union_ch::be_visitor_union_ch (be_visitor_context *ctx)
{
}
-be_visitor_union_ch::~be_visitor_union_ch (void)
+be_visitor_union_ch::~be_visitor_union_ch ()
{
}
@@ -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
@@ -61,7 +61,7 @@ int be_visitor_union_ch::visit_union (be_union *node)
<< node->local_name () << " &);";
// Retrieve the disriminant type.
- be_type *bt = be_type::narrow_from_decl (node->disc_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->disc_type ());
if (!bt)
{
@@ -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_ci.cpp b/TAO/TAO_IDL/be/be_visitor_union/union_ci.cpp
index 873d95becad..47bab908e32 100644
--- a/TAO/TAO_IDL/be/be_visitor_union/union_ci.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union/union_ci.cpp
@@ -16,7 +16,7 @@ be_visitor_union_ci::be_visitor_union_ci (be_visitor_context *ctx)
{
}
-be_visitor_union_ci::~be_visitor_union_ci (void)
+be_visitor_union_ci::~be_visitor_union_ci ()
{
}
@@ -43,7 +43,7 @@ int be_visitor_union_ci::visit_union (be_union *node)
// the discriminant type may have to be defined here if it was an enum
// declaration inside of the union statement.
- be_type *bt = be_type::narrow_from_decl (node->disc_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->disc_type ());
if (!bt)
{
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 eb1cbd75784..5cfcba36781 100644
--- a/TAO/TAO_IDL/be/be_visitor_union/union_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union/union_cs.cpp
@@ -16,7 +16,7 @@ be_visitor_union_cs::be_visitor_union_cs (be_visitor_context *ctx)
{
}
-be_visitor_union_cs::~be_visitor_union_cs (void)
+be_visitor_union_cs::~be_visitor_union_cs ()
{
}
@@ -35,7 +35,7 @@ int be_visitor_union_cs::visit_union (be_union *node)
// declaration inside of the union statement. We need to generate its
// typecode.
- be_type *bt = be_type::narrow_from_decl (node->disc_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->disc_type ());
if (!bt)
{
@@ -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;
@@ -89,16 +89,16 @@ int be_visitor_union_cs::visit_union (be_union *node)
*os << "this->disc_ = ";
UTL_ScopeActiveIterator si (node, UTL_Scope::IK_decls);
- be_union_branch *ub = 0;
+ be_union_branch *ub = nullptr;
// In case we have some bogus enum values from an enum declared
// in our scope.
- while (ub == 0)
+ while (ub == nullptr)
{
// Just get the union's first member.
AST_Decl *d = si.item ();
- ub = be_union_branch::narrow_from_decl (d);
+ ub = dynamic_cast<be_union_branch*> (d);
si.next ();
}
@@ -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/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_ch.cpp
index 5ff6f661324..997da7e73c5 100644
--- a/TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_ch.cpp
@@ -16,14 +16,14 @@ be_visitor_union_branch_cdr_op_ch::be_visitor_union_branch_cdr_op_ch (
{
}
-be_visitor_union_branch_cdr_op_ch::~be_visitor_union_branch_cdr_op_ch (void)
+be_visitor_union_branch_cdr_op_ch::~be_visitor_union_branch_cdr_op_ch ()
{
}
int
be_visitor_union_branch_cdr_op_ch::visit_union_branch (be_union_branch *node)
{
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -167,7 +167,7 @@ be_visitor_union_branch_cdr_op_ch::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_cs.cpp
index f585aeada96..5fb6a632f95 100644
--- a/TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_cs.cpp
@@ -28,14 +28,14 @@ be_visitor_union_branch_cdr_op_cs::be_visitor_union_branch_cdr_op_cs (
{
}
-be_visitor_union_branch_cdr_op_cs::~be_visitor_union_branch_cdr_op_cs (void)
+be_visitor_union_branch_cdr_op_cs::~be_visitor_union_branch_cdr_op_cs ()
{
}
int
be_visitor_union_branch_cdr_op_cs::visit_union_branch (be_union_branch *node)
{
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -85,9 +85,9 @@ be_visitor_union_branch_cdr_op_cs::visit_array (be_array *node)
// Retrieve the union_branch node.
be_union_branch *f =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_cdr_op_cs::"
@@ -116,7 +116,7 @@ be_visitor_union_branch_cdr_op_cs::visit_array (be_array *node)
if (node->is_nested ())
{
be_decl *parent =
- be_scope::narrow_from_scope (node->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (node->defined_in ())->decl ();
ACE_OS::sprintf (fname,
"%s::_%s",
parent->full_name (),
@@ -185,9 +185,9 @@ be_visitor_union_branch_cdr_op_cs::visit_enum (be_enum *node)
// Retrieve the union_branch node
be_union_branch *f =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_cdr_op_cs::"
@@ -260,9 +260,9 @@ be_visitor_union_branch_cdr_op_cs::visit_interface (be_interface *node)
// Retrieve the union_branch node.
be_union_branch *f =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_cdr_op_cs::"
@@ -340,9 +340,9 @@ be_visitor_union_branch_cdr_op_cs::visit_interface_fwd (be_interface_fwd *node)
// Retrieve the union_branch node.
be_union_branch *f =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_cdr_op_cs::"
@@ -425,9 +425,9 @@ be_visitor_union_branch_cdr_op_cs::emit_valuetype_common (be_type *node)
// Retrieve the union_branch node.
be_union_branch *f =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_cdr_op_cs::"
@@ -483,9 +483,9 @@ be_visitor_union_branch_cdr_op_cs::visit_predefined_type (
// Retrieve the union_branch node.
be_union_branch *f =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_cdr_op_cs::"
@@ -671,9 +671,9 @@ be_visitor_union_branch_cdr_op_cs::visit_sequence (be_sequence *node)
// Retrieve the union_branch node.
be_union_branch *f =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_cdr_op_ci::"
@@ -741,9 +741,9 @@ be_visitor_union_branch_cdr_op_cs::visit_string (be_string *node)
// Retrieve the union_branch node.
be_union_branch *f =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_cdr_op_ci::"
@@ -864,9 +864,9 @@ be_visitor_union_branch_cdr_op_cs::visit_structure (be_structure *node)
// Retrieve the union_branch node.
be_union_branch *f =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_cdr_op_ci::"
@@ -928,7 +928,7 @@ be_visitor_union_branch_cdr_op_cs::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -961,9 +961,9 @@ be_visitor_union_branch_cdr_op_cs::visit_union (be_union *node)
// Retrieve the union_branch node.
be_union_branch *f =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_cdr_op_ci::"
@@ -1010,16 +1010,16 @@ be_visitor_union_branch_cdr_op_cs::visit_union (be_union *node)
}
int
-be_visitor_union_branch_cdr_op_cs::explicit_default (void)
+be_visitor_union_branch_cdr_op_cs::explicit_default ()
{
be_union *bu =
- be_union::narrow_from_decl (this->ctx_->scope ()->decl ());
+ dynamic_cast<be_union*> (this->ctx_->scope ()->decl ());
int def_index = bu->default_index ();
if (def_index != -1)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
int i = 0;
@@ -1028,13 +1028,13 @@ be_visitor_union_branch_cdr_op_cs::explicit_default (void)
!si.is_done ();
si.next ())
{
- be_union_branch *bub = 0; // union branch node
+ be_union_branch *bub = nullptr; // union branch node
AST_Decl *d = si.item ();
if (!d->imported ())
{
- bub = be_union_branch::narrow_from_decl (d);
+ bub = dynamic_cast<be_union_branch*> (d);
}
if (bub == ub)
diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp
index 888f7230521..a9aef5adc87 100644
--- a/TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp
@@ -25,7 +25,7 @@ be_visitor_union_branch_private_ch::be_visitor_union_branch_private_ch (
}
// Destructor.
-be_visitor_union_branch_private_ch::~be_visitor_union_branch_private_ch (void)
+be_visitor_union_branch_private_ch::~be_visitor_union_branch_private_ch ()
{
}
@@ -33,7 +33,7 @@ be_visitor_union_branch_private_ch::~be_visitor_union_branch_private_ch (void)
int
be_visitor_union_branch_private_ch::visit_union_branch (be_union_branch *node)
{
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -63,7 +63,7 @@ be_visitor_union_branch_private_ch::visit_array (be_array *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -113,7 +113,7 @@ be_visitor_union_branch_private_ch::visit_enum (be_enum *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node
if (this->ctx_->alias ())
@@ -152,7 +152,7 @@ be_visitor_union_branch_private_ch::visit_interface (be_interface *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node
if (this->ctx_->alias ())
@@ -191,7 +191,7 @@ be_visitor_union_branch_private_ch::visit_interface_fwd (be_interface_fwd *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node
if (this->ctx_->alias ())
@@ -230,7 +230,7 @@ be_visitor_union_branch_private_ch::visit_valuebox (be_valuebox *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node
if (this->ctx_->alias ())
@@ -269,7 +269,7 @@ be_visitor_union_branch_private_ch::visit_valuetype (be_valuetype *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node
if (this->ctx_->alias ())
@@ -308,7 +308,7 @@ be_visitor_union_branch_private_ch::visit_valuetype_fwd (be_valuetype_fwd *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node
if (this->ctx_->alias ())
@@ -349,11 +349,11 @@ be_visitor_union_branch_private_ch::visit_predefined_type (
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
be_typedef *td = this->ctx_->alias ();
// Check if we are visiting this node via a visit to a typedef node
- if (td != 0)
+ if (td != nullptr)
{
bt = td;
}
@@ -417,7 +417,7 @@ be_visitor_union_branch_private_ch::visit_sequence (be_sequence *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node
if (this->ctx_->alias ())
@@ -492,7 +492,7 @@ be_visitor_union_branch_private_ch::visit_structure (be_structure *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node
if (this->ctx_->alias ())
@@ -541,7 +541,7 @@ be_visitor_union_branch_private_ch::visit_structure_fwd (
be_structure_fwd *node)
{
be_structure *s =
- be_structure::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_structure*> (node->full_definition ());
return this->visit_structure (s);
}
@@ -563,7 +563,7 @@ be_visitor_union_branch_private_ch::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -572,7 +572,7 @@ be_visitor_union_branch_private_ch::visit_union (be_union *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node
if (this->ctx_->alias ())
@@ -613,7 +613,7 @@ be_visitor_union_branch_private_ch::visit_union_fwd (
be_union_fwd *node)
{
be_union *u =
- be_union::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_union*> (node->full_definition ());
return this->visit_union (u);
}
diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/public_assign_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/public_assign_cs.cpp
index 994f676a660..d4cdcda11a2 100644
--- a/TAO/TAO_IDL/be/be_visitor_union_branch/public_assign_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union_branch/public_assign_cs.cpp
@@ -25,7 +25,7 @@ be_visitor_union_branch_public_assign_cs (be_visitor_context *ctx)
// destructor
be_visitor_union_branch_public_assign_cs::
-~be_visitor_union_branch_public_assign_cs (void)
+~be_visitor_union_branch_public_assign_cs ()
{
}
@@ -78,7 +78,7 @@ be_visitor_union_branch_public_assign_cs::visit_union_branch (
}
// first generate the type information
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -122,10 +122,10 @@ int
be_visitor_union_branch_public_assign_cs::visit_array (be_array *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -165,7 +165,7 @@ be_visitor_union_branch_public_assign_cs::visit_array (be_array *node)
if (bt->is_nested ())
{
- be_decl *parent = be_scope::narrow_from_scope (bt->defined_in ())->decl ();
+ be_decl *parent = dynamic_cast<be_scope*> (bt->defined_in ())->decl ();
ACE_OS::sprintf (fname, "%s::_%s", parent->full_name (),
bt->local_name ()->get_string ());
}
@@ -194,11 +194,11 @@ int
be_visitor_union_branch_public_assign_cs::visit_enum (be_enum *)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
+ dynamic_cast<be_union*> (this->ctx_->scope ());
- if (ub == 0 || bu == 0)
+ if (ub == nullptr || bu == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_public_assign_cs::"
@@ -222,10 +222,10 @@ int
be_visitor_union_branch_public_assign_cs::visit_interface (be_interface *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -319,10 +319,10 @@ be_visitor_union_branch_public_assign_cs::visit_interface_fwd (
)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -434,10 +434,10 @@ int
be_visitor_union_branch_public_assign_cs::emit_valuetype_common (be_type *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -504,10 +504,10 @@ be_visitor_union_branch_public_assign_cs::visit_predefined_type (
)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -616,10 +616,10 @@ int
be_visitor_union_branch_public_assign_cs::visit_sequence (be_sequence *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -681,11 +681,11 @@ int
be_visitor_union_branch_public_assign_cs::visit_string (be_string *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
+ dynamic_cast<be_union*> (this->ctx_->scope ());
- if (ub == 0 || bu == 0)
+ if (ub == nullptr || bu == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_public_assign_cs::"
@@ -717,10 +717,10 @@ int
be_visitor_union_branch_public_assign_cs::visit_structure (be_structure *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -791,7 +791,7 @@ be_visitor_union_branch_public_assign_cs::visit_structure_fwd (
be_structure_fwd *node)
{
be_structure *s =
- be_structure::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_structure*> (node->full_definition ());
return this->visit_structure (s);
}
@@ -814,7 +814,7 @@ be_visitor_union_branch_public_assign_cs::visit_typedef (be_typedef *node)
), -1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -822,10 +822,10 @@ int
be_visitor_union_branch_public_assign_cs::visit_union (be_union *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -888,7 +888,7 @@ be_visitor_union_branch_public_assign_cs::visit_union_fwd (
be_union_fwd *node)
{
be_union *u =
- be_union::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_union*> (node->full_definition ());
return this->visit_union (u);
}
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 7453c27a662..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
@@ -22,14 +22,14 @@ be_visitor_union_branch_public_ch::be_visitor_union_branch_public_ch (
{
}
-be_visitor_union_branch_public_ch::~be_visitor_union_branch_public_ch (void)
+be_visitor_union_branch_public_ch::~be_visitor_union_branch_public_ch ()
{
}
int
be_visitor_union_branch_public_ch::visit_union_branch (be_union_branch *node)
{
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -62,7 +62,7 @@ be_visitor_union_branch_public_ch::visit_array (be_array *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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;
@@ -144,7 +144,7 @@ be_visitor_union_branch_public_ch::visit_enum (be_enum *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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;
}
@@ -206,7 +206,7 @@ be_visitor_union_branch_public_ch::visit_interface (be_interface *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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;
}
@@ -249,7 +249,7 @@ be_visitor_union_branch_public_ch::visit_interface_fwd (be_interface_fwd *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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;
}
@@ -292,7 +292,7 @@ be_visitor_union_branch_public_ch::visit_valuebox (be_valuebox *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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;
}
@@ -335,7 +335,7 @@ be_visitor_union_branch_public_ch::visit_valuetype (be_valuetype *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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;
}
@@ -378,7 +378,7 @@ be_visitor_union_branch_public_ch::visit_valuetype_fwd (be_valuetype_fwd *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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;
}
@@ -421,11 +421,11 @@ be_visitor_union_branch_public_ch::visit_predefined_type (be_predefined_type *no
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
be_typedef *td = this->ctx_->alias ();
// Check if we are visiting this via a visit to a typedef node.
- if (td != 0)
+ if (td != nullptr)
{
bt = td;
}
@@ -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;
@@ -493,7 +493,7 @@ be_visitor_union_branch_public_ch::visit_sequence (be_sequence *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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;
@@ -611,7 +611,7 @@ be_visitor_union_branch_public_ch::visit_structure (be_structure *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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;
}
@@ -672,7 +672,7 @@ be_visitor_union_branch_public_ch::visit_structure_fwd (
be_structure_fwd *node)
{
be_structure *s =
- be_structure::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_structure*> (node->full_definition ());
return this->visit_structure (s);
}
@@ -694,7 +694,7 @@ be_visitor_union_branch_public_ch::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -703,7 +703,7 @@ be_visitor_union_branch_public_ch::visit_union (be_union *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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;
}
@@ -764,7 +764,7 @@ int
be_visitor_union_branch_public_ch::visit_union_fwd (be_union_fwd *node)
{
be_union *u =
- be_union::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_union*> (node->full_definition ());
return this->visit_union (u);
}
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 f5ff581f3e3..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
@@ -24,7 +24,7 @@ be_visitor_union_branch_public_ci::be_visitor_union_branch_public_ci (
}
// destructor
-be_visitor_union_branch_public_ci::~be_visitor_union_branch_public_ci (void)
+be_visitor_union_branch_public_ci::~be_visitor_union_branch_public_ci ()
{
}
@@ -32,7 +32,7 @@ be_visitor_union_branch_public_ci::~be_visitor_union_branch_public_ci (void)
int
be_visitor_union_branch_public_ci::visit_union_branch (be_union_branch *node)
{
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -63,10 +63,10 @@ int
be_visitor_union_branch_public_ci::visit_array (be_array *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -131,7 +131,7 @@ be_visitor_union_branch_public_ci::visit_array (be_array *node)
if (bt->is_nested ())
{
be_decl *parent =
- be_scope::narrow_from_scope (bt->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (bt->defined_in ())->decl ();
ACE_OS::sprintf (fname,
"%s::_%s",
parent->full_name (),
@@ -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
<< "}";
@@ -198,10 +198,10 @@ int
be_visitor_union_branch_public_ci::visit_enum (be_enum *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// heck if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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
<< "}";
@@ -269,10 +269,10 @@ int
be_visitor_union_branch_public_ci::visit_interface (be_interface *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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
<< "}";
@@ -359,10 +359,10 @@ int
be_visitor_union_branch_public_ci::visit_interface_fwd (be_interface_fwd *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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
<< "}";
@@ -467,10 +467,10 @@ int
be_visitor_union_branch_public_ci::emit_valuetype_common (be_type *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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
<< "}";
@@ -546,10 +546,10 @@ be_visitor_union_branch_public_ci::visit_predefined_type (
)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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
<< "}";
@@ -758,10 +758,10 @@ int
be_visitor_union_branch_public_ci::visit_sequence (be_sequence *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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
<< "}";
@@ -840,11 +840,11 @@ int
be_visitor_union_branch_public_ci::visit_string (be_string *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
+ dynamic_cast<be_union*> (this->ctx_->scope ());
- if (ub == 0 || bu == 0)
+ if (ub == nullptr || bu == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_public_ci::"
@@ -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
<< "}";
@@ -1011,10 +1011,10 @@ int
be_visitor_union_branch_public_ci::visit_structure (be_structure *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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
@@ -1147,7 +1147,7 @@ int
be_visitor_union_branch_public_ci::visit_structure_fwd (be_structure_fwd *node)
{
be_structure *s =
- be_structure::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_structure*> (node->full_definition ());
return this->visit_structure (s);
}
@@ -1170,7 +1170,7 @@ be_visitor_union_branch_public_ci::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -1178,10 +1178,10 @@ int
be_visitor_union_branch_public_ci::visit_union (be_union *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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
<< "}";
@@ -1284,7 +1284,7 @@ int
be_visitor_union_branch_public_ci::visit_union_fwd (be_union_fwd *node)
{
be_union *u =
- be_union::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_union*> (node->full_definition ());
return this->visit_union (u);
}
diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/public_constructor_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/public_constructor_cs.cpp
index d705678dc17..9e61b94757a 100644
--- a/TAO/TAO_IDL/be/be_visitor_union_branch/public_constructor_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union_branch/public_constructor_cs.cpp
@@ -25,7 +25,7 @@ be_visitor_union_branch_public_constructor_cs (be_visitor_context *ctx)
// destructor
be_visitor_union_branch_public_constructor_cs::
-~be_visitor_union_branch_public_constructor_cs (void)
+~be_visitor_union_branch_public_constructor_cs ()
{
}
@@ -35,7 +35,7 @@ be_visitor_union_branch_public_constructor_cs::visit_union_branch (
be_union_branch *node)
{
// first generate the type information
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -66,10 +66,10 @@ int
be_visitor_union_branch_public_constructor_cs::visit_array (be_array *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -109,7 +109,7 @@ be_visitor_union_branch_public_constructor_cs::visit_array (be_array *node)
if (bt->is_nested ())
{
- be_decl *parent = be_scope::narrow_from_scope (bt->defined_in ())->decl ();
+ be_decl *parent = dynamic_cast<be_scope*> (bt->defined_in ())->decl ();
ACE_OS::sprintf (fname, "%s::_%s", parent->full_name (),
bt->local_name ()->get_string ());
}
@@ -138,10 +138,10 @@ be_visitor_union_branch_public_constructor_cs::visit_predefined_type (
)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -184,10 +184,10 @@ int
be_visitor_union_branch_public_constructor_cs::visit_sequence (be_sequence *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -221,10 +221,10 @@ int
be_visitor_union_branch_public_constructor_cs::visit_structure (be_structure *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -262,7 +262,7 @@ be_visitor_union_branch_public_constructor_cs::visit_structure_fwd (
be_structure_fwd *node)
{
be_structure *s =
- be_structure::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_structure*> (node->full_definition ());
return this->visit_structure (s);
}
@@ -285,7 +285,7 @@ be_visitor_union_branch_public_constructor_cs::visit_typedef (be_typedef *node)
), -1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -293,10 +293,10 @@ int
be_visitor_union_branch_public_constructor_cs::visit_union (be_union *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -331,7 +331,7 @@ be_visitor_union_branch_public_constructor_cs::visit_union_fwd (
be_union_fwd *node)
{
be_union *u =
- be_union::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_union*> (node->full_definition ());
return this->visit_union (u);
}
diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/public_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/public_cs.cpp
index 66141aeaa36..ff30a28028a 100644
--- a/TAO/TAO_IDL/be/be_visitor_union_branch/public_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union_branch/public_cs.cpp
@@ -22,14 +22,14 @@ be_visitor_union_branch_public_cs::be_visitor_union_branch_public_cs (
{
}
-be_visitor_union_branch_public_cs::~be_visitor_union_branch_public_cs (void)
+be_visitor_union_branch_public_cs::~be_visitor_union_branch_public_cs ()
{
}
int
be_visitor_union_branch_public_cs::visit_union_branch (be_union_branch *node)
{
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -155,7 +155,7 @@ int
be_visitor_union_branch_public_cs::visit_structure_fwd (be_structure_fwd *node)
{
be_structure *s =
- be_structure::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_structure*> (node->full_definition ());
return this->visit_structure (s);
}
@@ -183,7 +183,7 @@ int
be_visitor_union_branch_public_cs::visit_union_fwd (be_union_fwd *node)
{
be_union *u =
- be_union::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_union*> (node->full_definition ());
return this->visit_union (u);
}
diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/public_reset_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/public_reset_cs.cpp
index ec3bb50f589..8f5be509a22 100644
--- a/TAO/TAO_IDL/be/be_visitor_union_branch/public_reset_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union_branch/public_reset_cs.cpp
@@ -23,7 +23,7 @@ be_visitor_union_branch_public_reset_cs (be_visitor_context *ctx)
}
be_visitor_union_branch_public_reset_cs::
-~be_visitor_union_branch_public_reset_cs (void)
+~be_visitor_union_branch_public_reset_cs ()
{
}
@@ -33,7 +33,7 @@ be_visitor_union_branch_public_reset_cs::visit_union_branch (
be_union_branch *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -109,10 +109,10 @@ int
be_visitor_union_branch_public_reset_cs::visit_array (be_array *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -123,7 +123,7 @@ be_visitor_union_branch_public_reset_cs::visit_array (be_array *node)
bt = node;
}
- if (ub == 0 || bu == 0)
+ if (ub == nullptr || bu == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_public_reset_cs::"
@@ -151,7 +151,7 @@ be_visitor_union_branch_public_reset_cs::visit_array (be_array *node)
if (bt->is_nested ())
{
- be_decl *parent = be_scope::narrow_from_scope (bt->defined_in ())->decl ();
+ be_decl *parent = dynamic_cast<be_scope*> (bt->defined_in ())->decl ();
ACE_OS::sprintf (fname, "%s::_%s", parent->full_name (),
bt->local_name ()->get_string ());
}
@@ -178,11 +178,11 @@ int
be_visitor_union_branch_public_reset_cs::visit_enum (be_enum *)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
+ dynamic_cast<be_union*> (this->ctx_->scope ());
- if (ub == 0 || bu == 0)
+ if (ub == nullptr || bu == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_public_reset_cs::"
@@ -198,11 +198,11 @@ int
be_visitor_union_branch_public_reset_cs::visit_interface (be_interface *)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
+ dynamic_cast<be_union*> (this->ctx_->scope ());
- if (ub == 0 || bu == 0)
+ if (ub == nullptr || bu == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_public_reset_cs::"
@@ -225,11 +225,11 @@ int
be_visitor_union_branch_public_reset_cs::visit_interface_fwd (be_interface_fwd *)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
+ dynamic_cast<be_union*> (this->ctx_->scope ());
- if (ub == 0 || bu == 0)
+ if (ub == nullptr || bu == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_public_reset_cs::"
@@ -253,11 +253,11 @@ be_visitor_union_branch_public_reset_cs::visit_valuebox (
be_valuebox *)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
+ dynamic_cast<be_union*> (this->ctx_->scope ());
- if (ub == 0 || bu == 0)
+ if (ub == nullptr || bu == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_public_reset_cs::"
@@ -281,11 +281,11 @@ be_visitor_union_branch_public_reset_cs::visit_valuetype (
be_valuetype *)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
+ dynamic_cast<be_union*> (this->ctx_->scope ());
- if (ub == 0 || bu == 0)
+ if (ub == nullptr || bu == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_public_reset_cs::"
@@ -309,11 +309,11 @@ be_visitor_union_branch_public_reset_cs::visit_valuetype_fwd (
be_valuetype_fwd *)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
+ dynamic_cast<be_union*> (this->ctx_->scope ());
- if (ub == 0 || bu == 0)
+ if (ub == nullptr || bu == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_public_reset_cs::"
@@ -338,11 +338,11 @@ be_visitor_union_branch_public_reset_cs::visit_predefined_type (
)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
+ dynamic_cast<be_union*> (this->ctx_->scope ());
- if (ub == 0 || bu == 0)
+ if (ub == nullptr || bu == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_public_reset_cs::"
@@ -390,11 +390,11 @@ be_visitor_union_branch_public_reset_cs::visit_sequence (
be_sequence *)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
+ dynamic_cast<be_union*> (this->ctx_->scope ());
- if (ub == 0 || bu == 0)
+ if (ub == nullptr || bu == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_public_reset_cs::"
@@ -419,11 +419,11 @@ be_visitor_union_branch_public_reset_cs::visit_string (
be_string *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
+ dynamic_cast<be_union*> (this->ctx_->scope ());
- if (ub == 0 || bu == 0)
+ if (ub == nullptr || bu == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_public_reset_cs::"
@@ -456,10 +456,10 @@ be_visitor_union_branch_public_reset_cs::visit_structure (
be_structure *node)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
- be_type *bt = 0;
+ dynamic_cast<be_union*> (this->ctx_->scope ());
+ be_type *bt = nullptr;
if (this->ctx_->alias ())
{
@@ -470,7 +470,7 @@ be_visitor_union_branch_public_reset_cs::visit_structure (
bt = node;
}
- if (ub == 0 || bu == 0)
+ if (ub == nullptr || bu == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_public_reset_cs::"
@@ -499,7 +499,7 @@ be_visitor_union_branch_public_reset_cs::visit_structure_fwd (
be_structure_fwd *node)
{
be_structure *s =
- be_structure::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_structure*> (node->full_definition ());
return this->visit_structure (s);
}
@@ -521,7 +521,7 @@ be_visitor_union_branch_public_reset_cs::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -530,11 +530,11 @@ be_visitor_union_branch_public_reset_cs::visit_union (
be_union *)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
be_union *bu =
- be_union::narrow_from_scope (this->ctx_->scope ());
+ dynamic_cast<be_union*> (this->ctx_->scope ());
- if (ub == 0 || bu == 0)
+ if (ub == nullptr || bu == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_public_reset_cs::"
@@ -558,7 +558,7 @@ be_visitor_union_branch_public_reset_cs::visit_union_fwd (
be_union_fwd *node)
{
be_union *u =
- be_union::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_union*> (node->full_definition ());
return this->visit_union (u);
}
diff --git a/TAO/TAO_IDL/be/be_visitor_union_fwd/union_fwd_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union_fwd/union_fwd_ch.cpp
index ae6aa99cb26..a85d4be6e2a 100644
--- a/TAO/TAO_IDL/be/be_visitor_union_fwd/union_fwd_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union_fwd/union_fwd_ch.cpp
@@ -18,7 +18,7 @@ be_visitor_union_fwd_ch::be_visitor_union_fwd_ch (
{
}
-be_visitor_union_fwd_ch::~be_visitor_union_fwd_ch (void)
+be_visitor_union_fwd_ch::~be_visitor_union_fwd_ch ()
{
}
@@ -32,7 +32,7 @@ be_visitor_union_fwd_ch::visit_union_fwd (be_union_fwd *node)
}
TAO_OutStream *os = this->ctx_->stream ();
- be_union *fd = be_union::narrow_from_decl (node->full_definition ());
+ be_union *fd = dynamic_cast<be_union*> (node->full_definition ());
// This will be a no-op if it has already been done for this node.
fd->gen_common_varout (os);
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 7e722cc43d7..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
@@ -23,7 +23,7 @@ be_visitor_valuebox_any_op_ch::be_visitor_valuebox_any_op_ch (
{
}
-be_visitor_valuebox_any_op_ch::~be_visitor_valuebox_any_op_ch (void)
+be_visitor_valuebox_any_op_ch::~be_visitor_valuebox_any_op_ch ()
{
}
@@ -42,12 +42,12 @@ be_visitor_valuebox_any_op_ch::visit_valuebox (be_valuebox *node)
*os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl_2;
- be_module *module = 0;
+ be_module *module = nullptr;
if (node->is_nested () &&
node->defined_in ()->scope_node_type () == AST_Decl::NT_module)
{
- module = be_module::narrow_from_scope (node->defined_in ());
+ module = dynamic_cast<be_module*> (node->defined_in ());
if (!module)
{
@@ -97,11 +97,11 @@ be_visitor_valuebox_any_op_ch::visit_valuebox (be_valuebox *node)
*os << be_global->core_versioning_end () << be_nl;
- if (module != 0)
+ if (module != nullptr)
{
*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 ce748c930f4..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
@@ -24,7 +24,7 @@ be_visitor_valuebox_any_op_cs::be_visitor_valuebox_any_op_cs (
{
}
-be_visitor_valuebox_any_op_cs::~be_visitor_valuebox_any_op_cs (void)
+be_visitor_valuebox_any_op_cs::~be_visitor_valuebox_any_op_cs ()
{
}
@@ -67,12 +67,12 @@ be_visitor_valuebox_any_op_cs::visit_valuebox (be_valuebox *node)
*os << be_global->core_versioning_end () << be_nl;
- be_module *module = 0;
+ be_module *module = nullptr;
if (node->is_nested () &&
node->defined_in ()->scope_node_type () == AST_Decl::NT_module)
{
- module = be_module::narrow_from_scope (node->defined_in ());
+ module = dynamic_cast<be_module*> (node->defined_in ());
if (!module)
{
@@ -184,11 +184,11 @@ be_visitor_valuebox_any_op_cs::visit_valuebox (be_valuebox *node)
*os << be_global->core_versioning_end () << be_nl;
- if (module != 0)
+ if (module != nullptr)
{
*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 61198c688a9..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
@@ -19,7 +19,7 @@ be_visitor_valuebox_cdr_op_ch::be_visitor_valuebox_cdr_op_ch (
{
}
-be_visitor_valuebox_cdr_op_ch::~be_visitor_valuebox_cdr_op_ch (void)
+be_visitor_valuebox_cdr_op_ch::~be_visitor_valuebox_cdr_op_ch ()
{
}
@@ -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/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/cdr_op_cs.cpp
index 96b6b5bbae1..b1dd90b58f9 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuebox/cdr_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuebox/cdr_op_cs.cpp
@@ -19,7 +19,7 @@ be_visitor_valuebox_cdr_op_cs::be_visitor_valuebox_cdr_op_cs (
{
}
-be_visitor_valuebox_cdr_op_cs::~be_visitor_valuebox_cdr_op_cs (void)
+be_visitor_valuebox_cdr_op_cs::~be_visitor_valuebox_cdr_op_cs ()
{
}
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 b2e000a6e67..fa546645e9b 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuebox/field_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuebox/field_ch.cpp
@@ -25,14 +25,14 @@ be_visitor_valuebox_field_ch::be_visitor_valuebox_field_ch (
{
}
-be_visitor_valuebox_field_ch::~be_visitor_valuebox_field_ch (void)
+be_visitor_valuebox_field_ch::~be_visitor_valuebox_field_ch ()
{
}
int
be_visitor_valuebox_field_ch::visit_field (be_field *node)
{
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -64,7 +64,7 @@ int
be_visitor_valuebox_field_ch::visit_array (be_array *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -101,7 +101,7 @@ be_visitor_valuebox_field_ch::visit_array (be_array *node)
if (bt->is_nested ())
{
be_decl *parent =
- be_scope::narrow_from_scope (bt->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (bt->defined_in ())->decl ();
ACE_OS::sprintf (fname,
"%s::_%s",
parent->full_name (),
@@ -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;
}
@@ -137,7 +137,7 @@ int
be_visitor_valuebox_field_ch::visit_enum (be_enum *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -173,7 +173,7 @@ int
be_visitor_valuebox_field_ch::visit_interface (be_interface *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -209,7 +209,7 @@ int
be_visitor_valuebox_field_ch::visit_interface_fwd (be_interface_fwd *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -259,7 +259,7 @@ int
be_visitor_valuebox_field_ch::visit_predefined_type (be_predefined_type *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -312,7 +312,7 @@ int
be_visitor_valuebox_field_ch::visit_sequence (be_sequence *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -350,7 +350,7 @@ int
be_visitor_valuebox_field_ch::visit_string (be_string *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -401,7 +401,7 @@ int
be_visitor_valuebox_field_ch::visit_structure (be_structure *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -451,7 +451,7 @@ be_visitor_valuebox_field_ch::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -459,7 +459,7 @@ int
be_visitor_valuebox_field_ch::visit_union (be_union *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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 e75c6c8f99b..31bbb25ea69 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuebox/field_ci.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuebox/field_ci.cpp
@@ -17,18 +17,18 @@ be_visitor_valuebox_field_ci::be_visitor_valuebox_field_ci (
be_visitor_context *ctx
)
: be_visitor_decl (ctx),
- vb_node_ (0)
+ vb_node_ (nullptr)
{
}
-be_visitor_valuebox_field_ci::~be_visitor_valuebox_field_ci (void)
+be_visitor_valuebox_field_ci::~be_visitor_valuebox_field_ci ()
{
}
int
be_visitor_valuebox_field_ci::visit_field (be_field *node)
{
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -42,7 +42,7 @@ be_visitor_valuebox_field_ci::visit_field (be_field *node)
// Store the valuebox in the visitor member, then replace the
// context value with the field node.
this->vb_node_ =
- be_valuebox::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_valuebox*> (this->ctx_->node ());
this->ctx_->node (node);
if (bt->accept (this) == -1)
@@ -63,7 +63,7 @@ int
be_visitor_valuebox_field_ci::visit_array (be_array *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -99,7 +99,7 @@ be_visitor_valuebox_field_ci::visit_array (be_array *node)
if (bt->is_nested ())
{
be_decl *parent =
- be_scope::narrow_from_scope (bt->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (bt->defined_in ())->decl ();
ACE_OS::sprintf (fname,
"%s::_%s",
parent->full_name (),
@@ -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
@@ -151,7 +151,7 @@ int
be_visitor_valuebox_field_ci::visit_enum (be_enum *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -188,7 +188,7 @@ int
be_visitor_valuebox_field_ci::visit_interface (be_interface *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -234,7 +234,7 @@ int
be_visitor_valuebox_field_ci::visit_interface_fwd (be_interface_fwd *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -308,7 +308,7 @@ int
be_visitor_valuebox_field_ci::visit_predefined_type (be_predefined_type *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -370,7 +370,7 @@ int
be_visitor_valuebox_field_ci::visit_sequence (be_sequence *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -407,7 +407,7 @@ int
be_visitor_valuebox_field_ci::visit_string (be_string *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -465,7 +465,7 @@ int
be_visitor_valuebox_field_ci::visit_structure (be_structure *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -513,7 +513,7 @@ be_visitor_valuebox_field_ci::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -521,7 +521,7 @@ int
be_visitor_valuebox_field_ci::visit_union (be_union *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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 7e4b1b20af6..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
@@ -17,18 +17,18 @@ be_visitor_valuebox_union_member_ci::be_visitor_valuebox_union_member_ci (
be_visitor_context *ctx
)
: be_visitor_decl (ctx),
- vb_node_ (0)
+ vb_node_ (nullptr)
{
}
-be_visitor_valuebox_union_member_ci::~be_visitor_valuebox_union_member_ci (void)
+be_visitor_valuebox_union_member_ci::~be_visitor_valuebox_union_member_ci ()
{
}
int
be_visitor_valuebox_union_member_ci::visit_union_member (be_union_branch *node)
{
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -40,7 +40,7 @@ be_visitor_valuebox_union_member_ci::visit_union_member (be_union_branch *node)
}
this->vb_node_ =
- be_valuebox::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_valuebox*> (this->ctx_->node ());
this->ctx_->node (node);
if (bt->accept (this) == -1)
@@ -61,7 +61,7 @@ int
be_visitor_valuebox_union_member_ci::visit_array (be_array *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -97,7 +97,7 @@ be_visitor_valuebox_union_member_ci::visit_array (be_array *node)
if (bt->is_nested ())
{
be_decl *parent =
- be_scope::narrow_from_scope (bt->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (bt->defined_in ())->decl ();
ACE_OS::sprintf (fname,
"%s::_%s",
parent->full_name (),
@@ -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
@@ -148,7 +148,7 @@ int
be_visitor_valuebox_union_member_ci::visit_enum (be_enum *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -185,7 +185,7 @@ int
be_visitor_valuebox_union_member_ci::visit_interface (be_interface *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -221,7 +221,7 @@ int
be_visitor_valuebox_union_member_ci::visit_interface_fwd (be_interface_fwd *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -271,7 +271,7 @@ int
be_visitor_valuebox_union_member_ci::visit_predefined_type (be_predefined_type *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -324,7 +324,7 @@ int
be_visitor_valuebox_union_member_ci::visit_sequence (be_sequence *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -361,7 +361,7 @@ int
be_visitor_valuebox_union_member_ci::visit_string (be_string *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -419,7 +419,7 @@ int
be_visitor_valuebox_union_member_ci::visit_structure (be_structure *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -467,7 +467,7 @@ be_visitor_valuebox_union_member_ci::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -475,7 +475,7 @@ int
be_visitor_valuebox_union_member_ci::visit_union (be_union *node)
{
be_decl *field = this->ctx_->node ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox.cpp
index e710cc01783..12bf1140718 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox.cpp
@@ -16,7 +16,7 @@ be_visitor_valuebox::be_visitor_valuebox (be_visitor_context *ctx)
{
}
-be_visitor_valuebox::~be_visitor_valuebox (void)
+be_visitor_valuebox::~be_visitor_valuebox ()
{
}
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 62a5ea3c573..56f8e7ee686 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ch.cpp
@@ -20,7 +20,7 @@ be_visitor_valuebox_ch::be_visitor_valuebox_ch (be_visitor_context *ctx)
{
}
-be_visitor_valuebox_ch::~be_visitor_valuebox_ch (void)
+be_visitor_valuebox_ch::~be_visitor_valuebox_ch ()
{
}
@@ -72,17 +72,17 @@ be_visitor_valuebox_ch::visit_valuebox (be_valuebox *node)
<< "_downcast ( ::CORBA::ValueBase *);" << be_nl;
// _copy_value method
- *os << "::CORBA::ValueBase * _copy_value (void);" << be_nl_2;
+ *os << "::CORBA::ValueBase * _copy_value ();" << be_nl_2;
// repository id methods
*os << "virtual const char* "
- << "_tao_obv_repository_id (void) const;"
+ << "_tao_obv_repository_id () const;"
<< be_nl_2
<< "virtual void "
<< "_tao_obv_truncatable_repo_ids (Repository_Id_List &ids) const;"
<< be_nl_2
<< "static const char* "
- << "_tao_obv_static_repository_id (void);" << be_nl_2;
+ << "_tao_obv_static_repository_id ();" << be_nl_2;
// unmarshal method
*os << "static ::CORBA::Boolean _tao_unmarshal (" << be_idt << be_idt_nl
@@ -92,11 +92,11 @@ 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;
}
- be_type *bt = be_type::narrow_from_decl (node->boxed_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->boxed_type ());
// Emit the type specific elements. The visit_* methods in this
// module do that work.
@@ -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;
@@ -268,9 +268,9 @@ be_visitor_valuebox_ch::visit_sequence (be_sequence *node)
// Retrieve the base type since we will need to do some code
// generation for it.
- be_type *bt = be_type::narrow_from_decl (node->base_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->base_type ());
- if (bt == 0)
+ if (bt == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_valuebox_ch::"
@@ -362,8 +362,8 @@ be_visitor_valuebox_ch::visit_sequence (be_sequence *node)
}
*os << "& operator[] ( ::CORBA::ULong index) const;" << be_nl_2
- << "::CORBA::ULong maximum (void) const;" << be_nl
- << "::CORBA::ULong length (void) const;" << be_nl
+ << "::CORBA::ULong maximum () const;" << be_nl
+ << "::CORBA::ULong length () const;" << be_nl
<< "void length ( ::CORBA::ULong len);" << be_nl_2;
// Member variable of underlying type;
@@ -435,7 +435,7 @@ be_visitor_valuebox_ch::visit_string (be_string *node)
// Accessor function takes no arguments and returns a const char *
*os << "const " << node->full_name ()
- << " _value (void) const;" << be_nl_2;
+ << " _value () const;" << be_nl_2;
*os << "// Modifiers" << be_nl;
@@ -507,9 +507,9 @@ be_visitor_valuebox_ch::visit_structure (be_structure *node)
// member. These functions have the same signatures as
// acessor and modifier functions for union members.
- AST_Decl *d = 0;
- AST_Field *field = 0;
- be_type *bt = 0;
+ AST_Decl *d = nullptr;
+ AST_Field *field = nullptr;
+ be_type *bt = nullptr;
be_visitor_context ctx (*this->ctx_);
for (UTL_ScopeActiveIterator si (node, UTL_Scope::IK_decls);
@@ -518,7 +518,7 @@ be_visitor_valuebox_ch::visit_structure (be_structure *node)
{
d = si.item ();
- if (d == 0 || (field = AST_Field::narrow_from_decl (d)) == 0)
+ if (d == nullptr || (field = dynamic_cast<AST_Field*> (d)) == nullptr)
{
ACE_ERROR ((LM_ERROR,
"(%N:%l) be_visitor_valuebox_ch::visit_structure -"
@@ -526,10 +526,10 @@ be_visitor_valuebox_ch::visit_structure (be_structure *node)
break;
}
- bt = be_type::narrow_from_decl (field->field_type ());
+ bt = dynamic_cast<be_type*> (field->field_type ());
// Set the node to be visited
- ctx.node (be_decl::narrow_from_decl (d));
+ ctx.node (dynamic_cast<be_decl*> (d));
// Create a visitor and use that to process the type.
be_visitor_valuebox_field_ch visitor (&ctx);
@@ -608,9 +608,9 @@ be_visitor_valuebox_ch::visit_union (be_union *node)
// Now generate the accessor and modifier functions for each union
// member.
- AST_Decl *d = 0;
- AST_Field *field = 0;
- be_type *bt = 0;
+ AST_Decl *d = nullptr;
+ AST_Field *field = nullptr;
+ be_type *bt = nullptr;
be_visitor_context ctx (*this->ctx_);
for (UTL_ScopeActiveIterator si (node, UTL_Scope::IK_decls);
@@ -619,7 +619,7 @@ be_visitor_valuebox_ch::visit_union (be_union *node)
{
d = si.item ();
- if (d == 0 || (field = AST_Field::narrow_from_decl (d)) == 0)
+ if (d == nullptr || (field = dynamic_cast<AST_Field*> (d)) == nullptr)
{
ACE_ERROR ((LM_ERROR,
"(%N:%l) be_visitor_valuebox_ch::visit_union -"
@@ -627,10 +627,10 @@ be_visitor_valuebox_ch::visit_union (be_union *node)
break;
}
- bt = be_type::narrow_from_decl (field->field_type ());
+ bt = dynamic_cast<be_type*> (field->field_type ());
// Set the node to be visited
- ctx.node (be_decl::narrow_from_decl (d));
+ ctx.node (dynamic_cast<be_decl*> (d));
// Create a visitor and use that to process the type.
be_visitor_valuebox_field_ch visitor (&ctx);
@@ -644,7 +644,7 @@ be_visitor_valuebox_ch::visit_union (be_union *node)
}
// Retrieve the disriminant type.
- bt = be_type::narrow_from_decl (node->disc_type ());
+ bt = dynamic_cast<be_type*> (node->disc_type ());
if (!bt)
{
@@ -725,7 +725,7 @@ be_visitor_valuebox_ch::emit_for_predef_enum (be_type *node,
*os << "// Accessor and modifier" << be_nl;
*os << node->full_name () << type_suffix
- << " _value (void) const;" << be_nl;
+ << " _value () const;" << be_nl;
*os << "void" << " _value (" << node->full_name () << type_suffix
<< " val);" << be_nl_2;
@@ -741,7 +741,7 @@ be_visitor_valuebox_ch::emit_for_predef_enum (be_type *node,
}
void
-be_visitor_valuebox_ch::emit_default_constructor (void)
+be_visitor_valuebox_ch::emit_default_constructor ()
{
TAO_OutStream *os = this->ctx_->stream ();
@@ -751,7 +751,7 @@ be_visitor_valuebox_ch::emit_default_constructor (void)
*os << be_nl_2 << "// Constructors" << be_nl;
// Public default constructor
- *os << vb_node->local_name () << " (void);" << be_nl;
+ *os << vb_node->local_name () << " ();" << be_nl;
}
void
@@ -771,7 +771,7 @@ be_visitor_valuebox_ch::emit_constructor_one_arg (be_decl *node,
}
void
-be_visitor_valuebox_ch::emit_copy_constructor (void)
+be_visitor_valuebox_ch::emit_copy_constructor ()
{
TAO_OutStream *os = this->ctx_->stream ();
@@ -812,11 +812,11 @@ be_visitor_valuebox_ch::emit_boxed_access (be_decl *node,
// Access to the boxed value for method signatures
*os << const_prefix << node->full_name () << type_suffix << in_ref_modifier
- << " _boxed_in (void) const;" << be_nl
+ << " _boxed_in () const;" << be_nl
<< node->full_name () << type_suffix << "&"
- << " _boxed_inout (void);" << be_nl
+ << " _boxed_inout ();" << be_nl
<< node->full_name () << type_suffix << out_ref_modifier << "&"
- << " _boxed_out (void);" << be_nl;
+ << " _boxed_out ();" << be_nl;
}
void
@@ -827,11 +827,11 @@ be_visitor_valuebox_ch::emit_accessor_modifier (be_decl *node)
*os << "// Accessors and modifier" << be_nl;
// Public accessor method (const)
- *os << "const " << node->full_name () << "& _value (void) const;"
+ *os << "const " << node->full_name () << "& _value () const;"
<< be_nl;
// Public accessor method
- *os << node->full_name () << "& _value (void);" << be_nl;
+ *os << node->full_name () << "& _value ();" << be_nl;
// Public modifier method
*os << "void" << " _value (const " << node->full_name () << "& val);"
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 37efd925b18..1e1f560c15c 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp
@@ -16,7 +16,7 @@ be_visitor_valuebox_ci::be_visitor_valuebox_ci (be_visitor_context *ctx)
{
}
-be_visitor_valuebox_ci::~be_visitor_valuebox_ci (void)
+be_visitor_valuebox_ci::~be_visitor_valuebox_ci ()
{
}
@@ -33,7 +33,7 @@ be_visitor_valuebox_ci::visit_valuebox (be_valuebox *node)
this->ctx_->node (node); // save the node
- be_type *bt = be_type::narrow_from_decl (node->boxed_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->boxed_type ());
// Emit the type specific elements. The visit_* methods in this
// module do that work.
@@ -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;
@@ -426,7 +426,7 @@ be_visitor_valuebox_ci::visit_structure (be_structure *node)
{
d = si.item ();
- if (d == 0 || (field = be_field::narrow_from_decl (d)) == 0)
+ if (d == nullptr || (field = dynamic_cast<be_field*> (d)) == nullptr)
{
ACE_ERROR ((LM_ERROR,
"(%N:%l) be_visitor_valuebox_cs::visit_structure -"
@@ -485,7 +485,7 @@ be_visitor_valuebox_ci::visit_union (be_union *node)
this->emit_accessor_modifier (node);
be_valuebox *vb_node =
- be_valuebox::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_valuebox*> (this->ctx_->node ());
if (node->size_type() == AST_Type::FIXED)
{
@@ -508,7 +508,7 @@ be_visitor_valuebox_ci::visit_union (be_union *node)
{
d = si.item ();
- if (d == 0 || (member = be_union_branch::narrow_from_decl (d)) == 0)
+ if (d == nullptr || (member = dynamic_cast<be_union_branch*> (d)) == nullptr)
{
ACE_ERROR ((LM_ERROR,
"(%N:%l) be_visitor_valuebox_ci::visit_union -"
@@ -534,8 +534,8 @@ be_visitor_valuebox_ci::visit_union (be_union *node)
// Retrieve the disriminant type.
- be_type *bt = 0;
- bt = be_type::narrow_from_decl (node->disc_type ());
+ be_type *bt = nullptr;
+ bt = dynamic_cast<be_type*> (node->disc_type ());
if (!bt)
{
@@ -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;
@@ -635,7 +635,7 @@ be_visitor_valuebox_ci::emit_for_predef_enum (be_type *node,
}
void
-be_visitor_valuebox_ci::emit_default_constructor (void)
+be_visitor_valuebox_ci::emit_default_constructor ()
{
TAO_OutStream *os = this->ctx_->stream ();
@@ -645,7 +645,7 @@ be_visitor_valuebox_ci::emit_default_constructor (void)
// 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;
}
@@ -657,11 +657,11 @@ be_visitor_valuebox_ci::emit_default_constructor_alloc (be_decl *node)
// Retrieve the node being visited by this be_visitor_valuebox_ci
be_decl * vb_node = this->ctx_->node ();
bool node_not_pod =
- be_type::narrow_from_decl (node)->size_type () == AST_Type::VARIABLE;
+ dynamic_cast<be_type*> (node)->size_type () == AST_Type::VARIABLE;
// 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
@@ -712,7 +712,7 @@ be_visitor_valuebox_ci::emit_constructor_one_arg_alloc (be_decl *node)
}
void
-be_visitor_valuebox_ci::emit_copy_constructor (void)
+be_visitor_valuebox_ci::emit_copy_constructor ()
{
TAO_OutStream *os = this->ctx_->stream ();
@@ -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 b007c1311e2..97ee366b542 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_cs.cpp
@@ -16,7 +16,7 @@ be_visitor_valuebox_cs::be_visitor_valuebox_cs (be_visitor_context *ctx)
{
}
-be_visitor_valuebox_cs::~be_visitor_valuebox_cs (void)
+be_visitor_valuebox_cs::~be_visitor_valuebox_cs ()
{
}
@@ -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;
@@ -165,7 +165,7 @@ be_visitor_valuebox_cs::visit_valuebox (be_valuebox *node)
os = tao_cg->client_stubs ();
AST_Type * at = node->boxed_type()->unaliased_type();
- be_type *bt = be_type::narrow_from_decl (at);
+ be_type *bt = dynamic_cast<be_type*> (at);
if (!bt)
{
@@ -178,9 +178,9 @@ be_visitor_valuebox_cs::visit_valuebox (be_valuebox *node)
bool is_array = false;
const char * unmarshal_arg;
- be_predefined_type *bpt = be_predefined_type::narrow_from_decl (bt);
+ be_predefined_type *bpt = dynamic_cast<be_predefined_type*> (bt);
- if (bpt != 0)
+ if (bpt != nullptr)
{
switch (bpt->pt())
{
@@ -214,7 +214,7 @@ be_visitor_valuebox_cs::visit_valuebox (be_valuebox *node)
unmarshal_arg = "vb_object->_pd_value";
}
}
- else if (be_array::narrow_from_decl (bt) != 0)
+ else if (dynamic_cast<be_array*> (bt) != nullptr)
{
is_array = true;
unmarshal_arg = "temp";
@@ -270,8 +270,8 @@ be_visitor_valuebox_cs::visit_valuebox (be_valuebox *node)
*os << "return (strm >> ";
- be_string *str = be_string::narrow_from_decl (bt);
- if (str != 0 &&
+ be_string *str = dynamic_cast<be_string*> (bt);
+ if (str != nullptr &&
str->max_size ()->ev ()->u.ulval != 0)
{
if (str->width () == (long) sizeof (char))
@@ -448,9 +448,9 @@ be_visitor_valuebox_cs::visit_sequence (be_sequence *node)
// Retrieve the base type since we will need to do some code
// generation for it.
- be_type *bt = be_type::narrow_from_decl (node->base_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->base_type ());
- if (bt == 0)
+ if (bt == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_valuebox_cs::"
@@ -721,7 +721,7 @@ be_visitor_valuebox_cs::visit_union (be_union *)
}
void
-be_visitor_valuebox_cs::emit_destructor (void)
+be_visitor_valuebox_cs::emit_destructor ()
{
TAO_OutStream & os = *this->ctx_->stream ();
@@ -729,7 +729,7 @@ be_visitor_valuebox_cs::emit_destructor (void)
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 7eca7e52a20..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
@@ -23,7 +23,7 @@ be_visitor_valuetype_any_op_ch::be_visitor_valuetype_any_op_ch (
{
}
-be_visitor_valuetype_any_op_ch::~be_visitor_valuetype_any_op_ch (void)
+be_visitor_valuetype_any_op_ch::~be_visitor_valuetype_any_op_ch ()
{
}
@@ -42,12 +42,12 @@ be_visitor_valuetype_any_op_ch::visit_valuetype (be_valuetype *node)
*os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl_2;
- be_module *module = 0;
+ be_module *module = nullptr;
if (node->is_nested () &&
node->defined_in ()->scope_node_type () == AST_Decl::NT_module)
{
- module = be_module::narrow_from_scope (node->defined_in ());
+ module = dynamic_cast<be_module*> (node->defined_in ());
if (!module)
{
@@ -97,12 +97,12 @@ be_visitor_valuetype_any_op_ch::visit_valuetype (be_valuetype *node)
*os << be_global->core_versioning_end () << be_nl;
- if (module != 0)
+ if (module != nullptr)
{
*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 dfb80cfc402..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
@@ -23,7 +23,7 @@ be_visitor_valuetype_any_op_cs::be_visitor_valuetype_any_op_cs (
{
}
-be_visitor_valuetype_any_op_cs::~be_visitor_valuetype_any_op_cs (void)
+be_visitor_valuetype_any_op_cs::~be_visitor_valuetype_any_op_cs ()
{
}
@@ -66,12 +66,12 @@ be_visitor_valuetype_any_op_cs::visit_valuetype (be_valuetype *node)
*os << be_global->core_versioning_end () << be_nl;
- be_module *module = 0;
+ be_module *module = nullptr;
if (node->is_nested () &&
node->defined_in ()->scope_node_type () == AST_Decl::NT_module)
{
- module = be_module::narrow_from_scope (node->defined_in ());
+ module = dynamic_cast<be_module*> (node->defined_in ());
if (!module)
{
@@ -202,12 +202,12 @@ be_visitor_valuetype_any_op_cs::visit_valuetype (be_valuetype *node)
*os << be_global->core_versioning_end () << be_nl;
- if (module != 0)
+ if (module != nullptr)
{
*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 a6b3d354ecf..3047404a425 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/arglist.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/arglist.cpp
@@ -25,7 +25,7 @@ be_visitor_obv_operation_arglist::be_visitor_obv_operation_arglist (
{
}
-be_visitor_obv_operation_arglist::~be_visitor_obv_operation_arglist (void)
+be_visitor_obv_operation_arglist::~be_visitor_obv_operation_arglist ()
{
}
@@ -33,15 +33,15 @@ bool
be_visitor_obv_operation_arglist::is_amh_exception_holder (be_operation *node)
{
UTL_Scope *scope = node->defined_in ();
- be_interface *iface = be_interface::narrow_from_scope (scope);
+ be_interface *iface = dynamic_cast<be_interface*> (scope);
- if (iface != 0)
+ if (iface != nullptr)
{
if (ACE_OS::strncmp (iface->local_name (), "AMH_", 4) == 0)
{
const char *last_E = ACE_OS::strrchr (iface->full_name (), 'E');
- if (last_E != 0
+ if (last_E != nullptr
&& ACE_OS::strcmp (last_E, "ExceptionHolder") == 0)
{
return true;
@@ -79,7 +79,7 @@ be_visitor_obv_operation_arglist::visit_operation (be_operation *node)
}
else
{
- *os << "void)";
+ *os << ")";
}
be_visitor_context ctx = *this->ctx_;
@@ -121,16 +121,16 @@ be_visitor_obv_operation_arglist::visit_argument (be_argument *node)
// inside the scope of the interface node. In such cases, we would like to
// generate the appropriate relative scoped names.
be_operation *op =
- be_operation::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_operation*> (this->ctx_->node ());
// Sometimes the operation is stored in the context scope instead.
- if (op == 0)
+ if (op == nullptr)
{
op =
- be_operation::narrow_from_scope (this->ctx_->scope ());
+ dynamic_cast<be_operation*> (this->ctx_->scope ());
}
- if (op == 0)
+ if (op == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_arglist::"
@@ -144,8 +144,8 @@ be_visitor_obv_operation_arglist::visit_argument (be_argument *node)
// information from the context.
// %! use AST_Interface
be_interface *intf = this->ctx_->attribute ()
- ? be_interface::narrow_from_scope (this->ctx_->attribute ()->defined_in ())
- : be_interface::narrow_from_scope (op->defined_in ());
+ ? dynamic_cast<be_interface*> (this->ctx_->attribute ()->defined_in ())
+ : dynamic_cast<be_interface*> (op->defined_in ());
if (!intf)
{
@@ -160,7 +160,7 @@ be_visitor_obv_operation_arglist::visit_argument (be_argument *node)
ctx.node (node); // save the argument node
// Retrieve the type.
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
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 51920f0783d..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
@@ -19,7 +19,7 @@ be_visitor_valuetype_cdr_op_ch::be_visitor_valuetype_cdr_op_ch (
{
}
-be_visitor_valuetype_cdr_op_ch::~be_visitor_valuetype_cdr_op_ch (void)
+be_visitor_valuetype_cdr_op_ch::~be_visitor_valuetype_cdr_op_ch ()
{
}
@@ -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/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_cs.cpp
index 4c2213e6315..2e5ba73463d 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_cs.cpp
@@ -19,7 +19,7 @@ be_visitor_valuetype_cdr_op_cs::be_visitor_valuetype_cdr_op_cs (
{
}
-be_visitor_valuetype_cdr_op_cs::~be_visitor_valuetype_cdr_op_cs (void)
+be_visitor_valuetype_cdr_op_cs::~be_visitor_valuetype_cdr_op_cs ()
{
}
@@ -127,9 +127,9 @@ be_visitor_valuetype_cdr_op_cs::visit_eventtype (be_eventtype *node)
int
be_visitor_valuetype_cdr_op_cs::visit_field (be_field *node)
{
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
- if (bt == 0)
+ if (bt == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_field_cdr_op_ci::"
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/field_cdr_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/field_cdr_ch.cpp
index fd41d88450a..4907f67849a 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/field_cdr_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/field_cdr_ch.cpp
@@ -24,14 +24,14 @@ be_visitor_valuetype_field_cdr_ch::be_visitor_valuetype_field_cdr_ch (
{
}
-be_visitor_valuetype_field_cdr_ch::~be_visitor_valuetype_field_cdr_ch (void)
+be_visitor_valuetype_field_cdr_ch::~be_visitor_valuetype_field_cdr_ch ()
{
}
int
be_visitor_valuetype_field_cdr_ch::visit_field (be_field *node)
{
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -175,7 +175,7 @@ be_visitor_valuetype_field_cdr_ch::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/field_cdr_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/field_cdr_cs.cpp
index bfdfe589c3d..53547d82e7d 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/field_cdr_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/field_cdr_cs.cpp
@@ -24,14 +24,14 @@ be_visitor_valuetype_field_cdr_cs::be_visitor_valuetype_field_cdr_cs (
{
}
-be_visitor_valuetype_field_cdr_cs::~be_visitor_valuetype_field_cdr_cs (void)
+be_visitor_valuetype_field_cdr_cs::~be_visitor_valuetype_field_cdr_cs ()
{
}
int
be_visitor_valuetype_field_cdr_cs::visit_field (be_field *node)
{
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -63,9 +63,9 @@ be_visitor_valuetype_field_cdr_cs::visit_array (be_array *node)
// Retrieve the field node.
be_field *f =
- be_field::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_field*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_valuetype_field_cdr_cs::"
@@ -92,7 +92,7 @@ be_visitor_valuetype_field_cdr_cs::visit_array (be_array *node)
if (node->is_nested ())
{
be_decl *parent =
- be_scope::narrow_from_scope (node->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (node->defined_in ())->decl ();
ACE_OS::sprintf (fname,
"%s::_%s",
parent->full_name (),
@@ -168,9 +168,9 @@ be_visitor_valuetype_field_cdr_cs::visit_enum (be_enum *node)
// Retrieve the field node.
be_field *f =
- be_field::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_field*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_valuetype_field_cdr_cs::"
@@ -230,9 +230,9 @@ be_visitor_valuetype_field_cdr_cs::visit_interface (be_interface *node)
// Retrieve the field node.
be_field *f =
- be_field::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_field*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_valuetype_field_cdr_cs::"
@@ -280,9 +280,9 @@ be_visitor_valuetype_field_cdr_cs::visit_interface_fwd (be_interface_fwd *node)
// Retrieve the field node.
be_field *f =
- be_field::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_field*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_valuetype_field_cdr_cs::"
@@ -336,9 +336,9 @@ be_visitor_valuetype_field_cdr_cs::valuetype_common (be_type *)
// Retrieve the field node.
be_field *f =
- be_field::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_field*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_valuetype_field_cdr_cs::"
@@ -388,9 +388,9 @@ be_visitor_valuetype_field_cdr_cs::visit_valuetype_fwd (be_valuetype_fwd *)
// Retrieve the field node.
be_field *f =
- be_field::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_field*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_valuetype_field_cdr_cs::"
@@ -458,9 +458,9 @@ be_visitor_valuetype_field_cdr_cs::visit_predefined_type (be_predefined_type *no
// Retrieve the field node.
be_field *f =
- be_field::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_field*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_valuetype_field_cdr_cs::"
@@ -563,9 +563,9 @@ be_visitor_valuetype_field_cdr_cs::visit_sequence (be_sequence *node)
// Retrieve the field node.
be_field *f =
- be_field::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_field*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_valuetype_field_cdr_cs::"
@@ -628,9 +628,9 @@ be_visitor_valuetype_field_cdr_cs::visit_string (be_string *str)
// Retrieve the field node.
be_field *f =
- be_field::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_field*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_valuetype_field_cdr_cs::"
@@ -644,7 +644,7 @@ be_visitor_valuetype_field_cdr_cs::visit_string (be_string *str)
switch (this->ctx_->sub_state ())
{
case TAO_CodeGen::TAO_CDR_INPUT:
- if (str != 0 && str->max_size ()->ev ()->u.ulval != 0)
+ if (str != nullptr && str->max_size ()->ev ()->u.ulval != 0)
{
if (str->width () == (long) sizeof (char))
{
@@ -666,7 +666,7 @@ be_visitor_valuetype_field_cdr_cs::visit_string (be_string *str)
}
break;
case TAO_CodeGen::TAO_CDR_OUTPUT:
- if (str != 0 && str->max_size ()->ev ()->u.ulval != 0)
+ if (str != nullptr && str->max_size ()->ev ()->u.ulval != 0)
{
if (str->width () == (long) sizeof (char))
{
@@ -710,9 +710,9 @@ be_visitor_valuetype_field_cdr_cs::visit_structure (
// Retrieve the field node.
be_field *f =
- be_field::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_field*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_valuetype_field_cdr_cs::"
@@ -782,7 +782,7 @@ be_visitor_valuetype_field_cdr_cs::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -793,9 +793,9 @@ be_visitor_valuetype_field_cdr_cs::visit_union (be_union *node)
// Retrieve the field node.
be_field *f =
- be_field::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_field*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_valuetype_field_cdr_cs::"
@@ -869,7 +869,7 @@ be_visitor_valuetype_field_cdr_decl::be_visitor_valuetype_field_cdr_decl (
int
be_visitor_valuetype_field_cdr_decl::visit_field (be_field *node)
{
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -902,9 +902,9 @@ be_visitor_valuetype_field_cdr_decl::visit_array (be_array *node)
// Retrieve the field node.
be_field *f =
- be_field::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_field*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_valuetype_field_cdr_decl::"
@@ -915,7 +915,7 @@ be_visitor_valuetype_field_cdr_decl::visit_array (be_array *node)
// Retrieve the valuetype scope in which the code is generated.
be_decl *sc = this->ctx_->scope ()->decl ();
- be_valuetype *vt = be_valuetype::narrow_from_decl (sc);
+ be_valuetype *vt = dynamic_cast<be_valuetype*> (sc);
if (!vt)
{
@@ -944,7 +944,7 @@ be_visitor_valuetype_field_cdr_decl::visit_array (be_array *node)
if (node->is_nested ())
{
be_decl *parent =
- be_scope::narrow_from_scope (node->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (node->defined_in ())->decl ();
ACE_OS::sprintf (fname,
"%s::_%s",
parent->full_name (),
@@ -1006,6 +1006,6 @@ be_visitor_valuetype_field_cdr_decl::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
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 443537afbc7..772ff73a4b4 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/field_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/field_ch.cpp
@@ -22,14 +22,14 @@ be_visitor_valuetype_field_ch::be_visitor_valuetype_field_ch (
setenclosings ("", ";");
}
-be_visitor_valuetype_field_ch::~be_visitor_valuetype_field_ch (void)
+be_visitor_valuetype_field_ch::~be_visitor_valuetype_field_ch ()
{
}
int
be_visitor_valuetype_field_ch::visit_field (be_field *node)
{
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -63,7 +63,7 @@ be_visitor_valuetype_field_ch::visit_array (be_array *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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;
@@ -146,7 +146,7 @@ be_visitor_valuetype_field_ch::visit_enum (be_enum *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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;
}
@@ -205,7 +205,7 @@ be_visitor_valuetype_field_ch::visit_interface (be_interface *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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;
}
@@ -248,7 +248,7 @@ be_visitor_valuetype_field_ch::visit_interface_fwd (be_interface_fwd *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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;
}
@@ -291,7 +291,7 @@ be_visitor_valuetype_field_ch::visit_valuebox (be_valuebox *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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;
}
@@ -334,7 +334,7 @@ be_visitor_valuetype_field_ch::visit_valuetype (be_valuetype *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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;
}
@@ -383,7 +383,7 @@ be_visitor_valuetype_field_ch::visit_valuetype_fwd (be_valuetype_fwd *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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;
}
@@ -432,7 +432,7 @@ be_visitor_valuetype_field_ch::visit_predefined_type (be_predefined_type *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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;
@@ -506,7 +506,7 @@ be_visitor_valuetype_field_ch::visit_sequence (be_sequence *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -538,7 +538,7 @@ be_visitor_valuetype_field_ch::visit_sequence (be_sequence *node)
&& this->ctx_->state () != TAO_CodeGen::TAO_VALUETYPE_OBV_CH)
{
be_field *member_node =
- be_field::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_field*> (this->ctx_->node ());
node->field_node (member_node);
be_visitor_context ctx (*this->ctx_);
@@ -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;
@@ -647,7 +647,7 @@ be_visitor_valuetype_field_ch::visit_structure (be_structure *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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;
}
@@ -723,7 +723,7 @@ be_visitor_valuetype_field_ch::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -732,7 +732,7 @@ be_visitor_valuetype_field_ch::visit_union (be_union *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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;
}
@@ -800,13 +800,13 @@ be_visitor_valuetype_field_ch::setenclosings (const char *pre,
}
const char*
-be_visitor_valuetype_field_ch::pre_op (void)
+be_visitor_valuetype_field_ch::pre_op ()
{
return pre_op_;
}
const char*
-be_visitor_valuetype_field_ch::post_op (void)
+be_visitor_valuetype_field_ch::post_op ()
{
return post_op_;
}
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 d4de857f18b..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,19 +17,19 @@ 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 ("");
}
-be_visitor_valuetype_field_ci::~be_visitor_valuetype_field_ci (void)
+be_visitor_valuetype_field_ci::~be_visitor_valuetype_field_ci ()
{
}
int
be_visitor_valuetype_field_ci::visit_field (be_field *node)
{
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -61,8 +61,8 @@ be_visitor_valuetype_field_ci::visit_array (be_array *node)
{
be_decl *ub = this->ctx_->node ();
be_valuetype *bu =
- be_valuetype::narrow_from_decl (this->ctx_->scope ()->decl ());
- be_type *bt = 0;
+ dynamic_cast<be_valuetype*> (this->ctx_->scope ()->decl ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -108,8 +108,8 @@ be_visitor_valuetype_field_ci::visit_structure (be_structure *node)
{
be_decl *ub = this->ctx_->node ();
be_valuetype *bu =
- be_valuetype::narrow_from_decl (this->ctx_->scope ()->decl ());
- be_type *bt = 0;
+ dynamic_cast<be_valuetype*> (this->ctx_->scope ()->decl ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -155,8 +155,8 @@ be_visitor_valuetype_field_ci::visit_union (be_union *node)
{
be_decl *ub = this->ctx_->node ();
be_valuetype *bu =
- be_valuetype::narrow_from_decl (this->ctx_->scope ()->decl ());
- be_type *bt = 0;
+ dynamic_cast<be_valuetype*> (this->ctx_->scope ()->decl ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
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 1630607224e..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,19 +16,19 @@
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 ("");
}
-be_visitor_valuetype_field_cs::~be_visitor_valuetype_field_cs (void)
+be_visitor_valuetype_field_cs::~be_visitor_valuetype_field_cs ()
{
}
int
be_visitor_valuetype_field_cs::visit_field (be_field *node)
{
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -60,8 +60,8 @@ be_visitor_valuetype_field_cs::visit_array (be_array *node)
{
be_decl *ub = this->ctx_->node ();
be_valuetype *bu =
- be_valuetype::narrow_from_decl (this->ctx_->scope ()->decl ());
- be_type *bt = 0;
+ dynamic_cast<be_valuetype*> (this->ctx_->scope ()->decl ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -117,7 +117,7 @@ be_visitor_valuetype_field_cs::visit_array (be_array *node)
if (bt->is_nested ())
{
be_decl *parent =
- be_scope::narrow_from_scope (bt->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (bt->defined_in ())->decl ();
ACE_OS::sprintf (fname,
"%s::_%s",
parent->full_name (),
@@ -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 ()
@@ -190,8 +190,8 @@ be_visitor_valuetype_field_cs::visit_enum (be_enum *node)
{
be_decl *ub = this->ctx_->node ();
be_valuetype *bu =
- be_valuetype::narrow_from_decl (this->ctx_->scope ()->decl ());
- be_type *bt = 0;
+ dynamic_cast<be_valuetype*> (this->ctx_->scope ()->decl ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -259,8 +259,8 @@ be_visitor_valuetype_field_cs::visit_interface (be_interface *node)
{
be_decl *ub = this->ctx_->node ();
be_valuetype *bu =
- be_valuetype::narrow_from_decl (this->ctx_->scope ()->decl ());
- be_type *bt = 0;
+ dynamic_cast<be_valuetype*> (this->ctx_->scope ()->decl ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -328,8 +328,8 @@ be_visitor_valuetype_field_cs::visit_interface_fwd (be_interface_fwd *node)
{
be_decl *ub = this->ctx_->node ();
be_valuetype *bu =
- be_valuetype::narrow_from_decl (this->ctx_->scope ()->decl ());
- be_type *bt = 0;
+ dynamic_cast<be_valuetype*> (this->ctx_->scope ()->decl ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -402,8 +402,8 @@ be_visitor_valuetype_field_cs::valuetype_common (be_type *node)
{
be_decl *ub = this->ctx_->node ();
be_valuetype *bu =
- be_valuetype::narrow_from_decl (this->ctx_->scope ()->decl ());
- be_type *bt = 0;
+ dynamic_cast<be_valuetype*> (this->ctx_->scope ()->decl ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -483,8 +483,8 @@ be_visitor_valuetype_field_cs::visit_valuetype_fwd (be_valuetype_fwd *node)
{
be_decl *ub = this->ctx_->node ();
be_valuetype *bu =
- be_valuetype::narrow_from_decl (this->ctx_->scope ()->decl ());
- be_type *bt = 0;
+ dynamic_cast<be_valuetype*> (this->ctx_->scope ()->decl ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -559,8 +559,8 @@ be_visitor_valuetype_field_cs::visit_predefined_type (be_predefined_type *node)
{
be_decl *ub = this->ctx_->node ();
be_valuetype *bu =
- be_valuetype::narrow_from_decl (this->ctx_->scope ()->decl ());
- be_type *bt = 0;
+ dynamic_cast<be_valuetype*> (this->ctx_->scope ()->decl ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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 ()
@@ -717,8 +717,8 @@ be_visitor_valuetype_field_cs::visit_sequence (be_sequence *node)
{
be_decl *ub = this->ctx_->node ();
be_valuetype *bu =
- be_valuetype::narrow_from_decl (this->ctx_->scope ()->decl ());
- be_type *bt = 0;
+ dynamic_cast<be_valuetype*> (this->ctx_->scope ()->decl ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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 ()
@@ -815,7 +815,7 @@ be_visitor_valuetype_field_cs::visit_string (be_string *node)
{
be_decl *ub = this->ctx_->node ();
be_valuetype *bu =
- be_valuetype::narrow_from_decl (this->ctx_->scope ()->decl ());
+ dynamic_cast<be_valuetype*> (this->ctx_->scope ()->decl ());
if (!ub || !bu)
{
@@ -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 ()
@@ -958,8 +958,8 @@ be_visitor_valuetype_field_cs::visit_structure (be_structure *node)
{
be_decl *ub = this->ctx_->node ();
be_valuetype *bu =
- be_valuetype::narrow_from_decl (this->ctx_->scope ()->decl ());
- be_type *bt = 0;
+ dynamic_cast<be_valuetype*> (this->ctx_->scope ()->decl ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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 ()
@@ -1066,7 +1066,7 @@ be_visitor_valuetype_field_cs::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -1075,8 +1075,8 @@ be_visitor_valuetype_field_cs::visit_union (be_union *node)
{
be_decl *ub = this->ctx_->node ();
be_valuetype *bu =
- be_valuetype::narrow_from_decl (this->ctx_->scope ()->decl ());
- be_type *bt = 0;
+ dynamic_cast<be_valuetype*> (this->ctx_->scope ()->decl ());
+ be_type *bt = nullptr;
// Check if we are visiting this node via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -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_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/marshal_ch.cpp
index 55750694cf7..c006b6c6384 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/marshal_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/marshal_ch.cpp
@@ -23,7 +23,7 @@ be_visitor_valuetype_marshal_ch::be_visitor_valuetype_marshal_ch (
{
}
-be_visitor_valuetype_marshal_ch::~be_visitor_valuetype_marshal_ch (void)
+be_visitor_valuetype_marshal_ch::~be_visitor_valuetype_marshal_ch ()
{
}
@@ -47,7 +47,7 @@ be_visitor_valuetype_marshal_ch::visit_valuetype (be_valuetype *node)
}
- be_field *field = be_field::narrow_from_decl (d);
+ be_field *field = dynamic_cast<be_field*> (d);
if (field)
{
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 9ada107afd1..201b7a51ac1 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/marshal_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/marshal_cs.cpp
@@ -19,7 +19,7 @@ be_visitor_valuetype_marshal_cs::be_visitor_valuetype_marshal_cs (
{
}
-be_visitor_valuetype_marshal_cs::~be_visitor_valuetype_marshal_cs (void)
+be_visitor_valuetype_marshal_cs::~be_visitor_valuetype_marshal_cs ()
{
}
@@ -42,7 +42,7 @@ be_visitor_valuetype_marshal_cs::visit_valuetype (be_valuetype *node)
// If the valuetype has no fields, and no stateful inherit,
// the stream arg is unused.
- if (inh != 0 || node->data_members_count () > 0)
+ if (inh != nullptr || node->data_members_count () > 0)
{
*os << "strm";
}
@@ -50,7 +50,7 @@ be_visitor_valuetype_marshal_cs::visit_valuetype (be_valuetype *node)
*os << ", TAO_ChunkInfo&";
// If the valuetype has no fields, and no stateful inherit,
// the chunking helper arg is unused.
- if (inh != 0 || node->data_members_count () > 0)
+ if (inh != nullptr || node->data_members_count () > 0)
{
*os << "ci";
}
@@ -137,7 +137,7 @@ be_visitor_valuetype_marshal_cs::visit_valuetype (be_valuetype *node)
// If the valuetype has no fields, and no stateful inherit,
// the stream arg is unused.
- if (inh != 0 || node->data_members_count () > 0)
+ if (inh != nullptr || node->data_members_count () > 0)
{
*os << "strm";
}
@@ -145,7 +145,7 @@ be_visitor_valuetype_marshal_cs::visit_valuetype (be_valuetype *node)
*os << ", TAO_ChunkInfo&";
// If the valuetype has no fields, and no stateful inherit,
// the chunking helper arg is unused.
- if (inh != 0 || node->data_members_count () > 0)
+ if (inh != nullptr || node->data_members_count () > 0)
{
*os << "ci";
}
@@ -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;
@@ -240,7 +240,7 @@ be_visitor_valuetype_marshal_cs::class_name (be_valuetype *node,
if (node->opt_accessor ())
{
be_decl *scope =
- be_scope::narrow_from_scope (node->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (node->defined_in ())->decl ();
*os << scope->name () << "::"
<< node->local_name ();
@@ -277,11 +277,11 @@ be_visitor_valuetype_marshal_cs::gen_fields (be_valuetype *node,
// (JP) 2010-10-21
// be_attribute now inherits from be_field, so we need this check.
- be_attribute *attr = be_attribute::narrow_from_decl (d);
+ be_attribute *attr = dynamic_cast<be_attribute*> (d);
- be_field *field = be_field::narrow_from_decl (d);
+ be_field *field = dynamic_cast<be_field*> (d);
- if (field != 0 && attr == 0)
+ if (field != nullptr && attr == nullptr)
{
if (n_processed > 0)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/obv_module.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/obv_module.cpp
index c37e064e80e..584916719f8 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/obv_module.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/obv_module.cpp
@@ -22,7 +22,7 @@ be_visitor_obv_module::be_visitor_obv_module (be_visitor_context *ctx)
{
}
-be_visitor_obv_module::~be_visitor_obv_module (void)
+be_visitor_obv_module::~be_visitor_obv_module ()
{
}
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype.cpp
index 473d87baf7c..89ec6a82ac8 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype.cpp
@@ -16,7 +16,7 @@ be_visitor_valuetype::be_visitor_valuetype (be_visitor_context *ctx)
{
}
-be_visitor_valuetype::~be_visitor_valuetype (void)
+be_visitor_valuetype::~be_visitor_valuetype ()
{
}
@@ -39,7 +39,7 @@ be_visitor_valuetype::visit_valuetype_scope (be_valuetype *node)
-1);
}
- be_decl *bd = be_decl::narrow_from_decl (d);
+ be_decl *bd = dynamic_cast<be_decl*> (d);
// Set the scope node as "node" in which the code is being
// generated so that elements in the node's scope can use it
// for code generation.
@@ -48,9 +48,9 @@ be_visitor_valuetype::visit_valuetype_scope (be_valuetype *node)
this->ctx_->node (bd);
this->elem_number_++;
- AST_Field *field = AST_Field::narrow_from_decl (d);
+ AST_Field *field = dynamic_cast<AST_Field*> (d);
- if (field != 0 && field->visibility () == AST_Field::vis_PRIVATE)
+ if (field != nullptr && field->visibility () == AST_Field::vis_PRIVATE)
{
this->begin_private ();
}
@@ -59,7 +59,7 @@ be_visitor_valuetype::visit_valuetype_scope (be_valuetype *node)
this->begin_public ();
}
- if (bd == 0 || bd->accept (this) == -1)
+ if (bd == nullptr || bd->accept (this) == -1)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_scope::visit_scope - "
@@ -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 ());
@@ -121,7 +121,7 @@ be_visitor_valuetype::visit_attribute (be_attribute *node)
Identifier id ("void");
UTL_ScopedName sn (&id,
- 0);
+ nullptr);
be_predefined_type rt (AST_PredefinedType::PT_void,
&sn);
@@ -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);
@@ -681,10 +681,10 @@ be_visitor_valuetype::gen_pd (be_valuetype *node)
-1);
}
- be_field *field = be_field::narrow_from_decl (d);
- be_attribute *attr = be_attribute::narrow_from_decl (d);
+ be_field *field = dynamic_cast<be_field*> (d);
+ be_attribute *attr = dynamic_cast<be_attribute*> (d);
- if (field == 0 || attr != 0)
+ if (field == nullptr || attr != nullptr)
{
continue;
}
@@ -719,8 +719,8 @@ be_visitor_valuetype::gen_field_pd (be_field *node)
TAO_OutStream *os = this->ctx_->stream ();
// First generate the type information.
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
- be_valuetype *vt = be_valuetype::narrow_from_scope (node->defined_in ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
+ be_valuetype *vt = dynamic_cast<be_valuetype*> (node->defined_in ());
if (!bt || !vt)
{
@@ -764,10 +764,10 @@ be_visitor_valuetype::gen_obv_init_constructor_args (be_valuetype *node,
AST_Type *parent = node->inherits_concrete ();
// Generate for inherited members first.
- if (parent != 0)
+ if (parent != nullptr)
{
be_valuetype *be_parent =
- be_valuetype::narrow_from_decl (parent);
+ dynamic_cast<be_valuetype*> (parent);
this->gen_obv_init_constructor_args (be_parent, index);
}
@@ -780,11 +780,11 @@ be_visitor_valuetype::gen_obv_init_constructor_args (be_valuetype *node,
{
// be_attribute inherits from be_field
// so we have to also screen out attributes
- be_field *f = be_field::narrow_from_decl (si.item ());
+ be_field *f = dynamic_cast<be_field*> (si.item ());
be_attribute *attr =
- be_attribute::narrow_from_decl (si.item ());
+ dynamic_cast<be_attribute*> (si.item ());
- if (f == 0 || attr != 0)
+ if (f == nullptr || attr != nullptr)
{
continue;
}
@@ -794,8 +794,8 @@ be_visitor_valuetype::gen_obv_init_constructor_args (be_valuetype *node,
ACE_CString arg_name ("_tao_init_");
arg_name += f->local_name ()->get_string ();
Identifier id (arg_name.c_str ());
- UTL_ScopedName sn (&id, 0);
- be_type *ft = be_type::narrow_from_decl (f->field_type ());
+ UTL_ScopedName sn (&id, nullptr);
+ be_type *ft = dynamic_cast<be_type*> (f->field_type ());
bool seen = ft->seen_in_operation ();
// This sets ft->seen_in_operation (true), so we have to
@@ -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 ();"
@@ -900,9 +900,9 @@ be_visitor_valuetype::obv_need_ref_counter (be_valuetype* node)
for (int i = 0; i < node->n_inherits (); ++i)
{
be_valuetype *vt =
- be_valuetype::narrow_from_decl (node->inherits ()[i]);
+ dynamic_cast<be_valuetype*> (node->inherits ()[i]);
- if (vt != 0)
+ if (vt != nullptr)
{
if (be_visitor_valuetype::obv_have_ref_counter (vt))
{
@@ -934,7 +934,7 @@ be_visitor_valuetype::obv_have_ref_counter (be_valuetype* node)
{
// Just try to find a VT with concrete factory in inheritance tree.
- if (node == 0)
+ if (node == nullptr)
{
return false;
}
@@ -947,9 +947,9 @@ be_visitor_valuetype::obv_have_ref_counter (be_valuetype* node)
// Now go thru our base VTs.
for (int i = 0; i < node->n_inherits (); ++i)
{
- be_valuetype *vt = be_valuetype::narrow_from_decl (node->inherits ()[i]);
+ be_valuetype *vt = dynamic_cast<be_valuetype*> (node->inherits ()[i]);
- if (vt != 0)
+ if (vt != nullptr)
{
if (be_visitor_valuetype::obv_have_ref_counter (vt))
{
@@ -969,7 +969,7 @@ be_visitor_valuetype::is_amh_exception_holder (be_valuetype *node)
const char *last_E =
ACE_OS::strrchr (node->full_name (), 'E');
- if (last_E != 0
+ if (last_E != nullptr
&& ACE_OS::strcmp (last_E, "ExceptionHolder") == 0)
{
return true;
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 2528d6619ec..08e9c233fbc 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp
@@ -22,7 +22,7 @@ be_visitor_valuetype_ch::be_visitor_valuetype_ch (be_visitor_context *ctx)
{
}
-be_visitor_valuetype_ch::~be_visitor_valuetype_ch (void)
+be_visitor_valuetype_ch::~be_visitor_valuetype_ch ()
{
}
@@ -67,7 +67,7 @@ be_visitor_valuetype_ch::visit_valuetype (be_valuetype *node)
*os << be_idt_nl << ": " << be_idt;
long i; // loop index
- be_valuetype *inherited = 0;
+ be_valuetype *inherited = nullptr;
long n_inherits = node->n_inherits ();
int inherits_eventtype = 0;
@@ -76,7 +76,7 @@ be_visitor_valuetype_ch::visit_valuetype (be_valuetype *node)
for (i = 0; i < n_inherits; ++i)
{
inherited =
- be_valuetype::narrow_from_decl (node->inherits ()[i]);
+ dynamic_cast<be_valuetype*> (node->inherits ()[i]);
if (inherited->node_type () == AST_Decl::NT_eventtype)
{
@@ -88,13 +88,13 @@ be_visitor_valuetype_ch::visit_valuetype (be_valuetype *node)
*os << "," << be_nl;
}
- be_decl *scope = 0;
+ be_decl *scope = nullptr;
if (inherited->is_nested ())
{
// Inherited node is used in the scope of "node" node.
scope =
- be_scope::narrow_from_scope (node->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (node->defined_in ())->decl ();
}
// Dump the scoped name.
@@ -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;
@@ -398,7 +398,7 @@ be_visitor_valuetype_ch::visit_operation (be_operation *node)
// Every operation is declared public and virtual in the client code.
*os << be_uidt_nl << "public:" << be_idt_nl << "virtual ";
- be_type *bt = be_type::narrow_from_decl (node->return_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->return_type ());
if (!bt)
{
@@ -443,7 +443,7 @@ be_visitor_valuetype_ch::visit_operation (be_operation *node)
int
be_visitor_valuetype_ch::visit_field (be_field *node)
{
- be_valuetype *vt = be_valuetype::narrow_from_scope (node->defined_in ());
+ be_valuetype *vt = dynamic_cast<be_valuetype*> (node->defined_in ());
if (!vt)
{
@@ -475,7 +475,7 @@ be_visitor_valuetype_ch::visit_field (be_field *node)
void
-be_visitor_valuetype_ch::begin_public (void)
+be_visitor_valuetype_ch::begin_public ()
{
TAO_OutStream *os = this->ctx_->stream ();
@@ -484,7 +484,7 @@ be_visitor_valuetype_ch::begin_public (void)
}
void
-be_visitor_valuetype_ch::begin_private (void)
+be_visitor_valuetype_ch::begin_private ()
{
TAO_OutStream *os = this->ctx_->stream ();
@@ -498,7 +498,7 @@ be_visitor_valuetype_ch::gen_supported_ops (be_interface *,
TAO_OutStream *os)
{
- AST_Decl *d = 0;
+ AST_Decl *d = nullptr;
be_visitor_context ctx;
ctx.stream (os);
@@ -508,7 +508,7 @@ be_visitor_valuetype_ch::gen_supported_ops (be_interface *,
{
d = si.item ();
- if (d == 0)
+ if (d == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_valuetype_ch::")
@@ -522,7 +522,7 @@ be_visitor_valuetype_ch::gen_supported_ops (be_interface *,
if (nt == AST_Decl::NT_op)
{
- be_operation *op = be_operation::narrow_from_decl (d);
+ be_operation *op = dynamic_cast<be_operation*> (d);
if (visitor.visit_operation (op) == -1)
{
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 588c4a0204e..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,11 +17,11 @@
be_visitor_valuetype_ci::be_visitor_valuetype_ci (be_visitor_context *ctx)
: be_visitor_valuetype (ctx),
- opt_accessor_ (0)
+ opt_accessor_ (false)
{
}
-be_visitor_valuetype_ci::~be_visitor_valuetype_ci (void)
+be_visitor_valuetype_ci::~be_visitor_valuetype_ci ()
{
}
@@ -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 9426f4f5e19..f09a8cd5313 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_cs.cpp
@@ -20,7 +20,7 @@ be_visitor_valuetype_cs::be_visitor_valuetype_cs (be_visitor_context *ctx)
{
}
-be_visitor_valuetype_cs::~be_visitor_valuetype_cs (void)
+be_visitor_valuetype_cs::~be_visitor_valuetype_cs ()
{
}
@@ -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;
@@ -183,7 +183,7 @@ be_visitor_valuetype_cs::visit_valuetype (be_valuetype *node)
if (node->opt_accessor ())
{
be_decl *scope =
- be_scope::narrow_from_scope (node->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (node->defined_in ())->decl ();
*os << scope->name () << "::"
<< node->local_name ()
@@ -210,7 +210,7 @@ be_visitor_valuetype_cs::visit_valuetype (be_valuetype *node)
if (node->opt_accessor ())
{
be_decl *scope =
- be_scope::narrow_from_scope (node->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (node->defined_in ())->decl ();
*os << scope->name () << "::"
<< node->local_name ()
@@ -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
<< "}";
@@ -407,9 +407,9 @@ be_visitor_valuetype_cs::visit_operation (be_operation *node)
}
be_valuetype *parent =
- be_valuetype::narrow_from_scope (node->defined_in ());
+ dynamic_cast<be_valuetype*> (node->defined_in ());
- if (parent == 0 || ! this->is_amh_exception_holder (parent))
+ if (parent == nullptr || ! this->is_amh_exception_holder (parent))
{
return 0;
}
@@ -421,7 +421,7 @@ be_visitor_valuetype_cs::visit_operation (be_operation *node)
<< "// " << __FILE__ << ":" << __LINE__ << be_nl_2;
// STEP I: Generate the return type.
- be_type *bt = be_type::narrow_from_decl (node->return_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->return_type ());
if (!bt)
{
@@ -472,12 +472,8 @@ be_visitor_valuetype_cs::visit_operation (be_operation *node)
// explicitly take care of both cases (platforms with
// and without native exception support).
*os << be_nl
- << "{"
- << "\n#if defined (ACE_HAS_CPP11)" << be_idt_nl
- << "std::unique_ptr< ::CORBA::Exception> safety (this->exception);"
- << "\n#else" << be_nl
- << "auto_ptr< ::CORBA::Exception> safety (this->exception);"
- << "\n#endif /* ACE_HAS_CPP11 */" << be_nl
+ << "{" << be_idt_nl
+ << "std::unique_ptr< ::CORBA::Exception> safety (this->exception);" << be_nl
<< "this->exception->_raise ();" << be_uidt_nl
<< "}"
<< be_nl;
@@ -493,9 +489,9 @@ be_visitor_valuetype_cs::gen_ostream_operator_r (be_valuetype *node,
AST_Type *parent = node->inherits_concrete ();
// Recurse up the parent chain.
- if (parent != 0)
+ if (parent != nullptr)
{
- this->gen_ostream_operator_r (be_valuetype::narrow_from_decl (parent),
+ this->gen_ostream_operator_r (dynamic_cast<be_valuetype*> (parent),
index);
}
@@ -504,14 +500,14 @@ be_visitor_valuetype_cs::gen_ostream_operator_r (be_valuetype *node,
!i.is_done ();
i.next ())
{
- be_field *f = be_field::narrow_from_decl (i.item ());
+ be_field *f = dynamic_cast<be_field*> (i.item ());
be_attribute *attr =
- be_attribute::narrow_from_decl (i.item ());
+ dynamic_cast<be_attribute*> (i.item ());
// No way to access the private members from generated code.
- if (f == 0
+ if (f == nullptr
|| f->visibility () != AST_Field::vis_PUBLIC
- || attr != 0)
+ || attr != nullptr)
{
continue;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init.cpp
index 740b2e6f4bd..15329da1c61 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init.cpp
@@ -19,16 +19,16 @@ be_visitor_valuetype_init::be_visitor_valuetype_init (
{
}
-be_visitor_valuetype_init::~be_visitor_valuetype_init (void)
+be_visitor_valuetype_init::~be_visitor_valuetype_init ()
{
}
void
-be_visitor_valuetype_init::begin_public (void)
+be_visitor_valuetype_init::begin_public ()
{
}
void
-be_visitor_valuetype_init::begin_private (void)
+be_visitor_valuetype_init::begin_private ()
{
}
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 3023dc22c21..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
@@ -20,7 +20,7 @@ be_visitor_valuetype_init_arglist_ch::be_visitor_valuetype_init_arglist_ch (
}
be_visitor_valuetype_init_arglist_ch::~be_visitor_valuetype_init_arglist_ch (
- void)
+ )
{
}
@@ -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 5d143a8b52c..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
@@ -19,7 +19,7 @@ be_visitor_valuetype_init_ch::be_visitor_valuetype_init_ch (
{
}
-be_visitor_valuetype_init_ch::~be_visitor_valuetype_init_ch (void)
+be_visitor_valuetype_init_ch::~be_visitor_valuetype_init_ch ()
{
}
@@ -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
<< "};";
@@ -142,7 +142,7 @@ be_visitor_valuetype_init_ch::visit_factory (be_factory *node)
TAO_OutStream& os = *(this->ctx_->stream ());
be_valuetype *vt =
- be_valuetype::narrow_from_decl (this->ctx_->scope ()->decl ());
+ dynamic_cast<be_valuetype*> (this->ctx_->scope ()->decl ());
// STEP I: Generate preambule.
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_ci.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_ci.cpp
index 66204d5609f..624345c7c66 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_ci.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_ci.cpp
@@ -19,7 +19,7 @@ be_visitor_valuetype_init_ci::be_visitor_valuetype_init_ci (
{
}
-be_visitor_valuetype_init_ci::~be_visitor_valuetype_init_ci (void)
+be_visitor_valuetype_init_ci::~be_visitor_valuetype_init_ci ()
{
}
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 b83e760999a..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
@@ -19,7 +19,7 @@ be_visitor_valuetype_init_cs::be_visitor_valuetype_init_cs (
{
}
-be_visitor_valuetype_init_cs::~be_visitor_valuetype_init_cs (void)
+be_visitor_valuetype_init_cs::~be_visitor_valuetype_init_cs ()
{
}
@@ -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 87ce9741cbb..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
@@ -24,7 +24,7 @@ be_visitor_valuetype_obv_ch::be_visitor_valuetype_obv_ch (
{
}
-be_visitor_valuetype_obv_ch::~be_visitor_valuetype_obv_ch (void)
+be_visitor_valuetype_obv_ch::~be_visitor_valuetype_obv_ch ()
{
}
@@ -92,7 +92,7 @@ be_visitor_valuetype_obv_ch::visit_valuetype (be_valuetype *node)
//
int i = 0;
- AST_Type *inherited = 0;
+ AST_Type *inherited = nullptr;
for (; i < node->n_inherits (); ++i)
{
@@ -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;
@@ -253,7 +253,7 @@ be_visitor_valuetype_obv_ch::visit_eventtype (be_eventtype *node)
int
be_visitor_valuetype_obv_ch::visit_field (be_field *node)
{
- be_valuetype *vt = be_valuetype::narrow_from_scope (node->defined_in ());
+ be_valuetype *vt = dynamic_cast<be_valuetype*> (node->defined_in ());
if (!vt)
{
@@ -281,7 +281,7 @@ be_visitor_valuetype_obv_ch::visit_field (be_field *node)
}
void
-be_visitor_valuetype_obv_ch::begin_public (void)
+be_visitor_valuetype_obv_ch::begin_public ()
{
AST_Decl::NodeType nt = this->ctx_->node ()->node_type ();
@@ -297,7 +297,7 @@ be_visitor_valuetype_obv_ch::begin_public (void)
}
void
-be_visitor_valuetype_obv_ch::begin_private (void)
+be_visitor_valuetype_obv_ch::begin_private ()
{
TAO_OutStream *os = this->ctx_->stream ();
*os << be_uidt_nl << be_nl
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 f556cd9f0cb..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
@@ -26,7 +26,7 @@ be_visitor_valuetype_obv_ci::be_visitor_valuetype_obv_ci (
{
}
-be_visitor_valuetype_obv_ci::~be_visitor_valuetype_obv_ci (void)
+be_visitor_valuetype_obv_ci::~be_visitor_valuetype_obv_ci ()
{
}
@@ -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 c904904a95e..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
@@ -24,7 +24,7 @@ be_visitor_valuetype_obv_cs::be_visitor_valuetype_obv_cs (
{
}
-be_visitor_valuetype_obv_cs::~be_visitor_valuetype_obv_cs (void)
+be_visitor_valuetype_obv_cs::~be_visitor_valuetype_obv_cs ()
{
}
@@ -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)
{
@@ -214,10 +214,10 @@ be_visitor_valuetype_obv_cs::gen_obv_init_base_constructor_args (
AST_Type *parent = node->inherits_concrete ();
// Generate for inherited members first.
- if (parent != 0)
+ if (parent != nullptr)
{
be_valuetype *be_parent =
- be_valuetype::narrow_from_decl (parent);
+ dynamic_cast<be_valuetype*> (parent);
this->gen_obv_init_base_constructor_args (be_parent, index);
}
@@ -227,11 +227,11 @@ be_visitor_valuetype_obv_cs::gen_obv_init_base_constructor_args (
{
// be_attribute inherits from be_field
// so we have to also screen out attributes
- be_field *f = be_field::narrow_from_decl (si.item ());
+ be_field *f = dynamic_cast<be_field*> (si.item ());
be_attribute *attr =
- be_attribute::narrow_from_decl (si.item ());
+ dynamic_cast<be_attribute*> (si.item ());
- if (f == 0 || attr != 0)
+ if (f == nullptr || attr != nullptr)
{
continue;
}
@@ -250,9 +250,9 @@ be_visitor_valuetype_obv_cs::gen_obv_init_constructor_inits (
AST_Type *parent = node->inherits_concrete ();
// Generate for inherited members first.
- if (parent != 0)
+ if (parent != nullptr)
{
- be_valuetype *be_parent = be_valuetype::narrow_from_decl (parent);
+ be_valuetype *be_parent = dynamic_cast<be_valuetype*> (parent);
this->gen_obv_init_constructor_inits (be_parent);
}
@@ -262,11 +262,11 @@ be_visitor_valuetype_obv_cs::gen_obv_init_constructor_inits (
{
// be_attribute inherits from be_field
// so we have to also screen out attributes
- be_field *f = be_field::narrow_from_decl (si.item ());
+ be_field *f = dynamic_cast<be_field*> (si.item ());
be_attribute *attr =
- be_attribute::narrow_from_decl (si.item ());
+ dynamic_cast<be_attribute*> (si.item ());
- if (f == 0 || attr != 0)
+ if (f == nullptr || attr != nullptr)
{
continue;
}
@@ -287,10 +287,10 @@ be_visitor_valuetype_obv_cs::gen_obv_call_base_constructor_args (
// Generate for inherited members first.
AST_Type *parent = node->inherits_concrete ();
- if (parent != 0)
+ if (parent != nullptr)
{
be_valuetype *be_parent =
- be_valuetype::narrow_from_decl (parent);
+ dynamic_cast<be_valuetype*> (parent);
this->gen_obv_call_base_constructor_args (be_parent, index);
}
@@ -301,8 +301,8 @@ be_visitor_valuetype_obv_cs::gen_obv_call_base_constructor_args (
{
// be_attribute inherits from be_field
// so we have to also screen out attributes
- be_field *f = be_field::narrow_from_decl (si.item ());
- if (f && !be_attribute::narrow_from_decl (si.item ()))
+ be_field *f = dynamic_cast<be_field*> (si.item ());
+ if (f && !dynamic_cast<be_attribute*> (si.item ()))
{
if (index++) // comma before 2nd onwards
*os << ",";
@@ -311,10 +311,10 @@ be_visitor_valuetype_obv_cs::gen_obv_call_base_constructor_args (
*os << be_nl;
// Check the member type for nested valuetypes
- be_type *t = be_type::narrow_from_decl (f->field_type ());
- if (be_valuetype_fwd::narrow_from_decl (t) ||
- be_valuetype::narrow_from_decl (t) ||
- be_valuebox::narrow_from_decl (t) )
+ be_type *t = dynamic_cast<be_type*> (f->field_type ());
+ if (dynamic_cast<be_valuetype_fwd*> (t) ||
+ dynamic_cast<be_valuetype*> (t) ||
+ dynamic_cast<be_valuebox*> (t) )
{
// Nested valuetypes/boxes need to be deep copied also
*os << "(" << f->local_name () << " () ?" << be_idt_nl
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 6f61bfdb30e..c7032dde502 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_sh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_sh.cpp
@@ -20,7 +20,7 @@ be_visitor_valuetype_sh::be_visitor_valuetype_sh (be_visitor_context *ctx)
{
}
-be_visitor_valuetype_sh::~be_visitor_valuetype_sh (void)
+be_visitor_valuetype_sh::~be_visitor_valuetype_sh ()
{
}
@@ -36,7 +36,7 @@ be_visitor_valuetype_sh::visit_valuetype (be_valuetype *node)
// We generate a skeleton class only if the valuetype supports a
// non-abstract interface.
- if (concrete == 0)
+ if (concrete == nullptr)
{
return 0;
}
@@ -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 9f83d277dfb..2b4f1096991 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ss.cpp
@@ -21,7 +21,7 @@ be_visitor_valuetype_ss::be_visitor_valuetype_ss (be_visitor_context *ctx)
{
}
-be_visitor_valuetype_ss::~be_visitor_valuetype_ss (void)
+be_visitor_valuetype_ss::~be_visitor_valuetype_ss ()
{
}
@@ -37,7 +37,7 @@ be_visitor_valuetype_ss::visit_valuetype (be_valuetype *node)
// We generate a skeleton class only if the valuetype supports a
// non-abstract interface.
- if (concrete == 0)
+ if (concrete == nullptr)
{
return 0;
}
@@ -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
@@ -102,7 +102,7 @@ be_visitor_valuetype_ss::visit_valuetype (be_valuetype *node)
}
else
{
- be_interface *bd = be_interface::narrow_from_decl (concrete);
+ be_interface *bd = dynamic_cast<be_interface*> (concrete);
*os << bd->full_skel_name () << " (rhs)," << be_nl;
}
@@ -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 711bc47368e..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
@@ -23,7 +23,7 @@ be_visitor_valuetype_fwd_any_op_ch::be_visitor_valuetype_fwd_any_op_ch (
{
}
-be_visitor_valuetype_fwd_any_op_ch::~be_visitor_valuetype_fwd_any_op_ch (void)
+be_visitor_valuetype_fwd_any_op_ch::~be_visitor_valuetype_fwd_any_op_ch ()
{
}
@@ -54,12 +54,12 @@ be_visitor_valuetype_fwd_any_op_ch::visit_valuetype_fwd (
*os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl_2;
- be_module *module = 0;
+ be_module *module = nullptr;
if (node->is_nested () &&
node->defined_in ()->scope_node_type () == AST_Decl::NT_module)
{
- module = be_module::narrow_from_scope (node->defined_in ());
+ module = dynamic_cast<be_module*> (node->defined_in ());
if (!module)
{
@@ -110,12 +110,12 @@ be_visitor_valuetype_fwd_any_op_ch::visit_valuetype_fwd (
<< node->name () << " *&);";
*os << be_global->core_versioning_end () << be_nl;
- if (module != 0)
+ if (module != nullptr)
{
*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_fwd/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/cdr_op_ch.cpp
index 6ff9d6fd264..026f4bcd769 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/cdr_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/cdr_op_ch.cpp
@@ -19,7 +19,7 @@ be_visitor_valuetype_fwd_cdr_op_ch::be_visitor_valuetype_fwd_cdr_op_ch (
{
}
-be_visitor_valuetype_fwd_cdr_op_ch::~be_visitor_valuetype_fwd_cdr_op_ch (void)
+be_visitor_valuetype_fwd_cdr_op_ch::~be_visitor_valuetype_fwd_cdr_op_ch ()
{
}
@@ -29,7 +29,7 @@ be_visitor_valuetype_fwd_cdr_op_ch::visit_valuetype_fwd (
)
{
AST_Interface *fd = node->full_definition ();
- be_valuetype *bfd = be_valuetype::narrow_from_decl (fd);
+ be_valuetype *bfd = dynamic_cast<be_valuetype*> (fd);
// If this forward declared vt is defined later in the file,
// the CDR operator declaration (along with the corresponding
@@ -49,7 +49,7 @@ be_visitor_valuetype_fwd_cdr_op_ch::visit_valuetype_fwd (
TAO_OutStream *os = this->ctx_->stream ();
be_valuetype *fvd =
- be_valuetype::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_valuetype*> (node->full_definition ());
if (fvd->gen_helper_header () == -1)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/valuetype_fwd_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/valuetype_fwd_ch.cpp
index 620c1b4ca0e..164a40d4ebc 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/valuetype_fwd_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/valuetype_fwd_ch.cpp
@@ -18,7 +18,7 @@ be_visitor_valuetype_fwd_ch::be_visitor_valuetype_fwd_ch (
{
}
-be_visitor_valuetype_fwd_ch::~be_visitor_valuetype_fwd_ch (void)
+be_visitor_valuetype_fwd_ch::~be_visitor_valuetype_fwd_ch ()
{
}
@@ -32,7 +32,7 @@ be_visitor_valuetype_fwd_ch::visit_valuetype_fwd (be_valuetype_fwd *node)
}
AST_Interface *fd = node->full_definition ();
- be_valuetype *bfd = be_valuetype::narrow_from_decl (fd);
+ be_valuetype *bfd = dynamic_cast<be_valuetype*> (fd);
// This will be a no-op if it has already been done for this node.
bfd->gen_var_out_seq_decls ();
diff --git a/TAO/TAO_IDL/be/be_visitor_xplicit_pre_proc.cpp b/TAO/TAO_IDL/be/be_visitor_xplicit_pre_proc.cpp
index 27e2839c71b..7ac895d80cc 100644
--- a/TAO/TAO_IDL/be/be_visitor_xplicit_pre_proc.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_xplicit_pre_proc.cpp
@@ -44,13 +44,13 @@
be_visitor_xplicit_pre_proc::be_visitor_xplicit_pre_proc (
be_visitor_context *ctx)
: be_visitor_ccm_pre_proc (ctx),
- xplicit_ (0),
- type_holder_ (0),
+ xplicit_ (nullptr),
+ type_holder_ (nullptr),
ref_type_ (false)
{
}
-be_visitor_xplicit_pre_proc::~be_visitor_xplicit_pre_proc (void)
+be_visitor_xplicit_pre_proc::~be_visitor_xplicit_pre_proc ()
{
}
@@ -59,7 +59,7 @@ be_visitor_xplicit_pre_proc::visit_home (be_home *node)
{
UTL_NameList *parent_list = this->compute_inheritance (node);
- FE_InterfaceHeader header (0,
+ FE_InterfaceHeader header (nullptr,
parent_list,
false,
false,
@@ -69,7 +69,7 @@ be_visitor_xplicit_pre_proc::visit_home (be_home *node)
// for a minute so the correct repo id can be calculated at
// interface construction time.
AST_Module *m =
- AST_Module::narrow_from_scope (node->defined_in ());
+ dynamic_cast<AST_Module*> (node->defined_in ());
idl_global->scopes ().push (m);
@@ -80,7 +80,7 @@ be_visitor_xplicit_pre_proc::visit_home (be_home *node)
"Explicit",
m);
- be_interface *i = 0;
+ be_interface *i = nullptr;
ACE_NEW_RETURN (i,
be_interface (explicit_name,
header.inherits (),
@@ -115,13 +115,13 @@ be_visitor_xplicit_pre_proc::visit_home (be_home *node)
explicit_name->destroy ();
delete explicit_name;
- explicit_name = 0;
+ explicit_name = nullptr;
header.destroy ();
parent_list->destroy ();
delete parent_list;
- parent_list = 0;
+ parent_list = nullptr;
// Through with the scope containing the home.
idl_global->scopes ().pop ();
@@ -134,9 +134,9 @@ be_visitor_xplicit_pre_proc::visit_home (be_home *node)
int
be_visitor_xplicit_pre_proc::visit_operation (be_operation *node)
{
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
- be_operation *home_op = 0;
+ be_operation *home_op = nullptr;
ACE_NEW_RETURN (home_op,
be_operation (node->return_type (),
node->flags (),
@@ -146,7 +146,7 @@ be_visitor_xplicit_pre_proc::visit_operation (be_operation *node)
-1);
UTL_ExceptList *excep_list = node->exceptions ();
- if (0 != excep_list)
+ if (nullptr != excep_list)
{
home_op->be_add_exceptions (excep_list->copy ());
}
@@ -171,12 +171,12 @@ be_visitor_xplicit_pre_proc::visit_operation (be_operation *node)
int
be_visitor_xplicit_pre_proc::visit_argument (be_argument *node)
{
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
this->ref_type_ = true;
be_type *ft =
- be_type::narrow_from_decl (node->field_type ());
+ dynamic_cast<be_type*> (node->field_type ());
if (ft->accept (this) != 0)
{
@@ -190,9 +190,9 @@ be_visitor_xplicit_pre_proc::visit_argument (be_argument *node)
this->ref_type_ = false;
AST_Type *arg_type =
- AST_Type::narrow_from_decl (this->type_holder_);
+ dynamic_cast<AST_Type*> (this->type_holder_);
- be_argument *added_arg = 0;
+ be_argument *added_arg = nullptr;
ACE_NEW_RETURN (added_arg,
be_argument (node->direction (),
arg_type,
@@ -207,12 +207,12 @@ be_visitor_xplicit_pre_proc::visit_argument (be_argument *node)
int
be_visitor_xplicit_pre_proc::visit_factory (be_factory *node)
{
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
AST_Home *f_home =
- AST_Home::narrow_from_scope (node->defined_in ());
+ dynamic_cast<AST_Home*> (node->defined_in ());
- be_operation *added_factory = 0;
+ be_operation *added_factory = nullptr;
ACE_NEW_RETURN (added_factory,
be_operation (f_home->managed_component (),
AST_Operation::OP_noflags,
@@ -241,12 +241,12 @@ be_visitor_xplicit_pre_proc::visit_factory (be_factory *node)
int
be_visitor_xplicit_pre_proc::visit_finder (be_finder *node)
{
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
AST_Home *f_home =
- AST_Home::narrow_from_scope (node->defined_in ());
+ dynamic_cast<AST_Home*> (node->defined_in ());
- be_operation *added_finder = 0;
+ be_operation *added_finder = nullptr;
ACE_NEW_RETURN (added_finder,
be_operation (f_home->managed_component (),
AST_Operation::OP_noflags,
@@ -321,9 +321,9 @@ be_visitor_xplicit_pre_proc::visit_structure (be_structure *node)
return 0;
}
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
- be_structure *added_struct = 0;
+ be_structure *added_struct = nullptr;
ACE_NEW_RETURN (added_struct,
be_structure (&sn,
false,
@@ -349,16 +349,16 @@ int
be_visitor_xplicit_pre_proc::visit_structure_fwd (
be_structure_fwd *node)
{
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
- be_structure *dummy = 0;
+ be_structure *dummy = nullptr;
ACE_NEW_RETURN (dummy,
be_structure (&sn,
false,
false),
-1);
- be_structure_fwd *added_struct_fwd = 0;
+ be_structure_fwd *added_struct_fwd = nullptr;
ACE_NEW_RETURN (added_struct_fwd,
be_structure_fwd (dummy,
&sn),
@@ -374,9 +374,9 @@ be_visitor_xplicit_pre_proc::visit_structure_fwd (
int
be_visitor_xplicit_pre_proc::visit_exception (be_exception *node)
{
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
- be_exception *added_excep = 0;
+ be_exception *added_excep = nullptr;
ACE_NEW_RETURN (added_excep,
be_exception (&sn,
false,
@@ -409,9 +409,9 @@ be_visitor_xplicit_pre_proc::visit_enum (be_enum *node)
return 0;
}
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
- be_enum *added_enum = 0;
+ be_enum *added_enum = nullptr;
ACE_NEW_RETURN (added_enum,
be_enum (&sn,
false,
@@ -439,7 +439,7 @@ be_visitor_xplicit_pre_proc::visit_field (be_field *node)
this->ref_type_ = true;
be_type *ft =
- be_type::narrow_from_decl (node->field_type ());
+ dynamic_cast<be_type*> (node->field_type ());
if (ft->accept (this) != 0)
{
@@ -452,11 +452,11 @@ be_visitor_xplicit_pre_proc::visit_field (be_field *node)
this->ref_type_ = false;
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
AST_Type *field_type =
- AST_Type::narrow_from_decl (this->type_holder_);
+ dynamic_cast<AST_Type*> (this->type_holder_);
- be_field *added_field = 0;
+ be_field *added_field = nullptr;
ACE_NEW_RETURN (added_field,
be_field (field_type,
&sn,
@@ -472,7 +472,7 @@ int
be_visitor_xplicit_pre_proc::visit_attribute (be_attribute *node)
{
be_type *ft =
- be_type::narrow_from_decl (node->field_type ());
+ dynamic_cast<be_type*> (node->field_type ());
this->ref_type_ = true;
@@ -488,11 +488,11 @@ be_visitor_xplicit_pre_proc::visit_attribute (be_attribute *node)
this->ref_type_ = false;
AST_Type *attr_type =
- AST_Type::narrow_from_decl (this->type_holder_);
+ dynamic_cast<AST_Type*> (this->type_holder_);
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
- be_attribute *added_attr = 0;
+ be_attribute *added_attr = nullptr;
ACE_NEW_RETURN (added_attr,
be_attribute (node->readonly (),
attr_type,
@@ -516,7 +516,7 @@ be_visitor_xplicit_pre_proc::visit_union (be_union *node)
}
be_type *ud =
- be_type::narrow_from_decl (node->disc_type ());
+ dynamic_cast<be_type*> (node->disc_type ());
this->ref_type_ = true;
@@ -532,11 +532,11 @@ be_visitor_xplicit_pre_proc::visit_union (be_union *node)
this->ref_type_ = false;
AST_ConcreteType *disc =
- AST_ConcreteType::narrow_from_decl (this->type_holder_);
+ dynamic_cast<AST_ConcreteType*> (this->type_holder_);
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
- be_union *added_union = 0;
+ be_union *added_union = nullptr;
ACE_NEW_RETURN (added_union,
be_union (disc,
&sn,
@@ -562,17 +562,17 @@ be_visitor_xplicit_pre_proc::visit_union (be_union *node)
int
be_visitor_xplicit_pre_proc::visit_union_fwd (be_union_fwd *node)
{
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
- be_union *dummy = 0;
+ be_union *dummy = nullptr;
ACE_NEW_RETURN (dummy,
- be_union (0,
+ be_union (nullptr,
&sn,
false,
false),
-1);
- be_union_fwd *added_union_fwd = 0;
+ be_union_fwd *added_union_fwd = nullptr;
ACE_NEW_RETURN (added_union_fwd,
be_union_fwd (dummy,
&sn),
@@ -590,7 +590,7 @@ be_visitor_xplicit_pre_proc::visit_union_branch (
be_union_branch *node)
{
be_type *ft =
- be_type::narrow_from_decl (node->field_type ());
+ dynamic_cast<be_type*> (node->field_type ());
this->ref_type_ = true;
@@ -606,14 +606,14 @@ be_visitor_xplicit_pre_proc::visit_union_branch (
this->ref_type_ = false;
AST_Type *bt =
- AST_Type::narrow_from_decl (this->type_holder_);
+ dynamic_cast<AST_Type*> (this->type_holder_);
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
// The union branch owns its label list so we have to copy it.
UTL_LabelList *ll = node->labels ()->copy ();
- be_union_branch *added_branch = 0;
+ be_union_branch *added_branch = nullptr;
ACE_NEW_RETURN (added_branch,
be_union_branch (ll, bt, &sn),
-1);
@@ -622,7 +622,7 @@ be_visitor_xplicit_pre_proc::visit_union_branch (
// add_to_scope() so we need to reuse it.
be_union *u =
- be_union::narrow_from_scope (idl_global->scopes ().top ());
+ dynamic_cast<be_union*> (idl_global->scopes ().top ());
u->be_add_union_branch (added_branch);
@@ -644,15 +644,15 @@ be_visitor_xplicit_pre_proc::visit_constant (be_constant *node)
return 0;
}
- AST_Expression *new_v = 0;
+ AST_Expression *new_v = nullptr;
ACE_NEW_RETURN (new_v,
AST_Expression (node->constant_value (),
node->et ()),
-1);
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
- be_constant *added_const = 0;
+ be_constant *added_const = nullptr;
ACE_NEW_RETURN (added_const,
be_constant (node->et (),
new_v,
@@ -673,9 +673,9 @@ be_visitor_xplicit_pre_proc::visit_enum_val (be_enum_val *node)
return 0;
}
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
- be_enum_val *added_enum_val = 0;
+ be_enum_val *added_enum_val = nullptr;
ACE_NEW_RETURN (added_enum_val,
be_enum_val (node->constant_value ()->ev ()->u.ulval,
&sn),
@@ -690,7 +690,7 @@ int
be_visitor_xplicit_pre_proc::visit_array (be_array *node)
{
be_type *bt =
- be_type::narrow_from_decl (node->base_type ());
+ dynamic_cast<be_type*> (node->base_type ());
bool tmp = this->ref_type_;
this->ref_type_ = true;
@@ -706,8 +706,8 @@ be_visitor_xplicit_pre_proc::visit_array (be_array *node)
this->ref_type_ = tmp;
- AST_Expression *v = 0;
- UTL_ExprList *v_list = 0;
+ AST_Expression *v = nullptr;
+ UTL_ExprList *v_list = nullptr;
for (ACE_CDR::ULong i = 0; i < node->n_dims (); ++i)
{
@@ -716,12 +716,12 @@ be_visitor_xplicit_pre_proc::visit_array (be_array *node)
AST_Expression::EV_ulong),
-1);
- UTL_ExprList *el = 0;
+ UTL_ExprList *el = nullptr;
ACE_NEW_RETURN (el,
- UTL_ExprList (v, 0),
+ UTL_ExprList (v, nullptr),
-1);
- if (v_list == 0)
+ if (v_list == nullptr)
{
v_list = el;
}
@@ -731,9 +731,9 @@ be_visitor_xplicit_pre_proc::visit_array (be_array *node)
}
}
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
- be_array *added_array = 0;
+ be_array *added_array = nullptr;
ACE_NEW_RETURN (added_array,
be_array (&sn,
node->n_dims (),
@@ -745,15 +745,15 @@ be_visitor_xplicit_pre_proc::visit_array (be_array *node)
// No need to add this new node to any scope - it's anonymous
// and owned by the node that references it.
- if (v_list != 0)
+ if (v_list != nullptr)
{
v_list->destroy ();
delete v_list;
- v_list = 0;
+ v_list = nullptr;
}
AST_Type *base_type =
- AST_Type::narrow_from_decl (this->type_holder_);
+ dynamic_cast<AST_Type*> (this->type_holder_);
added_array->set_base_type (base_type);
@@ -766,7 +766,7 @@ int
be_visitor_xplicit_pre_proc::visit_sequence (be_sequence *node)
{
be_type *bt =
- be_type::narrow_from_decl (node->base_type ());
+ dynamic_cast<be_type*> (node->base_type ());
bool tmp = this->ref_type_;
this->ref_type_ = true;
@@ -784,17 +784,17 @@ be_visitor_xplicit_pre_proc::visit_sequence (be_sequence *node)
AST_Expression *v = node->max_size ();
- AST_Expression *bound = 0;
+ AST_Expression *bound = nullptr;
ACE_NEW_RETURN (bound,
AST_Expression (v,
AST_Expression::EV_ulong),
-1);
Identifier id ("sequence");
- UTL_ScopedName sn (&id, 0);
+ UTL_ScopedName sn (&id, nullptr);
AST_Type *ft =
- AST_Type::narrow_from_decl (this->type_holder_);
+ dynamic_cast<AST_Type*> (this->type_holder_);
ACE_NEW_RETURN (this->type_holder_,
be_sequence (bound,
@@ -827,14 +827,14 @@ be_visitor_xplicit_pre_proc::visit_string (be_string *node)
return 0;
}
- AST_Expression *bound = 0;
+ AST_Expression *bound = nullptr;
ACE_NEW_RETURN (bound,
AST_Expression (b,
AST_Expression::EV_ulong),
-1);
Identifier id ("string");
- UTL_ScopedName sn (&id, 0);
+ UTL_ScopedName sn (&id, nullptr);
ACE_NEW_RETURN (this->type_holder_,
be_string (AST_Decl::NT_string,
@@ -856,7 +856,7 @@ be_visitor_xplicit_pre_proc::visit_typedef (be_typedef *node)
}
be_type *t =
- be_type::narrow_from_decl (node->field_type ());
+ dynamic_cast<be_type*> (node->field_type ());
this->ref_type_ = true;
@@ -871,11 +871,11 @@ be_visitor_xplicit_pre_proc::visit_typedef (be_typedef *node)
this->ref_type_ = false;
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
AST_Type *bt =
- AST_Type::narrow_from_decl (this->type_holder_);
+ dynamic_cast<AST_Type*> (this->type_holder_);
- be_typedef *added_typedef = 0;
+ be_typedef *added_typedef = nullptr;
ACE_NEW_RETURN (added_typedef,
be_typedef (bt,
&sn,
@@ -897,9 +897,9 @@ be_visitor_xplicit_pre_proc::visit_native (be_native *node)
return 0;
}
- UTL_ScopedName sn (node->local_name (), 0);
+ UTL_ScopedName sn (node->local_name (), nullptr);
- be_native *added_native = 0;
+ be_native *added_native = nullptr;
ACE_NEW_RETURN (added_native,
be_native (&sn),
-1);
@@ -919,7 +919,7 @@ be_visitor_xplicit_pre_proc::visit_predefined_type (
}
be_interface *
-be_visitor_xplicit_pre_proc::xplicit (void) const
+be_visitor_xplicit_pre_proc::xplicit () const
{
return this->xplicit_;
}
@@ -930,7 +930,7 @@ be_visitor_xplicit_pre_proc::check_and_store (AST_Decl *node)
UTL_ScopedName *tmpl_tail =
this->xplicit_iface_rel_name (node);
- if (tmpl_tail != 0)
+ if (tmpl_tail != nullptr)
{
AST_Decl *d =
idl_global->scopes ().top ()->lookup_by_name (
@@ -941,7 +941,7 @@ be_visitor_xplicit_pre_proc::check_and_store (AST_Decl *node)
tmpl_tail->destroy ();
delete tmpl_tail;
- tmpl_tail = 0;
+ tmpl_tail = nullptr;
}
else
{
@@ -955,9 +955,9 @@ be_visitor_xplicit_pre_proc::xplicit_iface_rel_name (AST_Decl *d)
AST_Decl *tmp = d;
ACE_CString name (d->full_name ());
- while (tmp != 0)
+ while (tmp != nullptr)
{
- if (be_home::narrow_from_decl (tmp) != 0)
+ if (dynamic_cast<be_home*> (tmp) != nullptr)
{
ACE_CString head (tmp->local_name ()->get_string ());
@@ -971,5 +971,5 @@ be_visitor_xplicit_pre_proc::xplicit_iface_rel_name (AST_Decl *d)
tmp = ScopeAsDecl (tmp->defined_in ());
}
- return 0;
+ return nullptr;
}
diff --git a/TAO/TAO_IDL/be_include/be_argument.h b/TAO/TAO_IDL/be_include/be_argument.h
index 1afc70b06a1..cc5c2ef4bef 100644
--- a/TAO/TAO_IDL/be_include/be_argument.h
+++ b/TAO/TAO_IDL/be_include/be_argument.h
@@ -32,10 +32,7 @@ public:
virtual int accept (be_visitor *visitor);
// Cleanup.
- virtual void destroy (void);
-
- // Narrowing.
- DEF_NARROW_FROM_DECL (be_argument);
+ 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 1d7e9dc6405..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,17 +50,13 @@ public:
virtual int accept (be_visitor *visitor);
// Cleanup.
- virtual void destroy (void);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL (be_array);
+ 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 25398533978..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.
@@ -46,10 +46,6 @@ public:
/// Returns the original attribute from which this one was created,
/// applies only to implied IDL
be_attribute *original_attribute ();
-
- // Narrowing
-
- DEF_NARROW_FROM_DECL (be_attribute);
};
#endif
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 8871023c2da..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);
@@ -74,11 +74,6 @@ public:
/// Generate the string compares for ancestors in _is_a().
virtual int gen_is_a_ancestors (TAO_OutStream *os);
- // Narrowing.
-
- DEF_NARROW_FROM_DECL (be_component);
- DEF_NARROW_FROM_SCOPE (be_component);
-
private:
/// Specialized version for mirror ports.
void mirror_scan (AST_PortType *p);
diff --git a/TAO/TAO_IDL/be_include/be_component_fwd.h b/TAO/TAO_IDL/be_include/be_component_fwd.h
index 828b6df2efc..01ef8cc5c6c 100644
--- a/TAO/TAO_IDL/be_include/be_component_fwd.h
+++ b/TAO/TAO_IDL/be_include/be_component_fwd.h
@@ -29,17 +29,13 @@ 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);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL (be_component_fwd);
};
#endif // if !defined
diff --git a/TAO/TAO_IDL/be_include/be_connector.h b/TAO/TAO_IDL/be_include/be_connector.h
index 07c0370cf72..da35bc73d82 100644
--- a/TAO/TAO_IDL/be_include/be_connector.h
+++ b/TAO/TAO_IDL/be_include/be_connector.h
@@ -13,23 +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);
-
- // Narrowing.
- DEF_NARROW_FROM_DECL (be_connector);
- DEF_NARROW_FROM_SCOPE (be_connector);
+ 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 7fb2681e0f8..27f307b3813 100644
--- a/TAO/TAO_IDL/be_include/be_constant.h
+++ b/TAO/TAO_IDL/be_include/be_constant.h
@@ -32,10 +32,7 @@ public:
virtual int accept (be_visitor *visitor);
//Cleanup.
- virtual void destroy (void);
-
- // Narrowing.
- DEF_NARROW_FROM_DECL (be_constant);
+ 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 40b7fbfe713..941d0381a08 100644
--- a/TAO/TAO_IDL/be_include/be_consumes.h
+++ b/TAO/TAO_IDL/be_include/be_consumes.h
@@ -16,19 +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;
-
- // Narrowing.
- DEF_NARROW_FROM_DECL (be_consumes);
+ 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 dce208816c2..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);
@@ -157,10 +157,6 @@ public:
void exec_src_facet_gen (bool);
void ami4ccm_ex_idl_gen (bool);
- // Narrowing
-
- DEF_NARROW_FROM_DECL (be_decl);
-
private:
// Variables that indicate if the code generation for that node is already
// been done. This way we avoid regenerating same code.
diff --git a/TAO/TAO_IDL/be_include/be_emits.h b/TAO/TAO_IDL/be_include/be_emits.h
index 96970a433b9..813b0aa303a 100644
--- a/TAO/TAO_IDL/be_include/be_emits.h
+++ b/TAO/TAO_IDL/be_include/be_emits.h
@@ -16,19 +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;
-
- // Narrowing.
- DEF_NARROW_FROM_DECL (be_emits);
+ 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 6d78edbb639..5154d85f2a1 100644
--- a/TAO/TAO_IDL/be_include/be_enum.h
+++ b/TAO/TAO_IDL/be_include/be_enum.h
@@ -35,14 +35,10 @@ public:
bool use_underscore);
/// Cleanup method.
- virtual void destroy (void);
+ virtual void destroy ();
// Visiting.
virtual int accept (be_visitor *visitor);
-
- // Narrowing.
- DEF_NARROW_FROM_DECL (be_enum);
- DEF_NARROW_FROM_SCOPE (be_enum);
};
#endif
diff --git a/TAO/TAO_IDL/be_include/be_enum_val.h b/TAO/TAO_IDL/be_include/be_enum_val.h
index 4dfc0305cc1..78959570fea 100644
--- a/TAO/TAO_IDL/be_include/be_enum_val.h
+++ b/TAO/TAO_IDL/be_include/be_enum_val.h
@@ -31,10 +31,7 @@ public:
virtual int accept (be_visitor *visitor);
//Cleanup.
- virtual void destroy (void);
-
- // Narrowing
- DEF_NARROW_FROM_DECL (be_enum_val);
+ 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 333f0571ed8..7b5e5fcfc39 100644
--- a/TAO/TAO_IDL/be_include/be_eventtype.h
+++ b/TAO/TAO_IDL/be_include/be_eventtype.h
@@ -37,17 +37,13 @@ public:
bool truncatable,
bool custom);
- ~be_eventtype (void);
+ ~be_eventtype ();
// Visiting.
virtual int accept (be_visitor *visitor);
// Cleanup.
- virtual void destroy (void);
-
- // Narrowing.
- DEF_NARROW_FROM_DECL (be_eventtype);
- DEF_NARROW_FROM_SCOPE (be_eventtype);
+ 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 89b994ffa1b..3ee3c770bc1 100644
--- a/TAO/TAO_IDL/be_include/be_eventtype_fwd.h
+++ b/TAO/TAO_IDL/be_include/be_eventtype_fwd.h
@@ -29,16 +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);
-
- // Narrowing.
- DEF_NARROW_FROM_DECL (be_eventtype_fwd);
+ 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 23b831d80b1..39d42cea0d7 100644
--- a/TAO/TAO_IDL/be_include/be_exception.h
+++ b/TAO/TAO_IDL/be_include/be_exception.h
@@ -16,14 +16,10 @@ public:
bool abstract);
// Cleanup function.
- virtual void destroy (void);
+ virtual void destroy ();
// Visiting.
virtual int accept (be_visitor *visitor);
-
- // Narrowing.
- DEF_NARROW_FROM_DECL (be_exception);
- DEF_NARROW_FROM_SCOPE (be_exception);
};
#endif // end of if !defined (...)
diff --git a/TAO/TAO_IDL/be_include/be_extended_port.h b/TAO/TAO_IDL/be_include/be_extended_port.h
index ba6af7aa6c5..992549a47ae 100644
--- a/TAO/TAO_IDL/be_include/be_extended_port.h
+++ b/TAO/TAO_IDL/be_include/be_extended_port.h
@@ -32,15 +32,13 @@ 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);
-
- DEF_NARROW_FROM_DECL (be_extended_port);
};
#endif // BE_EXTENDED_PORT_H
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 97b8fdabec2..5b9c3b4ac58 100644
--- a/TAO/TAO_IDL/be_include/be_factory.h
+++ b/TAO/TAO_IDL/be_include/be_factory.h
@@ -30,20 +30,16 @@ 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);
// Add an argument to the scope.
virtual AST_Argument *be_add_argument (AST_Argument *arg);
-
- // Narrowing
- DEF_NARROW_FROM_DECL (be_factory);
- DEF_NARROW_FROM_SCOPE (be_factory);
};
#endif // BE_FACTORY_H
diff --git a/TAO/TAO_IDL/be_include/be_field.h b/TAO/TAO_IDL/be_include/be_field.h
index 3b860cf7390..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,18 +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);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL (be_field);
+ 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 c54090e5e3b..d6f7208aec6 100644
--- a/TAO/TAO_IDL/be_include/be_finder.h
+++ b/TAO/TAO_IDL/be_include/be_finder.h
@@ -24,17 +24,13 @@ 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);
-
- // Narrowing
- DEF_NARROW_FROM_DECL (be_finder);
- DEF_NARROW_FROM_SCOPE (be_finder);
};
#endif // BE_FINDER_H
diff --git a/TAO/TAO_IDL/be_include/be_fixed.h b/TAO/TAO_IDL/be_include/be_fixed.h
index 7f9936c8b7d..617f5725cb3 100644
--- a/TAO/TAO_IDL/be_include/be_fixed.h
+++ b/TAO/TAO_IDL/be_include/be_fixed.h
@@ -17,8 +17,6 @@ public:
virtual int accept (be_visitor *visitor);
virtual void destroy ();
-
- DEF_NARROW_FROM_DECL (be_fixed);
};
#endif
diff --git a/TAO/TAO_IDL/be_include/be_global.h b/TAO/TAO_IDL/be_include/be_global.h
index c989a617de9..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.
@@ -1276,7 +1276,6 @@ private:
bool gen_unique_guards_;
/// False by default, these flags trigger code generation
- /// formerly done by the CIAO CIDL compiler.
bool gen_ciao_svnt_;
bool gen_ciao_exec_idl_;
bool gen_ciao_exec_impl_;
diff --git a/TAO/TAO_IDL/be_include/be_helper.h b/TAO/TAO_IDL/be_include/be_helper.h
index eca14482979..1acdf87dbc5 100644
--- a/TAO/TAO_IDL/be_include/be_helper.h
+++ b/TAO/TAO_IDL/be_include/be_helper.h
@@ -17,10 +17,8 @@
#include "ace/CDR_Base.h"
#include "ace/SString.h"
-#if defined (ACE_HAS_CPP11)
#include "ace/OS_NS_stdio.h"
#include <type_traits>
-#endif /* ACE_HAS_CPP11 */
class Identifier;
class UTL_IdList;
@@ -30,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 ();
};
/**
@@ -125,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,
@@ -137,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
@@ -151,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, ...)
@@ -169,10 +167,9 @@ public:
bool add_stream_type_suffix = true);
/// Generate an endif statement
- int gen_endif (void);
+ int gen_endif ();
// =overloaded operators
-#if defined (ACE_HAS_CPP11)
// Avoid duplication for the underlying type of size_t
template <typename Dummy = TAO_OutStream &>
typename std::enable_if<std::is_same<Dummy, TAO_OutStream &>::value &&
@@ -187,7 +184,6 @@ public:
return *this;
}
-#endif /* ACE_HAS_CPP11 */
TAO_OutStream &operator<< (const char *str);
TAO_OutStream &operator<< (const ACE_CString &str);
diff --git a/TAO/TAO_IDL/be_include/be_home.h b/TAO/TAO_IDL/be_include/be_home.h
index 23f86e45805..7f4156fdfe4 100644
--- a/TAO/TAO_IDL/be_include/be_home.h
+++ b/TAO/TAO_IDL/be_include/be_home.h
@@ -35,20 +35,15 @@ 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);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL (be_home);
- DEF_NARROW_FROM_SCOPE (be_home);
};
#endif // if !defined
diff --git a/TAO/TAO_IDL/be_include/be_interface.h b/TAO/TAO_IDL/be_include/be_interface.h
index 7edeb963495..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,28 +148,23 @@ 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);
- // Narrowing.
-
- DEF_NARROW_FROM_DECL (be_interface);
- DEF_NARROW_FROM_SCOPE (be_interface);
-
/// Helper method passed to the template method that generates code for the
/// is_a method.
static int is_a_helper (be_interface *,
@@ -242,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
@@ -257,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.
@@ -432,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 912d2868972..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,13 +41,10 @@ public:
virtual void seen_in_operation (bool val);
/// Cleanup function.
- virtual void destroy (void);
+ virtual void destroy ();
// Visiting.
virtual int accept (be_visitor* visitor);
-
- // Narrowing.
- DEF_NARROW_FROM_DECL (be_interface_fwd);
};
#endif // if !defined
diff --git a/TAO/TAO_IDL/be_include/be_mirror_port.h b/TAO/TAO_IDL/be_include/be_mirror_port.h
index 494d1a2676c..aa2737c7e29 100644
--- a/TAO/TAO_IDL/be_include/be_mirror_port.h
+++ b/TAO/TAO_IDL/be_include/be_mirror_port.h
@@ -31,13 +31,11 @@ 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);
-
- DEF_NARROW_FROM_DECL (be_mirror_port);
};
#endif // BE_MIRROR_PORT_H
diff --git a/TAO/TAO_IDL/be_include/be_module.h b/TAO/TAO_IDL/be_include/be_module.h
index 8eea3b7c2d2..9fe8eb3118b 100644
--- a/TAO/TAO_IDL/be_include/be_module.h
+++ b/TAO/TAO_IDL/be_include/be_module.h
@@ -28,14 +28,10 @@ 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);
-
- // Narrowing.
- DEF_NARROW_FROM_DECL (be_module);
- DEF_NARROW_FROM_SCOPE (be_module);
};
#endif
diff --git a/TAO/TAO_IDL/be_include/be_native.h b/TAO/TAO_IDL/be_include/be_native.h
index a39e6238858..1a39721737a 100644
--- a/TAO/TAO_IDL/be_include/be_native.h
+++ b/TAO/TAO_IDL/be_include/be_native.h
@@ -30,22 +30,19 @@ 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);
-
- // Narrowing.
- DEF_NARROW_FROM_DECL(be_native);
};
#endif /* BE_NATIVE_H */
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 9e0481f35a0..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,19 +49,15 @@ 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);
- // Narrowing
- DEF_NARROW_FROM_DECL (be_operation);
- DEF_NARROW_FROM_SCOPE (be_operation);
-
protected:
bool is_sendc_ami_;
bool is_excep_ami_;
diff --git a/TAO/TAO_IDL/be_include/be_param_holder.h b/TAO/TAO_IDL/be_include/be_param_holder.h
index a0817afce82..2eecadb9e4a 100644
--- a/TAO/TAO_IDL/be_include/be_param_holder.h
+++ b/TAO/TAO_IDL/be_include/be_param_holder.h
@@ -26,13 +26,10 @@ public:
be_param_holder (UTL_ScopedName *parameter_name,
FE_Utils::T_Param_Info *info);
- virtual ~be_param_holder (void);
-
- // Narrowing.
- DEF_NARROW_FROM_DECL (be_param_holder);
+ 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 c0a80088b0e..4a0464e3083 100644
--- a/TAO/TAO_IDL/be_include/be_porttype.h
+++ b/TAO/TAO_IDL/be_include/be_porttype.h
@@ -31,14 +31,11 @@ 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);
-
- DEF_NARROW_FROM_DECL (be_porttype);
- DEF_NARROW_FROM_SCOPE (be_porttype);
};
#endif // BE_PORTTYPE_H
diff --git a/TAO/TAO_IDL/be_include/be_predefined_type.h b/TAO/TAO_IDL/be_include/be_predefined_type.h
index 4695502db95..026095fd4e6 100644
--- a/TAO/TAO_IDL/be_include/be_predefined_type.h
+++ b/TAO/TAO_IDL/be_include/be_predefined_type.h
@@ -37,14 +37,11 @@ public:
virtual int accept (be_visitor* visitor);
// Cleanup.
- virtual void destroy (void);
-
- // Narrowing.
- DEF_NARROW_FROM_DECL (be_predefined_type);
+ virtual void destroy ();
protected:
/// Overridden method.
- virtual void compute_tc_name (void);
+ virtual void compute_tc_name ();
// Compute and return the value.
@@ -53,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 cb47d6c2d07..0f73ab08577 100644
--- a/TAO/TAO_IDL/be_include/be_provides.h
+++ b/TAO/TAO_IDL/be_include/be_provides.h
@@ -17,19 +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;
-
- // Narrowing.
- DEF_NARROW_FROM_DECL(be_provides);
+ 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 ea3a41bff47..7a68c3fe304 100644
--- a/TAO/TAO_IDL/be_include/be_publishes.h
+++ b/TAO/TAO_IDL/be_include/be_publishes.h
@@ -16,19 +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;
-
- // Narrowing.
- DEF_NARROW_FROM_DECL(be_publishes);
+ 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 d3ad85aaf57..44a6ac9118c 100644
--- a/TAO/TAO_IDL/be_include/be_root.h
+++ b/TAO/TAO_IDL/be_include/be_root.h
@@ -28,17 +28,13 @@ 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);
-
- // Narrowing.
- DEF_NARROW_FROM_DECL (be_root);
- DEF_NARROW_FROM_SCOPE (be_root);
};
#endif
diff --git a/TAO/TAO_IDL/be_include/be_scope.h b/TAO/TAO_IDL/be_include/be_scope.h
index bbec9484162..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,20 +51,17 @@ 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);
- // Narrowing.
- DEF_NARROW_FROM_SCOPE (be_scope);
-
private:
/// If set, generate a comma after every element is handled.
unsigned short comma_;
diff --git a/TAO/TAO_IDL/be_include/be_sequence.h b/TAO/TAO_IDL/be_include/be_sequence.h
index dcedb4e4155..6d2deb80317 100644
--- a/TAO/TAO_IDL/be_include/be_sequence.h
+++ b/TAO/TAO_IDL/be_include/be_sequence.h
@@ -54,37 +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);
- // Narrowing.
-
- DEF_NARROW_FROM_DECL (be_sequence);
-
/// 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.
@@ -93,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 96db83599b7..0535b0596a4 100644
--- a/TAO/TAO_IDL/be_include/be_string.h
+++ b/TAO/TAO_IDL/be_include/be_string.h
@@ -39,15 +39,11 @@ public:
virtual int accept (be_visitor *visitor);
// Cleanup.
- virtual void destroy (void);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL (be_string);
+ 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 e46236e9b36..cb3014abab6 100644
--- a/TAO/TAO_IDL/be_include/be_structure.h
+++ b/TAO/TAO_IDL/be_include/be_structure.h
@@ -44,15 +44,10 @@ public:
bool use_underscore);
/// Cleanup method.
- virtual void destroy (void);
+ virtual void destroy ();
/// Visiting.
virtual int accept (be_visitor *visitor);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL (be_structure);
- DEF_NARROW_FROM_SCOPE (be_structure);
};
#endif
diff --git a/TAO/TAO_IDL/be_include/be_structure_fwd.h b/TAO/TAO_IDL/be_include/be_structure_fwd.h
index 528e6fae368..25a5ed2f5a5 100644
--- a/TAO/TAO_IDL/be_include/be_structure_fwd.h
+++ b/TAO/TAO_IDL/be_include/be_structure_fwd.h
@@ -32,16 +32,13 @@ 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);
-
- // Narrowing.
- DEF_NARROW_FROM_DECL (be_structure_fwd);
};
#endif // if !defined
diff --git a/TAO/TAO_IDL/be_include/be_template_module.h b/TAO/TAO_IDL/be_include/be_template_module.h
index d797cd62c7b..7ca8bb91071 100644
--- a/TAO/TAO_IDL/be_include/be_template_module.h
+++ b/TAO/TAO_IDL/be_include/be_template_module.h
@@ -32,14 +32,11 @@ 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);
-
- DEF_NARROW_FROM_DECL (be_template_module);
- DEF_NARROW_FROM_SCOPE (be_template_module);
};
#endif /* TAO_BE_TEMPLATE_MODULE_H */
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 d798651700c..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,13 +14,10 @@ public:
AST_Template_Module *ref,
FE_Utils::T_ARGLIST *template_args);
- virtual ~be_template_module_inst (void);
-
- // Narrowing.
- DEF_NARROW_FROM_DECL (be_template_module_inst);
+ 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 7046a7082fc..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,13 +15,10 @@ public:
AST_Template_Module *ref,
UTL_StrList *param_refs);
- virtual ~be_template_module_ref (void);
-
- // Narrowing.
- DEF_NARROW_FROM_DECL (be_template_module_ref);
+ 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 6039fe8f359..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,21 +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);
- // Narrowing.
-
- DEF_NARROW_FROM_DECL (be_type);
-
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 dc5de3bc184..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,14 +49,10 @@ public:
bool accessor = false);
/// Cleanup function.
- virtual void destroy (void);
+ virtual void destroy ();
// Visiting.
virtual int accept (be_visitor *visitor);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL (be_typedef);
};
#endif
diff --git a/TAO/TAO_IDL/be_include/be_union.h b/TAO/TAO_IDL/be_include/be_union.h
index 18cc6818480..2ffb8c2a4e0 100644
--- a/TAO/TAO_IDL/be_include/be_union.h
+++ b/TAO/TAO_IDL/be_include/be_union.h
@@ -35,33 +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);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL(be_union);
- DEF_NARROW_FROM_SCOPE(be_union);
+ 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 1eb44df7c8b..e00a9419804 100644
--- a/TAO/TAO_IDL/be_include/be_union_branch.h
+++ b/TAO/TAO_IDL/be_include/be_union_branch.h
@@ -43,10 +43,7 @@ public:
virtual int accept (be_visitor *visitor);
// Cleanup.
- virtual void destroy (void);
-
- // Narrowing.
- DEF_NARROW_FROM_DECL (be_union_branch);
+ 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 4ca5bc30936..76b5673dcc0 100644
--- a/TAO/TAO_IDL/be_include/be_union_fwd.h
+++ b/TAO/TAO_IDL/be_include/be_union_fwd.h
@@ -31,16 +31,13 @@ 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);
-
- // Narrowing.
- DEF_NARROW_FROM_DECL (be_union_fwd);
};
#endif // if !defined
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 8384db531dd..873b0c57f36 100644
--- a/TAO/TAO_IDL/be_include/be_uses.h
+++ b/TAO/TAO_IDL/be_include/be_uses.h
@@ -17,19 +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;
-
- // Narrowing.
- DEF_NARROW_FROM_DECL(be_uses);
+ 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 edad870149e..9ae4448823d 100644
--- a/TAO/TAO_IDL/be_include/be_valuebox.h
+++ b/TAO/TAO_IDL/be_include/be_valuebox.h
@@ -30,10 +30,7 @@ public:
virtual int accept (be_visitor *visitor);
// Cleanup.
- virtual void destroy (void);
-
- // Narrowing
- DEF_NARROW_FROM_DECL (be_valuebox);
+ 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 ce0db7969b1..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,21 +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);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL (be_valuetype);
- DEF_NARROW_FROM_SCOPE (be_valuetype);
+ 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 (
@@ -123,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.
@@ -146,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 355b0998f29..4c0063ce7e9 100644
--- a/TAO/TAO_IDL/be_include/be_valuetype_fwd.h
+++ b/TAO/TAO_IDL/be_include/be_valuetype_fwd.h
@@ -31,16 +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);
-
- // Narrowing.
- DEF_NARROW_FROM_DECL (be_valuetype_fwd);
+ 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_args.cpp b/TAO/TAO_IDL/driver/drv_args.cpp
index f2ef45176fa..94b811bb67a 100644
--- a/TAO/TAO_IDL/driver/drv_args.cpp
+++ b/TAO/TAO_IDL/driver/drv_args.cpp
@@ -118,7 +118,7 @@ DRV_prep_cpp_arg (char *s)
// Print a usage message and exit.
void
-DRV_usage (void)
+DRV_usage ()
{
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("%C: usage: %C [[flag|file] ...] [-- file ...]\n"),
@@ -184,7 +184,7 @@ void
DRV_parse_args (long ac, char **av)
{
ACE_CString buffer;
- char *s = 0;
+ char *s = nullptr;
long i;
bool has_space = false;
@@ -512,7 +512,7 @@ DRV_parse_args (long ac, char **av)
be_util::arg_post_proc ();
// Make sure the output directory is valid.
- if (idl_global->temp_dir () == 0)
+ if (idl_global->temp_dir () == nullptr)
{
ACE_TCHAR tmpdir[MAXPATHLEN + 1];
diff --git a/TAO/TAO_IDL/driver/drv_preproc.cpp b/TAO/TAO_IDL/driver/drv_preproc.cpp
index f23ea5c2d7d..3e02a5c4ac1 100644
--- a/TAO/TAO_IDL/driver/drv_preproc.cpp
+++ b/TAO/TAO_IDL/driver/drv_preproc.cpp
@@ -90,9 +90,9 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
// Storage for preprocessor args.
unsigned long const DRV_MAX_ARGCOUNT = 1024;
unsigned long DRV_argcount = 0;
-ACE_TCHAR const * DRV_arglist[DRV_MAX_ARGCOUNT] = { 0 };
+ACE_TCHAR const * DRV_arglist[DRV_MAX_ARGCOUNT] = { nullptr };
-static char const * output_arg_format = 0;
+static char const * output_arg_format = nullptr;
static long output_arg_index = 0;
ACE_TCHAR const TCHAR_DIR_DOT[] = ACE_TEXT(".");
@@ -112,7 +112,7 @@ static char tmp_ifile[MAXPATHLEN + 1] = { 0 };
// Lines can be 1024 chars long intially -
// it will expand as required.
#define LINEBUF_SIZE 1024
-char* drv_line = 0;
+char* drv_line = nullptr;
static size_t drv_line_size = LINEBUF_SIZE + 1;
// Push the new CPP location if we got a -Yp argument.
@@ -140,7 +140,7 @@ DRV_cpp_putarg (const char *str)
if (str && ACE_OS::strchr (str, ' '))
{
- ACE_TCHAR *buf = 0;
+ ACE_TCHAR *buf = nullptr;
ACE_NEW_NORETURN (buf, ACE_TCHAR[ACE_OS::strlen (str) + 3]);
if (buf)
{
@@ -161,11 +161,11 @@ DRV_cpp_putarg (const char *str)
void
DRV_cpp_expand_output_arg (const char *filename)
{
- if (output_arg_format != 0)
+ if (output_arg_format != nullptr)
{
ACE::strdelete (const_cast<ACE_TCHAR *> (
DRV_arglist[output_arg_index]));
- DRV_arglist[output_arg_index] = 0;
+ DRV_arglist[output_arg_index] = nullptr;
ACE_NEW (DRV_arglist[output_arg_index],
ACE_TCHAR [ACE_OS::strlen (output_arg_format)
@@ -181,11 +181,11 @@ DRV_cpp_expand_output_arg (const char *filename)
// calculate the total size of all commandline arguments
unsigned int
-DRV_cpp_calc_total_argsize(void)
+DRV_cpp_calc_total_argsize()
{
unsigned long size = 0;
unsigned long ix = 0;
- while (DRV_arglist[ix] != 0)
+ while (DRV_arglist[ix] != nullptr)
{
size += ACE_Utils::truncate_cast<unsigned long> (ACE_OS::strlen (DRV_arglist[ix]) + 1);
++ix;
@@ -233,7 +233,7 @@ DRV_get_line (FILE *file)
{
// Create a bigger buffer
size_t temp_size = drv_line_size * 2;
- char *temp = 0;
+ char *temp = nullptr;
ACE_NEW_RETURN (temp, char [temp_size], false);
ACE_OS::strcpy (temp, drv_line);
delete [] drv_line;
@@ -251,7 +251,7 @@ DRV_get_line (FILE *file)
// Initialize the cpp argument list.
void
-DRV_cpp_init (void)
+DRV_cpp_init ()
{
// Create the line buffer.
// (JP) Deleting this at the end or DRV_pre_proc() causes
@@ -280,7 +280,7 @@ DRV_cpp_init (void)
const char *platform_cpp_args =
FE_get_cpp_args_from_env ();
- if (platform_cpp_args == 0)
+ if (platform_cpp_args == nullptr)
{
// If no cpp flag was defined by the user, we define some
// platform specific flags here.
@@ -298,11 +298,11 @@ DRV_cpp_init (void)
char* TAO_ROOT = ACE_OS::getenv ("TAO_ROOT");
- if (TAO_ROOT != 0)
+ if (TAO_ROOT != nullptr)
{
DRV_add_include_path (include_path1,
TAO_ROOT,
- 0,
+ nullptr,
true);
DRV_add_include_path (include_path2,
@@ -314,7 +314,7 @@ DRV_cpp_init (void)
{
char* ACE_ROOT = ACE_OS::getenv ("ACE_ROOT");
- if (ACE_ROOT != 0)
+ if (ACE_ROOT != nullptr)
{
DRV_add_include_path (include_path1,
ACE_ROOT,
@@ -343,7 +343,7 @@ DRV_cpp_init (void)
#else
DRV_add_include_path (include_path1,
".",
- 0,
+ nullptr,
true);
#endif /* TAO_IDL_INCLUDE_DIR */
}
@@ -360,13 +360,13 @@ DRV_cpp_init (void)
{
// Check for an argument that specifies
// the preprocessor's output file.
- if (ACE_OS::strstr (platform_arglist[i], ACE_TEXT ("%s")) != 0
- && output_arg_format == 0)
+ if (ACE_OS::strstr (platform_arglist[i], ACE_TEXT ("%s")) != nullptr
+ && output_arg_format == nullptr)
{
output_arg_format =
ACE::strnew (ACE_TEXT_ALWAYS_CHAR (platform_arglist[i]));
output_arg_index = DRV_argcount;
- DRV_cpp_putarg (0);
+ DRV_cpp_putarg (nullptr);
}
else
{
@@ -381,7 +381,7 @@ DRV_sweep_dirs (const char *rel_path,
{
// Zero rel_path means we're not using this option, and
// so we become a no-op.
- if (rel_path == 0)
+ if (rel_path == nullptr)
{
return 0;
}
@@ -400,9 +400,9 @@ DRV_sweep_dirs (const char *rel_path,
bname += rel_path;
bool include_added = false;
char abspath[MAXPATHLEN] = "";
- char *full_path = 0;
+ char *full_path = nullptr;
- for (ACE_DIRENT *dir_entry; (dir_entry = dir.read ()) != 0;)
+ for (ACE_DIRENT *dir_entry; (dir_entry = dir.read ()) != nullptr;)
{
// Skip the ".." and "." files in each directory.
if (ACE::isdotdir (dir_entry->d_name) == true)
@@ -448,7 +448,7 @@ DRV_sweep_dirs (const char *rel_path,
idl_global->add_rel_include_path (bname.c_str ());
full_path = ACE_OS::realpath ("", abspath);
- if (full_path != 0)
+ if (full_path != nullptr)
{
idl_global->add_include_path (full_path,
false);
@@ -492,7 +492,7 @@ DRV_add_include_path (ACE_CString& include_path,
const char *suffix,
bool is_system)
{
- if (path == 0)
+ if (path == nullptr)
{
return include_path;
}
@@ -530,7 +530,7 @@ DRV_add_include_path (ACE_CString& include_path,
) )
);
- if (suffix != 0)
+ if (suffix != nullptr)
{
if (!include_path.length ()
&& ((nativeDir == *suffix) || (foreignDir == *suffix)))
@@ -580,7 +580,7 @@ DRV_add_include_path (ACE_CString& include_path,
// Adds additional include paths, but after parse_args() has
// added user-defined include paths.
void
-DRV_cpp_post_init (void)
+DRV_cpp_post_init ()
{
// Add include path for TAO_ROOT/orbsvcs.
char* TAO_ROOT = ACE_OS::getenv ("TAO_ROOT");
@@ -589,7 +589,7 @@ DRV_cpp_post_init (void)
// When adding new dirs here don't forget to update
// FE_Utils::validate_orb_include accordingly.
- if (TAO_ROOT != 0)
+ if (TAO_ROOT != nullptr)
{
DRV_add_include_path (include_path3,
TAO_ROOT,
@@ -601,7 +601,7 @@ DRV_cpp_post_init (void)
// If TAO_ROOT isn't defined, assume it's under ACE_ROOT.
char* ACE_ROOT = ACE_OS::getenv ("ACE_ROOT");
- if (ACE_ROOT != 0)
+ if (ACE_ROOT != nullptr)
{
DRV_add_include_path (include_path3,
ACE_ROOT,
@@ -620,7 +620,7 @@ DRV_cpp_post_init (void)
// be a warning from DRV_preproc().
DRV_add_include_path (include_path3,
".",
- 0,
+ nullptr,
true);
#endif /* TAO_IDL_INCLUDE_DIR */
}
@@ -631,11 +631,11 @@ DRV_cpp_post_init (void)
// When adding new dirs here don't forget to update
// FE_Utils::validate_orb_include accordingly.
- if (CIAO_ROOT != 0)
+ if (CIAO_ROOT != nullptr)
{
DRV_add_include_path (include_path4,
CIAO_ROOT,
- 0,
+ nullptr,
true);
DRV_add_include_path (include_path5,
@@ -656,7 +656,7 @@ DRV_cpp_post_init (void)
// have to be restored.
char cwd_path[MAXPATHLEN];
- if (ACE_OS::getcwd (cwd_path, sizeof (cwd_path)) == 0)
+ if (ACE_OS::getcwd (cwd_path, sizeof (cwd_path)) == nullptr)
{
ACE_ERROR ((LM_ERROR,
"DRV_cpp_post_init: ACE_OS::getcwd failed\n"));
@@ -906,15 +906,15 @@ namespace
} // End of local/internal namespace
void
-DRV_get_orb_idl_includes (void)
+DRV_get_orb_idl_includes ()
{
static char const orb_idl[] = "tao/orb.idl";
// Search for orb.idl in supplied include file search paths.
- char const * directory = 0;
+ char const * directory = nullptr;
FILE * fp = FE_Utils::open_included_file (orb_idl, directory);
- if (fp == 0)
+ if (fp == nullptr)
{
// Fall back on $TAO_ROOT/tao/orb.idl if orb.idl is not in the
// include path.
@@ -924,7 +924,7 @@ DRV_get_orb_idl_includes (void)
fp = ACE_OS::fopen (orb_idl_path.c_str (), "r");
- if (fp == 0)
+ if (fp == nullptr)
{
ACE_ERROR ((LM_ERROR,
"TAO_IDL: cannot open or find file: %C\n",
@@ -959,7 +959,7 @@ DRV_copy_input (FILE *fin,
const char *fn,
const char *orig_filename)
{
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR ((LM_ERROR,
"%C: cannot open temp file \"%C\" for copying from \"%C\": %p\n",
@@ -970,7 +970,7 @@ DRV_copy_input (FILE *fin,
throw Bailout ();
}
- if (fin == 0)
+ if (fin == nullptr)
{
ACE_ERROR ((LM_ERROR,
"%C: cannot open input file\n",
@@ -1035,9 +1035,9 @@ DRV_stripped_name (char *fn)
char *n = fn;
size_t l;
- if (n == 0)
+ if (n == nullptr)
{
- return 0;
+ return nullptr;
}
l = ACE_OS::strlen (n);
@@ -1132,13 +1132,12 @@ DRV_pre_proc (const char *myfile)
// Rename temporary files so that they have extensions accepted
// by the preprocessor.
-
FILE * const file = ACE_OS::fopen (myfile, "r");
- if (file == 0)
+ if (file == nullptr)
{
ACE_ERROR ((LM_ERROR,
- "%C: Unable to open file : %p\n",
+ "%C: ERROR: Unable to open file : %p\n",
idl_global->prog_name (),
myfile));
@@ -1153,7 +1152,7 @@ DRV_pre_proc (const char *myfile)
myfile);
ACE_OS::fclose (file);
- UTL_String *utl_string = 0;
+ UTL_String *utl_string = nullptr;
#if defined (ACE_OPENVMS)
{
@@ -1187,13 +1186,13 @@ DRV_pre_proc (const char *myfile)
ACE_Auto_String_Free safety (ACE_OS::strdup (myfile));
- UTL_String *stripped_tmp = 0;
+ UTL_String *stripped_tmp = nullptr;
ACE_NEW (stripped_tmp,
UTL_String (DRV_stripped_name (safety.get ()), true));
idl_global->set_stripped_filename (stripped_tmp);
- UTL_String *real_tmp = 0;
+ UTL_String *real_tmp = nullptr;
ACE_NEW (real_tmp,
UTL_String (t_ifile, true));
@@ -1205,14 +1204,14 @@ DRV_pre_proc (const char *myfile)
DRV_cpp_expand_output_arg (t_file);
DRV_cpp_putarg (t_ifile);
- DRV_cpp_putarg (0); // Null terminate the DRV_arglist.
+ DRV_cpp_putarg (nullptr); // Null terminate the DRV_arglist.
// For complex builds, the default
// command line buffer size of 1024
// 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,
@@ -1267,7 +1266,7 @@ DRV_pre_proc (const char *myfile)
ACE_HANDLE fd = ACE_INVALID_HANDLE;
- if (output_arg_format == 0)
+ if (output_arg_format == nullptr)
{
// If the following open() fails, then we're either being hit with a
// symbolic link attack, or another process opened the file before
@@ -1348,7 +1347,7 @@ DRV_pre_proc (const char *myfile)
DRV_argcount -= 2;
ACE::strdelete (
const_cast<ACE_TCHAR *> (DRV_arglist[DRV_argcount]));
- DRV_arglist[DRV_argcount] = 0;
+ DRV_arglist[DRV_argcount] = nullptr;
ACE_exitcode status = 0;
if (process.wait (&status) == ACE_INVALID_PID)
@@ -1407,7 +1406,7 @@ DRV_pre_proc (const char *myfile)
FILE * const yyin = ACE_OS::fopen (t_file, "r");
- if (yyin == 0)
+ if (yyin == nullptr)
{
ACE_ERROR ((LM_ERROR,
"%C: Could not open cpp "
@@ -1428,7 +1427,7 @@ DRV_pre_proc (const char *myfile)
char buffer[ACE_MAXLOGMSGLEN];
size_t bytes;
- if (preproc == 0)
+ if (preproc == nullptr)
{
ACE_ERROR ((LM_ERROR,
"%C: Could not open cpp "
diff --git a/TAO/TAO_IDL/fe/fe_component_header.cpp b/TAO/TAO_IDL/fe/fe_component_header.cpp
index 0fc0f6e1355..f7a8a4f2795 100644
--- a/TAO/TAO_IDL/fe/fe_component_header.cpp
+++ b/TAO/TAO_IDL/fe/fe_component_header.cpp
@@ -20,42 +20,42 @@ FE_ComponentHeader::FE_ComponentHeader (UTL_ScopedName *n,
false,
false,
false),
- base_component_ (0)
+ base_component_ (nullptr)
{
this->compile_inheritance (base_component);
this->compile_supports (supports);
}
-FE_ComponentHeader::~FE_ComponentHeader (void)
+FE_ComponentHeader::~FE_ComponentHeader ()
{
}
AST_Component *
-FE_ComponentHeader::base_component (void) const
+FE_ComponentHeader::base_component () const
{
return this->base_component_;
}
AST_Type **
-FE_ComponentHeader::supports (void) const
+FE_ComponentHeader::supports () const
{
return this->inherits_;
}
long
-FE_ComponentHeader::n_supports (void) const
+FE_ComponentHeader::n_supports () const
{
return this->n_inherits_;
}
AST_Interface **
-FE_ComponentHeader::supports_flat (void) const
+FE_ComponentHeader::supports_flat () const
{
return this->inherits_flat_;
}
long
-FE_ComponentHeader::n_supports_flat (void) const
+FE_ComponentHeader::n_supports_flat () const
{
return this->n_inherits_flat_;
}
@@ -65,7 +65,7 @@ FE_ComponentHeader::compile_inheritance (UTL_ScopedName *base_component)
{
// If there is a base component, look up the decl and assign our member.
// We also inherit its supported interfaces.
- if (base_component == 0)
+ if (base_component == nullptr)
{
return;
}
@@ -74,7 +74,7 @@ FE_ComponentHeader::compile_inheritance (UTL_ScopedName *base_component)
AST_Decl *d = s->lookup_by_name (base_component,
true);
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error (base_component);
@@ -85,12 +85,12 @@ FE_ComponentHeader::compile_inheritance (UTL_ScopedName *base_component)
if (d->node_type () == AST_Decl::NT_typedef)
{
- d = AST_Typedef::narrow_from_decl (d)->primitive_base_type ();
+ d = dynamic_cast<AST_Typedef*> (d)->primitive_base_type ();
}
- this->base_component_ = AST_Component::narrow_from_decl (d);
+ this->base_component_ = dynamic_cast<AST_Component*> (d);
- if (this->base_component_ == 0)
+ if (this->base_component_ == nullptr)
{
idl_global->err ()->error1 (UTL_Error::EIDL_ILLEGAL_USE,
d);
@@ -101,22 +101,22 @@ FE_ComponentHeader::compile_inheritance (UTL_ScopedName *base_component)
this->name (),
this->base_component_
);
- this->base_component_ = 0;
+ this->base_component_ = nullptr;
}
}
void
FE_ComponentHeader::compile_supports (UTL_NameList *supports)
{
- if (supports == 0)
+ if (supports == nullptr)
{
return;
}
- AST_Decl *d = 0;
- UTL_ScopedName *item = 0;
- AST_Interface *iface = 0;
- AST_Type *t = 0;
+ AST_Decl *d = nullptr;
+ UTL_ScopedName *item = nullptr;
+ AST_Interface *iface = nullptr;
+ AST_Type *t = nullptr;
long j = 0;
long k = 0;
@@ -128,7 +128,7 @@ FE_ComponentHeader::compile_supports (UTL_NameList *supports)
item = l.item ();
// Check that scope stack is valid.
- if (idl_global->scopes ().top () == 0)
+ if (idl_global->scopes ().top () == nullptr)
{
idl_global->err ()->lookup_error (item);
@@ -142,20 +142,20 @@ FE_ComponentHeader::compile_supports (UTL_NameList *supports)
d = s->lookup_by_name (item, true);
- if (d == 0)
+ if (d == nullptr)
{
AST_Decl *sad = ScopeAsDecl (s);
if (sad->node_type () == AST_Decl::NT_module)
{
- AST_Module *m = AST_Module::narrow_from_decl (sad);
+ AST_Module *m = dynamic_cast<AST_Module*> (sad);
d = m->look_in_prev_mods_local (item->last_component ());
}
}
// Not found?
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error (item);
@@ -167,15 +167,15 @@ FE_ComponentHeader::compile_supports (UTL_NameList *supports)
// Remove typedefs, if any.
if (d->node_type () == AST_Decl::NT_typedef)
{
- d = AST_Typedef::narrow_from_decl (d)->primitive_base_type ();
+ d = dynamic_cast<AST_Typedef*> (d)->primitive_base_type ();
}
AST_Decl::NodeType nt = d->node_type ();
- t = AST_Type::narrow_from_decl (d);
+ t = dynamic_cast<AST_Type*> (d);
if (nt == AST_Decl::NT_interface)
{
- iface = AST_Interface::narrow_from_decl (d);
+ iface = dynamic_cast<AST_Interface*> (d);
// Undefined interface?
if (!iface->is_defined ())
@@ -200,7 +200,7 @@ FE_ComponentHeader::compile_supports (UTL_NameList *supports)
else if (nt == AST_Decl::NT_param_holder)
{
AST_Param_Holder *ph =
- AST_Param_Holder::narrow_from_decl (d);
+ dynamic_cast<AST_Param_Holder*> (d);
nt = ph->info ()->type_;
diff --git a/TAO/TAO_IDL/fe/fe_declarator.cpp b/TAO/TAO_IDL/fe/fe_declarator.cpp
index d0de342fbb5..0bfee7929b2 100644
--- a/TAO/TAO_IDL/fe/fe_declarator.cpp
+++ b/TAO/TAO_IDL/fe/fe_declarator.cpp
@@ -87,23 +87,23 @@ FE_Declarator::FE_Declarator (UTL_ScopedName *n,
AST_Type *
FE_Declarator::compose (AST_Decl *d)
{
- AST_Type *ct = AST_Type::narrow_from_decl (d);
+ AST_Type *ct = dynamic_cast<AST_Type*> (d);
- if (ct == 0)
+ if (ct == nullptr)
{
idl_global->err ()->not_a_type (d);
- return 0;
+ return nullptr;
}
else if (ct->node_type () == AST_Decl::NT_param_holder)
{
AST_Param_Holder *ph =
- AST_Param_Holder::narrow_from_decl (ct);
+ dynamic_cast<AST_Param_Holder*> (ct);
// Every other template parameter kind is legal.
if (ph->info ()->type_ == AST_Decl::NT_const)
{
idl_global->err ()->not_a_type (d);
- return 0;
+ return nullptr;
}
}
@@ -119,11 +119,11 @@ FE_Declarator::compose (AST_Decl *d)
idl_global->err ()->error1 (UTL_Error::EIDL_ILLEGAL_ADD,
d);
- return 0;
+ return nullptr;
}
}
- AST_Array *arr = 0;
+ AST_Array *arr = nullptr;
// All uses of forward declared types must
// not have a different prefix from the place of declaration.
@@ -138,7 +138,7 @@ FE_Declarator::compose (AST_Decl *d)
scope = ScopeAsDecl (scope->defined_in ());
// Are we at global scope?
- if (scope == 0)
+ if (scope == nullptr)
{
break;
}
@@ -171,14 +171,14 @@ FE_Declarator::compose (AST_Decl *d)
*/
}
- if (this->pd_decl_type == FD_simple || this->pd_complex_part == 0)
+ if (this->pd_decl_type == FD_simple || this->pd_complex_part == nullptr)
{
return ct;
}
if (this->pd_complex_part->node_type () == AST_Decl::NT_array)
{
- arr = AST_Array::narrow_from_decl (this->pd_complex_part);
+ arr = dynamic_cast<AST_Array*> (this->pd_complex_part);
// The base type of an array isn't set until after the array
// has been created, so the check below gets done at this point.
@@ -194,36 +194,36 @@ FE_Declarator::compose (AST_Decl *d)
}
// We shouldn't get here.
- return 0;
+ return nullptr;
}
void
-FE_Declarator::destroy (void)
+FE_Declarator::destroy ()
{
if (pd_name)
{
this->pd_name->destroy ();
delete this->pd_name;
- this->pd_name = 0;
+ this->pd_name = nullptr;
}
}
// Data accessors.
AST_Decl *
-FE_Declarator::complex_part (void)
+FE_Declarator::complex_part ()
{
return this->pd_complex_part;
}
UTL_ScopedName *
-FE_Declarator::name (void)
+FE_Declarator::name ()
{
return this->pd_name;
}
FE_Declarator::DeclaratorType
-FE_Declarator::decl_type (void)
+FE_Declarator::decl_type ()
{
return this->pd_decl_type;
}
diff --git a/TAO/TAO_IDL/fe/fe_extern.cpp b/TAO/TAO_IDL/fe/fe_extern.cpp
index 440d81cdc3c..0acc50532f7 100644
--- a/TAO/TAO_IDL/fe/fe_extern.cpp
+++ b/TAO/TAO_IDL/fe/fe_extern.cpp
@@ -77,7 +77,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "ace/UUID.h"
-extern int tao_yyparse (void);
+extern int tao_yyparse ();
#ifdef USE_MCPP_BUFFER_LEXING
char *tao_preproc_buffer = 0;
@@ -88,7 +88,7 @@ extern FILE *tao_yyin;
#endif /* USE_MCPP_BUFFER_LEXING */
int
-FE_yyparse (void)
+FE_yyparse ()
{
int const result = tao_yyparse ();
@@ -130,23 +130,23 @@ FE_set_yyin (FILE * f)
// Constructor interfaces.
UTL_Error *
-FE_new_UTL_Error (void)
+FE_new_UTL_Error ()
{
- UTL_Error *retval = 0;
+ UTL_Error *retval = nullptr;
ACE_NEW_RETURN (retval,
UTL_Error,
- 0);
+ nullptr);
return retval;
}
UTL_Indenter *
-FE_new_UTL_Indenter (void)
+FE_new_UTL_Indenter ()
{
- UTL_Indenter *retval = 0;
+ UTL_Indenter *retval = nullptr;
ACE_NEW_RETURN (retval,
UTL_Indenter,
- 0);
+ nullptr);
return retval;
}
diff --git a/TAO/TAO_IDL/fe/fe_global.cpp b/TAO/TAO_IDL/fe/fe_global.cpp
index dc644b404a4..d863dcb9b11 100644
--- a/TAO/TAO_IDL/fe/fe_global.cpp
+++ b/TAO/TAO_IDL/fe/fe_global.cpp
@@ -1,3 +1,3 @@
#include "global_extern.h"
-IDL_GlobalData *idl_global = 0;
+IDL_GlobalData *idl_global = nullptr;
diff --git a/TAO/TAO_IDL/fe/fe_home_header.cpp b/TAO/TAO_IDL/fe/fe_home_header.cpp
index 2fd9f9a1f3c..f5268bba4e8 100644
--- a/TAO/TAO_IDL/fe/fe_home_header.cpp
+++ b/TAO/TAO_IDL/fe/fe_home_header.cpp
@@ -15,11 +15,11 @@ FE_HomeHeader::FE_HomeHeader (UTL_ScopedName *n,
UTL_ScopedName *managed_component,
UTL_ScopedName *primary_key)
: FE_ComponentHeader (n,
- 0,
+ nullptr,
supports,
false),
- base_home_ (0),
- primary_key_ (0)
+ base_home_ (nullptr),
+ primary_key_ (nullptr)
{
// No need to call compile_supports(), it got done in
// the call to the base class FE_ComponentHeader.
@@ -28,24 +28,24 @@ FE_HomeHeader::FE_HomeHeader (UTL_ScopedName *n,
this->compile_primary_key (primary_key);
}
-FE_HomeHeader::~FE_HomeHeader (void)
+FE_HomeHeader::~FE_HomeHeader ()
{
}
AST_Home *
-FE_HomeHeader::base_home (void) const
+FE_HomeHeader::base_home () const
{
return this->base_home_;
}
AST_Component *
-FE_HomeHeader::managed_component (void) const
+FE_HomeHeader::managed_component () const
{
return this->managed_component_;
}
AST_Type *
-FE_HomeHeader::primary_key (void) const
+FE_HomeHeader::primary_key () const
{
return this->primary_key_;
}
@@ -53,7 +53,7 @@ FE_HomeHeader::primary_key (void) const
void
FE_HomeHeader::compile_inheritance (UTL_ScopedName *base_home)
{
- if (base_home == 0)
+ if (base_home == nullptr)
{
return;
}
@@ -62,7 +62,7 @@ FE_HomeHeader::compile_inheritance (UTL_ScopedName *base_home)
AST_Decl *d = s->lookup_by_name (base_home,
true);
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error (base_home);
@@ -73,12 +73,12 @@ FE_HomeHeader::compile_inheritance (UTL_ScopedName *base_home)
if (d->node_type () == AST_Decl::NT_typedef)
{
- d = AST_Typedef::narrow_from_decl (d)->primitive_base_type ();
+ d = dynamic_cast<AST_Typedef*> (d)->primitive_base_type ();
}
- this->base_home_ = AST_Home::narrow_from_decl (d);
+ this->base_home_ = dynamic_cast<AST_Home*> (d);
- if (this->base_home_ == 0)
+ if (this->base_home_ == nullptr)
{
idl_global->err ()->inheritance_error (this->name (), d);
}
@@ -88,7 +88,7 @@ void
FE_HomeHeader::compile_managed_component (
UTL_ScopedName *mc_name)
{
- if (mc_name == 0)
+ if (mc_name == nullptr)
{
return;
}
@@ -97,7 +97,7 @@ FE_HomeHeader::compile_managed_component (
AST_Decl *d = s->lookup_by_name (mc_name,
true);
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error (mc_name);
@@ -108,12 +108,12 @@ FE_HomeHeader::compile_managed_component (
if (d->node_type () == AST_Decl::NT_typedef)
{
- d = AST_Typedef::narrow_from_decl (d)->primitive_base_type ();
+ d = dynamic_cast<AST_Typedef*> (d)->primitive_base_type ();
}
- this->managed_component_ = AST_Component::narrow_from_decl (d);
+ this->managed_component_ = dynamic_cast<AST_Component*> (d);
- if (this->managed_component_ == 0)
+ if (this->managed_component_ == nullptr)
{
idl_global->err ()->error1 (UTL_Error::EIDL_ILLEGAL_USE,
d);
@@ -123,7 +123,7 @@ FE_HomeHeader::compile_managed_component (
void
FE_HomeHeader::compile_primary_key (UTL_ScopedName *primary_key)
{
- if (primary_key == 0)
+ if (primary_key == nullptr)
{
return;
}
@@ -132,7 +132,7 @@ FE_HomeHeader::compile_primary_key (UTL_ScopedName *primary_key)
AST_Decl *d = s->lookup_by_name (primary_key,
true);
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error (primary_key);
@@ -145,12 +145,12 @@ FE_HomeHeader::compile_primary_key (UTL_ScopedName *primary_key)
if (nt == AST_Decl::NT_typedef)
{
- d = AST_Typedef::narrow_from_decl (d)->primitive_base_type ();
+ d = dynamic_cast<AST_Typedef*> (d)->primitive_base_type ();
}
- this->primary_key_ = AST_Type::narrow_from_decl (d);
+ this->primary_key_ = dynamic_cast<AST_Type*> (d);
- if (this->primary_key_ == 0)
+ if (this->primary_key_ == nullptr)
{
idl_global->err ()->valuetype_expected (d);
}
@@ -163,7 +163,7 @@ FE_HomeHeader::compile_primary_key (UTL_ScopedName *primary_key)
case AST_Decl::NT_param_holder:
{
AST_Param_Holder *ph =
- AST_Param_Holder::narrow_from_decl (d);
+ dynamic_cast<AST_Param_Holder*> (d);
nt = ph->info ()->type_;
diff --git a/TAO/TAO_IDL/fe/fe_init.cpp b/TAO/TAO_IDL/fe/fe_init.cpp
index ce7b65beb8b..24c8284bf4d 100644
--- a/TAO/TAO_IDL/fe/fe_init.cpp
+++ b/TAO/TAO_IDL/fe/fe_init.cpp
@@ -79,17 +79,17 @@ const size_t LOCAL_ESCAPES_BUFFER_SIZE = 1024;
// Populate the global scope with all predefined entities.
void
-fe_populate_global_scope (void)
+fe_populate_global_scope ()
{
// No need to created a scoped name for the basic types, the
// AST_PredefinedType constructor will do that.
- AST_PredefinedType *pdt = 0;
+ AST_PredefinedType *pdt = nullptr;
AST_Root *root =
- AST_Root::narrow_from_scope (idl_global->root ());
+ dynamic_cast<AST_Root*> (idl_global->root ());
Identifier void_id ("void");
- UTL_ScopedName void_name (&void_id, 0);
+ UTL_ScopedName void_name (&void_id, nullptr);
pdt =
idl_global->gen ()->create_predefined_type (
@@ -104,7 +104,7 @@ fe_populate_global_scope (void)
idl_global->pragma_prefixes ().push (prefix);
Identifier corba_id ("CORBA");
- UTL_ScopedName sn (&corba_id, 0);
+ UTL_ScopedName sn (&corba_id, nullptr);
AST_Module *m =
idl_global->gen ()->create_module (root, &sn);
@@ -115,103 +115,103 @@ fe_populate_global_scope (void)
pdt =
idl_global->gen ()->create_predefined_type (
AST_PredefinedType::PT_long,
- 0);
+ nullptr);
m->fe_add_predefined_type (pdt);
pdt =
idl_global->gen ()->create_predefined_type (
AST_PredefinedType::PT_ulong,
- 0);
+ nullptr);
m->fe_add_predefined_type (pdt);
pdt =
idl_global->gen ()->create_predefined_type (
AST_PredefinedType::PT_longlong,
- 0);
+ nullptr);
m->fe_add_predefined_type(pdt);
pdt =
idl_global->gen ()->create_predefined_type (
AST_PredefinedType::PT_ulonglong,
- 0);
+ nullptr);
m->fe_add_predefined_type (pdt);
pdt =
idl_global->gen ()->create_predefined_type (
AST_PredefinedType::PT_short,
- 0);
+ nullptr);
m->fe_add_predefined_type (pdt);
pdt =
idl_global->gen ()->create_predefined_type (
AST_PredefinedType::PT_ushort,
- 0);
+ nullptr);
m->fe_add_predefined_type (pdt);
pdt =
idl_global->gen ()->create_predefined_type (
AST_PredefinedType::PT_float,
- 0);
+ nullptr);
m->fe_add_predefined_type (pdt);
pdt =
idl_global->gen ()->create_predefined_type (
AST_PredefinedType::PT_double,
- 0);
+ nullptr);
m->fe_add_predefined_type (pdt);
pdt =
idl_global->gen ()->create_predefined_type (
AST_PredefinedType::PT_longdouble,
- 0);
+ nullptr);
m->fe_add_predefined_type (pdt);
pdt =
idl_global->gen ()->create_predefined_type (
AST_PredefinedType::PT_char,
- 0);
+ nullptr);
m->fe_add_predefined_type (pdt);
pdt =
idl_global->gen ()->create_predefined_type (
AST_PredefinedType::PT_wchar,
- 0);
+ nullptr);
m->fe_add_predefined_type (pdt);
pdt =
idl_global->gen ()->create_predefined_type (
AST_PredefinedType::PT_octet,
- 0);
+ nullptr);
m->fe_add_predefined_type (pdt);
pdt =
idl_global->gen ()->create_predefined_type (
AST_PredefinedType::PT_any,
- 0);
+ nullptr);
m->fe_add_predefined_type (pdt);
pdt =
idl_global->gen ()->create_predefined_type (
AST_PredefinedType::PT_boolean,
- 0);
+ nullptr);
m->fe_add_predefined_type (pdt);
Identifier Object_id ("Object");
- UTL_ScopedName Object_name (&Object_id, 0);
+ UTL_ScopedName Object_name (&Object_id, nullptr);
pdt =
idl_global->gen ()->create_predefined_type (
@@ -223,7 +223,7 @@ fe_populate_global_scope (void)
// Add these to make all keywords protected even in different spellings
Identifier ValueBase_id ("ValueBase");
- UTL_ScopedName ValueBase_name (&ValueBase_id, 0);
+ UTL_ScopedName ValueBase_name (&ValueBase_id, nullptr);
pdt =
idl_global->gen ()->create_predefined_type (
@@ -233,7 +233,7 @@ fe_populate_global_scope (void)
m->fe_add_predefined_type (pdt);
Identifier AbstractBase_id ("AbstractBase");
- UTL_ScopedName AbstractBase_name (&AbstractBase_id, 0);
+ UTL_ScopedName AbstractBase_name (&AbstractBase_id, nullptr);
pdt =
idl_global->gen ()->create_predefined_type (
@@ -243,7 +243,7 @@ fe_populate_global_scope (void)
m->fe_add_predefined_type (pdt);
Identifier TypeCode_id ("TypeCode");
- UTL_ScopedName TypeCode_name (&TypeCode_id, 0);
+ UTL_ScopedName TypeCode_name (&TypeCode_id, nullptr);
pdt =
idl_global->gen ()->create_predefined_type (
@@ -252,7 +252,7 @@ fe_populate_global_scope (void)
m->fe_add_predefined_type (pdt);
- char *trash = 0;
+ char *trash = nullptr;
idl_global->pragma_prefixes ().pop (trash);
ACE::strdelete (trash);
}
@@ -260,7 +260,7 @@ fe_populate_global_scope (void)
// Populate idl_global's hash map with upper case versions of
// all the IDL keywords
void
-fe_populate_idl_keywords (void)
+fe_populate_idl_keywords ()
{
static const char *keywords[] =
{
@@ -353,26 +353,26 @@ fe_populate_idl_keywords (void)
// FE initialization
void
-FE_init (void)
+FE_init ()
{
// Initialize FE global data object.
ACE_NEW (idl_global,
IDL_GlobalData);
// Initialize some of its data.
- idl_global->set_root (0);
- idl_global->set_gen (0);
+ idl_global->set_root (nullptr);
+ idl_global->set_gen (nullptr);
idl_global->set_err (FE_new_UTL_Error ());
idl_global->set_err_count (0);
idl_global->set_indent (FE_new_UTL_Indenter ());
- idl_global->set_filename (0);
- idl_global->set_main_filename (0);
- idl_global->set_real_filename (0);
- idl_global->set_stripped_filename (0);
+ idl_global->set_filename (nullptr);
+ idl_global->set_main_filename (nullptr);
+ idl_global->set_real_filename (nullptr);
+ idl_global->set_stripped_filename (nullptr);
idl_global->set_import (true);
idl_global->set_in_main_file (false);
idl_global->set_lineno (-1);
- idl_global->set_prog_name (0);
+ idl_global->set_prog_name (nullptr);
char local_escapes[LOCAL_ESCAPES_BUFFER_SIZE];
ACE_OS::memset (&local_escapes,
@@ -381,7 +381,7 @@ FE_init (void)
idl_global->set_local_escapes (local_escapes);
idl_global->set_compile_flags (0);
- idl_global->set_include_file_names (0);
+ idl_global->set_include_file_names (nullptr);
idl_global->set_n_include_file_names (0);
idl_global->set_parse_state (IDL_GlobalData::PS_NoState);
idl_global->preserve_cpp_keywords (false);
@@ -391,12 +391,12 @@ FE_init (void)
}
void
-FE_populate (void)
+FE_populate ()
{
- AST_Root *r = 0;
+ AST_Root *r = nullptr;
// Check that the BE init created a generator object
- if (idl_global->gen () == 0)
+ if (idl_global->gen () == nullptr)
{
ACE_ERROR ((
LM_ERROR,
@@ -408,11 +408,11 @@ FE_populate (void)
// Create a global root for the AST. Note that the AST root has no name.
Identifier root_id ("");
- UTL_ScopedName root_name (&root_id, 0);
+ UTL_ScopedName root_name (&root_id, nullptr);
r = idl_global->gen ()->create_root (&root_name);
idl_global->set_root (r);
- if (r == 0)
+ if (r == nullptr)
{
ACE_ERROR ((
LM_ERROR,
@@ -439,10 +439,10 @@ void
FE_extract_env_include_paths (ACE_Unbounded_Queue<ACE_CString> &list)
{
ACE_Env_Value<char*> incl_paths (ACE_TEXT ("INCLUDE"),
- (char *) 0);
+ (char *) nullptr);
const char *aggr_str = incl_paths;
- if (aggr_str != 0)
+ if (aggr_str != nullptr)
{
char separator;
#if defined (ACE_WIN32)
@@ -464,12 +464,12 @@ FE_extract_env_include_paths (ACE_Unbounded_Queue<ACE_CString> &list)
// Store include paths from the environment variable, if any.
void
-FE_store_env_include_paths (void)
+FE_store_env_include_paths ()
{
ACE_Unbounded_Queue<ACE_CString> list;
FE_extract_env_include_paths (list);
- ACE_CString *path_tmp = 0;
+ ACE_CString *path_tmp = nullptr;
for (ACE_Unbounded_Queue_Iterator<ACE_CString>iter (list);
!iter.done (); iter.advance ())
{
@@ -481,13 +481,13 @@ FE_store_env_include_paths (void)
}
const char *
-FE_get_cpp_loc_from_env (void)
+FE_get_cpp_loc_from_env ()
{
- const char *cpp_loc = 0;
+ const char *cpp_loc = nullptr;
// See if TAO_IDL_PREPROCESSOR is defined.
ACE_Env_Value<char*> preprocessor (ACE_TEXT ("TAO_IDL_PREPROCESSOR"),
- (char *) 0);
+ (char *) nullptr);
// Set cpp_loc to the built in location, unless it has been overriden by
// environment variables.
@@ -499,7 +499,7 @@ FE_get_cpp_loc_from_env (void)
{
// Check for the deprecated CPP_LOCATION environment variable
ACE_Env_Value<char*> cpp_path (ACE_TEXT ("CPP_LOCATION"),
- (char *) 0);
+ (char *) nullptr);
if (cpp_path != 0)
{
@@ -521,13 +521,13 @@ FE_get_cpp_loc_from_env (void)
}
const char *
-FE_get_cpp_args_from_env (void)
+FE_get_cpp_args_from_env ()
{
- const char *cpp_args = 0;
+ const char *cpp_args = nullptr;
// Added some customizable preprocessor options
ACE_Env_Value<char*> args1 (ACE_TEXT ("TAO_IDL_PREPROCESSOR_ARGS"),
- (char *) 0);
+ (char *) nullptr);
if (args1 != 0)
{
@@ -538,7 +538,7 @@ FE_get_cpp_args_from_env (void)
// Check for the deprecated TAO_IDL_DEFAULT_CPP_FLAGS environment
// variable.
ACE_Env_Value<char*> args2 (ACE_TEXT ("TAO_IDL_DEFAULT_CPP_FLAGS"),
- (char *) 0);
+ (char *) nullptr);
if (args2 != 0)
{
diff --git a/TAO/TAO_IDL/fe/fe_interface_header.cpp b/TAO/TAO_IDL/fe/fe_interface_header.cpp
index 95c990a523a..fbf3b33693a 100644
--- a/TAO/TAO_IDL/fe/fe_interface_header.cpp
+++ b/TAO/TAO_IDL/fe/fe_interface_header.cpp
@@ -139,14 +139,14 @@ FE_InterfaceHeader::FE_InterfaceHeader (UTL_ScopedName *n,
bool compile_now)
: interface_name_ (n),
has_template_parent_ (false),
- inherits_ (0),
+ inherits_ (nullptr),
n_inherits_ (0),
- inherits_flat_ (0),
+ inherits_flat_ (nullptr),
n_inherits_flat_ (0),
is_local_ (is_local),
is_abstract_ (is_abstract),
- iseen_ (0),
- iseen_flat_ (0),
+ iseen_ (nullptr),
+ iseen_flat_ (nullptr),
iallocated_ (0),
iused_ (0),
iallocated_flat_ (0),
@@ -159,30 +159,30 @@ FE_InterfaceHeader::FE_InterfaceHeader (UTL_ScopedName *n,
}
}
-FE_InterfaceHeader::~FE_InterfaceHeader (void)
+FE_InterfaceHeader::~FE_InterfaceHeader ()
{
}
bool
-FE_InterfaceHeader::is_local (void) const
+FE_InterfaceHeader::is_local () const
{
return this->is_local_;
}
bool
-FE_InterfaceHeader::is_abstract (void) const
+FE_InterfaceHeader::is_abstract () const
{
return this->is_abstract_;
}
void
-FE_InterfaceHeader::destroy (void)
+FE_InterfaceHeader::destroy ()
{
- if (0 != this->interface_name_)
+ if (nullptr != this->interface_name_)
{
this->interface_name_->destroy ();
delete this->interface_name_;
- this->interface_name_ = 0;
+ this->interface_name_ = nullptr;
}
delete [] this->iseen_;
@@ -194,7 +194,7 @@ void
FE_InterfaceHeader::compile_one_inheritance (AST_Type *i)
{
// Check for badly formed interface.
- if (i == 0)
+ if (i == nullptr)
{
return;
}
@@ -209,9 +209,9 @@ FE_InterfaceHeader::compile_one_inheritance (AST_Type *i)
this->add_inheritance (i);
AST_Interface *iface =
- AST_Interface::narrow_from_decl (i);
+ dynamic_cast<AST_Interface*> (i);
- if (iface == 0)
+ if (iface == nullptr)
{
// If a template parameter as parent appears at any time,
// we bag the flat list until instantiation time.
@@ -233,9 +233,9 @@ FE_InterfaceHeader::compile_one_inheritance (AST_Type *i)
for (long j = 0; j < num_parents; ++j)
{
AST_Interface *tmp =
- AST_Interface::narrow_from_decl (parents[j]);
+ dynamic_cast<AST_Interface*> (parents[j]);
- if (tmp == 0)
+ if (tmp == nullptr)
{
// If a template parameter as parent appears at any time,
// we bag the flat list until instantiation time.
@@ -261,14 +261,14 @@ void
FE_InterfaceHeader::compile_inheritance (UTL_NameList *ifaces,
bool for_valuetype)
{
- if (ifaces == 0)
+ if (ifaces == nullptr)
{
return;
}
- AST_Decl *d = 0;
- UTL_ScopedName *item = 0;
- AST_Interface *i = 0;
+ AST_Decl *d = nullptr;
+ UTL_ScopedName *item = nullptr;
+ AST_Interface *i = nullptr;
// Compute expanded flattened non-repeating list of interfaces
// which this one inherits from.
@@ -282,7 +282,7 @@ FE_InterfaceHeader::compile_inheritance (UTL_NameList *ifaces,
UTL_Scope *s = idl_global->scopes ().top ();
// Check that scope stack is valid.
- if (s == 0)
+ if (s == nullptr)
{
idl_global->err ()->lookup_error (item);
@@ -296,36 +296,36 @@ FE_InterfaceHeader::compile_inheritance (UTL_NameList *ifaces,
true); // full_def_only
// Undefined interface?
- if (0 == d)
+ if (nullptr == d)
{
// If the lookup now succeeds, without the full_def_only
// constraint, it's an error.
d = s->lookup_by_name (item, false);
- if (0 != d)
+ if (nullptr != d)
{
idl_global->err ()->inheritance_fwd_error (
this->interface_name_,
- AST_Interface::narrow_from_decl (d)
+ dynamic_cast<AST_Interface*> (d)
);
break;
}
}
- if (0 == d)
+ if (nullptr == d)
{
AST_Decl *sad = ScopeAsDecl (s);
if (sad->node_type () == AST_Decl::NT_module)
{
- AST_Module *m = AST_Module::narrow_from_decl (sad);
+ AST_Module *m = dynamic_cast<AST_Module*> (sad);
d = m->look_in_prev_mods_local (item->last_component ());
}
}
// Not found?
- if (0 == d)
+ if (nullptr == d)
{
idl_global->err ()->lookup_error (item);
@@ -339,12 +339,12 @@ FE_InterfaceHeader::compile_inheritance (UTL_NameList *ifaces,
// Not an appropriate interface?
if (nt == AST_Decl::NT_typedef)
{
- d = AST_Typedef::narrow_from_decl (d)->primitive_base_type ();
+ d = dynamic_cast<AST_Typedef*> (d)->primitive_base_type ();
}
- i = AST_Interface::narrow_from_decl (d);
+ i = dynamic_cast<AST_Interface*> (d);
- if (i != 0)
+ if (i != nullptr)
{
if (this->check_inherit (i, for_valuetype) == -1)
{
@@ -364,7 +364,7 @@ FE_InterfaceHeader::compile_inheritance (UTL_NameList *ifaces,
else if (nt == AST_Decl::NT_param_holder)
{
AST_Param_Holder *ph =
- AST_Param_Holder::narrow_from_decl (d);
+ dynamic_cast<AST_Param_Holder*> (d);
nt = ph->info ()->type_;
@@ -390,7 +390,7 @@ FE_InterfaceHeader::compile_inheritance (UTL_NameList *ifaces,
// OK, see if we have to add this to the list of interfaces
// inherited from.
this->compile_one_inheritance (
- AST_Type::narrow_from_decl (d));
+ dynamic_cast<AST_Type*> (d));
}
// OK, install in interface header.
@@ -403,7 +403,7 @@ FE_InterfaceHeader::check_inherit (AST_Interface *i,
{
// We use the narrow instead of node_type() here so we can get a
// match with both valuetypes and eventtypes.
- bool is_valuetype = (AST_ValueType::narrow_from_decl (i) != 0);
+ bool is_valuetype = (dynamic_cast<AST_ValueType*> (i) != nullptr);
if (
// Non-local interfaces may not inherit from local ones.
@@ -424,7 +424,7 @@ FE_InterfaceHeader::check_inherit (AST_Interface *i,
void
FE_InterfaceHeader::add_inheritance (AST_Type *i)
{
- AST_Type **oiseen = 0;
+ AST_Type **oiseen = nullptr;
// Make sure there's space for one more.
if (this->iallocated_ == this->iused_)
@@ -461,7 +461,7 @@ FE_InterfaceHeader::add_inheritance (AST_Type *i)
void
FE_InterfaceHeader::add_inheritance_flat (AST_Interface *i)
{
- AST_Interface **oiseen_flat = 0;
+ AST_Interface **oiseen_flat = nullptr;
// Make sure there's space for one more.
if (this->iallocated_flat_ == this->iused_flat_)
@@ -499,21 +499,21 @@ bool
FE_InterfaceHeader::already_seen (AST_Type *ip)
{
AST_Param_Holder *ph =
- AST_Param_Holder::narrow_from_decl (ip);
+ dynamic_cast<AST_Param_Holder*> (ip);
for (long i = 0; i < this->iused_; ++i)
{
AST_Param_Holder *tmp =
- AST_Param_Holder::narrow_from_decl (this->iseen_[i]);
+ dynamic_cast<AST_Param_Holder*> (this->iseen_[i]);
- if (ph != 0 && tmp != 0)
+ if (ph != nullptr && tmp != nullptr)
{
if (ph->info ()->name_ == tmp->info ()->name_)
{
idl_global->err ()->duplicate_param_id (ph->name ());
ph->destroy ();
delete ph;
- ph = 0;
+ ph = nullptr;
return true;
}
}
@@ -542,7 +542,7 @@ FE_InterfaceHeader::already_seen_flat (AST_Interface *ip)
}
void
-FE_InterfaceHeader::install_in_header (void)
+FE_InterfaceHeader::install_in_header ()
{
long j = 0;
long k = 0;
@@ -579,42 +579,42 @@ FE_InterfaceHeader::install_in_header (void)
// Data accessors.
UTL_ScopedName *
-FE_InterfaceHeader::name (void) const
+FE_InterfaceHeader::name () const
{
return this->interface_name_;
}
AST_Type **
-FE_InterfaceHeader::inherits (void) const
+FE_InterfaceHeader::inherits () const
{
return this->inherits_;
}
long
-FE_InterfaceHeader::n_inherits (void) const
+FE_InterfaceHeader::n_inherits () const
{
return this->n_inherits_;
}
AST_Interface **
-FE_InterfaceHeader::inherits_flat (void) const
+FE_InterfaceHeader::inherits_flat () const
{
return this->inherits_flat_;
}
long
-FE_InterfaceHeader::n_inherits_flat (void) const
+FE_InterfaceHeader::n_inherits_flat () const
{
return this->n_inherits_flat_;
}
void
-FE_InterfaceHeader::destroy_flat_arrays (void)
+FE_InterfaceHeader::destroy_flat_arrays ()
{
delete [] this->inherits_flat_;
- this->inherits_flat_ = 0;
+ this->inherits_flat_ = nullptr;
delete [] this->iseen_flat_;
- this->iseen_flat_ = 0;
+ this->iseen_flat_ = nullptr;
this->n_inherits_flat_ = 0;
this->iallocated_flat_ = 0;
this->iused_flat_ = 0;
diff --git a/TAO/TAO_IDL/fe/fe_lookup.cpp b/TAO/TAO_IDL/fe/fe_lookup.cpp
index 9a130541e72..2756a6bd529 100644
--- a/TAO/TAO_IDL/fe/fe_lookup.cpp
+++ b/TAO/TAO_IDL/fe/fe_lookup.cpp
@@ -43,134 +43,134 @@ TAO_IDL_CPP_Keyword_Table::lookup (const char *str, unsigned int len)
static const struct TAO_IDL_CPP_Keyword_Entry wordlist[] =
{
- {"",0},{"",0},{"",0},{"",0},{"",0},{"",0},
+ {"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},
{"delete", "_cxx_delete"},
{"mutable", "_cxx_mutable"},
- {"",0},
+ {"",nullptr},
{"enum", "_cxx_enum"},
- {"",0},
+ {"",nullptr},
{"double", "_cxx_double"},
{"do", "_cxx_do"},
{"unsigned", "_cxx_unsigned"},
- {"",0},
+ {"",nullptr},
{"union", "_cxx_union"},
- {"",0},{"",0},{"",0},
+ {"",nullptr},{"",nullptr},{"",nullptr},
{"goto", "_cxx_goto"},
- {"",0},{"",0},{"",0},
+ {"",nullptr},{"",nullptr},{"",nullptr},
{"and", "_cxx_and"},
{"auto", "_cxx_auto"},
- {"",0},{"",0},{"",0},{"",0},
+ {"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},
{"namespace", "_cxx_namespace"},
{"using", "_cxx_using"},
- {"",0},{"",0},{"",0},
+ {"",nullptr},{"",nullptr},{"",nullptr},
{"else", "_cxx_else"},
- {"",0},{"",0},{"",0},
+ {"",nullptr},{"",nullptr},{"",nullptr},
{"asm", "_cxx_asm"},
- {"",0},
+ {"",nullptr},
{"while", "_cxx_while"},
- {"",0},{"",0},
+ {"",nullptr},{"",nullptr},
{"new", "_cxx_new"},
{"long", "_cxx_long"},
- {"",0},{"",0},{"",0},{"",0},{"",0},{"",0},
+ {"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},
{"return", "_cxx_return"},
- {"",0},{"",0},
+ {"",nullptr},{"",nullptr},
{"void", "_cxx_void"},
{"false", "_cxx_false"},
- {"",0},{"",0},
+ {"",nullptr},{"",nullptr},
{"volatile", "_cxx_volatile"},
- {"",0},{"",0},
+ {"",nullptr},{"",nullptr},
{"switch", "_cxx_switch"},
- {"",0},{"",0},{"",0},{"",0},
+ {"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},
{"not_eq", "_cxx_not_eq"},
{"private", "_cxx_private"},
- {"",0},
+ {"",nullptr},
{"protected", "_cxx_protected"},
- {"",0},
+ {"",nullptr},
{"inline", "_cxx_inline"},
- {"",0},
+ {"",nullptr},
{"operator", "_cxx_operator"},
{"bool", "_cxx_bool"},
- {"",0},
+ {"",nullptr},
{"and_eq", "_cxx_and_eq"},
- {"",0},
+ {"",nullptr},
{"continue", "_cxx_continue"},
- {"",0},
+ {"",nullptr},
{"break", "_cxx_break"},
{"friend", "_cxx_friend"},
- {"",0},
+ {"",nullptr},
{"for", "_cxx_for"},
{"case", "_cxx_case"},
{"catch", "_cxx_catch"},
{"signed", "_cxx_signed"},
{"or", "_cxx_or"},
{"register", "_cxx_register"},
- {"",0},{"",0},
+ {"",nullptr},{"",nullptr},
{"public", "_cxx_public"},
- {"",0},{"",0},{"",0},{"",0},{"",0},{"",0},{"",0},{"",0},
+ {"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},
{"or_eq", "_cxx_or_eq"},
{"bitand", "_cxx_bitand"},
- {"",0},{"",0},{"",0},
+ {"",nullptr},{"",nullptr},{"",nullptr},
{"compl", "_cxx_compl"},
{"extern", "_cxx_extern"},
- {"",0},{"",0},
+ {"",nullptr},{"",nullptr},
{"char", "_cxx_char"},
- {"",0},{"",0},{"",0},{"",0},{"",0},{"",0},{"",0},
+ {"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},
{"default", "_cxx_default"},
{"template", "_cxx_template"},
- {"",0},
+ {"",nullptr},
{"class", "_cxx_class"},
{"sizeof", "_cxx_sizeof"},
- {"",0},
+ {"",nullptr},
{"not", "_cxx_not"},
- {"",0},{"",0},{"",0},{"",0},{"",0},{"",0},{"",0},{"",0},
+ {"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},
{"if", "_cxx_if"},
- {"",0},
+ {"",nullptr},
{"this", "_cxx_this"},
{"short", "_cxx_short"},
- {"",0},{"",0},{"",0},{"",0},
+ {"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},
{"bitor", "_cxx_bitor"},
- {"",0},
+ {"",nullptr},
{"virtual", "_cxx_virtual"},
{"xor", "_cxx_xor"},
- {"",0},{"",0},{"",0},{"",0},{"",0},{"",0},
+ {"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},
{"throw", "_cxx_throw"},
- {"",0},{"",0},{"",0},
+ {"",nullptr},{"",nullptr},{"",nullptr},
{"true", "_cxx_true"},
- {"",0},
+ {"",nullptr},
{"xor_eq", "_cxx_xor_eq"},
- {"",0},{"",0},{"",0},{"",0},{"",0},{"",0},{"",0},{"",0},{"",0},
+ {"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},
{"reinterpret_cast", "_cxx_reinterpret_cast"},
- {"",0},{"",0},{"",0},{"",0},
+ {"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},
{"typeid", "_cxx_typeid"},
- {"",0},
+ {"",nullptr},
{"typename", "_cxx_typename"},
- {"",0},{"",0},{"",0},
+ {"",nullptr},{"",nullptr},{"",nullptr},
{"dynamic_cast", "_cxx_dynamic_cast"},
{"int", "_cxx_int"},
- {"",0},
+ {"",nullptr},
{"float", "_cxx_float"},
- {"",0},{"",0},{"",0},{"",0},
+ {"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},
{"const", "_cxx_const"},
- {"",0},{"",0},{"",0},{"",0},
+ {"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},
{"const_cast", "_cxx_const_cast"},
- {"",0},{"",0},{"",0},{"",0},{"",0},{"",0},{"",0},{"",0},{"",0},
- {"",0},
+ {"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},
+ {"",nullptr},
{"static", "_cxx_static"},
- {"",0},{"",0},{"",0},{"",0},{"",0},
+ {"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},
{"typedef", "_cxx_typedef"},
{"try", "_cxx_try"},
- {"",0},{"",0},
+ {"",nullptr},{"",nullptr},
{"export", "_cxx_export"},
- {"",0},
+ {"",nullptr},
{"explicit", "_cxx_explicit"},
- {"",0},{"",0},{"",0},
+ {"",nullptr},{"",nullptr},{"",nullptr},
{"wchar_t", "_cxx_wchar_t"},
- {"",0},{"",0},{"",0},{"",0},{"",0},{"",0},{"",0},{"",0},{"",0},
- {"",0},{"",0},{"",0},{"",0},{"",0},{"",0},{"",0},{"",0},{"",0},
- {"",0},{"",0},{"",0},{"",0},{"",0},{"",0},{"",0},{"",0},{"",0},
- {"",0},
+ {"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},
+ {"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},
+ {"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},
+ {"",nullptr},
{"struct", "_cxx_struct"},
- {"",0},{"",0},{"",0},{"",0},
+ {"",nullptr},{"",nullptr},{"",nullptr},{"",nullptr},
{"static_cast", "_cxx_static_cast"},
};
@@ -186,5 +186,5 @@ TAO_IDL_CPP_Keyword_Table::lookup (const char *str, unsigned int len)
return &wordlist[key];
}
}
- return 0;
+ return nullptr;
}
diff --git a/TAO/TAO_IDL/fe/fe_obv_header.cpp b/TAO/TAO_IDL/fe/fe_obv_header.cpp
index f0c4644c87a..0532f2eb9af 100644
--- a/TAO/TAO_IDL/fe/fe_obv_header.cpp
+++ b/TAO/TAO_IDL/fe/fe_obv_header.cpp
@@ -66,10 +66,10 @@ FE_OBVHeader::FE_OBVHeader (UTL_ScopedName *n,
false,
false,
false),
- supports_ (0),
+ supports_ (nullptr),
n_supports_ (0),
- inherits_concrete_ (0),
- supports_concrete_ (0),
+ inherits_concrete_ (nullptr),
+ supports_concrete_ (nullptr),
truncatable_ (truncatable)
{
this->compile_inheritance (inherits,
@@ -81,42 +81,42 @@ FE_OBVHeader::FE_OBVHeader (UTL_ScopedName *n,
}
}
-FE_OBVHeader::~FE_OBVHeader (void)
+FE_OBVHeader::~FE_OBVHeader ()
{
}
AST_Type **
-FE_OBVHeader::supports (void) const
+FE_OBVHeader::supports () const
{
return this->supports_;
}
long
-FE_OBVHeader::n_supports (void) const
+FE_OBVHeader::n_supports () const
{
return this->n_supports_;
}
AST_Type *
-FE_OBVHeader::inherits_concrete (void) const
+FE_OBVHeader::inherits_concrete () const
{
return this->inherits_concrete_;
}
AST_Type *
-FE_OBVHeader::supports_concrete (void) const
+FE_OBVHeader::supports_concrete () const
{
return this->supports_concrete_;
}
bool
-FE_OBVHeader::truncatable (void) const
+FE_OBVHeader::truncatable () const
{
return this->truncatable_;
}
void
-FE_OBVHeader::destroy (void)
+FE_OBVHeader::destroy ()
{
this->FE_InterfaceHeader::destroy ();
}
@@ -131,9 +131,9 @@ FE_OBVHeader::compile_inheritance (UTL_NameList *vtypes,
if (this->n_inherits_ > 0)
{
AST_Type *t = this->inherits_[0];
- AST_ValueType *vt = AST_ValueType::narrow_from_decl (t);
+ AST_ValueType *vt = dynamic_cast<AST_ValueType*> (t);
- if (vt != 0
+ if (vt != nullptr
&& vt->is_abstract () == false)
{
this->inherits_concrete_ = vt;
@@ -166,9 +166,9 @@ FE_OBVHeader::compile_inheritance (UTL_NameList *vtypes,
void
FE_OBVHeader::compile_supports (UTL_NameList *supports)
{
- if (supports == 0)
+ if (supports == nullptr)
{
- this->supports_ = 0;
+ this->supports_ = nullptr;
this->n_supports_ = 0;
return;
}
@@ -179,10 +179,10 @@ FE_OBVHeader::compile_supports (UTL_NameList *supports)
ACE_NEW (this->supports_,
AST_Type *[length]);
- AST_Decl *d = 0;
- UTL_ScopedName *item = 0;
- AST_Interface *iface = 0;
- AST_Type *t = 0;
+ AST_Decl *d = nullptr;
+ UTL_ScopedName *item = nullptr;
+ AST_Interface *iface = nullptr;
+ AST_Type *t = nullptr;
int i = 0;
for (UTL_NamelistActiveIterator l (supports); !l.is_done (); l.next ())
@@ -190,7 +190,7 @@ FE_OBVHeader::compile_supports (UTL_NameList *supports)
item = l.item ();
// Check that scope stack is valid.
- if (idl_global->scopes ().top () == 0)
+ if (idl_global->scopes ().top () == nullptr)
{
idl_global->err ()->lookup_error (item);
@@ -204,20 +204,20 @@ FE_OBVHeader::compile_supports (UTL_NameList *supports)
d = s->lookup_by_name (item, true);
- if (d == 0)
+ if (d == nullptr)
{
AST_Decl *sad = ScopeAsDecl (s);
if (sad->node_type () == AST_Decl::NT_module)
{
- AST_Module *m = AST_Module::narrow_from_decl (sad);
+ AST_Module *m = dynamic_cast<AST_Module*> (sad);
d = m->look_in_prev_mods_local (item->last_component ());
}
}
// Not found?
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error (item);
@@ -229,20 +229,20 @@ FE_OBVHeader::compile_supports (UTL_NameList *supports)
// Remove typedefs, if any.
if (d->node_type () == AST_Decl::NT_typedef)
{
- d = AST_Typedef::narrow_from_decl (d)->primitive_base_type ();
+ d = dynamic_cast<AST_Typedef*> (d)->primitive_base_type ();
}
AST_Decl::NodeType nt = d->node_type ();
- t = AST_Type::narrow_from_decl (d);
+ t = dynamic_cast<AST_Type*> (d);
if (nt == AST_Decl::NT_interface)
{
- iface = AST_Interface::narrow_from_decl (d);
+ iface = dynamic_cast<AST_Interface*> (d);
}
else if (nt == AST_Decl::NT_param_holder)
{
AST_Param_Holder *ph =
- AST_Param_Holder::narrow_from_decl (d);
+ dynamic_cast<AST_Param_Holder*> (d);
nt = ph->info ()->type_;
@@ -263,14 +263,14 @@ FE_OBVHeader::compile_supports (UTL_NameList *supports)
}
// Forward declared interface?
- if (iface != 0 && !iface->is_defined ())
+ if (iface != nullptr && !iface->is_defined ())
{
idl_global->err ()->supports_fwd_error (this->interface_name_,
iface);
continue;
}
- if (iface != 0 && !iface->is_abstract ())
+ if (iface != nullptr && !iface->is_abstract ())
{
if (i == 0)
{
@@ -303,16 +303,16 @@ FE_OBVHeader::check_concrete_supported_inheritance (AST_Interface *d)
return true;
}
- AST_ValueType *vt = 0;
- AST_Type *concrete = 0;
- AST_Interface *ancestor = 0;
+ AST_ValueType *vt = nullptr;
+ AST_Type *concrete = nullptr;
+ AST_Interface *ancestor = nullptr;
for (long i = 0; i < this->n_inherits_; ++i)
{
- vt = AST_ValueType::narrow_from_decl (this->inherits_[i]);
+ vt = dynamic_cast<AST_ValueType*> (this->inherits_[i]);
concrete = vt->supports_concrete ();
- if (0 == concrete)
+ if (nullptr == concrete)
{
return true;
}
diff --git a/TAO/TAO_IDL/fe/fe_private.cpp b/TAO/TAO_IDL/fe/fe_private.cpp
index 64c0f8b0e9b..83cecd041d8 100644
--- a/TAO/TAO_IDL/fe/fe_private.cpp
+++ b/TAO/TAO_IDL/fe/fe_private.cpp
@@ -65,4 +65,4 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "fe_private.h"
#include "utl_strlist.h"
-UTL_StrList *DRV_global_pragmas = 0;
+UTL_StrList *DRV_global_pragmas = nullptr;
diff --git a/TAO/TAO_IDL/fe/fe_utils.cpp b/TAO/TAO_IDL/fe/fe_utils.cpp
index 7e4ac13855b..0279f5a5e0a 100644
--- a/TAO/TAO_IDL/fe/fe_utils.cpp
+++ b/TAO/TAO_IDL/fe/fe_utils.cpp
@@ -24,10 +24,10 @@
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_unistd.h"
-FE_Utils::T_Param_Info::T_Param_Info (void)
+FE_Utils::T_Param_Info::T_Param_Info ()
: type_ (AST_Decl::NT_fixed),
const_type_ (AST_Expression::EV_none),
- enum_const_type_decl_ (0)
+ enum_const_type_decl_ (nullptr)
{
}
@@ -41,8 +41,8 @@ FE_Utils::duplicate_param_id (T_PARAMLIST_INFO *params)
!i.done ();
i.advance (), ++cur_pos)
{
- FE_Utils::T_Param_Info *this_one = 0;
- FE_Utils::T_Param_Info *that_one = 0;
+ FE_Utils::T_Param_Info *this_one = nullptr;
+ FE_Utils::T_Param_Info *that_one = nullptr;
i.next (this_one);
@@ -61,9 +61,9 @@ FE_Utils::duplicate_param_id (T_PARAMLIST_INFO *params)
}
void
-FE_Utils::T_ARGLIST::destroy (void)
+FE_Utils::T_ARGLIST::destroy ()
{
- AST_Decl **d = 0;
+ AST_Decl **d = nullptr;
for (T_ARGLIST::ITERATOR i (this->begin ());
!i.done ();
@@ -183,10 +183,10 @@ FE_Utils::ExprTypeToPredefinedType (AST_Expression::ExprType et)
UTL_ScopedName *
FE_Utils::string_to_scoped_name (const char *s)
{
- UTL_ScopedName *retval = 0;
+ UTL_ScopedName *retval = nullptr;
ACE_CString str (s);
- Identifier *id = 0;
- UTL_ScopedName *sn = 0;
+ Identifier *id = nullptr;
+ UTL_ScopedName *sn = nullptr;
while (! str.empty ())
{
@@ -204,15 +204,15 @@ FE_Utils::string_to_scoped_name (const char *s)
// Construct a UTL_ScopedName segment.
ACE_NEW_RETURN (id,
Identifier (lname.c_str ()),
- 0);
+ nullptr);
ACE_NEW_RETURN (sn,
- UTL_ScopedName (id, 0),
- 0);
+ UTL_ScopedName (id, nullptr),
+ nullptr);
// Either make it the head of a new list or the tail of
// an existing one.
- if (retval == 0)
+ if (retval == nullptr)
{
retval = sn;
}
@@ -260,14 +260,14 @@ FE_Utils::create_uses_multiple_stuff (AST_Component *c,
struct_name += u->local_name ()->get_string ();
struct_name += "Connection";
Identifier struct_id (struct_name.c_str ());
- UTL_ScopedName sn (&struct_id, 0);
+ UTL_ScopedName sn (&struct_id, nullptr);
// In case this call comes from the backend. We
// will pop the scope before returning.
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 ();
@@ -277,11 +277,11 @@ FE_Utils::create_uses_multiple_stuff (AST_Component *c,
UTL_ScopedName *fn = u->uses_type ()->name ();
AST_Decl *d =
idl_global->root ()->lookup_by_name (fn, true, false);
- AST_Type *ft = AST_Type::narrow_from_decl (d);
+ AST_Type *ft = dynamic_cast<AST_Type*> (d);
Identifier object_id ("objref");
UTL_ScopedName object_name (&object_id,
- 0);
+ nullptr);
AST_Field *object_field =
idl_global->gen ()->create_field (ft,
&object_name,
@@ -291,7 +291,7 @@ FE_Utils::create_uses_multiple_stuff (AST_Component *c,
Identifier local_id ("Cookie");
UTL_ScopedName local_name (&local_id,
- 0);
+ nullptr);
Identifier module_id ("Components");
UTL_ScopedName scoped_name (&module_id,
&local_name);
@@ -300,18 +300,18 @@ FE_Utils::create_uses_multiple_stuff (AST_Component *c,
local_id.destroy ();
module_id.destroy ();
- if (d == 0)
+ if (d == nullptr)
{
// This would happen if we haven't included Components.idl.
idl_global->err ()->lookup_error (&scoped_name);
return;
}
- AST_ValueType *cookie = AST_ValueType::narrow_from_decl (d);
+ AST_ValueType *cookie = dynamic_cast<AST_ValueType*> (d);
Identifier cookie_id ("ck");
UTL_ScopedName cookie_name (&cookie_id,
- 0);
+ nullptr);
AST_Field *cookie_field =
idl_global->gen ()->create_field (cookie,
&cookie_name,
@@ -328,20 +328,20 @@ FE_Utils::create_uses_multiple_stuff (AST_Component *c,
AST_Sequence *sequence =
idl_global->gen ()->create_sequence (bound_expr,
connection,
- 0,
- 0,
- 0);
+ nullptr,
+ false,
+ false);
ACE_CString seq_string (struct_name);
seq_string += 's';
Identifier seq_id (seq_string.c_str ());
UTL_ScopedName seq_name (&seq_id,
- 0);
+ nullptr);
AST_Typedef *connections =
idl_global->gen ()->create_typedef (sequence,
&seq_name,
- 0,
- 0);
+ false,
+ false);
seq_id.destroy ();
(void) c->fe_add_typedef (connections);
@@ -351,7 +351,7 @@ FE_Utils::create_uses_multiple_stuff (AST_Component *c,
}
void
-FE_Utils::create_implied_ami_uses_stuff (void)
+FE_Utils::create_implied_ami_uses_stuff ()
{
if (idl_global->included_ami_receps_done ())
{
@@ -363,7 +363,7 @@ FE_Utils::create_implied_ami_uses_stuff (void)
! i.done ();
i.advance ())
{
- char **item = 0;
+ char **item = nullptr;
i.next (item);
UTL_ScopedName *sn =
@@ -372,24 +372,24 @@ FE_Utils::create_implied_ami_uses_stuff (void)
AST_Decl *d =
idl_global->root ()->lookup_by_name (sn, true);
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error (sn);
sn->destroy ();
delete sn;
- sn = 0;
+ sn = nullptr;
continue;
}
sn->destroy ();
delete sn;
- sn = 0;
+ sn = nullptr;
- AST_Uses *u = AST_Uses::narrow_from_decl (d);
+ AST_Uses *u = dynamic_cast<AST_Uses*> (d);
- if (u == 0)
+ if (u == nullptr)
{
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("idl_global::create_")
@@ -406,9 +406,9 @@ FE_Utils::create_implied_ami_uses_stuff (void)
}
AST_Component *c =
- AST_Component::narrow_from_scope (u->defined_in ());
+ dynamic_cast<AST_Component*> (u->defined_in ());
- if (c == 0)
+ if (c == nullptr)
{
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("idl_global::create_")
@@ -476,7 +476,7 @@ FE_Utils::check_for_seq_of_param (FE_Utils::T_PARAMLIST_INFO *list)
!i.done ();
i.advance (), ++index)
{
- FE_Utils::T_Param_Info *param = 0;
+ FE_Utils::T_Param_Info *param = nullptr;
i.next (param);
if (param->name_.find (pattern) == 0)
@@ -501,26 +501,26 @@ FILE *
FE_Utils::open_included_file (char const * filename,
char const *& directory)
{
- FILE * f = 0;
+ FILE * f = nullptr;
ACE_CString const the_file (ACE_CString ('/')
+ ACE_CString (filename));
for (IDL_GlobalData::Unbounded_Paths_Queue_Iterator i (
idl_global->include_paths ());
- !i.done () && f == 0;
+ !i.done () && f == nullptr;
i.advance ())
{
- IDL_GlobalData::Include_Path_Info *path_info = 0;
+ IDL_GlobalData::Include_Path_Info *path_info = nullptr;
(void) i.next (path_info);
- if (path_info->path_ != 0)
+ if (path_info->path_ != nullptr)
{
ACE_CString const complete_filename (ACE_CString (path_info->path_)
+ the_file);
f = ACE_OS::fopen (complete_filename.c_str (), "r");
- if (f != 0)
+ if (f != nullptr)
directory = path_info->path_;
}
}
@@ -533,7 +533,7 @@ FE_Utils::is_include_file_found (ACE_CString & inc_file,
UTL_String * idl_file_name)
{
char abspath[MAXPATHLEN] = "";
- char *full_path = 0;
+ char *full_path = nullptr;
// If the include path has literal "s (because of an include
// of a Windows path with spaces), we must remove them here.
@@ -552,11 +552,11 @@ FE_Utils::is_include_file_found (ACE_CString & inc_file,
full_path =
ACE_OS::realpath (inc_file.c_str (), abspath);
- if (full_path != 0)
+ if (full_path != nullptr)
{
FILE *test = ACE_OS::fopen (abspath, "r");
- if (test == 0)
+ if (test == nullptr)
{
return false;
}
@@ -576,7 +576,7 @@ FE_Utils::is_include_file_found (ACE_CString & inc_file,
/// Validate the included idl files, some files might have been
/// ignored by the preprocessor.
void
-FE_Utils::validate_included_idl_files (void)
+FE_Utils::validate_included_idl_files ()
{
// Flag to make sure we don't repeat things.
static bool already_done = false;
@@ -605,9 +605,9 @@ FE_Utils::validate_included_idl_files (void)
char pre_abspath [MAXPATHLEN] = "";
char post_abspath [MAXPATHLEN] = "";
- IDL_GlobalData::Include_Path_Info *path_info = 0;
- char *post_tmp = 0;
- char *full_path = 0;
+ IDL_GlobalData::Include_Path_Info *path_info = nullptr;
+ char *post_tmp = nullptr;
+ char *full_path = nullptr;
// We are going to assemble a list of the include files found in
// the top level file in the order that they are found in the pre-
@@ -690,7 +690,7 @@ FE_Utils::validate_included_idl_files (void)
}
// Reduce length and zero the discarded element
- pre_preproc_includes [--n_pre_preproc_includes] = 0;
+ pre_preproc_includes [--n_pre_preproc_includes] = nullptr;
// Break out to next entry in pre-processor
// output
@@ -709,7 +709,7 @@ FE_Utils::validate_included_idl_files (void)
for (size_t l = 0u; l < n_pre_preproc_includes; ++l)
{
delete [] pre_preproc_includes [l];
- pre_preproc_includes [l] = 0;
+ pre_preproc_includes [l] = nullptr;
}
// Copy list back
@@ -745,7 +745,7 @@ FE_Utils::validate_orb_include (UTL_String * idl_file_name)
!iter.done ();
iter.advance ())
{
- IDL_GlobalData::Include_Path_Info *path_info = 0;
+ IDL_GlobalData::Include_Path_Info *path_info = nullptr;
iter.next (path_info);
ACE_CString partial = path_info->path_;
@@ -800,7 +800,7 @@ FE_Utils::original_local_name (Identifier *local_name)
const TAO_IDL_CPP_Keyword_Entry *entry =
cpp_key_tbl.lookup (lname + 5, len);
- if (entry != 0)
+ if (entry != nullptr)
{
ACE_CString tmp (lname + 5);
local_name->replace_string (tmp.c_str ());
@@ -834,10 +834,10 @@ FE_Utils::can_be_redefined (AST_Decl *prev_decl,
UTL_Scope *prev_scope = prev_decl->defined_in ();
UTL_Scope *curr_scope = curr_decl->defined_in ();
- AST_Structure *s = 0;
- AST_StructureFwd *s_fwd = 0;
- AST_Template_Module *ptm = 0;
- AST_Template_Module *ctm = 0;
+ AST_Structure *s = nullptr;
+ AST_StructureFwd *s_fwd = nullptr;
+ AST_Template_Module *ptm = nullptr;
+ AST_Template_Module *ctm = nullptr;
bool nt_eq = (pnt == cnt);
bool s_eq = (prev_scope == curr_scope);
@@ -852,9 +852,9 @@ FE_Utils::can_be_redefined (AST_Decl *prev_decl,
}
/// Neither can be a template module.
- ptm = AST_Template_Module::narrow_from_decl (prev_decl);
- ctm = AST_Template_Module::narrow_from_decl (curr_decl);
- return (ptm == 0 && ctm == 0);
+ ptm = dynamic_cast<AST_Template_Module*> (prev_decl);
+ ctm = dynamic_cast<AST_Template_Module*> (curr_decl);
+ return (ptm == nullptr && ctm == nullptr);
/// For the *_fwd types, if scopes aren't related, it's ok.
/// If they are related, then we need another fwd or a full decl.
case AST_Decl::NT_component_fwd:
@@ -874,9 +874,9 @@ FE_Utils::can_be_redefined (AST_Decl *prev_decl,
/// in a derived interface type is ok.
case AST_Decl::NT_struct:
case AST_Decl::NT_union:
- s = AST_Structure::narrow_from_decl (prev_decl);
- s_fwd = (s == 0 ? 0 : s->fwd_decl ());
- return (!s_eq || s_fwd != 0);
+ s = dynamic_cast<AST_Structure*> (prev_decl);
+ s_fwd = (s == nullptr ? nullptr : s->fwd_decl ());
+ return (!s_eq || s_fwd != nullptr);
/// Only 2 or more full definitions in the same scope are illegal,
/// and that is caught elsewhere.
case AST_Decl::NT_interface:
@@ -910,7 +910,7 @@ void
FE_Utils::tmpl_mod_ref_check (AST_Decl *context,
AST_Decl *ref)
{
- if (ref == 0
+ if (ref == nullptr
|| ref->node_type () == AST_Decl::NT_param_holder
|| idl_global->in_tmpl_mod_alias ())
{
@@ -962,7 +962,7 @@ FE_Utils::check_one_seq_of_param (FE_Utils::T_PARAMLIST_INFO *list,
break;
}
- FE_Utils::T_Param_Info *info = 0;
+ FE_Utils::T_Param_Info *info = nullptr;
i.next (info);
if (info->name_ == param_id)
@@ -979,12 +979,12 @@ FE_Utils::get_tm_container (AST_Decl *contained)
{
AST_Decl *d = contained;
- while (d != 0)
+ while (d != nullptr)
{
AST_Template_Module *tm =
- AST_Template_Module::narrow_from_decl (d);
+ dynamic_cast<AST_Template_Module*> (d);
- if (tm != 0)
+ if (tm != nullptr)
{
return tm;
}
@@ -992,5 +992,5 @@ FE_Utils::get_tm_container (AST_Decl *contained)
d = ScopeAsDecl (d->defined_in ());
}
- return 0;
+ return nullptr;
}
diff --git a/TAO/TAO_IDL/fe/idl.tab.cpp b/TAO/TAO_IDL/fe/idl.tab.cpp
index 5fecde985c4..f87f408f96f 100644
--- a/TAO/TAO_IDL/fe/idl.tab.cpp
+++ b/TAO/TAO_IDL/fe/idl.tab.cpp
@@ -146,14 +146,14 @@
#include <fe_utils.h>
void tao_yyerror (const char *);
-int tao_yylex (void);
+int tao_yylex ();
extern "C" int tao_yywrap (void);
extern char tao_yytext[];
extern int tao_yyleng;
-AST_Enum *tao_enum_constant_decl = 0;
-AST_String *tao_string_decl = 0;
+AST_Enum *tao_enum_constant_decl = nullptr;
+AST_String *tao_string_decl = nullptr;
AST_Expression::ExprType t_param_const_type = AST_Expression::EV_none;
bool stack_based_lookup_for_primary_expr = false;
@@ -354,7 +354,7 @@ typedef union YYSTYPE YYSTYPE;
extern YYSTYPE tao_yylval;
-int tao_yyparse (void);
+int tao_yyparse ();
#endif /* !YY_TAO_YY_FE_IDL_TAB_HPP_INCLUDED */
/* Symbol kind. */
@@ -2530,7 +2530,7 @@ int yynerrs;
`----------*/
int
-yyparse (void)
+yyparse ()
{
yy_state_fast_t yystate;
/* Number of tokens to shift before error messages enabled. */
@@ -3038,7 +3038,7 @@ yyreduce:
{
idl_global->set_parse_state (IDL_GlobalData::PS_NoState);
yyerrok;
- (yyval.dcval) = 0;
+ (yyval.dcval) = nullptr;
}
#line 3044 "fe/idl.tab.cpp"
break;
@@ -3076,13 +3076,13 @@ yyreduce:
IDL_GlobalData::PS_ModuleIDSeen);
}
- AST_Module *m = 0;
+ AST_Module *m = nullptr;
UTL_Scope *s = idl_global->scopes ().top_non_null ();
/*
* Make a new module and add it to the enclosing scope
*/
- if (s != 0)
+ if (s != nullptr)
{
m = idl_global->gen ()->create_module (s, (yyvsp[0].idlist));
(void) s->fe_add_module (m);
@@ -3090,7 +3090,7 @@ yyreduce:
(yyvsp[0].idlist)->destroy ();
delete (yyvsp[0].idlist);
- (yyvsp[0].idlist) = 0;
+ (yyvsp[0].idlist) = nullptr;
/*
* Push it on the stack
@@ -3186,7 +3186,7 @@ yyreduce:
// We've probably tried to reopen a template module,
// going further will cause a crash.
- if (m == 0)
+ if (m == nullptr)
{
return 1;
}
@@ -3238,9 +3238,9 @@ yyreduce:
// Clear the pointer so scoped name lookup will know
// that we are no longer in a template module scope.
- idl_global->current_params (0);
+ idl_global->current_params (nullptr);
- (yyval.dcval) = 0;
+ (yyval.dcval) = nullptr;
}
#line 3246 "fe/idl.tab.cpp"
break;
@@ -3273,16 +3273,16 @@ yyreduce:
AST_Decl *d =
s->lookup_by_name ((yyvsp[-6].idlist));
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error ((yyvsp[-6].idlist));
return 1;
}
AST_Template_Module *ref =
- AST_Template_Module::narrow_from_decl (d);
+ dynamic_cast<AST_Template_Module*> (d);
- if (ref == 0)
+ if (ref == nullptr)
{
idl_global->err ()->template_module_expected (d);
return 1;
@@ -3298,7 +3298,7 @@ yyreduce:
return 1;
}
- UTL_ScopedName sn ((yyvsp[0].idval), 0);
+ UTL_ScopedName sn ((yyvsp[0].idval), nullptr);
AST_Template_Module_Ref *tmr =
idl_global->gen ()->create_template_module_ref (
@@ -3311,7 +3311,7 @@ yyreduce:
sn.destroy ();
(yyvsp[-6].idlist)->destroy ();
delete (yyvsp[-6].idlist);
- (yyvsp[-6].idlist) = 0;
+ (yyvsp[-6].idlist) = nullptr;
// Save the current flag value to be restored below.
bool itmna_flag = idl_global->in_tmpl_mod_no_alias ();
@@ -3371,19 +3371,19 @@ yyreduce:
UTL_Scope *s = idl_global->scopes ().top_non_null ();
UTL_ScopedName *sn = (yyvsp[-5].idlist);
- AST_Template_Module *ref = 0;
+ AST_Template_Module *ref = nullptr;
AST_Decl *d = s->lookup_by_name (sn);
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error (sn);
return 1;
}
else
{
- ref = AST_Template_Module::narrow_from_decl (d);
+ ref = dynamic_cast<AST_Template_Module*> (d);
- if (ref == 0)
+ if (ref == nullptr)
{
idl_global->err ()->template_module_expected (d);
return 1;
@@ -3392,8 +3392,8 @@ yyreduce:
sn->destroy ();
delete sn;
- sn = 0;
- (yyvsp[-5].idlist) = 0;
+ sn = nullptr;
+ (yyvsp[-5].idlist) = nullptr;
if (! ref->match_arg_names ((yyvsp[-3].alval)))
{
@@ -3402,7 +3402,7 @@ yyreduce:
ACE_NEW_RETURN (sn,
UTL_ScopedName ((yyvsp[0].idval),
- 0),
+ nullptr),
1);
AST_Template_Module_Inst *tmi =
@@ -3426,7 +3426,7 @@ yyreduce:
idl_global->set_err_count (idl_global->err_count () + 1);
}
- (yyval.dcval) = 0;
+ (yyval.dcval) = nullptr;
}
#line 3432 "fe/idl.tab.cpp"
break;
@@ -3435,10 +3435,10 @@ yyreduce:
#line 916 "fe/idl.ypp"
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- AST_Interface *i = 0;
+ AST_Interface *i = nullptr;
FE_InterfaceHeader *header = (yyvsp[0].ihval);
- (yyvsp[0].ihval) = 0;
+ (yyvsp[0].ihval) = nullptr;
/*
* Make a new interface node and add it to its enclosing scope.
@@ -3525,7 +3525,7 @@ yyreduce:
{
idl_global->set_parse_state (IDL_GlobalData::PS_InheritSpecSeen);
- if ((yyvsp[0].nlval) != 0 && (yyvsp[0].nlval)->truncatable ())
+ if ((yyvsp[0].nlval) != nullptr && (yyvsp[0].nlval)->truncatable ())
{
idl_global->err ()->syntax_error (
IDL_GlobalData::PS_InheritColonSeen
@@ -3538,9 +3538,9 @@ yyreduce:
* list of all interfaces which this interface inherits from,
* recursively
*/
- UTL_ScopedName *n = 0;
+ UTL_ScopedName *n = nullptr;
ACE_NEW_RETURN (n,
- UTL_ScopedName ((yyvsp[-1].idval), 0),
+ UTL_ScopedName ((yyvsp[-1].idval), nullptr),
1);
ACE_NEW_RETURN ((yyval.ihval),
FE_InterfaceHeader (n,
@@ -3550,11 +3550,11 @@ yyreduce:
true),
1);
- if (0 != (yyvsp[0].nlval))
+ if (nullptr != (yyvsp[0].nlval))
{
(yyvsp[0].nlval)->destroy ();
delete (yyvsp[0].nlval);
- (yyvsp[0].nlval) = 0;
+ (yyvsp[0].nlval) = nullptr;
}
}
#line 3561 "fe/idl.tab.cpp"
@@ -3571,9 +3571,9 @@ yyreduce:
* list of all interfaces which this interface inherits from,
* recursively
*/
- UTL_ScopedName *n = 0;
+ UTL_ScopedName *n = nullptr;
ACE_NEW_RETURN (n,
- UTL_ScopedName ((yyvsp[-1].idval), 0),
+ UTL_ScopedName ((yyvsp[-1].idval), nullptr),
1);
ACE_NEW_RETURN ((yyval.ihval),
FE_InterfaceHeader (n,
@@ -3583,11 +3583,11 @@ yyreduce:
true),
1);
- if (0 != (yyvsp[0].nlval))
+ if (nullptr != (yyvsp[0].nlval))
{
(yyvsp[0].nlval)->destroy ();
delete (yyvsp[0].nlval);
- (yyvsp[0].nlval) = 0;
+ (yyvsp[0].nlval) = nullptr;
}
}
#line 3594 "fe/idl.tab.cpp"
@@ -3604,9 +3604,9 @@ yyreduce:
* list of all interfaces which this interface inherits from,
* recursively
*/
- UTL_ScopedName *n = 0;
+ UTL_ScopedName *n = nullptr;
ACE_NEW_RETURN (n,
- UTL_ScopedName ((yyvsp[-1].idval), 0),
+ UTL_ScopedName ((yyvsp[-1].idval), nullptr),
1);
ACE_NEW_RETURN ((yyval.ihval),
FE_InterfaceHeader (n,
@@ -3616,11 +3616,11 @@ yyreduce:
true),
1);
- if (0 != (yyvsp[0].nlval))
+ if (nullptr != (yyvsp[0].nlval))
{
(yyvsp[0].nlval)->destroy ();
delete (yyvsp[0].nlval);
- (yyvsp[0].nlval) = 0;
+ (yyvsp[0].nlval) = nullptr;
}
}
#line 3627 "fe/idl.tab.cpp"
@@ -3646,7 +3646,7 @@ yyreduce:
case 77:
#line 1095 "fe/idl.ypp"
{
- (yyval.nlval) = 0;
+ (yyval.nlval) = nullptr;
}
#line 3652 "fe/idl.tab.cpp"
break;
@@ -3665,7 +3665,7 @@ yyreduce:
{
FE_OBVHeader *&valuetype_header = (yyvsp[0].vhval);
UTL_Scope *scope = idl_global->scopes ().top_non_null ();
- AST_ValueType *valuetype = 0;
+ AST_ValueType *valuetype = nullptr;
if (scope && valuetype_header)
{
@@ -3698,7 +3698,7 @@ yyreduce:
// FE_OBVHeader is not automatically destroyed in the AST
valuetype_header->destroy ();
delete valuetype_header;
- valuetype_header = 0;
+ valuetype_header = nullptr;
}
/*
@@ -3733,11 +3733,11 @@ yyreduce:
idl_global->set_parse_state (IDL_GlobalData::PS_ValueTypeQsSeen);
AST_ValueType *vt =
- AST_ValueType::narrow_from_scope (
+ dynamic_cast<AST_ValueType*> (
idl_global->scopes ().top_non_null ()
);
- if (vt != 0 && vt->will_have_factory ())
+ if (vt != nullptr && vt->will_have_factory ())
{
idl_global->valuefactory_seen_ = true;
}
@@ -3756,10 +3756,10 @@ yyreduce:
#line 1198 "fe/idl.ypp"
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- AST_ValueType *v = 0;
- AST_Interface *i = 0;
+ AST_ValueType *v = nullptr;
+ AST_Interface *i = nullptr;
- if (s != 0 && (yyvsp[0].vhval) != 0)
+ if (s != nullptr && (yyvsp[0].vhval) != nullptr)
{
v =
idl_global->gen ()->create_valuetype (
@@ -3776,19 +3776,19 @@ yyreduce:
false,
false
);
- i = AST_Interface::narrow_from_decl (v);
+ i = dynamic_cast<AST_Interface*> (v);
AST_Interface::fwd_redefinition_helper (i,
s);
/*
* Add the valuetype to its definition scope
*/
- v = AST_ValueType::narrow_from_decl (i);
+ v = dynamic_cast<AST_ValueType*> (i);
(void) s->fe_add_valuetype (v);
// FE_OBVHeader is not automatically destroyed in the AST
(yyvsp[0].vhval)->destroy ();
delete (yyvsp[0].vhval);
- (yyvsp[0].vhval) = 0;
+ (yyvsp[0].vhval) = nullptr;
}
/*
@@ -3825,7 +3825,7 @@ yyreduce:
*/
idl_global->scopes ().pop ();
- (yyval.dcval) = 0;
+ (yyval.dcval) = nullptr;
}
#line 3831 "fe/idl.tab.cpp"
break;
@@ -3843,31 +3843,31 @@ yyreduce:
{
idl_global->set_parse_state (IDL_GlobalData::PS_SupportSpecSeen);
- UTL_ScopedName *sn = 0;
+ UTL_ScopedName *sn = nullptr;
ACE_NEW_RETURN (sn,
- UTL_ScopedName ((yyvsp[-3].idval), 0),
+ UTL_ScopedName ((yyvsp[-3].idval), nullptr),
1);
ACE_NEW_RETURN ((yyval.vhval),
FE_OBVHeader (sn,
(yyvsp[-2].nlval),
(yyvsp[0].nlval),
- ((yyvsp[-2].nlval) != 0
+ ((yyvsp[-2].nlval) != nullptr
? (yyvsp[-2].nlval)->truncatable ()
: false)),
1);
- if (0 != (yyvsp[0].nlval))
+ if (nullptr != (yyvsp[0].nlval))
{
(yyvsp[0].nlval)->destroy ();
delete (yyvsp[0].nlval);
- (yyvsp[0].nlval) = 0;
+ (yyvsp[0].nlval) = nullptr;
}
- if (0 != (yyvsp[-2].nlval))
+ if (nullptr != (yyvsp[-2].nlval))
{
(yyvsp[-2].nlval)->destroy ();
delete (yyvsp[-2].nlval);
- (yyvsp[-2].nlval) = 0;
+ (yyvsp[-2].nlval) = nullptr;
}
}
#line 3874 "fe/idl.tab.cpp"
@@ -3917,7 +3917,7 @@ yyreduce:
case 99:
#line 1330 "fe/idl.ypp"
{
- (yyval.nlval) = 0;
+ (yyval.nlval) = nullptr;
}
#line 3923 "fe/idl.tab.cpp"
break;
@@ -3927,15 +3927,15 @@ yyreduce:
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
UTL_ScopedName n ((yyvsp[0].idval),
- 0);
- AST_ValueTypeFwd *f = 0;
+ nullptr);
+ AST_ValueTypeFwd *f = nullptr;
idl_global->set_parse_state (IDL_GlobalData::PS_ValueTypeForwardSeen);
/*
* Create a node representing a forward declaration of an
* valuetype. Store it in the enclosing scope
*/
- if (s != 0)
+ if (s != nullptr)
{
f = idl_global->gen ()->create_valuetype_fwd (&n,
true);
@@ -3944,7 +3944,7 @@ yyreduce:
(yyvsp[0].idval)->destroy ();
delete (yyvsp[0].idval);
- (yyvsp[0].idval) = 0;
+ (yyvsp[0].idval) = nullptr;
}
#line 3950 "fe/idl.tab.cpp"
break;
@@ -3954,15 +3954,15 @@ yyreduce:
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
UTL_ScopedName n ((yyvsp[0].idval),
- 0);
- AST_ValueTypeFwd *f = 0;
+ nullptr);
+ AST_ValueTypeFwd *f = nullptr;
idl_global->set_parse_state (IDL_GlobalData::PS_ValueTypeForwardSeen);
/*
* Create a node representing a forward declaration of an
* valuetype. Store it in the enclosing scope
*/
- if (s != 0)
+ if (s != nullptr)
{
f = idl_global->gen ()->create_valuetype_fwd (&n,
false);
@@ -3971,9 +3971,9 @@ yyreduce:
(yyvsp[0].idval)->destroy ();
delete (yyvsp[0].idval);
- (yyvsp[0].idval) = 0;
+ (yyvsp[0].idval) = nullptr;
- (yyval.dcval) = 0;
+ (yyval.dcval) = nullptr;
}
#line 3979 "fe/idl.tab.cpp"
break;
@@ -3985,27 +3985,27 @@ yyreduce:
UTL_Scope *s = idl_global->scopes ().top_non_null ();
UTL_ScopedName n ((yyvsp[-1].idval),
- 0);
+ nullptr);
- if (s != 0 && (yyvsp[0].dcval) != 0)
+ if (s != nullptr && (yyvsp[0].dcval) != nullptr)
{
/*
* Get the type_spec associated with the valuebox
*/
- AST_Type *tp = 0;
+ AST_Type *tp = nullptr;
AST_Typedef *td
- = AST_Typedef::narrow_from_decl ((yyvsp[0].dcval));
+ = dynamic_cast<AST_Typedef*> ((yyvsp[0].dcval));
- if (td == 0)
+ if (td == nullptr)
{
- tp = AST_Type::narrow_from_decl ((yyvsp[0].dcval));
+ tp = dynamic_cast<AST_Type*> ((yyvsp[0].dcval));
}
else
{
tp = td->primitive_base_type ();
}
- if (tp == 0)
+ if (tp == nullptr)
{
// The <type_spec> given is a valid type
idl_global->err ()->not_a_type ((yyvsp[0].dcval));
@@ -4038,9 +4038,9 @@ yyreduce:
(yyvsp[-1].idval)->destroy ();
delete (yyvsp[-1].idval);
- (yyvsp[-1].idval) = 0;
+ (yyvsp[-1].idval) = nullptr;
- (yyval.dcval) = 0;
+ (yyval.dcval) = nullptr;
}
#line 4046 "fe/idl.tab.cpp"
break;
@@ -4080,7 +4080,7 @@ yyreduce:
#line 1484 "fe/idl.ypp"
{
AST_Decl *&node = (yyvsp[0].dcval);
- AST_Decls *value = 0;
+ AST_Decls *value = nullptr;
if (node)
{
value = new AST_Decls;
@@ -4095,7 +4095,7 @@ yyreduce:
#line 1495 "fe/idl.ypp"
{
AST_Decl *&node = (yyvsp[0].dcval);
- AST_Decls *value = 0;
+ AST_Decls *value = nullptr;
if (node)
{
value = new AST_Decls;
@@ -4296,7 +4296,7 @@ yyreduce:
{
idl_global->set_parse_state (IDL_GlobalData::PS_NoState);
yyerrok;
- (yyval.dcval) = 0;
+ (yyval.dcval) = nullptr;
}
#line 4302 "fe/idl.tab.cpp"
break;
@@ -4325,13 +4325,13 @@ yyreduce:
{
idl_global->set_parse_state (IDL_GlobalData::PS_ScopedNameSeen);
- UTL_NameList *nl = 0;
+ UTL_NameList *nl = nullptr;
ACE_NEW_RETURN (nl,
UTL_NameList ((yyvsp[0].idlist),
- 0),
+ nullptr),
1);
- if ((yyvsp[-3].nlval) == 0)
+ if ((yyvsp[-3].nlval) == nullptr)
{
(yyval.nlval) = nl;
}
@@ -4347,7 +4347,7 @@ yyreduce:
case 136:
#line 1673 "fe/idl.ypp"
{
- (yyval.nlval) = 0;
+ (yyval.nlval) = nullptr;
}
#line 4353 "fe/idl.tab.cpp"
break;
@@ -4359,7 +4359,7 @@ yyreduce:
ACE_NEW_RETURN ((yyval.idlist),
UTL_IdList ((yyvsp[0].idval),
- 0),
+ nullptr),
1);
}
#line 4366 "fe/idl.tab.cpp"
@@ -4378,16 +4378,16 @@ yyreduce:
{
idl_global->set_parse_state (IDL_GlobalData::PS_SN_IDSeen);
- Identifier *id = 0;
+ Identifier *id = nullptr;
ACE_NEW_RETURN (id,
Identifier ((yyvsp[-2].strval)),
1);
ACE::strdelete ((yyvsp[-2].strval));
- (yyvsp[-2].strval) = 0;
- UTL_IdList *sn = 0;
+ (yyvsp[-2].strval) = nullptr;
+ UTL_IdList *sn = nullptr;
ACE_NEW_RETURN (sn,
UTL_IdList ((yyvsp[0].idval),
- 0),
+ nullptr),
1);
ACE_NEW_RETURN ((yyval.idlist),
UTL_IdList (id,
@@ -4406,7 +4406,7 @@ yyreduce:
// If there is a global one, it gets put into the UTL_IdList,
// so we clean it up in the case above.
ACE::strdelete ((yyvsp[0].strval));
- (yyvsp[0].strval) = 0;
+ (yyvsp[0].strval) = nullptr;
}
#line 4412 "fe/idl.tab.cpp"
break;
@@ -4416,10 +4416,10 @@ yyreduce:
{
idl_global->set_parse_state (IDL_GlobalData::PS_SN_IDSeen);
- UTL_IdList *sn = 0;
+ UTL_IdList *sn = nullptr;
ACE_NEW_RETURN (sn,
UTL_IdList ((yyvsp[0].idval),
- 0),
+ nullptr),
1);
(yyvsp[-3].idlist)->nconc (sn);
(yyval.idlist) = (yyvsp[-3].idlist);
@@ -4434,7 +4434,7 @@ yyreduce:
Identifier ((yyvsp[0].strval)),
1);
ACE::strdelete ((yyvsp[0].strval));
- (yyvsp[0].strval) = 0;
+ (yyvsp[0].strval) = nullptr;
}
#line 4440 "fe/idl.tab.cpp"
break;
@@ -4446,7 +4446,7 @@ yyreduce:
whereas id is usually a reference to a defining identifier */
ACE_NEW_RETURN ((yyval.idval), Identifier ((yyvsp[0].strval)), 1);
ACE::strdelete ((yyvsp[0].strval));
- (yyvsp[0].strval) = 0;
+ (yyvsp[0].strval) = nullptr;
}
#line 4452 "fe/idl.tab.cpp"
break;
@@ -4455,7 +4455,7 @@ yyreduce:
#line 1759 "fe/idl.ypp"
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- UTL_ScopedName n ((yyvsp[0].idval), 0);
+ UTL_ScopedName n ((yyvsp[0].idval), nullptr);
if (ACE_OS::strcmp ((yyvsp[0].idval)->get_string (),
"TypeCode") == 0
@@ -4471,29 +4471,29 @@ yyreduce:
(yyvsp[0].idval)->destroy ();
delete (yyvsp[0].idval);
- (yyvsp[0].idval) = 0;
+ (yyvsp[0].idval) = nullptr;
break;
}
- AST_InterfaceFwd *f = 0;
+ AST_InterfaceFwd *f = nullptr;
idl_global->set_parse_state (IDL_GlobalData::PS_InterfaceForwardSeen);
/*
* Create a node representing a forward declaration of an
* interface. Store it in the enclosing scope
*/
- if (s != 0)
+ if (s != nullptr)
{
f = idl_global->gen ()->create_interface_fwd (&n,
- 0,
- 0);
+ false,
+ false);
(void) s->fe_add_interface_fwd (f);
}
(yyvsp[0].idval)->destroy ();
delete (yyvsp[0].idval);
- (yyvsp[0].idval) = 0;
+ (yyvsp[0].idval) = nullptr;
}
#line 4499 "fe/idl.tab.cpp"
break;
@@ -4503,8 +4503,8 @@ yyreduce:
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
UTL_ScopedName n ((yyvsp[0].idval),
- 0);
- AST_InterfaceFwd *f = 0;
+ nullptr);
+ AST_InterfaceFwd *f = nullptr;
idl_global->set_parse_state (
IDL_GlobalData::PS_InterfaceForwardSeen
);
@@ -4513,17 +4513,17 @@ yyreduce:
* Create a node representing a forward declaration of an
* interface. Store it in the enclosing scope
*/
- if (s != 0)
+ if (s != nullptr)
{
f = idl_global->gen ()->create_interface_fwd (&n,
- 1,
- 0);
+ true,
+ false);
(void) s->fe_add_interface_fwd (f);
}
(yyvsp[0].idval)->destroy ();
delete (yyvsp[0].idval);
- (yyvsp[0].idval) = 0;
+ (yyvsp[0].idval) = nullptr;
}
#line 4529 "fe/idl.tab.cpp"
break;
@@ -4533,8 +4533,8 @@ yyreduce:
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
UTL_ScopedName n ((yyvsp[0].idval),
- 0);
- AST_InterfaceFwd *f = 0;
+ nullptr);
+ AST_InterfaceFwd *f = nullptr;
idl_global->set_parse_state (
IDL_GlobalData::PS_InterfaceForwardSeen
);
@@ -4543,17 +4543,17 @@ yyreduce:
* Create a node representing a forward declaration of an
* interface. Store it in the enclosing scope
*/
- if (s != 0)
+ if (s != nullptr)
{
f = idl_global->gen ()->create_interface_fwd (&n,
- 0,
- 1);
+ false,
+ true);
(void) s->fe_add_interface_fwd (f);
}
(yyvsp[0].idval)->destroy ();
delete (yyvsp[0].idval);
- (yyvsp[0].idval) = 0;
+ (yyvsp[0].idval) = nullptr;
(yyval.dcval) = dynamic_cast<AST_Decl *> (f);
}
@@ -4595,39 +4595,39 @@ yyreduce:
case 151:
#line 1877 "fe/idl.ypp"
{
- (yyval.dcval) = 0;
- UTL_ScopedName n ((yyvsp[-4].idval), 0);
+ (yyval.dcval) = nullptr;
+ UTL_ScopedName n ((yyvsp[-4].idval), nullptr);
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- AST_Constant *c = 0;
+ AST_Constant *c = nullptr;
idl_global->set_parse_state (IDL_GlobalData::PS_ConstExprSeen);
/*
* Create a node representing a constant declaration. Store
* it in the enclosing scope.
*/
- if ((yyvsp[0].exval) != 0 && s != 0)
+ if ((yyvsp[0].exval) != nullptr && s != nullptr)
{
AST_Param_Holder *param_holder = (yyvsp[0].exval)->param_holder ();
AST_Expression::AST_ExprValue *result =
(yyvsp[0].exval)->check_and_coerce ((yyvsp[-6].etval), tao_enum_constant_decl);
- tao_enum_constant_decl = 0;
+ tao_enum_constant_decl = nullptr;
// If the expression is a template parameter place
// holder, 'result' will be 0, but it's ok.
- if (result == 0 && param_holder == 0)
+ if (result == nullptr && param_holder == nullptr)
{
idl_global->err ()->coercion_error ((yyvsp[0].exval), (yyvsp[-6].etval));
(yyvsp[0].exval)->destroy ();
delete (yyvsp[0].exval);
- (yyvsp[0].exval) = 0;
+ (yyvsp[0].exval) = nullptr;
}
else
{
AST_Expression::ExprType et = (yyvsp[-6].etval);
- if (param_holder != 0
+ if (param_holder != nullptr
&& et != param_holder->info ()->const_type_)
{
idl_global->err ()->mismatched_template_param (
@@ -4642,12 +4642,12 @@ yyreduce:
}
delete result;
- result = 0;
+ result = nullptr;
}
(yyvsp[-4].idval)->destroy ();
delete (yyvsp[-4].idval);
- (yyvsp[-4].idval) = 0;
+ (yyvsp[-4].idval) = nullptr;
}
#line 4653 "fe/idl.tab.cpp"
break;
@@ -4672,8 +4672,8 @@ yyreduce:
#line 1950 "fe/idl.ypp"
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- AST_PredefinedType *c = 0;
- AST_Typedef *t = 0;
+ AST_PredefinedType *c = nullptr;
+ AST_Typedef *t = nullptr;
UTL_ScopedName *sn = (yyvsp[0].idlist);
/*
@@ -4683,16 +4683,16 @@ yyreduce:
AST_Decl *d =
s->lookup_by_name (sn);
- if (s != 0 && d != 0)
+ if (s != nullptr && d != nullptr)
{
/*
* Look through typedefs.
*/
while (d->node_type () == AST_Decl::NT_typedef)
{
- t = AST_Typedef::narrow_from_decl (d);
+ t = dynamic_cast<AST_Typedef*> (d);
- if (t == 0)
+ if (t == nullptr)
{
break;
}
@@ -4702,7 +4702,7 @@ yyreduce:
if (d->node_type () == AST_Decl::NT_pre_defined)
{
- c = AST_PredefinedType::narrow_from_decl (d);
+ c = dynamic_cast<AST_PredefinedType*> (d);
(yyval.etval) = FE_Utils::PredefinedTypeToExprType (c->pt ());
}
@@ -4718,7 +4718,7 @@ yyreduce:
{
(yyval.etval) = AST_Expression::EV_enum;
tao_enum_constant_decl =
- AST_Enum::narrow_from_decl (d);
+ dynamic_cast<AST_Enum*> (d);
}
else
{
@@ -4732,8 +4732,8 @@ yyreduce:
sn->destroy ();
delete sn;
- sn = 0;
- (yyvsp[0].idlist) = 0;
+ sn = nullptr;
+ (yyvsp[0].idlist) = nullptr;
}
#line 4739 "fe/idl.tab.cpp"
break;
@@ -4875,7 +4875,7 @@ yyreduce:
idl_global->gen ()->create_expr (
AST_Expression::EC_u_plus,
(yyvsp[0].exval),
- 0
+ nullptr
);
}
#line 4882 "fe/idl.tab.cpp"
@@ -4888,7 +4888,7 @@ yyreduce:
idl_global->gen ()->create_expr (
AST_Expression::EC_u_minus,
(yyvsp[0].exval),
- 0
+ nullptr
);
}
#line 4895 "fe/idl.tab.cpp"
@@ -4901,7 +4901,7 @@ yyreduce:
idl_global->gen ()->create_expr (
AST_Expression::EC_bit_neg,
(yyvsp[0].exval),
- 0
+ nullptr
);
}
#line 4908 "fe/idl.tab.cpp"
@@ -4917,7 +4917,7 @@ yyreduce:
* but only when it is evaluated (such as when it is assigned
* as a constant value).
*/
- AST_Expression *expr = 0;
+ AST_Expression *expr = nullptr;
AST_Decl *node = stack_based_lookup_for_primary_expr ?
idl_global->scopes ().lookup_by_name (name) :
@@ -4963,7 +4963,7 @@ yyreduce:
(yyval.exval) = expr;
name->destroy ();
delete name;
- (yyvsp[0].idlist) = name = 0;
+ (yyvsp[0].idlist) = name = nullptr;
}
#line 4969 "fe/idl.tab.cpp"
break;
@@ -4999,7 +4999,7 @@ yyreduce:
(yyval.exval) = idl_global->gen ()->create_expr ((yyvsp[0].sval));
(yyvsp[0].sval)->destroy ();
delete (yyvsp[0].sval);
- (yyvsp[0].sval) = 0;
+ (yyvsp[0].sval) = nullptr;
}
#line 5005 "fe/idl.tab.cpp"
break;
@@ -5010,7 +5010,7 @@ yyreduce:
char *wide_string = (yyvsp[0].wsval);
(yyval.exval) = idl_global->gen ()->create_expr (wide_string);
ACE_OS::free (wide_string);
- (yyvsp[0].wsval) = 0;
+ (yyvsp[0].wsval) = nullptr;
}
#line 5016 "fe/idl.tab.cpp"
break;
@@ -5076,7 +5076,7 @@ yyreduce:
* AST_Constant), the AST_ExprValue will probably not be set,
* but there's no need to check anyway
*/
- if (ev != 0)
+ if (ev != nullptr)
{
switch (ev->et)
{
@@ -5143,7 +5143,7 @@ yyreduce:
}
Identifier *id = (yyvsp[-1].idval);
- UTL_ScopedName name (id, 0);
+ UTL_ScopedName name (id, nullptr);
AST_Annotation_Decl::escape_name (&name);
AST_Annotation_Decl *annotation_decl = idl_global->gen ()->
create_annotation_decl (&name);
@@ -5162,7 +5162,7 @@ yyreduce:
id->destroy ();
delete id;
- (yyval.dcval) = 0;
+ (yyval.dcval) = nullptr;
}
#line 5168 "fe/idl.tab.cpp"
break;
@@ -5186,7 +5186,7 @@ yyreduce:
Identifier *name = (yyvsp[-2].idval);
// Annotation member names can't clash with C++ keywords
FE_Utils::original_local_name (name);
- UTL_ScopedName *scoped_name = new UTL_ScopedName (name, 0);
+ UTL_ScopedName *scoped_name = new UTL_ScopedName (name, nullptr);
AST_Expression *default_value = (yyvsp[-1].exval);
AST_Decl * type_obj;
@@ -5204,7 +5204,7 @@ yyreduce:
}
FE_Declarator *declarator = new FE_Declarator (
- scoped_name, FE_Declarator::FD_simple, 0);
+ scoped_name, FE_Declarator::FD_simple, nullptr);
AST_Annotation_Member *member = idl_global->gen ()->
create_annotation_member (
type, declarator->compose (type_obj), declarator->name ());
@@ -5218,7 +5218,7 @@ yyreduce:
// Check if types are compatible, else report error
AST_Expression::AST_ExprValue *result =
default_value->check_and_coerce (type, tao_enum_constant_decl);
- tao_enum_constant_decl = 0;
+ tao_enum_constant_decl = nullptr;
if (result)
{
member->value (default_value);
@@ -5244,7 +5244,7 @@ yyreduce:
case 210:
#line 2462 "fe/idl.ypp"
{
- (yyval.exval) = 0;
+ (yyval.exval) = nullptr;
}
#line 5250 "fe/idl.tab.cpp"
break;
@@ -5294,7 +5294,7 @@ yyreduce:
"Annotations are an IDL4 feature");
}
- AST_Annotation_Decl *decl = 0;
+ AST_Annotation_Decl *decl = nullptr;
UTL_ScopedName *name = (yyvsp[0].idlist);
AST_Annotation_Decl::escape_name (name);
@@ -5303,7 +5303,7 @@ yyreduce:
lookup_by_name (name);
if (d)
{
- decl = AST_Annotation_Decl::narrow_from_decl (d);
+ decl = dynamic_cast<AST_Annotation_Decl*> (d);
if (decl)
{
idl_global->scopes ().push (decl);
@@ -5351,7 +5351,7 @@ yyreduce:
{
idl_global->ignore_lookup_errors_ = false;
stack_based_lookup_for_primary_expr = false;
- AST_Annotation_Appl *appl = 0;
+ AST_Annotation_Appl *appl = nullptr;
UTL_ScopedName *name = (yyvsp[-2].idlist);
AST_Annotation_Decl *decl = (yyvsp[-1].annotation_decl_val);
AST_Annotation_Appl::Params *params = (yyvsp[0].annotation_params_val);
@@ -5389,7 +5389,7 @@ yyreduce:
case 217:
#line 2591 "fe/idl.ypp"
{
- (yyval.annotation_params_val) = 0;
+ (yyval.annotation_params_val) = nullptr;
}
#line 5395 "fe/idl.tab.cpp"
break;
@@ -5399,7 +5399,7 @@ yyreduce:
{
AST_Annotation_Appl::Params *params = new AST_Annotation_Appl::Params;
AST_Annotation_Appl::Param *param = new AST_Annotation_Appl::Param;
- param->id = 0;
+ param->id = nullptr;
param->expr = (yyvsp[0].exval);
params->push (param);
(yyval.annotation_params_val) = params;
@@ -5501,14 +5501,14 @@ yyreduce:
#line 2668 "fe/idl.ypp"
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- AST_Native *node = 0;
+ AST_Native *node = nullptr;
idl_global->set_parse_state (IDL_GlobalData::PS_NativeSeen);
/*
* Create a node representing a Native and add it to its
* enclosing scope
*/
- if (s != 0)
+ if (s != nullptr)
{
node =
idl_global->gen ()->create_native (
@@ -5522,9 +5522,9 @@ yyreduce:
(yyvsp[0].deval)->destroy ();
delete (yyvsp[0].deval);
- (yyvsp[0].deval) = 0;
+ (yyvsp[0].deval) = nullptr;
- (yyval.dcval) = 0;
+ (yyval.dcval) = nullptr;
}
#line 5530 "fe/idl.tab.cpp"
break;
@@ -5532,7 +5532,7 @@ yyreduce:
case 230:
#line 2696 "fe/idl.ypp"
{
- (yyval.dcval) = 0;
+ (yyval.dcval) = nullptr;
}
#line 5538 "fe/idl.tab.cpp"
break;
@@ -5552,8 +5552,8 @@ yyreduce:
UTL_DeclList *decls = (yyvsp[0].dlval);
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- FE_Declarator *d = 0;
- AST_Typedef *t = 0;
+ FE_Declarator *d = nullptr;
+ AST_Typedef *t = nullptr;
unsigned long index = 0UL;
idl_global->set_parse_state (IDL_GlobalData::PS_DeclaratorsSeen);
@@ -5566,13 +5566,13 @@ yyreduce:
for (UTL_DecllistActiveIterator l (decls); !l.is_done (); l.next ())
{
d = l.item ();
- if (d == 0)
+ if (d == nullptr)
{
continue;
}
AST_Type *tp = d->compose (type_spec);
- if (tp == 0)
+ if (tp == nullptr)
{
continue;
}
@@ -5605,7 +5605,7 @@ yyreduce:
// This FE_Declarator class isn't destroyed with the AST.
decls->destroy ();
delete decls;
- (yyvsp[0].dlval) = decls = 0;
+ (yyvsp[0].dlval) = decls = nullptr;
}
(yyval.dcval) = t;
@@ -5628,15 +5628,15 @@ yyreduce:
#line 2787 "fe/idl.ypp"
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- AST_Decl *d = 0;
+ AST_Decl *d = nullptr;
- if (s != 0)
+ if (s != nullptr)
{
d =
s->lookup_by_name ((yyvsp[0].idlist));
}
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error ((yyvsp[0].idlist));
}
@@ -5675,13 +5675,13 @@ yyreduce:
{
idl_global->set_parse_state (IDL_GlobalData::PS_DeclsDeclSeen);
- UTL_DeclList *dl = 0;
+ UTL_DeclList *dl = nullptr;
ACE_NEW_RETURN (dl,
UTL_DeclList ((yyvsp[0].deval),
- 0),
+ nullptr),
1);
- if ((yyvsp[-3].dlval) == 0)
+ if ((yyvsp[-3].dlval) == nullptr)
{
(yyval.dlval) = dl;
}
@@ -5697,7 +5697,7 @@ yyreduce:
case 258:
#line 2877 "fe/idl.ypp"
{
- (yyval.dlval) = 0;
+ (yyval.dlval) = nullptr;
}
#line 5703 "fe/idl.tab.cpp"
break;
@@ -5726,13 +5726,13 @@ yyreduce:
{
idl_global->set_parse_state (IDL_GlobalData::PS_DeclsDeclSeen);
- UTL_DeclList *dl = 0;
+ UTL_DeclList *dl = nullptr;
ACE_NEW_RETURN (dl,
UTL_DeclList ((yyvsp[0].deval),
- 0),
+ nullptr),
1);
- if ((yyvsp[-3].dlval) == 0)
+ if ((yyvsp[-3].dlval) == nullptr)
{
(yyval.dlval) = dl;
}
@@ -5748,7 +5748,7 @@ yyreduce:
case 264:
#line 2924 "fe/idl.ypp"
{
- (yyval.dlval) = 0;
+ (yyval.dlval) = nullptr;
}
#line 5754 "fe/idl.tab.cpp"
break;
@@ -5756,15 +5756,15 @@ yyreduce:
case 265:
#line 2931 "fe/idl.ypp"
{
- UTL_ScopedName *sn = 0;
+ UTL_ScopedName *sn = nullptr;
ACE_NEW_RETURN (sn,
UTL_ScopedName ((yyvsp[0].idval),
- 0),
+ nullptr),
1);
ACE_NEW_RETURN ((yyval.deval),
FE_Declarator (sn,
FE_Declarator::FD_simple,
- 0),
+ nullptr),
1);
}
#line 5771 "fe/idl.tab.cpp"
@@ -5773,11 +5773,11 @@ yyreduce:
case 266:
#line 2947 "fe/idl.ypp"
{
- UTL_ScopedName *sn = 0;
+ UTL_ScopedName *sn = nullptr;
ACE_NEW_RETURN (sn,
UTL_ScopedName (
(yyvsp[0].dcval)->local_name ()->copy (),
- 0
+ nullptr
),
1);
ACE_NEW_RETURN ((yyval.deval),
@@ -5938,14 +5938,14 @@ yyreduce:
#line 3074 "fe/idl.ypp"
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- UTL_ScopedName n ((yyvsp[0].idval), 0);
- AST_Structure *d = 0;
+ UTL_ScopedName n ((yyvsp[0].idval), nullptr);
+ AST_Structure *d = nullptr;
/*
* Create a node representing a struct declaration. Add it
* to the enclosing scope
*/
- if (s != 0)
+ if (s != nullptr)
{
d =
idl_global->gen ()->create_structure (
@@ -5964,7 +5964,7 @@ yyreduce:
(yyvsp[0].idval)->destroy ();
delete (yyvsp[0].idval);
- (yyvsp[0].idval) = 0;
+ (yyvsp[0].idval) = nullptr;
}
#line 5970 "fe/idl.tab.cpp"
break;
@@ -5993,7 +5993,7 @@ yyreduce:
/*
* Done with this struct. Pop its scope off the scopes stack.
*/
- (yyval.dcval) = AST_Structure::narrow_from_scope (
+ (yyval.dcval) = dynamic_cast<AST_Structure*> (
idl_global->scopes ().top_non_null ()
);
idl_global->scopes ().pop ();
@@ -6039,15 +6039,15 @@ yyreduce:
#line 3160 "fe/idl.ypp"
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- FE_Declarator *d = 0;
- AST_Field *f = 0;
+ FE_Declarator *d = nullptr;
+ AST_Field *f = nullptr;
idl_global->set_parse_state (IDL_GlobalData::PS_MemberDeclsCompleted);
- AST_Decls *members = 0;
+ AST_Decls *members = nullptr;
/*
* Check for illegal recursive use of type.
*/
- if ((yyvsp[-4].dcval) != 0
+ if ((yyvsp[-4].dcval) != nullptr
&& AST_illegal_recursive_type ((yyvsp[-4].dcval)))
{
idl_global->err ()->error1 (UTL_Error::EIDL_RECURSIVE_TYPE,
@@ -6066,14 +6066,14 @@ yyreduce:
{
d = l.item ();
- if (d == 0)
+ if (d == nullptr)
{
continue;
}
AST_Type *tp = d->compose ((yyvsp[-4].dcval));
- if (tp == 0)
+ if (tp == nullptr)
{
continue;
}
@@ -6086,7 +6086,7 @@ yyreduce:
(yyvsp[-2].dlval)->destroy ();
delete (yyvsp[-2].dlval);
- (yyvsp[-2].dlval) = 0;
+ (yyvsp[-2].dlval) = nullptr;
(yyval.decls_val) = members;
}
@@ -6139,24 +6139,24 @@ yyreduce:
#line 3242 "fe/idl.ypp"
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- UTL_ScopedName n ((yyvsp[-3].idval), 0);
- AST_Union *u = 0;
+ UTL_ScopedName n ((yyvsp[-3].idval), nullptr);
+ AST_Union *u = nullptr;
idl_global->set_parse_state (IDL_GlobalData::PS_SwitchOpenParSeen);
/*
* Create a node representing an empty union. Add it to its enclosing
* scope.
*/
- if (s != 0)
+ if (s != nullptr)
{
- u = idl_global->gen ()->create_union (0,
+ u = idl_global->gen ()->create_union (nullptr,
&n,
s->is_local (),
s->is_abstract ());
- AST_Structure *st = AST_Structure::narrow_from_decl (u);
+ AST_Structure *st = dynamic_cast<AST_Structure*> (u);
AST_Structure::fwd_redefinition_helper (st, s);
- u = AST_Union::narrow_from_decl (st);
+ u = dynamic_cast<AST_Union*> (st);
(void) s->fe_add_union (u);
}
@@ -6194,32 +6194,32 @@ yyreduce:
AST_Annotation_Appls *disc_annotations = (yyvsp[-3].annotations_val);
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- UTL_ScopedName n ((yyvsp[-8].idval), 0);
+ UTL_ScopedName n ((yyvsp[-8].idval), nullptr);
idl_global->set_parse_state (IDL_GlobalData::PS_SwitchCloseParSeen);
/*
* Create a node representing a union.
*/
- if ((yyvsp[-2].dcval) != 0 && s != 0)
+ if ((yyvsp[-2].dcval) != nullptr && s != nullptr)
{
AST_ConcreteType *tp =
- AST_ConcreteType::narrow_from_decl ((yyvsp[-2].dcval));
+ dynamic_cast<AST_ConcreteType*> ((yyvsp[-2].dcval));
- if (tp == 0)
+ if (tp == nullptr)
{
idl_global->err ()->not_a_type ((yyvsp[-2].dcval));
}
else
{
/* Create a union with a correct discriminator. */
- AST_Union *u = 0;
+ AST_Union *u = nullptr;
u = idl_global->gen ()->create_union (tp,
&n,
s->is_local (),
s->is_abstract ());
/* Narrow the enclosing scope. */
- AST_Union *e = AST_Union::narrow_from_scope (top);
+ AST_Union *e = dynamic_cast<AST_Union*> (top);
e->redefine (u);
e->disc_annotations (*disc_annotations); // Set Discriminator Annotations
@@ -6236,7 +6236,7 @@ yyreduce:
(yyvsp[-8].idval)->destroy ();
delete (yyvsp[-8].idval);
- (yyvsp[-8].idval) = 0;
+ (yyvsp[-8].idval) = nullptr;
delete disc_annotations;
}
@@ -6267,11 +6267,11 @@ yyreduce:
/*
* Done with this union. Pop its scope from the scopes stack.
*/
- (yyval.dcval) = AST_Union::narrow_from_scope (
+ (yyval.dcval) = dynamic_cast<AST_Union*> (
idl_global->scopes ().top_non_null ()
);
- if ((yyval.dcval) != 0)
+ if ((yyval.dcval) != nullptr)
{
idl_global->scopes ().pop ();
}
@@ -6335,9 +6335,9 @@ yyreduce:
#line 3402 "fe/idl.ypp"
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- AST_Decl *d = 0;
- AST_PredefinedType *p = 0;
- AST_Typedef *t = 0;
+ AST_Decl *d = nullptr;
+ AST_PredefinedType *p = nullptr;
+ AST_Typedef *t = nullptr;
bool found = false;
/*
@@ -6349,7 +6349,7 @@ yyreduce:
d =
s->lookup_by_name ((yyvsp[0].idlist));
- if (s != 0 && d != 0)
+ if (s != nullptr && d != nullptr)
{
while (!found)
{
@@ -6360,9 +6360,9 @@ yyreduce:
found = true;
break;
case AST_Decl::NT_pre_defined:
- p = AST_PredefinedType::narrow_from_decl (d);
+ p = dynamic_cast<AST_PredefinedType*> (d);
- if (p != 0)
+ if (p != nullptr)
{
switch (p->pt ())
{
@@ -6383,33 +6383,33 @@ yyreduce:
idl_global->err ()->error0 (
UTL_Error::EIDL_DISC_TYPE
);
- (yyval.dcval) = 0;
+ (yyval.dcval) = nullptr;
found = true;
break;
default:
- (yyval.dcval) = 0;
+ (yyval.dcval) = nullptr;
found = true;
break;
}
}
else
{
- (yyval.dcval) = 0;
+ (yyval.dcval) = nullptr;
found = true;
}
break;
case AST_Decl::NT_typedef:
- t = AST_Typedef::narrow_from_decl (d);
+ t = dynamic_cast<AST_Typedef*> (d);
- if (t != 0)
+ if (t != nullptr)
{
d = t->base_type ();
}
break;
default:
- (yyval.dcval) = 0;
+ (yyval.dcval) = nullptr;
found = true;
break;
}
@@ -6417,16 +6417,16 @@ yyreduce:
}
else
{
- (yyval.dcval) = 0;
+ (yyval.dcval) = nullptr;
}
- if ((yyval.dcval) == 0)
+ if ((yyval.dcval) == nullptr)
{
idl_global->err ()->lookup_error ((yyvsp[0].idlist));
(yyvsp[0].idlist)->destroy ();
delete (yyvsp[0].idlist);
- (yyvsp[0].idlist) = 0;
+ (yyvsp[0].idlist) = nullptr;
/* If we don't return here, we'll crash later.*/
if (!idl_global->ignore_lookup_errors_)
@@ -6437,7 +6437,7 @@ yyreduce:
(yyvsp[0].idlist)->destroy ();
delete (yyvsp[0].idlist);
- (yyvsp[0].idlist) = 0;
+ (yyvsp[0].idlist) = nullptr;
}
#line 6443 "fe/idl.tab.cpp"
break;
@@ -6462,7 +6462,7 @@ yyreduce:
#line 3527 "fe/idl.ypp"
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- AST_UnionBranch *b = 0;
+ AST_UnionBranch *b = nullptr;
AST_Annotation_Appls *annotations = (yyvsp[-3].annotations_val);
AST_Field *f = (yyvsp[-2].ffval);
idl_global->set_parse_state (IDL_GlobalData::PS_UnionElemCompleted);
@@ -6471,7 +6471,7 @@ yyreduce:
* Create several nodes representing branches of a union.
* Add them to the enclosing scope (the union scope)
*/
- if (s != 0 && (yyvsp[-5].llval) != 0 && (yyvsp[-2].ffval) != 0)
+ if (s != nullptr && (yyvsp[-5].llval) != nullptr && (yyvsp[-2].ffval) != nullptr)
{
b =
idl_global->gen ()->create_union_branch (
@@ -6486,7 +6486,7 @@ yyreduce:
// but the rest still needs to be cleaned up.
f->AST_Decl::destroy ();
delete f;
- f = 0;
+ f = nullptr;
}
delete annotations;
@@ -6525,13 +6525,13 @@ yyreduce:
case 324:
#line 3581 "fe/idl.ypp"
{
- UTL_LabelList *ll = 0;
+ UTL_LabelList *ll = nullptr;
ACE_NEW_RETURN (ll,
UTL_LabelList ((yyvsp[0].ulval),
- 0),
+ nullptr),
1);
- if ((yyvsp[-1].llval) == 0)
+ if ((yyvsp[-1].llval) == nullptr)
{
(yyval.llval) = ll;
}
@@ -6547,7 +6547,7 @@ yyreduce:
case 325:
#line 3599 "fe/idl.ypp"
{
- (yyval.llval) = 0;
+ (yyval.llval) = nullptr;
}
#line 6553 "fe/idl.tab.cpp"
break;
@@ -6567,7 +6567,7 @@ yyreduce:
(yyval.ulval) = idl_global->gen ()->create_union_label (
AST_UnionLabel::UL_default,
- 0
+ nullptr
);
}
#line 6574 "fe/idl.tab.cpp"
@@ -6618,28 +6618,28 @@ yyreduce:
/*
* Check for illegal recursive use of type
*/
- if ((yyvsp[-2].dcval) != 0
+ if ((yyvsp[-2].dcval) != nullptr
&& AST_illegal_recursive_type ((yyvsp[-2].dcval)))
{
idl_global->err ()->error1 (UTL_Error::EIDL_RECURSIVE_TYPE, (yyvsp[-2].dcval));
- (yyval.ffval) = 0;
+ (yyval.ffval) = nullptr;
}
/*
* Create a field in a union branch
*/
- else if ((yyvsp[-2].dcval) == 0
- || (yyvsp[0].deval) == 0)
+ else if ((yyvsp[-2].dcval) == nullptr
+ || (yyvsp[0].deval) == nullptr)
{
- (yyval.ffval) = 0;
+ (yyval.ffval) = nullptr;
}
else
{
AST_Type *tp = (yyvsp[0].deval)->compose ((yyvsp[-2].dcval));
- if (tp == 0)
+ if (tp == nullptr)
{
- (yyval.ffval) = 0;
+ (yyval.ffval) = nullptr;
}
else
{
@@ -6651,7 +6651,7 @@ yyreduce:
(yyvsp[0].deval)->destroy ();
delete (yyvsp[0].deval);
- (yyvsp[0].deval) = 0;
+ (yyvsp[0].deval) = nullptr;
}
}
#line 6658 "fe/idl.tab.cpp"
@@ -6662,13 +6662,13 @@ yyreduce:
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
UTL_ScopedName n ((yyvsp[0].idval),
- 0);
- AST_StructureFwd *d = 0;
+ nullptr);
+ AST_StructureFwd *d = nullptr;
/*
* Create a node representing a forward declaration of a struct.
*/
- if (s != 0)
+ if (s != nullptr)
{
d = idl_global->gen ()->create_structure_fwd (&n);
(void) s->fe_add_structure_fwd (d);
@@ -6676,7 +6676,7 @@ yyreduce:
(yyvsp[0].idval)->destroy ();
delete (yyvsp[0].idval);
- (yyvsp[0].idval) = 0;
+ (yyvsp[0].idval) = nullptr;
(yyval.dcval) = d;
}
@@ -6688,13 +6688,13 @@ yyreduce:
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
UTL_ScopedName n ((yyvsp[0].idval),
- 0);
- AST_UnionFwd *u = 0;
+ nullptr);
+ AST_UnionFwd *u = nullptr;
/*
* Create a node representing a forward declaration of a union.
*/
- if (s != 0)
+ if (s != nullptr)
{
u = idl_global->gen ()->create_union_fwd (&n);
(void) s->fe_add_union_fwd (u);
@@ -6702,7 +6702,7 @@ yyreduce:
(yyvsp[0].idval)->destroy ();
delete (yyvsp[0].idval);
- (yyvsp[0].idval) = 0;
+ (yyvsp[0].idval) = nullptr;
}
#line 6708 "fe/idl.tab.cpp"
break;
@@ -6719,15 +6719,15 @@ yyreduce:
#line 3741 "fe/idl.ypp"
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- UTL_ScopedName n ((yyvsp[0].idval), 0);
- AST_Enum *e = 0;
+ UTL_ScopedName n ((yyvsp[0].idval), nullptr);
+ AST_Enum *e = nullptr;
idl_global->set_parse_state (IDL_GlobalData::PS_EnumIDSeen);
/*
* Create a node representing an enum and add it to its
* enclosing scope.
*/
- if (s != 0)
+ if (s != nullptr)
{
e = idl_global->gen ()->create_enum (&n,
s->is_local (),
@@ -6745,7 +6745,7 @@ yyreduce:
(yyvsp[0].idval)->destroy ();
delete (yyvsp[0].idval);
- (yyvsp[0].idval) = 0;
+ (yyvsp[0].idval) = nullptr;
}
#line 6751 "fe/idl.tab.cpp"
break;
@@ -6774,13 +6774,13 @@ yyreduce:
/*
* Done with this enum. Pop its scope from the scopes stack.
*/
- if (idl_global->scopes ().top () == 0)
+ if (idl_global->scopes ().top () == nullptr)
{
- (yyval.dcval) = 0;
+ (yyval.dcval) = nullptr;
}
else
{
- (yyval.dcval) = AST_Enum::narrow_from_scope (
+ (yyval.dcval) = dynamic_cast<AST_Enum*> (
idl_global->scopes ().top_non_null ()
);
idl_global->scopes ().pop ();
@@ -6804,21 +6804,21 @@ yyreduce:
AST_Annotation_Appls *annotations = (yyvsp[-1].annotations_val);
Identifier id ((yyvsp[0].strval));
ACE::strdelete ((yyvsp[0].strval));
- (yyvsp[0].strval) = 0;
- UTL_ScopedName n (&id, 0);
- AST_EnumVal *e = 0;
- AST_Enum *c = 0;
+ (yyvsp[0].strval) = nullptr;
+ UTL_ScopedName n (&id, nullptr);
+ AST_EnumVal *e = nullptr;
+ AST_Enum *c = nullptr;
/*
* Create a node representing one enumerator in an enum
* Add it to the enclosing scope (the enum scope)
*/
- if (s != 0
+ if (s != nullptr
&& s->scope_node_type () == AST_Decl::NT_enum)
{
- c = AST_Enum::narrow_from_scope (s);
+ c = dynamic_cast<AST_Enum*> (s);
- if (c != 0)
+ if (c != nullptr)
{
e = idl_global->gen ()->create_enum_val (
c->next_enum_val (),
@@ -6857,10 +6857,10 @@ yyreduce:
{
idl_global->set_parse_state (IDL_GlobalData::PS_SequenceQsSeen);
- AST_Sequence *seq = 0;
+ AST_Sequence *seq = nullptr;
Decl_Annotations_Pair *seq_head = (yyvsp[-5].decl_annotations_pair_val);
- AST_Decl *type = 0;
- AST_Annotation_Appls *type_annotations = 0;
+ AST_Decl *type = nullptr;
+ AST_Annotation_Appls *type_annotations = nullptr;
if (seq_head)
{
type = seq_head->decl;
@@ -6871,7 +6871,7 @@ yyreduce:
/*
* Remove sequence marker from scopes stack.
*/
- if (idl_global->scopes ().top () == 0)
+ if (idl_global->scopes ().top () == nullptr)
{
idl_global->scopes ().pop ();
}
@@ -6881,10 +6881,10 @@ yyreduce:
/*
* Create a node representing a sequence
*/
- AST_Expression::AST_ExprValue *ev = 0;
- AST_Param_Holder *param_holder = 0;
+ AST_Expression::AST_ExprValue *ev = nullptr;
+ AST_Param_Holder *param_holder = nullptr;
- if ((yyvsp[-2].exval) != 0)
+ if ((yyvsp[-2].exval) != nullptr)
{
param_holder =
(yyvsp[-2].exval)->param_holder ();
@@ -6895,17 +6895,17 @@ yyreduce:
// If the expression corresponds to a template parameter,
// it's ok for the coercion to fail at this point. We check
// for a type mismatch below.
- if (0 == (yyvsp[-2].exval)
- || (0 == ev && 0 == param_holder))
+ if (nullptr == (yyvsp[-2].exval)
+ || (nullptr == ev && nullptr == param_holder))
{
idl_global->err ()->coercion_error ((yyvsp[-2].exval),
AST_Expression::EV_ulong);
}
else if (type)
{
- AST_Type *tp = AST_Type::narrow_from_decl (type);
+ AST_Type *tp = dynamic_cast<AST_Type*> (type);
- if (0 == tp)
+ if (nullptr == tp)
{
; // Error will be caught in FE_Declarator.
}
@@ -6913,7 +6913,7 @@ yyreduce:
{
Identifier id ("sequence");
UTL_ScopedName sn (&id,
- 0);
+ nullptr);
seq =
idl_global->gen ()->create_sequence (
@@ -6931,7 +6931,7 @@ yyreduce:
delete type_annotations;
delete ev;
- ev = 0;
+ ev = nullptr;
(yyval.dcval) = seq;
}
#line 6938 "fe/idl.tab.cpp"
@@ -6942,10 +6942,10 @@ yyreduce:
{
idl_global->set_parse_state (IDL_GlobalData::PS_SequenceQsSeen);
- AST_Sequence *seq = 0;
+ AST_Sequence *seq = nullptr;
Decl_Annotations_Pair *seq_head = (yyvsp[-1].decl_annotations_pair_val);
- AST_Decl *type = 0;
- AST_Annotation_Appls *type_annotations = 0;
+ AST_Decl *type = nullptr;
+ AST_Annotation_Appls *type_annotations = nullptr;
if (seq_head)
{
type = seq_head->decl;
@@ -6956,7 +6956,7 @@ yyreduce:
/*
* Remove sequence marker from scopes stack.
*/
- if (idl_global->scopes ().top () == 0)
+ if (idl_global->scopes ().top () == nullptr)
{
idl_global->scopes ().pop ();
}
@@ -6968,16 +6968,16 @@ yyreduce:
*/
if (type)
{
- AST_Type *tp = AST_Type::narrow_from_decl (type);
+ AST_Type *tp = dynamic_cast<AST_Type*> (type);
- if (tp == 0)
+ if (tp == nullptr)
{
; // Error will be caught in FE_Declarator.
}
else
{
Identifier id ("sequence");
- UTL_ScopedName sn (&id, 0);
+ UTL_ScopedName sn (&id, nullptr);
ACE_CDR::ULong bound = 0UL;
seq =
@@ -7011,7 +7011,7 @@ yyreduce:
/*
* Push a sequence marker on scopes stack.
*/
- idl_global->scopes ().push (0);
+ idl_global->scopes ().push (nullptr);
}
#line 7017 "fe/idl.tab.cpp"
break;
@@ -7069,18 +7069,18 @@ yyreduce:
/*
* Create a node representing a string.
*/
- AST_Expression::AST_ExprValue *ev = 0;
+ AST_Expression::AST_ExprValue *ev = nullptr;
- if ((yyvsp[-2].exval) != 0)
+ if ((yyvsp[-2].exval) != nullptr)
{
ev = (yyvsp[-2].exval)->coerce (AST_Expression::EV_ulong);
}
- if (0 == (yyvsp[-2].exval) || 0 == ev)
+ if (nullptr == (yyvsp[-2].exval) || nullptr == ev)
{
idl_global->err ()->coercion_error ((yyvsp[-2].exval),
AST_Expression::EV_ulong);
- (yyval.dcval) = 0;
+ (yyval.dcval) = nullptr;
}
else
{
@@ -7090,7 +7090,7 @@ yyreduce:
* Add this AST_String to the types defined in the global scope.
*/
idl_global->root ()->fe_add_string (
- AST_String::narrow_from_decl (
+ dynamic_cast<AST_String*> (
tao_string_decl));
idl_global->err ()->anonymous_type_diagnostic ();
@@ -7099,7 +7099,7 @@ yyreduce:
}
delete ev;
- ev = 0;
+ ev = nullptr;
}
#line 7105 "fe/idl.tab.cpp"
break;
@@ -7123,7 +7123,7 @@ yyreduce:
* Add this AST_String to the types defined in the global scope.
*/
idl_global->root ()->fe_add_string (
- AST_String::narrow_from_decl (
+ dynamic_cast<AST_String*> (
tao_string_decl));
(yyval.dcval) = tao_string_decl;
@@ -7163,12 +7163,12 @@ yyreduce:
/*
* Create a node representing a string.
*/
- if ((yyvsp[-2].exval) == 0
- || (yyvsp[-2].exval)->coerce (AST_Expression::EV_ulong) == 0)
+ if ((yyvsp[-2].exval) == nullptr
+ || (yyvsp[-2].exval)->coerce (AST_Expression::EV_ulong) == nullptr)
{
idl_global->err ()->coercion_error ((yyvsp[-2].exval),
AST_Expression::EV_ulong);
- (yyval.dcval) = 0;
+ (yyval.dcval) = nullptr;
}
else
{
@@ -7178,7 +7178,7 @@ yyreduce:
* Add this AST_String to the types defined in the global scope.
*/
idl_global->root ()->fe_add_string (
- AST_String::narrow_from_decl (
+ dynamic_cast<AST_String*> (
string));
idl_global->err ()->anonymous_type_diagnostic ();
@@ -7208,7 +7208,7 @@ yyreduce:
* Add this AST_String to the types defined in the global scope.
*/
idl_global->root ()->fe_add_string (
- AST_String::narrow_from_decl (
+ dynamic_cast<AST_String*> (
string));
(yyval.dcval) = string;
@@ -7237,7 +7237,7 @@ yyreduce:
{
idl_global->set_parse_state (IDL_GlobalData::PS_ArrayCompleted);
- AST_Array *array = 0;
+ AST_Array *array = nullptr;
AST_Annotation_Appls *base_type_annotations = (yyvsp[-1].annotations_val);
UTL_ExprList *array_dims = (yyvsp[0].elval);
@@ -7247,14 +7247,14 @@ yyreduce:
if (array_dims)
{
UTL_ScopedName sn ((yyvsp[-3].idval),
- 0);
+ nullptr);
array =
idl_global->gen ()->create_array (
&sn,
array_dims->length (),
array_dims,
- 0,
- 0
+ false,
+ false
);
array->base_type_annotations (*base_type_annotations);
sn.destroy ();
@@ -7286,13 +7286,13 @@ yyreduce:
case 366:
#line 4246 "fe/idl.ypp"
{
- UTL_ExprList *el = 0;
+ UTL_ExprList *el = nullptr;
ACE_NEW_RETURN (el,
UTL_ExprList ((yyvsp[0].exval),
- 0),
+ nullptr),
1);
- if ((yyvsp[-1].elval) == 0)
+ if ((yyvsp[-1].elval) == nullptr)
{
(yyval.elval) = el;
}
@@ -7308,7 +7308,7 @@ yyreduce:
case 367:
#line 4264 "fe/idl.ypp"
{
- (yyval.elval) = 0;
+ (yyval.elval) = nullptr;
}
#line 7314 "fe/idl.tab.cpp"
break;
@@ -7338,10 +7338,10 @@ yyreduce:
* Array dimensions are expressions which must be coerced to
* positive integers.
*/
- AST_Expression::AST_ExprValue *ev = 0;
- AST_Param_Holder *param_holder = 0;
+ AST_Expression::AST_ExprValue *ev = nullptr;
+ AST_Param_Holder *param_holder = nullptr;
- if ((yyvsp[-2].exval) != 0)
+ if ((yyvsp[-2].exval) != nullptr)
{
param_holder =
(yyvsp[-2].exval)->param_holder ();
@@ -7350,16 +7350,16 @@ yyreduce:
(yyvsp[-2].exval)->coerce (AST_Expression::EV_ulong);
}
- if (0 == (yyvsp[-2].exval)
- || (ev == 0 && param_holder == 0))
+ if (nullptr == (yyvsp[-2].exval)
+ || (ev == nullptr && param_holder == nullptr))
{
idl_global->err ()->coercion_error ((yyvsp[-2].exval),
AST_Expression::EV_ulong);
- (yyval.exval) = 0;
+ (yyval.exval) = nullptr;
}
else
{
- if (param_holder != 0)
+ if (param_holder != nullptr)
{
AST_Expression::ExprType et =
param_holder->info ()->const_type_;
@@ -7373,7 +7373,7 @@ yyreduce:
param_holder->info ()->name_.c_str ());
delete ev;
- ev = 0;
+ ev = nullptr;
return 1;
}
}
@@ -7382,7 +7382,7 @@ yyreduce:
}
delete ev;
- ev = 0;
+ ev = nullptr;
}
#line 7388 "fe/idl.tab.cpp"
break;
@@ -7423,8 +7423,8 @@ yyreduce:
#line 4357 "fe/idl.ypp"
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- AST_Attribute *a = 0;
- FE_Declarator *d = 0;
+ AST_Attribute *a = nullptr;
+ FE_Declarator *d = nullptr;
idl_global->set_parse_state (IDL_GlobalData::PS_OpRaiseCompleted);
@@ -7432,20 +7432,20 @@ yyreduce:
* Create nodes representing attributes and add them to the
* enclosing scope.
*/
- if (s != 0 && (yyvsp[-4].dcval) != 0 && (yyvsp[-2].dlval) != 0)
+ if (s != nullptr && (yyvsp[-4].dcval) != nullptr && (yyvsp[-2].dlval) != nullptr)
{
for (UTL_DecllistActiveIterator l ((yyvsp[-2].dlval)); !l.is_done (); l.next ())
{
d = l.item ();
- if (d == 0)
+ if (d == nullptr)
{
continue;
}
AST_Type *tp = d->compose ((yyvsp[-4].dcval));
- if (tp == 0)
+ if (tp == nullptr)
{
continue;
}
@@ -7453,13 +7453,13 @@ yyreduce:
a = idl_global->gen ()->create_attribute (
true, tp, d->name (), s->is_local (), s->is_abstract ());
- if ((yyvsp[0].nlval) != 0)
+ if ((yyvsp[0].nlval) != nullptr)
{
(void) a->fe_add_get_exceptions ((yyvsp[0].nlval));
(yyvsp[0].nlval)->destroy ();
delete (yyvsp[0].nlval);
- (yyvsp[0].nlval) = 0;
+ (yyvsp[0].nlval) = nullptr;
}
(void) s->fe_add_attribute (a);
@@ -7468,7 +7468,7 @@ yyreduce:
(yyvsp[-2].dlval)->destroy ();
delete (yyvsp[-2].dlval);
- (yyvsp[-2].dlval) = 0;
+ (yyvsp[-2].dlval) = nullptr;
(yyval.dcval) = a;
}
@@ -7511,8 +7511,8 @@ yyreduce:
#line 4428 "fe/idl.ypp"
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- AST_Attribute *a = 0;
- FE_Declarator *d = 0;
+ AST_Attribute *a = nullptr;
+ FE_Declarator *d = nullptr;
idl_global->set_parse_state (IDL_GlobalData::PS_OpSetRaiseCompleted);
@@ -7520,20 +7520,20 @@ yyreduce:
* Create nodes representing attributes and add them to the
* enclosing scope.
*/
- if (s != 0 && (yyvsp[-6].dcval) != 0 && (yyvsp[-4].dlval) != 0)
+ if (s != nullptr && (yyvsp[-6].dcval) != nullptr && (yyvsp[-4].dlval) != nullptr)
{
for (UTL_DecllistActiveIterator l ((yyvsp[-4].dlval)); !l.is_done (); l.next ())
{
d = l.item ();
- if (d == 0)
+ if (d == nullptr)
{
continue;
}
AST_Type *tp = d->compose ((yyvsp[-6].dcval));
- if (tp == 0)
+ if (tp == nullptr)
{
continue;
}
@@ -7541,22 +7541,22 @@ yyreduce:
a = idl_global->gen ()->create_attribute (
false, tp, d->name (), s->is_local (), s->is_abstract ());
- if ((yyvsp[-2].nlval) != 0)
+ if ((yyvsp[-2].nlval) != nullptr)
{
(void) a->fe_add_get_exceptions ((yyvsp[-2].nlval));
(yyvsp[-2].nlval)->destroy ();
delete (yyvsp[-2].nlval);
- (yyvsp[-2].nlval) = 0;
+ (yyvsp[-2].nlval) = nullptr;
}
- if ((yyvsp[0].nlval) != 0)
+ if ((yyvsp[0].nlval) != nullptr)
{
(void) a->fe_add_set_exceptions ((yyvsp[0].nlval));
(yyvsp[0].nlval)->destroy ();
delete (yyvsp[0].nlval);
- (yyvsp[0].nlval) = 0;
+ (yyvsp[0].nlval) = nullptr;
}
(void) s->fe_add_attribute (a);
@@ -7565,7 +7565,7 @@ yyreduce:
(yyvsp[-4].dlval)->destroy ();
delete (yyvsp[-4].dlval);
- (yyvsp[-4].dlval) = 0;
+ (yyvsp[-4].dlval) = nullptr;
(yyval.dcval) = a;
}
@@ -7585,8 +7585,8 @@ yyreduce:
{
Identifier *&id = (yyvsp[0].idval);
UTL_Scope *scope = idl_global->scopes ().top_non_null ();
- UTL_ScopedName scoped_name (id, 0);
- AST_Exception *exception = 0;
+ UTL_ScopedName scoped_name (id, nullptr);
+ AST_Exception *exception = nullptr;
idl_global->set_parse_state (IDL_GlobalData::PS_ExceptIDSeen);
/*
@@ -7609,7 +7609,7 @@ yyreduce:
id->destroy ();
delete id;
- id = 0;
+ id = nullptr;
(yyval.dcval) = exception;
}
@@ -7657,28 +7657,28 @@ yyreduce:
case 389:
#line 4553 "fe/idl.ypp"
{
- AST_Operation *op = 0;
+ AST_Operation *op = nullptr;
UTL_Scope *scope = idl_global->scopes ().top_non_null ();
AST_Operation::Flags op_flags = (yyvsp[-3].ofval);
AST_Decl *type_node = (yyvsp[-2].dcval);
- (yyvsp[-2].dcval) = 0;
+ (yyvsp[-2].dcval) = nullptr;
Identifier id ((yyvsp[0].strval));
ACE::strdelete ((yyvsp[0].strval));
- (yyvsp[0].strval) = 0;
+ (yyvsp[0].strval) = nullptr;
- UTL_ScopedName name (&id, 0);
+ UTL_ScopedName name (&id, nullptr);
idl_global->set_parse_state (IDL_GlobalData::PS_OpIDSeen);
/*
* Create a node representing an operation on an interface
* and add it to its enclosing scope.
*/
- if (scope != 0 && type_node != 0)
+ if (scope != nullptr && type_node != nullptr)
{
- AST_Type *type = AST_Type::narrow_from_decl (type_node);
+ AST_Type *type = dynamic_cast<AST_Type*> (type_node);
- if (type == 0)
+ if (type == nullptr)
{
idl_global->err ()->not_a_type (type_node);
}
@@ -7702,7 +7702,7 @@ yyreduce:
idl_global->err ()->local_remote_mismatch (type, op);
op->destroy ();
delete op;
- op = 0;
+ op = nullptr;
}
else
{
@@ -7739,22 +7739,22 @@ yyreduce:
#line 4622 "fe/idl.ypp"
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- AST_Operation *o = 0;
+ AST_Operation *o = nullptr;
idl_global->set_parse_state (IDL_GlobalData::PS_OpCompleted);
/*
* Add exceptions and context to the operation.
*/
- if (s != 0 && s->scope_node_type () == AST_Decl::NT_op)
+ if (s != nullptr && s->scope_node_type () == AST_Decl::NT_op)
{
- o = AST_Operation::narrow_from_scope (s);
+ o = dynamic_cast<AST_Operation*> (s);
- if ((yyvsp[-2].nlval) != 0 && o != 0)
+ if ((yyvsp[-2].nlval) != nullptr && o != nullptr)
{
(void) o->fe_add_exceptions ((yyvsp[-2].nlval));
}
- if ((yyvsp[0].slval) != 0)
+ if ((yyvsp[0].slval) != nullptr)
{
(void) o->fe_add_context ((yyvsp[0].slval));
}
@@ -7836,18 +7836,18 @@ yyreduce:
Identifier id ((yyvsp[0].strval));
ACE::strdelete ((yyvsp[0].strval));
- (yyvsp[0].strval) = 0;
+ (yyvsp[0].strval) = nullptr;
UTL_ScopedName n (&id,
- 0);
- AST_Factory *factory = 0;
+ nullptr);
+ AST_Factory *factory = nullptr;
idl_global->set_parse_state (IDL_GlobalData::PS_OpIDSeen);
/*
* Create a node representing an factory construct
* and add it to its enclosing scope
*/
- if (s != 0)
+ if (s != nullptr)
{
factory = idl_global->gen ()->create_factory (&n);
(void) s->fe_add_factory (factory);
@@ -7879,7 +7879,7 @@ yyreduce:
if ((yyvsp[0].nlval))
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- AST_Factory *f = AST_Factory::narrow_from_scope (s);
+ AST_Factory *f = dynamic_cast<AST_Factory*> (s);
(void) f->fe_add_exceptions ((yyvsp[0].nlval));
}
@@ -7950,20 +7950,20 @@ yyreduce:
#line 4794 "fe/idl.ypp"
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- AST_Argument *a = 0;
+ AST_Argument *a = nullptr;
idl_global->set_parse_state (IDL_GlobalData::PS_OpParDeclSeen);
/*
* Create a node representing an argument to an operation
* Add it to the enclosing scope (the operation scope).
*/
- if ((yyvsp[-2].dcval) != 0
- && (yyvsp[0].deval) != 0 &&
- s != 0)
+ if ((yyvsp[-2].dcval) != nullptr
+ && (yyvsp[0].deval) != nullptr &&
+ s != nullptr)
{
AST_Type *tp = (yyvsp[0].deval)->compose ((yyvsp[-2].dcval));
- if (tp != 0)
+ if (tp != nullptr)
{
a = idl_global->gen ()->create_argument (
AST_Argument::dir_IN,
@@ -7977,7 +7977,7 @@ yyreduce:
(yyvsp[0].deval)->destroy ();
delete (yyvsp[0].deval);
- (yyvsp[0].deval) = 0;
+ (yyvsp[0].deval) = nullptr;
}
#line 7983 "fe/idl.tab.cpp"
break;
@@ -8042,20 +8042,20 @@ yyreduce:
#line 4869 "fe/idl.ypp"
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- AST_Argument *a = 0;
+ AST_Argument *a = nullptr;
idl_global->set_parse_state (IDL_GlobalData::PS_OpParDeclSeen);
/*
* Create a node representing an argument to an operation
* Add it to the enclosing scope (the operation scope).
*/
- if ((yyvsp[-2].dcval) != 0
- && (yyvsp[0].deval) != 0
- && s != 0)
+ if ((yyvsp[-2].dcval) != nullptr
+ && (yyvsp[0].deval) != nullptr
+ && s != nullptr)
{
AST_Type *tp = (yyvsp[0].deval)->compose ((yyvsp[-2].dcval));
- if (tp != 0)
+ if (tp != nullptr)
{
if (!s->is_local () && tp->is_local ())
{
@@ -8076,7 +8076,7 @@ yyreduce:
(yyvsp[0].deval)->destroy ();
delete (yyvsp[0].deval);
- (yyvsp[0].deval) = 0;
+ (yyvsp[0].deval) = nullptr;
}
#line 8082 "fe/idl.tab.cpp"
break;
@@ -8096,19 +8096,19 @@ yyreduce:
#line 4920 "fe/idl.ypp"
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- AST_Decl *d = 0;
+ AST_Decl *d = nullptr;
UTL_ScopedName *n = (yyvsp[0].idlist);
- if (s != 0)
+ if (s != nullptr)
{
d = s->lookup_by_name (n, false, false);
}
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error (n);
(yyvsp[0].idlist)->destroy ();
- (yyvsp[0].idlist) = 0;
+ (yyvsp[0].idlist) = nullptr;
/* If we don't return here, we'll crash later.*/
return 1;
@@ -8117,8 +8117,8 @@ yyreduce:
{
d->last_referenced_as ((yyvsp[0].idlist));
AST_Decl::NodeType nt = d->node_type ();
- AST_Type *t = AST_Type::narrow_from_decl (d);
- AST_Typedef *td = 0;
+ AST_Type *t = dynamic_cast<AST_Type*> (d);
+ AST_Typedef *td = nullptr;
bool can_be_undefined = false;
if (nt == AST_Decl::NT_typedef)
@@ -8126,14 +8126,14 @@ yyreduce:
// This code block ensures that a sequence of
// as-yet-undefined struct or union isn't used
// as a return type or argument.
- td = AST_Typedef::narrow_from_decl (d);
+ td = dynamic_cast<AST_Typedef*> (d);
AST_Type *pbt = td->primitive_base_type ();
if (pbt->node_type () == AST_Decl::NT_sequence)
{
t = pbt;
AST_Sequence *seq_type =
- AST_Sequence::narrow_from_decl (pbt);
+ dynamic_cast<AST_Sequence*> (pbt);
AST_Type *elem_type =
seq_type->base_type ();
AST_Decl::NodeType elem_nt =
@@ -8142,7 +8142,7 @@ yyreduce:
if (elem_nt == AST_Decl::NT_typedef)
{
AST_Typedef *elem_td =
- AST_Typedef::narrow_from_decl (elem_type);
+ dynamic_cast<AST_Typedef*> (elem_type);
elem_type = elem_td->primitive_base_type ();
elem_nt = elem_type->node_type ();
}
@@ -8174,9 +8174,9 @@ yyreduce:
// want the full definition, but we need to
// check that it's been fully defined.
AST_StructureFwd *fwd =
- AST_StructureFwd::narrow_from_decl (d);
+ dynamic_cast<AST_StructureFwd*> (d);
- if (fwd != 0)
+ if (fwd != nullptr)
{
t = fwd->full_definition ();
@@ -8252,7 +8252,7 @@ yyreduce:
case 434:
#line 5056 "fe/idl.ypp"
{
- (yyval.nlval) = 0;
+ (yyval.nlval) = nullptr;
}
#line 8258 "fe/idl.tab.cpp"
break;
@@ -8285,7 +8285,7 @@ yyreduce:
case 438:
#line 5077 "fe/idl.ypp"
{
- (yyval.nlval) = 0;
+ (yyval.nlval) = nullptr;
}
#line 8291 "fe/idl.tab.cpp"
break;
@@ -8318,7 +8318,7 @@ yyreduce:
case 442:
#line 5098 "fe/idl.ypp"
{
- (yyval.nlval) = 0;
+ (yyval.nlval) = nullptr;
}
#line 8324 "fe/idl.tab.cpp"
break;
@@ -8351,7 +8351,7 @@ yyreduce:
case 446:
#line 5119 "fe/idl.ypp"
{
- (yyval.slval) = 0;
+ (yyval.slval) = nullptr;
}
#line 8357 "fe/idl.tab.cpp"
break;
@@ -8378,13 +8378,13 @@ yyreduce:
case 449:
#line 5141 "fe/idl.ypp"
{
- UTL_StrList *sl = 0;
+ UTL_StrList *sl = nullptr;
ACE_NEW_RETURN (sl,
UTL_StrList ((yyvsp[0].sval),
- 0),
+ nullptr),
1);
- if ((yyvsp[-3].slval) == 0)
+ if ((yyvsp[-3].slval) == nullptr)
{
(yyval.slval) = sl;
}
@@ -8400,7 +8400,7 @@ yyreduce:
case 450:
#line 5159 "fe/idl.ypp"
{
- (yyval.slval) = 0;
+ (yyval.slval) = nullptr;
}
#line 8406 "fe/idl.tab.cpp"
break;
@@ -8412,7 +8412,7 @@ yyreduce:
AST_Decl *d =
s->lookup_by_name ((yyvsp[-1].idlist));
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error ((yyvsp[-1].idlist));
}
@@ -8425,13 +8425,13 @@ yyreduce:
(yyvsp[-1].idlist)->destroy ();
delete (yyvsp[-1].idlist);
- (yyvsp[-1].idlist) = 0;
+ (yyvsp[-1].idlist) = nullptr;
(yyvsp[0].sval)->destroy ();
delete (yyvsp[0].sval);
- (yyvsp[0].sval) = 0;
+ (yyvsp[0].sval) = nullptr;
- (yyval.dcval) = 0;
+ (yyval.dcval) = nullptr;
}
#line 8437 "fe/idl.tab.cpp"
break;
@@ -8452,7 +8452,7 @@ yyreduce:
s->lookup_by_name ((yyvsp[-1].idlist));
}
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error ((yyvsp[-1].idlist));
}
@@ -8465,13 +8465,13 @@ yyreduce:
(yyvsp[-1].idlist)->destroy ();
delete (yyvsp[-1].idlist);
- (yyvsp[-1].idlist) = 0;
+ (yyvsp[-1].idlist) = nullptr;
(yyvsp[0].sval)->destroy ();
delete (yyvsp[0].sval);
- (yyvsp[0].sval) = 0;
+ (yyvsp[0].sval) = nullptr;
- (yyval.dcval) = 0;
+ (yyval.dcval) = nullptr;
}
#line 8477 "fe/idl.tab.cpp"
break;
@@ -8481,8 +8481,8 @@ yyreduce:
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
UTL_ScopedName n ((yyvsp[0].idval),
- 0);
- AST_ComponentFwd *f = 0;
+ nullptr);
+ AST_ComponentFwd *f = nullptr;
idl_global->set_parse_state (
IDL_GlobalData::PS_ComponentForwardSeen
);
@@ -8491,7 +8491,7 @@ yyreduce:
* Create a node representing a forward declaration of a
* component. Store it in the enclosing scope.
*/
- if (s != 0)
+ if (s != nullptr)
{
f = idl_global->gen ()->create_component_fwd (&n);
(void) s->fe_add_component_fwd (f);
@@ -8499,9 +8499,9 @@ yyreduce:
(yyvsp[0].idval)->destroy ();
delete (yyvsp[0].idval);
- (yyvsp[0].idval) = 0;
+ (yyvsp[0].idval) = nullptr;
- (yyval.dcval) = 0;
+ (yyval.dcval) = nullptr;
}
#line 8507 "fe/idl.tab.cpp"
break;
@@ -8511,7 +8511,7 @@ yyreduce:
{
FE_ComponentHeader *&component_header = (yyvsp[0].chval);
UTL_Scope *scope = idl_global->scopes ().top_non_null ();
- AST_Component *component = 0;
+ AST_Component *component = nullptr;
/*
* Make a new component node and add it to the enclosing scope.
@@ -8539,7 +8539,7 @@ yyreduce:
// This FE_ComponentHeader class isn't destroyed with the AST.
component_header->destroy ();
delete component_header;
- component_header = 0;
+ component_header = nullptr;
}
/*
@@ -8608,10 +8608,10 @@ yyreduce:
* Create an AST representation of the information in the header
* part of a component.
*/
- UTL_ScopedName *n = 0;
+ UTL_ScopedName *n = nullptr;
ACE_NEW_RETURN (n,
UTL_ScopedName ((yyvsp[-4].idval),
- 0),
+ nullptr),
1);
ACE_NEW_RETURN ((yyval.chval),
FE_ComponentHeader (n,
@@ -8620,18 +8620,18 @@ yyreduce:
false),
1);
- if (0 != (yyvsp[0].nlval))
+ if (nullptr != (yyvsp[0].nlval))
{
(yyvsp[0].nlval)->destroy ();
delete (yyvsp[0].nlval);
- (yyvsp[0].nlval) = 0;
+ (yyvsp[0].nlval) = nullptr;
}
- if (0 != (yyvsp[-2].idlist))
+ if (nullptr != (yyvsp[-2].idlist))
{
(yyvsp[-2].idlist)->destroy ();
delete (yyvsp[-2].idlist);
- (yyvsp[-2].idlist) = 0;
+ (yyvsp[-2].idlist) = nullptr;
}
}
#line 8638 "fe/idl.tab.cpp"
@@ -8656,7 +8656,7 @@ yyreduce:
case 465:
#line 5388 "fe/idl.ypp"
{
- (yyval.idlist) = 0;
+ (yyval.idlist) = nullptr;
}
#line 8662 "fe/idl.tab.cpp"
break;
@@ -8805,12 +8805,12 @@ yyreduce:
UTL_Scope *s = idl_global->scopes ().top_non_null ();
bool so_far_so_good = true;
AST_Decl::NodeType nt = AST_Decl::NT_type;
- AST_Param_Holder *ph = 0;
+ AST_Param_Holder *ph = nullptr;
AST_Decl *d =
s->lookup_by_name ((yyvsp[-1].idlist), true, false);
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error ((yyvsp[-1].idlist));
so_far_so_good = false;
@@ -8825,7 +8825,7 @@ yyreduce:
case AST_Decl::NT_interface:
break;
case AST_Decl::NT_param_holder:
- ph = AST_Param_Holder::narrow_from_decl (d);
+ ph = dynamic_cast<AST_Param_Holder*> (d);
nt = ph->info ()->type_;
if (nt != AST_Decl::NT_type
@@ -8861,18 +8861,18 @@ yyreduce:
}
}
- AST_Provides *provides = 0;
+ AST_Provides *provides = nullptr;
if (so_far_so_good)
{
AST_Type *port_interface_type =
- AST_Type::narrow_from_decl (d);
+ dynamic_cast<AST_Type*> (d);
// Strip off _cxx_, if any, for port name.
FE_Utils::original_local_name ((yyvsp[0].idval));
UTL_ScopedName sn ((yyvsp[0].idval),
- 0);
+ nullptr);
provides = idl_global->gen ()->create_provides (
&sn, port_interface_type);
@@ -8882,11 +8882,11 @@ yyreduce:
(yyvsp[-1].idlist)->destroy ();
delete (yyvsp[-1].idlist);
- (yyvsp[-1].idlist) = 0;
+ (yyvsp[-1].idlist) = nullptr;
(yyvsp[0].idval)->destroy ();
delete (yyvsp[0].idval);
- (yyvsp[0].idval) = 0;
+ (yyvsp[0].idval) = nullptr;
(yyval.dcval) = dynamic_cast<AST_Decl *> (provides);
}
@@ -8906,16 +8906,16 @@ yyreduce:
case 485:
#line 5579 "fe/idl.ypp"
{
- Identifier *corba_id = 0;
+ Identifier *corba_id = nullptr;
ACE_NEW_RETURN (corba_id,
Identifier ("Object"),
1);
- UTL_IdList *conc_name = 0;
+ UTL_IdList *conc_name = nullptr;
ACE_NEW_RETURN (conc_name,
UTL_IdList (corba_id,
- 0),
+ nullptr),
1);
ACE_NEW_RETURN (corba_id,
@@ -8936,12 +8936,12 @@ yyreduce:
UTL_Scope *s = idl_global->scopes ().top_non_null ();
bool so_far_so_good = true;
AST_Decl::NodeType nt = AST_Decl::NT_type;
- AST_Param_Holder *ph = 0;
+ AST_Param_Holder *ph = nullptr;
AST_Decl *d =
s->lookup_by_name ((yyvsp[-1].idlist), true, false);
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error ((yyvsp[-1].idlist));
so_far_so_good = false;
@@ -8956,7 +8956,7 @@ yyreduce:
case AST_Decl::NT_interface:
break;
case AST_Decl::NT_param_holder:
- ph = AST_Param_Holder::narrow_from_decl (d);
+ ph = dynamic_cast<AST_Param_Holder*> (d);
nt = ph->info ()->type_;
if (nt != AST_Decl::NT_type
@@ -8992,27 +8992,27 @@ yyreduce:
}
}
- AST_Uses *uses = 0;
+ AST_Uses *uses = nullptr;
if (so_far_so_good)
{
AST_Type *port_interface_type =
- AST_Type::narrow_from_decl (d);
+ dynamic_cast<AST_Type*> (d);
// Strip off _cxx_, if any, for port name.
FE_Utils::original_local_name ((yyvsp[0].idval));
UTL_ScopedName sn ((yyvsp[0].idval),
- 0);
+ nullptr);
uses = idl_global->gen ()->create_uses (
&sn, port_interface_type, (yyvsp[-2].bval));
s->fe_add_uses (uses);
AST_Component *c =
- AST_Component::narrow_from_scope (s);
+ dynamic_cast<AST_Component*> (s);
- if (c != 0
+ if (c != nullptr
&& uses->is_multiple ()
&& !idl_global->using_ifr_backend ()
&& !idl_global->ignore_idl3 ()
@@ -9027,11 +9027,11 @@ yyreduce:
(yyvsp[-1].idlist)->destroy ();
delete (yyvsp[-1].idlist);
- (yyvsp[-1].idlist) = 0;
+ (yyvsp[-1].idlist) = nullptr;
(yyvsp[0].idval)->destroy ();
delete (yyvsp[0].idval);
- (yyvsp[0].idval) = 0;
+ (yyvsp[0].idval) = nullptr;
(yyval.dcval) = uses;
}
@@ -9070,12 +9070,12 @@ yyreduce:
UTL_Scope *s = idl_global->scopes ().top_non_null ();
bool so_far_so_good = true;
AST_Decl::NodeType nt = AST_Decl::NT_type;
- AST_Param_Holder *ph = 0;
+ AST_Param_Holder *ph = nullptr;
AST_Decl *d =
s->lookup_by_name ((yyvsp[-1].idlist), true, false);
- if (0 == d)
+ if (nullptr == d)
{
idl_global->err ()->lookup_error ((yyvsp[-1].idlist));
so_far_so_good = false;
@@ -9089,7 +9089,7 @@ yyreduce:
case AST_Decl::NT_eventtype:
break;
case AST_Decl::NT_param_holder:
- ph = AST_Param_Holder::narrow_from_decl (d);
+ ph = dynamic_cast<AST_Param_Holder*> (d);
nt = ph->info ()->type_;
if (nt != AST_Decl::NT_type
@@ -9109,18 +9109,18 @@ yyreduce:
}
}
- AST_Emits *e = 0;
+ AST_Emits *e = nullptr;
if (so_far_so_good)
{
AST_Type *event_type =
- AST_Type::narrow_from_decl (d);
+ dynamic_cast<AST_Type*> (d);
// Strip off _cxx_, if any, for port name.
FE_Utils::original_local_name ((yyvsp[0].idval));
UTL_ScopedName sn ((yyvsp[0].idval),
- 0);
+ nullptr);
e = idl_global->gen ()->create_emits (&sn, event_type);
@@ -9129,11 +9129,11 @@ yyreduce:
(yyvsp[-1].idlist)->destroy ();
delete (yyvsp[-1].idlist);
- (yyvsp[-1].idlist) = 0;
+ (yyvsp[-1].idlist) = nullptr;
(yyvsp[0].idval)->destroy ();
delete (yyvsp[0].idval);
- (yyvsp[0].idval) = 0;
+ (yyvsp[0].idval) = nullptr;
(yyval.dcval) = e;
}
@@ -9146,12 +9146,12 @@ yyreduce:
UTL_Scope *s = idl_global->scopes ().top_non_null ();
bool so_far_so_good = true;
AST_Decl::NodeType nt = AST_Decl::NT_type;
- AST_Param_Holder *ph = 0;
+ AST_Param_Holder *ph = nullptr;
AST_Decl *d =
s->lookup_by_name ((yyvsp[-1].idlist), true, false);
- if (0 == d)
+ if (nullptr == d)
{
idl_global->err ()->lookup_error ((yyvsp[-1].idlist));
so_far_so_good = false;
@@ -9165,7 +9165,7 @@ yyreduce:
case AST_Decl::NT_eventtype:
break;
case AST_Decl::NT_param_holder:
- ph = AST_Param_Holder::narrow_from_decl (d);
+ ph = dynamic_cast<AST_Param_Holder*> (d);
nt = ph->info ()->type_;
if (nt != AST_Decl::NT_type
@@ -9185,28 +9185,28 @@ yyreduce:
}
}
- AST_Publishes *p = 0;
+ AST_Publishes *p = nullptr;
if (so_far_so_good)
{
AST_Type *event_type =
- AST_Type::narrow_from_decl (d);
+ dynamic_cast<AST_Type*> (d);
// Strip off _cxx_, if any, for port name.
FE_Utils::original_local_name ((yyvsp[0].idval));
- UTL_ScopedName sn ((yyvsp[0].idval), 0);
+ UTL_ScopedName sn ((yyvsp[0].idval), nullptr);
p = idl_global->gen ()->create_publishes (&sn, event_type);
s->fe_add_publishes (p);
}
(yyvsp[-1].idlist)->destroy ();
delete (yyvsp[-1].idlist);
- (yyvsp[-1].idlist) = 0;
+ (yyvsp[-1].idlist) = nullptr;
(yyvsp[0].idval)->destroy ();
delete (yyvsp[0].idval);
- (yyvsp[0].idval) = 0;
+ (yyvsp[0].idval) = nullptr;
(yyval.dcval) = p;
}
@@ -9219,12 +9219,12 @@ yyreduce:
UTL_Scope *s = idl_global->scopes ().top_non_null ();
bool so_far_so_good = true;
AST_Decl::NodeType nt = AST_Decl::NT_type;
- AST_Param_Holder *ph = 0;
+ AST_Param_Holder *ph = nullptr;
AST_Decl *d =
s->lookup_by_name ((yyvsp[-1].idlist), true, false);
- if (0 == d)
+ if (nullptr == d)
{
idl_global->err ()->lookup_error ((yyvsp[-1].idlist));
so_far_so_good = false;
@@ -9238,7 +9238,7 @@ yyreduce:
case AST_Decl::NT_eventtype:
break;
case AST_Decl::NT_param_holder:
- ph = AST_Param_Holder::narrow_from_decl (d);
+ ph = dynamic_cast<AST_Param_Holder*> (d);
nt = ph->info ()->type_;
if (nt != AST_Decl::NT_type
@@ -9258,18 +9258,18 @@ yyreduce:
}
}
- AST_Consumes *c = 0;
+ AST_Consumes *c = nullptr;
if (so_far_so_good)
{
AST_Type *event_type =
- AST_Type::narrow_from_decl (d);
+ dynamic_cast<AST_Type*> (d);
// Strip off _cxx_, if any, for port name.
FE_Utils::original_local_name ((yyvsp[0].idval));
UTL_ScopedName sn ((yyvsp[0].idval),
- 0);
+ nullptr);
c = idl_global->gen ()->create_consumes (&sn, event_type);
@@ -9278,11 +9278,11 @@ yyreduce:
(yyvsp[-1].idlist)->destroy ();
delete (yyvsp[-1].idlist);
- (yyvsp[-1].idlist) = 0;
+ (yyvsp[-1].idlist) = nullptr;
(yyvsp[0].idval)->destroy ();
delete (yyvsp[0].idval);
- (yyvsp[0].idval) = 0;
+ (yyvsp[0].idval) = nullptr;
(yyval.dcval) = c;
}
@@ -9293,12 +9293,12 @@ yyreduce:
#line 5953 "fe/idl.ypp"
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- AST_Home *h = 0;
+ AST_Home *h = nullptr;
/*
* Make a new home node and add it to the enclosing scope.
*/
- if (s != 0 && (yyvsp[0].hhval) != 0)
+ if (s != nullptr && (yyvsp[0].hhval) != nullptr)
{
h =
idl_global->gen ()->create_home (
@@ -9319,7 +9319,7 @@ yyreduce:
// This FE_HomeHeader class isn't destroyed with the AST.
(yyvsp[0].hhval)->destroy ();
delete (yyvsp[0].hhval);
- (yyvsp[0].hhval) = 0;
+ (yyvsp[0].hhval) = nullptr;
}
/*
@@ -9338,7 +9338,7 @@ yyreduce:
*/
idl_global->scopes ().pop ();
- (yyval.dcval) = 0;
+ (yyval.dcval) = nullptr;
}
#line 9344 "fe/idl.tab.cpp"
break;
@@ -9400,9 +9400,9 @@ yyreduce:
* Create an AST representation of the information in the header
* part of a component home.
*/
- UTL_ScopedName *n = 0;
+ UTL_ScopedName *n = nullptr;
ACE_NEW_RETURN (n,
- UTL_ScopedName ((yyvsp[-10].idval), 0),
+ UTL_ScopedName ((yyvsp[-10].idval), nullptr),
1);
ACE_NEW_RETURN ((yyval.hhval),
@@ -9415,27 +9415,27 @@ yyreduce:
(yyvsp[-2].idlist)->destroy ();
delete (yyvsp[-2].idlist);
- (yyvsp[-2].idlist) = 0;
+ (yyvsp[-2].idlist) = nullptr;
- if (0 != (yyvsp[-8].idlist))
+ if (nullptr != (yyvsp[-8].idlist))
{
(yyvsp[-8].idlist)->destroy ();
delete (yyvsp[-8].idlist);
- (yyvsp[-8].idlist) = 0;
+ (yyvsp[-8].idlist) = nullptr;
}
- if (0 != (yyvsp[0].idlist))
+ if (nullptr != (yyvsp[0].idlist))
{
(yyvsp[0].idlist)->destroy ();
delete (yyvsp[0].idlist);
- (yyvsp[0].idlist) = 0;
+ (yyvsp[0].idlist) = nullptr;
}
- if (0 != (yyvsp[-6].nlval))
+ if (nullptr != (yyvsp[-6].nlval))
{
(yyvsp[-6].nlval)->destroy ();
delete (yyvsp[-6].nlval);
- (yyvsp[-6].nlval) = 0;
+ (yyvsp[-6].nlval) = nullptr;
}
}
#line 9442 "fe/idl.tab.cpp"
@@ -9460,7 +9460,7 @@ yyreduce:
case 504:
#line 6083 "fe/idl.ypp"
{
- (yyval.idlist) = 0;
+ (yyval.idlist) = nullptr;
}
#line 9466 "fe/idl.tab.cpp"
break;
@@ -9476,7 +9476,7 @@ yyreduce:
case 506:
#line 6095 "fe/idl.ypp"
{
- (yyval.idlist) = 0;
+ (yyval.idlist) = nullptr;
}
#line 9482 "fe/idl.tab.cpp"
break;
@@ -9542,7 +9542,7 @@ yyreduce:
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
UTL_ScopedName n ((yyvsp[0].idval),
- 0);
+ nullptr);
idl_global->set_parse_state (IDL_GlobalData::PS_OpIDSeen);
/*
@@ -9554,7 +9554,7 @@ yyreduce:
(yyvsp[0].idval)->destroy ();
delete (yyvsp[0].idval);
- (yyvsp[0].idval) = 0;
+ (yyvsp[0].idval) = nullptr;
/*
* Push the factory scope onto the scopes stack.
@@ -9581,7 +9581,7 @@ yyreduce:
/*
* Add exceptions and context to the factory.
*/
- if ((yyvsp[0].nlval) != 0)
+ if ((yyvsp[0].nlval) != nullptr)
{
(void) s->fe_add_exceptions ((yyvsp[0].nlval));
}
@@ -9599,7 +9599,7 @@ yyreduce:
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
UTL_ScopedName n ((yyvsp[0].idval),
- 0);
+ nullptr);
idl_global->set_parse_state (IDL_GlobalData::PS_OpIDSeen);
@@ -9615,7 +9615,7 @@ yyreduce:
(yyvsp[0].idval)->destroy ();
delete (yyvsp[0].idval);
- (yyvsp[0].idval) = 0;
+ (yyvsp[0].idval) = nullptr;
/*
* Push the operation scope onto the scopes stack.
@@ -9642,7 +9642,7 @@ yyreduce:
/*
* Add exceptions and context to the finder.
*/
- if ((yyvsp[0].nlval) != 0)
+ if ((yyvsp[0].nlval) != nullptr)
{
(void) s->fe_add_exceptions ((yyvsp[0].nlval));
}
@@ -9660,15 +9660,15 @@ yyreduce:
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
UTL_ScopedName n ((yyvsp[0].idval),
- 0);
- AST_EventTypeFwd *f = 0;
+ nullptr);
+ AST_EventTypeFwd *f = nullptr;
idl_global->set_parse_state (IDL_GlobalData::PS_EventTypeForwardSeen);
/*
* Create a node representing a forward declaration of an
* eventtype. Store it in the enclosing scope
*/
- if (s != 0)
+ if (s != nullptr)
{
f = idl_global->gen ()->create_eventtype_fwd (&n,
false);
@@ -9677,9 +9677,9 @@ yyreduce:
(yyvsp[0].idval)->destroy ();
delete (yyvsp[0].idval);
- (yyvsp[0].idval) = 0;
+ (yyvsp[0].idval) = nullptr;
- (yyval.dcval) = 0;
+ (yyval.dcval) = nullptr;
}
#line 9685 "fe/idl.tab.cpp"
break;
@@ -9689,15 +9689,15 @@ yyreduce:
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
UTL_ScopedName n ((yyvsp[0].idval),
- 0);
- AST_EventTypeFwd *f = 0;
+ nullptr);
+ AST_EventTypeFwd *f = nullptr;
idl_global->set_parse_state (IDL_GlobalData::PS_EventTypeForwardSeen);
/*
* Create a node representing a forward declaration of an
* eventtype. Store it in the enclosing scope
*/
- if (s != 0)
+ if (s != nullptr)
{
f = idl_global->gen ()->create_eventtype_fwd (&n,
true);
@@ -9706,9 +9706,9 @@ yyreduce:
(yyvsp[0].idval)->destroy ();
delete (yyvsp[0].idval);
- (yyvsp[0].idval) = 0;
+ (yyvsp[0].idval) = nullptr;
- (yyval.dcval) = 0;
+ (yyval.dcval) = nullptr;
}
#line 9714 "fe/idl.tab.cpp"
break;
@@ -9717,13 +9717,13 @@ yyreduce:
#line 6315 "fe/idl.ypp"
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- AST_EventType *e = 0;
- AST_Interface *i = 0;
+ AST_EventType *e = nullptr;
+ AST_Interface *i = nullptr;
- if (s != 0 && (yyvsp[-1].idval) != 0)
+ if (s != nullptr && (yyvsp[-1].idval) != nullptr)
{
UTL_ScopedName sn ((yyvsp[-1].idval),
- 0);
+ nullptr);
e =
idl_global->gen ()->create_eventtype (
&sn,
@@ -9739,13 +9739,13 @@ yyreduce:
false,
false
);
- i = AST_Interface::narrow_from_decl (e);
+ i = dynamic_cast<AST_Interface*> (e);
AST_Interface::fwd_redefinition_helper (i,
s);
/*
* Add the eventetype to its definition scope
*/
- e = AST_EventType::narrow_from_decl (i);
+ e = dynamic_cast<AST_EventType*> (i);
(void) s->fe_add_eventtype (e);
}
@@ -9756,7 +9756,7 @@ yyreduce:
(yyvsp[-1].idval)->destroy ();
delete (yyvsp[-1].idval);
- (yyvsp[-1].idval) = 0;
+ (yyvsp[-1].idval) = nullptr;
}
#line 9762 "fe/idl.tab.cpp"
break;
@@ -9787,7 +9787,7 @@ yyreduce:
*/
idl_global->scopes ().pop ();
- (yyval.dcval) = 0;
+ (yyval.dcval) = nullptr;
}
#line 9793 "fe/idl.tab.cpp"
break;
@@ -9812,7 +9812,7 @@ yyreduce:
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("Sorry, I (TAO_IDL) can't handle")
ACE_TEXT (" custom yet\n")));
- (yyval.idval) = 0;
+ (yyval.idval) = nullptr;
}
#line 9818 "fe/idl.tab.cpp"
break;
@@ -9842,7 +9842,7 @@ yyreduce:
ACE_NEW_RETURN ((yyval.vhval),
FE_OBVHeader (
- 0,
+ nullptr,
(yyvsp[-2].nlval),
(yyvsp[0].nlval),
(yyvsp[-2].nlval)
@@ -9851,18 +9851,18 @@ yyreduce:
true),
1);
- if (0 != (yyvsp[0].nlval))
+ if (nullptr != (yyvsp[0].nlval))
{
(yyvsp[0].nlval)->destroy ();
delete (yyvsp[0].nlval);
- (yyvsp[0].nlval) = 0;
+ (yyvsp[0].nlval) = nullptr;
}
- if (0 != (yyvsp[-2].nlval))
+ if (nullptr != (yyvsp[-2].nlval))
{
(yyvsp[-2].nlval)->destroy ();
delete (yyvsp[-2].nlval);
- (yyvsp[-2].nlval) = 0;
+ (yyvsp[-2].nlval) = nullptr;
}
}
#line 9869 "fe/idl.tab.cpp"
@@ -9874,13 +9874,13 @@ yyreduce:
UTL_Scope *scope = idl_global->scopes ().top_non_null ();
Identifier *&event_id = (yyvsp[-1].idval);
FE_OBVHeader *&event_header = (yyvsp[0].vhval);
- AST_EventType *eventtype = 0;
+ AST_EventType *eventtype = nullptr;
if (scope && event_header)
{
// We create the scoped name here instead of with the
// FE_OBVHeader because there is a token for it only here.
- UTL_ScopedName sn (event_id, 0);
+ UTL_ScopedName sn (event_id, nullptr);
eventtype = idl_global->gen ()->create_eventtype (
&sn,
event_header->inherits (),
@@ -9908,7 +9908,7 @@ yyreduce:
// FE_OBVHeader is not automatically destroyed in the AST
event_header->destroy ();
delete event_header;
- event_header = 0;
+ event_header = nullptr;
sn.destroy ();
}
@@ -10054,14 +10054,14 @@ yyreduce:
case 555:
#line 6583 "fe/idl.ypp"
{
- if ((yyvsp[0].plval) == 0)
+ if ((yyvsp[0].plval) == nullptr)
{
ACE_NEW_RETURN ((yyvsp[0].plval), FE_Utils::T_PARAMLIST_INFO, 1);
}
(yyvsp[0].plval)->enqueue_head (*(yyvsp[-1].pival));
delete (yyvsp[-1].pival);
- (yyvsp[-1].pival) = 0;
+ (yyvsp[-1].pival) = nullptr;
// The param added above is always the last one parsed,
// so we check for matches between sequence<T> & T here.
@@ -10072,7 +10072,7 @@ yyreduce:
if (!bad_id.empty ())
{
delete (yyvsp[0].plval);
- (yyvsp[0].plval) = 0;
+ (yyvsp[0].plval) = nullptr;
idl_global->err ()->mismatch_seq_of_param (bad_id.c_str ());
return 1;
@@ -10086,7 +10086,7 @@ yyreduce:
case 556:
#line 6614 "fe/idl.ypp"
{
- if ((yyvsp[-2].plval) == 0)
+ if ((yyvsp[-2].plval) == nullptr)
{
ACE_NEW_RETURN ((yyvsp[-2].plval), FE_Utils::T_PARAMLIST_INFO, 1);
}
@@ -10095,7 +10095,7 @@ yyreduce:
(yyval.plval) = (yyvsp[-2].plval);
delete (yyvsp[0].pival);
- (yyvsp[0].pival) = 0;
+ (yyvsp[0].pival) = nullptr;
}
#line 10101 "fe/idl.tab.cpp"
break;
@@ -10103,7 +10103,7 @@ yyreduce:
case 557:
#line 6627 "fe/idl.ypp"
{
- (yyval.plval) = 0;
+ (yyval.plval) = nullptr;
}
#line 10109 "fe/idl.tab.cpp"
break;
@@ -10121,7 +10121,7 @@ yyreduce:
(yyval.pival)->type_ = nt;
(yyval.pival)->name_ = (yyvsp[0].strval);
ACE::strdelete ((yyvsp[0].strval));
- (yyvsp[0].strval) = 0;
+ (yyvsp[0].strval) = nullptr;
if (nt == AST_Decl::NT_const)
{
@@ -10131,7 +10131,7 @@ yyreduce:
// Reset these values.
t_param_const_type = AST_Expression::EV_none;
- tao_enum_constant_decl = 0;
+ tao_enum_constant_decl = nullptr;
}
}
#line 10138 "fe/idl.tab.cpp"
@@ -10149,9 +10149,9 @@ yyreduce:
(yyval.pival)->name_ += (yyvsp[0].strval);
ACE::strdelete ((yyvsp[-2].strval));
- (yyvsp[-2].strval) = 0;
+ (yyvsp[-2].strval) = nullptr;
ACE::strdelete ((yyvsp[0].strval));
- (yyvsp[0].strval) = 0;
+ (yyvsp[0].strval) = nullptr;
}
#line 10157 "fe/idl.tab.cpp"
break;
@@ -10167,10 +10167,10 @@ yyreduce:
case 561:
#line 6684 "fe/idl.ypp"
{
- UTL_StrList *sl = 0;
- ACE_NEW_RETURN (sl, UTL_StrList ((yyvsp[0].sval), 0), 1);
+ UTL_StrList *sl = nullptr;
+ ACE_NEW_RETURN (sl, UTL_StrList ((yyvsp[0].sval), nullptr), 1);
- if ((yyvsp[-2].slval) == 0)
+ if ((yyvsp[-2].slval) == nullptr)
{
(yyval.slval) = sl;
}
@@ -10186,7 +10186,7 @@ yyreduce:
case 562:
#line 6699 "fe/idl.ypp"
{
- (yyval.slval) = 0;
+ (yyval.slval) = nullptr;
}
#line 10192 "fe/idl.tab.cpp"
break;
@@ -10218,9 +10218,9 @@ yyreduce:
Identifier id (id_value);
ACE::strdelete (id_value);
- id_value = 0;
+ id_value = nullptr;
- UTL_ScopedName scoped_name (&id, 0);
+ UTL_ScopedName scoped_name (&id, nullptr);
AST_PortType *porttype = idl_global->gen ()->create_porttype (
&scoped_name);
scope->fe_add_porttype (porttype);
@@ -10303,19 +10303,19 @@ yyreduce:
UTL_Scope *s = idl_global->scopes ().top_non_null ();
AST_Decl *d =
s->lookup_by_name ((yyvsp[-1].idlist));
- AST_PortType *pt = 0;
+ AST_PortType *pt = nullptr;
bool so_far_so_good = true;
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error ((yyvsp[-1].idlist));
so_far_so_good = false;
}
else
{
- pt = AST_PortType::narrow_from_decl (d);
+ pt = dynamic_cast<AST_PortType*> (d);
- if (pt == 0)
+ if (pt == nullptr)
{
idl_global->err ()->error1 (UTL_Error::EIDL_PORTTYPE_EXPECTED,
d);
@@ -10323,15 +10323,15 @@ yyreduce:
}
}
- AST_Extended_Port *ep = 0;
+ AST_Extended_Port *ep = nullptr;
if (so_far_so_good)
{
Identifier id ((yyvsp[0].strval));
ACE::strdelete ((yyvsp[0].strval));
- (yyvsp[0].strval) = 0;
+ (yyvsp[0].strval) = nullptr;
- UTL_ScopedName sn (&id, 0);
+ UTL_ScopedName sn (&id, nullptr);
ep = idl_global->gen ()->create_extended_port (&sn, pt);
s->fe_add_extended_port (ep);
@@ -10343,12 +10343,12 @@ yyreduce:
{
d = i.item ();
- AST_Uses *u = AST_Uses::narrow_from_decl (d);
+ AST_Uses *u = dynamic_cast<AST_Uses*> (d);
- if (u != 0 && u->is_multiple ())
+ if (u != nullptr && u->is_multiple ())
{
AST_Component *c =
- AST_Component::narrow_from_scope (s);
+ dynamic_cast<AST_Component*> (s);
FE_Utils::create_uses_multiple_stuff (
c,
@@ -10360,7 +10360,7 @@ yyreduce:
(yyvsp[-1].idlist)->destroy ();
delete (yyvsp[-1].idlist);
- (yyvsp[-1].idlist) = 0;
+ (yyvsp[-1].idlist) = nullptr;
(yyval.dcval) = ep;
}
@@ -10374,19 +10374,19 @@ yyreduce:
UTL_Scope *s = idl_global->scopes ().top_non_null ();
AST_Decl *d =
s->lookup_by_name ((yyvsp[-1].idlist));
- AST_PortType *pt = 0;
+ AST_PortType *pt = nullptr;
bool so_far_so_good = true;
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error ((yyvsp[-1].idlist));
so_far_so_good = false;
}
else
{
- pt = AST_PortType::narrow_from_decl (d);
+ pt = dynamic_cast<AST_PortType*> (d);
- if (pt == 0)
+ if (pt == nullptr)
{
idl_global->err ()->error1 (UTL_Error::EIDL_PORTTYPE_EXPECTED,
d);
@@ -10394,22 +10394,22 @@ yyreduce:
}
}
- AST_Mirror_Port *mp = 0;
+ AST_Mirror_Port *mp = nullptr;
if (so_far_so_good)
{
Identifier id ((yyvsp[0].strval));
ACE::strdelete ((yyvsp[0].strval));
- (yyvsp[0].strval) = 0;
+ (yyvsp[0].strval) = nullptr;
- UTL_ScopedName sn (&id, 0);
+ UTL_ScopedName sn (&id, nullptr);
mp = idl_global->gen ()->create_mirror_port (&sn, pt);
s->fe_add_mirror_port (mp);
}
(yyvsp[-1].idlist)->destroy ();
delete (yyvsp[-1].idlist);
- (yyvsp[-1].idlist) = 0;
+ (yyvsp[-1].idlist) = nullptr;
(yyval.dcval) = mp;
}
@@ -10419,7 +10419,7 @@ yyreduce:
case 579:
#line 6914 "fe/idl.ypp"
{
- if ((yyvsp[0].alval) == 0)
+ if ((yyvsp[0].alval) == nullptr)
{
ACE_NEW_RETURN ((yyvsp[0].alval),
FE_Utils::T_ARGLIST,
@@ -10436,7 +10436,7 @@ yyreduce:
case 580:
#line 6930 "fe/idl.ypp"
{
- if ((yyvsp[-3].alval) == 0)
+ if ((yyvsp[-3].alval) == nullptr)
{
ACE_NEW_RETURN ((yyvsp[-3].alval),
FE_Utils::T_ARGLIST,
@@ -10453,7 +10453,7 @@ yyreduce:
case 581:
#line 6943 "fe/idl.ypp"
{
- (yyval.alval) = 0;
+ (yyval.alval) = nullptr;
}
#line 10459 "fe/idl.tab.cpp"
break;
@@ -10470,14 +10470,14 @@ yyreduce:
// arg list.
AST_Expression *ex = (yyvsp[0].exval);
UTL_ScopedName *sn = ex->n ();
- AST_Decl *d = 0;
+ AST_Decl *d = nullptr;
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- if (sn != 0)
+ if (sn != nullptr)
{
d = s->lookup_by_name (sn);
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error (sn);
return 1;
@@ -10512,7 +10512,7 @@ yyreduce:
idl_global->gen ()->create_constant (
(yyvsp[0].exval)->ev ()->et,
(yyvsp[0].exval),
- 0);
+ nullptr);
}
}
#line 10519 "fe/idl.tab.cpp"
@@ -10521,7 +10521,7 @@ yyreduce:
case 583:
#line 7009 "fe/idl.ypp"
{
- (yyval.dcval) = 0;
+ (yyval.dcval) = nullptr;
}
#line 10527 "fe/idl.tab.cpp"
break;
@@ -10546,30 +10546,30 @@ yyreduce:
#line 7024 "fe/idl.ypp"
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- AST_Connector *parent = 0;
+ AST_Connector *parent = nullptr;
bool so_far_so_good = true;
Identifier id ((yyvsp[-2].strval));
ACE::strdelete ((yyvsp[-2].strval));
- (yyvsp[-2].strval) = 0;
+ (yyvsp[-2].strval) = nullptr;
- UTL_ScopedName sn (&id, 0);
+ UTL_ScopedName sn (&id, nullptr);
- if ((yyvsp[0].idlist) != 0)
+ if ((yyvsp[0].idlist) != nullptr)
{
AST_Decl *d =
s->lookup_by_name ((yyvsp[0].idlist));
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error ((yyvsp[0].idlist));
so_far_so_good = false;
}
parent =
- AST_Connector::narrow_from_decl (d);
+ dynamic_cast<AST_Connector*> (d);
- if (parent == 0)
+ if (parent == nullptr)
{
idl_global->err ()->error1 (
UTL_Error::EIDL_CONNECTOR_EXPECTED,
@@ -10580,7 +10580,7 @@ yyreduce:
(yyvsp[0].idlist)->destroy ();
delete (yyvsp[0].idlist);
- (yyvsp[0].idlist) = 0;
+ (yyvsp[0].idlist) = nullptr;
}
if (so_far_so_good)
@@ -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.ypp b/TAO/TAO_IDL/fe/idl.ypp
index a2f6d5ae21b..2f168d1af31 100644
--- a/TAO/TAO_IDL/fe/idl.ypp
+++ b/TAO/TAO_IDL/fe/idl.ypp
@@ -765,7 +765,7 @@ template_module_ref
}
AST_Template_Module *ref =
- AST_Template_Module::narrow_from_decl (d);
+ dynamic_cast<AST_Template_Module*> (d);
if (ref == 0)
{
@@ -857,7 +857,7 @@ template_module_inst
}
else
{
- ref = AST_Template_Module::narrow_from_decl (d);
+ ref = dynamic_cast<AST_Template_Module*> (d);
if (ref == 0)
{
@@ -1174,7 +1174,7 @@ value_concrete_decl :
idl_global->set_parse_state (IDL_GlobalData::PS_ValueTypeQsSeen);
AST_ValueType *vt =
- AST_ValueType::narrow_from_scope (
+ dynamic_cast<AST_ValueType*> (
idl_global->scopes ().top_non_null ()
);
@@ -1217,13 +1217,13 @@ value_abs_decl :
false,
false
);
- i = AST_Interface::narrow_from_decl (v);
+ i = dynamic_cast<AST_Interface*> (v);
AST_Interface::fwd_redefinition_helper (i,
s);
/*
* Add the valuetype to its definition scope
*/
- v = AST_ValueType::narrow_from_decl (i);
+ v = dynamic_cast<AST_ValueType*> (i);
(void) s->fe_add_valuetype (v);
// FE_OBVHeader is not automatically destroyed in the AST
@@ -1401,11 +1401,11 @@ value_box_decl
*/
AST_Type *tp = 0;
AST_Typedef *td
- = AST_Typedef::narrow_from_decl ($2);
+ = dynamic_cast<AST_Typedef*> ($2);
if (td == 0)
{
- tp = AST_Type::narrow_from_decl ($2);
+ tp = dynamic_cast<AST_Type*> ($2);
}
else
{
@@ -1967,7 +1967,7 @@ const_type
*/
while (d->node_type () == AST_Decl::NT_typedef)
{
- t = AST_Typedef::narrow_from_decl (d);
+ t = dynamic_cast<AST_Typedef*> (d);
if (t == 0)
{
@@ -1979,7 +1979,7 @@ const_type
if (d->node_type () == AST_Decl::NT_pre_defined)
{
- c = AST_PredefinedType::narrow_from_decl (d);
+ c = dynamic_cast<AST_PredefinedType*> (d);
$$ = FE_Utils::PredefinedTypeToExprType (c->pt ());
}
@@ -1995,7 +1995,7 @@ const_type
{
$$ = AST_Expression::EV_enum;
tao_enum_constant_decl =
- AST_Enum::narrow_from_decl (d);
+ dynamic_cast<AST_Enum*> (d);
}
else
{
@@ -2512,7 +2512,7 @@ annotation_appl
lookup_by_name (name);
if (d)
{
- decl = AST_Annotation_Decl::narrow_from_decl (d);
+ decl = dynamic_cast<AST_Annotation_Decl*> (d);
if (decl)
{
idl_global->scopes ().push (decl);
@@ -3116,7 +3116,7 @@ struct_type
/*
* Done with this struct. Pop its scope off the scopes stack.
*/
- $$ = AST_Structure::narrow_from_scope (
+ $$ = dynamic_cast<AST_Structure*> (
idl_global->scopes ().top_non_null ()
);
idl_global->scopes ().pop ();
@@ -3256,9 +3256,9 @@ union_type
s->is_local (),
s->is_abstract ());
- AST_Structure *st = AST_Structure::narrow_from_decl (u);
+ AST_Structure *st = dynamic_cast<AST_Structure*> (u);
AST_Structure::fwd_redefinition_helper (st, s);
- u = AST_Union::narrow_from_decl (st);
+ u = dynamic_cast<AST_Union*> (st);
(void) s->fe_add_union (u);
}
@@ -3297,7 +3297,7 @@ union_type
if ($7 != 0 && s != 0)
{
AST_ConcreteType *tp =
- AST_ConcreteType::narrow_from_decl ($7);
+ dynamic_cast<AST_ConcreteType*> ($7);
if (tp == 0)
{
@@ -3313,7 +3313,7 @@ union_type
s->is_abstract ());
/* Narrow the enclosing scope. */
- AST_Union *e = AST_Union::narrow_from_scope (top);
+ AST_Union *e = dynamic_cast<AST_Union*> (top);
e->redefine (u);
e->disc_annotations (*disc_annotations); // Set Discriminator Annotations
@@ -3349,7 +3349,7 @@ union_type
/*
* Done with this union. Pop its scope from the scopes stack.
*/
- $$ = AST_Union::narrow_from_scope (
+ $$ = dynamic_cast<AST_Union*> (
idl_global->scopes ().top_non_null ()
);
@@ -3426,7 +3426,7 @@ switch_type_spec :
found = true;
break;
case AST_Decl::NT_pre_defined:
- p = AST_PredefinedType::narrow_from_decl (d);
+ p = dynamic_cast<AST_PredefinedType*> (d);
if (p != 0)
{
@@ -3466,7 +3466,7 @@ switch_type_spec :
break;
case AST_Decl::NT_typedef:
- t = AST_Typedef::narrow_from_decl (d);
+ t = dynamic_cast<AST_Typedef*> (d);
if (t != 0)
{
@@ -3789,7 +3789,7 @@ enum_type :
}
else
{
- $$ = AST_Enum::narrow_from_scope (
+ $$ = dynamic_cast<AST_Enum*> (
idl_global->scopes ().top_non_null ()
);
idl_global->scopes ().pop ();
@@ -3828,7 +3828,7 @@ enumerator :
if (s != 0
&& s->scope_node_type () == AST_Decl::NT_enum)
{
- c = AST_Enum::narrow_from_scope (s);
+ c = dynamic_cast<AST_Enum*> (s);
if (c != 0)
{
@@ -3907,7 +3907,7 @@ sequence_type_spec
}
else if (type)
{
- AST_Type *tp = AST_Type::narrow_from_decl (type);
+ AST_Type *tp = dynamic_cast<AST_Type*> (type);
if (0 == tp)
{
@@ -3969,7 +3969,7 @@ sequence_type_spec
*/
if (type)
{
- AST_Type *tp = AST_Type::narrow_from_decl (type);
+ AST_Type *tp = dynamic_cast<AST_Type*> (type);
if (tp == 0)
{
@@ -4073,7 +4073,7 @@ string_type_spec
* Add this AST_String to the types defined in the global scope.
*/
idl_global->root ()->fe_add_string (
- AST_String::narrow_from_decl (
+ dynamic_cast<AST_String*> (
tao_string_decl));
idl_global->err ()->anonymous_type_diagnostic ();
@@ -4102,7 +4102,7 @@ string_type_spec
* Add this AST_String to the types defined in the global scope.
*/
idl_global->root ()->fe_add_string (
- AST_String::narrow_from_decl (
+ dynamic_cast<AST_String*> (
tao_string_decl));
$$ = tao_string_decl;
@@ -4148,7 +4148,7 @@ wstring_type_spec
* Add this AST_String to the types defined in the global scope.
*/
idl_global->root ()->fe_add_string (
- AST_String::narrow_from_decl (
+ dynamic_cast<AST_String*> (
string));
idl_global->err ()->anonymous_type_diagnostic ();
@@ -4174,7 +4174,7 @@ wstring_type_spec
* Add this AST_String to the types defined in the global scope.
*/
idl_global->root ()->fe_add_string (
- AST_String::narrow_from_decl (
+ dynamic_cast<AST_String*> (
string));
$$ = string;
@@ -4570,7 +4570,7 @@ operation
*/
if (scope != 0 && type_node != 0)
{
- AST_Type *type = AST_Type::narrow_from_decl (type_node);
+ AST_Type *type = dynamic_cast<AST_Type*> (type_node);
if (type == 0)
{
@@ -4629,7 +4629,7 @@ operation
*/
if (s != 0 && s->scope_node_type () == AST_Decl::NT_op)
{
- o = AST_Operation::narrow_from_scope (s);
+ o = dynamic_cast<AST_Operation*> (s);
if ($8 != 0 && o != 0)
{
@@ -4739,7 +4739,7 @@ init_decl
if ($7)
{
UTL_Scope *s = idl_global->scopes ().top_non_null ();
- AST_Factory *f = AST_Factory::narrow_from_scope (s);
+ AST_Factory *f = dynamic_cast<AST_Factory*> (s);
(void) f->fe_add_exceptions ($7);
}
@@ -4940,7 +4940,7 @@ param_type_spec
{
d->last_referenced_as ($1);
AST_Decl::NodeType nt = d->node_type ();
- AST_Type *t = AST_Type::narrow_from_decl (d);
+ AST_Type *t = dynamic_cast<AST_Type*> (d);
AST_Typedef *td = 0;
bool can_be_undefined = false;
@@ -4949,14 +4949,14 @@ param_type_spec
// This code block ensures that a sequence of
// as-yet-undefined struct or union isn't used
// as a return type or argument.
- td = AST_Typedef::narrow_from_decl (d);
+ td = dynamic_cast<AST_Typedef*> (d);
AST_Type *pbt = td->primitive_base_type ();
if (pbt->node_type () == AST_Decl::NT_sequence)
{
t = pbt;
AST_Sequence *seq_type =
- AST_Sequence::narrow_from_decl (pbt);
+ dynamic_cast<AST_Sequence*> (pbt);
AST_Type *elem_type =
seq_type->base_type ();
AST_Decl::NodeType elem_nt =
@@ -4965,7 +4965,7 @@ param_type_spec
if (elem_nt == AST_Decl::NT_typedef)
{
AST_Typedef *elem_td =
- AST_Typedef::narrow_from_decl (elem_type);
+ dynamic_cast<AST_Typedef*> (elem_type);
elem_type = elem_td->primitive_base_type ();
elem_nt = elem_type->node_type ();
}
@@ -4997,7 +4997,7 @@ param_type_spec
// want the full definition, but we need to
// check that it's been fully defined.
AST_StructureFwd *fwd =
- AST_StructureFwd::narrow_from_decl (d);
+ dynamic_cast<AST_StructureFwd*> (d);
if (fwd != 0)
{
@@ -5501,7 +5501,7 @@ provides_decl : IDL_PROVIDES interface_type id
case AST_Decl::NT_interface:
break;
case AST_Decl::NT_param_holder:
- ph = AST_Param_Holder::narrow_from_decl (d);
+ ph = dynamic_cast<AST_Param_Holder*> (d);
nt = ph->info ()->type_;
if (nt != AST_Decl::NT_type
@@ -5542,7 +5542,7 @@ provides_decl : IDL_PROVIDES interface_type id
if (so_far_so_good)
{
AST_Type *port_interface_type =
- AST_Type::narrow_from_decl (d);
+ dynamic_cast<AST_Type*> (d);
// Strip off _cxx_, if any, for port name.
FE_Utils::original_local_name ($3);
@@ -5625,7 +5625,7 @@ uses_decl : uses_opt_multiple interface_type id
case AST_Decl::NT_interface:
break;
case AST_Decl::NT_param_holder:
- ph = AST_Param_Holder::narrow_from_decl (d);
+ ph = dynamic_cast<AST_Param_Holder*> (d);
nt = ph->info ()->type_;
if (nt != AST_Decl::NT_type
@@ -5666,7 +5666,7 @@ uses_decl : uses_opt_multiple interface_type id
if (so_far_so_good)
{
AST_Type *port_interface_type =
- AST_Type::narrow_from_decl (d);
+ dynamic_cast<AST_Type*> (d);
// Strip off _cxx_, if any, for port name.
FE_Utils::original_local_name ($3);
@@ -5679,7 +5679,7 @@ uses_decl : uses_opt_multiple interface_type id
s->fe_add_uses (uses);
AST_Component *c =
- AST_Component::narrow_from_scope (s);
+ dynamic_cast<AST_Component*> (s);
if (c != 0
&& uses->is_multiple ()
@@ -5751,7 +5751,7 @@ emits_decl
case AST_Decl::NT_eventtype:
break;
case AST_Decl::NT_param_holder:
- ph = AST_Param_Holder::narrow_from_decl (d);
+ ph = dynamic_cast<AST_Param_Holder*> (d);
nt = ph->info ()->type_;
if (nt != AST_Decl::NT_type
@@ -5776,7 +5776,7 @@ emits_decl
if (so_far_so_good)
{
AST_Type *event_type =
- AST_Type::narrow_from_decl (d);
+ dynamic_cast<AST_Type*> (d);
// Strip off _cxx_, if any, for port name.
FE_Utils::original_local_name ($3);
@@ -5826,7 +5826,7 @@ publishes_decl
case AST_Decl::NT_eventtype:
break;
case AST_Decl::NT_param_holder:
- ph = AST_Param_Holder::narrow_from_decl (d);
+ ph = dynamic_cast<AST_Param_Holder*> (d);
nt = ph->info ()->type_;
if (nt != AST_Decl::NT_type
@@ -5851,7 +5851,7 @@ publishes_decl
if (so_far_so_good)
{
AST_Type *event_type =
- AST_Type::narrow_from_decl (d);
+ dynamic_cast<AST_Type*> (d);
// Strip off _cxx_, if any, for port name.
FE_Utils::original_local_name ($3);
@@ -5898,7 +5898,7 @@ consumes_decl
case AST_Decl::NT_eventtype:
break;
case AST_Decl::NT_param_holder:
- ph = AST_Param_Holder::narrow_from_decl (d);
+ ph = dynamic_cast<AST_Param_Holder*> (d);
nt = ph->info ()->type_;
if (nt != AST_Decl::NT_type
@@ -5923,7 +5923,7 @@ consumes_decl
if (so_far_so_good)
{
AST_Type *event_type =
- AST_Type::narrow_from_decl (d);
+ dynamic_cast<AST_Type*> (d);
// Strip off _cxx_, if any, for port name.
FE_Utils::original_local_name ($3);
@@ -6336,13 +6336,13 @@ event_abs_decl :
false,
false
);
- i = AST_Interface::narrow_from_decl (e);
+ i = dynamic_cast<AST_Interface*> (e);
AST_Interface::fwd_redefinition_helper (i,
s);
/*
* Add the eventetype to its definition scope
*/
- e = AST_EventType::narrow_from_decl (i);
+ e = dynamic_cast<AST_EventType*> (i);
(void) s->fe_add_eventtype (e);
}
@@ -6811,7 +6811,7 @@ extended_port_decl
}
else
{
- pt = AST_PortType::narrow_from_decl (d);
+ pt = dynamic_cast<AST_PortType*> (d);
if (pt == 0)
{
@@ -6841,12 +6841,12 @@ extended_port_decl
{
d = i.item ();
- AST_Uses *u = AST_Uses::narrow_from_decl (d);
+ AST_Uses *u = dynamic_cast<AST_Uses*> (d);
if (u != 0 && u->is_multiple ())
{
AST_Component *c =
- AST_Component::narrow_from_scope (s);
+ dynamic_cast<AST_Component*> (s);
FE_Utils::create_uses_multiple_stuff (
c,
@@ -6878,7 +6878,7 @@ extended_port_decl
}
else
{
- pt = AST_PortType::narrow_from_decl (d);
+ pt = dynamic_cast<AST_PortType*> (d);
if (pt == 0)
{
@@ -7044,7 +7044,7 @@ connector_header
}
parent =
- AST_Connector::narrow_from_decl (d);
+ dynamic_cast<AST_Connector*> (d);
if (parent == 0)
{
diff --git a/TAO/TAO_IDL/fe/idl.yy.cpp b/TAO/TAO_IDL/fe/idl.yy.cpp
index bcb099c813a..c919be1d965 100644
--- a/TAO/TAO_IDL/fe/idl.yy.cpp
+++ b/TAO/TAO_IDL/fe/idl.yy.cpp
@@ -506,7 +506,7 @@ struct yy_buffer_state
/* Stack of input buffers. */
static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
-static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
+static YY_BUFFER_STATE * yy_buffer_stack = nullptr; /**< Stack as an array. */
/* We provide macros for accessing buffer states in case in the
* future we want to put the buffer states in a more general
@@ -528,7 +528,7 @@ static int yy_n_chars; /* number of characters read into yy_ch_buf */
int yyleng;
/* Points to current character in buffer. */
-static char *yy_c_buf_p = 0;
+static char *yy_c_buf_p = nullptr;
static int yy_init = 0; /* whether we need to initialize */
static int yy_start = 0; /* start state number */
@@ -543,10 +543,10 @@ 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 )
@@ -582,7 +582,7 @@ void yyfree ( void * );
/* Begin user sect3 */
typedef flex_uint8_t YY_CHAR;
-FILE *yyin = 0, *yyout = 0;
+FILE *yyin = nullptr, *yyout = nullptr;
typedef int yy_state_type;
@@ -591,9 +591,9 @@ int yylineno = 1;
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 );
/* Done after the current pattern has been matched and before the
@@ -1315,34 +1315,34 @@ static AST_Decl * idl_find_node (const char *);
#define YY_EXTRA_TYPE void *
#endif
-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 ( );
void yyset_debug ( int debug_flag );
-YY_EXTRA_TYPE yyget_extra ( void );
+YY_EXTRA_TYPE yyget_extra ( );
void yyset_extra ( YY_EXTRA_TYPE user_defined );
-FILE *yyget_in ( void );
+FILE *yyget_in ( );
void yyset_in ( FILE * _in_str );
-FILE *yyget_out ( void );
+FILE *yyget_out ( );
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 ( );
void yyset_lineno ( int _line_number );
@@ -1374,7 +1374,7 @@ static int yy_flex_strlen ( const char * );
#ifndef YY_NO_INPUT
#ifdef __cplusplus
-static int yyinput ( void );
+static int yyinput ( );
#else
static int input ( void );
#endif
@@ -1461,7 +1461,7 @@ static int input ( void );
#ifndef YY_DECL
#define YY_DECL_IS_OURS 1
-extern int yylex (void);
+extern int yylex ();
#define YY_DECL int yylex (void)
#endif /* !YY_DECL */
@@ -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);
@@ -1965,7 +1965,7 @@ YY_RULE_SETUP
// regular expression is to handle EBCDIC, as well as ASCII.
TAO_IDL_CPP_Keyword_Table cpp_key_tbl;
- const TAO_IDL_CPP_Keyword_Entry *entry = 0;
+ const TAO_IDL_CPP_Keyword_Entry *entry = nullptr;
if (!idl_global->preserve_cpp_keywords())
{
// This check will ensure that escaped C++ keywords will be
@@ -2273,7 +2273,7 @@ YY_RULE_SETUP
if (next == '/')
break;
else
- yyunput (c, 0);
+ yyunput (c, nullptr);
}
else if (c == '\n')
{
@@ -2449,7 +2449,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);
@@ -2523,7 +2523,7 @@ static int yy_get_next_buffer (void)
}
else
/* Can't grow it, we don't own it. */
- b->yy_ch_buf = 0;
+ b->yy_ch_buf = nullptr;
if ( ! b->yy_ch_buf )
YY_FATAL_ERROR(
@@ -2587,7 +2587,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;
@@ -2686,9 +2686,9 @@ static int yy_get_next_buffer (void)
#ifndef YY_NO_INPUT
#ifdef __cplusplus
- static int yyinput (void)
+ static int yyinput ()
#else
- static int input (void)
+ static int input ()
#endif
{
@@ -2813,7 +2813,7 @@ static int yy_get_next_buffer (void)
(yy_did_buffer_switch_on_eof) = 1;
}
-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;
@@ -2862,7 +2862,7 @@ static void yy_load_buffer_state (void)
return;
if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
- YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
+ YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) nullptr;
if ( b->yy_is_our_buffer )
yyfree( (void *) b->yy_ch_buf );
@@ -2933,7 +2933,7 @@ static void yy_load_buffer_state (void)
*/
void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
{
- if (new_buffer == 0)
+ if (new_buffer == nullptr)
return;
yyensure_buffer_stack();
@@ -2961,13 +2961,13 @@ 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;
yy_delete_buffer(YY_CURRENT_BUFFER );
- YY_CURRENT_BUFFER_LVALUE = 0;
+ YY_CURRENT_BUFFER_LVALUE = nullptr;
if ((yy_buffer_stack_top) > 0)
--(yy_buffer_stack_top);
@@ -2980,7 +2980,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;
@@ -3037,7 +3037,7 @@ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
base[size-2] != YY_END_OF_BUFFER_CHAR ||
base[size-1] != YY_END_OF_BUFFER_CHAR )
/* They forgot to leave room for the EOB's. */
- return 0;
+ return nullptr;
b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
if ( ! b )
@@ -3046,7 +3046,7 @@ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */
b->yy_buf_pos = b->yy_ch_buf = base;
b->yy_is_our_buffer = 0;
- b->yy_input_file = 0;
+ b->yy_input_file = nullptr;
b->yy_n_chars = b->yy_buf_size;
b->yy_is_interactive = 0;
b->yy_at_bol = 1;
@@ -3141,7 +3141,7 @@ static void yynoreturn yy_fatal_error (const char* msg )
/** Get the current line number.
*
*/
-int yyget_lineno (void)
+int yyget_lineno ()
{
return yylineno;
@@ -3150,7 +3150,7 @@ int yyget_lineno (void)
/** Get the input stream.
*
*/
-FILE *yyget_in (void)
+FILE *yyget_in ()
{
return yyin;
}
@@ -3158,7 +3158,7 @@ FILE *yyget_in (void)
/** Get the output stream.
*
*/
-FILE *yyget_out (void)
+FILE *yyget_out ()
{
return yyout;
}
@@ -3166,7 +3166,7 @@ FILE *yyget_out (void)
/** Get the length of the current token.
*
*/
-int yyget_leng (void)
+int yyget_leng ()
{
return yyleng;
}
@@ -3175,7 +3175,7 @@ int yyget_leng (void)
*
*/
-char *yyget_text (void)
+char *yyget_text ()
{
return yytext;
}
@@ -3206,7 +3206,7 @@ void yyset_out (FILE * _out_str )
yyout = _out_str ;
}
-int yyget_debug (void)
+int yyget_debug ()
{
return yy_flex_debug;
}
@@ -3216,16 +3216,16 @@ void yyset_debug (int _bdebug )
yy_flex_debug = _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.
*/
- (yy_buffer_stack) = 0;
+ (yy_buffer_stack) = nullptr;
(yy_buffer_stack_top) = 0;
(yy_buffer_stack_max) = 0;
- (yy_c_buf_p) = 0;
+ (yy_c_buf_p) = nullptr;
(yy_init) = 0;
(yy_start) = 0;
@@ -3234,8 +3234,8 @@ static int yy_init_globals (void)
yyin = stdin;
yyout = stdout;
#else
- yyin = 0;
- yyout = 0;
+ yyin = nullptr;
+ yyout = nullptr;
#endif
/* For future reference: Set errno on error, since we are called by
@@ -3245,19 +3245,19 @@ 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. */
while(YY_CURRENT_BUFFER){
yy_delete_buffer( YY_CURRENT_BUFFER );
- YY_CURRENT_BUFFER_LVALUE = 0;
+ YY_CURRENT_BUFFER_LVALUE = nullptr;
yypop_buffer_state();
}
/* Destroy the stack itself. */
yyfree((yy_buffer_stack) );
- (yy_buffer_stack) = 0;
+ (yy_buffer_stack) = nullptr;
/* Reset the globals. This is important in a non-reentrant scanner so the next time
* yylex() is called, initialization will occur. */
@@ -3330,7 +3330,7 @@ same_file (char *path1, char *path2)
char *fp2 = ACE_OS::realpath (path2, fullpath2);
return
- (fp1 == 0 || fp2 == 0)
+ (fp1 == nullptr || fp2 == nullptr)
? false
: FE_Utils::path_cmp (fullpath1,fullpath2) == 0;
}
@@ -3340,8 +3340,8 @@ static void
idl_parse_line_and_file (char *buf)
{
char *r = buf;
- char *h = 0;
- UTL_String *nm = 0;
+ char *h = nullptr;
+ UTL_String *nm = nullptr;
// Skip initial '#'.
if (*r != '#')
@@ -3394,7 +3394,7 @@ idl_parse_line_and_file (char *buf)
}
*r = 0;
- UTL_String *tmp = 0;
+ UTL_String *tmp = nullptr;
if (*h == '\0')
{
@@ -3539,13 +3539,13 @@ idl_store_pragma (char *buf)
sp -= crunched;
*sp = '\0';
- if (ACE_OS::strstr (buf + 8, "import") != 0)
+ if (ACE_OS::strstr (buf + 8, "import") != nullptr)
{
idl_global->set_import (true);
return;
}
- if (ACE_OS::strstr (buf + 8, "include") != 0)
+ if (ACE_OS::strstr (buf + 8, "include") != nullptr)
{
idl_global->set_import (false);
return;
@@ -3555,14 +3555,14 @@ idl_store_pragma (char *buf)
{
char *new_prefix = idl_get_pragma_string (buf);
- if (new_prefix != 0)
+ if (new_prefix != nullptr)
{
unsigned long depth = idl_global->scopes ().depth ();
// We replace the prefix only if there is a prefix already
// associated with this file, otherwise we add the prefix.
char *ext_id = idl_global->filename ()->get_string ();
- ACE_Hash_Map_Entry<char *, char *> *entry = 0;
+ ACE_Hash_Map_Entry<char *, char *> *entry = nullptr;
int const status =
idl_global->file_prefixes ().find (ext_id, entry);
@@ -3570,7 +3570,7 @@ idl_store_pragma (char *buf)
{
if (ACE_OS::strcmp (entry->int_id_, "") != 0)
{
- char *trash = 0;
+ char *trash = nullptr;
idl_global->pragma_prefixes ().pop (trash);
delete [] trash;
}
@@ -3624,7 +3624,7 @@ idl_store_pragma (char *buf)
char *number = ACE_OS::strchr (tmp, ' ');
- if (number == 0)
+ if (number == nullptr)
{
number = ACE_OS::strchr (tmp, '\t');
}
@@ -3634,7 +3634,7 @@ idl_store_pragma (char *buf)
// Most likely this means there is only a version number
// without an identifier to apply it to.
- if (number == 0)
+ if (number == nullptr)
{
const char *msg = "no identifier or scoped name";
idl_global->err ()->version_syntax_error (msg);
@@ -3663,7 +3663,7 @@ idl_store_pragma (char *buf)
// do it here.
AST_Decl *d = idl_find_node (tmp);
- if (d == 0)
+ if (d == nullptr)
{
return;
}
@@ -3694,14 +3694,14 @@ idl_store_pragma (char *buf)
AST_Decl *d = idl_find_node (work.c_str ());
- if (d == 0)
+ if (d == nullptr)
{
return;
}
char *new_id = idl_get_pragma_string (buf);
- if (new_id != 0)
+ if (new_id != nullptr)
{
if (d->typeid_set ())
{
@@ -4153,33 +4153,33 @@ idl_get_pragma_string (char *pragma)
// Get pointers to each end of the substring between the quotes.
const char *firstquote = ACE_OS::strchr (pragma, '"');
- if (firstquote == 0)
+ if (firstquote == nullptr)
{
idl_global->err ()->syntax_error (
IDL_GlobalData::PS_PragmaPrefixSyntax
);
- return 0;
+ return nullptr;
}
const char *start = firstquote + 1;
const char *end = ACE_OS::strchr (start, '"');
- if (end == 0)
+ if (end == nullptr)
{
idl_global->err ()->syntax_error (
IDL_GlobalData::PS_PragmaPrefixSyntax
);
- return 0;
+ return nullptr;
}
int len = static_cast<int> (end - start);
- char *retval = 0;
+ char *retval = nullptr;
ACE_NEW_RETURN (retval,
char[len + 1],
- 0);
+ nullptr);
ACE_OS::strncpy (retval,
start,
@@ -4195,22 +4195,22 @@ idl_valid_version (char *s)
// Nothing preceding decimal point.
if (*s == '.')
{
- return 0;
+ return false;
}
char *minor = ACE_OS::strchr (s, '.');
int i;
- if (minor == 0)
+ 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,23 +4237,23 @@ 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 *
idl_find_node (const char *s)
{
UTL_ScopedName * node = FE_Utils::string_to_scoped_name (s);
- AST_Decl * d = 0;
+ AST_Decl * d = nullptr;
- if (node != 0)
+ if (node != nullptr)
{
d = idl_global->scopes ().top_non_null ()->lookup_by_name (node);
- if (d == 0)
+ if (d == nullptr)
{
idl_global->err ()->lookup_error (node);
}
diff --git a/TAO/TAO_IDL/include/ast_annotation_appl.h b/TAO/TAO_IDL/include/ast_annotation_appl.h
index 85567255021..941a8ab0883 100644
--- a/TAO/TAO_IDL/include/ast_annotation_appl.h
+++ b/TAO/TAO_IDL/include/ast_annotation_appl.h
@@ -47,12 +47,6 @@ public:
virtual ~AST_Annotation_Appl ();
- /// Narrowing
- ///{
- DEF_NARROW_FROM_DECL (AST_Annotation_Appl);
- DEF_NARROW_FROM_SCOPE (AST_Annotation_Appl);
- ///}
-
/// AST Dumping
virtual void dump (ACE_OSTREAM_TYPE &o);
diff --git a/TAO/TAO_IDL/include/ast_annotation_decl.h b/TAO/TAO_IDL/include/ast_annotation_decl.h
index 0ee0fd2eab7..28ae96220e4 100644
--- a/TAO/TAO_IDL/include/ast_annotation_decl.h
+++ b/TAO/TAO_IDL/include/ast_annotation_decl.h
@@ -18,12 +18,6 @@ public:
virtual ~AST_Annotation_Decl ();
- /// Narrowing
- ///{
- DEF_NARROW_FROM_DECL (AST_Annotation_Decl);
- DEF_NARROW_FROM_SCOPE (AST_Annotation_Decl);
- ///}
-
/// AST Dumping
virtual void dump (ACE_OSTREAM_TYPE &o);
diff --git a/TAO/TAO_IDL/include/ast_annotation_member.h b/TAO/TAO_IDL/include/ast_annotation_member.h
index 5686a2f639f..883512bb053 100644
--- a/TAO/TAO_IDL/include/ast_annotation_member.h
+++ b/TAO/TAO_IDL/include/ast_annotation_member.h
@@ -37,12 +37,6 @@ public:
/// Cleanup
virtual void destroy ();
- /// Narrowing
- ///{
- DEF_NARROW_FROM_DECL (AST_Annotation_Member);
- DEF_NARROW_FROM_SCOPE (AST_Annotation_Member);
- ///}
-
/// AST Dumping
virtual void dump (ACE_OSTREAM_TYPE &o);
diff --git a/TAO/TAO_IDL/include/ast_argument.h b/TAO/TAO_IDL/include/ast_argument.h
index 17d9ef41401..6f90a060c00 100644
--- a/TAO/TAO_IDL/include/ast_argument.h
+++ b/TAO/TAO_IDL/include/ast_argument.h
@@ -87,14 +87,10 @@ public:
AST_Type *ft,
UTL_ScopedName *n);
- virtual ~AST_Argument (void);
+ virtual ~AST_Argument ();
// Data Accessors.
- Direction direction (void);
-
- // Narrowing
-
- DEF_NARROW_FROM_DECL(AST_Argument);
+ Direction direction ();
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &o);
@@ -103,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 2eb72f84859..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,30 +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);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL(AST_Array);
+ virtual void destroy ();
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &o);
@@ -129,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 6a5b10ce5d5..b8be84250cc 100644
--- a/TAO/TAO_IDL/include/ast_attribute.h
+++ b/TAO/TAO_IDL/include/ast_attribute.h
@@ -81,17 +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;
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL(AST_Attribute);
+ bool readonly () const;
+ UTL_ExceptList *get_get_exceptions () const;
+ UTL_ExceptList *get_set_exceptions () const;
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &o);
@@ -100,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);
@@ -123,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 2a8e15758f3..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
@@ -59,11 +59,6 @@ public:
int be_add_uses (AST_Uses *i,
AST_Uses *ix = 0);
- // Narrowing.
-
- DEF_NARROW_FROM_DECL (AST_Component);
- DEF_NARROW_FROM_SCOPE (AST_Component);
-
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &);
diff --git a/TAO/TAO_IDL/include/ast_component_fwd.h b/TAO/TAO_IDL/include/ast_component_fwd.h
index 1c356431df0..61b721beff6 100644
--- a/TAO/TAO_IDL/include/ast_component_fwd.h
+++ b/TAO/TAO_IDL/include/ast_component_fwd.h
@@ -12,14 +12,10 @@ public:
AST_ComponentFwd (AST_Interface *dummy,
UTL_ScopedName *n);
- virtual ~AST_ComponentFwd (void);
+ virtual ~AST_ComponentFwd ();
// Cleanup function.
- virtual void destroy (void);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL(AST_ComponentFwd);
+ virtual void destroy ();
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &);
@@ -28,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 edac0ba5211..3d15bc1ba7b 100644
--- a/TAO/TAO_IDL/include/ast_concrete_type.h
+++ b/TAO/TAO_IDL/include/ast_concrete_type.h
@@ -77,13 +77,10 @@ public:
AST_ConcreteType (AST_Decl::NodeType nt,
UTL_ScopedName *n);
- virtual ~AST_ConcreteType (void);
+ virtual ~AST_ConcreteType ();
// Cleanup.
- virtual void destroy (void);
-
- // Narrowing.
- DEF_NARROW_FROM_DECL(AST_ConcreteType);
+ 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 60dd5360f99..d1748e5853e 100644
--- a/TAO/TAO_IDL/include/ast_connector.h
+++ b/TAO/TAO_IDL/include/ast_connector.h
@@ -9,22 +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);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL (AST_Connector);
- DEF_NARROW_FROM_SCOPE (AST_Connector);
+ 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 01196eb790a..b974e63a842 100644
--- a/TAO/TAO_IDL/include/ast_constant.h
+++ b/TAO/TAO_IDL/include/ast_constant.h
@@ -92,29 +92,25 @@ 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.
- // Narrowing
-
- DEF_NARROW_FROM_DECL(AST_Constant);
-
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &o);
@@ -122,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 24407232a0e..9060876b5c3 100644
--- a/TAO/TAO_IDL/include/ast_consumes.h
+++ b/TAO/TAO_IDL/include/ast_consumes.h
@@ -12,13 +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;
-
- // Narrowing.
- DEF_NARROW_FROM_DECL(AST_Consumes);
+ AST_Type *consumes_type () const;
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &o);
@@ -27,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 161f71115d9..c018be50aba 100644
--- a/TAO/TAO_IDL/include/ast_decl.h
+++ b/TAO/TAO_IDL/include/ast_decl.h
@@ -67,7 +67,6 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#define _AST_DECL_AST_DECL_HH
#include "utl_scoped_name.h"
-#include "idl_narrow.h"
#include "ast_annotation_appls.h"
#include "ace/os_include/sys/os_types.h"
@@ -94,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:
@@ -196,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
@@ -207,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);
@@ -237,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.
@@ -281,16 +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);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL(AST_Decl);
+ virtual bool is_defined ();
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &o);
@@ -306,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
@@ -326,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
@@ -410,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 20c8b276b9c..423a5f8a76a 100644
--- a/TAO/TAO_IDL/include/ast_emits.h
+++ b/TAO/TAO_IDL/include/ast_emits.h
@@ -12,13 +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;
-
- // Narrowing.
- DEF_NARROW_FROM_DECL(AST_Emits);
+ AST_Type *emits_type () const;
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &o);
@@ -27,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 3ab61916e3b..32b18f78a4c 100644
--- a/TAO/TAO_IDL/include/ast_enum.h
+++ b/TAO/TAO_IDL/include/ast_enum.h
@@ -80,12 +80,7 @@ public:
bool local,
bool abstract);
- virtual ~AST_Enum (void);
-
- // Narrowing
-
- DEF_NARROW_FROM_DECL(AST_Enum);
- DEF_NARROW_FROM_SCOPE(AST_Enum);
+ virtual ~AST_Enum ();
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &);
@@ -94,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);
@@ -113,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.
@@ -121,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 6339f5280cf..f1667000d0b 100644
--- a/TAO/TAO_IDL/include/ast_enum_val.h
+++ b/TAO/TAO_IDL/include/ast_enum_val.h
@@ -78,10 +78,7 @@ public:
AST_EnumVal (ACE_CDR::ULong v,
UTL_ScopedName *n);
- virtual ~AST_EnumVal (void);
-
- // Narrowing.
- DEF_NARROW_FROM_DECL(AST_EnumVal);
+ 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 f47c01def16..f7243863e8c 100644
--- a/TAO/TAO_IDL/include/ast_eventtype.h
+++ b/TAO/TAO_IDL/include/ast_eventtype.h
@@ -20,15 +20,10 @@ public:
bool truncatable,
bool custom);
- virtual ~AST_EventType (void);
+ virtual ~AST_EventType ();
// Cleanup function.
- virtual void destroy (void);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL(AST_EventType);
- DEF_NARROW_FROM_SCOPE(AST_EventType);
+ 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 a928e482232..c859663a582 100644
--- a/TAO/TAO_IDL/include/ast_eventtype_fwd.h
+++ b/TAO/TAO_IDL/include/ast_eventtype_fwd.h
@@ -12,14 +12,10 @@ public:
AST_EventTypeFwd (AST_Interface *dummy,
UTL_ScopedName *n);
- virtual ~AST_EventTypeFwd (void);
+ virtual ~AST_EventTypeFwd ();
// Cleanup function.
- virtual void destroy (void);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL(AST_EventTypeFwd);
+ 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 996b6c63114..76556795479 100644
--- a/TAO/TAO_IDL/include/ast_exception.h
+++ b/TAO/TAO_IDL/include/ast_exception.h
@@ -83,16 +83,11 @@ 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.
- // Narrowing
-
- DEF_NARROW_FROM_DECL(AST_Exception);
- DEF_NARROW_FROM_SCOPE(AST_Exception);
-
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &o);
@@ -100,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 3b49cefc994..dd0fb686581 100644
--- a/TAO/TAO_IDL/include/ast_extended_port.h
+++ b/TAO/TAO_IDL/include/ast_extended_port.h
@@ -13,16 +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);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL (AST_Extended_Port);
+ 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 ad2996b0a23..d83aeacfd84 100644
--- a/TAO/TAO_IDL/include/ast_factory.h
+++ b/TAO/TAO_IDL/include/ast_factory.h
@@ -81,32 +81,27 @@ 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.
- // Narrowing.
-
- DEF_NARROW_FROM_DECL(AST_Factory);
- DEF_NARROW_FROM_SCOPE(AST_Factory);
-
// 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);
@@ -134,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 03adc8d793d..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,16 +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);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL (AST_Field);
+ void set_recursive_flag ();
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &o);
@@ -139,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 ce0403c6936..f66e44d910f 100644
--- a/TAO/TAO_IDL/include/ast_finder.h
+++ b/TAO/TAO_IDL/include/ast_finder.h
@@ -12,17 +12,13 @@ public:
AST_Finder (UTL_ScopedName *n);
- virtual ~AST_Finder (void);
- // Narrowing.
-
- DEF_NARROW_FROM_DECL(AST_Finder);
- DEF_NARROW_FROM_SCOPE(AST_Finder);
+ 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_fixed.h b/TAO/TAO_IDL/include/ast_fixed.h
index 2c7a8793375..afd9311e6df 100644
--- a/TAO/TAO_IDL/include/ast_fixed.h
+++ b/TAO/TAO_IDL/include/ast_fixed.h
@@ -17,8 +17,6 @@ public:
virtual ~AST_Fixed ();
- DEF_NARROW_FROM_DECL (AST_Fixed);
-
virtual void dump (ACE_OSTREAM_TYPE &o);
virtual void destroy ();
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 d12a3624009..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,25 +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);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL(AST_Home);
- DEF_NARROW_FROM_SCOPE(AST_Home);
+ virtual void destroy ();
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &o);
@@ -68,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 2be8cee24f3..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,34 +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);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL(AST_Interface);
- DEF_NARROW_FROM_SCOPE(AST_Interface);
+ 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 34a4ff22828..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,18 +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);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL(AST_InterfaceFwd);
+ virtual void destroy ();
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &);
@@ -118,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 a5fbc761b4f..3195c88da4a 100644
--- a/TAO/TAO_IDL/include/ast_mirror_port.h
+++ b/TAO/TAO_IDL/include/ast_mirror_port.h
@@ -12,14 +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);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL (AST_Mirror_Port);
+ 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 03998ee62f0..d697dcb785e 100644
--- a/TAO/TAO_IDL/include/ast_module.h
+++ b/TAO/TAO_IDL/include/ast_module.h
@@ -87,21 +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);
-
- // Narrowing.
- DEF_NARROW_FROM_DECL(AST_Module);
- DEF_NARROW_FROM_SCOPE(AST_Module);
+ 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
@@ -135,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.
@@ -238,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 04a5fec2681..2a56f19a152 100644
--- a/TAO/TAO_IDL/include/ast_native.h
+++ b/TAO/TAO_IDL/include/ast_native.h
@@ -15,13 +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);
-
- // Narrowing.
- DEF_NARROW_FROM_DECL(AST_Native);
+ 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 f226d57780d..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,21 +125,16 @@ 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.
- // Narrowing.
-
- DEF_NARROW_FROM_DECL(AST_Operation);
- DEF_NARROW_FROM_SCOPE(AST_Operation);
-
// 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);
@@ -177,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 e3c99455c5c..17f4d66f41b 100644
--- a/TAO/TAO_IDL/include/ast_param_holder.h
+++ b/TAO/TAO_IDL/include/ast_param_holder.h
@@ -13,18 +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;
-
- // Narrowing.
- DEF_NARROW_FROM_DECL (AST_Param_Holder);
+ 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 1a745e2ad87..20b0e92ea26 100644
--- a/TAO/TAO_IDL/include/ast_porttype.h
+++ b/TAO/TAO_IDL/include/ast_porttype.h
@@ -18,15 +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);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL (AST_PortType);
- DEF_NARROW_FROM_SCOPE (AST_PortType);
+ 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 311e89c3e04..3969936f4ce 100644
--- a/TAO/TAO_IDL/include/ast_predefined_type.h
+++ b/TAO/TAO_IDL/include/ast_predefined_type.h
@@ -100,13 +100,10 @@ public:
AST_PredefinedType (PredefinedType t,
UTL_ScopedName *n);
- virtual ~AST_PredefinedType (void);
+ virtual ~AST_PredefinedType ();
// Data Accessors.
- PredefinedType pt (void);
-
- // Narrowing
- DEF_NARROW_FROM_DECL(AST_PredefinedType);
+ PredefinedType pt ();
// AST Dumping
virtual void dump (ACE_OSTREAM_TYPE &o);
@@ -115,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 6074f47e09d..3d5b3f5c52b 100644
--- a/TAO/TAO_IDL/include/ast_provides.h
+++ b/TAO/TAO_IDL/include/ast_provides.h
@@ -10,13 +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;
-
- // Narrowing.
- DEF_NARROW_FROM_DECL(AST_Provides);
+ AST_Type *provides_type () const;
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &o);
@@ -25,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 1ef752f8f9c..96295e30067 100644
--- a/TAO/TAO_IDL/include/ast_publishes.h
+++ b/TAO/TAO_IDL/include/ast_publishes.h
@@ -12,13 +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;
-
- // Narrowing.
- DEF_NARROW_FROM_DECL(AST_Publishes);
+ AST_Type *publishes_type () const;
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &o);
@@ -27,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 542de927785..8c3b50d01f1 100644
--- a/TAO/TAO_IDL/include/ast_root.h
+++ b/TAO/TAO_IDL/include/ast_root.h
@@ -75,14 +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);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL(AST_Root);
- DEF_NARROW_FROM_SCOPE(AST_Root);
+ virtual unsigned long nmembers ();
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &o);
@@ -94,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 228a579dd43..d1f1d94abda 100644
--- a/TAO/TAO_IDL/include/ast_sequence.h
+++ b/TAO/TAO_IDL/include/ast_sequence.h
@@ -81,34 +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);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL(AST_Sequence);
+ 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 5fbd6631885..71ad8c1e935 100644
--- a/TAO/TAO_IDL/include/ast_string.h
+++ b/TAO/TAO_IDL/include/ast_string.h
@@ -82,14 +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);
-
- // Narrowing.
- DEF_NARROW_FROM_DECL(AST_String);
+ AST_Expression *max_size ();
+ long width ();
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &o);
@@ -98,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 7ccf834cf66..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,55 +103,50 @@ public:
// Overridden for unions.
virtual void redefine (AST_Structure *from);
- // Narrowing.
-
- DEF_NARROW_FROM_DECL(AST_Structure);
- DEF_NARROW_FROM_SCOPE(AST_Structure);
-
- 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;
@@ -166,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);
@@ -177,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_;
@@ -186,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 8481a85fea2..f459c558505 100644
--- a/TAO/TAO_IDL/include/ast_structure_fwd.h
+++ b/TAO/TAO_IDL/include/ast_structure_fwd.h
@@ -13,20 +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);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL(AST_StructureFwd);
+ virtual void destroy ();
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &);
@@ -35,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 bfc44bc6f74..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);
@@ -26,15 +26,11 @@ public:
// Checks for errors in the template param refs of an alias.
bool match_param_refs (UTL_StrList *refs, UTL_Scope *decl_scope);
- // Narrowing.
- DEF_NARROW_FROM_DECL (AST_Template_Module);
- DEF_NARROW_FROM_SCOPE (AST_Template_Module);
-
// 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_inst.h b/TAO/TAO_IDL/include/ast_template_module_inst.h
index 4b2031cbcaa..d56fc150dc1 100644
--- a/TAO/TAO_IDL/include/ast_template_module_inst.h
+++ b/TAO/TAO_IDL/include/ast_template_module_inst.h
@@ -15,21 +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;
-
- // Narrowing.
- DEF_NARROW_FROM_DECL (AST_Template_Module_Inst);
+ 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 5abdba89e19..7273bc0e381 100644
--- a/TAO/TAO_IDL/include/ast_template_module_ref.h
+++ b/TAO/TAO_IDL/include/ast_template_module_ref.h
@@ -15,20 +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;
-
- // Narrowing.
- DEF_NARROW_FROM_DECL (AST_Template_Module_Ref);
+ 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);
@@ -42,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 e3698c729c9..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,26 +123,22 @@ 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.
- // Narrowing.
-
- DEF_NARROW_FROM_DECL(AST_Type);
-
// Visiting.
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 91a3819f840..b1181cb18e8 100644
--- a/TAO/TAO_IDL/include/ast_typedef.h
+++ b/TAO/TAO_IDL/include/ast_typedef.h
@@ -81,30 +81,27 @@ 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.
- // Narrowing.
- DEF_NARROW_FROM_DECL (AST_Typedef);
-
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &o);
@@ -112,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;
@@ -124,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 4aada429a1b..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,13 +94,9 @@ public:
// Data Accessors.
- AST_ConcreteType *disc_type (void);
+ AST_ConcreteType *disc_type ();
- AST_Expression::ExprType udisc_type (void);
-
- // Narrowing.
- DEF_NARROW_FROM_DECL(AST_Union);
- DEF_NARROW_FROM_SCOPE(AST_Union);
+ AST_Expression::ExprType udisc_type ();
struct DefaultValue
{
@@ -127,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.
@@ -147,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);
@@ -169,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.
@@ -179,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.
@@ -192,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 955f9e0c8e3..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.
@@ -103,10 +103,6 @@ public:
// we call this at the end of fe_add_union_branch.
void coerce_labels (AST_Union *u);
- // Narrowing.
-
- DEF_NARROW_FROM_DECL (AST_UnionBranch);
-
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &o);
@@ -114,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 13d391677cd..14a6121d7e3 100644
--- a/TAO/TAO_IDL/include/ast_union_fwd.h
+++ b/TAO/TAO_IDL/include/ast_union_fwd.h
@@ -14,14 +14,10 @@ public:
AST_UnionFwd (AST_Union *dummy,
UTL_ScopedName *n);
- virtual ~AST_UnionFwd (void);
+ virtual ~AST_UnionFwd ();
// Cleanup function.
- virtual void destroy (void);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL(AST_UnionFwd);
+ 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 10115d09a77..9da57a5327f 100644
--- a/TAO/TAO_IDL/include/ast_uses.h
+++ b/TAO/TAO_IDL/include/ast_uses.h
@@ -11,14 +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;
-
- // Narrowing.
- DEF_NARROW_FROM_DECL(AST_Uses);
+ AST_Type *uses_type () const;
+ bool is_multiple () const;
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &o);
@@ -27,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 cd8e3366031..4ea5ec52eb5 100644
--- a/TAO/TAO_IDL/include/ast_valuebox.h
+++ b/TAO/TAO_IDL/include/ast_valuebox.h
@@ -10,13 +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;
-
- // Narrowing.
- DEF_NARROW_FROM_DECL(AST_ValueBox);
+ AST_Type *boxed_type () const;
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &o);
@@ -25,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 f8398efce68..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,15 +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);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL(AST_ValueType);
- DEF_NARROW_FROM_SCOPE(AST_ValueType);
+ virtual void destroy ();
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &o);
@@ -89,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 b31b56f1b7d..6e9e9ce38b4 100644
--- a/TAO/TAO_IDL/include/ast_valuetype_fwd.h
+++ b/TAO/TAO_IDL/include/ast_valuetype_fwd.h
@@ -12,14 +12,10 @@ public:
AST_ValueTypeFwd (AST_Interface *dummy,
UTL_ScopedName *n);
- virtual ~AST_ValueTypeFwd (void);
+ virtual ~AST_ValueTypeFwd ();
// Cleanup function.
- virtual void destroy (void);
-
- // Narrowing.
-
- DEF_NARROW_FROM_DECL(AST_ValueTypeFwd);
+ 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/idl_narrow.h b/TAO/TAO_IDL/include/idl_narrow.h
deleted file mode 100644
index c787d641b1c..00000000000
--- a/TAO/TAO_IDL/include/idl_narrow.h
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
-
-COPYRIGHT
-
-Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United
-States of America. All Rights Reserved.
-
-This product is protected by copyright and distributed under the following
-license restricting its use.
-
-The Interface Definition Language Compiler Front End (CFE) is made
-available for your use provided that you include this license and copyright
-notice on all media and documentation and the software program in which
-this product is incorporated in whole or part. You may copy and extend
-functionality (but may not remove functionality) of the Interface
-Definition Language CFE without charge, but you are not authorized to
-license or distribute it to anyone else except as part of a product or
-program developed by you or with the express written consent of Sun
-Microsystems, Inc. ("Sun").
-
-The names of Sun Microsystems, Inc. and any of its subsidiaries or
-affiliates may not be used in advertising or publicity pertaining to
-distribution of Interface Definition Language CFE as permitted herein.
-
-This license is effective until terminated by Sun for failure to comply
-with this license. Upon termination, you shall destroy or return all code
-and documentation for the Interface Definition Language CFE.
-
-INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF
-ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS
-FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF
-DEALING, USAGE OR TRADE PRACTICE.
-
-INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT
-ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES
-TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT.
-
-SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH
-RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY
-INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF.
-
-IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR
-ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL
-DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-Use, duplication, or disclosure by the government is subject to
-restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in
-Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR
-52.227-19.
-
-Sun, Sun Microsystems and the Sun logo are trademarks or registered
-trademarks of Sun Microsystems, Inc.
-
-SunSoft, Inc.
-2550 Garcia Avenue
-Mountain View, California 94043
-
-NOTE:
-
-SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are
-trademarks or registered trademarks of Sun Microsystems, Inc.
-
- */
-
-#ifndef _IDL_NARROW_IDL_NARROW_HH
-#define _IDL_NARROW_IDL_NARROW_HH
-
-#define DEF_NARROW_FROM_DECL(TYPE) \
-static TYPE* narrow_from_decl(AST_Decl *t)
-
-#define IMPL_NARROW_FROM_DECL(TYPE) \
-TYPE * \
-TYPE::narrow_from_decl (AST_Decl *t) { \
- return dynamic_cast<TYPE *> (t); \
-}
-
-#define DEF_NARROW_FROM_SCOPE(TYPE) \
-static TYPE * narrow_from_scope(UTL_Scope *t)
-
-#define IMPL_NARROW_FROM_SCOPE(TYPE) \
-TYPE * \
-TYPE::narrow_from_scope (UTL_Scope *t) { \
- return dynamic_cast<TYPE *> (t); \
-}
-
-#endif // _IDL_NARROW_IDL_NARROW_HH
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 ef20c534e08..1b1a5c41e54 100644
--- a/TAO/TAO_IDL/include/utl_scope.h
+++ b/TAO/TAO_IDL/include/utl_scope.h
@@ -155,22 +155,18 @@ 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;
}
- // Narrowing.
-
- DEF_NARROW_FROM_SCOPE(UTL_Scope);
-
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &o);
@@ -210,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,
@@ -231,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);
@@ -537,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/narrow/narrow.cpp b/TAO/TAO_IDL/narrow/narrow.cpp
index 180ac2888df..c4e67c16404 100644
--- a/TAO/TAO_IDL/narrow/narrow.cpp
+++ b/TAO/TAO_IDL/narrow/narrow.cpp
@@ -86,51 +86,51 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
TAO_IDL_FE_Export AST_Decl *
ScopeAsDecl (UTL_Scope *s)
{
- if (s == 0)
+ if (s == nullptr)
{
- return 0;
+ return nullptr;
}
switch (s->scope_node_type ())
{
case AST_Decl::NT_module:
- return AST_Module::narrow_from_scope (s);
+ return dynamic_cast<AST_Module*> (s);
case AST_Decl::NT_root:
- return AST_Root::narrow_from_scope (s);
+ return dynamic_cast<AST_Root*> (s);
case AST_Decl::NT_interface:
- return AST_Interface::narrow_from_scope (s);
+ return dynamic_cast<AST_Interface*> (s);
case AST_Decl::NT_valuetype:
- return AST_ValueType::narrow_from_scope (s);
+ return dynamic_cast<AST_ValueType*> (s);
case AST_Decl::NT_eventtype:
- return AST_EventType::narrow_from_scope (s);
+ return dynamic_cast<AST_EventType*> (s);
case AST_Decl::NT_component:
- return AST_Component::narrow_from_scope (s);
+ return dynamic_cast<AST_Component*> (s);
case AST_Decl::NT_porttype:
- return AST_PortType::narrow_from_scope (s);
+ return dynamic_cast<AST_PortType*> (s);
case AST_Decl::NT_connector:
- return AST_Connector::narrow_from_scope (s);
+ return dynamic_cast<AST_Connector*> (s);
case AST_Decl::NT_home:
- return AST_Home::narrow_from_scope (s);
+ return dynamic_cast<AST_Home*> (s);
case AST_Decl::NT_op:
- return AST_Operation::narrow_from_scope (s);
+ return dynamic_cast<AST_Operation*> (s);
case AST_Decl::NT_factory:
- return AST_Factory::narrow_from_scope (s);
+ return dynamic_cast<AST_Factory*> (s);
case AST_Decl::NT_finder:
- return AST_Finder::narrow_from_scope (s);
+ return dynamic_cast<AST_Finder*> (s);
case AST_Decl::NT_except:
- return AST_Exception::narrow_from_scope (s);
+ return dynamic_cast<AST_Exception*> (s);
case AST_Decl::NT_union:
- return AST_Union::narrow_from_scope (s);
+ return dynamic_cast<AST_Union*> (s);
case AST_Decl::NT_struct:
- return AST_Structure::narrow_from_scope (s);
+ return dynamic_cast<AST_Structure*> (s);
case AST_Decl::NT_enum:
- return AST_Enum::narrow_from_scope (s);
+ return dynamic_cast<AST_Enum*> (s);
case AST_Decl::NT_annotation_decl:
- return AST_Annotation_Decl::narrow_from_scope (s);
+ return dynamic_cast<AST_Annotation_Decl*> (s);
case AST_Decl::NT_annotation_appl:
- return AST_Annotation_Appl::narrow_from_scope (s);
+ return dynamic_cast<AST_Annotation_Appl*> (s);
default:
- return 0;
+ return nullptr;
}
}
@@ -140,9 +140,9 @@ ScopeAsDecl (UTL_Scope *s)
TAO_IDL_FE_Export UTL_Scope *
DeclAsScope (AST_Decl *d)
{
- if (d == 0)
+ if (d == nullptr)
{
- return 0;
+ return nullptr;
}
switch (d->node_type ())
@@ -152,41 +152,41 @@ DeclAsScope (AST_Decl *d)
* Resolve forward declared interface by looking at full_definition()
* field and iterating
*/
- d = (AST_InterfaceFwd::narrow_from_decl (d))->full_definition ();
+ d = (dynamic_cast<AST_InterfaceFwd*> (d))->full_definition ();
// fallthrough
case AST_Decl::NT_interface:
- return AST_Interface::narrow_from_decl (d);
+ return dynamic_cast<AST_Interface*> (d);
case AST_Decl::NT_valuetype:
- return AST_ValueType::narrow_from_decl (d);
+ return dynamic_cast<AST_ValueType*> (d);
case AST_Decl::NT_eventtype:
- return AST_EventType::narrow_from_decl (d);
+ return dynamic_cast<AST_EventType*> (d);
case AST_Decl::NT_component:
- return AST_Component::narrow_from_decl (d);
+ return dynamic_cast<AST_Component*> (d);
case AST_Decl::NT_porttype:
- return AST_PortType::narrow_from_decl (d);
+ return dynamic_cast<AST_PortType*> (d);
case AST_Decl::NT_connector:
- return AST_Connector::narrow_from_decl (d);
+ return dynamic_cast<AST_Connector*> (d);
case AST_Decl::NT_home:
- return AST_Home::narrow_from_decl (d);
+ return dynamic_cast<AST_Home*> (d);
case AST_Decl::NT_module:
- return AST_Module::narrow_from_decl (d);
+ return dynamic_cast<AST_Module*> (d);
case AST_Decl::NT_root:
- return AST_Root::narrow_from_decl (d);
+ return dynamic_cast<AST_Root*> (d);
case AST_Decl::NT_except:
- return AST_Exception::narrow_from_decl (d);
+ return dynamic_cast<AST_Exception*> (d);
case AST_Decl::NT_union:
- return AST_Union::narrow_from_decl (d);
+ return dynamic_cast<AST_Union*> (d);
case AST_Decl::NT_struct:
- return AST_Structure::narrow_from_decl (d);
+ return dynamic_cast<AST_Structure*> (d);
case AST_Decl::NT_enum:
- return AST_Enum::narrow_from_decl (d);
+ return dynamic_cast<AST_Enum*> (d);
case AST_Decl::NT_op:
- return AST_Operation::narrow_from_decl (d);
+ return dynamic_cast<AST_Operation*> (d);
case AST_Decl::NT_factory:
- return AST_Factory::narrow_from_decl (d);
+ return dynamic_cast<AST_Factory*> (d);
case AST_Decl::NT_finder:
- return AST_Finder::narrow_from_decl (d);
+ return dynamic_cast<AST_Finder*> (d);
default:
- return 0;
+ return nullptr;
}
}
diff --git a/TAO/TAO_IDL/tao_idl.cpp b/TAO/TAO_IDL/tao_idl.cpp
index c8d9811e690..7cbbca9ed78 100644
--- a/TAO/TAO_IDL/tao_idl.cpp
+++ b/TAO/TAO_IDL/tao_idl.cpp
@@ -96,7 +96,7 @@ long DRV_nfiles = 0;
long DRV_file_index = -1;
void
-DRV_version (void)
+DRV_version ()
{
ACE_DEBUG ((LM_DEBUG,
"%C\n"
@@ -134,19 +134,19 @@ DRV_init (int &argc, ACE_TCHAR *argv[])
}
void
-DRV_refresh (void)
+DRV_refresh ()
{
idl_global->set_err_count (0);
- idl_global->set_filename (0);
- idl_global->set_main_filename (0);
- idl_global->set_real_filename (0);
- idl_global->set_stripped_filename (0);
+ idl_global->set_filename (nullptr);
+ idl_global->set_main_filename (nullptr);
+ idl_global->set_real_filename (nullptr);
+ idl_global->set_stripped_filename (nullptr);
idl_global->set_lineno (-1);
idl_global->reset_flag_seen ();
}
void
-DRV_cleanup (void)
+DRV_cleanup ()
{
// In case we got here via an init error or
// usage/version option - otherwise it's idempotent.
@@ -154,11 +154,11 @@ DRV_cleanup (void)
be_global->destroy ();
delete be_global;
- be_global = 0;
+ be_global = nullptr;
idl_global->fini ();
delete idl_global;
- idl_global = 0;
+ idl_global = nullptr;
for (DRV_file_index = 0;
DRV_file_index < DRV_nfiles;
@@ -193,7 +193,7 @@ DRV_drive (const char *s)
{
// Set the name of the IDL file we are parsing. This is useful to
// the backend when it generates C++ headers and files.
- UTL_String *utl_string = 0;
+ UTL_String *utl_string = nullptr;
ACE_NEW (utl_string,
UTL_String (s, true));
@@ -362,7 +362,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
AST_Generator *gen = be_util::generator_init ();
- if (0 == gen)
+ if (nullptr == gen)
{
ACE_ERROR ((
LM_ERROR,
@@ -399,7 +399,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
// If there are no input files, and we are not using the
// directory recursion option, there's no sense going any further.
- if (0 == DRV_nfiles && 0 == idl_global->recursion_start ())
+ if (0 == DRV_nfiles && nullptr == idl_global->recursion_start ())
{
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("IDL: No input files\n")));
@@ -407,7 +407,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
throw Bailout ();
}
- FILE *output_file = 0;
+ FILE *output_file = nullptr;
if (idl_global->multi_file_input ())
{
diff --git a/TAO/TAO_IDL/tao_idl.mpc b/TAO/TAO_IDL/tao_idl.mpc
index 475529bdb6a..bc922467772 100644
--- a/TAO/TAO_IDL/tao_idl.mpc
+++ b/TAO/TAO_IDL/tao_idl.mpc
@@ -1,5 +1,5 @@
// -*- MPC -*-cr
-project(TAO_IDL_EXE) : aceexe, install, tao_output, tao_idl_fe {
+project(TAO_IDL_EXE) : aceexe, install, tao_rules, tao_output, tao_idl_fe {
exename = tao_idl
exeout = $(ACE_ROOT)/bin
after += TAO_IDL_BE gperf
diff --git a/TAO/TAO_IDL/tao_idl_be.mpc b/TAO/TAO_IDL/tao_idl_be.mpc
index a121b594e73..427916eb512 100644
--- a/TAO/TAO_IDL/tao_idl_be.mpc
+++ b/TAO/TAO_IDL/tao_idl_be.mpc
@@ -1,5 +1,5 @@
// -*- MPC -*-
-project(TAO_IDL_BE) : acelib, conv_lib, tao_output, tao_vc8warnings, tao_idl_fe {
+project(TAO_IDL_BE) : acelib, conv_lib, tao_rules, tao_output, tao_vc8warnings, tao_idl_fe {
sharedname = TAO_IDL_BE
dynamicflags += TAO_IDL_BE_BUILD_DLL
includes += $(TAO_ROOT)
diff --git a/TAO/TAO_IDL/tao_idl_fe.mpc b/TAO/TAO_IDL/tao_idl_fe.mpc
index 020936b5c89..80ed849937f 100644
--- a/TAO/TAO_IDL/tao_idl_fe.mpc
+++ b/TAO/TAO_IDL/tao_idl_fe.mpc
@@ -50,7 +50,7 @@ project(TAO_IDL_GEN) {
}
}
-project(TAO_IDL_FE) : acelib, conv_lib, tao_output {
+project(TAO_IDL_FE) : acelib, conv_lib, tao_rules, tao_output {
sharedname = TAO_IDL_FE
dynamicflags += TAO_IDL_FE_BUILD_DLL
includes += $(TAO_ROOT)
diff --git a/TAO/TAO_IDL/util/utl_decllist.cpp b/TAO/TAO_IDL/util/utl_decllist.cpp
index 4e370719019..6e11b5db44a 100644
--- a/TAO/TAO_IDL/util/utl_decllist.cpp
+++ b/TAO/TAO_IDL/util/utl_decllist.cpp
@@ -88,19 +88,19 @@ UTL_DeclList::UTL_DeclList (FE_Declarator *s,
// Get list item
FE_Declarator *
-UTL_DeclList::head (void)
+UTL_DeclList::head ()
{
return pd_car_data;
}
void
-UTL_DeclList::destroy (void)
+UTL_DeclList::destroy ()
{
- if (this->pd_car_data != 0)
+ if (this->pd_car_data != nullptr)
{
this->pd_car_data->destroy ();
delete this->pd_car_data;
- this->pd_car_data = 0;
+ this->pd_car_data = nullptr;
}
this->UTL_List::destroy ();
@@ -131,11 +131,11 @@ UTL_DecllistActiveIterator::UTL_DecllistActiveIterator (UTL_DeclList *s)
// Get current item
FE_Declarator *
-UTL_DecllistActiveIterator::item (void)
+UTL_DecllistActiveIterator::item ()
{
- if (source == 0)
+ if (source == nullptr)
{
- return 0;
+ return nullptr;
}
return ((UTL_DeclList *) source)->head ();
diff --git a/TAO/TAO_IDL/util/utl_err.cpp b/TAO/TAO_IDL/util/utl_err.cpp
index c9639fc9f6c..2a080172dda 100644
--- a/TAO/TAO_IDL/util/utl_err.cpp
+++ b/TAO/TAO_IDL/util/utl_err.cpp
@@ -259,7 +259,7 @@ error_string (UTL_Error::ErrorCode c)
* Get filename from node or from idl_global if node is null.
*/
static const char *
-get_filename (AST_Decl *node = 0)
+get_filename (AST_Decl *node = nullptr)
{
return node ? node->file_name ().c_str ()
: idl_global->filename ()->get_string ();
@@ -269,7 +269,7 @@ get_filename (AST_Decl *node = 0)
* Get line number from node or from idl_global if node is null.
*/
static long
-get_lineno (AST_Decl *node = 0)
+get_lineno (AST_Decl *node = nullptr)
{
return node ? node->line () : idl_global->lineno ();
}
@@ -293,7 +293,7 @@ idl_error_header (UTL_Error::ErrorCode c, long lineno, ACE_CString s)
idl_global->set_err_count (idl_global->err_count () + 1);
}
static void
-idl_error_header (UTL_Error::ErrorCode c, AST_Decl *node = 0)
+idl_error_header (UTL_Error::ErrorCode c, AST_Decl *node = nullptr)
{
idl_error_header (c, get_lineno (node), get_filename (node));
}
@@ -317,7 +317,7 @@ idl_warning_header (UTL_Error::ErrorCode c, long lineno, ACE_CString s)
error_string (c)));
}
static void
-idl_warning_header (UTL_Error::ErrorCode c, AST_Decl *node = 0)
+idl_warning_header (UTL_Error::ErrorCode c, AST_Decl *node = nullptr)
{
idl_warning_header (c, get_lineno (node), get_filename (node));
}
@@ -915,7 +915,7 @@ UTL_Error::version_syntax_error (const char *msg)
// Report an attempt to set the version a second time.
void
-UTL_Error::version_reset_error (void)
+UTL_Error::version_reset_error ()
{
idl_error_header (EIDL_VERSION_RESET);
ACE_ERROR ((LM_ERROR,
@@ -1096,7 +1096,7 @@ UTL_Error::incompatible_disc_error (AST_Decl *d,
d->name ()->dump (*ACE_DEFAULT_LOG_STREAM);
ACE_ERROR ((LM_ERROR, " does not contain "));
UTL_ScopedName *sn = e->n ();
- (sn != 0
+ (sn != nullptr
? sn->dump (*ACE_DEFAULT_LOG_STREAM)
: e->dump (*ACE_DEFAULT_LOG_STREAM));
ACE_ERROR ((LM_ERROR, "\n"));
@@ -1360,7 +1360,7 @@ void
UTL_Error::not_a_type (AST_Decl *d)
{
idl_error_header (EIDL_NOT_A_TYPE);
- if (d == 0 || d->name () == 0)
+ if (d == nullptr || d->name () == nullptr)
{
ACE_ERROR ((LM_ERROR,
"unknown symbol"));
@@ -1393,7 +1393,7 @@ UTL_Error::back_end (long lineno,
}
void
-UTL_Error::illegal_infix (void)
+UTL_Error::illegal_infix ()
{
idl_error_header (EIDL_ILLEGAL_INFIX);
ACE_ERROR ((LM_ERROR,
@@ -1511,7 +1511,7 @@ UTL_Error::scope_masking_error (AST_Decl *masked,
}
void
-UTL_Error::anonymous_type_diagnostic (void)
+UTL_Error::anonymous_type_diagnostic ()
{
if (idl_global->anon_silent () || idl_global->in_typedef ())
{
diff --git a/TAO/TAO_IDL/util/utl_exceptlist.cpp b/TAO/TAO_IDL/util/utl_exceptlist.cpp
index f7fbdaba704..93e55ebbb17 100644
--- a/TAO/TAO_IDL/util/utl_exceptlist.cpp
+++ b/TAO/TAO_IDL/util/utl_exceptlist.cpp
@@ -85,7 +85,7 @@ UTL_ExceptList::UTL_ExceptList (AST_Type *s,
// Get list item.
AST_Type *
-UTL_ExceptList::head (void)
+UTL_ExceptList::head ()
{
return this->pd_car_data;
}
@@ -97,9 +97,9 @@ UTL_ExceptList::head (void)
// AST_Exception.
void
-UTL_ExceptList::destroy (void)
+UTL_ExceptList::destroy ()
{
- if (this->tail () != 0)
+ if (this->tail () != nullptr)
{
this->tail ()->destroy ();
}
@@ -108,15 +108,15 @@ UTL_ExceptList::destroy (void)
}
UTL_ExceptList *
-UTL_ExceptList::copy (void)
+UTL_ExceptList::copy ()
{
- UTL_ExceptList *retval = 0;
+ UTL_ExceptList *retval = nullptr;
ACE_NEW_RETURN (retval,
UTL_ExceptList (this->pd_car_data,
- 0),
- 0);
+ nullptr),
+ nullptr);
- if (this->tail () != 0)
+ if (this->tail () != nullptr)
{
retval->nconc ((UTL_ExceptList *) this->tail ()->copy ());
}
@@ -131,11 +131,11 @@ UTL_ExceptlistActiveIterator::UTL_ExceptlistActiveIterator (UTL_ExceptList *s)
// Get current item.
AST_Type *
-UTL_ExceptlistActiveIterator::item (void)
+UTL_ExceptlistActiveIterator::item ()
{
- if (source == 0)
+ if (source == nullptr)
{
- return 0;
+ return nullptr;
}
return ((UTL_ExceptList *) source)->head ();
diff --git a/TAO/TAO_IDL/util/utl_exprlist.cpp b/TAO/TAO_IDL/util/utl_exprlist.cpp
index 5e8bb062aa1..26bc07b18ad 100644
--- a/TAO/TAO_IDL/util/utl_exprlist.cpp
+++ b/TAO/TAO_IDL/util/utl_exprlist.cpp
@@ -82,19 +82,19 @@ UTL_ExprList::UTL_ExprList (AST_Expression *s,
// Get list item.
AST_Expression *
-UTL_ExprList::head (void)
+UTL_ExprList::head ()
{
return this->pd_car_data;
}
void
-UTL_ExprList::destroy (void)
+UTL_ExprList::destroy ()
{
- if (this->pd_car_data != 0)
+ if (this->pd_car_data != nullptr)
{
this->pd_car_data->destroy ();
delete this->pd_car_data;
- this->pd_car_data = 0;
+ this->pd_car_data = nullptr;
}
this->UTL_List::destroy ();
@@ -107,11 +107,11 @@ UTL_ExprlistActiveIterator::UTL_ExprlistActiveIterator (UTL_ExprList *s)
// Get current item.
AST_Expression *
-UTL_ExprlistActiveIterator::item (void)
+UTL_ExprlistActiveIterator::item ()
{
- if (source == 0)
+ if (source == nullptr)
{
- return 0;
+ return nullptr;
}
return ((UTL_ExprList *) source)->head ();
diff --git a/TAO/TAO_IDL/util/utl_global.cpp b/TAO/TAO_IDL/util/utl_global.cpp
index 63e2931a6e3..1c9a20bd53b 100644
--- a/TAO/TAO_IDL/util/utl_global.cpp
+++ b/TAO/TAO_IDL/util/utl_global.cpp
@@ -91,7 +91,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#undef INCREMENT
#define INCREMENT 64
-static long *pSeenOnce = 0;
+static long *pSeenOnce = nullptr;
#if defined (ACE_OPENVMS)
#include <unixlib.h>
@@ -110,7 +110,7 @@ char* IDL_GlobalData::translateName(const char* name, char *name_buf)
}
#endif
-IDL_GlobalData::IDL_GlobalData (void)
+IDL_GlobalData::IDL_GlobalData ()
: syntax_only_ (false),
parse_args_exit_ (false),
parse_args_exit_status_ (0),
@@ -122,35 +122,35 @@ IDL_GlobalData::IDL_GlobalData (void)
ignore_files_ (false),
ignore_lookup_errors_ (false),
unknown_annotations_ (UNKNOWN_ANNOTATIONS_WARN_ONCE),
- pd_root (0),
- pd_gen (0),
- pd_primary_key_base (0),
- pd_err (0),
+ pd_root (nullptr),
+ pd_gen (nullptr),
+ pd_primary_key_base (nullptr),
+ pd_err (nullptr),
pd_err_count (0),
pd_lineno (0),
- pd_filename (0),
- pd_main_filename (0),
- pd_real_filename (0),
- pd_stripped_filename (0),
+ pd_filename (nullptr),
+ pd_main_filename (nullptr),
+ pd_real_filename (nullptr),
+ pd_stripped_filename (nullptr),
pd_import (false),
pd_in_main_file (false),
- pd_prog_name (0),
- pd_cpp_location (0),
+ pd_prog_name (nullptr),
+ pd_cpp_location (nullptr),
pd_compile_flags (0),
- pd_local_escapes (0),
- pd_indent (0),
- pd_include_file_names (0),
+ pd_local_escapes (nullptr),
+ pd_indent (nullptr),
+ pd_include_file_names (nullptr),
pd_n_include_file_names (0),
pd_n_alloced_file_names (0),
- included_idl_files_ (0),
+ included_idl_files_ (nullptr),
n_included_idl_files_ (0),
n_allocated_idl_files_ (0),
pd_parse_state (PS_NoState),
- pd_idl_src_file (0),
- tao_root_ (0),
- gperf_path_ (0),
- temp_dir_ (0),
- ident_string_ (0),
+ pd_idl_src_file (nullptr),
+ tao_root_ (nullptr),
+ gperf_path_ (nullptr),
+ temp_dir_ (nullptr),
+ ident_string_ (nullptr),
case_diff_error_ (true),
nest_orb_ (false),
idl_flags_ (""),
@@ -160,14 +160,14 @@ IDL_GlobalData::IDL_GlobalData (void)
ignore_idl3_ (false),
dcps_support_zero_copy_read_ (false),
dcps_gen_zero_copy_read_ (false),
- recursion_start_ (0),
+ recursion_start_ (nullptr),
multi_file_input_ (false),
big_file_name_ ("PICML_IDL_file_bag"),
- current_params_ (0),
- alias_params_ (0),
- for_new_holder_ (0),
+ current_params_ (nullptr),
+ alias_params_ (nullptr),
+ for_new_holder_ (nullptr),
included_ami_receps_done_ (false),
- corba_module_ (0),
+ corba_module_ (nullptr),
anon_type_diagnostic_ (ANON_TYPE_ERROR),
explicit_anon_type_diagnostic_ (false),
in_typedef_ (false),
@@ -181,7 +181,7 @@ IDL_GlobalData::IDL_GlobalData (void)
// Form the absolute pathname.
char* ace_root = ACE_OS::getenv ("ACE_ROOT");
- if (ace_root == 0)
+ if (ace_root == nullptr)
// This may not cause any problem if -g option is used to specify
// the correct path for the gperf program. Let us ignore this
// error here. It will be caught when we check the existence of
@@ -198,7 +198,7 @@ IDL_GlobalData::IDL_GlobalData (void)
"%s",
ace_gperf);
#else
- this->gperf_path_ = 0;
+ this->gperf_path_ = nullptr;
#endif
}
else
@@ -241,13 +241,13 @@ IDL_GlobalData::IDL_GlobalData (void)
this->reset_flag_seen ();
}
-IDL_GlobalData::~IDL_GlobalData (void)
+IDL_GlobalData::~IDL_GlobalData ()
{
}
// When starting to process the next command line input idl file, reset.
void
-IDL_GlobalData::reset_flag_seen (void)
+IDL_GlobalData::reset_flag_seen ()
{
abstract_iface_seen_ = false;
abstractbase_seen_ = false;
@@ -314,14 +314,14 @@ IDL_GlobalData::reset_flag_seen (void)
// Get or set scopes stack
UTL_ScopeStack &
-IDL_GlobalData::scopes (void)
+IDL_GlobalData::scopes ()
{
return this->pd_scopes;
}
// Get or set root of AST
AST_Root *
-IDL_GlobalData::root (void)
+IDL_GlobalData::root ()
{
return this->pd_root;
}
@@ -334,7 +334,7 @@ IDL_GlobalData::set_root (AST_Root *r)
// Get or set generator object
AST_Generator *
-IDL_GlobalData::gen (void)
+IDL_GlobalData::gen ()
{
return this->pd_gen;
}
@@ -347,7 +347,7 @@ IDL_GlobalData::set_gen (AST_Generator *g)
// Get or set PrimaryKeyBase object
AST_ValueType *
-IDL_GlobalData::primary_key_base (void)
+IDL_GlobalData::primary_key_base ()
{
return this->pd_primary_key_base;
}
@@ -360,7 +360,7 @@ IDL_GlobalData::primary_key_base (AST_ValueType *v)
// Get or set error object
UTL_Error *
-IDL_GlobalData::err (void)
+IDL_GlobalData::err ()
{
return this->pd_err;
}
@@ -373,7 +373,7 @@ IDL_GlobalData::set_err (UTL_Error *e)
// Get or set error count
int
-IDL_GlobalData::err_count (void)
+IDL_GlobalData::err_count ()
{
return this->pd_err_count;
}
@@ -386,7 +386,7 @@ IDL_GlobalData::set_err_count (int c)
// Get or set line number
long
-IDL_GlobalData::lineno (void)
+IDL_GlobalData::lineno ()
{
return this->pd_lineno;
}
@@ -399,7 +399,7 @@ IDL_GlobalData::set_lineno (long n)
// Get or set file name being read now
UTL_String *
-IDL_GlobalData::filename (void)
+IDL_GlobalData::filename ()
{
return this->pd_filename;
}
@@ -407,11 +407,11 @@ IDL_GlobalData::filename (void)
void
IDL_GlobalData::set_filename (UTL_String *s)
{
- if (this->pd_filename != 0)
+ if (this->pd_filename != nullptr)
{
this->pd_filename->destroy ();
delete this->pd_filename;
- this->pd_filename = 0;
+ this->pd_filename = nullptr;
}
this->pd_filename = s;
@@ -419,7 +419,7 @@ IDL_GlobalData::set_filename (UTL_String *s)
// Get or set main file name
UTL_String *
-IDL_GlobalData::main_filename (void)
+IDL_GlobalData::main_filename ()
{
return this->pd_main_filename;
}
@@ -427,18 +427,18 @@ IDL_GlobalData::main_filename (void)
void
IDL_GlobalData::set_main_filename (UTL_String *n)
{
- if (this->pd_main_filename != 0)
+ if (this->pd_main_filename != nullptr)
{
this->pd_main_filename->destroy ();
delete this->pd_main_filename;
- this->pd_main_filename = 0;
+ this->pd_main_filename = nullptr;
}
this->pd_main_filename = n;
}
// Get or set real file name
UTL_String *
-IDL_GlobalData::real_filename (void)
+IDL_GlobalData::real_filename ()
{
return this->pd_real_filename;
}
@@ -446,11 +446,11 @@ IDL_GlobalData::real_filename (void)
void
IDL_GlobalData::set_real_filename (UTL_String *n)
{
- if (this->pd_real_filename != 0)
+ if (this->pd_real_filename != nullptr)
{
this->pd_real_filename->destroy ();
delete this->pd_real_filename;
- this->pd_real_filename = 0;
+ this->pd_real_filename = nullptr;
}
this->pd_real_filename = n;
@@ -458,13 +458,13 @@ IDL_GlobalData::set_real_filename (UTL_String *n)
// Get or set indicator whether import is on
bool
-IDL_GlobalData::imported (void)
+IDL_GlobalData::imported ()
{
return this->pd_in_main_file ? false : pd_import;
}
bool
-IDL_GlobalData::import (void)
+IDL_GlobalData::import ()
{
return this->pd_import;
}
@@ -477,7 +477,7 @@ IDL_GlobalData::set_import (bool is_in)
// Get or set indicator whether we're reading the main file now
bool
-IDL_GlobalData::in_main_file (void)
+IDL_GlobalData::in_main_file ()
{
return this->pd_in_main_file;
}
@@ -490,7 +490,7 @@ IDL_GlobalData::set_in_main_file (bool is_in)
// Get or set stripped file name
UTL_String *
-IDL_GlobalData::stripped_filename (void)
+IDL_GlobalData::stripped_filename ()
{
return this->pd_stripped_filename;
}
@@ -498,7 +498,7 @@ IDL_GlobalData::stripped_filename (void)
void
IDL_GlobalData::set_stripped_filename (UTL_String *nm)
{
- if (this->pd_stripped_filename != 0)
+ if (this->pd_stripped_filename != nullptr)
{
delete this->pd_stripped_filename;
}
@@ -508,7 +508,7 @@ IDL_GlobalData::set_stripped_filename (UTL_String *nm)
// Get or set cache value for argv[0]
const char *
-IDL_GlobalData::prog_name (void)
+IDL_GlobalData::prog_name ()
{
return this->pd_prog_name;
}
@@ -521,7 +521,7 @@ IDL_GlobalData::set_prog_name (const char *pn)
// Get or set location to find C preprocessor
const char *
-IDL_GlobalData::cpp_location (void)
+IDL_GlobalData::cpp_location ()
{
return this->pd_cpp_location;
}
@@ -534,7 +534,7 @@ IDL_GlobalData::set_cpp_location (const char *l)
// Get or set IDL compiler flags
long
-IDL_GlobalData::compile_flags (void)
+IDL_GlobalData::compile_flags ()
{
return this->pd_compile_flags;
}
@@ -556,7 +556,7 @@ IDL_GlobalData::set_compile_flags (long cf)
// Get or set local escapes string. This provides an additional
// mechanism to pass information to a BE.
char *
-IDL_GlobalData::local_escapes (void)
+IDL_GlobalData::local_escapes ()
{
return this->pd_local_escapes;
}
@@ -564,7 +564,7 @@ IDL_GlobalData::local_escapes (void)
void
IDL_GlobalData::set_local_escapes (const char *e)
{
- if (this->pd_local_escapes != 0)
+ if (this->pd_local_escapes != nullptr)
{
delete [] this->pd_local_escapes;
}
@@ -574,7 +574,7 @@ IDL_GlobalData::set_local_escapes (const char *e)
// Get or set indent object
UTL_Indenter *
-IDL_GlobalData::indent (void)
+IDL_GlobalData::indent ()
{
return this->pd_indent;
}
@@ -590,7 +590,7 @@ long
IDL_GlobalData::seen_include_file_before (char *n)
{
unsigned long i;
- char *incl = 0;
+ char *incl = nullptr;
char *tmp = n;
for (i = 0; i < this->pd_n_include_file_names; ++i)
@@ -665,7 +665,7 @@ IDL_GlobalData::set_include_file_names (UTL_String **ns)
}
UTL_String **
-IDL_GlobalData::include_file_names (void)
+IDL_GlobalData::include_file_names ()
{
return this->pd_include_file_names;
}
@@ -677,7 +677,7 @@ IDL_GlobalData::set_n_include_file_names (unsigned long n)
}
unsigned long
-IDL_GlobalData::n_include_file_names (void)
+IDL_GlobalData::n_include_file_names ()
{
return pd_n_include_file_names;
}
@@ -735,13 +735,13 @@ IDL_GlobalData::add_to_included_idl_files (const char *file_name)
}
char**
-IDL_GlobalData::included_idl_files (void)
+IDL_GlobalData::included_idl_files ()
{
return this->included_idl_files_;
}
size_t
-IDL_GlobalData::n_included_idl_files (void)
+IDL_GlobalData::n_included_idl_files ()
{
return this->n_included_idl_files_;
}
@@ -762,13 +762,13 @@ IDL_GlobalData::set_parse_state(ParseState ps)
}
IDL_GlobalData::ParseState
-IDL_GlobalData::parse_state (void)
+IDL_GlobalData::parse_state ()
{
return pd_parse_state;
}
// returns the IDL source file being copiled
-UTL_String* IDL_GlobalData::idl_src_file (void)
+UTL_String* IDL_GlobalData::idl_src_file ()
{
return this->pd_idl_src_file;
}
@@ -784,7 +784,7 @@ IDL_GlobalData::temp_dir (const char *s)
{
// Delete the old pointer.
delete [] this->temp_dir_;
- this->temp_dir_ = 0; // In case the ACE_NEW fails below.
+ this->temp_dir_ = nullptr; // In case the ACE_NEW fails below.
const size_t lengthSep = sizeof (ACE_DIRECTORY_SEPARATOR_STR_A) - 1u;
const size_t lengthPath = ACE_OS::strlen (s);
@@ -810,7 +810,7 @@ IDL_GlobalData::temp_dir (const char *s)
}
const char *
-IDL_GlobalData::temp_dir (void) const
+IDL_GlobalData::temp_dir () const
{
return this->temp_dir_;
}
@@ -823,7 +823,7 @@ IDL_GlobalData::tao_root (const char *s)
}
const char *
-IDL_GlobalData::tao_root (void) const
+IDL_GlobalData::tao_root () const
{
return this->tao_root_;
}
@@ -836,7 +836,7 @@ IDL_GlobalData::gperf_path (const char *s)
}
const char *
-IDL_GlobalData::gperf_path (void) const
+IDL_GlobalData::gperf_path () const
{
return this->gperf_path_;
}
@@ -849,7 +849,7 @@ IDL_GlobalData::ident_string (const char *s)
}
const char *
-IDL_GlobalData::ident_string (void) const
+IDL_GlobalData::ident_string () const
{
return this->ident_string_;
}
@@ -861,7 +861,7 @@ IDL_GlobalData::case_diff_error (bool val)
}
bool
-IDL_GlobalData::case_diff_error (void)
+IDL_GlobalData::case_diff_error ()
{
return this->case_diff_error_;
}
@@ -873,57 +873,57 @@ IDL_GlobalData::nest_orb (bool val)
}
bool
-IDL_GlobalData::nest_orb (void)
+IDL_GlobalData::nest_orb ()
{
return this->nest_orb_;
}
void
-IDL_GlobalData::destroy (void)
+IDL_GlobalData::destroy ()
{
- if (this->pd_filename != 0)
+ if (this->pd_filename != nullptr)
{
this->pd_filename->destroy ();
delete this->pd_filename;
- this->pd_filename = 0;
+ this->pd_filename = nullptr;
}
- if (this->pd_main_filename != 0)
+ if (this->pd_main_filename != nullptr)
{
this->pd_main_filename->destroy ();
delete this->pd_main_filename;
- this->pd_main_filename = 0;
+ this->pd_main_filename = nullptr;
}
- if (this->pd_real_filename != 0)
+ if (this->pd_real_filename != nullptr)
{
this->pd_real_filename->destroy ();
delete this->pd_real_filename;
- this->pd_real_filename = 0;
+ this->pd_real_filename = nullptr;
}
- if (this->pd_stripped_filename != 0)
+ if (this->pd_stripped_filename != nullptr)
{
this->pd_stripped_filename->destroy ();
delete this->pd_stripped_filename;
- this->pd_stripped_filename = 0;
+ this->pd_stripped_filename = nullptr;
}
- if (this->pd_idl_src_file != 0)
+ if (this->pd_idl_src_file != nullptr)
{
this->pd_idl_src_file->destroy ();
delete this->pd_idl_src_file;
- this->pd_idl_src_file = 0;
+ this->pd_idl_src_file = nullptr;
}
size_t size = this->pragma_prefixes ().size ();
- char *trash = 0;
+ char *trash = nullptr;
for (size_t i = 0; i < size; ++i)
{
this->pragma_prefixes ().pop (trash);
delete [] trash;
- trash = 0;
+ trash = nullptr;
}
// Clean up each included file name - the array allocation itself
@@ -932,7 +932,7 @@ IDL_GlobalData::destroy (void)
{
this->pd_include_file_names[j]->destroy ();
delete this->pd_include_file_names[j];
- this->pd_include_file_names[j] = 0;
+ this->pd_include_file_names[j] = nullptr;
}
this->pd_n_include_file_names = 0;
@@ -940,26 +940,26 @@ IDL_GlobalData::destroy (void)
for (size_t k = 0; k < n_included_idl_files_; ++k)
{
ACE::strdelete (this->included_idl_files_[k]);
- this->included_idl_files_[k] = 0;
+ this->included_idl_files_[k] = nullptr;
}
this->n_included_idl_files_ = 0;
this->n_allocated_idl_files_ = 0;
delete [] this->included_idl_files_;
- this->included_idl_files_ = 0;
+ this->included_idl_files_ = nullptr;
ACE::strdelete (this->recursion_start_);
- this->recursion_start_ = 0;
+ this->recursion_start_ = nullptr;
// Reset the member of the CORBA module containing the basic types
// to point to itself, since all the other CORBA modules (if any)
// will be destroyed.
- if (this->corba_module_ != 0)
+ if (this->corba_module_ != nullptr)
{
this->corba_module_->reset_last_in_same_parent_scope ();
}
- if (0 != this->pd_root)
+ if (nullptr != this->pd_root)
{
this->pd_root->destroy ();
}
@@ -972,19 +972,19 @@ IDL_GlobalData::append_idl_flag (const char *s)
}
const char *
-IDL_GlobalData::idl_flags (void) const
+IDL_GlobalData::idl_flags () const
{
return this->idl_flags_.c_str ();
}
ACE_Hash_Map_Manager<ACE_CString, int, ACE_Null_Mutex> &
-IDL_GlobalData::idl_keywords (void)
+IDL_GlobalData::idl_keywords ()
{
return this->idl_keywords_;
}
ACE_Unbounded_Stack<char *> &
-IDL_GlobalData::pragma_prefixes (void)
+IDL_GlobalData::pragma_prefixes ()
{
return this->pragma_prefixes_;
}
@@ -994,7 +994,7 @@ IDL_GlobalData::update_prefix (char *filename)
{
// If we are just starting up and processing the temporary filename,
// there are no prefix issues to deal with yet.
- if (this->pd_main_filename == 0 || this->pd_filename == 0)
+ if (this->pd_main_filename == nullptr || this->pd_filename == nullptr)
{
return;
}
@@ -1012,10 +1012,10 @@ IDL_GlobalData::update_prefix (char *filename)
return;
}
- ACE_CString tmp ("", 0, false);
+ ACE_CString tmp ("", nullptr, false);
char *main_filename = this->pd_main_filename->get_string ();
- char *prefix = 0;
+ char *prefix = nullptr;
int status = this->file_prefixes_.find (filename, prefix);
if (status == 0)
@@ -1055,7 +1055,7 @@ IDL_GlobalData::update_prefix (char *filename)
// pop it.
if (status == 0 && ACE_OS::strcmp (prefix, "") != 0)
{
- char *trash = 0;
+ char *trash = nullptr;
this->pragma_prefixes_.pop (trash);
delete [] trash;
}
@@ -1073,7 +1073,7 @@ IDL_GlobalData::update_prefix (char *filename)
Should be true when being used by the IFR Service
*/
bool
-IDL_GlobalData::preserve_cpp_keywords (void)
+IDL_GlobalData::preserve_cpp_keywords ()
{
return preserve_cpp_keywords_;
}
@@ -1103,7 +1103,7 @@ IDL_GlobalData::add_rel_include_path (const char *s)
}
ACE_Unbounded_Queue<char *> const &
-IDL_GlobalData::rel_include_paths (void) const
+IDL_GlobalData::rel_include_paths () const
{
return this->rel_include_paths_;
}
@@ -1115,7 +1115,7 @@ IDL_GlobalData::add_ciao_lem_file_names (const char *s)
}
ACE_Unbounded_Queue<char *> &
-IDL_GlobalData::ciao_lem_file_names (void)
+IDL_GlobalData::ciao_lem_file_names ()
{
return this->ciao_lem_file_names_;
}
@@ -1127,7 +1127,7 @@ IDL_GlobalData::add_ciao_rti_ts_file_names (const char *s)
}
ACE_Unbounded_Queue<char *> &
-IDL_GlobalData::ciao_rti_ts_file_names (void)
+IDL_GlobalData::ciao_rti_ts_file_names ()
{
return this->ciao_rti_ts_file_names_;
}
@@ -1139,7 +1139,7 @@ IDL_GlobalData::add_ciao_spl_ts_file_names (const char *s)
}
ACE_Unbounded_Queue<char *> &
-IDL_GlobalData::ciao_spl_ts_file_names (void)
+IDL_GlobalData::ciao_spl_ts_file_names ()
{
return this->ciao_spl_ts_file_names_;
}
@@ -1151,7 +1151,7 @@ IDL_GlobalData::add_ciao_oci_ts_file_names (const char *s)
}
ACE_Unbounded_Queue<char *> &
-IDL_GlobalData::ciao_oci_ts_file_names (void)
+IDL_GlobalData::ciao_oci_ts_file_names ()
{
return this->ciao_oci_ts_file_names_;
}
@@ -1163,7 +1163,7 @@ IDL_GlobalData::add_ciao_coredx_ts_file_names (const char *s)
}
ACE_Unbounded_Queue<char *> &
-IDL_GlobalData::ciao_coredx_ts_file_names (void)
+IDL_GlobalData::ciao_coredx_ts_file_names ()
{
return this->ciao_coredx_ts_file_names_;
}
@@ -1175,7 +1175,7 @@ IDL_GlobalData::add_ciao_ami_iface_names (const char *s)
}
ACE_Unbounded_Queue<char *> &
-IDL_GlobalData::ciao_ami_iface_names (void)
+IDL_GlobalData::ciao_ami_iface_names ()
{
return this->ciao_ami_iface_names_;
}
@@ -1187,7 +1187,7 @@ IDL_GlobalData::add_ciao_ami_recep_names (const char *s)
}
ACE_Unbounded_Queue<char *> &
-IDL_GlobalData::ciao_ami_recep_names (void)
+IDL_GlobalData::ciao_ami_recep_names ()
{
return this->ciao_ami_recep_names_;
}
@@ -1199,13 +1199,13 @@ IDL_GlobalData::add_included_ami_recep_names (const char *s)
}
ACE_Unbounded_Queue<char *> &
-IDL_GlobalData::included_ami_recep_names (void)
+IDL_GlobalData::included_ami_recep_names ()
{
return this->included_ami_recep_names_;
}
bool
-IDL_GlobalData::included_ami_receps_done (void) const
+IDL_GlobalData::included_ami_receps_done () const
{
return this->included_ami_receps_done_;
}
@@ -1223,7 +1223,7 @@ IDL_GlobalData::add_ciao_ami_idl_fnames (const char *s)
}
ACE_Unbounded_Queue<char *> &
-IDL_GlobalData::ciao_ami_idl_fnames (void)
+IDL_GlobalData::ciao_ami_idl_fnames ()
{
return this->ciao_ami_idl_fnames_;
}
@@ -1235,25 +1235,25 @@ IDL_GlobalData::add_dds4ccm_impl_fnames (const char *s)
}
ACE_Unbounded_Queue<char *> &
-IDL_GlobalData::dds4ccm_impl_fnames (void)
+IDL_GlobalData::dds4ccm_impl_fnames ()
{
return this->dds4ccm_impl_fnames_;
}
ACE_Unbounded_Queue<AST_Interface *> &
-IDL_GlobalData::mixed_parentage_interfaces (void)
+IDL_GlobalData::mixed_parentage_interfaces ()
{
return this->mixed_parentage_interfaces_;
}
ACE_Hash_Map_Manager<char *, char *, ACE_Null_Mutex> &
-IDL_GlobalData::file_prefixes (void)
+IDL_GlobalData::file_prefixes ()
{
return this->file_prefixes_;
}
bool
-IDL_GlobalData::pass_orb_idl (void) const
+IDL_GlobalData::pass_orb_idl () const
{
return this->pass_orb_idl_;
}
@@ -1265,7 +1265,7 @@ IDL_GlobalData::pass_orb_idl (bool val)
}
bool
-IDL_GlobalData::using_ifr_backend (void) const
+IDL_GlobalData::using_ifr_backend () const
{
return this->using_ifr_backend_;
}
@@ -1277,7 +1277,7 @@ IDL_GlobalData::using_ifr_backend (bool val)
}
bool
-IDL_GlobalData::ignore_idl3 (void) const
+IDL_GlobalData::ignore_idl3 () const
{
return this->ignore_idl3_;
}
@@ -1289,7 +1289,7 @@ IDL_GlobalData::ignore_idl3 (bool val)
}
bool
-IDL_GlobalData::dcps_support_zero_copy_read (void) const
+IDL_GlobalData::dcps_support_zero_copy_read () const
{
return this->dcps_support_zero_copy_read_;
}
@@ -1301,7 +1301,7 @@ IDL_GlobalData::dcps_support_zero_copy_read (bool val)
}
bool
-IDL_GlobalData::dcps_gen_zero_copy_read (void) const
+IDL_GlobalData::dcps_gen_zero_copy_read () const
{
return this->dcps_gen_zero_copy_read_;
}
@@ -1315,11 +1315,11 @@ IDL_GlobalData::dcps_gen_zero_copy_read (bool val)
// Return 0 on success, -1 failure. The <errno> corresponding to the
// error that caused the GPERF execution is also set.
int
-IDL_GlobalData::check_gperf (void)
+IDL_GlobalData::check_gperf ()
{
// If absolute path is not specified yet, let us call just
// "gperf". Hopefully PATH is set up correctly to locate the gperf.
- if (this->gperf_path_ == 0)
+ if (this->gperf_path_ == nullptr)
{
// If ACE_GPERF is defined then use that gperf program instead of "gperf."
#if defined (ACE_GPERF)
@@ -1420,35 +1420,35 @@ IDL_GlobalData::check_gperf (void)
}
void
-IDL_GlobalData::fini (void)
+IDL_GlobalData::fini ()
{
- if (0 != this->pd_root)
+ if (nullptr != this->pd_root)
{
this->pd_root->fini ();
delete this->pd_root;
- this->pd_root = 0;
+ this->pd_root = nullptr;
}
delete this->pd_err;
- this->pd_err = 0;
+ this->pd_err = nullptr;
delete this->pd_gen;
- this->pd_gen = 0;
+ this->pd_gen = nullptr;
delete this->pd_indent;
- this->pd_indent = 0;
+ this->pd_indent = nullptr;
delete [] this->pd_local_escapes;
- this->pd_local_escapes = 0;
+ this->pd_local_escapes = nullptr;
delete [] this->tao_root_;
- this->tao_root_ = 0;
+ this->tao_root_ = nullptr;
delete [] this->gperf_path_;
- this->gperf_path_ = 0;
+ this->gperf_path_ = nullptr;
delete [] this->temp_dir_;
- this->temp_dir_ = 0;
+ this->temp_dir_ = nullptr;
delete [] this->ident_string_;
- this->ident_string_ = 0;
+ this->ident_string_ = nullptr;
delete [] this->pd_include_file_names;
- this->pd_include_file_names = 0;
+ this->pd_include_file_names = nullptr;
- Include_Path_Info *path_info = 0;
+ Include_Path_Info *path_info = nullptr;
for (Unbounded_Paths_Queue_Iterator qiter (this->include_paths_);
qiter.done () == 0;
@@ -1458,7 +1458,7 @@ IDL_GlobalData::fini (void)
ACE::strdelete (path_info->path_);
}
- char **path_tmp = 0;
+ char **path_tmp = nullptr;
for (ACE_Unbounded_Queue_Iterator<char *>riter (
this->rel_include_paths_
@@ -1561,7 +1561,7 @@ IDL_GlobalData::fini (void)
}
- ACE_Hash_Map_Entry<char *, char *> *entry = 0;
+ ACE_Hash_Map_Entry<char *, char *> *entry = nullptr;
for (ACE_Hash_Map_Iterator<char *, char *, ACE_Null_Mutex> hiter (
this->file_prefixes_
@@ -1574,7 +1574,7 @@ IDL_GlobalData::fini (void)
ACE::strdelete (entry->int_id_);
}
- DCPS_Type_Info_Map::ENTRY *dcps_entry = 0;
+ DCPS_Type_Info_Map::ENTRY *dcps_entry = nullptr;
for (DCPS_Type_Info_Map::ITERATOR dcps_iter (
this->dcps_type_info_map_);
@@ -1585,7 +1585,7 @@ IDL_GlobalData::fini (void)
dcps_entry->int_id_->name_->destroy ();
delete dcps_entry->int_id_->name_;
- dcps_entry->int_id_->name_ = 0;
+ dcps_entry->int_id_->name_ = nullptr;
delete dcps_entry->int_id_;
dcps_entry->int_id_ = 0;
@@ -1596,15 +1596,15 @@ IDL_GlobalData::fini (void)
}
ACE_Unbounded_Queue<AST_ValueType *> &
-IDL_GlobalData::primary_keys (void)
+IDL_GlobalData::primary_keys ()
{
return this->primary_keys_;
}
void
-IDL_GlobalData::check_primary_keys (void)
+IDL_GlobalData::check_primary_keys ()
{
- AST_ValueType *holder = 0;
+ AST_ValueType *holder = nullptr;
while (!this->primary_keys_.is_empty ())
{
@@ -1625,7 +1625,7 @@ IDL_GlobalData::check_primary_keys (void)
}
const char *
-IDL_GlobalData::recursion_start (void) const
+IDL_GlobalData::recursion_start () const
{
return this->recursion_start_;
}
@@ -1651,7 +1651,7 @@ IDL_GlobalData::recursion_start (const char *val)
}
bool
-IDL_GlobalData::multi_file_input (void) const
+IDL_GlobalData::multi_file_input () const
{
return this->multi_file_input_;
}
@@ -1663,13 +1663,13 @@ IDL_GlobalData::multi_file_input (bool val)
}
const char *
-IDL_GlobalData::big_file_name (void) const
+IDL_GlobalData::big_file_name () const
{
return this->big_file_name_;
}
FE_Utils::T_PARAMLIST_INFO const *
-IDL_GlobalData::current_params (void) const
+IDL_GlobalData::current_params () const
{
return this->current_params_;
}
@@ -1682,7 +1682,7 @@ FE_Utils::T_PARAMLIST_INFO *params)
}
UTL_StrList const *
-IDL_GlobalData::alias_params (void) const
+IDL_GlobalData::alias_params () const
{
return this->alias_params_;
}
@@ -1695,7 +1695,7 @@ UTL_StrList *params)
}
UTL_StrList const *
-IDL_GlobalData::for_new_holder (void) const
+IDL_GlobalData::for_new_holder () const
{
return this->for_new_holder_;
}
@@ -1716,7 +1716,7 @@ IDL_GlobalData::set_dcps_sequence_type (const char* seq_type)
bool
IDL_GlobalData::dcps_sequence_type_defined (const char* seq_type)
{
- char **tmp = 0;
+ char **tmp = nullptr;
for (ACE_Unbounded_Queue_Iterator<char *>riter (
this->dcps_sequence_types_list_);
@@ -1776,7 +1776,7 @@ bool
IDL_GlobalData::add_dcps_data_key (const char* id, const char* key)
{
// Search the map for the type.
- DCPS_Data_Type_Info* newinfo = 0;
+ DCPS_Data_Type_Info* newinfo = nullptr;
if (this->dcps_type_info_map_.find (id, newinfo) == 0)
{
@@ -1814,11 +1814,11 @@ IDL_GlobalData::is_dcps_type (UTL_ScopedName* target)
}
// No joy.
- return 0;
+ return nullptr;
}
AST_Module *
-IDL_GlobalData::corba_module (void) const
+IDL_GlobalData::corba_module () const
{
return this->corba_module_;
}
@@ -1830,7 +1830,7 @@ IDL_GlobalData::corba_module (AST_Module *m)
}
IDL_GlobalData::Unbounded_Paths_Queue &
-IDL_GlobalData::include_paths (void)
+IDL_GlobalData::include_paths ()
{
return this->include_paths_;
}
@@ -1850,7 +1850,7 @@ IDL_GlobalData::explicit_anon_type_diagnostic () const
}
bool
-IDL_GlobalData::anon_error (void) const
+IDL_GlobalData::anon_error () const
{
if (idl_version_ >= IDL_VERSION_4 && !explicit_anon_type_diagnostic_) {
return false;
@@ -1859,7 +1859,7 @@ IDL_GlobalData::anon_error (void) const
}
bool
-IDL_GlobalData::anon_warning (void) const
+IDL_GlobalData::anon_warning () const
{
if (idl_version_ >= IDL_VERSION_4 && !explicit_anon_type_diagnostic_) {
return false;
@@ -1868,7 +1868,7 @@ IDL_GlobalData::anon_warning (void) const
}
bool
-IDL_GlobalData::anon_silent (void) const
+IDL_GlobalData::anon_silent () const
{
if (idl_version_ >= IDL_VERSION_4 && !explicit_anon_type_diagnostic_) {
return true;
@@ -1877,7 +1877,7 @@ IDL_GlobalData::anon_silent (void) const
}
bool
-IDL_GlobalData::in_typedef (void) const
+IDL_GlobalData::in_typedef () const
{
return this->in_typedef_;
}
@@ -1889,7 +1889,7 @@ IDL_GlobalData::in_typedef (bool val)
}
bool
-IDL_GlobalData::in_tmpl_mod_no_alias (void) const
+IDL_GlobalData::in_tmpl_mod_no_alias () const
{
return this->in_tmpl_mod_no_alias_;
}
@@ -1901,7 +1901,7 @@ IDL_GlobalData::in_tmpl_mod_no_alias (bool val)
}
bool
-IDL_GlobalData::in_tmpl_mod_alias (void) const
+IDL_GlobalData::in_tmpl_mod_alias () const
{
return this->in_tmpl_mod_alias_;
}
@@ -1953,7 +1953,7 @@ namespace
{
public:
explicit OldState (bool disable_output = false)
- : old_filename_ (idl_global->filename () ? new UTL_String (idl_global->filename (), true) : 0),
+ : old_filename_ (idl_global->filename () ? new UTL_String (idl_global->filename (), true) : nullptr),
// need a copy because IDL_GlobalData::set_filename() destroys previous value
old_lineno_ (idl_global->lineno ()),
old_idl_src_file_ (idl_global->idl_src_file ()),
@@ -1964,7 +1964,7 @@ namespace
idl_global->in_eval_ = true;
idl_global->set_lineno (1);
- idl_global->set_filename (0);
+ idl_global->set_filename (nullptr);
// Name this pseudo-file "builtin-N"
static char buffer[64];
@@ -1977,7 +1977,7 @@ namespace
if (disable_output_)
{
- ACE_DEFAULT_LOG_STREAM->rdbuf (0);
+ ACE_DEFAULT_LOG_STREAM->rdbuf (nullptr);
ACE_LOG_MSG->clr_flags (ACE_Log_Msg::STDERR);
ACE_LOG_MSG->clr_flags (ACE_LOG_MSG->flags ());
}
diff --git a/TAO/TAO_IDL/util/utl_identifier.cpp b/TAO/TAO_IDL/util/utl_identifier.cpp
index 9ee1561e12b..9598bf0aee0 100644
--- a/TAO/TAO_IDL/util/utl_identifier.cpp
+++ b/TAO/TAO_IDL/util/utl_identifier.cpp
@@ -72,29 +72,29 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "ace/streams.h"
#include "ace/OS_NS_string.h"
-Identifier::Identifier (void)
- : pv_string (0),
+Identifier::Identifier ()
+ : pv_string (nullptr),
escaped_ (false)
{
}
Identifier::Identifier (const char *s)
- : pv_string (0),
+ : pv_string (nullptr),
escaped_ (false)
{
preprocess_and_replace_string (s);
}
Identifier::Identifier (const Identifier &other)
- : pv_string (0),
+ : pv_string (nullptr),
escaped_ (other.escaped ())
{
*this = other;
}
-Identifier::~Identifier (void)
+Identifier::~Identifier ()
{
- if (this->pv_string != 0)
+ if (this->pv_string != nullptr)
{
ACE::strdelete (this->pv_string);
}
@@ -103,13 +103,13 @@ Identifier::~Identifier (void)
// Operations.
char *
-Identifier::get_string (void)
+Identifier::get_string ()
{
return this->pv_string;
}
const char *
-Identifier::get_string (void) const
+Identifier::get_string () const
{
return this->pv_string;
}
@@ -121,7 +121,7 @@ Identifier::replace_string (const char * s)
{
delete [] this->pv_string;
}
- this->pv_string = s ? ACE::strnew (s) : 0;
+ this->pv_string = s ? ACE::strnew (s) : nullptr;
}
void
@@ -166,7 +166,7 @@ Identifier::preprocess_and_replace_string (const char * s)
const TAO_IDL_CPP_Keyword_Entry *entry =
cpp_key_tbl.lookup (str.c_str (), len);
- if (entry != 0)
+ if (entry != nullptr)
{
shift = false;
}
@@ -206,12 +206,12 @@ Identifier::case_compare_quiet (Identifier *o)
}
Identifier *
-Identifier::copy (void)
+Identifier::copy ()
{
- Identifier *retval = 0;
+ Identifier *retval = nullptr;
ACE_NEW_RETURN (retval,
Identifier (this->pv_string),
- 0);
+ nullptr);
retval->escaped_ = this->escaped_;
@@ -219,7 +219,7 @@ Identifier::copy (void)
}
bool
-Identifier::escaped (void) const
+Identifier::escaped () const
{
return this->escaped_;
}
@@ -228,7 +228,7 @@ Identifier::escaped (void) const
void
Identifier::dump (ACE_OSTREAM_TYPE &o)
{
- if (this->pv_string == 0)
+ if (this->pv_string == nullptr)
{
return;
}
@@ -241,7 +241,7 @@ Identifier::dump (ACE_OSTREAM_TYPE &o)
}
void
-Identifier::destroy (void)
+Identifier::destroy ()
{
}
diff --git a/TAO/TAO_IDL/util/utl_idlist.cpp b/TAO/TAO_IDL/util/utl_idlist.cpp
index c2445916e77..4dbc54f91d5 100644
--- a/TAO/TAO_IDL/util/utl_idlist.cpp
+++ b/TAO/TAO_IDL/util/utl_idlist.cpp
@@ -90,15 +90,15 @@ UTL_IdList::UTL_IdList (Identifier *s,
// Copy an IdList.
UTL_IdList *
-UTL_IdList::copy (void)
+UTL_IdList::copy ()
{
- UTL_IdList *retval = 0;
+ UTL_IdList *retval = nullptr;
ACE_NEW_RETURN (retval,
UTL_IdList (this->head ()->copy (),
- 0),
- 0);
+ nullptr),
+ nullptr);
- if (this->tail () != 0)
+ if (this->tail () != nullptr)
{
retval->nconc ((UTL_IdList *) this->tail ()->copy ());
}
@@ -108,16 +108,16 @@ UTL_IdList::copy (void)
// Get list item.
Identifier *
-UTL_IdList::head (void)
+UTL_IdList::head ()
{
return this->pd_car_data;
}
// Get last item of this list.
Identifier *
-UTL_IdList::last_component (void)
+UTL_IdList::last_component ()
{
- if (this->tail () == 0)
+ if (this->tail () == nullptr)
{
return this->head ();
}
@@ -127,7 +127,7 @@ UTL_IdList::last_component (void)
// Get first item of this list holding a non-empty string.
Identifier *
-UTL_IdList::first_component (void)
+UTL_IdList::first_component ()
{
if (ACE_OS::strlen (this->pd_car_data->get_string ()) > 0)
{
@@ -148,7 +148,7 @@ UTL_IdList::compare (UTL_IdList *other)
{
UTL_List *this_tail = this->tail ();
- if (this_tail == 0)
+ if (this_tail == nullptr)
{
return 1;
}
@@ -160,7 +160,7 @@ UTL_IdList::compare (UTL_IdList *other)
{
UTL_List *other_tail = other->tail ();
- if (other_tail == 0)
+ if (other_tail == nullptr)
{
return 1;
}
@@ -173,8 +173,8 @@ UTL_IdList::compare (UTL_IdList *other)
return 1;
}
- Identifier *this_id = 0;
- Identifier *other_id = 0;
+ Identifier *this_id = nullptr;
+ Identifier *other_id = nullptr;
for (UTL_IdListActiveIterator this_iter (this), other_iter (other);
!this_iter.is_done ();
@@ -238,13 +238,13 @@ UTL_IdList::dump (ACE_OSTREAM_TYPE &o)
}
void
-UTL_IdList::destroy (void)
+UTL_IdList::destroy ()
{
- if (this->pd_car_data != 0)
+ if (this->pd_car_data != nullptr)
{
this->pd_car_data->destroy ();
delete this->pd_car_data;
- this->pd_car_data = 0;
+ this->pd_car_data = nullptr;
}
this->UTL_List::destroy ();
@@ -262,11 +262,11 @@ UTL_IdListActiveIterator::UTL_IdListActiveIterator (UTL_IdList *s)
// Get current item.
Identifier *
-UTL_IdListActiveIterator::item (void)
+UTL_IdListActiveIterator::item ()
{
- if (this->source == 0)
+ if (this->source == nullptr)
{
- return 0;
+ return nullptr;
}
return ((UTL_IdList *) source)->head ();
diff --git a/TAO/TAO_IDL/util/utl_indenter.cpp b/TAO/TAO_IDL/util/utl_indenter.cpp
index cfe6a9374ea..fc0aefb1c19 100644
--- a/TAO/TAO_IDL/util/utl_indenter.cpp
+++ b/TAO/TAO_IDL/util/utl_indenter.cpp
@@ -74,21 +74,21 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
/*
* Constructors
*/
-UTL_Indenter::UTL_Indenter (void)
+UTL_Indenter::UTL_Indenter ()
: pd_indent_level (0)
{
}
// Reset indentation level.
void
-UTL_Indenter::reset (void)
+UTL_Indenter::reset ()
{
this->pd_indent_level = 0;
}
// Increase indentation level.
void
-UTL_Indenter::increase (void)
+UTL_Indenter::increase ()
{
++this->pd_indent_level;
}
diff --git a/TAO/TAO_IDL/util/utl_labellist.cpp b/TAO/TAO_IDL/util/utl_labellist.cpp
index f00665cdf06..1d598da3637 100644
--- a/TAO/TAO_IDL/util/utl_labellist.cpp
+++ b/TAO/TAO_IDL/util/utl_labellist.cpp
@@ -88,33 +88,33 @@ UTL_LabelList::UTL_LabelList (AST_UnionLabel *s,
// Get list item.
AST_UnionLabel *
-UTL_LabelList::head (void)
+UTL_LabelList::head ()
{
return this->pd_car_data;
}
// Copy a label list.
UTL_LabelList *
-UTL_LabelList::copy (void)
+UTL_LabelList::copy ()
{
AST_Expression *val = this->pd_car_data->label_val ();
- AST_Expression *val_copy = 0;
+ AST_Expression *val_copy = nullptr;
ACE_NEW_RETURN (val_copy,
AST_Expression (val, val->ev ()->et),
- 0);
+ nullptr);
AST_UnionLabel *label_copy =
idl_global->gen ()->create_union_label (this->pd_car_data->label_kind (),
val_copy);
- UTL_LabelList *retval = 0;
+ UTL_LabelList *retval = nullptr;
ACE_NEW_RETURN (retval,
UTL_LabelList (label_copy,
- 0),
- 0);
+ nullptr),
+ nullptr);
- if (this->tail () != 0)
+ if (this->tail () != nullptr)
{
retval->nconc ((UTL_LabelList *) this->tail ()->copy ());
}
@@ -123,11 +123,11 @@ UTL_LabelList::copy (void)
}
void
-UTL_LabelList::destroy (void)
+UTL_LabelList::destroy ()
{
this->pd_car_data->destroy ();
delete this->pd_car_data;
- this->pd_car_data = 0;
+ this->pd_car_data = nullptr;
this->UTL_List::destroy ();
}
@@ -139,15 +139,15 @@ UTL_LabellistActiveIterator::UTL_LabellistActiveIterator (UTL_LabelList *s)
// Get current item.
AST_UnionLabel *
-UTL_LabellistActiveIterator::item (void)
+UTL_LabellistActiveIterator::item ()
{
- if (this->source == 0)
+ if (this->source == nullptr)
{
- return 0;
+ return nullptr;
}
UTL_LabelList *llist = dynamic_cast<UTL_LabelList *> (this->source);
- return (llist != 0 ? llist->head () : 0);
+ return (llist != nullptr ? llist->head () : nullptr);
}
diff --git a/TAO/TAO_IDL/util/utl_list.cpp b/TAO/TAO_IDL/util/utl_list.cpp
index 6e5a60e188f..e3f2672cd74 100644
--- a/TAO/TAO_IDL/util/utl_list.cpp
+++ b/TAO/TAO_IDL/util/utl_list.cpp
@@ -78,7 +78,7 @@ UTL_List::UTL_List (UTL_List *c)
{
}
-UTL_List::~UTL_List (void)
+UTL_List::~UTL_List ()
{
}
@@ -86,7 +86,7 @@ UTL_List::~UTL_List (void)
ACE_CDR::Long
UTL_List::list_length (ACE_CDR::Long n)
{
- if (this->pd_cdr_data == 0)
+ if (this->pd_cdr_data == nullptr)
{
return n;
}
@@ -100,7 +100,7 @@ UTL_List::list_length (ACE_CDR::Long n)
void
UTL_List::nconc (UTL_List *l)
{
- if (this->pd_cdr_data == 0)
+ if (this->pd_cdr_data == nullptr)
{
this->pd_cdr_data = l;
}
@@ -112,21 +112,21 @@ UTL_List::nconc (UTL_List *l)
// Override this operation to copy lists of other types.
UTL_List *
-UTL_List::copy (void)
+UTL_List::copy ()
{
- UTL_List *retval = 0;
+ UTL_List *retval = nullptr;
- if (this->pd_cdr_data == 0)
+ if (this->pd_cdr_data == nullptr)
{
ACE_NEW_RETURN (retval,
- UTL_List (0),
- 0);
+ UTL_List (nullptr),
+ nullptr);
}
else
{
ACE_NEW_RETURN (retval,
UTL_List (this->pd_cdr_data->copy ()),
- 0);
+ nullptr);
}
return retval;
@@ -134,7 +134,7 @@ UTL_List::copy (void)
// Get next list.
UTL_List *
-UTL_List::tail (void)
+UTL_List::tail ()
{
return pd_cdr_data;
}
@@ -150,19 +150,19 @@ UTL_List::set_tail (UTL_List *l)
// Compute list length.
ACE_CDR::Long
-UTL_List::length (void)
+UTL_List::length ()
{
return list_length (1);
}
void
-UTL_List::destroy (void)
+UTL_List::destroy ()
{
- if (this->pd_cdr_data != 0)
+ if (this->pd_cdr_data != nullptr)
{
this->pd_cdr_data->destroy ();
delete this->pd_cdr_data;
- this->pd_cdr_data = 0;
+ this->pd_cdr_data = nullptr;
}
}
@@ -175,16 +175,16 @@ UTL_ListActiveIterator::UTL_ListActiveIterator (UTL_List *s)
// Is iterator done?
bool
-UTL_ListActiveIterator::is_done (void)
+UTL_ListActiveIterator::is_done ()
{
- return (this->source == 0) ? true : false;
+ return (this->source == nullptr) ? true : false;
}
// Advance to next item.
void
-UTL_ListActiveIterator::next (void)
+UTL_ListActiveIterator::next ()
{
- if (this->source != 0)
+ if (this->source != nullptr)
{
this->source = this->source->tail ();
}
diff --git a/TAO/TAO_IDL/util/utl_namelist.cpp b/TAO/TAO_IDL/util/utl_namelist.cpp
index b41b655bbc8..1b3413a21a4 100644
--- a/TAO/TAO_IDL/util/utl_namelist.cpp
+++ b/TAO/TAO_IDL/util/utl_namelist.cpp
@@ -82,13 +82,13 @@ UTL_NameList::UTL_NameList (UTL_ScopedName *s,
// Get list item.
UTL_ScopedName *
-UTL_NameList::head (void)
+UTL_NameList::head ()
{
return this->pd_car_data;
}
bool
-UTL_NameList::truncatable (void) const
+UTL_NameList::truncatable () const
{
return this->pd_truncatable;
}
@@ -100,11 +100,11 @@ UTL_NameList::truncatable (bool val)
}
void
-UTL_NameList::destroy (void)
+UTL_NameList::destroy ()
{
this->pd_car_data->destroy ();
delete this->pd_car_data;
- this->pd_car_data = 0;
+ this->pd_car_data = nullptr;
this->UTL_List::destroy ();
}
@@ -116,11 +116,11 @@ UTL_NamelistActiveIterator::UTL_NamelistActiveIterator (UTL_NameList *s)
// Get current item.
UTL_ScopedName *
-UTL_NamelistActiveIterator::item (void)
+UTL_NamelistActiveIterator::item ()
{
- if (source == 0)
+ if (source == nullptr)
{
- return 0;
+ return nullptr;
}
return ((UTL_NameList *) source)->head ();
diff --git a/TAO/TAO_IDL/util/utl_scope.cpp b/TAO/TAO_IDL/util/utl_scope.cpp
index 347182d76f6..1ed63df688b 100644
--- a/TAO/TAO_IDL/util/utl_scope.cpp
+++ b/TAO/TAO_IDL/util/utl_scope.cpp
@@ -120,46 +120,46 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
// Constructors.
-UTL_Scope::UTL_Scope (void)
+UTL_Scope::UTL_Scope ()
: pd_scope_node_type (AST_Decl::NT_module),
- pd_decls (0),
+ pd_decls (nullptr),
pd_decls_allocated (0),
pd_decls_used (0),
- pd_local_types (0),
+ pd_local_types (nullptr),
pd_locals_allocated (0),
pd_locals_used (0),
- pd_referenced (0),
+ pd_referenced (nullptr),
pd_referenced_allocated (0),
pd_referenced_used (0),
- pd_name_referenced (0),
+ pd_name_referenced (nullptr),
pd_name_referenced_allocated (0),
pd_name_referenced_used (0),
- has_prefix_ (0),
+ has_prefix_ (false),
which_pseudo_ (PSEUDO_ABSTRACTBASE)
{
}
UTL_Scope::UTL_Scope (AST_Decl::NodeType nt)
: pd_scope_node_type (nt),
- pd_decls (0),
+ pd_decls (nullptr),
pd_decls_allocated (0),
pd_decls_used (0),
- pd_local_types (0),
+ pd_local_types (nullptr),
pd_locals_allocated (0),
pd_locals_used (0),
- pd_referenced (0),
+ pd_referenced (nullptr),
pd_referenced_allocated (0),
pd_referenced_used (0),
- pd_name_referenced (0),
+ pd_name_referenced (nullptr),
pd_name_referenced_allocated (0),
pd_name_referenced_used (0),
- has_prefix_ (0),
+ has_prefix_ (false),
which_pseudo_ (PSEUDO_ABSTRACTBASE)
{
}
// Destructor.
-UTL_Scope::~UTL_Scope (void)
+UTL_Scope::~UTL_Scope ()
{
for (UTL_ScopeActiveIterator iter (this, IK_both);
!iter.is_done ();
@@ -185,7 +185,7 @@ UTL_Scope::~UTL_Scope (void)
}
void
-UTL_Scope::destroy (void)
+UTL_Scope::destroy ()
{
for (UTL_ScopeActiveIterator iter (this, IK_both);
!iter.is_done ();
@@ -197,17 +197,17 @@ UTL_Scope::destroy (void)
}
delete [] this->pd_decls;
- this->pd_decls = 0;
+ this->pd_decls = nullptr;
this->pd_decls_allocated = 0;
this->pd_decls_used = 0;
delete [] this->pd_local_types;
- this->pd_local_types = 0;
+ this->pd_local_types = nullptr;
this->pd_locals_allocated = 0;
this->pd_locals_used = 0;
delete [] this->pd_referenced;
- this->pd_referenced = 0;
+ this->pd_referenced = nullptr;
this->pd_referenced_allocated = 0;
this->pd_referenced_used = 0;
@@ -219,7 +219,7 @@ UTL_Scope::destroy (void)
}
delete [] this->pd_name_referenced;
- this->pd_name_referenced = 0;
+ this->pd_name_referenced = nullptr;
this->pd_name_referenced_allocated = 0;
this->pd_name_referenced_used = 0;
}
@@ -234,13 +234,13 @@ UTL_Scope::lookup_for_add (AST_Decl *d)
{
if (!d)
{
- return 0;
+ return nullptr;
}
Identifier *id = d->local_name ();
if (this->idl_keyword_clash (id))
{
- return 0;
+ return nullptr;
}
return this->lookup_by_name_local (id, false);
@@ -337,7 +337,7 @@ UTL_Scope::check_for_predef_seq (AST_Decl *d)
return;
}
- AST_Type *bt = 0;
+ AST_Type *bt = nullptr;
AST_Decl::NodeType nt = d->node_type ();
// We are interested only in members, arguments and typedefs.
@@ -347,11 +347,11 @@ UTL_Scope::check_for_predef_seq (AST_Decl *d)
case AST_Decl::NT_union_branch:
case AST_Decl::NT_attr:
case AST_Decl::NT_argument:
- bt = AST_Field::narrow_from_decl (d)->field_type ();
+ bt = dynamic_cast<AST_Field*> (d)->field_type ();
break;
case AST_Decl::NT_typedef:
- bt = AST_Typedef::narrow_from_decl (d)->base_type ();
+ bt = dynamic_cast<AST_Typedef*> (d)->base_type ();
break;
default:
@@ -364,7 +364,7 @@ UTL_Scope::check_for_predef_seq (AST_Decl *d)
return;
}
- bt = AST_Typedef::narrow_from_decl (bt)->base_type ();
+ bt = dynamic_cast<AST_Typedef*> (bt)->base_type ();
nt = bt->node_type ();
// Must be a sequence with only one level of typedef.
@@ -381,7 +381,7 @@ UTL_Scope::check_for_predef_seq (AST_Decl *d)
}
// We know this narrowing will be successful.
- bt = AST_Sequence::narrow_from_decl (bt)->base_type ();
+ bt = dynamic_cast<AST_Sequence*> (bt)->base_type ();
nt = bt->node_type ();
// First check for string or wstring base type.
@@ -398,7 +398,7 @@ UTL_Scope::check_for_predef_seq (AST_Decl *d)
}
// Now check for predefined base type.
- AST_PredefinedType *pdt = AST_PredefinedType::narrow_from_decl (bt);
+ AST_PredefinedType *pdt = dynamic_cast<AST_PredefinedType*> (bt);
if (!pdt)
{
return;
@@ -480,7 +480,7 @@ UTL_Scope::fe_add_decl (AST_Decl *t)
// Already defined and cannot be redefined? Or already used?
AST_Decl *d = this->lookup_for_add (t);
- if (d != 0)
+ if (d != nullptr)
{
if (!FE_Utils::can_be_redefined (d, t))
{
@@ -488,7 +488,7 @@ UTL_Scope::fe_add_decl (AST_Decl *t)
t,
ScopeAsDecl (this),
d);
- return 0;
+ return nullptr;
}
// For convenience, AST_Template_Module_Inst inherits
@@ -510,23 +510,23 @@ UTL_Scope::fe_add_decl (AST_Decl *t)
t,
ScopeAsDecl (this),
d);
- return 0;
+ return nullptr;
}
if (t->has_ancestor (d))
{
idl_global->err ()->redefinition_in_scope (t, d);
- return 0;
+ return nullptr;
}
}
else if (this->inherited_op_attr_clash (t))
{
- return 0;
+ return nullptr;
}
if (this->arg_specific_error (t))
{
- return 0;
+ return nullptr;
}
this->smart_local_add (t);
@@ -562,13 +562,13 @@ UTL_Scope::fe_add_ref_decl (AST_Field *t)
// Catches struct/union/exception which all maintain a queue
// for fields as distinct from decls and enum values.
- AST_Structure *s = AST_Structure::narrow_from_scope (this);
+ AST_Structure *s = dynamic_cast<AST_Structure*> (this);
if (s)
{
s->fields ().enqueue_tail (t);
}
- return AST_Field::narrow_from_decl (d);
+ return dynamic_cast<AST_Field*> (d);
}
AST_Structure *
@@ -584,7 +584,7 @@ UTL_Scope::fe_add_full_struct_type (AST_Structure *t)
t,
ScopeAsDecl (this),
predef);
- return 0;
+ return nullptr;
}
if (referenced (predef, t->local_name ()) && !t->is_defined ())
@@ -593,7 +593,7 @@ UTL_Scope::fe_add_full_struct_type (AST_Structure *t)
t,
ScopeAsDecl (this),
predef);
- return 0;
+ return nullptr;
}
}
@@ -634,7 +634,7 @@ UTL_Scope::fe_add_fwd_struct_type (AST_StructureFwd *t)
// value, but the result is what we want.
if (d->node_type () == AST_Decl::NT_struct)
{
- t->set_full_definition (AST_Structure::narrow_from_decl (d));
+ t->set_full_definition (dynamic_cast<AST_Structure*> (d));
}
else if (!FE_Utils::can_be_redefined (d, t))
{
@@ -642,7 +642,7 @@ UTL_Scope::fe_add_fwd_struct_type (AST_StructureFwd *t)
t,
ScopeAsDecl (this),
d);
- return 0;
+ return nullptr;
}
else if (this->referenced (d, t->local_name ()))
{
@@ -650,7 +650,7 @@ UTL_Scope::fe_add_fwd_struct_type (AST_StructureFwd *t)
t,
ScopeAsDecl (this),
d);
- return 0;
+ return nullptr;
}
}
@@ -671,271 +671,271 @@ UTL_Scope::fe_add_fwd_struct_type (AST_StructureFwd *t)
AST_PredefinedType *
UTL_Scope::fe_add_predefined_type (AST_PredefinedType *)
{
- return 0;
+ return nullptr;
}
AST_Module *
UTL_Scope::fe_add_module (AST_Module *)
{
- return 0;
+ return nullptr;
}
AST_Template_Module_Inst *
UTL_Scope::fe_add_template_module_inst (AST_Template_Module_Inst *)
{
- return 0;
+ return nullptr;
}
AST_Template_Module_Ref *
UTL_Scope::fe_add_template_module_ref (AST_Template_Module_Ref *)
{
- return 0;
+ return nullptr;
}
AST_Interface *
UTL_Scope::fe_add_interface (AST_Interface *)
{
- return 0;
+ return nullptr;
}
AST_InterfaceFwd *
UTL_Scope::fe_add_interface_fwd (AST_InterfaceFwd *)
{
- return 0;
+ return nullptr;
}
AST_ValueBox *
UTL_Scope::fe_add_valuebox (AST_ValueBox *)
{
- return 0;
+ return nullptr;
}
AST_ValueType *
UTL_Scope::fe_add_valuetype (AST_ValueType *)
{
- return 0;
+ return nullptr;
}
AST_ValueTypeFwd *
UTL_Scope::fe_add_valuetype_fwd (AST_ValueTypeFwd *)
{
- return 0;
+ return nullptr;
}
AST_EventType *
UTL_Scope::fe_add_eventtype (AST_EventType *)
{
- return 0;
+ return nullptr;
}
AST_EventTypeFwd *
UTL_Scope::fe_add_eventtype_fwd (AST_EventTypeFwd *)
{
- return 0;
+ return nullptr;
}
AST_Component *
UTL_Scope::fe_add_component (AST_Component *)
{
- return 0;
+ return nullptr;
}
AST_ComponentFwd *
UTL_Scope::fe_add_component_fwd (AST_ComponentFwd *)
{
- return 0;
+ return nullptr;
}
AST_Home *
UTL_Scope::fe_add_home (AST_Home *)
{
- return 0;
+ return nullptr;
}
AST_Exception *
UTL_Scope::fe_add_exception (AST_Exception *)
{
- return 0;
+ return nullptr;
}
AST_Constant *
UTL_Scope::fe_add_constant (AST_Constant *)
{
- return 0;
+ return nullptr;
}
UTL_StrList *
UTL_Scope::fe_add_context (UTL_StrList *)
{
- return 0;
+ return nullptr;
}
UTL_NameList *
UTL_Scope::fe_add_exceptions (UTL_NameList *)
{
- return 0;
+ return nullptr;
}
AST_Attribute *
UTL_Scope::fe_add_attribute (AST_Attribute *)
{
- return 0;
+ return nullptr;
}
AST_Operation *
UTL_Scope::fe_add_operation (AST_Operation *)
{
- return 0;
+ return nullptr;
}
AST_Argument *
UTL_Scope::fe_add_argument (AST_Argument *)
{
- return 0;
+ return nullptr;
}
AST_Union *
UTL_Scope::fe_add_union (AST_Union *)
{
- return 0;
+ return nullptr;
}
AST_UnionFwd *
UTL_Scope::fe_add_union_fwd (AST_UnionFwd *)
{
- return 0;
+ return nullptr;
}
AST_UnionBranch *
UTL_Scope::fe_add_union_branch (AST_UnionBranch *)
{
- return 0;
+ return nullptr;
}
AST_Structure *
UTL_Scope::fe_add_structure (AST_Structure *)
{
- return 0;
+ return nullptr;
}
AST_StructureFwd *
UTL_Scope::fe_add_structure_fwd (AST_StructureFwd *)
{
- return 0;
+ return nullptr;
}
AST_Field *
UTL_Scope::fe_add_field (AST_Field *)
{
- return 0;
+ return nullptr;
}
AST_Enum *
UTL_Scope::fe_add_enum (AST_Enum *)
{
- return 0;
+ return nullptr;
}
AST_EnumVal *
UTL_Scope::fe_add_enum_val (AST_EnumVal *)
{
- return 0;
+ return nullptr;
}
AST_Typedef *
UTL_Scope::fe_add_typedef (AST_Typedef *)
{
- return 0;
+ return nullptr;
}
AST_Sequence *
UTL_Scope::fe_add_sequence (AST_Sequence *)
{
- return 0;
+ return nullptr;
}
AST_String *
UTL_Scope::fe_add_string (AST_String *)
{
- return 0;
+ return nullptr;
}
AST_Array *
UTL_Scope::fe_add_array (AST_Array *)
{
- return 0;
+ return nullptr;
}
AST_Native *
UTL_Scope::fe_add_native (AST_Native *)
{
- return 0;
+ return nullptr;
}
AST_Factory *
UTL_Scope::fe_add_factory (AST_Factory *)
{
- return 0;
+ return nullptr;
}
AST_Finder *
UTL_Scope::fe_add_finder (AST_Finder *)
{
- return 0;
+ return nullptr;
}
AST_PortType *
UTL_Scope::fe_add_porttype (AST_PortType *)
{
- return 0;
+ return nullptr;
}
AST_Provides *
UTL_Scope::fe_add_provides (AST_Provides *)
{
- return 0;
+ return nullptr;
}
AST_Uses *
UTL_Scope::fe_add_uses (AST_Uses *)
{
- return 0;
+ return nullptr;
}
AST_Publishes *
UTL_Scope::fe_add_publishes (AST_Publishes *)
{
- return 0;
+ return nullptr;
}
AST_Emits *
UTL_Scope::fe_add_emits (AST_Emits *)
{
- return 0;
+ return nullptr;
}
AST_Consumes *
UTL_Scope::fe_add_consumes (AST_Consumes *)
{
- return 0;
+ return nullptr;
}
AST_Extended_Port *
UTL_Scope::fe_add_extended_port (AST_Extended_Port *)
{
- return 0;
+ return nullptr;
}
AST_Mirror_Port *
UTL_Scope::fe_add_mirror_port (AST_Mirror_Port *)
{
- return 0;
+ return nullptr;
}
AST_Connector *
UTL_Scope::fe_add_connector (AST_Connector *)
{
- return 0;
+ return nullptr;
}
// Private lookup mechanism.
@@ -946,10 +946,10 @@ UTL_Scope::lookup_pseudo (Identifier *e)
{
if (e->escaped ())
{
- return 0;
+ return nullptr;
}
- bool *seen = 0;
+ bool *seen = nullptr;
char *name_string = e->get_string ();
UTL_Scope *start_scope = idl_global->corba_module ();
@@ -977,7 +977,7 @@ UTL_Scope::lookup_pseudo (Identifier *e)
}
else
{
- return 0;
+ return nullptr;
}
for (UTL_ScopeActiveIterator i (start_scope, IK_decls);
@@ -1003,7 +1003,7 @@ UTL_Scope::lookup_pseudo (Identifier *e)
{
AST_Decl *d = this->look_in_prev_mods_local (e);
- if (d != 0)
+ if (d != nullptr)
{
// Generation of #includes for Typecode.h
// checks this bit, so we set it for TCKind as well.
@@ -1012,14 +1012,14 @@ UTL_Scope::lookup_pseudo (Identifier *e)
}
}
- return 0;
+ return nullptr;
}
AST_Decl *
UTL_Scope::look_in_prev_mods_local (Identifier *,
bool /* ignore_fwd */)
{
- return 0;
+ return nullptr;
}
AST_Decl *
@@ -1027,7 +1027,7 @@ UTL_Scope::special_lookup (UTL_ScopedName *,
bool /* full_def_only */,
AST_Decl *&/*final_parent_decl*/)
{
- return 0;
+ return nullptr;
}
// Lookup the node for a primitive (built-in) type.
@@ -1043,7 +1043,7 @@ UTL_Scope::lookup_primitive_type (AST_Expression::ExprType et)
/// for the ExprType.
if (pdt == AST_PredefinedType::PT_pseudo)
{
- return 0;
+ return nullptr;
}
/// The only 'predefined type' not in the CORBA module.
@@ -1061,7 +1061,7 @@ UTL_Scope::lookup_primitive_type (AST_Expression::ExprType et)
if (as_decl->node_type () == AST_Decl::NT_pre_defined)
{
AST_PredefinedType *t =
- AST_PredefinedType::narrow_from_decl (as_decl);
+ dynamic_cast<AST_PredefinedType*> (as_decl);
if (t->pt () == pdt)
{
@@ -1085,7 +1085,7 @@ UTL_Scope::lookup_primitive_type (AST_Expression::ExprType et)
}
}
- return 0;
+ return nullptr;
}
// Look through inherited list. Overridden in AST_Interface.
@@ -1093,7 +1093,7 @@ AST_Decl *
UTL_Scope::look_in_inherited (UTL_ScopedName *,
bool )
{
- return 0;
+ return nullptr;
}
// Look through supported interface list. Overridden where necessary.
@@ -1101,7 +1101,7 @@ AST_Decl *
UTL_Scope::look_in_supported (UTL_ScopedName *,
bool)
{
- return 0;
+ return nullptr;
}
AST_Decl *
@@ -1120,7 +1120,7 @@ UTL_Scope::lookup_by_name_local (Identifier *e,
if (this->idl_keyword_clash (e))
{
- return 0;
+ return nullptr;
}
bool in_corba = (ACE_OS::strcmp (e->get_string (), "CORBA") == 0);
@@ -1133,11 +1133,11 @@ UTL_Scope::lookup_by_name_local (Identifier *e,
{
d = i.item ()->adjust_found (true, full_def_only);
- if (d != 0)
+ if (d != nullptr)
{
Identifier *item_name = d->local_name ();
- if (item_name != 0
+ if (item_name != nullptr
// Right now we populate the global scope with all the CORBA basic
// types, so something like 'ULong' in an IDL file will find a
// match, unless we skip over these items. This is a workaround until
@@ -1153,7 +1153,7 @@ UTL_Scope::lookup_by_name_local (Identifier *e,
// Ok the name wasn't found in the current scope, if this
// scope is a module, we can check it's previous openings!
- AST_Module *m = AST_Module::narrow_from_scope (this);
+ AST_Module *m = dynamic_cast<AST_Module*> (this);
if (m)
{
d = m->look_in_prev_mods_local (e);
@@ -1166,7 +1166,7 @@ UTL_Scope::lookup_by_name_local (Identifier *e,
{
// Or if this scope is an interface, we can check if
// it was inherited!
- AST_Interface *i = AST_Interface::narrow_from_scope (this);
+ AST_Interface *i = dynamic_cast<AST_Interface*> (this);
if (i)
{
d = i->look_in_inherited_local (e);
@@ -1192,7 +1192,7 @@ UTL_Scope::lookup_by_name_local (Identifier *e,
}
}
- return 0;
+ return nullptr;
}
AST_Decl *
@@ -1203,7 +1203,7 @@ UTL_Scope::lookup_by_name (UTL_ScopedName *e,
// Empty name? Exit immediately.
if (!e)
{
- return 0;
+ return nullptr;
}
UTL_Scope *work = this;
@@ -1219,7 +1219,7 @@ UTL_Scope::lookup_by_name (UTL_ScopedName *e,
UTL_List* tail = e->tail ();
if (!tail)
{
- return 0;
+ return nullptr;
}
// Remove the preceeding "::" or "" from the scopename
e = static_cast<UTL_ScopedName *> (tail);
@@ -1229,21 +1229,21 @@ UTL_Scope::lookup_by_name (UTL_ScopedName *e,
work = idl_global->root ();
}
- AST_Decl *first_found_final_parent_decl = 0;
+ AST_Decl *first_found_final_parent_decl = nullptr;
const bool searching_module_path = (e->length () != 1);
AST_Decl *d = searching_module_path ?
work->lookup_by_name_r (e, full_def_only, first_found_final_parent_decl) :
work->lookup_by_name_r (e, full_def_only);
- if (d == 0)
+ if (d == nullptr)
{
// If all else fails, look though each outer scope.
for (UTL_Scope *outer = ScopeAsDecl (work)->defined_in ();
outer;
outer = ScopeAsDecl (outer)->defined_in ())
{
- AST_Decl *next_found_final_parent_decl= 0;
+ AST_Decl *next_found_final_parent_decl= nullptr;
d = outer->lookup_by_name_r (e, full_def_only, next_found_final_parent_decl);
- if (d != 0)
+ if (d != nullptr)
{
work = outer;
if (first_found_final_parent_decl)
@@ -1252,7 +1252,7 @@ UTL_Scope::lookup_by_name (UTL_ScopedName *e,
// find this one because the "first_found_final_parent_decl" was found and
// this one just found is hidden by it.
idl_global->err ()->scope_masking_error (d, first_found_final_parent_decl);
- d = 0; // Ignore this one; continue searching to report other ambiguous matches.
+ d = nullptr; // Ignore this one; continue searching to report other ambiguous matches.
}
else
{
@@ -1279,7 +1279,7 @@ AST_Decl *
UTL_Scope::lookup_by_name_r (UTL_ScopedName *e,
bool full_def_only)
{
- AST_Decl *ignored= 0;
+ AST_Decl *ignored= nullptr;
return UTL_Scope::lookup_by_name_r (e, full_def_only, ignored);
}
@@ -1290,7 +1290,7 @@ UTL_Scope::lookup_by_name_r (UTL_ScopedName *e,
{
bool work_another_level;
UTL_Scope *work = this;
- final_parent_decl= (e->length () == 1) ? ScopeAsDecl (work) : 0;
+ final_parent_decl= (e->length () == 1) ? ScopeAsDecl (work) : nullptr;
do
{
@@ -1306,7 +1306,7 @@ UTL_Scope::lookup_by_name_r (UTL_ScopedName *e,
if (work->idl_keyword_clash (e->head ()))
{
- return 0;
+ return nullptr;
}
// Before proceeding to normal lookup, check if the name
@@ -1361,7 +1361,7 @@ UTL_Scope::lookup_by_name_r (UTL_ScopedName *e,
work = next;
work_another_level = true;
e = static_cast<UTL_ScopedName *> (e->tail ());
- final_parent_decl= (e->length () == 1) ? d : 0;
+ final_parent_decl= (e->length () == 1) ? d : nullptr;
break;
}
@@ -1413,7 +1413,7 @@ UTL_Scope::add_to_referenced (AST_Decl *e,
if ( nt == AST_Decl::NT_interface
|| nt == AST_Decl::NT_component)
{
- AST_Interface *itf = AST_Interface::narrow_from_decl (e);
+ AST_Interface *itf = dynamic_cast<AST_Interface*> (e);
if (itf
&& itf->defined_in () == this
&& !itf->is_defined ())
@@ -1437,7 +1437,7 @@ UTL_Scope::add_to_referenced (AST_Decl *e,
long oreferenced_allocated = this->pd_referenced_allocated;
this->pd_referenced_allocated += INCREMENT;
- AST_Decl **tmp = 0;
+ AST_Decl **tmp = nullptr;
ACE_NEW (tmp, AST_Decl *[this->pd_referenced_allocated]);
for (long i = 0; i < oreferenced_allocated; ++i)
@@ -1495,7 +1495,7 @@ UTL_Scope::add_to_name_referenced (Identifier *id)
long name_referenced_allocated = this->pd_name_referenced_allocated;
this->pd_name_referenced_allocated += INCREMENT;
- Identifier **name_tmp = 0;
+ Identifier **name_tmp = nullptr;
ACE_NEW (name_tmp, Identifier *[this->pd_name_referenced_allocated]);
for (long i = 0; i < name_referenced_allocated; ++i)
@@ -1694,7 +1694,7 @@ UTL_Scope::add_to_local_types (AST_Decl *e)
long olocals_allocated = this->pd_locals_allocated;
this->pd_locals_allocated += INCREMENT;
- AST_Decl **tmp = 0;
+ AST_Decl **tmp = nullptr;
ACE_NEW (tmp, AST_Decl *[this->pd_locals_allocated]);
for (long i = 0; i < olocals_allocated; ++i)
{
@@ -1795,7 +1795,7 @@ UTL_Scope::referenced (AST_Decl *e,
}
bool
-UTL_Scope::has_prefix (void)
+UTL_Scope::has_prefix ()
{
return this->has_prefix_;
}
@@ -1814,7 +1814,7 @@ UTL_Scope::dump (ACE_OSTREAM_TYPE &o)
{
if (!idl_global->indent ())
{
- UTL_Indenter *idnt = 0;
+ UTL_Indenter *idnt = nullptr;
ACE_NEW (idnt, UTL_Indenter);
idl_global->set_indent (idnt);
}
@@ -1871,7 +1871,7 @@ UTL_Scope::ast_accept (ast_visitor *visitor)
// How many entries are defined?
unsigned long
-UTL_Scope::nmembers (void)
+UTL_Scope::nmembers ()
{
return this->pd_decls_used;
}
@@ -1884,25 +1884,25 @@ UTL_Scope::match_param (UTL_ScopedName *e)
FE_Utils::T_PARAMLIST_INFO const *params =
idl_global->current_params ();
- if (params == 0)
+ if (params == nullptr)
{
- return 0;
+ return nullptr;
}
const char *name = e->first_component ()->get_string ();
- FE_Utils::T_Param_Info *param = 0;
+ FE_Utils::T_Param_Info *param = nullptr;
unsigned long index = 0;
UTL_StrList *alias_params =
const_cast<UTL_StrList *> (idl_global->for_new_holder ());
- if (alias_params == 0)
+ if (alias_params == nullptr)
{
alias_params =
const_cast<UTL_StrList *> (idl_global->alias_params ());
}
- UTL_String *alias_param = 0;
+ UTL_String *alias_param = nullptr;
for (FE_Utils::T_PARAMLIST_INFO::CONST_ITERATOR i (*params);
i.next (param);
@@ -1913,7 +1913,7 @@ UTL_Scope::match_param (UTL_ScopedName *e)
/// If we are parsing this template module as a
/// reference, the param holder we create must have
/// the name of the corresponding aliased param.
- if (alias_params != 0)
+ if (alias_params != nullptr)
{
unsigned long slot = 0;
@@ -1928,7 +1928,7 @@ UTL_Scope::match_param (UTL_ScopedName *e)
}
}
- if (alias_param == 0)
+ if (alias_param == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("UTL_Scope::match_param - ")
@@ -1937,7 +1937,7 @@ UTL_Scope::match_param (UTL_ScopedName *e)
}
Identifier id (alias_param->get_string ());
- UTL_ScopedName sn (&id, 0);
+ UTL_ScopedName sn (&id, nullptr);
return
idl_global->gen ()->create_param_holder (
@@ -1954,13 +1954,13 @@ UTL_Scope::match_param (UTL_ScopedName *e)
}
}
- return 0;
+ return nullptr;
}
bool
UTL_Scope::inherited_op_attr_clash (AST_Decl *t)
{
- AST_Interface *i = AST_Interface::narrow_from_scope (this);
+ AST_Interface *i = dynamic_cast<AST_Interface*> (this);
if (!i)
{
return false;
@@ -1987,13 +1987,13 @@ UTL_Scope::inherited_op_attr_clash (AST_Decl *t)
bool
UTL_Scope::arg_specific_error (AST_Decl *t)
{
- AST_Operation *op = AST_Operation::narrow_from_scope (this);
+ AST_Operation *op = dynamic_cast<AST_Operation*> (this);
if (!op)
{
return false;
}
- AST_Argument *arg = AST_Argument::narrow_from_decl (t);
+ AST_Argument *arg = dynamic_cast<AST_Argument*> (t);
AST_Argument::Direction d = arg->direction ();
// Cannot add OUT or INOUT argument to oneway operation.
@@ -2023,10 +2023,10 @@ void
UTL_Scope::smart_local_add (AST_Decl *t)
{
// Catches struct, union * exception
- AST_Structure *s = AST_Structure::narrow_from_scope (this);
+ AST_Structure *s = dynamic_cast<AST_Structure*> (this);
// Catches AST_Field and AST_UnionBranch.
- AST_Field *f = AST_Field::narrow_from_decl (t);
+ AST_Field *f = dynamic_cast<AST_Field*> (t);
// Decls inside a struct/union/exception are also referenced by
// fields, and so must be handled differently.
@@ -2042,8 +2042,8 @@ UTL_Scope::smart_local_add (AST_Decl *t)
// If we have an enum discriminator, add the label names to
// the name_referenced list before we add the union branch,
// so a branch name clash with a label name will be caught.
- AST_Union *u = AST_Union::narrow_from_scope (this);
- AST_UnionBranch *ub = AST_UnionBranch::narrow_from_decl (t);
+ AST_Union *u = dynamic_cast<AST_Union*> (this);
+ AST_UnionBranch *ub = dynamic_cast<AST_UnionBranch*> (t);
if (u && ub)
{
if (u->udisc_type () == AST_Expression::EV_enum)
@@ -2066,7 +2066,7 @@ UTL_Scope::is_global_name (Identifier *i)
return false;
}
- ACE_CString cmp (i->get_string (), 0, false);
+ ACE_CString cmp (i->get_string (), nullptr, false);
return (cmp == "" || cmp == "::");
}
@@ -2078,10 +2078,10 @@ UTL_Scope::iter_lookup_by_name_local (AST_Decl *d,
// Remove all the layers of typedefs.
while (d && d->node_type () == AST_Decl::NT_typedef)
{
- AST_Typedef *td = AST_Typedef::narrow_from_decl (d);
+ AST_Typedef *td = dynamic_cast<AST_Typedef*> (d);
if (!td)
{
- return 0;
+ return nullptr;
}
d = td->base_type ();
@@ -2089,17 +2089,17 @@ UTL_Scope::iter_lookup_by_name_local (AST_Decl *d,
if (!d)
{
- return 0;
+ return nullptr;
}
// Try to convert the AST_Decl to a UTL_Scope.
UTL_Scope *sc = DeclAsScope (d);
if (!sc)
{
- return 0;
+ return nullptr;
}
- AST_Decl *result = 0;
+ AST_Decl *result = nullptr;
if (0 < sc->nmembers ())
{
// Look up the first component of the scoped name.
@@ -2108,7 +2108,7 @@ UTL_Scope::iter_lookup_by_name_local (AST_Decl *d,
}
else
{
- AST_Interface *i = AST_Interface::narrow_from_decl (d);
+ AST_Interface *i = dynamic_cast<AST_Interface*> (d);
result = i ? i->look_in_inherited_local (e->head ())
: sc->look_in_prev_mods_local (e->head (), true);
}
@@ -2132,8 +2132,6 @@ UTL_Scope::iter_lookup_by_name_local (AST_Decl *d,
return result;
}
-IMPL_NARROW_FROM_SCOPE(UTL_Scope)
-
// UTL_SCOPE_ACTIVE_ITERATOR
// Constructor.
@@ -2152,18 +2150,18 @@ UTL_ScopeActiveIterator::UTL_ScopeActiveIterator (
// Advance to next item.
void
-UTL_ScopeActiveIterator::next (void)
+UTL_ScopeActiveIterator::next ()
{
this->il++;
}
// Get current item.
AST_Decl *
-UTL_ScopeActiveIterator::item (void)
+UTL_ScopeActiveIterator::item ()
{
if (this->is_done ())
{
- return 0;
+ return nullptr;
}
if (stage == UTL_Scope::IK_decls)
@@ -2176,12 +2174,12 @@ UTL_ScopeActiveIterator::item (void)
return this->iter_source->pd_local_types[il];
}
- return 0;
+ return nullptr;
}
// Is this iteration done?
bool
-UTL_ScopeActiveIterator::is_done (void)
+UTL_ScopeActiveIterator::is_done ()
{
long limit =
(stage == UTL_Scope::IK_decls)
@@ -2217,14 +2215,14 @@ UTL_ScopeActiveIterator::is_done (void)
// What kind of iterator is this?
UTL_Scope::ScopeIterationKind
-UTL_ScopeActiveIterator::iteration_kind (void)
+UTL_ScopeActiveIterator::iteration_kind ()
{
return this->ik;
}
// And where are we in the iteration?
UTL_Scope::ScopeIterationKind
-UTL_ScopeActiveIterator::iteration_stage (void)
+UTL_ScopeActiveIterator::iteration_stage ()
{
return this->stage;
}
@@ -2232,19 +2230,19 @@ UTL_ScopeActiveIterator::iteration_stage (void)
AST_Annotation_Decl *
UTL_Scope::fe_add_annotation_decl (AST_Annotation_Decl * /*annotation_decl*/)
{
- return 0;
+ return nullptr;
}
AST_Annotation_Member *
UTL_Scope::fe_add_annotation_member (AST_Annotation_Member * /*annotation_member*/)
{
- return 0;
+ return nullptr;
}
AST_Decl *
UTL_Scope::lookup_by_name (const char *name)
{
- AST_Decl *node = 0;
+ AST_Decl *node = nullptr;
UTL_ScopedName *scoped_name = FE_Utils::string_to_scoped_name (name);
node = lookup_by_name (scoped_name);
scoped_name->destroy ();
diff --git a/TAO/TAO_IDL/util/utl_stack.cpp b/TAO/TAO_IDL/util/utl_stack.cpp
index c2faa7df607..dd93042e7fa 100644
--- a/TAO/TAO_IDL/util/utl_stack.cpp
+++ b/TAO/TAO_IDL/util/utl_stack.cpp
@@ -70,16 +70,16 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
const size_t UTL_ScopeStack::increments = 64;
-UTL_ScopeStack::UTL_ScopeStack (void)
+UTL_ScopeStack::UTL_ScopeStack ()
: pd_stack_data_nalloced (increments),
pd_stack_top (0)
{
ACE_NEW (this->pd_stack_data, UTL_Scope *[increments]);
}
-UTL_ScopeStack::~UTL_ScopeStack (void)
+UTL_ScopeStack::~UTL_ScopeStack ()
{
- if (this->pd_stack_data != 0)
+ if (this->pd_stack_data != nullptr)
{
delete [] this->pd_stack_data;
}
@@ -89,7 +89,7 @@ UTL_ScopeStack::~UTL_ScopeStack (void)
UTL_ScopeStack *
UTL_ScopeStack::push (UTL_Scope *el)
{
- UTL_Scope **tmp = 0;
+ UTL_Scope **tmp = nullptr;
long ostack_data_nalloced;
long i;
@@ -101,7 +101,7 @@ UTL_ScopeStack::push (UTL_Scope *el)
ACE_NEW_RETURN (tmp,
UTL_Scope *[this->pd_stack_data_nalloced],
- 0);
+ nullptr);
for (i = 0; i < ostack_data_nalloced; ++i)
{
@@ -120,7 +120,7 @@ UTL_ScopeStack::push (UTL_Scope *el)
// Pop an element from the stack.
void
-UTL_ScopeStack::pop (void)
+UTL_ScopeStack::pop ()
{
if (this->pd_stack_top <= 0)
{
@@ -131,9 +131,9 @@ UTL_ScopeStack::pop (void)
// If our top scope has a #pragma prefix associated with it,
// it goes away with the scope.
- if (current != 0 && current->has_prefix ())
+ if (current != nullptr && current->has_prefix ())
{
- char *trash = 0;
+ char *trash = nullptr;
idl_global->pragma_prefixes ().pop (trash);
delete [] trash;
}
@@ -143,11 +143,11 @@ UTL_ScopeStack::pop (void)
// Return top element on stack.
UTL_Scope *
-UTL_ScopeStack::top (void)
+UTL_ScopeStack::top ()
{
if (this->pd_stack_top <= 0)
{
- return 0;
+ return nullptr;
}
return this->pd_stack_data[pd_stack_top - 1];
@@ -155,11 +155,11 @@ UTL_ScopeStack::top (void)
// Return bottom element on stack.
UTL_Scope *
-UTL_ScopeStack::bottom (void)
+UTL_ScopeStack::bottom ()
{
if (this->pd_stack_top == 0)
{
- return 0;
+ return nullptr;
}
return this->pd_stack_data[0];
@@ -167,27 +167,27 @@ UTL_ScopeStack::bottom (void)
// Clear entire stack.
void
-UTL_ScopeStack::clear (void)
+UTL_ScopeStack::clear ()
{
this->pd_stack_top = 0;
}
// How deep is the stack?
unsigned long
-UTL_ScopeStack::depth (void)
+UTL_ScopeStack::depth ()
{
return this->pd_stack_top;
}
// Return (top - 1) element on stack.
UTL_Scope *
-UTL_ScopeStack::next_to_top (void)
+UTL_ScopeStack::next_to_top ()
{
UTL_Scope *tmp, *retval;
if (this->depth () < 2)
{
- return 0;
+ return nullptr;
}
tmp = top (); // Save top
@@ -199,17 +199,17 @@ UTL_ScopeStack::next_to_top (void)
// Return topmost non-NULL element.
UTL_Scope *
-UTL_ScopeStack::top_non_null (void)
+UTL_ScopeStack::top_non_null ()
{
for (long i = this->pd_stack_top - 1; i >= 0; --i)
{
- if (this->pd_stack_data[i] != 0)
+ if (this->pd_stack_data[i] != nullptr)
{
return this->pd_stack_data[i];
}
}
- return 0;
+ return nullptr;
}
AST_Decl *
@@ -225,7 +225,7 @@ UTL_ScopeStack::lookup_by_name (
if (node) return node;
}
}
- return 0;
+ return nullptr;
}
UTL_ScopeStackActiveIterator::UTL_ScopeStackActiveIterator (UTL_ScopeStack &s)
@@ -236,26 +236,26 @@ UTL_ScopeStackActiveIterator::UTL_ScopeStackActiveIterator (UTL_ScopeStack &s)
// Advance to next item
void
-UTL_ScopeStackActiveIterator::next (void)
+UTL_ScopeStackActiveIterator::next ()
{
il--;
}
// Get current item.
UTL_Scope *
-UTL_ScopeStackActiveIterator::item (void)
+UTL_ScopeStackActiveIterator::item ()
{
if (this->il >= 0)
{
return this->source.pd_stack_data[il];
}
- return 0;
+ return nullptr;
}
// Is this iteration done?
bool
-UTL_ScopeStackActiveIterator::is_done (void) const
+UTL_ScopeStackActiveIterator::is_done () const
{
if (this->il >= 0)
{
diff --git a/TAO/TAO_IDL/util/utl_string.cpp b/TAO/TAO_IDL/util/utl_string.cpp
index 3e44e85e94a..d9070dfa65f 100644
--- a/TAO/TAO_IDL/util/utl_string.cpp
+++ b/TAO/TAO_IDL/util/utl_string.cpp
@@ -184,10 +184,10 @@ UTL_String::get_canonical_rep (ACE_CString &cstr)
//////////////////////////////////////////////////////////////////////
-UTL_String::UTL_String (void)
+UTL_String::UTL_String ()
: copy_taken (false),
- p_str (0),
- c_str (0)
+ p_str (nullptr),
+ c_str (nullptr)
{
}
@@ -195,7 +195,7 @@ UTL_String::UTL_String (const char *str, bool take_copy)
: copy_taken (str ? take_copy : false),
p_str (this->copy_taken ? ACE::strnew (str)
: const_cast<char *>(str)),
- c_str (0)
+ c_str (nullptr)
{
}
@@ -203,11 +203,11 @@ UTL_String::UTL_String (UTL_String *s, bool force_copy)
: copy_taken (force_copy ? true : s->copy_taken),
p_str (this->copy_taken ? ACE::strnew (s->p_str)
: const_cast<char *> (s->p_str)),
- c_str (0)
+ c_str (nullptr)
{
}
-UTL_String::~UTL_String (void)
+UTL_String::~UTL_String ()
{
delete [] this->c_str;
if (copy_taken)
@@ -217,16 +217,16 @@ UTL_String::~UTL_String (void)
}
void
-UTL_String::destroy (void)
+UTL_String::destroy ()
{
delete [] this->c_str;
- this->c_str = 0;
+ this->c_str = nullptr;
if (this->copy_taken)
{
ACE::strdelete (this->p_str);
- this->copy_taken = 0;
+ this->copy_taken = false;
}
- this->p_str = 0;
+ this->p_str = nullptr;
}
// Compare two UTL_String *.
@@ -246,7 +246,7 @@ UTL_String::compare_quiet (UTL_String *s)
// Get the canonical representation from a String.
char *
-UTL_String::get_canonical_rep (void)
+UTL_String::get_canonical_rep ()
{
if (!this->c_str && this->p_str)
{
diff --git a/TAO/TAO_IDL/util/utl_strlist.cpp b/TAO/TAO_IDL/util/utl_strlist.cpp
index 1db9b62ab5c..3d835c292bb 100644
--- a/TAO/TAO_IDL/util/utl_strlist.cpp
+++ b/TAO/TAO_IDL/util/utl_strlist.cpp
@@ -86,13 +86,13 @@ UTL_StrList::UTL_StrList (UTL_String *s,
{
}
-UTL_StrList::~UTL_StrList (void)
+UTL_StrList::~UTL_StrList ()
{
}
// Get list item.
UTL_String *
-UTL_StrList::head (void)
+UTL_StrList::head ()
{
return this->pd_car_data;
}
@@ -106,9 +106,9 @@ UTL_StrList::set_head (UTL_String *s)
// Get last item of this list
UTL_String *
-UTL_StrList::last_component (void)
+UTL_StrList::last_component ()
{
- if (this->tail () == 0)
+ if (this->tail () == nullptr)
{
return pd_car_data;
}
@@ -118,39 +118,39 @@ UTL_StrList::last_component (void)
// Copy a list.
UTL_List *
-UTL_StrList::copy (void)
+UTL_StrList::copy ()
{
- UTL_List *retval = 0;
+ UTL_List *retval = nullptr;
- if (this->tail () == 0)
+ if (this->tail () == nullptr)
{
ACE_NEW_RETURN (retval,
UTL_StrList (head (),
- 0),
- 0);
+ nullptr),
+ nullptr);
}
else
{
ACE_NEW_RETURN (retval,
UTL_StrList (head (),
(UTL_StrList *) this->tail ()->copy ()),
- 0);
+ nullptr);
}
return retval;
}
void
-UTL_StrList::destroy (void)
+UTL_StrList::destroy ()
{
- UTL_String *str = 0;
+ UTL_String *str = nullptr;
for (UTL_StrlistActiveIterator i (this); !i.is_done (); i.next ())
{
str = i.item ();
str->destroy ();
delete str;
- str = 0;
+ str = nullptr;
}
}
@@ -158,7 +158,7 @@ UTL_StrList::destroy (void)
void
UTL_StrList::dump (ACE_OSTREAM_TYPE &o)
{
- char *s = 0;
+ char *s = nullptr;
bool first = true;
bool second = false;
@@ -215,11 +215,11 @@ UTL_StrlistActiveIterator::UTL_StrlistActiveIterator (UTL_StrList *s)
// Get current item
UTL_String *
-UTL_StrlistActiveIterator::item (void)
+UTL_StrlistActiveIterator::item ()
{
- if (source == 0)
+ if (source == nullptr)
{
- return 0;
+ return nullptr;
}
return ((UTL_StrList *) source)->head ();
diff --git a/TAO/VERSION.txt b/TAO/VERSION.txt
index 60ad1c28b6a..de53a1d46af 100644
--- a/TAO/VERSION.txt
+++ b/TAO/VERSION.txt
@@ -1,4 +1,4 @@
-This is TAO version 2.5.11, released Mon Aug 17 10:04:17 CEST 2020
+This is TAO version 2.5.12, released Tue Oct 27 12:46:14 CET 2020
If you have any problems with or questions about TAO, please send
e-mail to the TAO mailing list (tao-bugs@list.isis.vanderbilt.edu),
diff --git a/TAO/bin/tao_orb_tests.lst b/TAO/bin/tao_orb_tests.lst
index 5218f2b7e39..67cf0476eec 100644
--- a/TAO/bin/tao_orb_tests.lst
+++ b/TAO/bin/tao_orb_tests.lst
@@ -432,7 +432,6 @@ TAO/tests/Transport_Cache_Manager/run_test.pl
TAO/tests/UNKNOWN_Exception/run_test.pl:
TAO/tests/Native_Exceptions/run_test.pl:
TAO/tests/Servant_To_Reference_Test/run_test.pl: !MINIMUM !CORBA_E_COMPACT !CORBA_E_MICRO !ST
-TAO/tests/Sequence_Iterators/run_test.pl:
TAO/tests/Sequence_Unit_Tests/run_test.pl:
TAO/tests/Typedef_String_Array/run_test.pl:
TAO/tests/GIOP_Fragments/PMB_With_Fragments/run_test.pl: !CORBA_E_MICRO
diff --git a/TAO/docs/TAO-metrics.html b/TAO/docs/TAO-metrics.html
index ff1fab67e83..e02ba134ff5 100644
--- a/TAO/docs/TAO-metrics.html
+++ b/TAO/docs/TAO-metrics.html
@@ -12,7 +12,7 @@ bgcolor="#ffffff">
<HR>
<H3> TAO (ACE ORB) Performance Metrics</H3>
-<A HREf="http://www.dre.vanderbilt.edu/TAO">TAO</A>'s
+<A HREf="https://www.dre.vanderbilt.edu/TAO">TAO</A>'s
efficiency, scalability, and predictability have been measured on many
different real-time operating systems with different features. Here
are some pointers to obtain more information on the evaluation and
diff --git a/TAO/docs/notification/monitor.html b/TAO/docs/notification/monitor.html
index 2fcfb390a51..ef7bd41b18b 100644
--- a/TAO/docs/notification/monitor.html
+++ b/TAO/docs/notification/monitor.html
@@ -109,7 +109,7 @@ method. The Data union has the following definition:</p>
};
</pre>
<p>The <b>get_statistic_names()</b> method returns a <b>NameList</b> which
-contains the names that are currently known by the statistic monitor.
+contains the names that are currently known by the statistic monitor.
This list will change over time.</p>
<p>The <b>get_statistic(in string name)</b> returns a <b>Data</b> union which
contains either a <b>Numeric</b> object or a <b>NameList</b>, depending upon
@@ -119,7 +119,7 @@ thrown.
</p>
<p> The <b>get_statistics(in NameList names)</b> returns a
<b>DataList</b>, which is a sequence of <b>Data</b>. The order of the
-<b>DataList</b> is the same order as provided within the <b>NameList</b>.
+<b>DataList</b> is the same order as provided within the <b>NameList</b>.
If any one name provided within the list does not correspond to a known
statistic, the <b>InvalidName</b> exception will be thrown.
</p>
@@ -141,36 +141,36 @@ thrown.
If ACE and TAO are built as static libraries, follow the instructions above
with these modifications:
<ul>
-<li>On the mwc.pl command used to generate the build files, add the
+<li>On the mwc.pl command used to generate the build files, add the
-features -features "notify_monitor_control=1" option. For example
-to build for VC9, the mwc commmand would look like:
+to build for VC9, the mwc command would look like:
<ul><li><pre>
mwc.pl -type vc9 -static -features "notify_monitor_control=1" TAO_ACE.mwc
</pre></li></ul>
</li>
<li>Replace the "dynamic" service configuration commands with a "static"
-commands. <i>Note that these commands have different syntaxes.</i>
+commands. <i>Note that these commands have different syntaxes.</i>
<br/>For example if
the service configuration commands for a dynamic build are (Lines wrapped
for illustrative purposes. In the service conf file the following should
appear on two lines):
<ul><li><pre>
- dynamic TAO_MonitorAndControl Service_Object *
- TAO_CosNotification_MC:_make_TAO_MonitorAndControl ()
- "-o monitor.ior
+ dynamic TAO_MonitorAndControl Service_Object *
+ TAO_CosNotification_MC:_make_TAO_MonitorAndControl ()
+ "-o monitor.ior
-ORBArg \"-ORBInitRef -ORBArg NameService=corbaloc:iiop:localhost:10637/NameService\""
-
+
dynamic TAO_MC_Notify_Service Service_Object *
TAO_CosNotification_MC_Ext:_make_TAO_MC_Notify_Service ()
"-DispatchingThreads 1"
-
+
</pre></li></ul> you should replace them with
<ul><li><pre>
- static TAO_MonitorAndControl
- "-o monitor.ior
- -ORBArg -ORBInitRef
+ static TAO_MonitorAndControl
+ "-o monitor.ior
+ -ORBArg -ORBInitRef
-ORBArg NameService=corbaloc:iiop:localhost:10637/NameService"
-
+
static TAO_MC_Notify_Service "-DispatchingThreads 1"
</pre></li></ul>
Please note that the parser for the static service configuration directives
diff --git a/TAO/docs/releasenotes/index.html b/TAO/docs/releasenotes/index.html
index 5622c0f7219..b4d8c117ded 100644
--- a/TAO/docs/releasenotes/index.html
+++ b/TAO/docs/releasenotes/index.html
@@ -15,7 +15,7 @@
Release Information for The ACE ORB (TAO)</h3></center>
This document contains information on the following topics related to the
<a href="../../VERSION.txt">current
-release</a> of <a href="http://www.dre.vanderbilt.edu/TAO">TAO</a>:
+release</a> of <a href="https://www.dre.vanderbilt.edu/TAO">TAO</a>:
<table BORDER=0 CELLSPACING=0 CELLPADDING=10 >
<tr>
diff --git a/TAO/docs/releasenotes/trader.html b/TAO/docs/releasenotes/trader.html
index 175743ff7cd..95c1126de98 100644
--- a/TAO/docs/releasenotes/trader.html
+++ b/TAO/docs/releasenotes/trader.html
@@ -978,7 +978,7 @@ loop. </p>
<h1><a name="RunningtheTradingServiceTests">Running the Trading Service Tests</a></h1>
-<p>There are two executables that test the Trading Service funtionality --- one to test
+<p>There are two executables that test the Trading Service functionality --- one to test
the exporter role, and the other, the importer role. To run the tests simply launch the <tt>Trading_Service</tt>
application, then run the <tt>export_test</tt> executable found in the <tt>orbsvcs/tests/Trading</tt>
directory. When the <tt>export_test</tt> ceases to output data and enters the event loop,
diff --git a/TAO/etc/tao.doxygen b/TAO/etc/tao.doxygen
index 4e2199d3fdc..b27e239c262 100644
--- a/TAO/etc/tao.doxygen
+++ b/TAO/etc/tao.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -841,8 +856,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h \
@@ -1218,9 +1235,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1326,7 +1343,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1488,6 +1505,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1508,8 +1536,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1537,7 +1571,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1579,7 +1613,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1776,9 +1810,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_anytypecode.doxygen b/TAO/etc/tao_anytypecode.doxygen
index 741dec934f1..09919052117 100644
--- a/TAO/etc/tao_anytypecode.doxygen
+++ b/TAO/etc/tao_anytypecode.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -841,8 +856,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h \
@@ -1215,9 +1232,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1323,7 +1340,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1485,6 +1502,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1505,8 +1533,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1534,7 +1568,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1576,7 +1610,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1773,9 +1807,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_av.doxygen b/TAO/etc/tao_av.doxygen
index 4bd9a6bc3d3..bb1caa238f4 100644
--- a/TAO/etc/tao_av.doxygen
+++ b/TAO/etc/tao_av.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -844,8 +859,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h \
@@ -1219,9 +1236,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1327,7 +1344,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1489,6 +1506,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1509,8 +1537,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1538,7 +1572,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1580,7 +1614,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1777,9 +1811,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_compression.doxygen b/TAO/etc/tao_compression.doxygen
index cd8db10747e..8ce353c0f23 100644
--- a/TAO/etc/tao_compression.doxygen
+++ b/TAO/etc/tao_compression.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -841,8 +856,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h \
@@ -1215,9 +1232,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1323,7 +1340,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1485,6 +1502,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1505,8 +1533,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1534,7 +1568,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1576,7 +1610,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1773,9 +1807,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_cosevent.doxygen b/TAO/etc/tao_cosevent.doxygen
index a21cd94f304..ade28282c21 100644
--- a/TAO/etc/tao_cosevent.doxygen
+++ b/TAO/etc/tao_cosevent.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -843,8 +858,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = CEC_*.cpp \
CEC_*.h \
@@ -1218,9 +1235,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1326,7 +1343,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1488,6 +1505,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1508,8 +1536,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1537,7 +1571,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1579,7 +1613,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1776,9 +1810,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_cosnaming.doxygen b/TAO/etc/tao_cosnaming.doxygen
index 13098bfb6bd..30102b42227 100644
--- a/TAO/etc/tao_cosnaming.doxygen
+++ b/TAO/etc/tao_cosnaming.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -842,8 +857,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h \
@@ -1217,9 +1234,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1325,7 +1342,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1487,6 +1504,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1507,8 +1535,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1536,7 +1570,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1578,7 +1612,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1775,9 +1809,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_cosnotification.doxygen b/TAO/etc/tao_cosnotification.doxygen
index c66a32b082b..5c34e976e94 100644
--- a/TAO/etc/tao_cosnotification.doxygen
+++ b/TAO/etc/tao_cosnotification.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -848,8 +863,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h \
@@ -1222,9 +1239,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1330,7 +1347,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1492,6 +1509,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1512,8 +1540,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1541,7 +1575,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1583,7 +1617,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1780,9 +1814,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_costime.doxygen b/TAO/etc/tao_costime.doxygen
index adb3ac1642d..9b321be48ea 100644
--- a/TAO/etc/tao_costime.doxygen
+++ b/TAO/etc/tao_costime.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -842,8 +857,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h \
@@ -1217,9 +1234,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1325,7 +1342,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1487,6 +1504,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1507,8 +1535,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1536,7 +1570,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1578,7 +1612,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1775,9 +1809,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_costrader.doxygen b/TAO/etc/tao_costrader.doxygen
index eb351a053e0..aa51c232e5f 100644
--- a/TAO/etc/tao_costrader.doxygen
+++ b/TAO/etc/tao_costrader.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -844,8 +859,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h \
@@ -1218,9 +1235,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1326,7 +1343,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1488,6 +1505,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1508,8 +1536,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1537,7 +1571,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1579,7 +1613,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1776,9 +1810,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_dynamicany.doxygen b/TAO/etc/tao_dynamicany.doxygen
index edad2820081..bb2c6a3f9ab 100644
--- a/TAO/etc/tao_dynamicany.doxygen
+++ b/TAO/etc/tao_dynamicany.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -841,8 +856,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h \
@@ -1215,9 +1232,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1323,7 +1340,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1485,6 +1502,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1505,8 +1533,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1534,7 +1568,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1576,7 +1610,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1773,9 +1807,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_dynamicinterface.doxygen b/TAO/etc/tao_dynamicinterface.doxygen
index aaa50d8a5fe..3620e446565 100644
--- a/TAO/etc/tao_dynamicinterface.doxygen
+++ b/TAO/etc/tao_dynamicinterface.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -841,8 +856,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h \
@@ -1215,9 +1232,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1323,7 +1340,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1485,6 +1502,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1505,8 +1533,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1534,7 +1568,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1576,7 +1610,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1773,9 +1807,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_esf.doxygen b/TAO/etc/tao_esf.doxygen
index 2401194fe0e..cee366f6ee7 100644
--- a/TAO/etc/tao_esf.doxygen
+++ b/TAO/etc/tao_esf.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -841,8 +856,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h \
@@ -1216,9 +1233,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1324,7 +1341,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1486,6 +1503,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1506,8 +1534,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1535,7 +1569,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1577,7 +1611,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1774,9 +1808,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_ifr.doxygen b/TAO/etc/tao_ifr.doxygen
index 595a9385e78..d992fb8d971 100644
--- a/TAO/etc/tao_ifr.doxygen
+++ b/TAO/etc/tao_ifr.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -841,8 +856,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h
@@ -1213,9 +1230,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1321,7 +1338,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1483,6 +1500,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1503,8 +1531,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1532,7 +1566,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1574,7 +1608,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1771,9 +1805,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_implrepo.doxygen b/TAO/etc/tao_implrepo.doxygen
index e40fe46d510..0db535239ab 100644
--- a/TAO/etc/tao_implrepo.doxygen
+++ b/TAO/etc/tao_implrepo.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -841,8 +856,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h \
@@ -1215,9 +1232,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1323,7 +1340,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1485,6 +1502,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1505,8 +1533,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1534,7 +1568,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1576,7 +1610,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1773,9 +1807,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_iormanip.doxygen b/TAO/etc/tao_iormanip.doxygen
index cf5aef0c74d..f26d3578a69 100644
--- a/TAO/etc/tao_iormanip.doxygen
+++ b/TAO/etc/tao_iormanip.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -841,8 +856,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h \
@@ -1215,9 +1232,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1323,7 +1340,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1485,6 +1502,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1505,8 +1533,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1534,7 +1568,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1576,7 +1610,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1773,9 +1807,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_iortable.doxygen b/TAO/etc/tao_iortable.doxygen
index c5dff5bc3c5..88f4bbd90d2 100644
--- a/TAO/etc/tao_iortable.doxygen
+++ b/TAO/etc/tao_iortable.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -841,8 +856,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h \
@@ -1215,9 +1232,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1323,7 +1340,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1485,6 +1502,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1505,8 +1533,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1534,7 +1568,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1576,7 +1610,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1773,9 +1807,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_pi.doxygen b/TAO/etc/tao_pi.doxygen
index b148d459deb..55a8182a5f2 100644
--- a/TAO/etc/tao_pi.doxygen
+++ b/TAO/etc/tao_pi.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -841,8 +856,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h \
@@ -1215,9 +1232,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1323,7 +1340,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1485,6 +1502,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1505,8 +1533,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1534,7 +1568,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1576,7 +1610,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1773,9 +1807,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_pi_server.doxygen b/TAO/etc/tao_pi_server.doxygen
index ef2c58a35b8..f954f08e697 100644
--- a/TAO/etc/tao_pi_server.doxygen
+++ b/TAO/etc/tao_pi_server.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -841,8 +856,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h \
@@ -1215,9 +1232,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1323,7 +1340,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1485,6 +1502,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1505,8 +1533,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1534,7 +1568,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1576,7 +1610,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1773,9 +1807,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_portablegroup.doxygen b/TAO/etc/tao_portablegroup.doxygen
index e9d89ab0bd5..dc1025f5b94 100644
--- a/TAO/etc/tao_portablegroup.doxygen
+++ b/TAO/etc/tao_portablegroup.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -843,8 +858,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h \
@@ -1217,9 +1234,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1325,7 +1342,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1487,6 +1504,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1507,8 +1535,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1536,7 +1570,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1578,7 +1612,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1775,9 +1809,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_portableserver.doxygen b/TAO/etc/tao_portableserver.doxygen
index fc56a89f6df..13a9ea048bb 100644
--- a/TAO/etc/tao_portableserver.doxygen
+++ b/TAO/etc/tao_portableserver.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -841,8 +856,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h \
@@ -1215,9 +1232,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1323,7 +1340,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1485,6 +1502,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1505,8 +1533,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1534,7 +1568,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1576,7 +1610,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1773,9 +1807,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_rtcorba.doxygen b/TAO/etc/tao_rtcorba.doxygen
index 3e49971fab5..b4454e478b2 100644
--- a/TAO/etc/tao_rtcorba.doxygen
+++ b/TAO/etc/tao_rtcorba.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -841,8 +856,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h \
@@ -1215,9 +1232,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1323,7 +1340,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1485,6 +1502,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1505,8 +1533,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1534,7 +1568,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1576,7 +1610,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1773,9 +1807,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_rtevent.doxygen b/TAO/etc/tao_rtevent.doxygen
index ff4bfb09283..674ab3609c7 100644
--- a/TAO/etc/tao_rtevent.doxygen
+++ b/TAO/etc/tao_rtevent.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -850,8 +865,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = EC_*.cpp \
EC_*.h \
@@ -1227,9 +1244,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1335,7 +1352,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1497,6 +1514,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1517,8 +1545,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1546,7 +1580,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1588,7 +1622,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1785,9 +1819,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_rtportableserver.doxygen b/TAO/etc/tao_rtportableserver.doxygen
index f8a76f6869b..95c36a17018 100644
--- a/TAO/etc/tao_rtportableserver.doxygen
+++ b/TAO/etc/tao_rtportableserver.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -841,8 +856,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h \
@@ -1215,9 +1232,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1323,7 +1340,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1485,6 +1502,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1505,8 +1533,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1534,7 +1568,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1576,7 +1610,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1773,9 +1807,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_security.doxygen b/TAO/etc/tao_security.doxygen
index 225186b1134..2a51d0c3873 100644
--- a/TAO/etc/tao_security.doxygen
+++ b/TAO/etc/tao_security.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -846,8 +861,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h \
@@ -1221,9 +1238,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1329,7 +1346,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1491,6 +1508,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1511,8 +1539,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1540,7 +1574,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1582,7 +1616,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1779,9 +1813,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_smartproxies.doxygen b/TAO/etc/tao_smartproxies.doxygen
index a138a7626f3..9d5d2db2579 100644
--- a/TAO/etc/tao_smartproxies.doxygen
+++ b/TAO/etc/tao_smartproxies.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -841,8 +856,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h \
@@ -1215,9 +1232,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1323,7 +1340,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1485,6 +1502,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1505,8 +1533,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1534,7 +1568,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1576,7 +1610,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1773,9 +1807,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_ssliop.doxygen b/TAO/etc/tao_ssliop.doxygen
index 4d4190bef1f..9545419b146 100644
--- a/TAO/etc/tao_ssliop.doxygen
+++ b/TAO/etc/tao_ssliop.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -846,8 +861,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h \
@@ -1221,9 +1238,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1329,7 +1346,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1491,6 +1508,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1511,8 +1539,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1540,7 +1574,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1582,7 +1616,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1779,9 +1813,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_strategies.doxygen b/TAO/etc/tao_strategies.doxygen
index 999247b2bd2..ee1aa66811a 100644
--- a/TAO/etc/tao_strategies.doxygen
+++ b/TAO/etc/tao_strategies.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -841,8 +856,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h \
@@ -1215,9 +1232,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1323,7 +1340,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1485,6 +1502,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1505,8 +1533,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1534,7 +1568,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1576,7 +1610,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1773,9 +1807,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_transportcurrent.doxygen b/TAO/etc/tao_transportcurrent.doxygen
index 4075de9ef98..597b3743360 100644
--- a/TAO/etc/tao_transportcurrent.doxygen
+++ b/TAO/etc/tao_transportcurrent.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -841,8 +856,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h \
@@ -1215,9 +1232,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1323,7 +1340,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1485,6 +1502,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1505,8 +1533,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1534,7 +1568,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1576,7 +1610,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1773,9 +1807,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/etc/tao_ziop.doxygen b/TAO/etc/tao_ziop.doxygen
index 850e9c2771f..c97766824e2 100644
--- a/TAO/etc/tao_ziop.doxygen
+++ b/TAO/etc/tao_ziop.doxygen
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.16
+# Doxyfile 1.8.20
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -217,6 +217,14 @@ QT_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING = YES
+
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
@@ -253,12 +261,6 @@ TAB_SIZE = 8
ALIASES =
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
@@ -299,14 +301,14 @@ OPTIMIZE_OUTPUT_SLICE = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, D, PHP, md (Markdown), Objective-C, Python, Slice, VHDL,
# Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
# tries to guess whether the code is fixed or free formatted code, this is the
-# default for Fortran type files), VHDL, tcl. For instance to make doxygen treat
-# .inc files as Fortran files (default is PHP), and .f files as C (default is
-# Fortran), use: inc=Fortran f=C.
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
@@ -445,6 +447,19 @@ TYPEDEF_HIDES_STRUCT = NO
LOOKUP_CACHE_SIZE = 0
+# The NUM_PROC_THREADS specifies the number threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which efficively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS = 1
+
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
@@ -525,8 +540,8 @@ HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO, these declarations will be
-# included in the documentation.
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
@@ -549,7 +564,7 @@ INTERNAL_DOCS = YES
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
-# (including Cygwin) ands Mac users are advised to set this option to NO.
+# (including Cygwin) and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
@@ -841,8 +856,10 @@ INPUT_ENCODING = UTF-8
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
-# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
-# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice.
+# *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C comment),
+# *.doc (to be provided as doxygen C comment), *.txt (to be provided as doxygen
+# C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
FILE_PATTERNS = *.cpp \
*.h \
@@ -1215,9 +1232,9 @@ HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
-# are dynamically created via Javascript. If disabled, the navigation index will
+# are dynamically created via JavaScript. If disabled, the navigation index will
# consists of multiple levels of tabs that are statically embedded in every HTML
-# page. Disable this option to support browsers that do not have Javascript,
+# page. Disable this option to support browsers that do not have JavaScript,
# like the Qt help browser.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1323,7 +1340,7 @@ CHM_FILE =
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
-# (YES) or that it should be included in the master .chm file (NO).
+# (YES) or that it should be included in the main .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
@@ -1485,6 +1502,17 @@ TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT = png
+
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
@@ -1505,8 +1533,14 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE =
+
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# https://www.mathjax.org) which uses client side Javascript for the rendering
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
@@ -1534,7 +1568,7 @@ MATHJAX_FORMAT = HTML-CSS
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from https://www.mathjax.org before deployment.
-# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/.
+# The default value is: https://cdn.jsdelivr.net/npm/mathjax@2.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
@@ -1576,7 +1610,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
+# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
@@ -1773,9 +1807,11 @@ LATEX_EXTRA_FILES =
PDF_HYPERLINKS = NO
-# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES, to get a
-# higher quality PDF documentation.
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
diff --git a/TAO/examples/Borland/README b/TAO/examples/Borland/README
index 227a0176906..07881888ffd 100644
--- a/TAO/examples/Borland/README
+++ b/TAO/examples/Borland/README
@@ -1,5 +1,3 @@
-
-
Before compiling the example in The Borland C++ Builder IDE
you must generate the client and server stubs using build_idl.bat.
Please update the location of the tao_idl dependent on your build
diff --git a/TAO/examples/CSD_Strategy/ThreadPool2/FooServantList.h b/TAO/examples/CSD_Strategy/ThreadPool2/FooServantList.h
index 84c39803f86..efab29f4187 100644
--- a/TAO/examples/CSD_Strategy/ThreadPool2/FooServantList.h
+++ b/TAO/examples/CSD_Strategy/ThreadPool2/FooServantList.h
@@ -9,28 +9,25 @@
class FooServantList
{
- public:
+public:
+ FooServantList(const ACE_TCHAR* prefix,
+ unsigned num_servants,
+ unsigned num_clients,
+ CORBA::ORB_ptr orb);
+ ~FooServantList();
- FooServantList(const ACE_TCHAR* prefix,
- unsigned num_servants,
- unsigned num_clients,
- CORBA::ORB_ptr orb);
- ~FooServantList();
+ void create_and_activate(PortableServer::POA_ptr poa);
- void create_and_activate(PortableServer::POA_ptr poa);
+ void client_done(void);
- void client_done(void);
+private:
+ PortableServer::ServantBase_var* servants_;
+ ACE_TString prefix_;
+ unsigned num_servants_;
+ ACE_Atomic_Op <TAO_SYNCH_MUTEX, unsigned> num_clients_;
- private:
-
- PortableServer::ServantBase_var* servants_;
- ACE_TString prefix_;
- unsigned num_servants_;
-
- ACE_Atomic_Op <TAO_SYNCH_MUTEX, unsigned> num_clients_;
-
- CORBA::ORB_var orb_;
+ CORBA::ORB_var orb_;
};
#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/Foo_i.h b/TAO/examples/CSD_Strategy/ThreadPool5/Foo_i.h
index df548468b7a..3e127b18a6c 100644
--- a/TAO/examples/CSD_Strategy/ThreadPool5/Foo_i.h
+++ b/TAO/examples/CSD_Strategy/ThreadPool5/Foo_i.h
@@ -11,7 +11,6 @@ class FooServantList;
class Foo_i : public virtual POA_Foo
{
public:
-
Foo_i(const char* servant_name, FooServantList* mgr);
virtual ~Foo_i();
@@ -27,55 +26,42 @@ class Foo_i : public virtual POA_Foo
virtual CORBA::Boolean op6 (
const char * user_name,
- char *& message
- );
+ char *& message);
virtual void test_unbounded_string_arg (
- const char * message
- );
+ const char * message);
virtual void test_bounded_string_arg (
- const char * message
- );
+ const char * message);
virtual void test_fixed_array_arg (
- const ::Fixed_Array message
- );
+ const ::Fixed_Array message);
virtual void test_var_array_arg (
- const ::Var_Array messages
- );
+ const ::Var_Array messages);
virtual void test_bounded_var_size_arg (
- const ::Bounded_Var_Size & message
- );
+ const ::Bounded_Var_Size & message);
virtual void test_unbounded_var_size_arg (
- const ::Unbounded_Var_Size & message
- );
+ const ::Unbounded_Var_Size & message);
virtual void test_fixed_size_arg (
- const ::TimeOfDay & t
- );
+ const ::TimeOfDay & t);
virtual void test_fixed_size_arg_two_way (
- const ::TimeOfDay & t
- );
+ const ::TimeOfDay & t);
virtual void test_special_basic_arg (
- ::CORBA::Boolean value
- );
+ ::CORBA::Boolean value);
virtual void test_objref_arg (
- ::Callback_ptr cb
- );
+ ::Callback_ptr cb);
virtual void callback_object (
- ::Callback_ptr cb
- );
+ ::Callback_ptr cb);
- virtual void test_callback (
- );
+ virtual void test_callback ();
virtual void done(void);
@@ -84,7 +70,6 @@ class Foo_i : public virtual POA_Foo
bool active ();
private:
-
typedef ACE_Atomic_Op <TAO_SYNCH_MUTEX, CORBA::Long> AtomicLong;
typedef ACE_Atomic_Op <TAO_SYNCH_MUTEX, unsigned> AtomicUnsigned;
typedef ACE_Atomic_Op <TAO_SYNCH_MUTEX, bool> AtomicBool;
diff --git a/TAO/examples/Content_Server/README b/TAO/examples/Content_Server/README
index 1f58eb4d8b1..b0c2b545185 100644
--- a/TAO/examples/Content_Server/README
+++ b/TAO/examples/Content_Server/README
@@ -1,28 +1,26 @@
-
-
This directory contains a number of example applications that
illustrate how to transmit large files using standard CORBA and TAO.
The individual directories contain READMEs on how to run the following
examples:
- . SMI_Iterator
+. SMI_Iterator
- Illustrates how to use the Iterator pattern to download
- large files one chunk at a time using synchronous
- method invocations that are "pulled" by the client
- from the server.
+ Illustrates how to use the Iterator pattern to download
+ large files one chunk at a time using synchronous
+ method invocations that are "pulled" by the client
+ from the server.
- . AMI_Iterator
+. AMI_Iterator
- Illustrates how to use the Iterator pattern to download
- large files one chunk at a time using asynchronous
- method invocations that are "pulled" by the client
- from the server.
+ Illustrates how to use the Iterator pattern to download
+ large files one chunk at a time using asynchronous
+ method invocations that are "pulled" by the client
+ from the server.
- . AMI_Observer
+. AMI_Observer
- Illustrates how to use the Observer pattern to download
- large files one chunk at a time using asynchronous
- method invocations that are "pushed" from the server
- to the client.
+ Illustrates how to use the Observer pattern to download
+ large files one chunk at a time using asynchronous
+ method invocations that are "pushed" from the server
+ to the client.
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/Kokyu_dsrt_schedulers/README b/TAO/examples/Kokyu_dsrt_schedulers/README
index 4844394c04f..2a957c6b9c6 100644
--- a/TAO/examples/Kokyu_dsrt_schedulers/README
+++ b/TAO/examples/Kokyu_dsrt_schedulers/README
@@ -1,5 +1,3 @@
-
-
Design approaches for the Kokyu based DSRT scheduler/dispatcher
--------------------------------------------------------
@@ -92,7 +90,7 @@ To aid (1), we have created a Svc_Ctxt_DSRT_QoS idl
interface (see ./Kokyu_qos.pidl). This interface
currently has the necessary things to be propagated
for FP, MIF and MUF schedulers. This can be altered
-if necessary to accomodate new sched params. The
+if necessary to accommodate new sched params. The
idea here is to let the IDL compiler generate the
marshalling code (including Any operators) so that
these parameters can be shipped across in the
diff --git a/TAO/examples/Load_Balancing/Load_Balancer_i.h b/TAO/examples/Load_Balancing/Load_Balancer_i.h
index 46ee9caa3bd..fd1f91d685c 100644
--- a/TAO/examples/Load_Balancing/Load_Balancer_i.h
+++ b/TAO/examples/Load_Balancing/Load_Balancer_i.h
@@ -180,8 +180,7 @@ public:
* ``round robin.'' If the group contains no members, <no_such_member>
* exception is thrown.
*/
- CORBA::Object_ptr resolve (void)
- = 0;
+ CORBA::Object_ptr resolve (void) = 0;
/**
* Returns an object with the specified <Member_ID>. If this
diff --git a/TAO/examples/Load_Balancing_persistent/Load_Balancer_i.h b/TAO/examples/Load_Balancing_persistent/Load_Balancer_i.h
index 190798281df..cd60a1a87f7 100644
--- a/TAO/examples/Load_Balancing_persistent/Load_Balancer_i.h
+++ b/TAO/examples/Load_Balancing_persistent/Load_Balancer_i.h
@@ -219,8 +219,7 @@ public:
* ``round robin.'' If the group contains no members, <no_such_member>
* exception is thrown.
*/
- char * resolve (void)
- = 0;
+ char * resolve (void) = 0;
/**
* Returns an object with the specified <Member_ID>. If this
diff --git a/TAO/examples/Persistent_Grid/README b/TAO/examples/Persistent_Grid/README
index 8a461344dbe..35b652a46b1 100644
--- a/TAO/examples/Persistent_Grid/README
+++ b/TAO/examples/Persistent_Grid/README
@@ -1,5 +1,3 @@
-
-
This example shows how to store the state of CORBA servants in
persistent memory. The example is a variation of the Grid example in
$TAO_ROOT/examples/Simple/grid.
diff --git a/TAO/examples/Quoter/Generic_Factory.cpp b/TAO/examples/Quoter/Generic_Factory.cpp
index 31cf6f21b4c..a56465d759a 100644
--- a/TAO/examples/Quoter/Generic_Factory.cpp
+++ b/TAO/examples/Quoter/Generic_Factory.cpp
@@ -229,6 +229,7 @@ Quoter_Generic_Factory_Server::parse_args (void)
ACE_ERROR ((LM_ERROR,
"%s: unknown arg, -%c\n",
this->argv_[0], char(opt)));
+ // fallthrough
case '?':
ACE_DEBUG ((LM_DEBUG,
"usage: %s"
diff --git a/TAO/examples/README b/TAO/examples/README
index a08edc25fb5..df27ae980cc 100644
--- a/TAO/examples/README
+++ b/TAO/examples/README
@@ -1,114 +1,112 @@
-
-
This directory contains a number of example applications that
illustrate how to program with standard CORBA using TAO. The
individual directories contain READMEs on how to run the following
examples:
- . Advanced
+. Advanced
- Contains example code from "Advanced CORBA Programming with
- C++" by Michi Henning and Steve Vinoski with slight
- adaptations for TAO.
+ Contains example code from "Advanced CORBA Programming with
+ C++" by Michi Henning and Steve Vinoski with slight
+ adaptations for TAO.
- . AMH
+. AMH
- Example code that illustrates working of a simple AMH 'Sink-Server'
- and a more sophisticated AMH 'Middle-Sever' that uses both
- AMH and AMI. Sample 'one-button' perl scripts are provided that
- show how to run the servers.
+ Example code that illustrates working of a simple AMH 'Sink-Server'
+ and a more sophisticated AMH 'Middle-Sever' that uses both
+ AMH and AMI. Sample 'one-button' perl scripts are provided that
+ show how to run the servers.
- . Borland
+. Borland
- This directory illustrates how to write a Borland C++
- Builder application using ACE+TAO.
+ This directory illustrates how to write a Borland C++
+ Builder application using ACE+TAO.
- . Buffered _AMI
+. Buffered _AMI
- This is a simple test for buffered AMI calls. It invokes
- multiple AMI calls. Due to buffering in the ORB, the calls
- are automatically bunched together instead of being
- delivered to the server upon every invocation.
+ This is a simple test for buffered AMI calls. It invokes
+ multiple AMI calls. Due to buffering in the ORB, the calls
+ are automatically bunched together instead of being
+ delivered to the server upon every invocation.
- . Buffered _Oneways
+. Buffered _Oneways
- This is a simple test for buffered oneways. It invokes
- multiple oneway calls. Due to buffering in the ORB, the
- calls are automatically bunched together instead of being
- delivered to the server upon every invocation.
+ This is a simple test for buffered oneways. It invokes
+ multiple oneway calls. Due to buffering in the ORB, the
+ calls are automatically bunched together instead of being
+ delivered to the server upon every invocation.
- . Callback_Quoter
+. Callback_Quoter
- Illustrates how to implement distributed callbacks using
- TAO.
+ Illustrates how to implement distributed callbacks using
+ TAO.
- . Content_Server
+. Content_Server
- Three examples that illustrate how to program client/server
- applications for downloading large file content via SMI,
- AMI, and the Iterator and Observer patterns.
+ Three examples that illustrate how to program client/server
+ applications for downloading large file content via SMI,
+ AMI, and the Iterator and Observer patterns.
- . Event_Comm
+. Event_Comm
- Another illustration of how to implement distributed
- callbacks using TAO.
+ Another illustration of how to implement distributed
+ callbacks using TAO.
- . Load_Balancing
+. Load_Balancing
- A simple CORBA load balancing service that allows clients to
- treat a group of objects as an equivalence class to improve
- distributed load balancing.
+ A simple CORBA load balancing service that allows clients to
+ treat a group of objects as an equivalence class to improve
+ distributed load balancing.
- . Load_Balancing_persistent
+. Load_Balancing_persistent
- A variant of the preceding example that keeps the state of
- the load balancer persistent.
+ A variant of the preceding example that keeps the state of
+ the load balancer persistent.
- . Logging
+. Logging
- This example implements a simple logging service using TAO.
+ This example implements a simple logging service using TAO.
- . mfc
+. mfc
- This is an short example to show how to integrate TAO and
- MFC base GUI applications.
+ This is an short example to show how to integrate TAO and
+ MFC base GUI applications.
- . OBV
+. OBV
- This is a demonstration of the CORBA 2.3 valuetype feature from
- the Object-by-Value specification.
+ This is a demonstration of the CORBA 2.3 valuetype feature from
+ the Object-by-Value specification.
- . Persistent_Grid
+. Persistent_Grid
- This example shows how to store the state of CORBA servants in
- persistent memory.
+ This example shows how to store the state of CORBA servants in
+ persistent memory.
- . PluggableUDP
+. PluggableUDP
- This example tests the UDP Pluggable Protocol (DIOP) implementation by
- sending oneway requests to a server.
+ This example tests the UDP Pluggable Protocol (DIOP) implementation by
+ sending oneway requests to a server.
- . POA
+. POA
- Contains various small examples of POA features based on
- the OMG POA specification.
+ Contains various small examples of POA features based on
+ the OMG POA specification.
- . Quoter
+. Quoter
- Illustrates how to use the Global POA options with multiple
- threads. This example also shows how to use the Lifecycle
- service.
+ Illustrates how to use the Global POA options with multiple
+ threads. This example also shows how to use the Lifecycle
+ service.
- . Simple
+. Simple
- Contains a number of simple CORBA examples, which also
- illustrate how to write canonical Orbix/VisiBroker/OmniORB
- examples in TAO using standard CORBA features rather than
- proprietary ORB features.
+ Contains a number of simple CORBA examples, which also
+ illustrate how to write canonical Orbix/VisiBroker/OmniORB
+ examples in TAO using standard CORBA features rather than
+ proprietary ORB features.
- . Simulator
+. Simulator
- This is a demonstration of the TAO "Distributed Object
- Visualization Environment" (DOVE), which shows how the TAO
- Real-time Event Service can be used to transport monitoring
- events.
+ This is a demonstration of the TAO "Distributed Object
+ Visualization Environment" (DOVE), which shows how the TAO
+ Real-time Event Service can be used to transport monitoring
+ events.
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/examples/Simple/Simple_util.h b/TAO/examples/Simple/Simple_util.h
index 005f514c9b0..b2df4e6925a 100644
--- a/TAO/examples/Simple/Simple_util.h
+++ b/TAO/examples/Simple/Simple_util.h
@@ -28,7 +28,7 @@
* A template server definition. This template can be used by
* single server/client projects for definition of their
* server/clients. See the directories time, bank, echo for
- * further details of implemenatation.
+ * further details of implementation.
*/
template <class Servant>
class Server
diff --git a/TAO/orbsvcs/IFR_Service/be_produce.cpp b/TAO/orbsvcs/IFR_Service/be_produce.cpp
index 3590aaad0f8..2774ca20bfb 100644
--- a/TAO/orbsvcs/IFR_Service/be_produce.cpp
+++ b/TAO/orbsvcs/IFR_Service/be_produce.cpp
@@ -151,7 +151,7 @@ BE_produce (void)
// Get the root node.
AST_Decl *d = idl_global->root ();
- AST_Root *root = AST_Root::narrow_from_decl (d);
+ AST_Root *root = dynamic_cast<AST_Root*> (d);
if (root == 0)
{
diff --git a/TAO/orbsvcs/IFR_Service/ifr_adding_visitor.cpp b/TAO/orbsvcs/IFR_Service/ifr_adding_visitor.cpp
index da0846fb285..057e05a5013 100644
--- a/TAO/orbsvcs/IFR_Service/ifr_adding_visitor.cpp
+++ b/TAO/orbsvcs/IFR_Service/ifr_adding_visitor.cpp
@@ -1021,7 +1021,7 @@ ifr_adding_visitor::visit_component_fwd (AST_ComponentFwd *node)
}
AST_Component *c =
- AST_Component::narrow_from_decl (node->full_definition ());
+ dynamic_cast<AST_Component*> (node->full_definition ());
try
{
@@ -1872,7 +1872,7 @@ ifr_adding_visitor::visit_field (AST_Field *node)
return this->create_value_member (node);
}
- AST_Type *ft = AST_Type::narrow_from_decl (node->field_type ());
+ AST_Type *ft = dynamic_cast<AST_Type*> (node->field_type ());
if (ft == 0)
{
@@ -2738,7 +2738,7 @@ ifr_adding_visitor::create_interface_def (AST_Interface *node)
for (CORBA::ULong i = 0; i < n_parents; ++i)
{
AST_Interface *intf =
- AST_Interface::narrow_from_decl (parents[i]);
+ dynamic_cast<AST_Interface*> (parents[i]);
if (intf == 0)
{
@@ -2800,7 +2800,7 @@ ifr_adding_visitor::create_interface_def (AST_Interface *node)
for (CORBA::ULong i = 0; i < n_parents; ++i)
{
AST_Interface *intf =
- AST_Interface::narrow_from_decl (parents[i]);
+ dynamic_cast<AST_Interface*> (parents[i]);
if (intf == 0)
{
@@ -3719,21 +3719,21 @@ ifr_adding_visitor::fill_supported_interfaces (CORBA::InterfaceDefSeq &result,
case AST_Decl::NT_valuetype:
case AST_Decl::NT_eventtype:
{
- AST_ValueType *v = AST_ValueType::narrow_from_decl (node);
+ AST_ValueType *v = dynamic_cast<AST_ValueType*> (node);
s_length = v->n_supports ();
list = v->supports ();
break;
}
case AST_Decl::NT_component:
{
- AST_Component *c = AST_Component::narrow_from_decl (node);
+ AST_Component *c = dynamic_cast<AST_Component*> (node);
s_length = c->n_supports ();
list = c->supports ();
break;
}
case AST_Decl::NT_home:
{
- AST_Home *h = AST_Home::narrow_from_decl (node);
+ AST_Home *h = dynamic_cast<AST_Home*> (node);
s_length = h->n_supports ();
list = h->supports ();
break;
@@ -3788,7 +3788,7 @@ ifr_adding_visitor::fill_initializers (CORBA::ExtInitializerSeq &result,
if (item->node_type () == AST_Decl::NT_factory)
{
- factories.push_back (AST_Factory::narrow_from_decl (item));
+ factories.push_back (dynamic_cast<AST_Factory*> (item));
}
}
@@ -3819,7 +3819,7 @@ ifr_adding_visitor::fill_initializers (CORBA::ExtInitializerSeq &result,
!f_iter.is_done ();
f_iter.next (), ++index)
{
- arg = AST_Argument::narrow_from_decl (f_iter.item ());
+ arg = dynamic_cast<AST_Argument*> (f_iter.item ());
result[i].members[index].name =
CORBA::string_dup (arg->local_name ()->get_string ());
result[i].members[index].type =
@@ -3850,7 +3850,7 @@ ifr_adding_visitor::fill_initializers (CORBA::ExtInitializerSeq &result,
!ei.is_done ();
ei.next ())
{
- excp = AST_Exception::narrow_from_decl (ei.item ());
+ excp = dynamic_cast<AST_Exception*> (ei.item ());
result[i].exceptions[index].name =
CORBA::string_dup (excp->local_name ()->get_string ());
result[i].exceptions[index].id = excp->repoID ();
@@ -3887,7 +3887,7 @@ ifr_adding_visitor::fill_exceptions (CORBA::ExceptionDefSeq &result,
{
case AST_Decl::NT_op:
{
- AST_Operation *op = AST_Operation::narrow_from_decl (node);
+ AST_Operation *op = dynamic_cast<AST_Operation*> (node);
this->fill_exceptions (result,
op->exceptions ());
return;
@@ -3895,7 +3895,7 @@ ifr_adding_visitor::fill_exceptions (CORBA::ExceptionDefSeq &result,
case AST_Decl::NT_factory:
case AST_Decl::NT_finder:
{
- AST_Factory *f = AST_Factory::narrow_from_decl (node);
+ AST_Factory *f = dynamic_cast<AST_Factory*> (node);
this->fill_exceptions (result,
f->exceptions ());
return;
@@ -3954,7 +3954,7 @@ ifr_adding_visitor::fill_params (CORBA::ParDescriptionSeq &result,
! iter.is_done ();
iter.next (), ++index)
{
- arg = AST_Argument::narrow_from_decl (iter.item ());
+ arg = dynamic_cast<AST_Argument*> (iter.item ());
result[index].name =
CORBA::string_dup (arg->local_name ()->get_string ());
result[index].type = CORBA::TypeCode::_duplicate (CORBA::_tc_void);
@@ -3989,7 +3989,7 @@ ifr_adding_visitor::visit_all_factories (AST_Home *node,
continue;
}
- AST_Factory *f = AST_Factory::narrow_from_decl (d);
+ AST_Factory *f = dynamic_cast<AST_Factory*> (d);
CORBA::ParDescriptionSeq params;
this->fill_params (params, f);
@@ -4018,7 +4018,7 @@ ifr_adding_visitor::visit_all_finders (AST_Home *node,
!h_iter.is_done ();
h_iter.next ())
{
- f = AST_Finder::narrow_from_decl (h_iter.item ());
+ f = dynamic_cast<AST_Finder*> (h_iter.item ());
if (f == 0)
{
diff --git a/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_exception.cpp b/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_exception.cpp
index 085e7f1d617..e1bc9432a95 100644
--- a/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_exception.cpp
+++ b/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_exception.cpp
@@ -35,9 +35,9 @@ ifr_adding_visitor_exception::visit_scope (UTL_Scope *node)
return ifr_adding_visitor::visit_scope (node);
}
- AST_Exception *e = AST_Exception::narrow_from_scope (node);
+ AST_Exception *e = dynamic_cast<AST_Exception*> (node);
- CORBA::ULong nfields = static_cast<CORBA::ULong> (e->nfields ());
+ CORBA::ULong const nfields = static_cast<CORBA::ULong> (e->nfields ());
this->members_.length (nfields);
diff --git a/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_structure.cpp b/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_structure.cpp
index b2ef423353d..19227166b8e 100644
--- a/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_structure.cpp
+++ b/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_structure.cpp
@@ -29,8 +29,8 @@ ifr_adding_visitor_structure::visit_scope (UTL_Scope *node)
return ifr_adding_visitor::visit_scope (node);
}
- AST_Structure *s = AST_Structure::narrow_from_scope (node);
- CORBA::ULong nfields = static_cast<CORBA::ULong> (s->nfields ());
+ AST_Structure *s = dynamic_cast<AST_Structure*> (node);
+ CORBA::ULong const nfields = static_cast<CORBA::ULong> (s->nfields ());
this->members_.length (nfields);
AST_Field **f = 0;
diff --git a/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_union.cpp b/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_union.cpp
index 0ef2385edad..37915ca0a5f 100644
--- a/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_union.cpp
+++ b/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_union.cpp
@@ -33,9 +33,9 @@ ifr_adding_visitor_union::visit_scope (UTL_Scope *node)
return ifr_adding_visitor::visit_scope (node);
}
- AST_Union *u = AST_Union::narrow_from_scope (node);
+ AST_Union *u = dynamic_cast<AST_Union*> (node);
- CORBA::ULong nfields = static_cast<CORBA::ULong> (u->nfields ());
+ CORBA::ULong const nfields = static_cast<CORBA::ULong> (u->nfields ());
this->members_.length (nfields);
@@ -111,7 +111,7 @@ ifr_adding_visitor_union::visit_scope (UTL_Scope *node)
// Get the case label(s).
AST_UnionLabel *case_label = 0;
- AST_UnionBranch *ub = AST_UnionBranch::narrow_from_decl (*f);
+ AST_UnionBranch *ub = dynamic_cast<AST_UnionBranch*> (*f);
unsigned long len = ub->label_list_length ();
// If there are multiple case labels, we will have an element
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/AsyncListManager.h b/TAO/orbsvcs/ImplRepo_Service/AsyncListManager.h
index 101a0ceb880..6fe0271458d 100644
--- a/TAO/orbsvcs/ImplRepo_Service/AsyncListManager.h
+++ b/TAO/orbsvcs/ImplRepo_Service/AsyncListManager.h
@@ -19,11 +19,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>
#include "LiveCheck.h"
class Locator_Repository;
@@ -78,11 +74,7 @@ class AsyncListManager
CORBA::ULong first_;
CORBA::ULong how_many_;
CORBA::ULong waiters_;
-#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<AsyncListManager> AsyncListManager_ptr;
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/LoadBalancer/Push_Handler.h b/TAO/orbsvcs/LoadBalancer/Push_Handler.h
index 056bb8eed41..cb4e34f81d1 100644
--- a/TAO/orbsvcs/LoadBalancer/Push_Handler.h
+++ b/TAO/orbsvcs/LoadBalancer/Push_Handler.h
@@ -36,7 +36,6 @@
class TAO_LB_Push_Handler : public ACE_Event_Handler
{
public:
-
/// Constructor
TAO_LB_Push_Handler (CosLoadBalancing::LoadMonitor_ptr monitor,
const PortableGroup::Location & location,
@@ -47,7 +46,6 @@ public:
const void *arg);
private:
-
/// Reference to the LoadMonitor.
CosLoadBalancing::LoadMonitor_var monitor_;
@@ -56,7 +54,6 @@ private:
/// Reference to the LoadManager.
CosLoadBalancing::LoadManager_var manager_;
-
};
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/LoadBalancer/README b/TAO/orbsvcs/LoadBalancer/README
index d854a2ccf8e..ec94ce5359d 100644
--- a/TAO/orbsvcs/LoadBalancer/README
+++ b/TAO/orbsvcs/LoadBalancer/README
@@ -1,5 +1,3 @@
-
-
This directory contains the sources for two binaries:
1) LoadManager
diff --git a/TAO/orbsvcs/LoadBalancer/Signal_Handler.h b/TAO/orbsvcs/LoadBalancer/Signal_Handler.h
index a79d1cde06c..ffdd776b6b7 100644
--- a/TAO/orbsvcs/LoadBalancer/Signal_Handler.h
+++ b/TAO/orbsvcs/LoadBalancer/Signal_Handler.h
@@ -42,7 +42,6 @@
class TAO_LB_Signal_Handler : public ACE_Task_Base
{
public:
-
/// Constructor.
TAO_LB_Signal_Handler (CORBA::ORB_ptr orb,
PortableServer::POA_ptr poa);
@@ -72,12 +71,10 @@ public:
virtual int handle_signal (int signum, siginfo_t * = 0, ucontext_t * = 0);
protected:
-
/// Template method that initiates the cleanup process.
virtual int perform_cleanup (int signum);
private:
-
#ifdef ACE_HAS_THREADS
/// Block all signals before spawning the threads. Then, unblock
/// these signals when this handler is destroyed.
@@ -93,7 +90,6 @@ private:
/// Reference to the POA within which the LoadManager servant is
/// registered.
PortableServer::POA_var poa_;
-
};
#endif /* TAO_LB_SIGNAL_HANDLER_H */
diff --git a/TAO/orbsvcs/examples/LoadBalancing/ServerRequestInterceptor.h b/TAO/orbsvcs/examples/LoadBalancing/ServerRequestInterceptor.h
index f2bd24e4225..94e2e8b6403 100644
--- a/TAO/orbsvcs/examples/LoadBalancing/ServerRequestInterceptor.h
+++ b/TAO/orbsvcs/examples/LoadBalancing/ServerRequestInterceptor.h
@@ -47,7 +47,6 @@ class ServerRequestInterceptor
public virtual ::CORBA::LocalObject
{
public:
-
/// Constructor.
ServerRequestInterceptor (void);
@@ -82,7 +81,6 @@ public:
CORBA::Long request_count (void);
protected:
-
/// Destructor.
/**
* Protected destructor to enforce correct memory management via
@@ -91,10 +89,8 @@ protected:
~ServerRequestInterceptor (void);
private:
-
/// The number of requests that have arrived on the server.
ACE_Atomic_Op<TAO_SYNCH_MUTEX, long> request_count_;
-
};
#if defined(_MSC_VER)
diff --git a/TAO/orbsvcs/examples/Notify/MC/TkMonitor/monitor.pl b/TAO/orbsvcs/examples/Notify/MC/TkMonitor/monitor.pl
index e0e6dceed43..d9b990ffa73 100755
--- a/TAO/orbsvcs/examples/Notify/MC/TkMonitor/monitor.pl
+++ b/TAO/orbsvcs/examples/Notify/MC/TkMonitor/monitor.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# ************************************************************
# Description : Front end for the Notify Service Monitor
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/AVStreams_i.h b/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.h
index 459d8979c95..f245d0d2535 100644
--- a/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.h
+++ b/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.h
@@ -964,8 +964,7 @@ public:
*/
virtual CORBA::Boolean connect_to_peer (AVStreams::QoS & the_qos,
const char * address,
- const char * use_flow_protocol)
- = 0;
+ const char * use_flow_protocol) = 0;
/// connect to the peer endpoint.
virtual CORBA::Boolean connect_to_peer_i (TAO_FlowSpec_Entry::Role role,
@@ -981,8 +980,7 @@ public:
virtual char * go_to_listen (AVStreams::QoS & the_qos,
CORBA::Boolean is_mcast,
AVStreams::FlowEndPoint_ptr peer,
- char *& flowProtocol)
- = 0;
+ char *& flowProtocol) = 0;
/// listen request from the peer.
virtual char * go_to_listen_i (TAO_FlowSpec_Entry::Role role,
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 6b4dcdf09a8..21b01e17fe0 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.h
@@ -58,15 +58,13 @@ 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
- append_observer (RtecEventChannelAdmin::Observer_ptr)
- = 0;
+ append_observer (RtecEventChannelAdmin::Observer_ptr) = 0;
virtual void remove_observer (
- RtecEventChannelAdmin::Observer_Handle)
- = 0;
+ RtecEventChannelAdmin::Observer_Handle) = 0;
/// Used by the EC to inform the ObserverStrategy that a Consumer has
/// connected or disconnected from it.
@@ -93,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
@@ -132,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
@@ -158,7 +156,7 @@ public:
*/
struct Observer_Entry
{
- Observer_Entry (void);
+ Observer_Entry ();
Observer_Entry (RtecEventChannelAdmin::Observer_Handle h,
RtecEventChannelAdmin::Observer_ptr o);
@@ -243,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 c6ec73de326..01fb9781875 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.h
@@ -62,28 +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;
+ 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
@@ -105,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:
@@ -126,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_;
@@ -161,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;
};
// ****************************************************************
@@ -189,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/ObjectGroupManagerHandler.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ObjectGroupManagerHandler.h
index 39678d4f533..8835c3a1bce 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ObjectGroupManagerHandler.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ObjectGroupManagerHandler.h
@@ -38,7 +38,7 @@ public:
virtual void set_state_excep (::Messaging::ExceptionHolder * excep_holder);
private:
ACE_Auto_Event& evt_;
- ACE_Atomic_Op< TAO_SYNCH_MUTEX, int > num_backups_;
+ ACE_Atomic_Op<TAO_SYNCH_MUTEX, int> num_backups_;
};
TAO_END_VERSIONED_NAMESPACE_DECL
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 cafbd7cdb62..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,11 +279,10 @@ 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;
+ POA_CORBA::ComponentIR::Repository_tie<TAO_ComponentRepository_i> *impl_tie = 0;
ACE_NEW_THROW_EX (
impl_tie,
@@ -372,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.
@@ -464,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 &params)
}
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_ClientComponent.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.h
index 359b4d493df..e21f4aa30cc 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.h
@@ -40,7 +40,6 @@ class TAO_LoadBalancing_Export TAO_LB_ClientComponent
: public ACE_Service_Object
{
public:
-
/// Initializes object when dynamic linking occurs.
virtual int init (int argc, ACE_TCHAR *argv[]);
@@ -48,10 +47,8 @@ public:
virtual int fini (void);
protected:
-
/// Register the LB_ClientComponent's ORBInitializer.
int register_orb_initializer (void);
-
};
TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientORBInitializer.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientORBInitializer.h
index 0d26d87475c..9ce2a887ac8 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientORBInitializer.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientORBInitializer.h
@@ -46,7 +46,6 @@ class TAO_LB_ClientORBInitializer
public virtual ::CORBA::LocalObject
{
public:
-
/**
* @name PortableInterceptor::ORBInitializer Methods
*
@@ -58,7 +57,6 @@ public:
virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info);
//@}
-
};
TAO_END_VERSIONED_NAMESPACE_DECL
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_IORInterceptor.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_IORInterceptor.h
index fe81e8323e5..a82d675db16 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_IORInterceptor.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_IORInterceptor.h
@@ -51,7 +51,6 @@ class TAO_LB_IORInterceptor
public virtual ::CORBA::LocalObject
{
public:
-
/// Constructor.
TAO_LB_IORInterceptor (const CORBA::StringSeq & object_groups,
const CORBA::StringSeq & repository_ids,
@@ -92,12 +91,10 @@ public:
//@}
private:
-
/// Create and register the LoadAlert object with the LoadManager.
void register_load_alert (void);
private:
-
/// List of stringified object group references.
const CORBA::StringSeq object_groups_;
@@ -122,7 +119,6 @@ private:
/// Synchronize access to the class state.
TAO_SYNCH_MUTEX lock_;
-
};
TAO_END_VERSIONED_NAMESPACE_DECL
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_LeastLoaded.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.h
index cfac64f7c8f..9dd963d8549 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.h
@@ -75,7 +75,6 @@ class TAO_LB_LeastLoaded
: public virtual POA_CosLoadBalancing::Strategy
{
public:
-
/// Constructor.
TAO_LB_LeastLoaded (PortableServer::POA_ptr poa);
@@ -107,14 +106,12 @@ public:
//@}
/// Returns the default POA for this servant.
- virtual PortableServer::POA_ptr _default_POA (
- );
+ virtual PortableServer::POA_ptr _default_POA ();
/// Initialize the LeastLoaded instance with the given properties.
void init (const PortableGroup::Properties & props);
protected:
-
/// Destructor.
~TAO_LB_LeastLoaded (void);
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_LoadAlert.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.h
index a0c270e0946..035fdf21aeb 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.h
@@ -28,7 +28,6 @@ class TAO_LoadBalancing_Export TAO_LB_LoadAlert
: public virtual POA_CosLoadBalancing::LoadAlert
{
public:
-
/// Constructor.
TAO_LB_LoadAlert (void);
@@ -62,14 +61,12 @@ public:
virtual ~TAO_LB_LoadAlert (void);
private:
-
/// Has this LoadAlert servant been alerted of a high load condition
/// by the LoadManager?
CORBA::Boolean alerted_;
/// Lock used to synchronized access to the LoadAlert state.
mutable TAO_SYNCH_MUTEX lock_;
-
};
TAO_END_VERSIONED_NAMESPACE_DECL
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_LoadAlertInfo.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertInfo.h
index 0aa3cb0004e..4dec5ef7044 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertInfo.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertInfo.h
@@ -42,7 +42,6 @@ struct TAO_LB_LoadAlertInfo
/// True if the LoadAlert object has been alerted about a given load
/// condition. False otherwise.
CORBA::Boolean alerted;
-
};
TAO_END_VERSIONED_NAMESPACE_DECL
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_LoadAlert_Handler.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert_Handler.h
index 07ca4cfd154..a35561a416b 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert_Handler.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert_Handler.h
@@ -40,23 +40,18 @@ class TAO_LB_LoadAlert_Handler
: public virtual POA_CosLoadBalancing::AMI_LoadAlertHandler
{
public:
-
virtual void enable_alert (void);
- virtual void enable_alert_excep (
- ::Messaging::ExceptionHolder *);
+ virtual void enable_alert_excep (::Messaging::ExceptionHolder *);
virtual void disable_alert (void);
- virtual void disable_alert_excep (
- ::Messaging::ExceptionHolder *);
+ virtual void disable_alert_excep (::Messaging::ExceptionHolder *);
protected:
-
/// Protected destructor to enforce propery memory management
/// through reference counting.
~TAO_LB_LoadAlert_Handler (void);
-
};
TAO_END_VERSIONED_NAMESPACE_DECL
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_LoadMinimum.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.h
index 16f8052feaa..a95028fa71e 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.h
@@ -76,7 +76,6 @@ class TAO_LB_LoadMinimum
: public virtual POA_CosLoadBalancing::Strategy
{
public:
-
/// Constructor.
TAO_LB_LoadMinimum (PortableServer::POA_ptr poa);
@@ -108,14 +107,12 @@ public:
//@}
/// Returns the default POA for this servant.
- virtual PortableServer::POA_ptr _default_POA (
- );
+ virtual PortableServer::POA_ptr _default_POA ();
/// Initialize the LoadMinimum instance with the given properties.
void init (const PortableGroup::Properties & props);
protected:
-
/// Destructor.
~TAO_LB_LoadMinimum (void);
@@ -142,7 +139,6 @@ protected:
CORBA::Float & value);
private:
-
/// This servant's default POA.
PortableServer::POA_var poa_;
@@ -173,7 +169,6 @@ private:
CORBA::Float per_balance_load_;
//@}
-
};
TAO_END_VERSIONED_NAMESPACE_DECL
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 bccb7ac7c05..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 ()
{
}
@@ -125,7 +125,6 @@ TAO_LB_ServerRequestInterceptor::send_exception (
{
// A CORBA::TRANSIENT is thrown when the LoadManager informs the
// LoadAlert object that its member is overloaded, for example.
-
ORBSVCS_DEBUG ((LM_INFO,
ACE_TEXT ("TAO_LB_ServerRequestInterceptor -- ")
ACE_TEXT ("Exception thrown.\n")));
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.h
index cb95039e570..a3ad143d70b 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.h
@@ -49,7 +49,6 @@ class TAO_LoadBalancing_Export TAO_LB_ServerRequestInterceptor
public virtual ::CORBA::LocalObject
{
public:
-
/// Constructor.
TAO_LB_ServerRequestInterceptor (TAO_LB_LoadAlert & load_alert);
@@ -82,7 +81,6 @@ public:
//@}
protected:
-
/// Destructor.
/**
* Protected destructor to enforce correct memory management via
@@ -91,9 +89,7 @@ protected:
~TAO_LB_ServerRequestInterceptor (void);
private:
-
TAO_LB_LoadAlert & load_alert_;
-
};
TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/README b/TAO/orbsvcs/orbsvcs/LoadBalancing/README
index 84bf1466c3e..175e8e074fd 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/README
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/README
@@ -1,5 +1,3 @@
-
-
This directory contains the implementations of the TAO Load Balancing
service, which is called as Cygnus.
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_Persistence_Strategy.h b/TAO/orbsvcs/orbsvcs/Log/Log_Persistence_Strategy.h
index 76e3cb801d5..926277a0f3f 100644
--- a/TAO/orbsvcs/orbsvcs/Log/Log_Persistence_Strategy.h
+++ b/TAO/orbsvcs/orbsvcs/Log/Log_Persistence_Strategy.h
@@ -46,7 +46,7 @@ class TAO_Log_Serv_Export TAO_Log_Persistence_Strategy
public:
/// @brief Log Store Factory
virtual TAO_LogStore*
- create_log_store (TAO_LogMgr_i* logmgr_i) = 0;
+ create_log_store (TAO_LogMgr_i* logmgr_i) = 0;
private:
};
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/Consumer.h b/TAO/orbsvcs/orbsvcs/Notify/Consumer.h
index 98d5c3611e3..3df0b425864 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Consumer.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Consumer.h
@@ -205,9 +205,8 @@ protected:
ACE_Atomic_Op<TAO_SYNCH_MUTEX, ACE_Time_Value> last_ping_;
private:
-
/// Events pending to be delivered.
- ACE_Auto_Ptr< Request_Queue > pending_events_;
+ ACE_Auto_Ptr<Request_Queue> pending_events_;
CORBA::Object_var rtt_obj_;
};
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_Default_Factory.h b/TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MC_Default_Factory.h
index 67021c98ab8..f27157372ac 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MC_Default_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/MonitorControlExt/MC_Default_Factory.h
@@ -36,11 +36,9 @@ class TAO_Notify_MC_Ext_Export TAO_MC_Default_Factory:
public TAO_Notify_Default_Factory
{
public:
-#if !defined (__GNUC__) || (__GNUC__ >= 3)
/// Instruct the compiler that we want the create
/// methods from the base class as well
using TAO_Notify_Default_Factory::create;
-#endif /* !__GNUC__ || __GNUC__ >= 3 */
/// Create the channel factory.
virtual void create (TAO_Notify_EventChannelFactory*& factory,
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_Factory.h b/TAO/orbsvcs/orbsvcs/Notify/RT_Factory.h
index d8e61bda16b..8e47d1fb080 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/RT_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/RT_Factory.h
@@ -38,11 +38,9 @@ public:
/// Destructor
virtual ~TAO_Notify_RT_Factory ();
-#if !defined (__GNUC__) || (__GNUC__ >= 3)
/// Instruct the compiler that we want the create
/// methods from the base class as well
using TAO_Notify_Default_Factory::create;
-#endif /* !__GNUC__ || __GNUC__ >= 3 */
/// Create StructuredProxyPushSupplier
virtual void create (TAO_Notify_StructuredProxyPushSupplier*& proxy);
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 e95438ef6b4..a57cd230a60 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Refcountable.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Refcountable.cpp
@@ -3,7 +3,7 @@
#include "orbsvcs/Log_Macros.h"
#include "ace/Guard_T.h"
-#if ( TAO_NOTIFY_REFCOUNT_DIAGNOSTICS != 0 )
+#if (TAO_NOTIFY_REFCOUNT_DIAGNOSTICS != 0)
#include <map>
#include <string>
@@ -62,13 +62,13 @@ 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 ()
{
}
TAO_Notify_Refcountable::~TAO_Notify_Refcountable ()
{
-#if ( TAO_NOTIFY_REFCOUNT_DIAGNOSTICS != 0 )
+#if (TAO_NOTIFY_REFCOUNT_DIAGNOSTICS != 0)
TAO_Notify_Tracker::Entry e = TAO_Notify_Tracker::get_instance().find( this );
if ( e.obj != 0 )
{
@@ -90,14 +90,14 @@ 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 )
{
ORBSVCS_DEBUG ((LM_DEBUG,"object:%x incr refcount = %d\n", this, refcount ));
}
-#if ( TAO_NOTIFY_REFCOUNT_DIAGNOSTICS != 0 )
+#if (TAO_NOTIFY_REFCOUNT_DIAGNOSTICS != 0)
// Stack-instantiated-non-servants should never have _incr_refcnt called.
// We do not care about stack-instances. Stack-instantiated servants break
// the tracker.
@@ -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_;
@@ -131,7 +131,7 @@ TAO_Notify_Refcountable::_decr_refcnt (void)
return refcount;
}
-#if ( TAO_NOTIFY_REFCOUNT_DIAGNOSTICS != 0 )
+#if (TAO_NOTIFY_REFCOUNT_DIAGNOSTICS != 0)
std::auto_ptr< TAO_Notify_Tracker > TAO_Notify_Tracker::s_instance;
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Refcountable.h b/TAO/orbsvcs/orbsvcs/Notify/Refcountable.h
index b45d3623d15..f3c96c621d8 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Refcountable.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Refcountable.h
@@ -58,7 +58,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_Notify_Serv_Export TAO_Notify_Refcountable
{
public:
- typedef TAO_Notify_Refcountable_Guard_T< TAO_Notify_Refcountable > Ptr;
+ typedef TAO_Notify_Refcountable_Guard_T<TAO_Notify_Refcountable> Ptr;
/// Constructor
TAO_Notify_Refcountable (void);
@@ -67,12 +67,12 @@ public:
/// public for stack allocated instances
virtual ~TAO_Notify_Refcountable ();
- /// This method sigantures deliberately match the RefCounting methods required for ESF Proxy
+ /// This method signatures deliberately match the RefCounting methods required for ESF Proxy
/// Public for bridge implementations and various guard classes
CORBA::ULong _incr_refcnt (void);
CORBA::ULong _decr_refcnt (void);
-#if ( TAO_NOTIFY_REFCOUNT_DIAGNOSTICS != 0 )
+#if (TAO_NOTIFY_REFCOUNT_DIAGNOSTICS != 0)
static void diagnostic_dump( const char* title = 0 );
#endif
@@ -84,7 +84,7 @@ private:
/// boundary conditions such as too many _decr_refcnt() calls.
ACE_Atomic_Op<TAO_SYNCH_MUTEX, CORBA::Long> refcount_;
-#if ( TAO_NOTIFY_REFCOUNT_DIAGNOSTICS != 0 )
+#if (TAO_NOTIFY_REFCOUNT_DIAGNOSTICS != 0)
friend class TAO_Notify_Tracker;
int ref_id_;
#endif
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_Properties_Encoder.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Encoder.h
index 6f8c5d2070b..9c8cb300bca 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Encoder.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Encoder.h
@@ -55,7 +55,7 @@ namespace TAO_PG
/// Meaningless method to keep ACE_Vector happy
bool operator != (const NamedValue &rhs) const;
};
- typedef ACE_Vector< NamedValue, 10 > NamedValueVec;
+ typedef ACE_Vector<NamedValue, 10> NamedValueVec;
public:
/**
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 704b3cde555..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)
@@ -577,7 +577,7 @@ int
TAO::SSLIOP::Acceptor::parse_options_i (int &argc, ACE_CString ** argv)
{
//first, do the base class parser, then parse the leftovers.
- int result = this->IIOP_SSL_Acceptor::parse_options_i(argc,argv);
+ int const result = this->IIOP_SSL_Acceptor::parse_options_i(argc,argv);
if (result == -1)
return result;
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_SecurityCurrent_Impl.h b/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.h
index 4242a6fc6a8..cb8a06bff3f 100644
--- a/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.h
+++ b/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.h
@@ -45,7 +45,6 @@ namespace TAO
class TAO_Security_Export SecurityCurrent_Impl
{
public:
-
/// Destructor.
virtual ~SecurityCurrent_Impl (void);
@@ -58,17 +57,14 @@ namespace TAO
//@{
/// Return the Credentials received from the client associate with
/// the current request.
- virtual SecurityLevel3::ClientCredentials_ptr client_credentials ()
- = 0;
+ virtual SecurityLevel3::ClientCredentials_ptr client_credentials () = 0;
/// Is the current request local?
- virtual CORBA::Boolean request_is_local ()
- = 0;
+ virtual CORBA::Boolean request_is_local () = 0;
//@}
/// Return the unique tag that identifies the concrete subclass.
virtual CORBA::ULong tag (void) const = 0;
-
};
} // End Security namespace.
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/Security/Security_Current_Impl.h b/TAO/orbsvcs/orbsvcs/Security/Security_Current_Impl.h
index aa1825c25ca..3931509fc0a 100644
--- a/TAO/orbsvcs/orbsvcs/Security/Security_Current_Impl.h
+++ b/TAO/orbsvcs/orbsvcs/Security/Security_Current_Impl.h
@@ -59,8 +59,7 @@ namespace TAO
/// the given attribute type list associated with the current
/// request.
virtual ::Security::AttributeList * get_attributes (
- const ::Security::AttributeTypeList & attributes)
- = 0;
+ const ::Security::AttributeTypeList & attributes) = 0;
//@}
/**
@@ -72,8 +71,7 @@ namespace TAO
//@{
/// Return the Credentials received from the client associate with
/// the current request.
- virtual SecurityLevel2::ReceivedCredentials_ptr received_credentials ()
- = 0;
+ virtual SecurityLevel2::ReceivedCredentials_ptr received_credentials () = 0;
//@}
/// Return the unique tag that identifies the concrete subclass.
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/Offer_Iterators.h b/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.h
index 4ed2f171cb5..9ae6c26fd71 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.h
+++ b/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.h
@@ -62,8 +62,7 @@ public:
virtual void add_offer (CosTrading::OfferId offer_id,
const CosTrading::Offer* offer) = 0;
- virtual CORBA::ULong max_left (void)
- = 0;
+ virtual CORBA::ULong max_left (void) = 0;
// BEGIN SPEC
// The max_left operation returns the number of service offers
@@ -88,10 +87,8 @@ public:
* END SPEC
*/
virtual CORBA::Boolean next_n (CORBA::ULong n,
- CosTrading::OfferSeq_out offers)
- = 0;
+ CosTrading::OfferSeq_out offers) = 0;
protected:
-
TAO_Offer_Iterator& operator=(const TAO_Offer_Iterator&);
/// The filter through which each returned offer must pass. Used to
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/Trader_Utils.h b/TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.h
index 6e53cce11c5..cf24bbcd1d3 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.h
+++ b/TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.h
@@ -179,7 +179,6 @@ class TAO_Trading_Serv_Export TAO_Dynamic_Property
: public virtual POA_CosTradingDynamic::DynamicPropEval
{
public:
-
TAO_Dynamic_Property (void) {}
virtual ~TAO_Dynamic_Property (void);
@@ -188,8 +187,7 @@ public:
/// Dynamic property evaluation call-back method.
virtual CORBA::Any* evalDP(const char* name,
CORBA::TypeCode_ptr returned_type,
- const CORBA::Any& extra_info)
- = 0;
+ const CORBA::Any& extra_info) = 0;
/// Method to construct a dynamic property structure suitable for
/// exporting in a CosTrading::PropertyStruct to the Trading Service.
@@ -199,7 +197,6 @@ public:
const CORBA::Any& extra_info);
private:
-
CosTradingDynamic::DynamicPropEval_var prop_;
};
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/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/ServerRequestInterceptor.h b/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/ServerRequestInterceptor.h
index c52581f9fcd..d13ec9d6a4c 100644
--- a/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/ServerRequestInterceptor.h
+++ b/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/ServerRequestInterceptor.h
@@ -46,7 +46,6 @@ class ServerRequestInterceptor
public virtual ::CORBA::LocalObject
{
public:
-
/// Constructor.
ServerRequestInterceptor (void);
@@ -81,7 +80,6 @@ public:
CORBA::Long request_count (void);
protected:
-
/// Destructor.
/**
* Protected destructor to enforce correct memory management via
@@ -90,10 +88,8 @@ protected:
~ServerRequestInterceptor (void);
private:
-
/// The number of requests that have arrived on the server.
ACE_Atomic_Op<TAO_SYNCH_MUTEX, long> request_count_;
-
};
#if defined(_MSC_VER)
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/compare_histo.pl b/TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/compare_histo.pl
index ae8ac9b2f88..8cfae24888d 100755
--- a/TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/compare_histo.pl
+++ b/TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/compare_histo.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
#
use English;
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/generate_gnuplot.pl b/TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/generate_gnuplot.pl
index 193c196319f..16726a37d2a 100755
--- a/TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/generate_gnuplot.pl
+++ b/TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/generate_gnuplot.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
#
foreach $t (@ARGV) {
diff --git a/TAO/orbsvcs/tests/Bug_2248_Regression/README b/TAO/orbsvcs/tests/Bug_2248_Regression/README
index 83b9b9e3d0d..5460419e89b 100644
--- a/TAO/orbsvcs/tests/Bug_2248_Regression/README
+++ b/TAO/orbsvcs/tests/Bug_2248_Regression/README
@@ -1,7 +1,7 @@
This test is regression for bug 2248
-http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=2248
+http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=2248
To run:
diff --git a/TAO/orbsvcs/tests/Bug_2285_Regression/README b/TAO/orbsvcs/tests/Bug_2285_Regression/README
index 91dfe60cbd5..e2f8f197abd 100644
--- a/TAO/orbsvcs/tests/Bug_2285_Regression/README
+++ b/TAO/orbsvcs/tests/Bug_2285_Regression/README
@@ -1,6 +1,6 @@
-See http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=2285 for more.
+See http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=2285 for more.
These two test scenarios test that the following FT spec conditions are met:
diff --git a/TAO/orbsvcs/tests/Bug_2287_Regression/README b/TAO/orbsvcs/tests/Bug_2287_Regression/README
index e3ce00ed60a..7ba1ebb7956 100644
--- a/TAO/orbsvcs/tests/Bug_2287_Regression/README
+++ b/TAO/orbsvcs/tests/Bug_2287_Regression/README
@@ -2,7 +2,7 @@
This test provides regression coverage for bugzilla #2287.
-See http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=2287 for more.
+See http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=2287 for more.
The server installs a server request interceptor and persistent servant and writes out an IOGR for itself.
The client installs client side FT support and invokes the method "throw_location_forward" on the IOGR.
diff --git a/TAO/orbsvcs/tests/Bug_2925_Regression/README b/TAO/orbsvcs/tests/Bug_2925_Regression/README
index 259005e721b..1d643442272 100644
--- a/TAO/orbsvcs/tests/Bug_2925_Regression/README
+++ b/TAO/orbsvcs/tests/Bug_2925_Regression/README
@@ -1,6 +1,6 @@
-Read http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=2925 for
+Read http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=2925 for
more details.
This test uses dscp over both IPv4 and IPv6 and basically there is
diff --git a/TAO/orbsvcs/tests/Bug_3215_Regression/README b/TAO/orbsvcs/tests/Bug_3215_Regression/README
index 218a1cd32a1..28bd9c7f3d7 100644
--- a/TAO/orbsvcs/tests/Bug_3215_Regression/README
+++ b/TAO/orbsvcs/tests/Bug_3215_Regression/README
@@ -44,7 +44,7 @@ The below is the original documentation for the bug #2287 test between []'s for
[This test provides regression coverage for bugzilla #2287.
-See http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=2287 for more.
+See http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=2287 for more.
The server installs a server request interceptor and persistent servant and writes out an IOGR for itself.
The client installs client side FT support and invokes the method "throw_location_forward" on the IOGR.
diff --git a/TAO/orbsvcs/tests/FT_App/README b/TAO/orbsvcs/tests/FT_App/README
index 55c018fc848..ae8f11fdf2c 100644
--- a/TAO/orbsvcs/tests/FT_App/README
+++ b/TAO/orbsvcs/tests/FT_App/README
@@ -26,7 +26,7 @@ Commands consist of a single character followed by an optional number
(with no space between). For example: =10 sets the value of the counter
to 10. +5 increments the counter by 5 (thereby setting the value to 15).
-The '?' commmand lists the possible commands and their options.
+The '?' command lists the possible commands and their options.
Additional programs:
ft_notifier is a stub implementation of a fault notifier for testing fault detectors.
diff --git a/TAO/orbsvcs/tests/Miop/McastFragmentation/Hello_Impl.h b/TAO/orbsvcs/tests/Miop/McastFragmentation/Hello_Impl.h
index ffa68678b76..68dc7ab118a 100644
--- a/TAO/orbsvcs/tests/Miop/McastFragmentation/Hello_Impl.h
+++ b/TAO/orbsvcs/tests/Miop/McastFragmentation/Hello_Impl.h
@@ -6,7 +6,7 @@
#include "HelloS.h"
#include "ace/Atomic_Op_T.h"
-extern ACE_Atomic_Op< TAO_SYNCH_MUTEX, u_long > Number_of_Problems;
+extern ACE_Atomic_Op<TAO_SYNCH_MUTEX, u_long> Number_of_Problems;
class UIPMC_Object_Impl : public virtual POA_Test::UIPMC_Object
{
diff --git a/TAO/orbsvcs/tests/Notify/Basic/Sequence.h b/TAO/orbsvcs/tests/Notify/Basic/Sequence.h
index 420cf902d0e..ebff1041c48 100644
--- a/TAO/orbsvcs/tests/Notify/Basic/Sequence.h
+++ b/TAO/orbsvcs/tests/Notify/Basic/Sequence.h
@@ -32,8 +32,7 @@ public:
// = SequencePushConsumer methods
virtual void push_structured_events (
- const CosNotification::EventBatch & notifications
- );
+ const CosNotification::EventBatch & notifications);
protected:
Sequence* test_client_;
diff --git a/TAO/orbsvcs/tests/Property/client.cpp b/TAO/orbsvcs/tests/Property/client.cpp
index b1d8451a31e..02c8642afea 100644
--- a/TAO/orbsvcs/tests/Property/client.cpp
+++ b/TAO/orbsvcs/tests/Property/client.cpp
@@ -170,7 +170,7 @@ Client::test_get_all_property_names (void)
CORBA::ULong how_many = num_of_properties / 2;
// The extra ptr's and out's required to avoind SunnCC's warning
- // when foo.out () is passed to a funtion.
+ // when foo.out () is passed to a function.
CosPropertyService::PropertyNames_var names_var;
CosPropertyService::PropertyNames *names_ptr = 0;
CosPropertyService::PropertyNames_out names_out (names_ptr);
@@ -502,7 +502,7 @@ Client::test_get_all_properties (void)
CosPropertyService::Property* property_ptr = 0;
CosPropertyService::Property_out property_out (property_ptr);
- // Call the funtion.
+ // Call the function.
CORBA::Boolean next_one_result = iterator->next_one (property_out);
// Get the value to the _var variable.
diff --git a/TAO/orbsvcs/tests/Simple_Naming/README b/TAO/orbsvcs/tests/Simple_Naming/README
index be49d98e286..fe856d9e10b 100644
--- a/TAO/orbsvcs/tests/Simple_Naming/README
+++ b/TAO/orbsvcs/tests/Simple_Naming/README
@@ -156,7 +156,7 @@ root->resolve (level1/level2/foo) to make sure correct reference is returned.
Expected Output:
-All funtions work properly
+All functions work properly
********************************************
Exceptions Test.
diff --git a/TAO/performance-tests/README b/TAO/performance-tests/README
index 89b86cc1806..2873606c899 100644
--- a/TAO/performance-tests/README
+++ b/TAO/performance-tests/README
@@ -1,38 +1,34 @@
-
-
This directory contains a number of tests that illustrate the
-performance of TAO and other ORBs. The individual directories contain
+performance of TAO and other ORBs. The individual directories contain
READMEs on how to run the following performance tests:
- . Cubit
-
- This directory contains performance tests for TAO that
- measure the latency, jitter, CPU utilization, and
- priority inversion of these ORBs.
-
- . Latency
+. Cubit
- A set of performance tests that measure throughput, latency
- and jitter.
+ This directory contains performance tests for TAO that
+ measure the latency, jitter, CPU utilization, and
+ priority inversion of these ORBs.
- . POA
+. Latency
- Various tests of the TAO's POA performance.
+ A set of performance tests that measure throughput, latency
+ and jitter.
- . Pluggable
+. POA
- The tests in this directory time the latency contributed by
- various parts of the ORB, but mostly the emphasis is on the
- contribution due to the pluggable protocols code.
+ Various tests of the TAO's POA performance.
- . RTCorba
+. Pluggable
- Tests for various (TAO-specific) real-time features. Tests
- for RT CORBA spec real-time features can be found in
- $TAO_ROOT/tests/RTCORBA.
+ The tests in this directory time the latency contributed by
+ various parts of the ORB, but mostly the emphasis is on the
+ contribution due to the pluggable protocols code.
- . Throughput
+. RTCorba
- Throughput tests (bytes per second) for TAO.
+ Tests for various (TAO-specific) real-time features. Tests
+ for RT CORBA spec real-time features can be found in
+ $TAO_ROOT/tests/RTCORBA.
+. Throughput
+ Throughput tests (bytes per second) for TAO.
diff --git a/TAO/tao/Abstract_Servant_Base.cpp b/TAO/tao/Abstract_Servant_Base.cpp
index a1605345254..fc917331b46 100644
--- a/TAO/tao/Abstract_Servant_Base.cpp
+++ b/TAO/tao/Abstract_Servant_Base.cpp
@@ -7,7 +7,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Abstract_ServantBase::~TAO_Abstract_ServantBase (void)
+TAO_Abstract_ServantBase::~TAO_Abstract_ServantBase ()
{
}
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.cpp b/TAO/tao/Acceptor_Filter.cpp
index 26a7f1d33d9..6c1fe0bad53 100644
--- a/TAO/tao/Acceptor_Filter.cpp
+++ b/TAO/tao/Acceptor_Filter.cpp
@@ -3,7 +3,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Acceptor_Filter::~TAO_Acceptor_Filter (void)
+TAO_Acceptor_Filter::~TAO_Acceptor_Filter ()
{
}
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.cpp b/TAO/tao/Acceptor_Registry.cpp
index 9adc59e4f45..f502fe89c0d 100644
--- a/TAO/tao/Acceptor_Registry.cpp
+++ b/TAO/tao/Acceptor_Registry.cpp
@@ -24,13 +24,13 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Acceptor_Registry::TAO_Acceptor_Registry (void)
- : acceptors_ (0),
+TAO_Acceptor_Registry::TAO_Acceptor_Registry ()
+ : acceptors_ (nullptr),
size_ (0)
{
}
-TAO_Acceptor_Registry::~TAO_Acceptor_Registry (void)
+TAO_Acceptor_Registry::~TAO_Acceptor_Registry ()
{
this->close_all ();
@@ -38,7 +38,7 @@ TAO_Acceptor_Registry::~TAO_Acceptor_Registry (void)
}
size_t
-TAO_Acceptor_Registry::endpoint_count (void)
+TAO_Acceptor_Registry::endpoint_count ()
{
size_t count = 0;
const TAO_AcceptorSetIterator end = this->end ();
@@ -77,7 +77,7 @@ TAO_Acceptor_Registry::is_collocated (const TAO_MProfile &mprofile)
// operation if the below is_collocated() call
// also executes a loop.
for (TAO_Endpoint *endp = pf->endpoint ();
- endp != 0;
+ endp != nullptr;
endp = endp->next ())
{
if ((*i)->is_collocated (endp))
@@ -106,7 +106,7 @@ TAO_Acceptor_Registry::get_acceptor (CORBA::ULong tag)
}
}
- return 0;
+ return nullptr;
}
int
@@ -121,7 +121,7 @@ TAO_Acceptor_Registry::open (TAO_ORB_Core *orb_core,
// All TAO pluggable protocols are expected to have the ability
// to create a default endpoint.
- && this->open_default (orb_core, reactor, 0) == -1)
+ && this->open_default (orb_core, reactor, nullptr) == -1)
{
throw ::CORBA::INTERNAL (
CORBA::SystemException::_tao_minor_code (
@@ -135,7 +135,7 @@ TAO_Acceptor_Registry::open (TAO_ORB_Core *orb_core,
size_t acceptor_count = 0;
TAO_EndpointSetIterator endpts (endpoint_set);
- for (ACE_CString *ep = 0;
+ for (ACE_CString *ep = nullptr;
endpts.next (ep) != 0;
endpts.advance ())
{
@@ -199,7 +199,7 @@ TAO_Acceptor_Registry::open (TAO_ORB_Core *orb_core,
ep->c_str () + ACE_OS::strlen (ep->c_str ());
for (const char *e = ACE_OS::strchr (ep->c_str (), ',');
- e != 0 && e != ep_end;
+ e != nullptr && e != ep_end;
e = ACE_OS::strchr (e, ','))
{
++acceptor_count;
@@ -209,7 +209,7 @@ TAO_Acceptor_Registry::open (TAO_ORB_Core *orb_core,
// The array containing the TAO_Acceptors will never contain more
// than the number of endpoints stored in TAO_ORB_Parameters.
- if (this->acceptors_ == 0)
+ if (this->acceptors_ == nullptr)
{
ACE_NEW_THROW_EX (this->acceptors_,
TAO_Acceptor *[acceptor_count],
@@ -222,7 +222,7 @@ TAO_Acceptor_Registry::open (TAO_ORB_Core *orb_core,
TAO_EndpointSetIterator endpoints (endpoint_set);
- for (ACE_CString *endpoint = 0;
+ for (ACE_CString *endpoint = nullptr;
endpoints.next (endpoint) != 0;
endpoints.advance ())
{
@@ -482,7 +482,7 @@ int TAO_Acceptor_Registry::open_default (TAO_ORB_Core *orb_core,
// endpoints were specified by the user, meaning that the number of
// acceptors will never be more than the number of loaded protocols
// in the ORB core.
- if (this->acceptors_ == 0)
+ if (this->acceptors_ == nullptr)
{
ACE_NEW_RETURN (this->acceptors_,
TAO_Acceptor *[pfs->size ()],
@@ -552,7 +552,7 @@ TAO_Acceptor_Registry::open_default (TAO_ORB_Core *orb_core,
// Make an acceptor
TAO_Acceptor *acceptor = (*factory)->factory ()->make_acceptor ();
- if (acceptor == 0)
+ if (acceptor == nullptr)
{
if (TAO_debug_level > 0)
{
@@ -611,13 +611,13 @@ TAO_Acceptor_Registry::open_default_i (TAO_ORB_Core *orb_core,
}
int
-TAO_Acceptor_Registry::close_all (void)
+TAO_Acceptor_Registry::close_all ()
{
const TAO_AcceptorSetIterator end = this->end ();
for (TAO_AcceptorSetIterator i = this->begin (); i != end; ++i)
{
- if (*i != 0)
+ if (*i != nullptr)
{
(*i)->close ();
delete *i;
@@ -679,14 +679,14 @@ TAO_Acceptor_Registry::open_i (TAO_ORB_Core *orb_core,
ACE_CString options_tmp;
this->extract_endpoint_options (addrs, options_tmp, (*factory)->factory ());
- const char *options = 0;
+ const char *options = nullptr;
if (options_tmp.length () > 0)
{
options = options_tmp.c_str ();
}
- char *last_addr = 0;
+ char *last_addr = nullptr;
ACE_Auto_Basic_Array_Ptr<char> addr_str (addrs.rep ());
const char *astr = ACE_OS::strtok_r (addr_str.get (), ",", &last_addr);
@@ -699,11 +699,11 @@ TAO_Acceptor_Registry::open_i (TAO_ORB_Core *orb_core,
// possible for astr to be 0. This indicates that
// the user is requesting the default endpoint for
// the specified protocol.
- ACE_CString address (astr == 0 ? "" : astr);
+ ACE_CString address (astr == nullptr ? "" : astr);
TAO_Acceptor *acceptor = (*factory)->factory ()->make_acceptor ();
- if (acceptor != 0)
+ if (acceptor != nullptr)
{
// Extract the desired endpoint/protocol version if one
// exists.
@@ -878,7 +878,7 @@ TAO_Acceptor_Registry::open_i (TAO_ORB_Core *orb_core,
CORBA::COMPLETED_NO);
}
}
- while (astr != 0 && (astr = ACE_OS::strtok_r (0, ",", &last_addr)) != 0);
+ while (astr != nullptr && (astr = ACE_OS::strtok_r (nullptr, ",", &last_addr)) != nullptr);
return 0;
}
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.cpp b/TAO/tao/Adapter.cpp
index b77750e0b27..bc5ff33898d 100644
--- a/TAO/tao/Adapter.cpp
+++ b/TAO/tao/Adapter.cpp
@@ -2,7 +2,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Adapter::~TAO_Adapter (void)
+TAO_Adapter::~TAO_Adapter ()
{
}
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.cpp b/TAO/tao/Adapter_Factory.cpp
index 20a5f497a1a..3485f9913da 100644
--- a/TAO/tao/Adapter_Factory.cpp
+++ b/TAO/tao/Adapter_Factory.cpp
@@ -4,7 +4,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Adapter_Factory::~TAO_Adapter_Factory (void)
+TAO_Adapter_Factory::~TAO_Adapter_Factory ()
{
}
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.cpp b/TAO/tao/Adapter_Registry.cpp
index e6c04ff658d..df2ab410265 100644
--- a/TAO/tao/Adapter_Registry.cpp
+++ b/TAO/tao/Adapter_Registry.cpp
@@ -15,13 +15,13 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Adapter_Registry::TAO_Adapter_Registry (TAO_ORB_Core *)
: adapters_capacity_ (16), // @@ Make it configurable
adapters_count_ (0),
- adapters_ (0)
+ adapters_ (nullptr)
{
ACE_NEW (this->adapters_,
TAO_Adapter*[this->adapters_capacity_]);
}
-TAO_Adapter_Registry::~TAO_Adapter_Registry (void)
+TAO_Adapter_Registry::~TAO_Adapter_Registry ()
{
for (size_t i = 0; i != this->adapters_count_; ++i)
delete this->adapters_[i];
@@ -67,7 +67,7 @@ TAO_Adapter_Registry::insert (TAO_Adapter *adapter)
if (this->adapters_capacity_ == this->adapters_count_)
{
this->adapters_capacity_ *= 2;
- TAO_Adapter **tmp = 0;
+ TAO_Adapter **tmp = nullptr;
ACE_NEW_THROW_EX (tmp,
TAO_Adapter*[this->adapters_capacity_],
CORBA::NO_MEMORY ());
@@ -126,7 +126,7 @@ TAO_Adapter_Registry::create_collocated_object (TAO_Stub *stub,
{
CORBA::Object_ptr x =
this->adapters_[i]->create_collocated_object (stub, mprofile);
- if (x != 0)
+ if (x != nullptr)
{
if (!stub->collocated_servant ())
{
@@ -145,7 +145,7 @@ TAO_Adapter_Registry::create_collocated_object (TAO_Stub *stub,
return x;
}
}
- return 0;
+ return nullptr;
}
CORBA::Long
@@ -174,7 +174,7 @@ TAO_Adapter_Registry::find_adapter (const char *name) const
if (ACE_OS::strcmp ((*i)->name (), name) == 0)
return *i;
- return 0;
+ return nullptr;
}
TAO_END_VERSIONED_NAMESPACE_DECL
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 678233f3951..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 =
@@ -161,8 +157,7 @@ TAO::Any_Array_Impl_T<T_slice, T_forany>::free_value (void)
template<typename T_slice, typename T_forany>
void
-TAO::Any_Array_Impl_T<T_slice, T_forany>::_tao_decode (TAO_InputCDR &cdr
- )
+TAO::Any_Array_Impl_T<T_slice, T_forany>::_tao_decode (TAO_InputCDR &cdr)
{
if (! this->demarshal_value (cdr))
{
diff --git a/TAO/tao/AnyTypeCode/Any_Array_Impl_T.h b/TAO/tao/AnyTypeCode/Any_Array_Impl_T.h
index b2879bf3438..660d3080136 100644
--- a/TAO/tao/AnyTypeCode/Any_Array_Impl_T.h
+++ b/TAO/tao/AnyTypeCode/Any_Array_Impl_T.h
@@ -51,8 +51,7 @@ namespace TAO
virtual CORBA::Boolean marshal_value (TAO_OutputCDR &);
CORBA::Boolean demarshal_value (TAO_InputCDR &);
- virtual void _tao_decode (TAO_InputCDR &
- );
+ virtual void _tao_decode (TAO_InputCDR &);
virtual const void *value (void) const;
virtual void free_value (void);
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 c153ea9ce8c..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,
@@ -52,11 +52,10 @@ namespace TAO
virtual CORBA::Boolean marshal_value (TAO_OutputCDR &);
CORBA::Boolean demarshal_value (TAO_InputCDR &);
- virtual void _tao_decode (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.cpp b/TAO/tao/AnyTypeCode/Enum_TypeCode.cpp
index 2297a263a00..37e64256a52 100644
--- a/TAO/tao/AnyTypeCode/Enum_TypeCode.cpp
+++ b/TAO/tao/AnyTypeCode/Enum_TypeCode.cpp
@@ -157,8 +157,7 @@ TAO::TypeCode::Enum<StringType,
adapter->create_enum_tc (this->base_attributes_.id (),
"" /* empty name */,
tc_enumerators,
- this->nenumerators_
- );
+ this->nenumerators_);
}
template <typename StringType, class EnumeratorArrayType, class RefCountPolicy>
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 5ef55878740..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_);
@@ -154,15 +154,14 @@ TAO::TypeCode::Enum<char const *,
adapter->create_enum_tc (this->base_attributes_.id (),
"" /* empty name */,
tc_enumerators,
- this->nenumerators_
- );
+ this->nenumerators_);
}
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.
@@ -173,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.
@@ -184,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 06aadae7364..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 ()
{
}
@@ -121,8 +121,7 @@ TAO::TypeCode::Struct<char const *,
char const * const lhs_name =
Traits<char const *>::get_string (lhs_field.name);
- char const * const rhs_name = tc->member_name (i
- );
+ char const * const rhs_name = tc->member_name (i);
if (ACE_OS::strcmp (lhs_name, rhs_name) != 0)
return false;
@@ -182,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> >
@@ -230,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.
@@ -242,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.
@@ -254,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.cpp b/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.cpp
index 32f411cb9e5..f383c79659d 100644
--- a/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.cpp
+++ b/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.cpp
@@ -18,13 +18,11 @@ TAO::TypeCode::Case<StringType, TypeCodeType>::~Case (void)
template <typename StringType, typename TypeCodeType>
bool
TAO::TypeCode::Case<StringType, TypeCodeType>::equal (CORBA::ULong index,
- CORBA::TypeCode_ptr tc
- ) const
+ CORBA::TypeCode_ptr tc) const
{
// Check case names.
char const * const lhs_name = this->name ();
- char const * const rhs_name = tc->member_name (index
- );
+ char const * const rhs_name = tc->member_name (index);
if (ACE_OS::strcmp (lhs_name, rhs_name) != 0)
return false;
@@ -32,49 +30,40 @@ TAO::TypeCode::Case<StringType, TypeCodeType>::equal (CORBA::ULong index,
// Check case TypeCodes.
CORBA::TypeCode_ptr const lhs_tc = this->type ();
CORBA::TypeCode_var const rhs_tc =
- tc->member_type (index
- );
+ tc->member_type (index);
CORBA::Boolean const equal_members =
- lhs_tc->equal (rhs_tc.in ()
- );
+ lhs_tc->equal (rhs_tc.in ());
if (!equal_members)
return false;
// Check case label.
- return this->equal_label (index,
- tc
- );
+ return this->equal_label (index, tc);
}
template <typename StringType, typename TypeCodeType>
bool
TAO::TypeCode::Case<StringType, TypeCodeType>::equivalent (
CORBA::ULong index,
- CORBA::TypeCode_ptr tc
- ) const
+ CORBA::TypeCode_ptr tc) const
{
// Member names are ignore when determining equivalence.
// Check case TypeCodes.
CORBA::TypeCode_ptr const lhs_tc = this->type ();
CORBA::TypeCode_var const rhs_tc =
- tc->member_type (index
- );
+ tc->member_type (index);
CORBA::Boolean const equivalent_members =
- lhs_tc->equivalent (rhs_tc.in ()
- );
+ lhs_tc->equivalent (rhs_tc.in ());
if (!equivalent_members)
return 0;
// Check case label.
// The label must be equal when determining equivalence, too.
- return this->equal_label (index,
- tc
- );
+ return this->equal_label (index, tc);
}
TAO_END_VERSIONED_NAMESPACE_DECL
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.cpp b/TAO/tao/AnyTypeCode/TypeCode_Case_T.cpp
index 86219d92c73..faf3d0745af 100644
--- a/TAO/tao/AnyTypeCode/TypeCode_Case_T.cpp
+++ b/TAO/tao/AnyTypeCode/TypeCode_Case_T.cpp
@@ -112,8 +112,7 @@ bool
TAO::TypeCode::Case_T<DiscriminatorType,
StringType,
TypeCodeType>::equal_label (CORBA::ULong index,
- CORBA::TypeCode_ptr tc
- ) const
+ CORBA::TypeCode_ptr tc) const
{
CORBA::Any_var const any = tc->member_label (index);
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.cpp b/TAO/tao/AnyTypeCode/Union_TypeCode.cpp
index accfab8d9d9..6a6a6b145b9 100644
--- a/TAO/tao/AnyTypeCode/Union_TypeCode.cpp
+++ b/TAO/tao/AnyTypeCode/Union_TypeCode.cpp
@@ -254,8 +254,7 @@ TAO::TypeCode::Union<StringType,
// // the compact TypeCode.
// tc_cases[i].name = empty_name;
// tc_cases[i].type =
-// this->cases_[i]->type ()->get_compact_typecode (
-// );
+// this->cases_[i]->type ()->get_compact_typecode ();
// }
// }
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 b3bb39e4aac..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;
@@ -218,8 +218,7 @@ TAO::TypeCode::Union<char const *,
// // the compact TypeCode.
// tc_cases[i].name = empty_name;
// tc_cases[i].type =
-// this->cases_[i]->type ()->get_compact_typecode (
-// );
+// this->cases_[i]->type ()->get_compact_typecode ();
// }
// }
@@ -254,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.
@@ -266,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.
@@ -278,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_;
}
@@ -353,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 (
@@ -365,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.cpp b/TAO/tao/AnyTypeCode/Value_TypeCode.cpp
index a720506dc0b..e19f8a95c33 100644
--- a/TAO/tao/AnyTypeCode/Value_TypeCode.cpp
+++ b/TAO/tao/AnyTypeCode/Value_TypeCode.cpp
@@ -162,8 +162,7 @@ TAO::TypeCode::Value<StringType,
tc->concrete_base_type ();
CORBA::Boolean const equal_concrete_base_types =
- this->equal (rhs_concrete_base_type.in ()
- );
+ this->equal (rhs_concrete_base_type.in ());
if (!equal_concrete_base_types)
return false;
@@ -180,9 +179,7 @@ TAO::TypeCode::Value<StringType,
this->fields_[i];
CORBA::Visibility const lhs_visibility = lhs_field.visibility;
- CORBA::Visibility const rhs_visibility =
- tc->member_visibility (i
- );
+ CORBA::Visibility const rhs_visibility = tc->member_visibility (i);
if (lhs_visibility != rhs_visibility)
return false;
@@ -262,8 +259,7 @@ TAO::TypeCode::Value<StringType,
tc->member_type (i);
CORBA::Boolean const equiv_types =
- lhs_tc->equivalent (rhs_tc.in ()
- );
+ lhs_tc->equivalent (rhs_tc.in ());
if (!equiv_types)
return false;
@@ -300,8 +296,7 @@ TAO::TypeCode::Value<StringType,
tc_fields[i].name = empty_name;
tc_fields[i].type =
Traits<StringType>::get_typecode (
- this->fields_[i].type)->get_compact_typecode (
- );
+ this->fields_[i].type)->get_compact_typecode ();
tc_fields[i].visibility = this->fields_[i].visibility;
}
}
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 6bff91a30bc..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_);
@@ -244,8 +244,7 @@ TAO::TypeCode::Value<char const *,
tc_fields[i].name = empty_name;
tc_fields[i].type =
Traits<char const *>::get_typecode (
- this->fields_[i].type)->get_compact_typecode (
- );
+ this->fields_[i].type)->get_compact_typecode ();
tc_fields[i].visibility = this->fields_[i].visibility;
}
}
@@ -276,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.
@@ -288,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.
@@ -300,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_;
}
@@ -356,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_;
}
@@ -367,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/append.cpp b/TAO/tao/AnyTypeCode/append.cpp
index 0ae018b16e5..69d88d32aba 100644
--- a/TAO/tao/AnyTypeCode/append.cpp
+++ b/TAO/tao/AnyTypeCode/append.cpp
@@ -586,8 +586,7 @@ TAO_Marshal_Union::append (CORBA::TypeCode_ptr tc,
tc->member_type (current_member);
return TAO_Marshal_Object::perform_append (member_tc.in (),
src,
- dest
- );
+ dest);
}
TAO::traverse_status
@@ -809,8 +808,7 @@ TAO_Marshal_Sequence::append (CORBA::TypeCode_ptr tc,
{
retval = TAO_Marshal_Object::perform_append (tc2.in (),
src,
- dest
- );
+ dest);
}
break;
}// end of switch
@@ -996,8 +994,7 @@ TAO_Marshal_Array::append (CORBA::TypeCode_ptr tc,
{
retval = TAO_Marshal_Object::perform_append (tc2.in (),
src,
- dest
- );
+ dest);
}
break;
}// end of switch
@@ -1050,8 +1047,7 @@ TAO_Marshal_Alias::append (CORBA::TypeCode_ptr tc,
TAO::traverse_status
TAO_Marshal_Except::append (CORBA::TypeCode_ptr tc,
TAO_InputCDR *src,
- TAO_OutputCDR *dest
- )
+ TAO_OutputCDR *dest)
{
TAO::traverse_status retval =
TAO::TRAVERSE_CONTINUE;
@@ -1092,8 +1088,7 @@ TAO_Marshal_Except::append (CORBA::TypeCode_ptr tc,
TAO::traverse_status
TAO_Marshal_WString::append (CORBA::TypeCode_ptr,
TAO_InputCDR *src,
- TAO_OutputCDR *dest
- )
+ TAO_OutputCDR *dest)
{
CORBA::Boolean continue_append = true;
@@ -1120,8 +1115,7 @@ TAO_Marshal_WString::append (CORBA::TypeCode_ptr,
TAO::traverse_status
TAO_Marshal_Value::append (CORBA::TypeCode_ptr tc,
TAO_InputCDR *src,
- TAO_OutputCDR *dest
- )
+ TAO_OutputCDR *dest)
{
TAO::traverse_status retval =
TAO::TRAVERSE_CONTINUE;
@@ -1181,8 +1175,7 @@ TAO_Marshal_Value::append (CORBA::TypeCode_ptr tc,
param = tc->content_type ();
retval = TAO_Marshal_Object::perform_append (param.in (),
src,
- dest
- );
+ dest);
}
else // tc->kind () must be tk_value or tk_event
{
@@ -1192,8 +1185,7 @@ TAO_Marshal_Value::append (CORBA::TypeCode_ptr tc,
{
retval = this->append (param.in (),
src,
- dest
- );
+ dest);
}
if (retval == TAO::TRAVERSE_CONTINUE)
@@ -1212,8 +1204,7 @@ TAO_Marshal_Value::append (CORBA::TypeCode_ptr tc,
retval =
TAO_Marshal_Object::perform_append (param.in (),
src,
- dest
- );
+ dest);
}
}
}
diff --git a/TAO/tao/AnyTypeCode_Adapter.cpp b/TAO/tao/AnyTypeCode_Adapter.cpp
index 325f0fd6a1c..e06af880abb 100644
--- a/TAO/tao/AnyTypeCode_Adapter.cpp
+++ b/TAO/tao/AnyTypeCode_Adapter.cpp
@@ -2,7 +2,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_AnyTypeCode_Adapter::~TAO_AnyTypeCode_Adapter (void)
+TAO_AnyTypeCode_Adapter::~TAO_AnyTypeCode_Adapter ()
{
}
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.cpp b/TAO/tao/Argument.cpp
index 0125be2ffea..fab7b1d7514 100644
--- a/TAO/tao/Argument.cpp
+++ b/TAO/tao/Argument.cpp
@@ -3,7 +3,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO::Argument::~Argument (void)
+TAO::Argument::~Argument ()
{
}
@@ -22,7 +22,7 @@ TAO::Argument::demarshal (TAO_InputCDR &)
TAO::Argument *
TAO::Argument::clone ()
{
- return 0;
+ return nullptr;
}
#if TAO_HAS_INTERCEPTORS == 1
@@ -33,25 +33,25 @@ TAO::Argument::interceptor_value (CORBA::Any *) const
}
CORBA::ParameterMode
-TAO::InArgument::mode (void) const
+TAO::InArgument::mode () const
{
return CORBA::PARAM_IN;
}
CORBA::ParameterMode
-TAO::InoutArgument::mode (void) const
+TAO::InoutArgument::mode () const
{
return CORBA::PARAM_INOUT;
}
CORBA::ParameterMode
-TAO::OutArgument::mode (void) const
+TAO::OutArgument::mode () const
{
return CORBA::PARAM_OUT;
}
CORBA::ParameterMode
-TAO::RetArgument::mode (void) const
+TAO::RetArgument::mode () const
{
return CORBA::PARAM_OUT;
}
@@ -59,12 +59,12 @@ TAO::RetArgument::mode (void) const
#endif /* TAO_HAS_INTERCEPTORS */
TAO::Argument *
-TAO::Void_Return_Argument::clone (void)
+TAO::Void_Return_Argument::clone ()
{
- TAO::Argument *clone_arg = 0;
+ TAO::Argument *clone_arg = nullptr;
ACE_NEW_RETURN (clone_arg,
Void_Return_Argument (),
- 0);
+ nullptr);
return clone_arg;
}
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.cpp b/TAO/tao/Array_VarOut_T.cpp
index c898e7a09fd..49c04124aea 100644
--- a/TAO/tao/Array_VarOut_T.cpp
+++ b/TAO/tao/Array_VarOut_T.cpp
@@ -28,8 +28,7 @@ TAO_FixedArray_Var_T<T,T_slice,TAG>::operator= (T_slice * p)
template<typename T, typename T_slice, typename TAG>
TAO_FixedArray_Var_T<T,T_slice,TAG> &
TAO_FixedArray_Var_T<T,T_slice,TAG>::operator= (
- const TAO_FixedArray_Var_T<T,T_slice,TAG> & p
- )
+ const TAO_FixedArray_Var_T<T,T_slice,TAG> & p)
{
if (this != &p)
{
@@ -62,8 +61,7 @@ TAO_VarArray_Var_T<T,T_slice,TAG>::operator= (T_slice * p)
template<typename T, typename T_slice, typename TAG>
TAO_VarArray_Var_T<T,T_slice,TAG> &
TAO_VarArray_Var_T<T,T_slice,TAG>::operator= (
- const TAO_VarArray_Var_T<T,T_slice,TAG> & p
- )
+ const TAO_VarArray_Var_T<T,T_slice,TAG> & p)
{
if (this != &p)
{
@@ -81,8 +79,7 @@ TAO_VarArray_Var_T<T,T_slice,TAG>::operator= (
template<typename T, typename T_slice, typename TAG>
void
TAO_Array_Forany_T<T,T_slice,TAG>::_tao_any_destructor (
- void * _tao_void_pointer
- )
+ void * _tao_void_pointer)
{
T_slice * tmp = static_cast<T_slice *> (_tao_void_pointer);
TAO::Array_Traits<FORANY>::free (tmp);
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/Array_VarOut_T.inl b/TAO/tao/Array_VarOut_T.inl
index a3ab61af4b8..b2be7077f10 100644
--- a/TAO/tao/Array_VarOut_T.inl
+++ b/TAO/tao/Array_VarOut_T.inl
@@ -189,8 +189,7 @@ TAO_Array_Out_T<T,T_var,T_slice,TAG>::TAO_Array_Out_T (T_var & p)
template<typename T, typename T_var, typename T_slice, typename TAG>
ACE_INLINE
TAO_Array_Out_T<T,T_var,T_slice,TAG>::TAO_Array_Out_T (
- const TAO_Array_Out_T<T,T_var,T_slice,TAG> & p
- )
+ const TAO_Array_Out_T<T,T_var,T_slice,TAG> & p)
: ptr_ (const_cast<THIS_OUT_TYPE &> (p).ptr_)
{}
@@ -198,8 +197,7 @@ template<typename T, typename T_var, typename T_slice, typename TAG>
ACE_INLINE
TAO_Array_Out_T<T,T_var,T_slice,TAG> &
TAO_Array_Out_T<T,T_var,T_slice,TAG>::operator= (
- const TAO_Array_Out_T<T,T_var,T_slice,TAG> & p
- )
+ const TAO_Array_Out_T<T,T_var,T_slice,TAG> & p)
{
this->ptr_ = const_cast<THIS_OUT_TYPE &> (p).ptr_;
return *this;
@@ -250,8 +248,7 @@ template<typename T, typename T_slice, typename TAG>
ACE_INLINE
TAO_Array_Forany_T<T,T_slice,TAG>::TAO_Array_Forany_T (
T_slice * p,
- CORBA::Boolean nocopy
- )
+ CORBA::Boolean nocopy)
: ptr_ (p),
nocopy_ (nocopy)
{}
@@ -259,8 +256,7 @@ TAO_Array_Forany_T<T,T_slice,TAG>::TAO_Array_Forany_T (
template<typename T, typename T_slice, typename TAG>
ACE_INLINE
TAO_Array_Forany_T<T,T_slice,TAG>::TAO_Array_Forany_T (
- const TAO_Array_Forany_T<T,T_slice,TAG> & p
- )
+ const TAO_Array_Forany_T<T,T_slice,TAG> & p)
: ptr_ (p.ptr_),
nocopy_ (p.nocopy_)
{
diff --git a/TAO/tao/Asynch_Queued_Message.cpp b/TAO/tao/Asynch_Queued_Message.cpp
index f79242ceac2..e2952ff3569 100644
--- a/TAO/tao/Asynch_Queued_Message.cpp
+++ b/TAO/tao/Asynch_Queued_Message.cpp
@@ -24,7 +24,7 @@ TAO_Asynch_Queued_Message::TAO_Asynch_Queued_Message (
, offset_ (0)
, abs_timeout_ (ACE_Time_Value::zero)
{
- if (timeout != 0)// && *timeout != ACE_Time_Value::zero)
+ if (timeout != nullptr)// && *timeout != ACE_Time_Value::zero)
{
this->abs_timeout_ = ACE_High_Res_Timer::gettimeofday_hr () + *timeout;
}
@@ -33,7 +33,7 @@ TAO_Asynch_Queued_Message::TAO_Asynch_Queued_Message (
size_t copy_offset = 0;
for (const ACE_Message_Block *i = contents;
- i != 0;
+ i != nullptr;
i = i->cont ())
{
ACE_OS::memcpy (this->buffer_ + copy_offset,
@@ -57,20 +57,20 @@ TAO_Asynch_Queued_Message::TAO_Asynch_Queued_Message (char *buf,
{
}
-TAO_Asynch_Queued_Message::~TAO_Asynch_Queued_Message (void)
+TAO_Asynch_Queued_Message::~TAO_Asynch_Queued_Message ()
{
// @@ Use a pool for these guys!
delete [] this->buffer_;
}
size_t
-TAO_Asynch_Queued_Message::message_length (void) const
+TAO_Asynch_Queued_Message::message_length () const
{
return this->size_ - this->offset_;
}
int
-TAO_Asynch_Queued_Message::all_data_sent (void) const
+TAO_Asynch_Queued_Message::all_data_sent () const
{
return this->size_ == this->offset_;
}
@@ -112,7 +112,7 @@ TAO_Asynch_Queued_Message::bytes_transferred (size_t &byte_count)
TAO_Queued_Message *
TAO_Asynch_Queued_Message::clone (ACE_Allocator *alloc)
{
- char *buf = 0;
+ char *buf = nullptr;
// @todo: Need to use a memory pool. But certain things need to
// change a bit in this class for that. Till then.
@@ -123,13 +123,13 @@ TAO_Asynch_Queued_Message::clone (ACE_Allocator *alloc)
ACE_NEW_RETURN (buf,
char[sz],
- 0);
+ nullptr);
ACE_OS::memcpy (buf,
this->buffer_ + this->offset_,
sz);
- TAO_Asynch_Queued_Message *qm = 0;
+ TAO_Asynch_Queued_Message *qm = nullptr;
if (alloc)
{
@@ -142,7 +142,7 @@ TAO_Asynch_Queued_Message::clone (ACE_Allocator *alloc)
this->abs_timeout_,
alloc,
true),
- 0);
+ nullptr);
}
else
{
@@ -160,16 +160,16 @@ TAO_Asynch_Queued_Message::clone (ACE_Allocator *alloc)
this->orb_core_,
sz,
this->abs_timeout_,
- 0,
+ nullptr,
true),
- 0);
+ nullptr);
}
return qm;
}
void
-TAO_Asynch_Queued_Message::destroy (void)
+TAO_Asynch_Queued_Message::destroy ()
{
if (this->is_heap_created_)
{
diff --git a/TAO/tao/Asynch_Reply_Dispatcher_Base.cpp b/TAO/tao/Asynch_Reply_Dispatcher_Base.cpp
index a80ac9e9700..8fe4a8281e7 100644
--- a/TAO/tao/Asynch_Reply_Dispatcher_Base.cpp
+++ b/TAO/tao/Asynch_Reply_Dispatcher_Base.cpp
@@ -28,8 +28,8 @@ TAO_Asynch_Reply_Dispatcher_Base::TAO_Asynch_Reply_Dispatcher_Base (
TAO_DEF_GIOP_MAJOR,
TAO_DEF_GIOP_MINOR,
orb_core)
- , transport_ (0)
- , lock_ (0)
+ , transport_ (nullptr)
+ , lock_ (nullptr)
, is_reply_dispatched_ (false)
{
// @@ NOTE: Need a separate option for this..
@@ -38,10 +38,10 @@ TAO_Asynch_Reply_Dispatcher_Base::TAO_Asynch_Reply_Dispatcher_Base (
}
// Destructor.
-TAO_Asynch_Reply_Dispatcher_Base::~TAO_Asynch_Reply_Dispatcher_Base (void)
+TAO_Asynch_Reply_Dispatcher_Base::~TAO_Asynch_Reply_Dispatcher_Base ()
{
// Release the transport that we own
- if (this->transport_ != 0)
+ if (this->transport_ != nullptr)
this->transport_->remove_reference ();
if (this->lock_)
@@ -51,7 +51,7 @@ TAO_Asynch_Reply_Dispatcher_Base::~TAO_Asynch_Reply_Dispatcher_Base (void)
void
TAO_Asynch_Reply_Dispatcher_Base::transport (TAO_Transport *t)
{
- if (this->transport_ != 0)
+ if (this->transport_ != nullptr)
this->transport_->remove_reference ();
this->transport_ = t;
@@ -60,7 +60,7 @@ TAO_Asynch_Reply_Dispatcher_Base::transport (TAO_Transport *t)
}
bool
-TAO_Asynch_Reply_Dispatcher_Base::try_dispatch_reply (void)
+TAO_Asynch_Reply_Dispatcher_Base::try_dispatch_reply ()
{
if (this->is_reply_dispatched_)
{
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/Base_Transport_Property.cpp b/TAO/tao/Base_Transport_Property.cpp
index 4a4f834c157..17a83e1a618 100644
--- a/TAO/tao/Base_Transport_Property.cpp
+++ b/TAO/tao/Base_Transport_Property.cpp
@@ -7,21 +7,21 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Base_Transport_Property::~TAO_Base_Transport_Property (void)
+TAO_Base_Transport_Property::~TAO_Base_Transport_Property ()
{
}
TAO_Transport_Descriptor_Interface *
-TAO_Base_Transport_Property::duplicate (void)
+TAO_Base_Transport_Property::duplicate ()
{
// Get a copy of the underlying endpoint
TAO_Endpoint *const endpt = this->endpoint_->duplicate ();
- if (endpt == 0)
- return 0;
+ if (endpt == nullptr)
+ return nullptr;
// Construct a copy of our class
- TAO_Base_Transport_Property *prop = 0;
- ACE_NEW_RETURN (prop, TAO_Base_Transport_Property (endpt, true), 0);
+ TAO_Base_Transport_Property *prop = nullptr;
+ ACE_NEW_RETURN (prop, TAO_Base_Transport_Property (endpt, true), nullptr);
return prop;
}
@@ -33,7 +33,7 @@ TAO_Base_Transport_Property::is_equivalent
const TAO_Base_Transport_Property *other_desc =
dynamic_cast<const TAO_Base_Transport_Property *> (rhs);
- if (other_desc == 0)
+ if (other_desc == nullptr)
return false;
return this->endpoint_->is_equivalent (other_desc->endpoint_);
@@ -41,7 +41,7 @@ TAO_Base_Transport_Property::is_equivalent
u_long
-TAO_Base_Transport_Property::hash (void) const
+TAO_Base_Transport_Property::hash () const
{
return this->endpoint_->hash ();
}
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/BiDir_Adapter.cpp b/TAO/tao/BiDir_Adapter.cpp
index c5e01c278f8..1149f04dc66 100644
--- a/TAO/tao/BiDir_Adapter.cpp
+++ b/TAO/tao/BiDir_Adapter.cpp
@@ -2,7 +2,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_BiDir_Adapter::~TAO_BiDir_Adapter (void)
+TAO_BiDir_Adapter::~TAO_BiDir_Adapter ()
{
}
diff --git a/TAO/tao/Bind_Dispatcher_Guard.cpp b/TAO/tao/Bind_Dispatcher_Guard.cpp
index 7922d29f21c..09a144d62f3 100644
--- a/TAO/tao/Bind_Dispatcher_Guard.cpp
+++ b/TAO/tao/Bind_Dispatcher_Guard.cpp
@@ -21,7 +21,7 @@ TAO_Bind_Dispatcher_Guard::TAO_Bind_Dispatcher_Guard (CORBA::ULong request_id,
this->status_ = TAO_Bind_Dispatcher_Guard::NO_UNBIND;
}
-TAO_Bind_Dispatcher_Guard::~TAO_Bind_Dispatcher_Guard (void)
+TAO_Bind_Dispatcher_Guard::~TAO_Bind_Dispatcher_Guard ()
{
// We try unbinding. If it works it works, else cant do much about
// it..
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/Blocked_Connect_Strategy.cpp b/TAO/tao/Blocked_Connect_Strategy.cpp
index b55e0ff00c2..0c731feb8e4 100644
--- a/TAO/tao/Blocked_Connect_Strategy.cpp
+++ b/TAO/tao/Blocked_Connect_Strategy.cpp
@@ -15,7 +15,7 @@ void
TAO_Blocked_Connect_Strategy::synch_options (ACE_Time_Value *timeout,
ACE_Synch_Options &options)
{
- if (timeout != 0)
+ if (timeout != nullptr)
{
// Blocking with a timeout
options.set (ACE_Synch_Options::USE_TIMEOUT, *timeout);
diff --git a/TAO/tao/Bounded_Basic_String_Sequence_T.h b/TAO/tao/Bounded_Basic_String_Sequence_T.h
index 553d70f6349..a249e9110ff 100644
--- a/TAO/tao/Bounded_Basic_String_Sequence_T.h
+++ b/TAO/tao/Bounded_Basic_String_Sequence_T.h
@@ -12,7 +12,6 @@
#include "tao/Generic_Sequence_T.h"
#include "tao/String_Sequence_Element_T.h"
#include "tao/String_Const_Sequence_Element_T.h"
-#include "tao/MM_Sequence_Iterator_T.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
@@ -38,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()
@@ -105,77 +104,6 @@ public:
implementation_type::freebuf(buffer);
}
-#if defined TAO_HAS_SEQUENCE_ITERATORS && TAO_HAS_SEQUENCE_ITERATORS == 1
-
- ///
- /// Additions to support iterator semantics for TAO unbounded basic
- /// string sequences.
- ///
-
- // = Traits and factory methods that create iterators.
- typedef MM_Sequence_Iterator<bounded_basic_string_sequence<charT, MAX> > iterator;
- typedef Const_MM_Sequence_Iterator<bounded_basic_string_sequence<charT, MAX> > const_iterator;
- typedef MM_Sequence_Reverse_Iterator<bounded_basic_string_sequence<charT, MAX> > reverse_iterator;
- typedef Const_MM_Sequence_Reverse_Iterator<bounded_basic_string_sequence<charT, MAX> > const_reverse_iterator;
-
- /// Get an iterator that points to the beginning of the sequence.
- inline iterator begin (void)
- {
- return iterator (&this->impl_);
- }
-
- /// Get a const iterator that points to the beginning of the sequence.
- inline const_iterator begin (void) const
- {
- return const_iterator (&this->impl_);
- }
-
- /// Get an iterator that points to the end of the sequence.
- inline iterator end (void)
- {
- return iterator (&this->impl_,
- this->impl_.length ());
- }
-
- /// Get a const iterator that points to the end of the sequence.
- inline const_iterator end (void) const
- {
- return const_iterator (&this->impl_,
- this->impl_.length ());
- }
-
- /// Get a reverse iterator that points to the end of the sequence.
- inline reverse_iterator rbegin (void)
- {
- return reverse_iterator (&this->impl_,
- this->impl_.length () - 1);
- }
-
- /// Get a const reverse iterator that points to the end of the sequence.
- inline const_reverse_iterator rbegin (void) const
- {
- return const_reverse_iterator (&this->impl_,
- this->impl_.length () - 1);
- }
-
- /// Get a reverse iterator that points to one before the beginning
- /// of the sequence.
- inline reverse_iterator rend (void)
- {
- return reverse_iterator (&this->impl_,
- -1);
- }
-
- /// Get a const reverse iterator that points to one before the
- /// beginning of the sequence.
- inline const_reverse_iterator rend (void) const
- {
- return const_reverse_iterator (&this->impl_,
- -1);
- }
-
-#endif /* TAO_HAS_SEQUENCE_ITERATORS==1 */
-
private:
implementation_type impl_;
};
diff --git a/TAO/tao/Bounded_Object_Reference_Sequence_T.h b/TAO/tao/Bounded_Object_Reference_Sequence_T.h
index 7a8cda5385a..1f3c7d0d577 100644
--- a/TAO/tao/Bounded_Object_Reference_Sequence_T.h
+++ b/TAO/tao/Bounded_Object_Reference_Sequence_T.h
@@ -12,7 +12,6 @@
#include "Generic_Sequence_T.h"
#include "Object_Reference_Sequence_Element_T.h"
#include "Object_Reference_Const_Sequence_Element_T.h"
-#include "tao/MM_Sequence_Iterator_T.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
@@ -109,78 +108,6 @@ public:
implementation_type::freebuf(buffer);
}
-
-#if defined TAO_HAS_SEQUENCE_ITERATORS && TAO_HAS_SEQUENCE_ITERATORS == 1
-
- ///
- /// Additions to support iterator semantics for TAO bounded object
- /// reference sequences.
- ///
-
- // = Traits and factory methods that create iterators.
- typedef MM_Sequence_Iterator<bounded_object_reference_sequence<object_t, object_t_var, MAX> > iterator;
- typedef Const_MM_Sequence_Iterator<bounded_object_reference_sequence<object_t, object_t_var, MAX> > const_iterator;
- typedef MM_Sequence_Reverse_Iterator<bounded_object_reference_sequence<object_t, object_t_var, MAX> > reverse_iterator;
- typedef Const_MM_Sequence_Reverse_Iterator<bounded_object_reference_sequence<object_t, object_t_var, MAX> > const_reverse_iterator;
-
- /// Get an iterator that points to the beginning of the sequence.
- iterator begin (void)
- {
- return iterator (&this->impl_);
- }
-
- /// Get a const iterator that points to the beginning of the sequence.
- const_iterator begin (void) const
- {
- return const_iterator (&this->impl_);
- }
-
- /// Get an iterator that points to the end of the sequence.
- iterator end (void)
- {
- return iterator (&this->impl_,
- this->impl_.length ());
- }
-
- /// Get a const iterator that points to the end of the sequence.
- const_iterator end (void) const
- {
- return const_iterator (&this->impl_,
- this->impl_.length ());
- }
-
- /// Get a reverse iterator that points to the end of the sequence.
- reverse_iterator rbegin (void)
- {
- return reverse_iterator (&this->impl_,
- this->impl_.length () - 1);
- }
-
- /// Get a const reverse iterator that points to the end of the sequence.
- const_reverse_iterator rbegin (void) const
- {
- return const_reverse_iterator (&this->impl_,
- this->impl_.length () - 1);
- }
-
- /// Get a reverse iterator that points to one before the beginning
- /// of the sequence.
- reverse_iterator rend (void)
- {
- return reverse_iterator (&this->impl_,
- -1);
- }
-
- /// Get a const reverse iterator that points to one before the
- /// beginning of the sequence.
- const_reverse_iterator rend (void) const
- {
- return const_reverse_iterator (&this->impl_,
- -1);
- }
-
-#endif /* TAO_HAS_SEQUENCE_ITERATORS==1 */
-
private:
implementation_type impl_;
};
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.cpp b/TAO/tao/CDR.cpp
index 53c4318b9c1..79835eacf2c 100644
--- a/TAO/tao/CDR.cpp
+++ b/TAO/tao/CDR.cpp
@@ -64,12 +64,12 @@ TAO_OutputCDR::TAO_OutputCDR (size_t size,
memcpy_tradeoff,
major_version,
minor_version)
- , fragmentation_strategy_ (0)
+ , fragmentation_strategy_ (nullptr)
, more_fragments_ (false)
, request_id_ (0)
- , stub_ (0)
+ , stub_ (nullptr)
, message_semantics_ (TAO_Message_Semantics::TAO_TWOWAY_REQUEST)
- , timeout_ (0)
+ , timeout_ (nullptr)
{
ACE_FUNCTION_TIMEPROBE (TAO_OUTPUT_CDR_CTOR1_ENTER);
@@ -100,12 +100,12 @@ TAO_OutputCDR::TAO_OutputCDR (char *data,
memcpy_tradeoff,
major_version,
minor_version)
- , fragmentation_strategy_ (0)
+ , fragmentation_strategy_ (nullptr)
, more_fragments_ (false)
, request_id_ (0)
- , stub_ (0)
+ , stub_ (nullptr)
, message_semantics_ (TAO_Message_Semantics::TAO_TWOWAY_REQUEST)
- , timeout_ (0)
+ , timeout_ (nullptr)
{
ACE_FUNCTION_TIMEPROBE (TAO_OUTPUT_CDR_CTOR2_ENTER);
}
@@ -132,9 +132,9 @@ TAO_OutputCDR::TAO_OutputCDR (char *data,
, fragmentation_strategy_ (fs)
, more_fragments_ (false)
, request_id_ (0)
- , stub_ (0)
+ , stub_ (nullptr)
, message_semantics_ (TAO_Message_Semantics::TAO_TWOWAY_REQUEST)
- , timeout_ (0)
+ , timeout_ (nullptr)
{
ACE_FUNCTION_TIMEPROBE (TAO_OUTPUT_CDR_CTOR3_ENTER);
}
@@ -149,12 +149,12 @@ TAO_OutputCDR::TAO_OutputCDR (ACE_Message_Block *data,
memcpy_tradeoff,
major_version,
minor_version)
- , fragmentation_strategy_ (0)
+ , fragmentation_strategy_ (nullptr)
, more_fragments_ (false)
, request_id_ (0)
- , stub_ (0)
+ , stub_ (nullptr)
, message_semantics_ (TAO_Message_Semantics::TAO_TWOWAY_REQUEST)
- , timeout_ (0)
+ , timeout_ (nullptr)
{
ACE_FUNCTION_TIMEPROBE (TAO_OUTPUT_CDR_CTOR4_ENTER);
}
@@ -175,9 +175,9 @@ TAO_OutputCDR::TAO_OutputCDR (ACE_Data_Block *data_block,
, fragmentation_strategy_ (fs)
, more_fragments_ (false)
, request_id_ (0)
- , stub_ (0)
+ , stub_ (nullptr)
, message_semantics_ (TAO_Message_Semantics::TAO_TWOWAY_REQUEST)
- , timeout_ (0)
+ , timeout_ (nullptr)
{
ACE_FUNCTION_TIMEPROBE (TAO_OUTPUT_CDR_CTOR5_ENTER);
}
@@ -291,15 +291,15 @@ TAO_InputCDR::TAO_InputCDR (const TAO_OutputCDR& rhs,
: ACE_InputCDR (rhs,
buffer_allocator
? buffer_allocator
- : (orb_core ? orb_core->output_cdr_buffer_allocator () : 0),
+ : (orb_core ? orb_core->output_cdr_buffer_allocator () : nullptr),
data_block_allocator
? data_block_allocator
: (orb_core ? orb_core->output_cdr_dblock_allocator () :
- 0),
+ nullptr),
message_block_allocator
? message_block_allocator
: (orb_core ?
- orb_core->output_cdr_msgblock_allocator () : 0)),
+ orb_core->output_cdr_msgblock_allocator () : nullptr)),
orb_core_ (orb_core)
{
}
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/CORBALOC_Parser.cpp b/TAO/tao/CORBALOC_Parser.cpp
index fd98b445944..dff01bf48c0 100644
--- a/TAO/tao/CORBALOC_Parser.cpp
+++ b/TAO/tao/CORBALOC_Parser.cpp
@@ -31,7 +31,7 @@ static const char iiop_token_len = sizeof iiop_token - 1;
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_CORBALOC_Parser::~TAO_CORBALOC_Parser (void)
+TAO_CORBALOC_Parser::~TAO_CORBALOC_Parser ()
{
}
@@ -49,7 +49,7 @@ TAO_CORBALOC_Parser::make_stub_from_mprofile (CORBA::ORB_ptr orb,
TAO_MProfile &mprofile)
{
// Create a TAO_Stub.
- TAO_Stub *data = orb->orb_core ()->create_stub ((const char *) 0, mprofile);
+ TAO_Stub *data = orb->orb_core ()->create_stub ((const char *) nullptr, mprofile);
TAO_Stub_Auto_Ptr safe_data (data);
@@ -137,10 +137,10 @@ TAO_CORBALOC_Parser::parse_string (const char * ior, CORBA::ORB_ptr orb)
size_t ndx = endpoints.size();
endpoints.size(ndx+1);
bool uiop_compatible = false;
- TAO_ConnectorSetIterator conn_iter = 0;
+ TAO_ConnectorSetIterator conn_iter = nullptr;
for (conn_iter = conn_reg->begin();
conn_iter != conn_reg->end() &&
- endpoints[ndx].profile_ == 0;
+ endpoints[ndx].profile_ == nullptr;
conn_iter ++)
{
endpoints[ndx].profile_ =
@@ -156,7 +156,7 @@ TAO_CORBALOC_Parser::parse_string (const char * ior, CORBA::ORB_ptr orb)
}
}
- if (endpoints[ndx].profile_ == 0)
+ if (endpoints[ndx].profile_ == nullptr)
{
if (TAO_debug_level)
TAOLIB_ERROR ((LM_ERROR,
@@ -212,7 +212,7 @@ TAO_CORBALOC_Parser::parse_string (const char * ior, CORBA::ORB_ptr orb)
endpoints[i].profile_->parse_string (str);
int const share = orb->orb_core()->orb_params()->shared_profile();
if (mprofile.give_profile(endpoints[i].profile_, share) != -1)
- endpoints[i].profile_ = 0;
+ endpoints[i].profile_ = nullptr;
else
{
// Although this ought never happen, we want to make some
@@ -252,7 +252,7 @@ TAO_CORBALOC_Parser::make_canonical (const char *ior,
const char *addr_tail = ior + prot_addr_len;
// skip past version, if any
separator = ACE_OS::strchr (addr_base,'@');
- if (separator != 0 && separator < addr_tail)
+ if (separator != nullptr && separator < addr_tail)
{
canonical_endpoint.set (addr_base,(separator - addr_base)+1,1);
addr_base = separator + 1;
@@ -293,7 +293,7 @@ TAO_CORBALOC_Parser::make_canonical (const char *ior,
}
#endif /* ACE_HAS_IPV6 */
- if (separator != 0 && separator < addr_tail)
+ if (separator != nullptr && separator < addr_tail)
{
// we have a port number
raw_host.set (addr_base, (separator - addr_base), 1);
diff --git a/TAO/tao/CORBANAME_Parser.cpp b/TAO/tao/CORBANAME_Parser.cpp
index 0cdd89afda9..2bd5edee9be 100644
--- a/TAO/tao/CORBANAME_Parser.cpp
+++ b/TAO/tao/CORBANAME_Parser.cpp
@@ -18,7 +18,7 @@ static const char corbaname_prefix[] = "corbaname:";
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_CORBANAME_Parser::~TAO_CORBANAME_Parser (void)
+TAO_CORBANAME_Parser::~TAO_CORBANAME_Parser ()
{
}
@@ -51,7 +51,7 @@ parse_string_dynamic_request_helper (CORBA::Object_ptr naming_context,
11,
TAO::TAO_CO_NONE | TAO::TAO_CO_THRU_POA_STRATEGY);
- tao_call.invoke (0, 0);
+ tao_call.invoke (nullptr, 0);
return _tao_retval.retn ();
}
@@ -73,7 +73,7 @@ TAO_CORBANAME_Parser::parse_string (const char *ior, CORBA::ORB_ptr orb)
// string
ACE_CString::size_type pos_seperator = 0;
- ACE_CString corbaname_str (corbaname, 0, 1);
+ ACE_CString corbaname_str (corbaname, nullptr, 1);
pos_seperator = corbaname_str.find ("#", 0);
@@ -90,13 +90,12 @@ TAO_CORBANAME_Parser::parse_string (const char *ior, CORBA::ORB_ptr orb)
// CORBALOC assumes "NameService" for the object key if none
// is provided, so just pass everything between "corbaname:"
// and "#" as the address
- ACE_CString corbaloc_addr ("corbaloc:", 0, 1);
+ ACE_CString corbaloc_addr ("corbaloc:", nullptr, 1);
corbaloc_addr += corbaname_str.substring (0, pos_seperator);
// Obtain a reference to the naming context
CORBA::Object_var name_context =
- orb->string_to_object (corbaloc_addr.c_str ()
- );
+ orb->string_to_object (corbaloc_addr.c_str ());
// Check if the Object reference is nil.
if (CORBA::is_nil (name_context.in ()))
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/CSD_Framework/CSD_Default_Servant_Dispatcher.cpp b/TAO/tao/CSD_Framework/CSD_Default_Servant_Dispatcher.cpp
index 28bbada650c..84741bf7299 100644
--- a/TAO/tao/CSD_Framework/CSD_Default_Servant_Dispatcher.cpp
+++ b/TAO/tao/CSD_Framework/CSD_Default_Servant_Dispatcher.cpp
@@ -30,8 +30,7 @@ TAO_CSD_Default_Servant_Dispatcher::create_Root_POA (const ACE_CString &name,
lock,
thread_lock,
orb_core,
- object_adapter
- ),
+ object_adapter),
CORBA::NO_MEMORY ());
diff --git a/TAO/tao/CSD_Framework/CSD_POA.cpp b/TAO/tao/CSD_Framework/CSD_POA.cpp
index a77bb5f32e9..9729e0950ac 100644
--- a/TAO/tao/CSD_Framework/CSD_POA.cpp
+++ b/TAO/tao/CSD_Framework/CSD_POA.cpp
@@ -70,8 +70,7 @@ TAO_CSD_POA::new_POA (const String &name,
lock,
thread_lock,
orb_core,
- object_adapter
- ),
+ object_adapter),
CORBA::NO_MEMORY ());
TAO_CSD_Strategy_Repository *repo =
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Synch_Helper.h b/TAO/tao/CSD_ThreadPool/CSD_TP_Synch_Helper.h
index 73597bdd60f..d4664257a1c 100644
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Synch_Helper.h
+++ b/TAO/tao/CSD_ThreadPool/CSD_TP_Synch_Helper.h
@@ -41,7 +41,6 @@ namespace TAO
class TAO_CSD_TP_Export TP_Synch_Helper
{
public:
-
/// Constructor. Sets initial state to PENDING.
TP_Synch_Helper();
@@ -63,7 +62,6 @@ namespace TAO
/// wait_while_pending() to unblock.
void cancelled();
-
private:
/// Enumeration Type for all possible states of this helper object.
enum HelperState
@@ -89,7 +87,6 @@ namespace TAO
/// state is something other than the PENDING state.
ConditionType condition_;
};
-
}
}
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Synch_Helper.inl b/TAO/tao/CSD_ThreadPool/CSD_TP_Synch_Helper.inl
index adf5c1b1bc3..05930380a53 100644
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Synch_Helper.inl
+++ b/TAO/tao/CSD_ThreadPool/CSD_TP_Synch_Helper.inl
@@ -10,13 +10,11 @@ TAO::CSD::TP_Synch_Helper::TP_Synch_Helper()
{
}
-
ACE_INLINE
TAO::CSD::TP_Synch_Helper::~TP_Synch_Helper()
{
}
-
ACE_INLINE
bool
TAO::CSD::TP_Synch_Helper::wait_while_pending()
@@ -31,7 +29,6 @@ TAO::CSD::TP_Synch_Helper::wait_while_pending()
return (this->state_ == DISPATCHED);
}
-
ACE_INLINE
void
TAO::CSD::TP_Synch_Helper::dispatched()
@@ -41,7 +38,6 @@ TAO::CSD::TP_Synch_Helper::dispatched()
this->condition_.signal();
}
-
ACE_INLINE
void
TAO::CSD::TP_Synch_Helper::cancelled()
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.cpp b/TAO/tao/Cleanup_Func_Registry.cpp
index 5597de7531d..93ef5cb0c8a 100644
--- a/TAO/tao/Cleanup_Func_Registry.cpp
+++ b/TAO/tao/Cleanup_Func_Registry.cpp
@@ -39,8 +39,8 @@ TAO_Cleanup_Func_Registry::cleanup (ACE_Array_Base <void *> &ts_objects)
for (size_t i = 0; i < len; ++i)
{
ACE_CLEANUP_FUNC destructor = this->cleanup_funcs_[i];
- if (destructor != 0)
- destructor (ts_objects[i], 0);
+ if (destructor != nullptr)
+ destructor (ts_objects[i], nullptr);
}
}
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.cpp b/TAO/tao/ClientRequestInterceptor_Adapter.cpp
index c5e425c4cd8..40684f17384 100644
--- a/TAO/tao/ClientRequestInterceptor_Adapter.cpp
+++ b/TAO/tao/ClientRequestInterceptor_Adapter.cpp
@@ -2,7 +2,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO::ClientRequestInterceptor_Adapter::~ClientRequestInterceptor_Adapter (void)
+TAO::ClientRequestInterceptor_Adapter::~ClientRequestInterceptor_Adapter ()
{
}
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.cpp b/TAO/tao/ClientRequestInterceptor_Adapter_Factory.cpp
index 7f0347296a5..a7b9989df41 100644
--- a/TAO/tao/ClientRequestInterceptor_Adapter_Factory.cpp
+++ b/TAO/tao/ClientRequestInterceptor_Adapter_Factory.cpp
@@ -2,7 +2,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_ClientRequestInterceptor_Adapter_Factory::~TAO_ClientRequestInterceptor_Adapter_Factory (void)
+TAO_ClientRequestInterceptor_Adapter_Factory::~TAO_ClientRequestInterceptor_Adapter_Factory ()
{
}
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.cpp b/TAO/tao/Client_Strategy_Factory.cpp
index 9058c65b2d2..b029deb4e7b 100644
--- a/TAO/tao/Client_Strategy_Factory.cpp
+++ b/TAO/tao/Client_Strategy_Factory.cpp
@@ -3,7 +3,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Client_Strategy_Factory::~TAO_Client_Strategy_Factory (void)
+TAO_Client_Strategy_Factory::~TAO_Client_Strategy_Factory ()
{
}
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/Codeset_Manager.cpp b/TAO/tao/Codeset_Manager.cpp
index 1fa161ab63a..318904620d3 100644
--- a/TAO/tao/Codeset_Manager.cpp
+++ b/TAO/tao/Codeset_Manager.cpp
@@ -4,14 +4,14 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Codeset_Manager::~TAO_Codeset_Manager (void)
+TAO_Codeset_Manager::~TAO_Codeset_Manager ()
{
}
// Add the destructor for the codeset_descriptor_base here, because
// it is only ever used in conjunction with the codeset manager.
-TAO_Codeset_Descriptor_Base::~TAO_Codeset_Descriptor_Base (void)
+TAO_Codeset_Descriptor_Base::~TAO_Codeset_Descriptor_Base ()
{
}
diff --git a/TAO/tao/Codeset_Manager_Factory_Base.cpp b/TAO/tao/Codeset_Manager_Factory_Base.cpp
index a77dfd61797..94aef786b28 100644
--- a/TAO/tao/Codeset_Manager_Factory_Base.cpp
+++ b/TAO/tao/Codeset_Manager_Factory_Base.cpp
@@ -5,25 +5,25 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Codeset_Manager_Factory_Base::~TAO_Codeset_Manager_Factory_Base (void)
+TAO_Codeset_Manager_Factory_Base::~TAO_Codeset_Manager_Factory_Base ()
{
}
bool
-TAO_Codeset_Manager_Factory_Base::is_default (void) const
+TAO_Codeset_Manager_Factory_Base::is_default () const
{
return true;
}
TAO_Codeset_Manager *
-TAO_Codeset_Manager_Factory_Base::create (void)
+TAO_Codeset_Manager_Factory_Base::create ()
{
- return 0;
+ return nullptr;
}
int
-TAO_Codeset_Manager_Factory_Base::initialize (void)
+TAO_Codeset_Manager_Factory_Base::initialize ()
{
return ACE_Service_Config::process_directive
(ace_svc_desc_TAO_Codeset_Manager_Factory_Base);
diff --git a/TAO/tao/Codeset_Translator_Base.cpp b/TAO/tao/Codeset_Translator_Base.cpp
index d269d80a61c..d5b69e09f35 100644
--- a/TAO/tao/Codeset_Translator_Base.cpp
+++ b/TAO/tao/Codeset_Translator_Base.cpp
@@ -16,7 +16,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Codeset_Translator_Base::~TAO_Codeset_Translator_Base (void)
+TAO_Codeset_Translator_Base::~TAO_Codeset_Translator_Base ()
{
}
diff --git a/TAO/tao/Collocation_Resolver.cpp b/TAO/tao/Collocation_Resolver.cpp
index 2ddca927e09..7492024fb7a 100644
--- a/TAO/tao/Collocation_Resolver.cpp
+++ b/TAO/tao/Collocation_Resolver.cpp
@@ -3,7 +3,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Collocation_Resolver::~TAO_Collocation_Resolver (void)
+TAO_Collocation_Resolver::~TAO_Collocation_Resolver ()
{
}
diff --git a/TAO/tao/Compression/zlib/ZlibCompressor_Factory.cpp b/TAO/tao/Compression/zlib/ZlibCompressor_Factory.cpp
index c687786d48b..213f37cb44e 100644
--- a/TAO/tao/Compression/zlib/ZlibCompressor_Factory.cpp
+++ b/TAO/tao/Compression/zlib/ZlibCompressor_Factory.cpp
@@ -20,8 +20,7 @@ Zlib_CompressorFactory::get_compressor (
// Ensure Compression range 0-9 and will also convert -1(default) to 9(max).
compression_level = ace_range( ::Compression::CompressionLevel(Z_NO_COMPRESSION), // Min value
::Compression::CompressionLevel(Z_BEST_COMPRESSION), // Max value
- compression_level // Argument value
- );
+ compression_level); // Argument value
::Compression::Compressor_ptr compressor = 0;
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/Connect_Strategy.cpp b/TAO/tao/Connect_Strategy.cpp
index 1410e5f1fcd..5f5496f9756 100644
--- a/TAO/tao/Connect_Strategy.cpp
+++ b/TAO/tao/Connect_Strategy.cpp
@@ -12,7 +12,7 @@ TAO_Connect_Strategy::TAO_Connect_Strategy (TAO_ORB_Core *orb_core)
}
-TAO_Connect_Strategy::~TAO_Connect_Strategy (void)
+TAO_Connect_Strategy::~TAO_Connect_Strategy ()
{
}
@@ -20,7 +20,7 @@ int
TAO_Connect_Strategy::wait (TAO_Connection_Handler *ch,
ACE_Time_Value *max_wait_time)
{
- if (ch == 0)
+ if (ch == nullptr)
return -1;
return this->wait_i (ch, ch->transport (), max_wait_time);
@@ -32,7 +32,7 @@ TAO_Connect_Strategy::wait (TAO_Transport *t, ACE_Time_Value *max_wait_time)
// Basically the connection was EINPROGRESS, but before we could
// wait for it some other thread detected a failure and cleaned up
// the connection handler.
- if (t == 0)
+ if (t == nullptr)
return -1;
return this->wait_i (t->connection_handler (), t, max_wait_time);
diff --git a/TAO/tao/Connection_Handler.cpp b/TAO/tao/Connection_Handler.cpp
index 728338137c6..6c0520aed30 100644
--- a/TAO/tao/Connection_Handler.cpp
+++ b/TAO/tao/Connection_Handler.cpp
@@ -11,8 +11,6 @@
#include "ace/os_include/sys/os_socket.h"
#include "ace/Svc_Handler.h"
-//@@ CONNECTION_HANDLER_SPL_INCLUDE_FORWARD_DECL_ADD_HOOK
-
#if !defined (__ACE_INLINE__)
#include "tao/Connection_Handler.inl"
#endif /* __ACE_INLINE__ */
@@ -21,7 +19,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Connection_Handler::TAO_Connection_Handler (TAO_ORB_Core *orb_core)
: orb_core_ (orb_core),
- transport_ (0),
+ transport_ (nullptr),
connection_pending_ (false),
is_closed_ (false)
{
@@ -31,13 +29,12 @@ TAO_Connection_Handler::TAO_Connection_Handler (TAO_ORB_Core *orb_core)
this->orb_core_->leader_follower ());
}
-TAO_Connection_Handler::~TAO_Connection_Handler (void)
+TAO_Connection_Handler::~TAO_Connection_Handler ()
{
- //@@ CONNECTION_HANDLER_DESTRUCTOR_ADD_HOOK
}
int
-TAO_Connection_Handler::shared_open (void)
+TAO_Connection_Handler::shared_open ()
{
// This reference counting is related to asynch connections. It
// should probably be managed by the ACE_Strategy_Connector, since
@@ -104,7 +101,7 @@ TAO_Connection_Handler::set_socket_option (ACE_SOCK &sock,
}
int
-TAO_Connection_Handler::svc_i (void)
+TAO_Connection_Handler::svc_i ()
{
int result = 0;
@@ -116,7 +113,7 @@ TAO_Connection_Handler::svc_i (void)
// in a reactive handler, except that this can simply block waiting
// for input.
- ACE_Time_Value *max_wait_time = 0;
+ ACE_Time_Value *max_wait_time = nullptr;
ACE_Time_Value timeout;
ACE_Time_Value current_timeout;
@@ -350,13 +347,13 @@ TAO_Connection_Handler::close_connection_eh (ACE_Event_Handler *eh)
{
// If the ORB is nil, get the reactor from orb_core which gets it
// from LF.
- if (eh_reactor == 0)
+ if (eh_reactor == nullptr)
eh_reactor = this->transport()->orb_core()->reactor ();
}
// The Reactor must not be null, otherwise something else is
// horribly broken.
- ACE_ASSERT (eh_reactor != 0);
+ ACE_ASSERT (eh_reactor != nullptr);
if (TAO_debug_level)
{
@@ -418,15 +415,6 @@ TAO_Connection_Handler::close_connection_eh (ACE_Event_Handler *eh)
return 1;
}
-/*
- * Comment hook to comment the base class implementations
- * that do nothing. Specialized versions from derived
- * class will directly override these methods. Add
- * all methods that are virtual, have do nothing implementations
- * within this hook for later specialization.
- */
-//@@ CONNECTION_HANDLER_SPL_COMMENT_HOOK_START
-
int
TAO_Connection_Handler::set_dscp_codepoint (CORBA::Boolean)
{
@@ -440,13 +428,11 @@ TAO_Connection_Handler::set_dscp_codepoint (CORBA::Long)
}
int
-TAO_Connection_Handler::release_os_resources (void)
+TAO_Connection_Handler::release_os_resources ()
{
return 0;
}
-//@@ CONNECTION_HANDLER_SPL_COMMENT_HOOK_END
-
void
TAO_Connection_Handler::pre_io_hook (int &)
{
@@ -477,6 +463,4 @@ TAO_Connection_Handler::close_handler (u_long)
return 0;
}
-//@@ CONNECTION_HANDLER_SPL_METHODS_ADD_HOOK
-
TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Connection_Handler.h b/TAO/tao/Connection_Handler.h
index a76506d7ceb..6e7c768030a 100644
--- a/TAO/tao/Connection_Handler.h
+++ b/TAO/tao/Connection_Handler.h
@@ -33,12 +33,6 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_ORB_Core;
class TAO_Transport;
-/*
- * Hook to specialize the connection handler with the
- * concrete connection handler implementation.
- */
-//@@ CONNECTION_HANDLER_SPL_INCLUDE_FORWARD_DECL_ADD_HOOK
-
/**
* @class TAO_Connection_Handler
*
@@ -132,13 +126,6 @@ public:
virtual int handle_write_ready (const ACE_Time_Value *timeout);
- /*
- * Hook to add public methods from concrete connection handler
- * implementation onto the base connection handler.
- */
-
- //@@ CONNECTION_HANDLER_SPL_PUBLIC_METHODS_ADD_HOOK
-
protected:
/// Return our TAO_ORB_Core pointer
TAO_ORB_Core *orb_core (void);
@@ -208,19 +195,8 @@ private:
/// Once closed make sure the transport is not added back to the cache.
/// This is distinct from the leader-follower state so it cannot be reset.
bool is_closed_;
-
- /*
- * Hook to add instance members from derived class
- * onto base Connection_Handler class. Any further
- * additions to this class should go before this
- * hook.
- */
- //@@ CONNECTION_HANDLER_SPL_PRIVATE_DATA_ADD_HOOK
};
-//@@ CONNECTION_HANDLER_SPL_EXTERN_ADD_HOOK
-
-
/**
* @class TAO_Auto_Reference
*
diff --git a/TAO/tao/Connection_Handler.inl b/TAO/tao/Connection_Handler.inl
index a6c8dc8b242..f143c25b53e 100644
--- a/TAO/tao/Connection_Handler.inl
+++ b/TAO/tao/Connection_Handler.inl
@@ -69,6 +69,4 @@ TAO_Connection_Handler::handle_write_ready (const ACE_Time_Value *)
return 0;
}
-//@@ CONNECTION_HANDLER_SPL_METHODS_ADD_HOOK
-
TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Connection_Purging_Strategy.cpp b/TAO/tao/Connection_Purging_Strategy.cpp
index b6eface5905..ecdc639fbe4 100644
--- a/TAO/tao/Connection_Purging_Strategy.cpp
+++ b/TAO/tao/Connection_Purging_Strategy.cpp
@@ -6,12 +6,12 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Connection_Purging_Strategy::~TAO_Connection_Purging_Strategy (void)
+TAO_Connection_Purging_Strategy::~TAO_Connection_Purging_Strategy ()
{
}
int
-TAO_Connection_Purging_Strategy::cache_maximum (void) const
+TAO_Connection_Purging_Strategy::cache_maximum () const
{
return cache_maximum_;
}
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 9df7f6418fc..6de1485a595 100644
--- a/TAO/tao/Connector_Registry.cpp
+++ b/TAO/tao/Connector_Registry.cpp
@@ -15,13 +15,13 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Connector_Registry::TAO_Connector_Registry (void)
- : connectors_ (0),
+TAO_Connector_Registry::TAO_Connector_Registry ()
+ : connectors_ (nullptr),
size_ (0)
{
}
-TAO_Connector_Registry::~TAO_Connector_Registry (void)
+TAO_Connector_Registry::~TAO_Connector_Registry ()
{
this->close_all ();
@@ -41,7 +41,7 @@ TAO_Connector_Registry::get_connector (CORBA::ULong tag) const
return *connector;
}
- return 0;
+ return nullptr;
}
int
@@ -52,7 +52,7 @@ TAO_Connector_Registry::open (TAO_ORB_Core *orb_core)
// The array containing the TAO_Connectors will never contain more
// than the number of loaded protocols in the ORB core.
- if (this->connectors_ == 0)
+ if (this->connectors_ == nullptr)
ACE_NEW_RETURN (this->connectors_,
TAO_Connector *[pfs->size ()],
-1);
@@ -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 ())
{
@@ -92,7 +88,7 @@ TAO_Connector_Registry::open (TAO_ORB_Core *orb_core)
}
int
-TAO_Connector_Registry::close_all (void)
+TAO_Connector_Registry::close_all ()
{
const TAO_ConnectorSetIterator end = this->end ();
@@ -100,7 +96,7 @@ TAO_Connector_Registry::close_all (void)
i != end;
++i)
{
- if (*i == 0)
+ if (*i == nullptr)
continue;
(*i)->close ();
@@ -115,8 +111,7 @@ TAO_Connector_Registry::close_all (void)
int
TAO_Connector_Registry::make_mprofile (const char *ior,
- TAO_MProfile &mprofile
- )
+ TAO_MProfile &mprofile)
{
if (!ior)
// Failure: Null IOR string pointer
@@ -137,8 +132,7 @@ TAO_Connector_Registry::make_mprofile (const char *ior,
{
const int mp_result =
(*connector)->make_mprofile (ior,
- mprofile
- );
+ mprofile);
if (mp_result == 0)
return 0; // Success
@@ -172,13 +166,13 @@ TAO_Connector_Registry::create_profile (TAO_InputCDR &cdr)
TAOLIB_ERROR ((LM_ERROR,
ACE_TEXT ("TAO (%P|%t) - TAO_Connector_Registry::")
ACE_TEXT ("create_profile: Unable to extract tag from CDR stream\n")));
- return 0;
+ return nullptr;
}
TAO_Connector *connector =
this->get_connector (tag);
- if (connector == 0)
+ if (connector == nullptr)
{
if (TAO_debug_level > 0)
{
@@ -189,7 +183,7 @@ TAO_Connector_Registry::create_profile (TAO_InputCDR &cdr)
}
TAO_ORB_Core *orb_core = cdr.orb_core ();
- if (orb_core == 0)
+ if (orb_core == nullptr)
{
orb_core = TAO_ORB_Core_instance ();
if (TAO_debug_level > 0)
@@ -202,18 +196,18 @@ TAO_Connector_Registry::create_profile (TAO_InputCDR &cdr)
}
}
- TAO_Profile *pfile = 0;
+ TAO_Profile *pfile = nullptr;
ACE_NEW_RETURN (pfile,
TAO_Unknown_Profile (tag,
orb_core),
- 0);
+ nullptr);
if (pfile->decode (cdr) == -1)
{
TAOLIB_ERROR ((LM_ERROR,
ACE_TEXT ("TAO (%P|%t) - TAO_Connector_Registry::")
ACE_TEXT ("create_profile: Unable to decode unknown profile from CDR stream\n")));
pfile->_decr_refcnt ();
- pfile = 0;
+ pfile = nullptr;
}
return pfile;
@@ -231,7 +225,7 @@ TAO_Connector_Registry::create_profile (TAO_InputCDR &cdr)
TAOLIB_ERROR ((LM_ERROR,
ACE_TEXT ("TAO (%P|%t) - TAO_Connector_Registry::")
ACE_TEXT ("create_profile: Unable to extract encapsulated length from CDR stream\n")));
- return 0;
+ return nullptr;
}
// Create the decoding stream from the encapsulation in the buffer,
@@ -243,7 +237,7 @@ TAO_Connector_Registry::create_profile (TAO_InputCDR &cdr)
TAOLIB_ERROR ((LM_ERROR,
ACE_TEXT ("TAO (%P|%t) - TAO_Connector_Registry::")
ACE_TEXT ("create_profile: Unable to skip encapsulated stream from CDR stream\n")));
- return 0;
+ return nullptr;
}
TAO_Profile* profile = connector->create_profile (str);
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/DLL_Parser.cpp b/TAO/tao/DLL_Parser.cpp
index 7666e20d18e..2575c276fcb 100644
--- a/TAO/tao/DLL_Parser.cpp
+++ b/TAO/tao/DLL_Parser.cpp
@@ -16,7 +16,7 @@ static const char dll_prefix[] = "DLL:";
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_DLL_Parser::~TAO_DLL_Parser (void)
+TAO_DLL_Parser::~TAO_DLL_Parser ()
{
}
@@ -44,7 +44,7 @@ TAO_DLL_Parser::parse_string (const char *ior,
ACE_Dynamic_Service<TAO_Object_Loader>::instance
(oc->configuration(), name);
- if (loader == 0)
+ if (loader == nullptr)
{
throw
CORBA::INV_OBJREF
@@ -54,7 +54,7 @@ TAO_DLL_Parser::parse_string (const char *ior,
CORBA::COMPLETED_NO);
}
- return loader->create_object (orb, 0, 0);
+ return loader->create_object (orb, 0, nullptr);
}
diff --git a/TAO/tao/Default_Endpoint_Selector_Factory.cpp b/TAO/tao/Default_Endpoint_Selector_Factory.cpp
index a0f5c95d070..0831fb9a654 100644
--- a/TAO/tao/Default_Endpoint_Selector_Factory.cpp
+++ b/TAO/tao/Default_Endpoint_Selector_Factory.cpp
@@ -6,19 +6,19 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Default_Endpoint_Selector_Factory::TAO_Default_Endpoint_Selector_Factory (
- void)
+ )
: default_endpoint_selector_ (new TAO_Default_Endpoint_Selector)
{
}
-TAO_Default_Endpoint_Selector_Factory::~TAO_Default_Endpoint_Selector_Factory (void)
+TAO_Default_Endpoint_Selector_Factory::~TAO_Default_Endpoint_Selector_Factory ()
{
delete this->default_endpoint_selector_;
}
TAO_Invocation_Endpoint_Selector *
-TAO_Default_Endpoint_Selector_Factory::get_selector (void)
+TAO_Default_Endpoint_Selector_Factory::get_selector ()
{
// Trivial endpoint selector. Just return the default selector.
return this->default_endpoint_selector_;
diff --git a/TAO/tao/Default_Stub_Factory.cpp b/TAO/tao/Default_Stub_Factory.cpp
index ee2fa4090c8..ed4cd6f6d3c 100644
--- a/TAO/tao/Default_Stub_Factory.cpp
+++ b/TAO/tao/Default_Stub_Factory.cpp
@@ -8,7 +8,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Default_Stub_Factory::~TAO_Default_Stub_Factory (void)
+TAO_Default_Stub_Factory::~TAO_Default_Stub_Factory ()
{
}
@@ -17,7 +17,7 @@ TAO_Default_Stub_Factory::create_stub (const char *repository_id,
const TAO_MProfile &profiles,
TAO_ORB_Core *orb_core)
{
- TAO_Stub *retval = 0;
+ TAO_Stub *retval = nullptr;
ACE_NEW_THROW_EX (retval,
TAO_Stub (repository_id, profiles, orb_core),
diff --git a/TAO/tao/Default_Thread_Lane_Resources_Manager.cpp b/TAO/tao/Default_Thread_Lane_Resources_Manager.cpp
index 2715e7a9a63..dd5dced5afc 100644
--- a/TAO/tao/Default_Thread_Lane_Resources_Manager.cpp
+++ b/TAO/tao/Default_Thread_Lane_Resources_Manager.cpp
@@ -13,14 +13,14 @@ TAO_Default_Thread_Lane_Resources_Manager::TAO_Default_Thread_Lane_Resources_Man
{
}
-TAO_Default_Thread_Lane_Resources_Manager::~TAO_Default_Thread_Lane_Resources_Manager (void)
+TAO_Default_Thread_Lane_Resources_Manager::~TAO_Default_Thread_Lane_Resources_Manager ()
{
// Delete the default resources.
delete this->lane_resources_;
}
int
-TAO_Default_Thread_Lane_Resources_Manager::open_default_resources (void)
+TAO_Default_Thread_Lane_Resources_Manager::open_default_resources ()
{
TAO_ORB_Parameters * const params =
this->orb_core_->orb_params ();
@@ -38,32 +38,32 @@ TAO_Default_Thread_Lane_Resources_Manager::open_default_resources (void)
}
void
-TAO_Default_Thread_Lane_Resources_Manager::finalize (void)
+TAO_Default_Thread_Lane_Resources_Manager::finalize ()
{
// Finalize default resources.
this->lane_resources_->finalize ();
}
TAO_Thread_Lane_Resources &
-TAO_Default_Thread_Lane_Resources_Manager::lane_resources (void)
+TAO_Default_Thread_Lane_Resources_Manager::lane_resources ()
{
return *this->lane_resources_;
}
TAO_Thread_Lane_Resources &
-TAO_Default_Thread_Lane_Resources_Manager::default_lane_resources (void)
+TAO_Default_Thread_Lane_Resources_Manager::default_lane_resources ()
{
return this->lane_resources ();
}
void
-TAO_Default_Thread_Lane_Resources_Manager::shutdown_reactor (void)
+TAO_Default_Thread_Lane_Resources_Manager::shutdown_reactor ()
{
this->lane_resources_->shutdown_reactor ();
}
void
-TAO_Default_Thread_Lane_Resources_Manager::close_all_transports (void)
+TAO_Default_Thread_Lane_Resources_Manager::close_all_transports ()
{
this->lane_resources_->close_all_transports ();
}
@@ -77,19 +77,19 @@ TAO_Default_Thread_Lane_Resources_Manager::is_collocated (const TAO_MProfile &mp
// -------------------------------------------------------
TAO_Default_Thread_Lane_Resources_Manager_Factory::
-~TAO_Default_Thread_Lane_Resources_Manager_Factory (void)
+~TAO_Default_Thread_Lane_Resources_Manager_Factory ()
{
}
TAO_Thread_Lane_Resources_Manager *
TAO_Default_Thread_Lane_Resources_Manager_Factory::create_thread_lane_resources_manager (TAO_ORB_Core &core)
{
- TAO_Thread_Lane_Resources_Manager *manager = 0;
+ TAO_Thread_Lane_Resources_Manager *manager = nullptr;
/// Create the Default Thread Lane Resources Manager.
ACE_NEW_RETURN (manager,
TAO_Default_Thread_Lane_Resources_Manager (core),
- 0);
+ nullptr);
return manager;
}
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 55492e790c3..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_)
{
@@ -733,8 +733,7 @@ TAO_DynCommon::get_val (void)
// ****************************************************************
CORBA::Boolean
-TAO_DynCommon::seek (CORBA::Long slot
- )
+TAO_DynCommon::seek (CORBA::Long slot)
{
if (this->destroyed_)
{
@@ -760,7 +759,7 @@ TAO_DynCommon::seek (CORBA::Long slot
}
void
-TAO_DynCommon::rewind (void)
+TAO_DynCommon::rewind ()
{
if (this->destroyed_)
{
@@ -771,7 +770,7 @@ TAO_DynCommon::rewind (void)
}
CORBA::Boolean
-TAO_DynCommon::next (void)
+TAO_DynCommon::next ()
{
if (this->destroyed_)
{
@@ -794,7 +793,7 @@ TAO_DynCommon::next (void)
}
DynamicAny::DynAny_ptr
-TAO_DynCommon::copy (void)
+TAO_DynCommon::copy ()
{
if (this->destroyed_)
{
@@ -813,7 +812,7 @@ TAO_DynCommon::copy (void)
}
CORBA::ULong
-TAO_DynCommon::component_count (void)
+TAO_DynCommon::component_count ()
{
if (this->destroyed_)
{
@@ -899,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_)
{
@@ -1032,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);
@@ -1040,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);
@@ -1048,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);
@@ -1056,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);
@@ -1064,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);
@@ -1072,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);
@@ -1080,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);
@@ -1088,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);
@@ -1096,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);
@@ -1104,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);
@@ -1112,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);
@@ -1120,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);
@@ -1128,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);
@@ -1269,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 bd366d20ad2..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_)
{
@@ -305,8 +305,7 @@ TAO_DynStruct_i::set_members (const DynamicAny::NameValuePairSeq & values)
// member_type() does not work with aliased type codes.
CORBA::TypeCode_var unaliased_tc =
- TAO_DynAnyFactory::strip_alias (this->type_.in ()
- );
+ TAO_DynAnyFactory::strip_alias (this->type_.in ());
for (CORBA::ULong i = 0; i < length; ++i)
{
@@ -335,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_)
{
@@ -397,8 +396,7 @@ TAO_DynStruct_i::set_members_as_dyn_any (
// member_type() does not work with aliased type codes.
CORBA::TypeCode_var unaliased_tc =
- TAO_DynAnyFactory::strip_alias (this->type_.in ()
- );
+ TAO_DynAnyFactory::strip_alias (this->type_.in ());
for (CORBA::ULong i = 0; i < length; ++i)
{
@@ -435,8 +433,7 @@ TAO_DynStruct_i::from_any (const CORBA::Any & any)
CORBA::TypeCode_var tc = any.type ();
CORBA::Boolean equivalent =
- this->type_->equivalent (tc.in ()
- );
+ this->type_->equivalent (tc.in ());
if (equivalent)
{
@@ -474,8 +471,7 @@ TAO_DynStruct_i::from_any (const CORBA::Any & any)
CORBA::TypeCode_var field_tc;
CORBA::TypeCode_var unaliased =
- TAO::unaliased_typecode (this->type_.in ()
- );
+ TAO::unaliased_typecode (this->type_.in ());
for (CORBA::ULong i = 0; i < this->component_count_; ++i)
{
@@ -510,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_)
{
@@ -619,7 +615,7 @@ TAO_DynStruct_i::equal (DynamicAny::DynAny_ptr rhs)
}
void
-TAO_DynStruct_i::destroy (void)
+TAO_DynStruct_i::destroy ()
{
if (this->destroyed_)
{
@@ -641,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 92007447d85..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;
@@ -108,8 +108,7 @@ TAO_DynUnion_i::init (CORBA::TypeCode_ptr tc)
}
CORBA::TypeCode_var first_type =
- unaliased_tc->member_type (this->current_position_
- );
+ unaliased_tc->member_type (this->current_position_);
// Recursively initialize the member to its default value.
this->member_ =
@@ -261,8 +260,7 @@ TAO_DynUnion_i::set_from_any (const CORBA::Any & any)
CORBA::ULong index = static_cast<CORBA::ULong> (default_index);
CORBA::TypeCode_var default_tc =
- tc->member_type (index
- );
+ tc->member_type (index);
CORBA::Any default_any;
TAO::Unknown_IDL_Type *unk = 0;
@@ -285,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_)
{
@@ -427,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_)
{
@@ -470,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_)
{
@@ -519,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_)
{
@@ -531,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_)
{
@@ -545,7 +543,7 @@ TAO_DynUnion_i::discriminator_kind (void)
}
DynamicAny::DynAny_ptr
-TAO_DynUnion_i::member (void)
+TAO_DynUnion_i::member ()
{
if (this->destroyed_)
{
@@ -562,15 +560,13 @@ TAO_DynUnion_i::member (void)
// A deep copy is made only by copy() (CORBA 2.4.2 section 9.2.3.6).
// Set the flag so the caller can't destroy.
- this->set_flag (this->member_.in (),
- 0
- );
+ this->set_flag (this->member_.in (), 0);
return DynamicAny::DynAny::_duplicate (this->member_.in ());
}
char *
-TAO_DynUnion_i::member_name (void)
+TAO_DynUnion_i::member_name ()
{
if (this->destroyed_)
{
@@ -591,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_)
{
@@ -635,8 +631,7 @@ TAO_DynUnion_i::from_any (const CORBA::Any& any)
// Set the from_factory arg to FALSE, so any problems will throw
// TypeMismatch.
- this->set_from_any (any
- );
+ this->set_from_any (any);
}
else
{
@@ -645,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_)
{
@@ -775,7 +770,7 @@ TAO_DynUnion_i::equal (DynamicAny::DynAny_ptr rhs)
}
void
-TAO_DynUnion_i::destroy (void)
+TAO_DynUnion_i::destroy ()
{
if (this->destroyed_)
{
@@ -802,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 4f6976e784e..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_)
{
@@ -336,7 +336,7 @@ TAO_DynValueBox_i::to_any (void)
// Is this an NULL Valuetype?
if (!CORBA::ValueBase::_tao_write_special_value (
out_cdr, reinterpret_cast <CORBA::ValueBase *> (
- this->is_null_ ? 0 : this ) ))
+ this->is_null_ ? 0 : this)))
{
// Build <value-tag>, which states if chunking is used
// and if type information ((list of) repository id(s))
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 7a58d303fb3..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_)
{
@@ -704,7 +704,7 @@ TAO_DynValue_i::to_outputCDR (TAO_OutputCDR &out_cdr)
if (!CORBA::ValueBase::_tao_write_special_value (
out_cdr,
reinterpret_cast <CORBA::ValueBase *>
- (this->is_null_ ? 0 : this) ))
+ (this->is_null_ ? 0 : this)))
{
// OK since a special_value hasn't been written we are
// NOT a NULL or indirect ValueType. We need to create
@@ -1201,7 +1201,7 @@ TAO_DynValue_i::from_inputCDR (TAO_InputCDR &strm)
// base-type's state.
if (!( (currentBase || !requires_truncation) ?
ci.handle_chunking (strm) :
- ci.skip_chunks (strm) ))
+ ci.skip_chunks (strm)))
{
TAOLIB_DEBUG ((LM_DEBUG,
ACE_TEXT ("TAO (%P|%t) - %N:%l TAO_DynValue_i::from_inputCDR() ")
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 2b421eb3c91..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 ();
}
@@ -411,7 +407,7 @@ TAO_AMH_DSI_Response_Handler::gateway_exception_reply (
this->_tao_out.write_char_array (encap.buffer (),
ACE_Utils::truncate_cast<ACE_CDR::ULong> (encap.length ()));
// This will prevent the marshaling of any parameters into this reply.
- // this->sent_gateway_exception_ = 1;
+ // this->sent_gateway_exception_ = true;
this->_tao_rh_send_reply ();
}
catch (const CORBA::Exception &)
@@ -456,7 +452,7 @@ TAO_AMH_DSI_Response_Handler::gateway_exception_reply (
// to the original source of the reply.
this->_tao_out.write_octet_array_mb (encap.start());
// This will prevent the marshaling of any parameters into this reply.
- // this->sent_gateway_exception_ = 1;
+ // this->sent_gateway_exception_ = true;
this->_tao_rh_send_reply ();
}
catch (const CORBA::Exception &)
@@ -484,7 +480,7 @@ TAO_AMH_DSI_Response_Handler::_unchecked_narrow (CORBA::Object_ptr obj)
if (CORBA::is_nil (obj))
return TAO_AMH_DSI_Response_Handler::_nil ();
- return dynamic_cast < TAO_AMH_DSI_Response_Handler_ptr > (obj);
+ return dynamic_cast <TAO_AMH_DSI_Response_Handler_ptr> (obj);
}
const char*
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/DII_Arguments.cpp b/TAO/tao/DynamicInterface/DII_Arguments.cpp
index d95e1c7ab1b..7ca4ea488b9 100644
--- a/TAO/tao/DynamicInterface/DII_Arguments.cpp
+++ b/TAO/tao/DynamicInterface/DII_Arguments.cpp
@@ -59,7 +59,6 @@ namespace TAO
CORBA::Boolean
NVList_Argument::demarshal (TAO_InputCDR &cdr)
{
-
try
{
// Now, get all the "return", "out", and "inout" parameters
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.cpp b/TAO/tao/DynamicInterface/Server_Request.cpp
index e946d3179b8..6c4fcd680da 100644
--- a/TAO/tao/DynamicInterface/Server_Request.cpp
+++ b/TAO/tao/DynamicInterface/Server_Request.cpp
@@ -37,7 +37,7 @@ CORBA::ServerRequest::_decr_refcount (void)
}
CORBA::ServerRequest::ServerRequest (TAO_ServerRequest &orb_server_request)
- : lazy_evaluation_ (0),
+ : lazy_evaluation_ (false),
ctx_ (CORBA::Context::_nil ()),
params_ (CORBA::NVList::_nil ()),
retval_ (0),
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_Adapter.cpp b/TAO/tao/Dynamic_Adapter.cpp
index 76a6e2bb58d..3c0641d1acc 100644
--- a/TAO/tao/Dynamic_Adapter.cpp
+++ b/TAO/tao/Dynamic_Adapter.cpp
@@ -2,7 +2,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Dynamic_Adapter::~TAO_Dynamic_Adapter (void)
+TAO_Dynamic_Adapter::~TAO_Dynamic_Adapter ()
{
}
diff --git a/TAO/tao/Dynamic_TP/DTP_Config.h b/TAO/tao/Dynamic_TP/DTP_Config.h
index 9cda4ab6d86..1cb1cb90ead 100644
--- a/TAO/tao/Dynamic_TP/DTP_Config.h
+++ b/TAO/tao/Dynamic_TP/DTP_Config.h
@@ -47,7 +47,6 @@ struct TAO_Dynamic_TP_Export TAO_DTP_Definition
stack_size_(ACE_DEFAULT_THREAD_STACKSIZE),
timeout_(60,0),
queue_depth_(0){}
-
};
class TAO_Dynamic_TP_Export TAO_DTP_Config_Registry_Installer
@@ -101,7 +100,6 @@ private:
int parse_string (int &curarg, int argc, ACE_TCHAR* argv[], const ACE_TCHAR *match, ACE_TCHAR *&value);
void report_option_value_error (const ACE_TCHAR* option_name,
const ACE_TCHAR* option_value);
-
};
static TAO_DTP_Config_Registry_Installer config_installer;
diff --git a/TAO/tao/Dynamic_TP/DTP_ORBInitializer.h b/TAO/tao/Dynamic_TP/DTP_ORBInitializer.h
index b3aa6d5ffd4..fd884660896 100644
--- a/TAO/tao/Dynamic_TP/DTP_ORBInitializer.h
+++ b/TAO/tao/Dynamic_TP/DTP_ORBInitializer.h
@@ -42,7 +42,6 @@ class TAO_DTP_ORBInitializer
, public virtual ::CORBA::LocalObject
{
public:
-
TAO_DTP_ORBInitializer (void);
virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info);
@@ -50,11 +49,8 @@ public:
virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info);
private:
-
/// Register Dynamic_TP policy factories.
void register_policy_factories (PortableInterceptor::ORBInitInfo_ptr info);
-
-private:
};
TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Dynamic_TP/DTP_ORB_Loader.h b/TAO/tao/Dynamic_TP/DTP_ORB_Loader.h
index b1a30f0a276..8b81afd949f 100644
--- a/TAO/tao/Dynamic_TP/DTP_ORB_Loader.h
+++ b/TAO/tao/Dynamic_TP/DTP_ORB_Loader.h
@@ -33,7 +33,6 @@ class TAO_ORB_Core;
class TAO_Dynamic_TP_Export TAO_DTP_ORB_Loader : public ACE_Service_Object
{
public:
-
/// Constructor.
TAO_DTP_ORB_Loader (void);
diff --git a/TAO/tao/Dynamic_TP/DTP_POA_Loader.h b/TAO/tao/Dynamic_TP/DTP_POA_Loader.h
index 530af5a0300..a0a021149f0 100644
--- a/TAO/tao/Dynamic_TP/DTP_POA_Loader.h
+++ b/TAO/tao/Dynamic_TP/DTP_POA_Loader.h
@@ -31,7 +31,6 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_Dynamic_TP_Export TAO_DTP_POA_Loader : public ACE_Service_Object
{
public:
-
/// Constructor.
TAO_DTP_POA_Loader (void);
diff --git a/TAO/tao/Dynamic_TP/DTP_POA_Strategy.h b/TAO/tao/Dynamic_TP/DTP_POA_Strategy.h
index 2d8608d0960..3b9acd43681 100644
--- a/TAO/tao/Dynamic_TP/DTP_POA_Strategy.h
+++ b/TAO/tao/Dynamic_TP/DTP_POA_Strategy.h
@@ -32,10 +32,8 @@
#include "tao/Intrusive_Ref_Count_Handle_T.h"
#include "ace/OS_NS_strings.h"
-
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_DTP_POA_Strategy;
typedef TAO_Intrusive_Ref_Count_Handle<TAO_DTP_POA_Strategy>
TAO_DTP_POA_Strategy_Handle;
@@ -58,7 +56,6 @@ class TAO_Dynamic_TP_Export TAO_DTP_POA_Strategy:
public TAO::CSD::Strategy_Base
{
public:
-
/// Constructors.
/// This constructor supports situations where dynamic instantiation
/// of a thread pool for POAs is initiated from a svc.conf file.
@@ -110,7 +107,6 @@ class TAO_Dynamic_TP_Export TAO_DTP_POA_Strategy:
/// This is requested on the user application level.
void cancel_requests(PortableServer::Servant servant);
-
protected:
/// Handle the dispatching of a remote request.
///
@@ -157,8 +153,6 @@ class TAO_Dynamic_TP_Export TAO_DTP_POA_Strategy:
const PortableServer::ObjectId& oid);
private:
-
-
/**
* Helper method that is responsible for looking up the servant
* state object in the servant state map *if* the "serialize
@@ -201,10 +195,8 @@ class TAO_Dynamic_TP_Export TAO_DTP_POA_Strategy:
/// been sent in from an application or, if false, needs to be
/// looked up from a Dynamic TP Config repo. It works in conjunction with
/// dynamic_tp_config_name_ above.
-
bool config_initialized_;
-
void set_dtp_config(TAO_DTP_Definition &tp_config);
};
diff --git a/TAO/tao/Dynamic_TP/DTP_Task.cpp b/TAO/tao/Dynamic_TP/DTP_Task.cpp
index e587d7eb746..80a3bbd2dd2 100644
--- a/TAO/tao/Dynamic_TP/DTP_Task.cpp
+++ b/TAO/tao/Dynamic_TP/DTP_Task.cpp
@@ -153,8 +153,7 @@ TAO_DTP_Task::open (void* /* args */)
this->max_pool_threads_,
this->max_request_queue_depth_,
this->thread_stack_size_,
- this->thread_idle_time_.sec ())
- );
+ this->thread_idle_time_.sec ()));
}
// We can't activate 0 threads. Make sure this isn't the case.
@@ -346,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();
@@ -386,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 77f2cfabdd4..c39e3b57772 100644
--- a/TAO/tao/Dynamic_TP/DTP_Task.h
+++ b/TAO/tao/Dynamic_TP/DTP_Task.h
@@ -31,178 +31,178 @@
#include "ace/Synch.h"
#include "ace/Containers_T.h"
#include "ace/Vector_T.h"
+#include <atomic>
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
- /**
- * @class TP_Task
- *
- * @brief Active Object managing a queue of request objects.
- *
- * There are two types of "users" of a TP_Task object:
- *
- * 1) The TP_Strategy object that "owns" this task object.
- * 2) The worker threads that "run" this task object as an
- * "active object".
- *
- * The TP_Strategy object that "owns" this task object dictates
- * when the worker threads are activated and when they are shutdown. It
- * also injects requests into this task's queue via calls to the
- * add_request() method. It is also the TP_Strategy object that
- * dictates the number of worker threads to be activated via a call to
- * the set_num_threads() method.
- *
- * The active object pattern is implemented via the use of the
- * the ACE_Task_Base base class, and each worker thread will
- * invoke this task's svc() method, and when the svc() returns, the
- * worker thread will invoke this task's close() method (with the
- * flag argument equal to 0).
- */
- class TAO_Dynamic_TP_Export TAO_DTP_Task : public ACE_Task_Base
- {
- public:
-
- /// Default Constructor.
- TAO_DTP_Task();
+/**
+ * @class TP_Task
+ *
+ * @brief Active Object managing a queue of request objects.
+ *
+ * There are two types of "users" of a TP_Task object:
+ *
+ * 1) The TP_Strategy object that "owns" this task object.
+ * 2) The worker threads that "run" this task object as an
+ * "active object".
+ *
+ * The TP_Strategy object that "owns" this task object dictates
+ * when the worker threads are activated and when they are shutdown. It
+ * also injects requests into this task's queue via calls to the
+ * add_request() method. It is also the TP_Strategy object that
+ * dictates the number of worker threads to be activated via a call to
+ * the set_num_threads() method.
+ *
+ * The active object pattern is implemented via the use of the
+ * the ACE_Task_Base base class, and each worker thread will
+ * invoke this task's svc() method, and when the svc() returns, the
+ * worker thread will invoke this task's close() method (with the
+ * flag argument equal to 0).
+ */
+class TAO_Dynamic_TP_Export TAO_DTP_Task : public ACE_Task_Base
+{
+public:
- /// Virtual Destructor.
- virtual ~TAO_DTP_Task();
+ /// Default Constructor.
+ TAO_DTP_Task();
- struct Open_Args {
- TAO_DTP_Definition task_thread_config;
- };
+ /// Virtual Destructor.
+ virtual ~TAO_DTP_Task();
+ struct Open_Args {
+ TAO_DTP_Definition task_thread_config;
+ };
- /// Put a request object on to the request queue.
- /// Returns true if successful, false otherwise (it has been "rejected").
- bool add_request(TAO::CSD::TP_Request* request);
- /// Activate the worker threads
- virtual int open(void* args = 0);
+ /// Put a request object on to the request queue.
+ /// Returns true if successful, false otherwise (it has been "rejected").
+ bool add_request(TAO::CSD::TP_Request* request);
- /// The "mainline" executed by each worker thread.
- virtual int svc();
+ /// Activate the worker threads
+ virtual int open(void* args = 0);
- virtual int close (u_long flag = 0);
+ /// The "mainline" executed by each worker thread.
+ virtual int svc();
- /// Set the thread and queue config.
+ virtual int close (u_long flag = 0);
- void set_init_pool_threads(size_t thr_count);
+ /// Set the thread and queue config.
- void set_min_pool_threads(size_t thr_count);
+ void set_init_pool_threads(size_t thr_count);
- void set_max_pool_threads(size_t thr_count);
+ void set_min_pool_threads(size_t thr_count);
- void set_thread_stack_size(size_t stack_sz);
+ void set_max_pool_threads(size_t thr_count);
- void set_thread_idle_time(ACE_Time_Value thr_timeout);
+ void set_thread_stack_size(size_t stack_sz);
- void set_max_request_queue_depth(size_t queue_depth);
+ void set_thread_idle_time(ACE_Time_Value thr_timeout);
- /// Get the thread and queue config.
+ void set_max_request_queue_depth(size_t queue_depth);
- size_t get_init_pool_threads();
+ /// Get the thread and queue config.
- size_t get_min_pool_threads();
+ size_t get_init_pool_threads();
- size_t get_max_pool_threads();
+ size_t get_min_pool_threads();
- size_t get_max_request_queue_depth();
+ size_t get_max_pool_threads();
- size_t get_thread_stack_size();
+ size_t get_max_request_queue_depth();
- time_t get_thread_idle_time();
+ size_t get_thread_stack_size();
- /// Cancel all requests that are targeted for the provided servant.
- void cancel_servant (PortableServer::Servant servant);
+ time_t get_thread_idle_time();
- private:
- /// get the next available request. Return true if one available, nonblocking
- bool request_ready (TAO::CSD::TP_Dispatchable_Visitor &v,
- TAO::CSD::TP_Request_Handle &r);
+ /// Cancel all requests that are targeted for the provided servant.
+ void cancel_servant (PortableServer::Servant servant);
- /// release the request, reset the accepting flag if necessary
- void clear_request (TAO::CSD::TP_Request_Handle &r);
+private:
+ /// get the next available request. Return true if one available, nonblocking
+ bool request_ready (TAO::CSD::TP_Dispatchable_Visitor &v,
+ TAO::CSD::TP_Request_Handle &r);
- void add_busy (void);
- void remove_busy (void);
- void add_active (void);
- bool remove_active (bool);
- bool need_active (void);
- bool above_minimum (void);
+ /// release the request, reset the accepting flag if necessary
+ void clear_request (TAO::CSD::TP_Request_Handle &r);
- typedef TAO_SYNCH_MUTEX LockType;
- typedef TAO_Condition<LockType> ConditionType;
+ void add_busy (void);
+ void remove_busy (void);
+ void add_active (void);
+ bool remove_active (bool);
+ bool need_active (void);
+ bool above_minimum (void);
- /// Lock used to synchronize the "active_workers_" condition
- LockType aw_lock_;
- /// Lock used to synchronize manipulation of the queue
- LockType queue_lock_;
- /// Lock used to synchronize the "work_available_" condition
- LockType work_lock_;
+ typedef TAO_SYNCH_MUTEX LockType;
+ typedef TAO_Condition<LockType> ConditionType;
- /// Condition used to signal worker threads that they may be able to
- /// find a request in the queue_ that needs to be dispatched to a
- /// servant that is currently "not busy".
- /// This condition will be signal()'ed each time a new request is
- /// added to the queue_, and also when a servant has become "not busy".
- ConditionType work_available_;
+ /// Lock used to synchronize the "active_workers_" condition
+ LockType aw_lock_;
+ /// Lock used to synchronize manipulation of the queue
+ LockType queue_lock_;
+ /// Lock used to synchronize the "work_available_" condition
+ LockType work_lock_;
- /// This condition will be signal()'ed each time the num_threads_
- /// data member has its value changed. This is used to keep the
- /// close(1) invocation (ie, a shutdown request) blocked until all
- /// of the worker threads have stopped running.
- ConditionType active_workers_;
+ /// Condition used to signal worker threads that they may be able to
+ /// find a request in the queue_ that needs to be dispatched to a
+ /// servant that is currently "not busy".
+ /// This condition will be signal()'ed each time a new request is
+ /// added to the queue_, and also when a servant has become "not busy".
+ ConditionType work_available_;
- /// The number of threads that are currently active. This may be
- /// different than the total number of threads since the latter
- /// may include threads that are shutting down but not reaped.
- size_t active_count_;
+ /// This condition will be signal()'ed each time the num_threads_
+ /// data member has its value changed. This is used to keep the
+ /// close(1) invocation (ie, a shutdown request) blocked until all
+ /// of the worker threads have stopped running.
+ ConditionType active_workers_;
- /// Flag used to indicate when this task will (or will not) accept
- /// requests via the the add_request() method.
- bool accepting_requests_;
+ /// The number of threads that are currently active. This may be
+ /// different than the total number of threads since the latter
+ /// may include threads that are shutting down but not reaped.
+ size_t active_count_;
- /// Flag used to initiate a shutdown request to all worker threads.
- bool shutdown_;
+ /// Flag used to indicate when this task will (or will not) accept
+ /// requests via the the add_request() method.
+ bool accepting_requests_;
- /// Flag to indicate something is on the queue. works in conjunction with
- /// the work_available condition
- bool check_queue_;
+ /// Flag used to initiate a shutdown request to all worker threads.
+ bool shutdown_;
- /// Flag used to avoid multiple open() calls.
- bool opened_;
+ /// Flag to indicate something is on the queue. works in conjunction with
+ /// the work_available condition
+ bool check_queue_;
- /// The number of requests in the local queue.
- size_t num_queue_requests_;
+ /// Flag used to avoid multiple open() calls.
+ bool opened_;
- /// The number of currently active worker threads.
- ACE_Atomic_Op <TAO_SYNCH_MUTEX, unsigned long> busy_threads_;
+ /// The number of requests in the local queue.
+ size_t num_queue_requests_;
- /// The queue of pending servant requests (a.k.a. the "request queue").
- TAO::CSD::TP_Queue queue_;
+ /// The number of currently active worker threads.
+ std::atomic<unsigned long> busy_threads_;
- /// The low water mark for dynamic threads to settle to.
- size_t init_pool_threads_;
+ /// The queue of pending servant requests (a.k.a. the "request queue").
+ TAO::CSD::TP_Queue queue_;
- /// The low water mark for dynamic threads to settle to.
- size_t min_pool_threads_;
+ /// The low water mark for dynamic threads to settle to.
+ size_t init_pool_threads_;
- /// The high water mark for dynamic threads to be limited to.
- size_t max_pool_threads_;
+ /// The low water mark for dynamic threads to settle to.
+ size_t min_pool_threads_;
- /// If the max_pool_threads_ value has been met, then ORB requests coming in can be queued.
- /// This is the maximum number that will be allowed.
- size_t max_request_queue_depth_;
+ /// The high water mark for dynamic threads to be limited to.
+ size_t max_pool_threads_;
- /// This is the memory stack size allowable for each thread.
- size_t thread_stack_size_;
+ /// If the max_pool_threads_ value has been met, then ORB requests coming in can be queued.
+ /// This is the maximum number that will be allowed.
+ size_t max_request_queue_depth_;
- /// This is the maximum amount of time in seconds that an idle thread can
- /// stay alive before being taken out of the pool.
- ACE_Time_Value thread_idle_time_;
- };
+ /// This is the memory stack size allowable for each thread.
+ size_t thread_stack_size_;
+ /// This is the maximum amount of time in seconds that an idle thread can
+ /// stay alive before being taken out of the pool.
+ ACE_Time_Value thread_idle_time_;
+};
TAO_END_VERSIONED_NAMESPACE_DECL
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 520d3e5964c..df83f5f3124 100644
--- a/TAO/tao/Dynamic_TP/DTP_Thread_Pool.h
+++ b/TAO/tao/Dynamic_TP/DTP_Thread_Pool.h
@@ -48,7 +48,6 @@ class TAO_Dynamic_TP_Export TAO_DTP_New_Leader_Generator
: public TAO_New_Leader_Generator
{
public:
-
/// Constructor.
TAO_DTP_New_Leader_Generator (TAO_DTP_Thread_Pool &lane);
@@ -57,7 +56,6 @@ public:
bool no_leaders_available (void);
private:
-
/// Pool associated with this leader generator.
TAO_DTP_Thread_Pool &pool_;
};
@@ -243,7 +241,6 @@ public:
// @}
private:
-
/// @name Helpers
// @{
@@ -255,7 +252,6 @@ private:
// @}
private:
-
TAO_ORB_Core &orb_core_;
THREAD_POOLS thread_pools_;
diff --git a/TAO/tao/Endpoint.cpp b/TAO/tao/Endpoint.cpp
index 7142c6ab8fe..2fc670189d8 100644
--- a/TAO/tao/Endpoint.cpp
+++ b/TAO/tao/Endpoint.cpp
@@ -7,18 +7,16 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Endpoint::~TAO_Endpoint (void)
+TAO_Endpoint::~TAO_Endpoint ()
{
}
TAO_Endpoint *
TAO_Endpoint::next_filtered (TAO_ORB_Core *, TAO_Endpoint *root)
{
- if (root == 0)
+ if (root == nullptr)
return this;
return this->next();
}
TAO_END_VERSIONED_NAMESPACE_DECL
-
-//@@ TAO_ENDPOINT_SPL_METHODS_ADD_HOOK
diff --git a/TAO/tao/Endpoint.h b/TAO/tao/Endpoint.h
index 130f465c02d..f4a943177b9 100644
--- a/TAO/tao/Endpoint.h
+++ b/TAO/tao/Endpoint.h
@@ -28,12 +28,6 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_ORB_Core;
-/*
- * Includes and forward decls for specializing TAO's
- * endpoint implementation.
- */
-//@@ TAO_ENDPOINT_SPL_INCLUDE_FORWARD_DECL_ADD_HOOK
-
/**
* @class TAO_Endpoint
*
@@ -119,12 +113,6 @@ public:
/// Return a hash value for this object.
virtual CORBA::ULong hash (void) = 0;
- /*
- * Hook to add public methods from derived class onto base
- * Endpoint class.
- */
- //@@ TAO_ENDPOINT_SPL_PUBLIC_METHODS_ADD_HOOK
-
protected:
/// Lock for the address lookup.
/**
@@ -150,20 +138,11 @@ protected:
CORBA::Short priority_;
private:
-
/// Endpoints should not be copied.
TAO_Endpoint (const TAO_Endpoint&);
void operator= (const TAO_Endpoint&);
-
- /*
- * Addition of private members from derived class.
- */
- //@@ TAO_ENDPOINT_SPL_PRIVATE_DATA_ADD_HOOK
-
};
-//@@ TAO_ENDPOINT_SPL_EXTERN_ADD_HOOK
-
TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
diff --git a/TAO/tao/Endpoint_Selector_Factory.cpp b/TAO/tao/Endpoint_Selector_Factory.cpp
index 7078166b809..aaa972099ba 100644
--- a/TAO/tao/Endpoint_Selector_Factory.cpp
+++ b/TAO/tao/Endpoint_Selector_Factory.cpp
@@ -2,7 +2,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Endpoint_Selector_Factory::~TAO_Endpoint_Selector_Factory (void)
+TAO_Endpoint_Selector_Factory::~TAO_Endpoint_Selector_Factory ()
{
}
diff --git a/TAO/tao/Environment.cpp b/TAO/tao/Environment.cpp
index 5f4cb9a9d53..779bea6f483 100644
--- a/TAO/tao/Environment.cpp
+++ b/TAO/tao/Environment.cpp
@@ -11,22 +11,22 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-CORBA::Environment::Environment (void)
- : exception_ (0)
- , previous_ (0)
+CORBA::Environment::Environment ()
+ : exception_ (nullptr)
+ , previous_ (nullptr)
{
}
CORBA::Environment::Environment (const CORBA::Environment& rhs)
- : exception_ (0)
- , previous_ (0)
+ : exception_ (nullptr)
+ , previous_ (nullptr)
{
if (rhs.exception_)
this->exception_ = rhs.exception_->_tao_duplicate ();
}
CORBA::Environment::Environment (TAO_ORB_Core* orb_core)
- : exception_ (0)
+ : exception_ (nullptr)
, previous_ (orb_core->default_environment ())
{
orb_core->default_environment (this);
@@ -49,14 +49,14 @@ CORBA::Environment::operator= (const CORBA::Environment& rhs)
return *this;
}
-CORBA::Environment::~Environment (void)
+CORBA::Environment::~Environment ()
{
this->clear ();
// If previous is 0 then this is the first Environment, allocated
// with the ORB, it shouldn't try to pop because the ORB is being
// destroyed also.
- if (this->previous_ != 0)
+ if (this->previous_ != nullptr)
TAO_ORB_Core_instance ()->default_environment (this->previous_);
}
@@ -84,15 +84,15 @@ CORBA::Environment::exception (CORBA::Exception *ex)
this->exception_ = ex;
- if (this->exception_ != 0)
+ if (this->exception_ != nullptr)
this->exception_->_raise ();
}
void
-CORBA::Environment::clear (void)
+CORBA::Environment::clear ()
{
delete this->exception_;
- this->exception_ = 0;
+ this->exception_ = nullptr;
}
CORBA::Environment&
@@ -118,7 +118,7 @@ CORBA::Environment::default_environment ()
// Convenience -- say if the exception is a system exception or not.
int
-CORBA::Environment::exception_type (void) const
+CORBA::Environment::exception_type () const
{
// @@ Carlos, is this stuff that's properly "transformed" for EBCDIC
// platforms?!
@@ -156,10 +156,10 @@ CORBA::Environment::exception_type (void) const
}
const char*
-CORBA::Environment::exception_id (void) const
+CORBA::Environment::exception_id () const
{
- if (this->exception_ == 0)
- return 0;
+ if (this->exception_ == nullptr)
+ return nullptr;
return this->exception_->_rep_id ();
}
@@ -182,7 +182,7 @@ CORBA::Environment::print_exception (const char *info,
CORBA::SystemException *x2 =
CORBA::SystemException::_downcast (this->exception_);
- if (x2 != 0)
+ if (x2 != nullptr)
x2->_tao_print_system_exception ();
else
// @@ we can use the exception's typecode to dump all the data
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.cpp b/TAO/tao/Exception.cpp
index b6de9c41fce..a0234612fc2 100644
--- a/TAO/tao/Exception.cpp
+++ b/TAO/tao/Exception.cpp
@@ -45,13 +45,13 @@ CORBA::Exception::Exception (const CORBA::Exception &src)
// responsible for releasing any storage owned by the exception. It
// can do this because it's got the local name and the id.
-CORBA::Exception::Exception (void)
+CORBA::Exception::Exception ()
: id_ (),
name_ ()
{
}
-CORBA::Exception::~Exception (void)
+CORBA::Exception::~Exception ()
{
}
@@ -68,13 +68,13 @@ CORBA::Exception::operator= (const CORBA::Exception &src)
}
const char *
-CORBA::Exception::_rep_id (void) const
+CORBA::Exception::_rep_id () const
{
return this->id_.in ();
}
const char *
-CORBA::Exception::_name (void) const
+CORBA::Exception::_name () const
{
return this->name_.in ();
}
diff --git a/TAO/tao/Exception.h b/TAO/tao/Exception.h
index 84a1be86263..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;
@@ -171,18 +171,17 @@ namespace CORBA
* ACE_NEW_RETURN (
* result,
* SomeException (*this),
- * 0
- * );
+ * 0);
* return result;
* }
* };
* </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/Exclusive_TMS.cpp b/TAO/tao/Exclusive_TMS.cpp
index 1b414fa7c6f..f7c3e9c936f 100644
--- a/TAO/tao/Exclusive_TMS.cpp
+++ b/TAO/tao/Exclusive_TMS.cpp
@@ -9,11 +9,11 @@ TAO_Exclusive_TMS::TAO_Exclusive_TMS (TAO_Transport *transport)
: TAO_Transport_Mux_Strategy (transport),
request_id_generator_ (0),
request_id_ (0),
- rd_ (0)
+ rd_ (nullptr)
{
}
-TAO_Exclusive_TMS::~TAO_Exclusive_TMS (void)
+TAO_Exclusive_TMS::~TAO_Exclusive_TMS ()
{
}
@@ -21,7 +21,7 @@ TAO_Exclusive_TMS::~TAO_Exclusive_TMS (void)
// invocation. We can actually return a predecided ULong, since we
// allow only one invocation over this connection at a time.
CORBA::ULong
-TAO_Exclusive_TMS::request_id (void)
+TAO_Exclusive_TMS::request_id ()
{
++this->request_id_generator_;
@@ -58,9 +58,9 @@ TAO_Exclusive_TMS::bind_dispatcher (CORBA::ULong request_id,
}
bool
-TAO_Exclusive_TMS::has_request (void)
+TAO_Exclusive_TMS::has_request ()
{
- return this->rd_ != 0;
+ return this->rd_ != nullptr;
}
int
@@ -125,17 +125,17 @@ TAO_Exclusive_TMS::reply_timed_out (CORBA::ULong request_id)
}
bool
-TAO_Exclusive_TMS::idle_after_send (void)
+TAO_Exclusive_TMS::idle_after_send ()
{
// if there is no reply dispatcher (possible in case of AMI requests)
// release the transport now
- if (this->rd_ != 0)
+ if (this->rd_ != nullptr)
{
return false;
}
else
{
- if (this->transport_ != 0)
+ if (this->transport_ != nullptr)
{
// let WS know we're finished
this->transport_->wait_strategy ()->finished_request ();
@@ -147,12 +147,12 @@ TAO_Exclusive_TMS::idle_after_send (void)
}
bool
-TAO_Exclusive_TMS::idle_after_reply (void)
+TAO_Exclusive_TMS::idle_after_reply ()
{
// Irrespective of whether we are successful or not we need to
// return true. If *this* class is not successful in idling the
// transport no one can.
- if (this->transport_ != 0)
+ if (this->transport_ != nullptr)
{
// let WS know we're finished
this->transport_->wait_strategy ()->finished_request ();
@@ -164,9 +164,9 @@ TAO_Exclusive_TMS::idle_after_reply (void)
}
void
-TAO_Exclusive_TMS::connection_closed (void)
+TAO_Exclusive_TMS::connection_closed ()
{
- if (this->rd_ != 0)
+ if (this->rd_ != nullptr)
this->rd_->connection_closed ();
}
diff --git a/TAO/tao/FILE_Parser.cpp b/TAO/tao/FILE_Parser.cpp
index 0c9398e27c9..ea0224d4f79 100644
--- a/TAO/tao/FILE_Parser.cpp
+++ b/TAO/tao/FILE_Parser.cpp
@@ -15,7 +15,7 @@ static const char file_prefix[] = "file:";
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_FILE_Parser::~TAO_FILE_Parser (void)
+TAO_FILE_Parser::~TAO_FILE_Parser ()
{
}
@@ -39,14 +39,14 @@ TAO_FILE_Parser::parse_string (const char *ior, CORBA::ORB_ptr orb)
FILE* file = ACE_OS::fopen (ACE_TEXT_CHAR_TO_TCHAR (filename),
ACE_TEXT("r"));
- if (file == 0)
+ if (file == nullptr)
return CORBA::Object::_nil ();
ACE_Read_Buffer reader (file, true);
char* string = reader.read ();
- if (string == 0)
+ if (string == nullptr)
return CORBA::Object::_nil ();
CORBA::Object_ptr object = CORBA::Object::_nil ();
diff --git a/TAO/tao/Fault_Tolerance_Service.cpp b/TAO/tao/Fault_Tolerance_Service.cpp
index cee4f82a00a..c38de0e1be8 100644
--- a/TAO/tao/Fault_Tolerance_Service.cpp
+++ b/TAO/tao/Fault_Tolerance_Service.cpp
@@ -11,7 +11,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Fault_Tolerance_Service::~TAO_Fault_Tolerance_Service (void)
+TAO_Fault_Tolerance_Service::~TAO_Fault_Tolerance_Service ()
{
delete this->ft_service_callback_;
}
@@ -21,7 +21,7 @@ TAO_Fault_Tolerance_Service::init (TAO_ORB_Core *orb_core)
{
// Look in to the svc conf stuff to get an instance of the
// FT_Service.
- if (this->ft_service_callback_ == 0)
+ if (this->ft_service_callback_ == nullptr)
{
TAO_Services_Activate *service =
ACE_Dynamic_Service <TAO_Services_Activate>::instance ("FT_ClientService_Activate");
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/Flushing_Strategy.cpp b/TAO/tao/Flushing_Strategy.cpp
index c14d50a30a5..0da9874cc48 100644
--- a/TAO/tao/Flushing_Strategy.cpp
+++ b/TAO/tao/Flushing_Strategy.cpp
@@ -2,7 +2,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Flushing_Strategy::~TAO_Flushing_Strategy (void)
+TAO_Flushing_Strategy::~TAO_Flushing_Strategy ()
{
}
diff --git a/TAO/tao/GIOP_Fragmentation_Strategy.cpp b/TAO/tao/GIOP_Fragmentation_Strategy.cpp
index 77e62f54c1f..96c4dd80bbc 100644
--- a/TAO/tao/GIOP_Fragmentation_Strategy.cpp
+++ b/TAO/tao/GIOP_Fragmentation_Strategy.cpp
@@ -1,6 +1,6 @@
#include "tao/GIOP_Fragmentation_Strategy.h"
-TAO_GIOP_Fragmentation_Strategy::~TAO_GIOP_Fragmentation_Strategy (void)
+TAO_GIOP_Fragmentation_Strategy::~TAO_GIOP_Fragmentation_Strategy ()
{
}
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.cpp b/TAO/tao/GIOP_Message_Base.cpp
index 355b3190fb8..9b42415725f 100644
--- a/TAO/tao/GIOP_Message_Base.cpp
+++ b/TAO/tao/GIOP_Message_Base.cpp
@@ -14,11 +14,6 @@
#include "tao/ZIOP_Adapter.h"
#include "ace/Min_Max.h"
-/*
- * Hook to add additional include files during specializations.
- */
-//@@ GIOP_MESSAGE_BASE_INCLUDE_ADD_HOOK
-
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_GIOP_Message_Base::TAO_GIOP_Message_Base (TAO_ORB_Core *orb_core,
@@ -26,7 +21,7 @@ TAO_GIOP_Message_Base::TAO_GIOP_Message_Base (TAO_ORB_Core *orb_core,
size_t input_cdr_size)
: orb_core_ (orb_core)
, fragmentation_strategy_ (orb_core->fragmentation_strategy (transport))
- , out_stream_ (0,
+ , out_stream_ (nullptr,
input_cdr_size,
TAO_ENCAP_BYTE_ORDER,
orb_core->output_cdr_buffer_allocator (),
@@ -51,7 +46,7 @@ TAO_GIOP_Message_Base::TAO_GIOP_Message_Base (TAO_ORB_Core *orb_core,
}
-TAO_GIOP_Message_Base::~TAO_GIOP_Message_Base (void)
+TAO_GIOP_Message_Base::~TAO_GIOP_Message_Base ()
{
#if defined (TAO_HAS_MONITOR_POINTS) && (TAO_HAS_MONITOR_POINTS == 1)
this->out_stream_.unregister_monitor ();
@@ -67,7 +62,7 @@ TAO_GIOP_Message_Base::init (CORBA::Octet major, CORBA::Octet minor)
}
TAO_OutputCDR &
-TAO_GIOP_Message_Base::out_stream (void)
+TAO_GIOP_Message_Base::out_stream ()
{
return this->out_stream_;
}
@@ -238,10 +233,10 @@ TAO_GIOP_Message_Base::dump_consolidated_msg (TAO_OutputCDR &stream)
// Check whether the output cdr stream is build up of multiple
// messageblocks. If so, consolidate them to one block that can be
// dumped
- ACE_Message_Block* consolidated_block = 0;
+ ACE_Message_Block* consolidated_block = nullptr;
char *buf = const_cast <char*> (stream.buffer ());
size_t const total_len = stream.total_length ();
- if (stream.begin()->cont () != 0)
+ if (stream.begin()->cont () != nullptr)
{
ACE_NEW_RETURN (consolidated_block, ACE_Message_Block, 0);
ACE_CDR::consolidate (consolidated_block, stream.begin ());
@@ -251,7 +246,7 @@ TAO_GIOP_Message_Base::dump_consolidated_msg (TAO_OutputCDR &stream)
this->dump_msg ("send", reinterpret_cast <u_char *> (buf), total_len);
delete consolidated_block;
- consolidated_block = 0;
+ consolidated_block = nullptr;
return 0;
}
@@ -391,7 +386,7 @@ TAO_GIOP_Message_Base::extract_next_message (ACE_Message_Block &incoming,
qd = this->make_queued_data (buf_size);
- if (qd == 0)
+ if (qd == nullptr)
{
if (TAO_debug_level > 0)
{
@@ -411,7 +406,7 @@ TAO_GIOP_Message_Base::extract_next_message (ACE_Message_Block &incoming,
else
{
// handle not initialized variables
- qd = 0; // reset
+ qd = nullptr; // reset
}
return 0;
@@ -427,7 +422,7 @@ TAO_GIOP_Message_Base::extract_next_message (ACE_Message_Block &incoming,
qd = this->make_queued_data (copying_len);
- if (qd == 0)
+ if (qd == nullptr)
{
if (TAO_debug_level > 0)
{
@@ -615,7 +610,7 @@ TAO_GIOP_Message_Base::process_request_message (TAO_Transport *transport,
ACE_Message_Block::MB_DATA,
repbuf,
this->orb_core_->input_cdr_buffer_allocator (),
- 0,
+ nullptr,
ACE_Message_Block::DONT_DELETE,
this->orb_core_->input_cdr_dblock_allocator ());
@@ -652,7 +647,7 @@ TAO_GIOP_Message_Base::process_request_message (TAO_Transport *transport,
// we pass it on to the higher layers of the ORB. So we dont to any
// copies at all here. The same is also done in the higher layers.
- ACE_Data_Block *db = 0;
+ ACE_Data_Block *db = nullptr;
// Get the flag in the message block
ACE_Message_Block::Message_Flags flg = qd->msg_block ()->self_flags ();
@@ -773,7 +768,7 @@ TAO_GIOP_Message_Base::process_reply_message (
size_t wr_pos = qd->msg_block ()->wr_ptr () - qd->msg_block ()->base ();
rd_pos += TAO_GIOP_MESSAGE_HEADER_LEN;
- ACE_Data_Block *db = 0;
+ ACE_Data_Block *db = nullptr;
// Get the flag in the message block
ACE_Message_Block::Message_Flags flg = qd->msg_block ()->self_flags ();
@@ -852,7 +847,7 @@ TAO_GIOP_Message_Base::process_reply_message (
return retval;
params.input_cdr_ = &input_cdr;
- params.transport_->assign_translators (params.input_cdr_, 0);
+ params.transport_->assign_translators (params.input_cdr_, nullptr);
retval = params.transport_->tms ()->dispatch_reply (params);
@@ -980,21 +975,12 @@ TAO_GIOP_Message_Base::process_request (
CORBA::Object_var forward_to;
- /*
- * Hook to specialize request processing within TAO
- * This hook will be replaced by specialized request
- * processing implementation.
- */
-//@@ TAO_DISPATCH_RESOLUTION_OPT_COMMENT_HOOK_START
-
// Do this before the reply is sent.
this->orb_core_->request_dispatcher ()->dispatch (
this->orb_core_,
request,
forward_to);
-//@@ TAO_DISPATCH_RESOLUTION_OPT_COMMENT_HOOK_END
-
if (request.is_forwarded ())
{
CORBA::Boolean const permanent_forward_condition =
@@ -1016,9 +1002,9 @@ TAO_GIOP_Message_Base::process_request (
&request.reply_service_info ());
output.message_attributes (request_id,
- 0,
+ nullptr,
TAO_Message_Semantics (TAO_Message_Semantics::TAO_REPLY),
- 0);
+ nullptr);
// Make the GIOP header and Reply header
this->generate_reply_header (output, reply_params);
@@ -1036,7 +1022,7 @@ TAO_GIOP_Message_Base::process_request (
output.more_fragments (false);
int const result = transport->send_message (output,
- 0,
+ nullptr,
&request,
TAO_Message_Semantics (TAO_Message_Semantics::TAO_REPLY));
if (result == -1)
@@ -1290,8 +1276,8 @@ TAO_GIOP_Message_Base::make_send_locate_reply (TAO_Transport *transport,
// Send the message
int const result = transport->send_message (output,
- 0,
- 0,
+ nullptr,
+ nullptr,
TAO_Message_Semantics (TAO_Message_Semantics::TAO_REPLY));
// Print out message if there is an error
@@ -1341,10 +1327,10 @@ TAO_GIOP_Message_Base::send_error (TAO_Transport *transport)
ACE_Data_Block data_block (TAO_GIOP_MESSAGE_HEADER_LEN,
ACE_Message_Block::MB_DATA,
error_message,
- 0,
- 0,
+ nullptr,
+ nullptr,
ACE_Message_Block::DONT_DELETE,
- 0);
+ nullptr);
ACE_Message_Block message_block(&data_block,
ACE_Message_Block::DONT_DELETE);
message_block.wr_ptr (TAO_GIOP_MESSAGE_HEADER_LEN);
@@ -1449,10 +1435,10 @@ TAO_GIOP_Message_Base::
ACE_Data_Block data_block (TAO_GIOP_MESSAGE_HEADER_LEN,
ACE_Message_Block::MB_DATA,
close_message,
- 0,
- 0,
+ nullptr,
+ nullptr,
ACE_Message_Block::DONT_DELETE,
- 0);
+ nullptr);
ACE_Message_Block message_block(&data_block);
message_block.wr_ptr (TAO_GIOP_MESSAGE_HEADER_LEN);
@@ -1492,7 +1478,7 @@ TAO_GIOP_Message_Base::send_reply_exception (
// this).
reply_params.service_context_notowned (svc_info);
- if (CORBA::SystemException::_downcast (x) != 0)
+ if (CORBA::SystemException::_downcast (x) != nullptr)
{
reply_params.reply_status (GIOP::SYSTEM_EXCEPTION);
}
@@ -1506,7 +1492,7 @@ TAO_GIOP_Message_Base::send_reply_exception (
output.more_fragments (false);
- return transport->send_message (output, 0, 0, TAO_Message_Semantics (TAO_Message_Semantics::TAO_REPLY));
+ return transport->send_message (output, nullptr, nullptr, TAO_Message_Semantics (TAO_Message_Semantics::TAO_REPLY));
}
void
@@ -1548,7 +1534,7 @@ TAO_GIOP_Message_Base::dump_msg (const char *label,
// request/reply id.
CORBA::ULong tmp = 0;
CORBA::ULong *id = &tmp;
- char *tmp_id = 0;
+ char *tmp_id = nullptr;
if (ptr[TAO_GIOP_MESSAGE_TYPE_OFFSET] == GIOP::Request ||
ptr[TAO_GIOP_MESSAGE_TYPE_OFFSET] == GIOP::Reply ||
@@ -1658,7 +1644,7 @@ TAO_GIOP_Message_Base::make_queued_data (size_t sz)
this->orb_core_->input_cdr_msgblock_allocator (),
db);
- if (qd == 0)
+ if (qd == nullptr)
{
if (TAO_debug_level > 0)
{
@@ -1667,14 +1653,14 @@ TAO_GIOP_Message_Base::make_queued_data (size_t sz)
ACE_TEXT ("out of memory, failed to allocate queued data object\n")));
}
db->release ();
- return 0; // NULL pointer
+ return nullptr; // NULL pointer
}
return qd;
}
size_t
-TAO_GIOP_Message_Base::header_length (void) const
+TAO_GIOP_Message_Base::header_length () const
{
return TAO_GIOP_MESSAGE_HEADER_LEN;
}
@@ -1710,7 +1696,7 @@ TAO_GIOP_Message_Base::parse_request_id (const TAO_Queued_Data *qd,
// copies at all here. The same is also done in the higher layers.
ACE_Message_Block::Message_Flags flg = 0;
- ACE_Data_Block *db = 0;
+ ACE_Data_Block *db = nullptr;
// Get the flag in the message block
flg = qd->msg_block ()->self_flags ();
@@ -1804,15 +1790,15 @@ TAO_GIOP_Message_Base::consolidate_fragmented_message (
{
TAO::Incoming_Message_Stack reverse_stack;
- TAO_Queued_Data *tail = 0;
- TAO_Queued_Data *head = 0;
+ TAO_Queued_Data *tail = nullptr;
+ TAO_Queued_Data *head = nullptr;
//
// CONSOLIDATE FRAGMENTED MESSAGE
//
// check for error-condition
- if (qd == 0)
+ if (qd == nullptr)
{
return -1;
}
@@ -1828,7 +1814,7 @@ TAO_GIOP_Message_Base::consolidate_fragmented_message (
{
this->fragment_stack_.push (qd);
- msg = 0; // no consolidated message available yet
+ msg = nullptr; // no consolidated message available yet
return 1; // status: more messages expected.
}
@@ -1864,7 +1850,7 @@ TAO_GIOP_Message_Base::consolidate_fragmented_message (
head->msg_block ()->cont (tail->msg_block ());
- tail->msg_block (0);
+ tail->msg_block (nullptr);
TAO_Queued_Data::release (tail);
@@ -1905,7 +1891,7 @@ TAO_GIOP_Message_Base::consolidate_fragmented_message (
head->msg_block ()->cont (tail->msg_block ());
- tail->msg_block (0);
+ tail->msg_block (nullptr);
TAO_Queued_Data::release (tail);
@@ -1958,7 +1944,7 @@ TAO_GIOP_Message_Base::discard_fragmented_message (const TAO_Queued_Data *cancel
return -1;
}
- TAO_Queued_Data *head = 0;
+ TAO_Queued_Data *head = nullptr;
// Revert stack
while (this->fragment_stack_.pop (head) != -1)
@@ -2010,7 +1996,7 @@ TAO_GIOP_Message_Base::discard_fragmented_message (const TAO_Queued_Data *cancel
}
TAO_GIOP_Fragmentation_Strategy *
-TAO_GIOP_Message_Base::fragmentation_strategy (void)
+TAO_GIOP_Message_Base::fragmentation_strategy ()
{
return this->fragmentation_strategy_;
}
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.cpp b/TAO/tao/GIOP_Message_Generator_Parser.cpp
index bf339a05610..3d5efa6a49d 100644
--- a/TAO/tao/GIOP_Message_Generator_Parser.cpp
+++ b/TAO/tao/GIOP_Message_Generator_Parser.cpp
@@ -8,7 +8,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_GIOP_Message_Generator_Parser::~TAO_GIOP_Message_Generator_Parser (void)
+TAO_GIOP_Message_Generator_Parser::~TAO_GIOP_Message_Generator_Parser ()
{
}
@@ -90,7 +90,7 @@ TAO_GIOP_Message_Generator_Parser::parse_locate_reply (
}
bool
-TAO_GIOP_Message_Generator_Parser::is_ready_for_bidirectional (void) const
+TAO_GIOP_Message_Generator_Parser::is_ready_for_bidirectional () const
{
return false;
}
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 &params);
/// 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.cpp b/TAO/tao/GIOP_Message_Generator_Parser_10.cpp
index e9a6ca9f4bc..3775c7789be 100644
--- a/TAO/tao/GIOP_Message_Generator_Parser_10.cpp
+++ b/TAO/tao/GIOP_Message_Generator_Parser_10.cpp
@@ -456,21 +456,21 @@ TAO_GIOP_Message_Generator_Parser_10::parse_locate_reply (
}
CORBA::Octet
-TAO_GIOP_Message_Generator_Parser_10::major_version (void) const
+TAO_GIOP_Message_Generator_Parser_10::major_version () const
{
// Any harm in hardcoding??
return static_cast<CORBA::Octet> (1);
}
CORBA::Octet
-TAO_GIOP_Message_Generator_Parser_10::minor_version (void) const
+TAO_GIOP_Message_Generator_Parser_10::minor_version () const
{
// Any harm in hardcoding??
return 0;
}
size_t
-TAO_GIOP_Message_Generator_Parser_10::fragment_header_length (void) const
+TAO_GIOP_Message_Generator_Parser_10::fragment_header_length () const
{
return 0;
}
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 &params);
/// 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.cpp b/TAO/tao/GIOP_Message_Generator_Parser_11.cpp
index 9dcc9dfe78d..9f030a51d1f 100644
--- a/TAO/tao/GIOP_Message_Generator_Parser_11.cpp
+++ b/TAO/tao/GIOP_Message_Generator_Parser_11.cpp
@@ -4,7 +4,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
CORBA::Octet
-TAO_GIOP_Message_Generator_Parser_11::minor_version (void) const
+TAO_GIOP_Message_Generator_Parser_11::minor_version () const
{
return static_cast<CORBA::Octet> (1);
}
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.cpp b/TAO/tao/GIOP_Message_Generator_Parser_12.cpp
index 9b0c1a683cf..aec9acbfd60 100644
--- a/TAO/tao/GIOP_Message_Generator_Parser_12.cpp
+++ b/TAO/tao/GIOP_Message_Generator_Parser_12.cpp
@@ -380,20 +380,20 @@ TAO_GIOP_Message_Generator_Parser_12::parse_locate_reply (
CORBA::Octet
-TAO_GIOP_Message_Generator_Parser_12::major_version (void) const
+TAO_GIOP_Message_Generator_Parser_12::major_version () const
{
return static_cast<CORBA::Octet> (1);
}
CORBA::Octet
-TAO_GIOP_Message_Generator_Parser_12::minor_version (void) const
+TAO_GIOP_Message_Generator_Parser_12::minor_version () const
{
return static_cast<CORBA::Octet> (2);
}
bool
-TAO_GIOP_Message_Generator_Parser_12::is_ready_for_bidirectional (void) const
+TAO_GIOP_Message_Generator_Parser_12::is_ready_for_bidirectional () const
{
// We do support bidirectional
return true;
@@ -465,7 +465,7 @@ TAO_GIOP_Message_Generator_Parser_12::marshall_target_spec (
return false;
// Get the IOR
- IOP::IOR *ior = 0;
+ IOP::IOR *ior = nullptr;
CORBA::ULong const index = spec.iop_ior (ior);
if (ior)
@@ -502,7 +502,7 @@ TAO_GIOP_Message_Generator_Parser_12::marshall_target_spec (
}
size_t
-TAO_GIOP_Message_Generator_Parser_12::fragment_header_length (void) const
+TAO_GIOP_Message_Generator_Parser_12::fragment_header_length () const
{
return TAO_GIOP_MESSAGE_FRAGMENT_HEADER;
}
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 &params);
/// 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/GUIResource_Factory.cpp b/TAO/tao/GUIResource_Factory.cpp
index 27f7a008861..18e9854bf0d 100644
--- a/TAO/tao/GUIResource_Factory.cpp
+++ b/TAO/tao/GUIResource_Factory.cpp
@@ -1,22 +1,23 @@
#include "tao/GUIResource_Factory.h"
#include "ace/Reactor.h"
+#include "ace/Guard_T.h"
#include "tao/debug.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
- GUIResource_Factory::GUIResource_Factory (void)
+ GUIResource_Factory::GUIResource_Factory ()
: dynamically_allocated_reactor_ (false)
{
}
- GUIResource_Factory::~GUIResource_Factory (void)
+ GUIResource_Factory::~GUIResource_Factory ()
{
}
ACE_Reactor *
- GUIResource_Factory::get_reactor (void)
+ GUIResource_Factory::get_reactor ()
{
// @@Marek, do we need a lock here??
// @Bala, I suppose we don't need locking for any
@@ -27,17 +28,17 @@ namespace TAO
// what for. Nevertheless, just for a case I sync the creation of reactor.
// I think, that double checked locking is
// not necessary, because the performance is not an issue here.
- ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 0);
+ ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, nullptr);
- ACE_Reactor *reactor = 0;
+ ACE_Reactor *reactor = nullptr;
ACE_NEW_RETURN (reactor,
ACE_Reactor (this->reactor_impl (), 1),
- 0);
+ nullptr);
if (reactor->initialized () == 0)
{
delete reactor;
- reactor = 0;
+ reactor = nullptr;
}
else
this->dynamically_allocated_reactor_ = true;
diff --git a/TAO/tao/Generic_Sequence_T.h b/TAO/tao/Generic_Sequence_T.h
index f34e92110e3..07a46d0d6f4 100644
--- a/TAO/tao/Generic_Sequence_T.h
+++ b/TAO/tao/Generic_Sequence_T.h
@@ -66,38 +66,11 @@ namespace TAO
namespace details
{
-#if defined TAO_HAS_SEQUENCE_ITERATORS && TAO_HAS_SEQUENCE_ITERATORS == 1
-
-// Forward declare the iterators
-template<typename T>
-class Generic_Sequence_Iterator;
-
-template<typename T>
-class Const_Generic_Sequence_Iterator;
-
-template<typename T>
-class Generic_Sequence_Reverse_Iterator;
-
-template<typename T>
-class Const_Generic_Sequence_Reverse_Iterator;
-
-#endif /* TAO_HAS_SEQUENCE_ITERATORS==1 */
-
template<typename T,
class ALLOCATION_TRAITS,
class ELEMENT_TRAITS>
class generic_sequence
{
-
-#if defined TAO_HAS_SEQUENCE_ITERATORS && TAO_HAS_SEQUENCE_ITERATORS == 1
-
- friend class Generic_Sequence_Iterator<generic_sequence<T, ALLOCATION_TRAITS, ELEMENT_TRAITS> >;
- friend class Const_Generic_Sequence_Iterator<generic_sequence<T, ALLOCATION_TRAITS, ELEMENT_TRAITS> >;
- friend class Generic_Sequence_Reverse_Iterator<generic_sequence<T, ALLOCATION_TRAITS, ELEMENT_TRAITS> >;
- friend class Const_Generic_Sequence_Reverse_Iterator<generic_sequence<T, ALLOCATION_TRAITS, ELEMENT_TRAITS> >;
-
-#endif /* TAO_HAS_SEQUENCE_ITERATORS==1 */
-
public:
typedef T value_type;
typedef ALLOCATION_TRAITS allocation_traits;
@@ -105,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())
@@ -361,80 +334,6 @@ public:
allocation_traits::freebuf(buffer);
}
-#if defined TAO_HAS_SEQUENCE_ITERATORS && TAO_HAS_SEQUENCE_ITERATORS == 1
-
- ///
- /// Additions to support iterator semantics for TAO sequences.
- ///
-
- // = Traits and factory methods that create iterators.
- typedef Generic_Sequence_Iterator<generic_sequence<T, ALLOCATION_TRAITS, ELEMENT_TRAITS> > iterator;
- typedef Const_Generic_Sequence_Iterator<generic_sequence<T, ALLOCATION_TRAITS, ELEMENT_TRAITS> > const_iterator;
- typedef Generic_Sequence_Reverse_Iterator<generic_sequence<T, ALLOCATION_TRAITS, ELEMENT_TRAITS> > reverse_iterator;
- typedef Const_Generic_Sequence_Reverse_Iterator<generic_sequence<T, ALLOCATION_TRAITS, ELEMENT_TRAITS> > const_reverse_iterator;
-
- /// Get an iterator that points to the beginning of the sequence.
- iterator begin (void)
- {
- return typename generic_sequence<T, ALLOCATION_TRAITS, ELEMENT_TRAITS>::iterator (this);
- }
-
- /// Get a const iterator that points to the beginning of the sequence.
- const_iterator begin (void) const
- {
- return typename generic_sequence<T, ALLOCATION_TRAITS, ELEMENT_TRAITS>::const_iterator (this);
- }
-
- /// Get an iterator that points to the end of the sequence.
- iterator end (void)
- {
- return typename generic_sequence<T, ALLOCATION_TRAITS, ELEMENT_TRAITS>::iterator (this,
- this->length_);
- }
-
- /// Get a const iterator that points to the end of the sequence.
- const_iterator end (void) const
- {
- return typename generic_sequence<T, ALLOCATION_TRAITS, ELEMENT_TRAITS>::const_iterator (this,
- this->length_);
- }
-
- // Get a reverse iterator that points to the end of the sequence.
- reverse_iterator rbegin (void)
- {
- // Here we need to be at the last element - not one past.
- return typename generic_sequence<T, ALLOCATION_TRAITS, ELEMENT_TRAITS>::reverse_iterator (this,
- this->length_ - 1);
- }
-
- // Get a const reverse iterator that points to the end of the sequence.
- const_reverse_iterator rbegin (void) const
- {
- // Here we need to be at the last element - not one past.
- return typename generic_sequence<T, ALLOCATION_TRAITS, ELEMENT_TRAITS>::const_reverse_iterator (this,
- this->length_ - 1);
- }
-
- // Get a reverse iterator that points to one before the
- // beginning of the sequence.
- reverse_iterator rend (void)
- {
- // Here we need to be at one before the first element - not the first.
- return typename generic_sequence<T, ALLOCATION_TRAITS, ELEMENT_TRAITS>::reverse_iterator (this,
- -1);
- }
-
- // Get a const reverse iterator that points to one before the
- // beginning of the sequence.
- const_reverse_iterator rend (void) const
- {
- // Here we need to be at one before the first element - not the first.
- return typename generic_sequence<T, ALLOCATION_TRAITS, ELEMENT_TRAITS>::const_reverse_iterator (this,
- -1);
- }
-
-#endif /* TAO_HAS_SEQUENCE_ITERATORS==1 */
-
private:
/// The maximum number of elements the buffer can contain.
CORBA::ULong maximum_;
@@ -446,891 +345,6 @@ private:
/// destroyed.
mutable CORBA::Boolean release_;
};
-
-#if defined TAO_HAS_SEQUENCE_ITERATORS && TAO_HAS_SEQUENCE_ITERATORS == 1
-
-/**
- * @class Generic_Sequence_Iterator
- * @brief Implements a random access iterator for generic sequence type
- * classes.
- */
-template <typename SEQUENCE_T>
- class Generic_Sequence_Iterator
-{
- friend class Const_Generic_Sequence_Iterator<SEQUENCE_T>;
-
-public:
- // = Necessary traits
- typedef std::random_access_iterator_tag iterator_category;
- typedef typename SEQUENCE_T::value_type value_type;
- typedef typename SEQUENCE_T::value_type *pointer;
- typedef typename SEQUENCE_T::value_type &reference;
- typedef typename SEQUENCE_T::allocation_traits allocation_traits;
- typedef typename SEQUENCE_T::element_traits element_traits;
- typedef CORBA::Long difference_type;
-
- /// Construct a Generic_Sequence_Iterator at position pos.
- Generic_Sequence_Iterator (generic_sequence<value_type,
- allocation_traits,
- element_traits> *sequence,
- size_t pos = 0)
- : sequence_ (sequence),
- pos_ (pos)
- {
- }
-
- /// Copy constructor
- Generic_Sequence_Iterator (Generic_Sequence_Iterator<SEQUENCE_T> const & rhs)
- : sequence_ (rhs.sequence_),
- pos_ (rhs.pos_)
- {
- }
-
- /// Assignment operator
- Generic_Sequence_Iterator & operator= (
- Generic_Sequence_Iterator<SEQUENCE_T> const & rhs)
- {
- Generic_Sequence_Iterator tmp(rhs);
- swap (tmp);
- return * this;
- }
-
- /// swaps all members
- void swap(Generic_Sequence_Iterator<SEQUENCE_T> & rhs)
- throw()
- {
- std::swap (sequence_, rhs.sequence_);
- std::swap (this->pos_, rhs.pos_);
- }
-
- /// typecast operator to Const_Generic_Sequence_Iterator
- operator Const_Generic_Sequence_Iterator<SEQUENCE_T> ()
- {
- return Const_Generic_Sequence_Iterator<SEQUENCE_T> (*this);
- }
-
- /// Dereference operator returns a reference to the item contained
- /// at the current position
- value_type & operator* (void)
- {
- // Access the underlying element in the sequence.
- return (*(this->sequence_))[this->pos_];
- }
-
- /// Returns a const reference to the item contained at the current position
- const value_type & operator* (void) const
- {
- // Access the underlying element in the sequence.
- return (*(this->sequence_))[this->pos_];
- }
-
- /// Preincrement operator
- Generic_Sequence_Iterator<SEQUENCE_T> &operator++ (void)
- {
- // Increment the position.
- // We also need to check if we're now past the end.
- ++this->pos_;
- return *this;
- }
-
- /// Postincrement operator
- Generic_Sequence_Iterator<SEQUENCE_T> operator++ (int)
- {
- // Create a temporary to return so that it's not modified.
- Generic_Sequence_Iterator<SEQUENCE_T> temp_iter (this->sequence_, this->pos_);
- // Increment the position.
- // We also need to check if we're now past the end.
- ++this->pos_;
- return temp_iter;
- }
-
- /// Predecrement operator
- Generic_Sequence_Iterator<SEQUENCE_T> &operator-- (void)
- {
- --this->pos_;
- return *this;
- }
-
- /// Postdecrement operator
- Generic_Sequence_Iterator<SEQUENCE_T> operator-- (int)
- {
- // Create a temporary to return so that it's not modified.
- Generic_Sequence_Iterator<SEQUENCE_T> temp_iter (this->sequence_, this->pos_);
- --this->pos_;
- return temp_iter;
- }
-
- /// Iterator addition
- Generic_Sequence_Iterator<SEQUENCE_T> &operator+= (difference_type n)
- {
- // Move ahead n elements.
- this->pos_ += n;
- return *this;
- }
-
- /// Iterator addition
- Generic_Sequence_Iterator<SEQUENCE_T> operator+ (difference_type n)
- {
- // Create a temporary to return and move it ahead n elements.
- return Generic_Sequence_Iterator<SEQUENCE_T> (this->sequence_, this->pos_ + n);
- }
-
- /// Iterator subtraction
- Generic_Sequence_Iterator<SEQUENCE_T> &operator-= (difference_type n)
- {
- // Move back n elements.
- this->pos_ -= n;
- return *this;
- }
-
- /// Iterator subtraction
- Generic_Sequence_Iterator<SEQUENCE_T> operator- (difference_type n)
- {
- // Create a temporary to return and move it back n elements.
- return Generic_Sequence_Iterator<SEQUENCE_T> (this->sequence_, this->pos_ - n);
- }
-
- /// Difference
- difference_type operator- (const Generic_Sequence_Iterator<SEQUENCE_T> & rhs)
- {
- // I think order is important here (i.e., rhs before this).
- return this->pos_ - rhs.pos_;
- }
-
- /// Difference
- difference_type operator- (const Const_Generic_Sequence_Iterator<SEQUENCE_T> & rhs)
- {
- // I think order is important here (i.e., rhs before this).
- return this->pos_ - rhs.pos_;
- }
-
-
- /// Element operator/assignment
- value_type & operator[] (difference_type n)
- {
- // Return the element at position n
- return (*(this->sequence_))[this->pos_ + n];
- }
-
- /// Less than
- bool operator< (const Generic_Sequence_Iterator<SEQUENCE_T> & rhs)
- {
- // Return if this iterator is less than the passed in iterator.
- return this->pos_ < rhs.pos_;
- }
-
- /// Less than
- bool operator< (const Const_Generic_Sequence_Iterator<SEQUENCE_T> & rhs)
- {
- // Return if this iterator is less than the passed in iterator.
- return this->pos_ < rhs.pos_;
- }
-
-
- /// Equality operator
- bool operator== (const Generic_Sequence_Iterator<SEQUENCE_T> &rhs) const
- {
- // Compare all the data members for equality.
- return this->sequence_ == rhs.sequence_
- && this->pos_ == rhs.pos_;
- }
-
- /// Nonequality operator
- bool operator!= (const Generic_Sequence_Iterator<SEQUENCE_T> &rhs) const
- {
- return !(*this == rhs);
- }
-
-private:
- /// the sequence with which we are dealing
- generic_sequence<value_type, allocation_traits, element_traits> *sequence_;
-
- /// Our current position in the sequence.
- mutable difference_type pos_;
-};
-
-
-/// Iterator addition with the difference_type being the first argument.
-template<typename SEQUENCE_T>
- Generic_Sequence_Iterator<SEQUENCE_T>
- operator+ (typename Generic_Sequence_Iterator<SEQUENCE_T>::difference_type n,
- const Generic_Sequence_Iterator<SEQUENCE_T> & iter)
- {
- // Create an iter and move it ahead n elements.
- return Generic_Sequence_Iterator<SEQUENCE_T> (iter.sequence_, iter.pos_ + n);
- }
-
-/// Iterator subtraction with the difference_type being the first argument.
-template<typename SEQUENCE_T>
- Generic_Sequence_Iterator<SEQUENCE_T> operator-
- (typename Generic_Sequence_Iterator<SEQUENCE_T>::difference_type n,
- Generic_Sequence_Iterator<SEQUENCE_T> iter)
- {
- // Create an iter and move it back n elements.
- return Generic_Sequence_Iterator<SEQUENCE_T> (iter.sequence_, iter.pos_ - n);
- }
-
-
-/**
- * @class Const_Generic_Sequence_Iterator
- * @brief Implements a constant random access iterator for generic sequence
- * type classes.
- *
- * Note: Having a const Iterator does not guarantee that the current
- * *position* that it points to will not change, it only guarantees that
- * you cannot change the underlying array!
- */
-template <typename SEQUENCE_T>
-class Const_Generic_Sequence_Iterator
-{
- friend class Generic_Sequence_Iterator<SEQUENCE_T>;
-
-public:
- // = Necessary traits
- typedef std::random_access_iterator_tag iterator_category;
- typedef typename SEQUENCE_T::value_type value_type;
- typedef typename SEQUENCE_T::value_type *pointer;
- typedef typename SEQUENCE_T::value_type &reference;
- typedef typename SEQUENCE_T::allocation_traits allocation_traits;
- typedef typename SEQUENCE_T::element_traits element_traits;
- typedef int difference_type;
-
- /// Construct a Const_Generic_Sequence_Iterator at position pos from
- /// a const sequence.
- Const_Generic_Sequence_Iterator (const generic_sequence<value_type,
- allocation_traits,
- element_traits> *sequence,
- size_t pos = 0)
- : sequence_ (sequence),
- pos_ (pos)
- {
- }
-
- virtual ~Const_Generic_Sequence_Iterator ()
- {
- }
-
- /// Copy constructor
- Const_Generic_Sequence_Iterator (
- Const_Generic_Sequence_Iterator<SEQUENCE_T> const & rhs)
- : sequence_ (rhs.sequence_),
- pos_ (rhs.pos_)
- {
- }
-
- /// Copy constructor initializing by a Generic_Sequence_Iterator
- explicit Const_Generic_Sequence_Iterator (
- Generic_Sequence_Iterator<SEQUENCE_T> const & rhs)
- : sequence_ (rhs.sequence_),
- pos_ (rhs.pos_)
- {
- }
-
- /// Assignment operator
- Const_Generic_Sequence_Iterator & operator= (
- Const_Generic_Sequence_Iterator<SEQUENCE_T> const & rhs)
- {
- Const_Generic_Sequence_Iterator tmp(rhs);
- swap (tmp);
- return * this;
- }
-
- /// swaps all members
- void swap(Const_Generic_Sequence_Iterator<SEQUENCE_T> & rhs)
- throw()
- {
- std::swap (sequence_, rhs.sequence_);
- std::swap (this->pos_, rhs.pos_);
- }
-
- /// Dereference operator returns a reference to the item contained
- /// at the current position
- const value_type & operator* (void) const
- {
- // Access the underlying element in the sequence.
- return (*(this->sequence_))[this->pos_];
- }
-
- /// Preincrement operator
- const Const_Generic_Sequence_Iterator<SEQUENCE_T> &operator++ (void) const
- {
- // Increment the position.
- // We also need to check if we're now past the end.
- ++this->pos_;
- return * this;
- }
-
- /// Postincrement operator
- Const_Generic_Sequence_Iterator<SEQUENCE_T> operator++ (int) const
- {
- // Create a temporary to return so that it's not modified.
- Const_Generic_Sequence_Iterator<SEQUENCE_T> temp_iter (this->sequence_, this->pos_);
- // Increment the position.
- // We also need to check if we're now past the end.
- ++this->pos_;
- return temp_iter;
- }
-
- /// Predecrement operator
- const Const_Generic_Sequence_Iterator<SEQUENCE_T> &operator-- (void) const
- {
- --this->pos_;
- return * this;
- }
-
- /// Postdecrement operator
- Const_Generic_Sequence_Iterator<SEQUENCE_T> operator-- (int) const
- {
- // Create a temporary to return so that it's not modified.
- Const_Generic_Sequence_Iterator<SEQUENCE_T> temp_iter (this->sequence_, this->pos_);
- --this->pos_;
- return temp_iter;
- }
-
- /// Iterator addition
- const Const_Generic_Sequence_Iterator<SEQUENCE_T> &operator+= (difference_type n) const
- {
- // Move ahead n elements.
- this->pos_ += n;
- return * this;
- }
-
- /// Iterator addition
- Const_Generic_Sequence_Iterator<SEQUENCE_T> operator+ (difference_type n) const
- {
- // Create a temporary to return and move it ahead n elements.
- return Const_Generic_Sequence_Iterator<SEQUENCE_T> (this->sequence_, this->pos_ + n);
- }
-
- /// Iterator subtraction
- const Const_Generic_Sequence_Iterator<SEQUENCE_T> &operator-= (difference_type n) const
- {
- // Move back n elements.
- this->pos_ -= n;
- return * this;
- }
-
- /// Iterator subtraction
- Const_Generic_Sequence_Iterator<SEQUENCE_T> operator- (difference_type n) const
- {
- // Create a temporary to return and move it back n elements.
- return Const_Generic_Sequence_Iterator<SEQUENCE_T> (this->sequence_, this->pos_ - n);
- }
-
- /// Difference
- difference_type operator- (const Const_Generic_Sequence_Iterator<SEQUENCE_T> & rhs) const
- {
- // I think the order is important here (i.e., rhs before this).
- return this->pos_ - rhs.pos_;
- }
-
- /// Element operator/assignment
- const value_type & operator[] (difference_type n) const
- {
- // Return the element at position n
- return (*(this->sequence_))[this->pos_ + n];
- }
-
- /// Less than
- virtual bool operator< (const Const_Generic_Sequence_Iterator<SEQUENCE_T> & rhs) const
- {
- // Return if this iterator is less than the passed in iterator.
- return this->pos_ < rhs.pos_;
- }
-
- /// Equality operator
- bool operator== (const Const_Generic_Sequence_Iterator<SEQUENCE_T> &rhs) const
- {
- // Compare all the data members for equality.
- return this->sequence_ == rhs.sequence_
- && this->pos_ == rhs.pos_;
- }
-
- /// Nonequality operator
- bool operator!= (const Const_Generic_Sequence_Iterator<SEQUENCE_T> &rhs) const
- {
- return !(*this == rhs);
- }
-
-private:
- /// the array we are dealing with
- const generic_sequence<value_type, allocation_traits, element_traits> *sequence_;
-
- /// Our current position in the sequence.
- mutable difference_type pos_;
-};
-
-/// Iterator addition with the difference_type being the first argument.
-template<typename SEQUENCE_T>
- Const_Generic_Sequence_Iterator<SEQUENCE_T> operator+
- (typename Generic_Sequence_Iterator<SEQUENCE_T>::difference_type n,
- Const_Generic_Sequence_Iterator<SEQUENCE_T> iter)
- {
- // Create an iter and move it ahead n elements.
- return Const_Generic_Sequence_Iterator<SEQUENCE_T> (iter.sequence_, iter.pos_ + n);
- }
-
-/// Iterator subtraction with the difference_type being the first argument.
-template<typename SEQUENCE_T>
- Const_Generic_Sequence_Iterator<SEQUENCE_T> operator-
- (typename Generic_Sequence_Iterator<SEQUENCE_T>::difference_type n,
- Const_Generic_Sequence_Iterator<SEQUENCE_T> iter)
- {
- // Create an iter and move it back n elements.
- return Const_Generic_Sequence_Iterator<SEQUENCE_T> (iter.sequence_, iter.pos_ - n);
- }
-
-
-/**
- * @class Generic_Sequence_Reverse_Iterator
- * @brief Implements a reverse random access iterator for generic sequence
- * type classes.
- */
-template <typename SEQUENCE_T>
-class Generic_Sequence_Reverse_Iterator
-{
- friend class Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T>;
-
-public:
- // = Necessary traits
- typedef std::random_access_iterator_tag iterator_category;
- typedef typename SEQUENCE_T::value_type value_type;
- typedef typename SEQUENCE_T::value_type *pointer;
- typedef typename SEQUENCE_T::value_type &reference;
- typedef typename SEQUENCE_T::allocation_traits allocation_traits;
- typedef typename SEQUENCE_T::element_traits element_traits;
- typedef int difference_type;
-
- /// Construct a Generic_Sequence_Reverse_Iterator at position pos with before_start flag.
- Generic_Sequence_Reverse_Iterator (generic_sequence<value_type,
- allocation_traits,
- element_traits> *sequence,
- size_t pos)
- : sequence_ (sequence),
- pos_ (pos)
- {
- }
-
- /// Copy constructor
- Generic_Sequence_Reverse_Iterator (
- Generic_Sequence_Reverse_Iterator<SEQUENCE_T> const & rhs)
- : sequence_ (rhs.sequence_),
- pos_ (rhs.pos_)
- {
- }
-
- /// Assignment operator
- Generic_Sequence_Reverse_Iterator & operator= (
- Generic_Sequence_Reverse_Iterator<SEQUENCE_T> const & rhs)
- {
- Generic_Sequence_Reverse_Iterator tmp(rhs);
- swap (tmp);
- return * this;
- }
-
- /// swaps all members
- void swap(Generic_Sequence_Reverse_Iterator<SEQUENCE_T> & rhs)
- throw()
- {
- std::swap (sequence_, rhs.sequence_);
- std::swap (this->pos_, rhs.pos_);
- }
-
- /// Dereference operator returns a reference to the item contained
- /// at the current position
- value_type & operator* (void)
- {
- // Access the underlying element in the sequence.
- return (*(this->sequence_))[this->pos_];
- }
-
- /// Returns a const reference to the item contained at the current position
- const value_type& operator* (void) const
- {
- // Access the underlying element in the sequence.
- return (*(this->sequence_))[this->pos_];
- }
-
- /// Preincrement operator
- Generic_Sequence_Reverse_Iterator<SEQUENCE_T> &operator++ (void)
- {
- // Decrement the position for reverse iterators.
- // We also need to check if we're now before the start.
- --this->pos_;
- return *this;
- }
-
- /// Postincrement operator
- Generic_Sequence_Reverse_Iterator<SEQUENCE_T> operator++ (int)
- {
- // Create a temporary to return so that it's not modified.
- Generic_Sequence_Reverse_Iterator<SEQUENCE_T> temp_iter (this->sequence_, this->pos_);
- // Decrement the position for reverse iterators.
- // We also need to check if we're now past the end.
- --this->pos_;
- return temp_iter;
- }
-
- /// Predecrement operator
- Generic_Sequence_Reverse_Iterator<SEQUENCE_T> &operator-- (void)
- {
- // Increment the position for reverse iterators.
- ++this->pos_;
- return *this;
- }
-
- /// Postdecrement operator
- Generic_Sequence_Reverse_Iterator<SEQUENCE_T> operator-- (int)
- {
- // Create a temporary to return so that it's not modified.
- Generic_Sequence_Reverse_Iterator<SEQUENCE_T> temp_iter (this->sequence_, this->pos_);
- // Increment the position for reverse iterators.
- ++this->pos_;
- return temp_iter;
- }
-
- /// Iterator addition
- Generic_Sequence_Reverse_Iterator<SEQUENCE_T> &operator+= (difference_type n)
- {
- // Move back n elements for reverse iterators.
- this->pos_ -= n;
- return *this;
- }
-
- /// Iterator addition
- Generic_Sequence_Reverse_Iterator<SEQUENCE_T> operator+ (difference_type n)
- {
- // Create a temporary to return and move it back n elements for
- // reverse iterators.
- return Generic_Sequence_Reverse_Iterator<SEQUENCE_T> (this->sequence_, this->pos_ - n);
- }
-
- /// Iterator subtraction
- Generic_Sequence_Reverse_Iterator<SEQUENCE_T> &operator-= (difference_type n)
- {
- // Move ahead n elements for reverse iterators.
- this->pos_ += n;
- return *this;
- }
-
- /// Iterator subtraction
- Generic_Sequence_Reverse_Iterator<SEQUENCE_T> operator- (difference_type n)
- {
- // Create a temporary to return and move it ahead n elements for
- // reverse iterators.
- return Generic_Sequence_Reverse_Iterator<SEQUENCE_T> (this->sequence_, this->pos_ + n);
- }
-
- /// Difference
- difference_type operator- (const Generic_Sequence_Reverse_Iterator<SEQUENCE_T> & rhs)
- {
- // I think order is important here (i.e., rhs before this).
- return rhs.pos_ - this->pos_;
- }
-
- /// Difference
- difference_type operator- (const Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> & rhs)
- {
- // I think order is important here (i.e., rhs before this).
- return rhs.pos_ - this->pos_;
- }
-
-
- /// Element operator/assignment
- value_type & operator[] (difference_type n)
- {
- // Return the element at position n
- return (*(this->sequence_))[this->pos_ - n];
- }
-
- /// Less than
- bool operator< (const Generic_Sequence_Reverse_Iterator<SEQUENCE_T> & rhs)
- {
- // Return if this iterator is less than the passed in iterator.
- // For reverse iterators reverse the logic.
- return this->pos_ > rhs.pos_;
- }
-
- /// Less than
- bool operator< (const Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> & rhs)
- {
- // Return if this iterator is less than the passed in iterator.
- // For reverse iterators reverse the logic.
- return this->pos_ > rhs.pos_;
- }
-
-
- /// Equality operator
- bool operator== (const Generic_Sequence_Reverse_Iterator<SEQUENCE_T> &rhs) const
- {
- // Compare all the data members for equality.
- return this->sequence_ == rhs.sequence_
- && this->pos_ == rhs.pos_;
- }
-
- /// Equality operator
- bool operator== (const Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> &rhs) const
- {
- // Compare all the data members for equality.
- return this->sequence_ == rhs.sequence_
- && this->pos_ == rhs.pos_;
- }
-
- /// Nonequality operator
- bool operator!= (const Generic_Sequence_Reverse_Iterator<SEQUENCE_T> &rhs) const
- {
- return !(*this == rhs);
- }
-
- /// Nonequality operator
- bool operator!= (const Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> &rhs) const
- {
- return !(*this == rhs);
- }
-
-private:
- /// The sequence with which we are dealing
- generic_sequence<value_type, allocation_traits, element_traits> *sequence_;
-
- /// Our current position in the sequence.
- mutable difference_type pos_;
-};
-
-/// Iterator addition with the difference_type being the first argument.
-template<typename SEQUENCE_T>
- Generic_Sequence_Reverse_Iterator<SEQUENCE_T> operator+
- (typename Generic_Sequence_Reverse_Iterator<SEQUENCE_T>::difference_type n,
- Generic_Sequence_Reverse_Iterator<SEQUENCE_T> iter)
- {
- // Create an iter and move it back n elements for reverse iterators.
- return Generic_Sequence_Reverse_Iterator<SEQUENCE_T> (iter.sequence_, iter.pos_ - n);
- }
-
-/// Iterator subtraction with the difference_type being the first argument.
-template<typename SEQUENCE_T>
- Generic_Sequence_Reverse_Iterator<SEQUENCE_T> operator-
- (typename Generic_Sequence_Reverse_Iterator<SEQUENCE_T>::difference_type n,
- Generic_Sequence_Reverse_Iterator<SEQUENCE_T> iter)
- {
- // Create an iter and move it ahead n elements for reverse iterators.
- return Generic_Sequence_Reverse_Iterator<SEQUENCE_T> (iter.sequence_, iter.pos_ + n);
- }
-
-
-/**
- * @class Const_Generic_Sequence_Reverse_Iterator
- * @brief Implements a constant reverse random access iterator for generic
- * sequence type classes.
- *
- * Note: Having a const Iterator does not guarantee that the current
- * *position* that it points to will not change, it only guarantees that
- * you cannot change the underlying array!
- */
-template <typename SEQUENCE_T>
-class Const_Generic_Sequence_Reverse_Iterator
-{
- friend class Generic_Sequence_Reverse_Iterator<SEQUENCE_T>;
-
-public:
- // = Necessary traits
- typedef std::random_access_iterator_tag iterator_category;
- typedef typename SEQUENCE_T::value_type value_type;
- typedef typename SEQUENCE_T::value_type *pointer;
- typedef typename SEQUENCE_T::value_type &reference;
- typedef typename SEQUENCE_T::allocation_traits allocation_traits;
- typedef typename SEQUENCE_T::element_traits element_traits;
- typedef int difference_type;
-
- /// Construct a Const_Generic_Sequence_Reverse_Iterator at position pos
- /// using a const sequence.
- Const_Generic_Sequence_Reverse_Iterator (const generic_sequence<value_type,
- allocation_traits,
- element_traits> *sequence,
- size_t pos)
- : sequence_ (sequence),
- pos_ (pos)
- {
- }
-
- /// Copy constructor
- Const_Generic_Sequence_Reverse_Iterator (
- Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> const & rhs)
- : sequence_ (rhs.sequence_),
- pos_ (rhs.pos_)
- {
- }
-
- /// Copy constructor
- Const_Generic_Sequence_Reverse_Iterator (
- Generic_Sequence_Reverse_Iterator<SEQUENCE_T> const & rhs)
- : sequence_ (rhs.sequence_),
- pos_ (rhs.pos_)
- {
- }
-
- /// Assignment operator
- Const_Generic_Sequence_Reverse_Iterator & operator= (
- Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> const & rhs)
- {
- Const_Generic_Sequence_Reverse_Iterator tmp(rhs);
- swap (tmp);
- return * this;
- }
-
- /// swaps all members
- void swap(Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> & rhs)
- throw()
- {
- std::swap (sequence_, rhs.sequence_);
- std::swap (this->pos_, rhs.pos_);
- }
-
- /// typecast operator to Generic_Sequence_Reverse_Iterator
-
- /// Dereference operator returns a reference to the item contained
- /// at the current position
- const value_type& operator* (void) const
- {
- // Access the underlying element in the sequence.
- return (*this->sequence_)[this->pos_];
- }
-
- /// Preincrement operator
- const Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> &operator++ (void) const
- {
- // Decrement the position for reveres iterators.
- // We also need to check if we're now before the start.
- --this->pos_;
- return *this;
- }
-
- /// Postincrement operator
- Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> operator++ (int) const
- {
- // Create a temporary to return so that it's not modified.
- Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> temp_iter (this->sequence_, this->pos_);
- // Decrement the position for reverse iterators.
- // We also need to check if we're now before the start.
- --this->pos_;
- return temp_iter;
- }
-
- /// Predecrement operator
- const Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> &operator-- (void) const
- {
- // Increment the position for reverse iterators.
- ++this->pos_;
- return *this;
- }
-
- /// Postdecrement operator
- Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> operator-- (int) const
- {
- // Create a temporary to return so that it's not modified.
- Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> temp_iter (this->sequence_, this->pos_);
- // Increment the position for reverse iterators.
- ++this->pos_;
- return temp_iter;
- }
-
- /// Iterator addition
- const Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> &operator+= (difference_type n) const
- {
- // Move back n elements for reverse iterators.
- this->pos_ -= n;
- return *this;
- }
-
- /// Iterator addition
- Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> operator+ (difference_type n) const
- {
- // Create a temporary to return and move it back n elements for
- // reverse iterators.
- return Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> (this->sequence_, this->pos_ - n);
- }
-
- /// Iterator subtraction
- const Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> &operator-= (difference_type n) const
- {
- // Move ahead n elements for reverse iterators.
- this->pos_ += n;
- return *this;
- }
-
- /// Iterator subtraction
- Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> operator- (difference_type n) const
- {
- // Create a temporary to return and move it ahead n elements for
- // reverse iterators.
- return Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> (this->sequence_, this->pos_ + n);
- }
-
- /// Difference
- difference_type operator- (const Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> & rhs) const
- {
- // I think order is important here (i.e., rhs before this).
- return rhs.pos_ - this->pos_;
- }
-
- /// Element operator/assignment
- const value_type & operator[] (difference_type n) const
- {
- // Return the element at position n
- return (*(this->sequence_))[this->pos_ - n];
- }
-
- /// Less than
- bool operator< (const Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> & rhs) const
- {
- // Return if this iterator is less than the passed in iterator.
- // For reverse iterators reverse the logic.
- return this->pos_ > rhs.pos_;
- }
-
- /// Equality operator
- bool operator== (const Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> &rhs) const
- {
- // Compare all the data members for equality.
- return this->sequence_ == rhs.sequence_
- && this->pos_ == rhs.pos_;
- }
-
- /// Nonequality operator
- bool operator!= (const Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> &rhs) const
- {
- return !(*this == rhs);
- }
-
-private:
- /// the array we are dealing with
- const generic_sequence<value_type, allocation_traits, element_traits> *sequence_;
-
- /// Our current position in the sequence.
- mutable difference_type pos_;
-};
-
-/// Iterator addition with the difference_type being the first argument.
-template<typename SEQUENCE_T>
- Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> operator+
- (typename Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T>::difference_type n,
- Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> iter)
- {
- // Create an iter and move it back n elements for reverse iterators.
- return Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> (iter.sequence_, iter.pos_ - n);
- }
-
-/// Iterator subtraction with the difference_type being the first argument.
-template<typename SEQUENCE_T>
- Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> operator-
- (typename Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T>::difference_type n,
- Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> iter)
- {
- // Create an iter and move it ahead n elements for reverse iterators.
- return Const_Generic_Sequence_Reverse_Iterator<SEQUENCE_T> (iter.sequence_, iter.pos_ + n);
- }
-
-#endif /* TAO_HAS_SEQUENCE_ITERATORS==1 */
-
} // namespace details
} // namespace TAO
diff --git a/TAO/tao/HR_Time_Policy_Strategy.cpp b/TAO/tao/HR_Time_Policy_Strategy.cpp
index 33cd3180412..6cd1a821445 100644
--- a/TAO/tao/HR_Time_Policy_Strategy.cpp
+++ b/TAO/tao/HR_Time_Policy_Strategy.cpp
@@ -13,15 +13,15 @@ TAO_HR_Time_Policy_Strategy::~TAO_HR_Time_Policy_Strategy ()
{
}
-ACE_Timer_Queue * TAO_HR_Time_Policy_Strategy::create_timer_queue (void)
+ACE_Timer_Queue * TAO_HR_Time_Policy_Strategy::create_timer_queue ()
{
- ACE_Timer_Queue * tmq = 0;
+ ACE_Timer_Queue * tmq = nullptr;
typedef ACE_Timer_Heap_T<ACE_Event_Handler *,
ACE_Event_Handler_Handle_Timeout_Upcall,
ACE_SYNCH_RECURSIVE_MUTEX,
ACE_HR_Time_Policy> timer_queue_type;
- ACE_NEW_RETURN (tmq, timer_queue_type (), 0);
+ ACE_NEW_RETURN (tmq, timer_queue_type (), nullptr);
return tmq;
}
@@ -32,7 +32,7 @@ TAO_HR_Time_Policy_Strategy::destroy_timer_queue (ACE_Timer_Queue *tmq)
delete tmq;
}
-ACE_Dynamic_Time_Policy_Base * TAO_HR_Time_Policy_Strategy::get_time_policy (void)
+ACE_Dynamic_Time_Policy_Base * TAO_HR_Time_Policy_Strategy::get_time_policy ()
{
return &time_policy_;
}
diff --git a/TAO/tao/HTTP_Client.cpp b/TAO/tao/HTTP_Client.cpp
index f4ddaa6678d..80938aac971 100644
--- a/TAO/tao/HTTP_Client.cpp
+++ b/TAO/tao/HTTP_Client.cpp
@@ -9,12 +9,12 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_HTTP_Client::TAO_HTTP_Client (void)
- : filename_ (0)
+TAO_HTTP_Client::TAO_HTTP_Client ()
+ : filename_ (nullptr)
{
}
-TAO_HTTP_Client::~TAO_HTTP_Client (void)
+TAO_HTTP_Client::~TAO_HTTP_Client ()
{
this->close ();
}
@@ -47,12 +47,12 @@ TAO_HTTP_Client::read (ACE_Message_Block *mb)
}
int
-TAO_HTTP_Client::close (void)
+TAO_HTTP_Client::close ()
{
if (this->filename_)
{
ACE_OS::free ((void *) this->filename_);
- this->filename_ = 0;
+ this->filename_ = nullptr;
}
return 0;
}
diff --git a/TAO/tao/HTTP_Handler.cpp b/TAO/tao/HTTP_Handler.cpp
index c645b03007a..5c70d7425b9 100644
--- a/TAO/tao/HTTP_Handler.cpp
+++ b/TAO/tao/HTTP_Handler.cpp
@@ -9,9 +9,9 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_HTTP_Handler::TAO_HTTP_Handler (void) :
- mb_ (0),
- filename_ (0),
+TAO_HTTP_Handler::TAO_HTTP_Handler () :
+ mb_ (nullptr),
+ filename_ (nullptr),
bytecount_ (0)
{
}
@@ -24,12 +24,12 @@ TAO_HTTP_Handler::TAO_HTTP_Handler (ACE_Message_Block * mb,
{
}
-TAO_HTTP_Handler::~TAO_HTTP_Handler (void)
+TAO_HTTP_Handler::~TAO_HTTP_Handler ()
{
if (this->filename_)
{
ACE_OS::free (this->filename_);
- filename_ = 0;
+ filename_ = nullptr;
}
}
@@ -52,19 +52,19 @@ TAO_HTTP_Handler::close (u_long)
}
int
-TAO_HTTP_Handler::send_request (void)
+TAO_HTTP_Handler::send_request ()
{
return -1;
}
int
-TAO_HTTP_Handler::receive_reply (void)
+TAO_HTTP_Handler::receive_reply ()
{
return -1;
}
size_t
-TAO_HTTP_Handler::byte_count (void) const
+TAO_HTTP_Handler::byte_count () const
{
return bytecount_;
}
@@ -82,7 +82,7 @@ TAO_HTTP_Reader::TAO_HTTP_Reader (ACE_Message_Block * mb,
}
int
-TAO_HTTP_Reader::send_request (void)
+TAO_HTTP_Reader::send_request ()
{
char mesg [MAX_HEADER_SIZE];
@@ -105,27 +105,27 @@ TAO_HTTP_Reader::send_request (void)
}
int
-TAO_HTTP_Reader::receive_reply (void)
+TAO_HTTP_Reader::receive_reply ()
{
size_t num_recvd = 0;
char buf [MTU+1];
- char *buf_ptr = 0;
+ char *buf_ptr = nullptr;
size_t bytes_read = 0;
// Receive the first MTU bytes and strip the header off.
// Note that we assume that the header will fit into MTU bytes.
- if (peer ().recv_n (buf, MTU, 0, &num_recvd) >= 0)
+ if (peer ().recv_n (buf, MTU, nullptr, &num_recvd) >= 0)
{
//Make sure that response type is 200 OK
- if (ACE_OS::strstr (buf,"200 OK") == 0)
+ if (ACE_OS::strstr (buf,"200 OK") == nullptr)
TAOLIB_ERROR_RETURN ((LM_ERROR,
"TAO (%P|%t) - HTTP_Reader::receive_reply, Response is not 200 OK\n" ), -1);
// Search for the header termination string "\r\n\r\n", or "\n\n". If
// found, move past it to get to the data portion.
- if ((buf_ptr = ACE_OS::strstr (buf,"\r\n\r\n")) != 0)
+ if ((buf_ptr = ACE_OS::strstr (buf,"\r\n\r\n")) != nullptr)
buf_ptr += 4;
- else if ((buf_ptr = ACE_OS::strstr (buf, "\n\n")) != 0) //for compatibility with JAWS
+ else if ((buf_ptr = ACE_OS::strstr (buf, "\n\n")) != nullptr) //for compatibility with JAWS
buf_ptr += 2;
else
buf_ptr = buf;
@@ -145,7 +145,7 @@ TAO_HTTP_Reader::receive_reply (void)
// At this point, we have stripped off the header and are ready to
// process data. buf_ptr points to the data
- ACE_Message_Block* temp = 0;
+ ACE_Message_Block* temp = nullptr;
ACE_Message_Block* curr = this->mb_;
ACE_NEW_RETURN (temp,
@@ -175,7 +175,7 @@ TAO_HTTP_Reader::receive_reply (void)
curr = curr->cont ();
}
- if (peer ().recv_n (curr->wr_ptr (), curr->space (), 0, &num_recvd) >= 0)
+ if (peer ().recv_n (curr->wr_ptr (), curr->space (), nullptr, &num_recvd) >= 0)
{
// Move the write pointer
curr->wr_ptr (num_recvd);
diff --git a/TAO/tao/HTTP_Parser.cpp b/TAO/tao/HTTP_Parser.cpp
index 7090dea4d03..e4922fb4a7d 100644
--- a/TAO/tao/HTTP_Parser.cpp
+++ b/TAO/tao/HTTP_Parser.cpp
@@ -18,7 +18,7 @@ static const ACE_TCHAR file_prefix[] = ACE_TEXT ("http:");
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_HTTP_Parser::~TAO_HTTP_Parser (void)
+TAO_HTTP_Parser::~TAO_HTTP_Parser ()
{
}
@@ -42,9 +42,9 @@ TAO_HTTP_Parser::parse_string (const char *nior,
const ACE_TCHAR *http_url =
ior.c_str () + sizeof (::file_prefix) + 1;
- ACE_TCHAR *hostname = 0;
- ACE_TCHAR *filename = 0;
- const ACE_TCHAR *ptr = 0;
+ ACE_TCHAR *hostname = nullptr;
+ ACE_TCHAR *filename = nullptr;
+ const ACE_TCHAR *ptr = nullptr;
u_short port = 80;
if (http_url[0] == '/')
@@ -60,11 +60,11 @@ TAO_HTTP_Parser::parse_string (const char *nior,
ptr = ACE_OS::strstr (http_url, ACE_TEXT ("/"));
if(!ptr)
- return 0;
+ return nullptr;
else
{
size_t const host_len = ptr - http_url;
- ACE_NEW_RETURN (hostname, ACE_TCHAR [host_len + 1], 0 );
+ ACE_NEW_RETURN (hostname, ACE_TCHAR [host_len + 1], nullptr );
ACE_OS::strncpy (hostname, http_url, host_len);
hostname [host_len] = '\0';
ptr = ACE_OS::strstr (ptr, ACE_TEXT ("/"));
@@ -75,12 +75,12 @@ TAO_HTTP_Parser::parse_string (const char *nior,
else
{
delete [] hostname;
- return 0;
+ return nullptr;
}
}
}
- ACE_Message_Block* mb = 0;
+ ACE_Message_Block* mb = nullptr;
ACE_NEW_THROW_EX (mb,
ACE_Message_Block (),
CORBA::INTERNAL ());
@@ -101,7 +101,7 @@ TAO_HTTP_Parser::parse_string (const char *nior,
port) == -1)
{
client.close ();
- return 0;
+ return nullptr;
}
delete [] hostname;
@@ -111,13 +111,13 @@ TAO_HTTP_Parser::parse_string (const char *nior,
if (client.read (mb) <= 0)
{
client.close ();
- return 0;
+ return nullptr;
}
// We get multiple message blocks back, concatenate them to
// one large string
ACE_CString string;
- for (ACE_Message_Block * curr = mb; curr != 0; curr = curr->cont ())
+ for (ACE_Message_Block * curr = mb; curr != nullptr; curr = curr->cont ())
string += curr->rd_ptr();
return orb->string_to_object (string.c_str());
diff --git a/TAO/tao/IIOP_Acceptor.cpp b/TAO/tao/IIOP_Acceptor.cpp
index 3a7f2807b69..1f8244e94b9 100644
--- a/TAO/tao/IIOP_Acceptor.cpp
+++ b/TAO/tao/IIOP_Acceptor.cpp
@@ -1,7 +1,3 @@
-/*
- * Hook to copy all include and forward declarations.
- */
-//@@ TAO_ACCEPTOR_SPL_COPY_HOOK_START
#include "tao/IIOP_Acceptor.h"
#if defined (TAO_HAS_IIOP) && (TAO_HAS_IIOP != 0)
@@ -24,15 +20,15 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_IIOP_Acceptor::TAO_IIOP_Acceptor (void)
+TAO_IIOP_Acceptor::TAO_IIOP_Acceptor ()
: TAO_Acceptor (IOP::TAG_INTERNET_IOP),
- addrs_ (0),
+ addrs_ (nullptr),
port_span_ (1),
- hosts_ (0),
- hostname_in_ior_ (0),
+ hosts_ (nullptr),
+ hostname_in_ior_ (nullptr),
endpoint_count_ (0),
version_ (TAO_DEF_GIOP_MAJOR, TAO_DEF_GIOP_MINOR),
- orb_core_ (0),
+ orb_core_ (nullptr),
reuse_addr_ (1),
#if defined (ACE_HAS_IPV6) && !defined (ACE_USES_IPV4_IPV6_MIGRATION)
default_address_ (static_cast<unsigned short> (0), ACE_IPV6_ANY, AF_INET6),
@@ -40,9 +36,9 @@ TAO_IIOP_Acceptor::TAO_IIOP_Acceptor (void)
default_address_ (static_cast<unsigned short> (0), static_cast<ACE_UINT32> (INADDR_ANY)),
#endif /* ACE_HAS_IPV6 && !ACE_USES_IPV4_IPV6_MIGRATION */
base_acceptor_ (this),
- creation_strategy_ (0),
- concurrency_strategy_ (0),
- accept_strategy_ (0)
+ creation_strategy_ (nullptr),
+ concurrency_strategy_ (nullptr),
+ accept_strategy_ (nullptr)
{
#if defined (ACE_HAS_IPV6) && defined (ACE_USES_IPV4_IPV6_MIGRATION)
if (ACE::ipv6_enabled())
@@ -53,9 +49,7 @@ TAO_IIOP_Acceptor::TAO_IIOP_Acceptor (void)
#endif /* ACE_HAS_IPV6 && ACE_USES_IPV4_IPV6_MIGRATION */
}
-//@@ TAO_ACCEPTOR_SPL_COPY_HOOK_END
-
-TAO_IIOP_Acceptor::~TAO_IIOP_Acceptor (void)
+TAO_IIOP_Acceptor::~TAO_IIOP_Acceptor ()
{
// Make sure we are closed before we start destroying the
// strategies.
@@ -75,8 +69,6 @@ TAO_IIOP_Acceptor::~TAO_IIOP_Acceptor (void)
delete [] this->hostname_in_ior_;
}
-//@@ TAO_ACCEPTOR_SPL_COPY_HOOK_START
-
// TODO =
// 2) For V1.[1,2] there are tagged components
int
@@ -117,7 +109,7 @@ TAO_IIOP_Acceptor::create_new_profile (const TAO::ObjectKey &object_key,
&& ACE_OS::strcmp(this->hosts_[i], this->hosts_[0]) == 0)
continue;
- TAO_IIOP_Profile *pfile = 0;
+ TAO_IIOP_Profile *pfile = nullptr;
ACE_NEW_RETURN (pfile,
TAO_IIOP_Profile (this->hosts_[i],
this->addrs_[i].get_port_number (),
@@ -131,7 +123,7 @@ TAO_IIOP_Acceptor::create_new_profile (const TAO::ObjectKey &object_key,
if (mprofile.give_profile (pfile) == -1)
{
pfile->_decr_refcnt ();
- pfile = 0;
+ pfile = nullptr;
return -1;
}
@@ -158,8 +150,8 @@ TAO_IIOP_Acceptor::create_shared_profile (const TAO::ObjectKey &object_key,
CORBA::Short priority)
{
CORBA::ULong index = 0;
- TAO_Profile *pfile = 0;
- TAO_IIOP_Profile *iiop_profile = 0;
+ TAO_Profile *pfile = nullptr;
+ TAO_IIOP_Profile *iiop_profile = nullptr;
// First see if @a mprofile already contains a IIOP profile.
for (TAO_PHandle i = 0; i != mprofile.profile_count (); ++i)
@@ -174,7 +166,7 @@ TAO_IIOP_Acceptor::create_shared_profile (const TAO::ObjectKey &object_key,
// If <mprofile> doesn't contain a IIOP_Profile, we need to create
// one.
- if (iiop_profile == 0)
+ if (iiop_profile == nullptr)
{
ACE_NEW_RETURN (iiop_profile,
TAO_IIOP_Profile (this->hosts_[0],
@@ -190,7 +182,7 @@ TAO_IIOP_Acceptor::create_shared_profile (const TAO::ObjectKey &object_key,
if (mprofile.give_profile (iiop_profile) == -1)
{
iiop_profile->_decr_refcnt ();
- iiop_profile = 0;
+ iiop_profile = nullptr;
return -1;
}
@@ -219,7 +211,7 @@ TAO_IIOP_Acceptor::create_shared_profile (const TAO::ObjectKey &object_key,
ACE_OS::strcmp(this->hosts_[index], this->hosts_[0]) == 0)
continue;
- TAO_IIOP_Endpoint *endpoint = 0;
+ TAO_IIOP_Endpoint *endpoint = nullptr;
ACE_NEW_RETURN (endpoint,
TAO_IIOP_Endpoint (this->hosts_[index],
this->addrs_[index].get_port_number (),
@@ -239,7 +231,7 @@ TAO_IIOP_Acceptor::is_collocated (const TAO_Endpoint *endpoint)
dynamic_cast<const TAO_IIOP_Endpoint *> (endpoint);
// Make sure the dynamically cast pointer is valid.
- if (endp == 0)
+ if (endp == nullptr)
return 0;
for (CORBA::ULong i = 0; i < this->endpoint_count_; ++i)
@@ -248,7 +240,7 @@ TAO_IIOP_Acceptor::is_collocated (const TAO_Endpoint *endpoint)
// this code by comparing the IP address instead. That would
// trigger the following bug:
//
- // http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1220
+ // http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1220
//
if (endp->port() == this->addrs_[i].get_port_number()
&& ACE_OS::strcmp(endp->host(), this->hosts_[i]) == 0)
@@ -259,7 +251,7 @@ TAO_IIOP_Acceptor::is_collocated (const TAO_Endpoint *endpoint)
}
int
-TAO_IIOP_Acceptor::close (void)
+TAO_IIOP_Acceptor::close ()
{
return this->base_acceptor_.close ();
}
@@ -282,7 +274,7 @@ TAO_IIOP_Acceptor::open (TAO_ORB_Core *orb_core,
this->orb_core_ = orb_core;
- if (this->hosts_ != 0)
+ if (this->hosts_ != nullptr)
{
// The hostname cache has already been set!
// This is bad mojo, i.e. an internal TAO error.
@@ -293,7 +285,7 @@ TAO_IIOP_Acceptor::open (TAO_ORB_Core *orb_core,
-1);
}
- if (address == 0)
+ if (address == nullptr)
return -1;
if (major >=0 && minor >= 0)
@@ -365,9 +357,9 @@ TAO_IIOP_Acceptor::open (TAO_ORB_Core *orb_core,
char *[this->endpoint_count_],
-1);
- this->hosts_[0] = 0;
+ this->hosts_[0] = nullptr;
- if (this->hostname_in_ior_ != 0)
+ if (this->hostname_in_ior_ != nullptr)
{
if (TAO_debug_level > 2)
{
@@ -403,7 +395,7 @@ TAO_IIOP_Acceptor::open_default (TAO_ORB_Core *orb_core,
{
this->orb_core_ = orb_core;
- if (this->hosts_ != 0)
+ if (this->hosts_ != nullptr)
{
// The hostname cache has already been set!
// This is bad mojo, i.e. an internal TAO error.
@@ -462,7 +454,7 @@ TAO_IIOP_Acceptor::open_i (const ACE_INET_Addr& addr,
this->creation_strategy_,
this->accept_strategy_,
this->concurrency_strategy_,
- 0, 0, 0, ACE_DEFAULT_ACCEPTOR_USE_SELECT,
+ nullptr, nullptr, nullptr, ACE_DEFAULT_ACCEPTOR_USE_SELECT,
this->reuse_addr_) == -1)
{
if (TAO_debug_level > 0)
@@ -498,7 +490,7 @@ TAO_IIOP_Acceptor::open_i (const ACE_INET_Addr& addr,
this->creation_strategy_,
this->accept_strategy_,
this->concurrency_strategy_,
- 0, 0, 0, ACE_DEFAULT_ACCEPTOR_USE_SELECT,
+ nullptr, nullptr, nullptr, ACE_DEFAULT_ACCEPTOR_USE_SELECT,
this->reuse_addr_) != -1)
{
found_a_port = true;
@@ -602,7 +594,7 @@ TAO_IIOP_Acceptor::hostname (TAO_ORB_Core *orb_core,
char *&host,
const char *specified_hostname)
{
- if (this->hostname_in_ior_ != 0)
+ if (this->hostname_in_ior_ != nullptr)
{
if (TAO_debug_level >= 5)
TAOLIB_DEBUG ((LM_DEBUG,
@@ -618,7 +610,7 @@ TAO_IIOP_Acceptor::hostname (TAO_ORB_Core *orb_core,
// just return ours.
return this->dotted_decimal_address (addr, host);
}
- else if (specified_hostname != 0)
+ else if (specified_hostname != nullptr)
{
// If the user specified a hostname, pass it back
// blindly as it overrides our choice of hostname.
@@ -718,7 +710,7 @@ TAO_IIOP_Acceptor::parse_address (const char *address,
#endif /* ACE_HAS_IPV6 */
if (!host_defaulted)
{
- if (port_separator_loc != 0)
+ if (port_separator_loc != nullptr)
{
// Extract out just the host part of the address.
size_t const len = port_separator_loc - address;
@@ -747,7 +739,7 @@ TAO_IIOP_Acceptor::parse_address (const char *address,
{
// First convert the port into a usable form.
unsigned short portno = 0;
- if (port_separator_loc != 0)
+ if (port_separator_loc != nullptr)
{
portno =
static_cast<u_short> (ACE_OS::atoi (port_separator_loc +
@@ -759,7 +751,7 @@ TAO_IIOP_Acceptor::parse_address (const char *address,
if (addr.set (this->default_address_) != 0)
return -1;
}
- else if (port_separator_loc == 0)
+ else if (port_separator_loc == nullptr)
{
// The address is a hostname. No port was specified, so assume
// port zero (port will be chosen for us).
@@ -796,7 +788,7 @@ TAO_IIOP_Acceptor::dotted_decimal_address (const ACE_INET_Addr &addr,
char *&host)
{
int result = 0;
- const char *tmp = 0;
+ const char *tmp = nullptr;
// If the IP address in the INET_Addr is the IN(6)ADDR_ANY address,
// then force the actual IP address to be used by initializing a new
@@ -820,7 +812,7 @@ TAO_IIOP_Acceptor::dotted_decimal_address (const ACE_INET_Addr &addr,
else
tmp = addr.get_host_addr ();
- if (tmp == 0 || result != 0)
+ if (tmp == nullptr || result != 0)
{
if (TAO_debug_level > 0)
TAOLIB_ERROR ((LM_ERROR,
@@ -842,7 +834,7 @@ TAO_IIOP_Acceptor::probe_interfaces (TAO_ORB_Core *orb_core, int def_type)
// it. The hostnames will then be used when creating a
// TAO_IIOP_Profile for each endpoint setup on the probed
// network interfaces.
- ACE_INET_Addr *if_addrs = 0;
+ ACE_INET_Addr *if_addrs = nullptr;
size_t if_cnt = 0;
if (ACE::get_ip_interfaces (if_cnt, if_addrs) != 0
@@ -854,7 +846,7 @@ TAO_IIOP_Acceptor::probe_interfaces (TAO_ORB_Core *orb_core, int def_type)
return -1;
}
- if (if_cnt == 0 || if_addrs == 0)
+ if (if_cnt == 0 || if_addrs == nullptr)
{
if (TAO_debug_level > 0)
{
@@ -1057,7 +1049,7 @@ TAO_IIOP_Acceptor::probe_interfaces (TAO_ORB_Core *orb_core, int def_type)
}
CORBA::ULong
-TAO_IIOP_Acceptor::endpoint_count (void)
+TAO_IIOP_Acceptor::endpoint_count ()
{
return this->endpoint_count_;
}
@@ -1120,7 +1112,7 @@ TAO_IIOP_Acceptor::object_key (IOP::TaggedProfile &profile,
int
TAO_IIOP_Acceptor::parse_options (const char *str)
{
- if (str == 0)
+ if (str == nullptr)
return 0; // No options to parse. Not a problem.
// Use an option format similar to the one used for CGI scripts in
@@ -1148,9 +1140,9 @@ TAO_IIOP_Acceptor::parse_options (const char *str)
// `option1=foo'
// `option2=bar'
- ACE_CString *argv_base = 0;
+ ACE_CString *argv_base = nullptr;
ACE_NEW_RETURN (argv_base, ACE_CString[argc],-1);
- ACE_CString **argv = 0;
+ ACE_CString **argv = nullptr;
ACE_NEW_RETURN (argv, ACE_CString*[argc],-1);
ACE_CString::size_type begin = 0;
@@ -1230,7 +1222,7 @@ TAO_IIOP_Acceptor::parse_options_i (int &argc,
-1);
if (name == "portspan")
{
- int range = static_cast <int> (ACE_OS::atoi (value.c_str ()));
+ int const range = ACE_OS::atoi (value.c_str ());
// @@ What's the lower bound on the range? zero, or one?
if (range < 1 || range > ACE_MAX_DEFAULT_PORT)
TAOLIB_ERROR_RETURN ((LM_ERROR,
@@ -1272,5 +1264,3 @@ TAO_IIOP_Acceptor::parse_options_i (int &argc,
TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* TAO_HAS_IIOP && TAO_HAS_IIOP != 0 */
-
-//@@ TAO_ACCEPTOR_SPL_COPY_HOOK_END
diff --git a/TAO/tao/IIOP_Acceptor.h b/TAO/tao/IIOP_Acceptor.h
index cd8883ff27b..361580a4f40 100644
--- a/TAO/tao/IIOP_Acceptor.h
+++ b/TAO/tao/IIOP_Acceptor.h
@@ -45,13 +45,6 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_Export TAO_IIOP_Acceptor : public TAO_Acceptor
{
public:
-
- /*
- * Hook that marks beginning of all concrete i.e. non virtual
- * methods implemented in IIOP_Acceptor class.
- */
- //@@ TAO_ACCEPTOR_SPL_CONCRETE_METHODS_COPY_HOOK_START
-
/// Constructor.
TAO_IIOP_Acceptor (void);
@@ -76,8 +69,6 @@ public:
typedef TAO_Concurrency_Strategy<TAO_IIOP_Connection_Handler> CONCURRENCY_STRATEGY;
typedef TAO_Accept_Strategy<TAO_IIOP_Connection_Handler, ACE_SOCK_ACCEPTOR> ACCEPT_STRATEGY;
- //@@ TAO_ACCEPTOR_SPL_CONCRETE_METHODS_COPY_HOOK_END
-
/**
* The TAO_Acceptor methods, check the documentation in
* Transport_Acceptor.h for details.
@@ -103,7 +94,6 @@ public:
virtual int object_key (IOP::TaggedProfile &profile,
TAO::ObjectKey &key);
- //@@ TAO_ACCEPTOR_SPL_CONCRETE_METHODS_COPY_HOOK_START
/**
* Set the host name for the given @a addr.
* A hostname may be forced by using @a specified_hostname. This
@@ -127,7 +117,6 @@ public:
const char *specified_hostname = 0);
protected:
-
/**
* Helper method
* Clear out 'addr' & 'specified_hostname' and initialize them based
@@ -208,15 +197,12 @@ protected:
int create_shared_profile (const TAO::ObjectKey &object_key,
TAO_MProfile &mprofile,
CORBA::Short priority);
- //@@ TAO_ACCEPTOR_SPL_CONCRETE_METHODS_COPY_HOOK_END
private:
void operator= (const TAO_IIOP_Acceptor &);
TAO_IIOP_Acceptor (const TAO_IIOP_Acceptor &);
- //@@ TAO_ACCEPTOR_SPL_DATA_MEMBERS_COPY_HOOK_START
protected:
-
/// Array of ACE_INET_Addr instances, each one corresponding to a
/// given network interface.
ACE_INET_Addr *addrs_;
@@ -263,7 +249,6 @@ protected:
ACE_INET_Addr default_address_;
private:
-
/// The concrete acceptor, as a pointer to it's base class.
BASE_ACCEPTOR base_acceptor_;
@@ -271,8 +256,6 @@ private:
CREATION_STRATEGY *creation_strategy_;
CONCURRENCY_STRATEGY *concurrency_strategy_;
ACCEPT_STRATEGY *accept_strategy_;
-
- //@@ TAO_ACCEPTOR_SPL_DATA_MEMBERS_COPY_HOOK_END
};
TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IIOP_Connection_Handler.cpp b/TAO/tao/IIOP_Connection_Handler.cpp
index 552eff0856b..55126126816 100644
--- a/TAO/tao/IIOP_Connection_Handler.cpp
+++ b/TAO/tao/IIOP_Connection_Handler.cpp
@@ -56,8 +56,8 @@ TAO_IIOP_Connection_Handler::remove_reference (void)
TAO_IIOP_Connection_Handler::TAO_IIOP_Connection_Handler (ACE_Thread_Manager *t)
- : TAO_IIOP_SVC_HANDLER (t, 0 , 0),
- TAO_Connection_Handler (0),
+ : TAO_IIOP_SVC_HANDLER (t, nullptr , nullptr),
+ TAO_Connection_Handler (nullptr),
dscp_codepoint_ (IPDSFIELD_DSCP_DEFAULT << 2)
{
// This constructor should *never* get called, it is just here to
@@ -71,11 +71,11 @@ TAO_IIOP_Connection_Handler::TAO_IIOP_Connection_Handler (ACE_Thread_Manager *t)
TAO_IIOP_Connection_Handler::TAO_IIOP_Connection_Handler (
TAO_ORB_Core *orb_core)
- : TAO_IIOP_SVC_HANDLER (orb_core->thr_mgr (), 0, 0),
+ : TAO_IIOP_SVC_HANDLER (orb_core->thr_mgr (), nullptr, nullptr),
TAO_Connection_Handler (orb_core),
dscp_codepoint_ (IPDSFIELD_DSCP_DEFAULT << 2)
{
- TAO_IIOP_Transport* specific_transport = 0;
+ TAO_IIOP_Transport* specific_transport = nullptr;
ACE_NEW (specific_transport,
TAO_IIOP_Transport (this, orb_core));
@@ -86,7 +86,7 @@ TAO_IIOP_Connection_Handler::TAO_IIOP_Connection_Handler (
ACE_TEXT("TAO (%P|%t) - IIOP_Connection_Handler[%d]::")
ACE_TEXT("IIOP_Connection_Handler, ")
ACE_TEXT("this=%@\n"),
- tport != 0 ? tport->id () : 0,
+ tport != nullptr ? tport->id () : 0,
this));
}
@@ -94,7 +94,7 @@ TAO_IIOP_Connection_Handler::TAO_IIOP_Connection_Handler (
this->transport (specific_transport);
}
-TAO_IIOP_Connection_Handler::~TAO_IIOP_Connection_Handler (void)
+TAO_IIOP_Connection_Handler::~TAO_IIOP_Connection_Handler ()
{
if (TAO_debug_level > 9)
{
@@ -103,7 +103,7 @@ TAO_IIOP_Connection_Handler::~TAO_IIOP_Connection_Handler (void)
ACE_TEXT("TAO (%P|%t) - IIOP_Connection_Handler[%d]::")
ACE_TEXT("~IIOP_Connection_Handler, ")
ACE_TEXT("this=%@, transport=%@\n"),
- tport != 0 ? tport->id () : 0,
+ tport != nullptr ? tport->id () : 0,
this,
tport));
}
@@ -120,13 +120,6 @@ TAO_IIOP_Connection_Handler::~TAO_IIOP_Connection_Handler (void)
}
}
-/* Copy hook that copies over the concrete methods from this class
- * to the base Connection_Handler class as a part of the specialization
- * process. Add all concrete and virtual
- * methods implemented in this class within this hook.
- */
-//@@ CONNECTION_HANDLER_SPL_COPY_HOOK_START
-
int
TAO_IIOP_Connection_Handler::open_handler (void *v)
{
@@ -157,7 +150,7 @@ TAO_IIOP_Connection_Handler::open (void*)
TAO_Protocols_Hooks *tph = this->orb_core ()->get_protocols_hooks ();
- if (tph != 0)
+ if (tph != nullptr)
{
try
{
@@ -365,13 +358,13 @@ TAO_IIOP_Connection_Handler::open (void*)
}
int
-TAO_IIOP_Connection_Handler::resume_handler (void)
+TAO_IIOP_Connection_Handler::resume_handler ()
{
return ACE_Event_Handler::ACE_APPLICATION_RESUMES_HANDLER;
}
int
-TAO_IIOP_Connection_Handler::close_connection (void)
+TAO_IIOP_Connection_Handler::close_connection ()
{
// To maintain maximum compatibility, we only set this socket option
// if the user has provided a linger timeout.
@@ -467,13 +460,13 @@ TAO_IIOP_Connection_Handler::close (u_long flags)
}
int
-TAO_IIOP_Connection_Handler::release_os_resources (void)
+TAO_IIOP_Connection_Handler::release_os_resources ()
{
return this->peer ().close ();
}
int
-TAO_IIOP_Connection_Handler::add_transport_to_cache (void)
+TAO_IIOP_Connection_Handler::add_transport_to_cache ()
{
ACE_INET_Addr addr;
@@ -651,7 +644,7 @@ TAO_IIOP_Connection_Handler::set_dscp_codepoint (CORBA::Boolean set_network_prio
{
TAO_Protocols_Hooks *tph = this->orb_core ()->get_protocols_hooks ();
- if (tph != 0)
+ if (tph != nullptr)
{
CORBA::Long codepoint = tph->get_dscp_codepoint ();
@@ -664,7 +657,7 @@ TAO_IIOP_Connection_Handler::set_dscp_codepoint (CORBA::Boolean set_network_prio
}
void
-TAO_IIOP_Connection_Handler::abort (void)
+TAO_IIOP_Connection_Handler::abort ()
{
struct linger lval = { 0, 0 };
lval.l_onoff = 1;
@@ -690,12 +683,6 @@ TAO_IIOP_Connection_Handler::handle_write_ready (const ACE_Time_Value *timeout)
return ACE::handle_write_ready (this->peer ().get_handle (), timeout);
}
-
-//@@ CONNECTION_HANDLER_SPL_COPY_HOOK_END
-/*
- * End copy hook
- */
-
TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* TAO_HAS_IIOP && TAO_HAS_IIOP != 0 */
diff --git a/TAO/tao/IIOP_Connector.cpp b/TAO/tao/IIOP_Connector.cpp
index 0992972b9d7..28ea80707e8 100644
--- a/TAO/tao/IIOP_Connector.cpp
+++ b/TAO/tao/IIOP_Connector.cpp
@@ -50,7 +50,7 @@ class TAO_IIOP_Connection_Handler_Array_Guard
{
public:
TAO_IIOP_Connection_Handler_Array_Guard (TAO_IIOP_Connection_Handler **p, unsigned count);
- ~TAO_IIOP_Connection_Handler_Array_Guard (void);
+ ~TAO_IIOP_Connection_Handler_Array_Guard ();
private:
/// Handler.
@@ -66,10 +66,10 @@ TAO_IIOP_Connection_Handler_Array_Guard::TAO_IIOP_Connection_Handler_Array_Guard
{
}
-TAO_IIOP_Connection_Handler_Array_Guard::~TAO_IIOP_Connection_Handler_Array_Guard (void)
+TAO_IIOP_Connection_Handler_Array_Guard::~TAO_IIOP_Connection_Handler_Array_Guard ()
{
ACE_Errno_Guard eguard (errno);
- if (this->ptr_ != 0)
+ if (this->ptr_ != nullptr)
{
for (unsigned i = 0; i < this->count_; i++)
this->ptr_[i]->remove_reference ();
@@ -79,15 +79,14 @@ TAO_IIOP_Connection_Handler_Array_Guard::~TAO_IIOP_Connection_Handler_Array_Guar
//---------------------------------------------------------------------------
-TAO_IIOP_Connector::~TAO_IIOP_Connector (void)
+TAO_IIOP_Connector::~TAO_IIOP_Connector ()
{
}
-//@@ TAO_CONNECTOR_SPL_COPY_HOOK_START
-TAO_IIOP_Connector::TAO_IIOP_Connector (void)
+TAO_IIOP_Connector::TAO_IIOP_Connector ()
: TAO_Connector (IOP::TAG_INTERNET_IOP)
, connect_strategy_ ()
- , base_connector_ (0)
+ , base_connector_ (nullptr)
{
}
@@ -106,7 +105,7 @@ TAO_IIOP_Connector::open (TAO_ORB_Core *orb_core)
return -1;
/// Our connect creation strategy
- TAO_IIOP_CONNECT_CREATION_STRATEGY *connect_creation_strategy = 0;
+ TAO_IIOP_CONNECT_CREATION_STRATEGY *connect_creation_strategy = nullptr;
ACE_NEW_RETURN (connect_creation_strategy,
TAO_IIOP_CONNECT_CREATION_STRATEGY
@@ -115,7 +114,7 @@ TAO_IIOP_Connector::open (TAO_ORB_Core *orb_core)
-1);
/// Our activation strategy
- TAO_IIOP_CONNECT_CONCURRENCY_STRATEGY *concurrency_strategy = 0;
+ TAO_IIOP_CONNECT_CONCURRENCY_STRATEGY *concurrency_strategy = nullptr;
ACE_NEW_RETURN (concurrency_strategy,
TAO_IIOP_CONNECT_CONCURRENCY_STRATEGY (orb_core),
@@ -128,7 +127,7 @@ TAO_IIOP_Connector::open (TAO_ORB_Core *orb_core)
}
int
-TAO_IIOP_Connector::close (void)
+TAO_IIOP_Connector::close ()
{
delete this->base_connector_.concurrency_strategy ();
delete this->base_connector_.creation_strategy ();
@@ -136,7 +135,7 @@ TAO_IIOP_Connector::close (void)
}
int
-TAO_IIOP_Connector::supports_parallel_connects(void) const
+TAO_IIOP_Connector::supports_parallel_connects() const
{
return 1;
}
@@ -146,7 +145,7 @@ TAO_IIOP_Connector::set_validate_endpoint (TAO_Endpoint *endpoint)
{
TAO_IIOP_Endpoint *iiop_endpoint = this->remote_endpoint (endpoint);
- if (iiop_endpoint == 0)
+ if (iiop_endpoint == nullptr)
return -1;
const ACE_INET_Addr &remote_address = iiop_endpoint->object_addr ();
@@ -181,11 +180,11 @@ TAO_IIOP_Connector::make_connection (TAO::Profile_Transport_Resolver *r,
TAO_Transport_Descriptor_Interface &desc,
ACE_Time_Value *timeout)
{
- TAO_IIOP_Connection_Handler *svc_handler = 0;
+ TAO_IIOP_Connection_Handler *svc_handler = nullptr;
TAO_IIOP_Endpoint *iiop_endpoint =
this->remote_endpoint (desc.endpoint());
- if (iiop_endpoint == 0)
- return 0;
+ if (iiop_endpoint == nullptr)
+ return nullptr;
int const result =
this->begin_connection (svc_handler, r, iiop_endpoint, timeout);
@@ -205,7 +204,7 @@ TAO_IIOP_Connector::make_connection (TAO::Profile_Transport_Resolver *r,
iiop_endpoint->port (),
ACE_TEXT("errno")));
}
- return 0;
+ return nullptr;
}
TAO_IIOP_Connection_Handler **sh_ptr = &svc_handler;
@@ -225,7 +224,7 @@ TAO_IIOP_Connector::make_connection (TAO::Profile_Transport_Resolver *r,
// If complete_connection was unsuccessful then remove
// the last reference that we have to the svc_handler.
- if (transport == 0)
+ if (transport == nullptr)
{
if (TAO_debug_level > 1)
{
@@ -235,7 +234,7 @@ TAO_IIOP_Connector::make_connection (TAO::Profile_Transport_Resolver *r,
iiop_endpoint->host (),
iiop_endpoint->port ()));
}
- return 0;
+ return nullptr;
}
svc_handler_auto_ptr.release ();
@@ -254,8 +253,8 @@ TAO_IIOP_Connector::make_parallel_connection (
this->orb_core ()->orb_params ()->parallel_connect_delay ();
time_t sec_stagger = ns_stagger/1000;
ns_stagger = (ns_stagger % 1000) * 1000000;
- for (TAO_Endpoint *ep = root_ep->next_filtered (this->orb_core(), 0);
- ep != 0;
+ for (TAO_Endpoint *ep = root_ep->next_filtered (this->orb_core(), nullptr);
+ ep != nullptr;
ep = ep->next_filtered (this->orb_core(), root_ep))
++max_count;
@@ -264,20 +263,20 @@ TAO_IIOP_Connector::make_parallel_connection (
ACE_TEXT ("TAO (%P|%t) - IIOP_Connector::")
ACE_TEXT ("make_parallel_connection, ")
ACE_TEXT ("to %d endpoints\n"), max_count));
- TAO_IIOP_Endpoint **eplist = 0;
- TAO_IIOP_Connection_Handler **shlist = 0;
- ACE_NEW_RETURN (shlist, TAO_IIOP_Connection_Handler *[max_count], 0);
- ACE_NEW_RETURN (eplist, TAO_IIOP_Endpoint *[max_count], 0);
+ TAO_IIOP_Endpoint **eplist = nullptr;
+ TAO_IIOP_Connection_Handler **shlist = nullptr;
+ ACE_NEW_RETURN (shlist, TAO_IIOP_Connection_Handler *[max_count], nullptr);
+ ACE_NEW_RETURN (eplist, TAO_IIOP_Endpoint *[max_count], nullptr);
TAO_LF_Multi_Event mev;
int result = 0;
unsigned count = 0;
- for (TAO_Endpoint *ep = root_ep->next_filtered (this->orb_core(),0);
- ep != 0;
+ for (TAO_Endpoint *ep = root_ep->next_filtered (this->orb_core(),nullptr);
+ ep != nullptr;
ep = ep->next_filtered(this->orb_core(),root_ep))
{
eplist[count] = this->remote_endpoint (ep);
- shlist[count] = 0;
+ shlist[count] = nullptr;
result = this->begin_connection (shlist[count],
r,
eplist[count],
@@ -292,7 +291,7 @@ TAO_IIOP_Connector::make_parallel_connection (
if (errno == EWOULDBLOCK)
{
mev.add_event(shlist[count++]);
- if (ep->next() != 0)
+ if (ep->next() != nullptr)
{
struct timespec nsleep = {sec_stagger, ns_stagger};
ACE_OS::nanosleep (&nsleep);
@@ -315,7 +314,7 @@ TAO_IIOP_Connector::make_parallel_connection (
}
}
- TAO_Transport *winner = 0;
+ TAO_Transport *winner = nullptr;
if (count > 0) // only complete if at least one pending or success
{
// Make sure that we always do a remove_reference for every member
@@ -382,7 +381,7 @@ TAO_IIOP_Connector::begin_connection (TAO_IIOP_Connection_Handler *&svc_handler,
// The code used to set the timeout to zero, with the intent of
// polling the reactor for connection completion. However, the side-effect
// was to cause the connection to timeout immediately.
- svc_handler = 0;
+ svc_handler = nullptr;
int result = -1;
u_short span = this->orb_core ()->orb_params ()->iiop_client_port_span ();
@@ -406,10 +405,10 @@ TAO_IIOP_Connector::begin_connection (TAO_IIOP_Connection_Handler *&svc_handler,
}
else
{
- if (svc_handler != 0)
+ if (svc_handler != nullptr)
{
svc_handler->remove_reference ();
- svc_handler = 0;
+ svc_handler = nullptr;
}
}
}
@@ -424,19 +423,19 @@ namespace TAO_IIOP
{
public:
TList_Holder (size_t count)
- : tlist_ (0)
+ : tlist_ (nullptr)
{
// Resources are acquired during initialization (RAII)
ACE_NEW (tlist_, TAO_Transport*[count]);
}
- ~TList_Holder (void)
+ ~TList_Holder ()
{
// Resources are unacquired during uninitialization
delete [] tlist_;
}
- operator TAO_Transport** (void)
+ operator TAO_Transport** ()
{
return tlist_;
}
@@ -461,7 +460,7 @@ TAO_IIOP_Connector::complete_connection (int result,
{
TAO_IIOP::TList_Holder tlist(count);
- TAO_Transport *transport = 0;
+ TAO_Transport *transport = nullptr;
// populate the transport list
for (unsigned i = 0; i < count; i++)
@@ -483,7 +482,7 @@ TAO_IIOP_Connector::complete_connection (int result,
{
// Cache is full, so close the connection again
sh_list[count-1]->close ();
- transport = 0;
+ transport = nullptr;
}
}
else
@@ -541,10 +540,10 @@ TAO_IIOP_Connector::complete_connection (int result,
// At this point, the connection has been successfully created
// connected or not connected, but we have a connection.
- TAO_IIOP_Connection_Handler *svc_handler = 0;
- TAO_IIOP_Endpoint *iiop_endpoint = 0;
+ TAO_IIOP_Connection_Handler *svc_handler = nullptr;
+ TAO_IIOP_Endpoint *iiop_endpoint = nullptr;
- if (transport != 0)
+ if (transport != nullptr)
{
for (unsigned i = 0; i < count; i++)
{
@@ -572,7 +571,7 @@ TAO_IIOP_Connector::complete_connection (int result,
ACE_TEXT("errno")));
}
}
- return 0;
+ return nullptr;
}
TAO_Leader_Follower &leader_follower = this->orb_core ()->leader_follower ();
@@ -600,7 +599,7 @@ TAO_IIOP_Connector::complete_connection (int result,
ACE_TEXT("TAO (%P|%t) - IIOP_Connector::make_connection, ")
ACE_TEXT("transport in error before cache!\n")));
transport->connection_handler()->cancel_pending_connection();
- return 0;
+ return nullptr;
}
if (TAO_debug_level > 2)
@@ -646,7 +645,7 @@ TAO_IIOP_Connector::complete_connection (int result,
ACE_TEXT ("could not add new connection to cache\n")));
}
- return 0;
+ return nullptr;
}
// Other part of fix for bug 2654.
@@ -662,7 +661,7 @@ TAO_IIOP_Connector::complete_connection (int result,
ACE_TEXT("transport in error after cache!\n")));
svc_handler->cancel_pending_connection();
transport->purge_entry();
- return 0;
+ return nullptr;
}
@@ -678,7 +677,7 @@ TAO_IIOP_Connector::complete_connection (int result,
// deal with the transport cache if there is a failure.
if (!transport->register_if_necessary ())
{
- return 0;
+ return nullptr;
}
return transport;
@@ -687,30 +686,30 @@ TAO_IIOP_Connector::complete_connection (int result,
TAO_Profile *
TAO_IIOP_Connector::create_profile (TAO_InputCDR& cdr)
{
- TAO_Profile *pfile = 0;
+ TAO_Profile *pfile = nullptr;
ACE_NEW_RETURN (pfile,
TAO_IIOP_Profile (this->orb_core ()),
- 0);
+ nullptr);
int const r = pfile->decode (cdr);
if (r == -1)
{
pfile->_decr_refcnt ();
- pfile = 0;
+ pfile = nullptr;
}
return pfile;
}
TAO_Profile *
-TAO_IIOP_Connector::make_profile (void)
+TAO_IIOP_Connector::make_profile ()
{
// The endpoint should be of the form:
// N.n@host:port/object_key
// or:
// host:port/object_key
- TAO_Profile *profile = 0;
+ TAO_Profile *profile = nullptr;
ACE_NEW_THROW_EX (profile,
TAO_IIOP_Profile (this->orb_core ()),
CORBA::NO_MEMORY (
@@ -751,7 +750,7 @@ TAO_IIOP_Connector::check_prefix (const char *endpoint)
}
char
-TAO_IIOP_Connector::object_key_delimiter (void) const
+TAO_IIOP_Connector::object_key_delimiter () const
{
return TAO_IIOP_Profile::object_key_delimiter_;
}
@@ -760,13 +759,13 @@ TAO_IIOP_Endpoint *
TAO_IIOP_Connector::remote_endpoint (TAO_Endpoint *endpoint)
{
if (endpoint->tag () != IOP::TAG_INTERNET_IOP)
- return 0;
+ return nullptr;
TAO_IIOP_Endpoint *iiop_endpoint =
dynamic_cast<TAO_IIOP_Endpoint *> (endpoint );
- if (iiop_endpoint == 0)
- return 0;
+ if (iiop_endpoint == nullptr)
+ return nullptr;
return iiop_endpoint;
}
@@ -788,8 +787,6 @@ TAO_IIOP_Connector::cancel_svc_handler (
return -1;
}
-//@@ TAO_CONNECTOR_SPL_COPY_HOOK_END
-
TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* TAO_HAS_IIOP && TAO_HAS_IIOP != 0 */
diff --git a/TAO/tao/IIOP_Connector.h b/TAO/tao/IIOP_Connector.h
index c0de19a25d0..1ecabbcf012 100644
--- a/TAO/tao/IIOP_Connector.h
+++ b/TAO/tao/IIOP_Connector.h
@@ -67,9 +67,6 @@ public:
virtual char object_key_delimiter (void) const;
public:
-
- //@@ TAO_CONNECTOR_SPL_PUBLIC_METHODS_COPY_HOOK_START
-
typedef TAO_Connect_Concurrency_Strategy<TAO_IIOP_Connection_Handler>
TAO_IIOP_CONNECT_CONCURRENCY_STRATEGY;
@@ -83,7 +80,6 @@ public:
typedef ACE_Strategy_Connector<TAO_IIOP_Connection_Handler,
ACE_SOCK_CONNECTOR>
TAO_IIOP_BASE_CONNECTOR;
- //@@ TAO_CONNECTOR_SPL_PUBLIC_METHODS_COPY_HOOK_END
protected:
/// A flag indicating the actual connector supports parallel
@@ -113,12 +109,6 @@ protected:
/// Cancel the passed cvs handler from the connector
virtual int cancel_svc_handler (TAO_Connection_Handler * svc_handler);
-/*
- * Hook to copy over the protected and private data from this class to
- * base Connector class.
- */
-//@@ TAO_CONNECTOR_SPL_COPY_HOOK_START
-
private:
/// This is the first half of making a connection. Both make_connection
/// and make_parallel_connection will start out using begin_connection.
@@ -146,15 +136,11 @@ private:
TAO_IIOP_Endpoint *remote_endpoint (TAO_Endpoint *ep);
private:
-
/// Our connect strategy
TAO_IIOP_CONNECT_STRATEGY connect_strategy_;
/// The connector initiating connection requests for IIOP.
TAO_IIOP_BASE_CONNECTOR base_connector_;
-
-//@@ TAO_CONNECTOR_SPL_COPY_HOOK_END
-
};
TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IIOP_Endpoint.cpp b/TAO/tao/IIOP_Endpoint.cpp
index ee036dfc7e3..8ec0fde8237 100644
--- a/TAO/tao/IIOP_Endpoint.cpp
+++ b/TAO/tao/IIOP_Endpoint.cpp
@@ -1,10 +1,4 @@
// -*- C++ -*-
-/*
- * Add all include files within the following
- * two markers.
- */
-//@@ TAO_ENDPOINT_SPL_COPY_HOOK_START
-
#include "tao/IIOP_Endpoint.h"
#if defined (TAO_HAS_IIOP) && (TAO_HAS_IIOP != 0)
@@ -31,11 +25,8 @@
#include "ace/INET_Addr.h"
#include "ace/Sock_Connect.h"
-//@@ TAO_ENDPOINT_SPL_COPY_HOOK_END
-
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-//@@ TAO_ENDPOINT_SPL_COPY_HOOK_START
TAO_IIOP_Endpoint::TAO_IIOP_Endpoint (const ACE_INET_Addr &addr,
int use_dotted_decimal_addresses)
: TAO_Endpoint (IOP::TAG_INTERNET_IOP)
@@ -48,7 +39,7 @@ TAO_IIOP_Endpoint::TAO_IIOP_Endpoint (const ACE_INET_Addr &addr,
, object_addr_set_ (false)
, object_addr_ (addr)
, preferred_path_ ()
- , next_ (0)
+ , next_ (nullptr)
{
this->set (addr, use_dotted_decimal_addresses);
}
@@ -67,12 +58,12 @@ TAO_IIOP_Endpoint::TAO_IIOP_Endpoint (const char *host,
, object_addr_set_ (false)
, object_addr_ (addr)
, preferred_path_ ()
- , next_ (0)
+ , next_ (nullptr)
{
this->host(host); // With IPv6 performs check for decimal address
}
-TAO_IIOP_Endpoint::TAO_IIOP_Endpoint (void)
+TAO_IIOP_Endpoint::TAO_IIOP_Endpoint ()
: TAO_Endpoint (IOP::TAG_INTERNET_IOP)
, host_ ()
, port_ (683) // default port (IANA assigned)
@@ -83,7 +74,7 @@ TAO_IIOP_Endpoint::TAO_IIOP_Endpoint (void)
, object_addr_set_ (false)
, object_addr_ ()
, preferred_path_ ()
- , next_ (0)
+ , next_ (nullptr)
{
}
@@ -100,12 +91,10 @@ TAO_IIOP_Endpoint::TAO_IIOP_Endpoint (const char *host,
, object_addr_set_ (false)
, object_addr_ ()
, preferred_path_ ()
- , next_ (0)
+ , next_ (nullptr)
{
this->host(host); // With IPv6 performs check for decimal address
}
-//@@ TAO_ENDPOINT_SPL_COPY_HOOK_END
-
TAO_IIOP_Endpoint &
TAO_IIOP_Endpoint::operator= (const TAO_IIOP_Endpoint &other)
@@ -121,17 +110,15 @@ TAO_IIOP_Endpoint::operator= (const TAO_IIOP_Endpoint &other)
this->object_addr_set_ = other.object_addr_set_;
this->object_addr_ = other.object_addr_;
this->preferred_path_ = other.preferred_path_;
- this->next_ = 0; // do not copy list membership, since we are only cloning the values
+ this->next_ = nullptr; // do not copy list membership, since we are only cloning the values
}
return *this;
}
-TAO_IIOP_Endpoint::~TAO_IIOP_Endpoint (void)
+TAO_IIOP_Endpoint::~TAO_IIOP_Endpoint ()
{
}
-//@@ TAO_ENDPOINT_SPL_COPY_HOOK_START
-
TAO_IIOP_Endpoint::TAO_IIOP_Endpoint (const TAO_IIOP_Endpoint &rhs)
: TAO_Endpoint (rhs.tag_, rhs.priority_)
, host_ (rhs.host_)
@@ -143,7 +130,7 @@ TAO_IIOP_Endpoint::TAO_IIOP_Endpoint (const TAO_IIOP_Endpoint &rhs)
, object_addr_set_ (rhs.object_addr_set_)
, object_addr_ (rhs.object_addr_)
, preferred_path_ (rhs.preferred_path_)
- , next_ (0)
+ , next_ (nullptr)
{
}
@@ -169,7 +156,7 @@ TAO_IIOP_Endpoint::set (const ACE_INET_Addr &addr,
}
const char *tmp = addr.get_host_addr ();
- if (tmp == 0)
+ if (tmp == nullptr)
{
if (TAO_debug_level > 0)
{
@@ -239,7 +226,7 @@ TAO_IIOP_Endpoint::host (const char *h)
}
TAO_Endpoint *
-TAO_IIOP_Endpoint::next (void)
+TAO_IIOP_Endpoint::next ()
{
return this->next_;
}
@@ -273,8 +260,8 @@ TAO_IIOP_Endpoint::next_filtered_i (TAO_IIOP_Endpoint *root,
// the candidate is nominally the next entry in the list, but since
// the list may loop back on itself, the root of the list needs to be
// initialized.
- TAO_IIOP_Endpoint *candidate = (root == 0) ? this : next_;
- if (root == 0)
+ TAO_IIOP_Endpoint *candidate = (root == nullptr) ? this : next_;
+ if (root == nullptr)
root = this;
#if defined (ACE_HAS_IPV6)
@@ -314,18 +301,18 @@ TAO_IIOP_Endpoint::next_filtered_i (TAO_IIOP_Endpoint *root,
}
TAO_Endpoint *
-TAO_IIOP_Endpoint::duplicate (void)
+TAO_IIOP_Endpoint::duplicate ()
{
- TAO_IIOP_Endpoint *endpoint = 0;
+ TAO_IIOP_Endpoint *endpoint = nullptr;
// @@ NOTE: Not exception safe..
- ACE_NEW_RETURN (endpoint, TAO_IIOP_Endpoint (*this), 0);
+ ACE_NEW_RETURN (endpoint, TAO_IIOP_Endpoint (*this), nullptr);
return endpoint;
}
const ACE_INET_Addr &
-TAO_IIOP_Endpoint::object_addr (void) const
+TAO_IIOP_Endpoint::object_addr () const
{
// The object_addr_ is initialized here, rather than at IOR decode
// time for several reasons:
@@ -351,7 +338,7 @@ TAO_IIOP_Endpoint::object_addr (void) const
}
void
-TAO_IIOP_Endpoint::object_addr_i (void) const
+TAO_IIOP_Endpoint::object_addr_i () const
{
// We should have already held the lock
@@ -414,7 +401,7 @@ TAO_IIOP_Endpoint::add_local_endpoint (TAO_IIOP_Endpoint *ep,
static void
TAO_IIOP_Endpoint_get_ip_interfaces (ACE_Vector<ACE_CString> &local_ips)
{
- ACE_INET_Addr* tmp = 0;
+ ACE_INET_Addr* tmp = nullptr;
size_t cnt = 0u;
int err = ACE::get_ip_interfaces (cnt, tmp);
if (err != 0)
@@ -427,7 +414,7 @@ TAO_IIOP_Endpoint_get_ip_interfaces (ACE_Vector<ACE_CString> &local_ips)
for (size_t i = 0u; i < cnt; ++i)
{
const char *s_if = tmp[i].get_host_addr (buf, sizeof (buf));
- ACE_ASSERT (s_if != 0);
+ ACE_ASSERT (s_if != nullptr);
ACE_CString tmp (s_if);
local_ips.push_back (tmp);
}
@@ -548,7 +535,7 @@ TAO_IIOP_Endpoint::preferred_interfaces (const char *csv,
find_preferred_interfaces(this->host_.in(), csv, preferred);
CORBA::ULong count = static_cast<CORBA::ULong> (preferred.size());
size_t i = 0;
- while (i < count && ACE_OS::strstr (preferred[i].c_str(), "if=") != 0)
+ while (i < count && ACE_OS::strstr (preferred[i].c_str(), "if=") != nullptr)
{
// For now we disregard these with IIOP
++i;
@@ -560,7 +547,7 @@ TAO_IIOP_Endpoint::preferred_interfaces (const char *csv,
TAO_IIOP_Endpoint* ep = this;
for (++i; i < count; ++i)
{
- if (ACE_OS::strstr (preferred[i].c_str(), "if=") == 0)
+ if (ACE_OS::strstr (preferred[i].c_str(), "if=") == nullptr)
ep = add_local_endpoint (ep, preferred[i].c_str(), profile);
}
@@ -584,7 +571,7 @@ TAO_IIOP_Endpoint::is_equivalent (const TAO_Endpoint *other_endpoint)
const TAO_IIOP_Endpoint *endpoint =
dynamic_cast<const TAO_IIOP_Endpoint *> (other_endpoint);
- if (endpoint == 0)
+ if (endpoint == nullptr)
return 0;
return (this->port_ == endpoint->port_
@@ -592,7 +579,7 @@ TAO_IIOP_Endpoint::is_equivalent (const TAO_Endpoint *other_endpoint)
}
CORBA::ULong
-TAO_IIOP_Endpoint::hash (void)
+TAO_IIOP_Endpoint::hash ()
{
if (this->hash_val_ != 0)
return this->hash_val_;
@@ -622,20 +609,18 @@ TAO_IIOP_Endpoint::hash (void)
}
bool
-TAO_IIOP_Endpoint::is_preferred_network (void) const
+TAO_IIOP_Endpoint::is_preferred_network () const
{
- return (this->preferred_path_.host.in () != 0 &&
+ return (this->preferred_path_.host.in () != nullptr &&
this->preferred_path_.host.in ()[0] != 0);
}
const char *
-TAO_IIOP_Endpoint::preferred_network (void) const
+TAO_IIOP_Endpoint::preferred_network () const
{
return this->preferred_path_.host.in ();
}
-//@@ TAO_ENDPOINT_SPL_COPY_HOOK_END
-
TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* TAO_HAS_IIOP && TAO_HAS_IIOP != 0 */
diff --git a/TAO/tao/IIOP_Endpoint.h b/TAO/tao/IIOP_Endpoint.h
index 47db490ef26..4279c0fa733 100644
--- a/TAO/tao/IIOP_Endpoint.h
+++ b/TAO/tao/IIOP_Endpoint.h
@@ -45,8 +45,6 @@ class TAO_IIOP_Profile;
class TAO_Export TAO_IIOP_Endpoint : public TAO_Endpoint
{
public:
- //@@ TAO_ENDPOINT_SPL_PUBLIC_METHODS_COPY_HOOK_START
-
// @todo Lose these friends!
friend class TAO_IIOP_Profile;
friend class TAO_SSLIOP_Profile;
@@ -70,9 +68,6 @@ public:
CORBA::UShort port,
CORBA::Short priority);
-
- //@@ TAO_ENDPOINT_SPL_PUBLIC_METHODS_COPY_HOOK_END
-
/// Destructor.
~TAO_IIOP_Endpoint (void);
@@ -113,12 +108,6 @@ public:
// = IIOP_Endpoint-specific methods.
- /*
- * Hook to copy only the non virtual concrete methods implemented
- * in this class to the derived class in the specialization.
- */
- //@@ TAO_ENDPOINT_SPL_PUBLIC_METHODS_COPY_HOOK_START
-
/// Return a reference to the <object_addr>.
const ACE_INET_Addr &object_addr (void) const;
@@ -147,9 +136,6 @@ public:
bool is_ipv6_decimal (void) const;
#endif /* ACE_HAS_IPV6 */
- //@@ TAO_ENDPOINT_SPL_PUBLIC_METHODS_COPY_HOOK_END
-
-
/// Need to have an assignment operator since the IIOP_Profile class may
/// have to reorder its list of endpoints based on filtering by the EndpointPolicy.
TAO_IIOP_Endpoint & operator= (const TAO_IIOP_Endpoint& other);
@@ -169,9 +155,6 @@ private:
bool prefer_ipv6,
bool want_ipv6);
-
- //@@ TAO_ENDPOINT_SPL_PRIVATE_DATA_COPY_HOOK_START
-
/// Helper method for setting INET_Addr.
int set (const ACE_INET_Addr &addr,
int use_dotted_decimal_addresses);
@@ -228,8 +211,6 @@ private:
/// IIOP Endpoints can be strung into a list. Return the next
/// endpoint in the list, if any.
TAO_IIOP_Endpoint *next_;
-
- //@@ TAO_ENDPOINT_SPL_PRIVATE_DATA_COPY_HOOK_END
};
TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IIOP_Factory.cpp b/TAO/tao/IIOP_Factory.cpp
index 33b614739de..d8155105036 100644
--- a/TAO/tao/IIOP_Factory.cpp
+++ b/TAO/tao/IIOP_Factory.cpp
@@ -12,12 +12,12 @@ static const char the_prefix[] = "iiop";
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_IIOP_Protocol_Factory::TAO_IIOP_Protocol_Factory (void)
+TAO_IIOP_Protocol_Factory::TAO_IIOP_Protocol_Factory ()
: TAO_Protocol_Factory (IOP::TAG_INTERNET_IOP)
{
}
-TAO_IIOP_Protocol_Factory::~TAO_IIOP_Protocol_Factory (void)
+TAO_IIOP_Protocol_Factory::~TAO_IIOP_Protocol_Factory ()
{
}
@@ -29,25 +29,25 @@ TAO_IIOP_Protocol_Factory::match_prefix (const ACE_CString &prefix)
}
const char *
-TAO_IIOP_Protocol_Factory::prefix (void) const
+TAO_IIOP_Protocol_Factory::prefix () const
{
return ::the_prefix;
}
char
-TAO_IIOP_Protocol_Factory::options_delimiter (void) const
+TAO_IIOP_Protocol_Factory::options_delimiter () const
{
return '/';
}
TAO_Acceptor *
-TAO_IIOP_Protocol_Factory::make_acceptor (void)
+TAO_IIOP_Protocol_Factory::make_acceptor ()
{
- TAO_Acceptor *acceptor = 0;
+ TAO_Acceptor *acceptor = nullptr;
ACE_NEW_RETURN (acceptor,
TAO_IIOP_Acceptor,
- 0);
+ nullptr);
return acceptor;
}
@@ -60,18 +60,18 @@ TAO_IIOP_Protocol_Factory::init (int /* argc */,
}
TAO_Connector *
-TAO_IIOP_Protocol_Factory::make_connector (void)
+TAO_IIOP_Protocol_Factory::make_connector ()
{
- TAO_Connector *connector = 0;
+ TAO_Connector *connector = nullptr;
ACE_NEW_RETURN (connector,
TAO_IIOP_Connector,
- 0);
+ nullptr);
return connector;
}
int
-TAO_IIOP_Protocol_Factory::requires_explicit_endpoint (void) const
+TAO_IIOP_Protocol_Factory::requires_explicit_endpoint () const
{
return 0;
}
diff --git a/TAO/tao/IIOP_Profile.cpp b/TAO/tao/IIOP_Profile.cpp
index fee07e0b832..a33b42085e7 100644
--- a/TAO/tao/IIOP_Profile.cpp
+++ b/TAO/tao/IIOP_Profile.cpp
@@ -17,14 +17,14 @@ static const char the_prefix[] = "iiop";
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_IIOP_Profile::~TAO_IIOP_Profile (void)
+TAO_IIOP_Profile::~TAO_IIOP_Profile ()
{
// Clean up the list of endpoints since we own it.
// Skip the head, since it is not dynamically allocated.
- TAO_Endpoint *tmp = 0;
+ TAO_Endpoint *tmp = nullptr;
for (TAO_Endpoint *next = this->endpoint ()->next ();
- next != 0;
+ next != nullptr;
next = tmp)
{
tmp = next->next ();
@@ -32,18 +32,14 @@ TAO_IIOP_Profile::~TAO_IIOP_Profile (void)
}
}
-//@@ TAO_PROFILE_SPL_COPY_HOOK_START
-
const char TAO_IIOP_Profile::object_key_delimiter_ = '/';
char
-TAO_IIOP_Profile::object_key_delimiter (void) const
+TAO_IIOP_Profile::object_key_delimiter () const
{
return TAO_IIOP_Profile::object_key_delimiter_;
}
-//@@ TAO_PROFILE_SPL_COPY_HOOK_END
-
TAO_IIOP_Profile::TAO_IIOP_Profile (const ACE_INET_Addr &addr,
const TAO::ObjectKey &object_key,
const TAO_GIOP_Message_Version &version,
@@ -86,7 +82,6 @@ TAO_IIOP_Profile::TAO_IIOP_Profile (TAO_ORB_Core *orb_core)
{
}
-//@@ TAO_PROFILE_SPL_COPY_HOOK_START
int
TAO_IIOP_Profile::decode_profile (TAO_InputCDR& cdr)
{
@@ -115,7 +110,7 @@ TAO_IIOP_Profile::decode_profile (TAO_InputCDR& cdr)
this->endpoint_.object_addr_.set_type (-1);
const char* csv = this->orb_core()->orb_params()->preferred_interfaces();
- if (csv != 0 && *csv != '\0')
+ if (csv != nullptr && *csv != '\0')
{
bool const enforce =
this->orb_core()->orb_params()->enforce_pref_interfaces();
@@ -135,7 +130,7 @@ TAO_IIOP_Profile::parse_string_i (const char *ior)
const char *okd = ACE_OS::strchr (ior, this->object_key_delimiter_);
- if (okd == 0 || okd == ior)
+ if (okd == nullptr || okd == ior)
{
// No object key delimiter or no hostname specified.
throw ::CORBA::INV_OBJREF (
@@ -149,7 +144,7 @@ TAO_IIOP_Profile::parse_string_i (const char *ior)
CORBA::ULong length_host = 0;
const char *cp_pos_overrun = ACE_OS::strchr (ior, ':'); // Look for a port
- const char *cp_pos = (cp_pos_overrun < okd) ? cp_pos_overrun : 0; // but before object key
+ const char *cp_pos = (cp_pos_overrun < okd) ? cp_pos_overrun : nullptr; // but before object key
#if defined (ACE_HAS_IPV6)
// IPv6 numeric address in host string?
bool ipv6_in_host = false;
@@ -208,13 +203,13 @@ TAO_IIOP_Profile::parse_string_i (const char *ior)
EINVAL),
CORBA::COMPLETED_NO);
}
- else if (cp_pos != 0)
+ else if (cp_pos != nullptr)
{
// A port number or port name was specified.
CORBA::ULong length_port = ACE_Utils::truncate_cast<CORBA::ULong> (okd - cp_pos - 1);
CORBA::String_var tmp = CORBA::string_alloc (length_port);
- if (tmp.in() != 0)
+ if (tmp.in() != nullptr)
{
ACE_OS::strncpy (tmp.inout (), cp_pos + 1, length_port);
tmp[length_port] = '\0';
@@ -225,7 +220,7 @@ TAO_IIOP_Profile::parse_string_i (const char *ior)
this->endpoint_.port_ = 2809; // default IIOP port for
// parsing corbaloc strings
}
- else if (tmp.in () != 0 && ACE_OS::strspn (tmp.in (), "1234567890") == length_port)
+ else if (tmp.in () != nullptr && ACE_OS::strspn (tmp.in (), "1234567890") == length_port)
{
this->endpoint_.port_ =
static_cast<CORBA::UShort> (ACE_OS::atoi (tmp.in ()));
@@ -233,7 +228,7 @@ TAO_IIOP_Profile::parse_string_i (const char *ior)
else
{
ACE_INET_Addr ia;
- if (tmp.in () == 0 || ia.string_to_addr (tmp.in ()) == -1)
+ if (tmp.in () == nullptr || ia.string_to_addr (tmp.in ()) == -1)
{
throw ::CORBA::INV_OBJREF (
CORBA::SystemException::_tao_minor_code (
@@ -327,7 +322,7 @@ TAO_IIOP_Profile::do_is_equivalent (const TAO_Profile *other_profile)
dynamic_cast<const TAO_IIOP_Profile *> (other_profile);
// Make sure we have a TAO_IIOP_Profile.
- if (op == 0)
+ if (op == nullptr)
return false;
if (this->count_ == 0 && op->count_ == 0)
@@ -337,7 +332,7 @@ TAO_IIOP_Profile::do_is_equivalent (const TAO_Profile *other_profile)
// Check endpoints equivalence.
const TAO_IIOP_Endpoint *other_endp = &op->endpoint_;
for (TAO_IIOP_Endpoint *endp = &this->endpoint_;
- endp != 0;
+ endp != nullptr;
endp = endp->next_)
{
if (endp->is_equivalent (other_endp))
@@ -355,7 +350,7 @@ TAO_IIOP_Profile::hash (CORBA::ULong max)
// Get the hash value for all endpoints.
CORBA::ULong hashval = 0;
for (TAO_IIOP_Endpoint *endp = &this->endpoint_;
- endp != 0;
+ endp != nullptr;
endp = endp->next_)
{
hashval += endp->hash ();
@@ -379,13 +374,13 @@ TAO_IIOP_Profile::hash (CORBA::ULong max)
}
TAO_Endpoint*
-TAO_IIOP_Profile::endpoint (void)
+TAO_IIOP_Profile::endpoint ()
{
return &this->endpoint_;
}
TAO_Endpoint *
-TAO_IIOP_Profile::base_endpoint (void)
+TAO_IIOP_Profile::base_endpoint ()
{
// do not call endpoint(), return the value directly. This is to
// avoid calling a derived implementation of endpoint().
@@ -393,7 +388,7 @@ TAO_IIOP_Profile::base_endpoint (void)
}
CORBA::ULong
-TAO_IIOP_Profile::endpoint_count (void) const
+TAO_IIOP_Profile::endpoint_count () const
{
return this->count_;
}
@@ -410,7 +405,7 @@ TAO_IIOP_Profile::add_endpoint (TAO_IIOP_Endpoint *endp)
void
TAO_IIOP_Profile::remove_endpoint (TAO_IIOP_Endpoint *endp)
{
- if (endp == 0)
+ if (endp == nullptr)
return;
// special handling for the target matching the base endpoint
@@ -435,7 +430,7 @@ TAO_IIOP_Profile::remove_endpoint (TAO_IIOP_Endpoint *endp)
TAO_IIOP_Endpoint* prev = &this->endpoint_;
TAO_IIOP_Endpoint* cur = this->endpoint_.next_;
- while (cur != 0)
+ while (cur != nullptr)
{
if (cur == endp)
break;
@@ -443,10 +438,10 @@ TAO_IIOP_Profile::remove_endpoint (TAO_IIOP_Endpoint *endp)
cur = cur->next_;
}
- if (cur != 0)
+ if (cur != nullptr)
{
prev->next_ = cur->next_;
- cur->next_ = 0;
+ cur->next_ = nullptr;
--this->count_;
if (this->last_endpoint_ == cur)
{
@@ -466,7 +461,7 @@ void
TAO_IIOP_Profile::add_generic_endpoint (TAO_Endpoint *endp)
{
TAO_IIOP_Endpoint *iep = dynamic_cast<TAO_IIOP_Endpoint *>(endp);
- if (iep != 0)
+ if (iep != nullptr)
{
TAO_IIOP_Endpoint *clone;
ACE_NEW (clone, TAO_IIOP_Endpoint(*iep));
@@ -475,7 +470,7 @@ TAO_IIOP_Profile::add_generic_endpoint (TAO_Endpoint *endp)
}
char *
-TAO_IIOP_Profile::to_string (void) const
+TAO_IIOP_Profile::to_string () const
{
// corbaloc:iiop:1.2@host:port,iiop:1.2@host:port,.../key
@@ -492,8 +487,8 @@ TAO_IIOP_Profile::to_string (void) const
ACE_OS::strlen (::the_prefix) /* "iiop" */ +
1 /* colon separator */);
- const TAO_IIOP_Endpoint *endp = 0;
- for (endp = &this->endpoint_; endp != 0; endp = endp->next_)
+ const TAO_IIOP_Endpoint *endp = nullptr;
+ for (endp = &this->endpoint_; endp != nullptr; endp = endp->next_)
{
buflen += (
pfx_len +
@@ -517,7 +512,7 @@ TAO_IIOP_Profile::to_string (void) const
ACE_OS::strcpy(buf, "corbaloc:");
- for (endp = &this->endpoint_; endp != 0; endp = endp->next_)
+ for (endp = &this->endpoint_; endp != nullptr; endp = endp->next_)
{
if(&this->endpoint_ != endp)
ACE_OS::strcat(buf, ",");
@@ -561,7 +556,7 @@ TAO_IIOP_Profile::to_string (void) const
}
const char *
-TAO_IIOP_Profile::prefix (void)
+TAO_IIOP_Profile::prefix ()
{
return ::the_prefix;
}
@@ -611,7 +606,7 @@ TAO_IIOP_Profile::create_profile_body (TAO_OutputCDR &encap) const
}
int
-TAO_IIOP_Profile::encode_alternate_endpoints (void)
+TAO_IIOP_Profile::encode_alternate_endpoints ()
{
// encode IOP::TAG_ALTERNATE_IIOP_ADDRESS tags if there are more
// than one endpoints to listen to.
@@ -667,7 +662,7 @@ TAO_IIOP_Profile::encode_alternate_endpoints (void)
tagged_component.component_data.get_buffer ();
for (const ACE_Message_Block *iterator = out_cdr.begin ();
- iterator != 0;
+ iterator != nullptr;
iterator = iterator->cont ())
{
size_t i_length = iterator->length ();
@@ -684,7 +679,7 @@ TAO_IIOP_Profile::encode_alternate_endpoints (void)
}
int
-TAO_IIOP_Profile::encode_endpoints (void)
+TAO_IIOP_Profile::encode_endpoints ()
{
CORBA::ULong actual_count = 0;
@@ -756,7 +751,7 @@ TAO_IIOP_Profile::encode_endpoints (void)
int
-TAO_IIOP_Profile::decode_endpoints (void)
+TAO_IIOP_Profile::decode_endpoints ()
{
IOP::TaggedComponent tagged_component;
tagged_component.tag = TAO_TAG_ENDPOINTS;
@@ -796,7 +791,7 @@ TAO_IIOP_Profile::decode_endpoints (void)
i > 0;
--i)
{
- TAO_IIOP_Endpoint *endpoint = 0;
+ TAO_IIOP_Endpoint *endpoint = nullptr;
ACE_NEW_RETURN (endpoint,
TAO_IIOP_Endpoint (endpoints[i].host,
endpoints[i].port,
@@ -834,7 +829,7 @@ TAO_IIOP_Profile::decode_endpoints (void)
if (!(in_cdr >> host.out()) || !(in_cdr >> port))
return -1;
- TAO_IIOP_Endpoint *endpoint = 0;
+ TAO_IIOP_Endpoint *endpoint = nullptr;
ACE_NEW_RETURN (endpoint,
TAO_IIOP_Endpoint (host.in(),
port,
@@ -846,7 +841,6 @@ TAO_IIOP_Profile::decode_endpoints (void)
return 0;
}
-//@@ TAO_PROFILE_SPL_COPY_HOOK_END
TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IIOP_Profile.h b/TAO/tao/IIOP_Profile.h
index b4a0a10b527..a3c45dc3fca 100644
--- a/TAO/tao/IIOP_Profile.h
+++ b/TAO/tao/IIOP_Profile.h
@@ -42,8 +42,6 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_Export TAO_IIOP_Profile : public TAO_Profile
{
public:
-
- //@@ TAO_PROFILE_SPL_PUBLIC_METHODS_COPY_HOOK_START
static const char object_key_delimiter_;
/// Return the char string prefix.
@@ -87,8 +85,6 @@ public:
/// Add an endpoint when the specific endpoint type is unknown
virtual void add_generic_endpoint (TAO_Endpoint *ep);
- //@@ TAO_PROFILE_SPL_PUBLIC_METHODS_COPY_HOOK_END
-
/// The object key delimiter that IIOP uses or expects.
virtual char object_key_delimiter (void) const;
@@ -130,18 +126,12 @@ protected:
* encapsulation of a sequence of structs, each representing a
* single endpoint. Data format is specified in iiop_endpoins.pidl.
*/
-
- //@@ TAO_PROFILE_SPL_PROTECTED_METHODS_COPY_HOOK_START
-
int encode_endpoints_for_rt (void);
- //@@ TAO_PROFILE_SPL_PROTECTED_METHODS_COPY_HOOK_END
-
/// Template methods. Please see Profile.h for the documentation.
virtual int decode_profile (TAO_InputCDR &cdr);
virtual int decode_endpoints (void);
- virtual void parse_string_i (const char *string
- );
+ virtual void parse_string_i (const char *string);
virtual void create_profile_body (TAO_OutputCDR &cdr) const;
virtual CORBA::Boolean do_is_equivalent (const TAO_Profile *other_profile);
@@ -176,9 +166,6 @@ protected:
* <encode_endpoints> method documentation above for how the rest of
* the endpoint list is transmitted.
*/
-
- //@@ TAO_PROFILE_SPL_PRIVATE_DATA_COPY_HOOK_START
-
TAO_IIOP_Endpoint endpoint_;
/// For efficient insertion at the end of the list
@@ -186,8 +173,6 @@ protected:
/// Number of endpoints in the list headed by <endpoint_>.
CORBA::ULong count_;
-
- //@@ TAO_PROFILE_SPL_PRIVATE_DATA_COPY_HOOK_END
};
TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IIOP_Transport.cpp b/TAO/tao/IIOP_Transport.cpp
index 9e9318f8489..bb63d2ce313 100644
--- a/TAO/tao/IIOP_Transport.cpp
+++ b/TAO/tao/IIOP_Transport.cpp
@@ -27,28 +27,18 @@ TAO_IIOP_Transport::TAO_IIOP_Transport (TAO_IIOP_Connection_Handler *handler,
{
}
-TAO_IIOP_Transport::~TAO_IIOP_Transport (void)
+TAO_IIOP_Transport::~TAO_IIOP_Transport ()
{
}
-/*
- * Hook to copy over all concrete implementations
- * of Transport class from this class to the base
- * class as a part of the specialization.
- * All enhancements to the IIOP_Transport
- * class, i.e., addition of new concrete non virtual
- * methods should be added within this hook.
- */
-
-//@@ TAO_TRANSPORT_SPL_COPY_HOOK_START
ACE_Event_Handler *
-TAO_IIOP_Transport::event_handler_i (void)
+TAO_IIOP_Transport::event_handler_i ()
{
return this->connection_handler_;
}
TAO_Connection_Handler *
-TAO_IIOP_Transport::connection_handler_i (void)
+TAO_IIOP_Transport::connection_handler_i ()
{
return this->connection_handler_;
}
@@ -92,7 +82,7 @@ TAO_IIOP_Transport::sendfile (TAO_MMAP_Allocator * allocator,
// If we don't have an allocator, fallback to the regular way of sending
// data
- if (allocator == 0)
+ if (allocator == nullptr)
return this->send (iov, iovcnt, bytes_transferred, this->io_timeout(dc));
// We can only use sendfile when all data is coming from the mmap allocator,
@@ -217,7 +207,7 @@ TAO_IIOP_Transport::send_request (TAO_Stub *stub,
if (this->send_message (stream,
stub,
- 0,
+ nullptr,
message_semantics,
max_wait_time) == -1)
{
@@ -351,7 +341,7 @@ TAO_IIOP_Transport::get_listen_point (
TAO_IIOP_Acceptor *iiop_acceptor =
dynamic_cast<TAO_IIOP_Acceptor *> (acceptor);
- if (iiop_acceptor == 0)
+ if (iiop_acceptor == nullptr)
return -1;
// Get the array of endpoints serviced by TAO_IIOP_Acceptor
@@ -436,10 +426,6 @@ TAO_IIOP_Transport::get_listen_point (
}
return 1;
}
-//@@ TAO_TRANSPORT_SPL_COPY_HOOK_END
-/*
- * End of copy hook.
- */
TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IORInterceptor_Adapter.cpp b/TAO/tao/IORInterceptor_Adapter.cpp
index c4b785595ab..48b8f0e9bf6 100644
--- a/TAO/tao/IORInterceptor_Adapter.cpp
+++ b/TAO/tao/IORInterceptor_Adapter.cpp
@@ -2,7 +2,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_IORInterceptor_Adapter::~TAO_IORInterceptor_Adapter (void)
+TAO_IORInterceptor_Adapter::~TAO_IORInterceptor_Adapter ()
{
}
diff --git a/TAO/tao/IORInterceptor_Adapter.h b/TAO/tao/IORInterceptor_Adapter.h
index bfcd27e935e..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.
@@ -82,8 +82,7 @@ public:
/// Call the IORInterceptor::components_established() method on all
/// registered IORInterceptors.
- virtual void components_established (PortableInterceptor::IORInfo_ptr info)
- = 0;
+ virtual void components_established (PortableInterceptor::IORInfo_ptr info) = 0;
virtual void adapter_state_changed (
const TAO::ObjectReferenceTemplate_Array &array_obj_ref_template,
diff --git a/TAO/tao/IORInterceptor_Adapter_Factory.cpp b/TAO/tao/IORInterceptor_Adapter_Factory.cpp
index 4a1b09b31b3..280fc46ab4a 100644
--- a/TAO/tao/IORInterceptor_Adapter_Factory.cpp
+++ b/TAO/tao/IORInterceptor_Adapter_Factory.cpp
@@ -2,7 +2,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_IORInterceptor_Adapter_Factory::~TAO_IORInterceptor_Adapter_Factory (void)
+TAO_IORInterceptor_Adapter_Factory::~TAO_IORInterceptor_Adapter_Factory ()
{
}
diff --git a/TAO/tao/IORManipulation/IORManipulation.cpp b/TAO/tao/IORManipulation/IORManipulation.cpp
index 6c86e8fbea0..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 ();
@@ -165,8 +157,7 @@ TAO_IOR_Manipulation_impl::remove_profiles (
TAO_ORB_Core *orb_core = TAO_ORB_Core_instance ();
TAO_Stub *stub = orb_core->create_stub (id.in (), // give the id string
- Diff_Profiles
- );
+ Diff_Profiles);
// Make the stub memory allocation exception safe for the duration
// of this method.
@@ -278,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/IOR_Parser.cpp b/TAO/tao/IOR_Parser.cpp
index 7049b1b6ff0..cee044f8785 100644
--- a/TAO/tao/IOR_Parser.cpp
+++ b/TAO/tao/IOR_Parser.cpp
@@ -2,7 +2,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_IOR_Parser::~TAO_IOR_Parser (void)
+TAO_IOR_Parser::~TAO_IOR_Parser ()
{
}
diff --git a/TAO/tao/IOR_Parser.h b/TAO/tao/IOR_Parser.h
index 89e112c8547..1ab29881e66 100644
--- a/TAO/tao/IOR_Parser.h
+++ b/TAO/tao/IOR_Parser.h
@@ -58,8 +58,7 @@ public:
* The call may raise the standard system exceptions (NO_MEMORY,
* INV_OBJREF, etc.)
*/
- virtual CORBA::Object_ptr parse_string (const char *ior, CORBA::ORB_ptr orb)
- = 0;
+ virtual CORBA::Object_ptr parse_string (const char *ior, CORBA::ORB_ptr orb) = 0;
};
TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Incoming_Message_Queue.cpp b/TAO/tao/Incoming_Message_Queue.cpp
index 4b9048426ec..5622b387571 100644
--- a/TAO/tao/Incoming_Message_Queue.cpp
+++ b/TAO/tao/Incoming_Message_Queue.cpp
@@ -11,7 +11,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Incoming_Message_Queue::~TAO_Incoming_Message_Queue (void)
+TAO_Incoming_Message_Queue::~TAO_Incoming_Message_Queue ()
{
CORBA::ULong const sz = this->size_;
@@ -27,10 +27,10 @@ TAO_Incoming_Message_Queue::~TAO_Incoming_Message_Queue (void)
TAO_Queued_Data *
-TAO_Incoming_Message_Queue::dequeue_head (void)
+TAO_Incoming_Message_Queue::dequeue_head ()
{
if (this->size_ == 0)
- return 0;
+ return nullptr;
// Get the node on the head of the queue...
TAO_Queued_Data * const head = this->last_added_->next ();
@@ -40,17 +40,17 @@ TAO_Incoming_Message_Queue::dequeue_head (void)
// Decrease the size and reset last_added_ if empty
if (--this->size_ == 0)
- this->last_added_ = 0;
+ this->last_added_ = nullptr;
return head;
}
TAO_Queued_Data *
-TAO_Incoming_Message_Queue::dequeue_tail (void)
+TAO_Incoming_Message_Queue::dequeue_tail ()
{
// This is a bit painful stuff...
if (this->size_ == 0)
- return 0;
+ return nullptr;
// Get the node on the head of the queue...
TAO_Queued_Data *head = this->last_added_->next ();
@@ -69,7 +69,7 @@ TAO_Incoming_Message_Queue::dequeue_tail (void)
// Decrease the size
if (--this->size_ == 0)
- this->last_added_ = 0;
+ this->last_added_ = nullptr;
return ret_qd;
}
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.cpp b/TAO/tao/Invocation_Adapter.cpp
index e9e71701152..78b9eaafbfd 100644
--- a/TAO/tao/Invocation_Adapter.cpp
+++ b/TAO/tao/Invocation_Adapter.cpp
@@ -25,7 +25,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
- Invocation_Adapter::~Invocation_Adapter (void)
+ Invocation_Adapter::~Invocation_Adapter ()
{
}
@@ -63,7 +63,7 @@ namespace TAO
// Initial state
TAO::Invocation_Status status = TAO_INVOKE_START;
- ACE_Time_Value *max_wait_time = 0;
+ ACE_Time_Value *max_wait_time = nullptr;
ACE_Time_Value tmp_wait_time = ACE_Time_Value::zero;
if (this->get_timeout (stub, tmp_wait_time))
{
@@ -139,11 +139,11 @@ namespace TAO
}
TAO_Stub *
- Invocation_Adapter::get_stub (void) const
+ Invocation_Adapter::get_stub () const
{
TAO_Stub * const stub = this->target_->_stubobj ();
- if (stub == 0)
+ if (stub == nullptr)
{
if (TAO_debug_level > 0)
{
@@ -365,7 +365,7 @@ namespace TAO
{
// The object pointer has to be changed to a TAO_Stub pointer
// in order to obtain the profiles.
- TAO_Stub *stubobj = 0;
+ TAO_Stub *stubobj = nullptr;
bool nil_forward_ref = false;
if (CORBA::is_nil (effective_target.in ()))
@@ -385,7 +385,7 @@ namespace TAO
0),
CORBA::COMPLETED_NO);
- if (stubobj == 0)
+ if (stubobj == nullptr)
throw ::CORBA::INTERNAL (
CORBA::SystemException::_tao_minor_code (
TAO_INVOCATION_LOCATION_FORWARD_MINOR_CODE,
@@ -395,7 +395,7 @@ namespace TAO
// Reset the profile in the stubs
stub->add_forward_profiles (stubobj->base_profiles (), permanent_forward);
- if (stub->next_profile () == 0)
+ if (stub->next_profile () == nullptr)
throw ::CORBA::TRANSIENT (
CORBA::SystemException::_tao_minor_code (
TAO_INVOCATION_LOCATION_FORWARD_MINOR_CODE,
@@ -409,7 +409,7 @@ namespace TAO
TAO::Collocation_Strategy strategy = TAO::TAO_CS_REMOTE_STRATEGY;
TAO_Stub *stub = object->_stubobj ();
if (!CORBA::is_nil (stub->servant_orb_var ().in ()) &&
- stub->servant_orb_var ()->orb_core () != 0)
+ stub->servant_orb_var ()->orb_core () != nullptr)
{
TAO_ORB_Core *orb_core = stub->servant_orb_var ()->orb_core ();
@@ -447,7 +447,7 @@ namespace TAO
{
if (ACE_BIT_ENABLED (this->collocation_opportunity_,
TAO::TAO_CO_DIRECT_STRATEGY)
- && (object->_servant () != 0))
+ && (object->_servant () != nullptr))
{
strategy = TAO::TAO_CS_DIRECT_STRATEGY;
}
@@ -474,7 +474,7 @@ namespace TAO
{
if (ACE_BIT_ENABLED (this->collocation_opportunity_,
TAO::TAO_CO_DIRECT_STRATEGY)
- && (object->_servant () != 0))
+ && (object->_servant () != nullptr))
{
strategy = TAO::TAO_CS_DIRECT_STRATEGY;
}
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.cpp b/TAO/tao/Invocation_Base.cpp
index 8571d40c0b5..0af8f490d8f 100644
--- a/TAO/tao/Invocation_Base.cpp
+++ b/TAO/tao/Invocation_Base.cpp
@@ -33,7 +33,7 @@ namespace TAO
bool response_expected,
bool TAO_INTERCEPTOR (request_is_remote))
: details_ (details)
- , forwarded_to_ (0)
+ , forwarded_to_ (nullptr)
, response_expected_ (response_expected)
, reply_status_ (GIOP::NO_EXCEPTION)
, otarget_ (ot)
@@ -44,33 +44,33 @@ namespace TAO
, sri_adapter_ (stub_->orb_core ()->serverrequestinterceptor_adapter ())
, stack_size_ (0)
, invoke_status_ (TAO_INVOKE_START)
- , caught_exception_ (0)
+ , caught_exception_ (nullptr)
, is_remote_request_ (request_is_remote)
#endif /* TAO_HAS_INTERCEPTORS == 1 */
{
}
- Invocation_Base::~Invocation_Base (void)
+ Invocation_Base::~Invocation_Base ()
{
- TAO_INTERCEPTOR (cri_adapter_= 0);
- TAO_INTERCEPTOR (sri_adapter_= 0);
+ TAO_INTERCEPTOR (cri_adapter_= nullptr);
+ TAO_INTERCEPTOR (sri_adapter_= nullptr);
}
TAO_Service_Context &
- Invocation_Base::request_service_context (void)
+ Invocation_Base::request_service_context ()
{
return this->details_.request_service_context ();
}
TAO_Service_Context &
- Invocation_Base::reply_service_context (void)
+ Invocation_Base::reply_service_context ()
{
return this->details_.reply_service_context ();
}
#if TAO_HAS_INTERCEPTORS == 1
Invocation_Status
- Invocation_Base::send_request_interception (void)
+ Invocation_Base::send_request_interception ()
{
if (cri_adapter_)
{
@@ -105,7 +105,7 @@ namespace TAO
}
Invocation_Status
- Invocation_Base::receive_reply_interception (void)
+ Invocation_Base::receive_reply_interception ()
{
if (cri_adapter_)
{
@@ -137,7 +137,7 @@ namespace TAO
}
Invocation_Status
- Invocation_Base::receive_other_interception (void)
+ Invocation_Base::receive_other_interception ()
{
if (cri_adapter_)
{
@@ -199,7 +199,7 @@ namespace TAO
}
PortableInterceptor::ReplyStatus
- Invocation_Base::handle_all_exception (void)
+ Invocation_Base::handle_all_exception ()
{
this->exception (&unknown_exception);
@@ -224,9 +224,9 @@ namespace TAO
void
Invocation_Base::exception (CORBA::Exception *exception)
{
- if (CORBA::SystemException::_downcast (exception) != 0)
+ if (CORBA::SystemException::_downcast (exception) != nullptr)
this->invoke_status_ = TAO::TAO_INVOKE_SYSTEM_EXCEPTION;
- else if (CORBA::UserException::_downcast (exception) != 0)
+ else if (CORBA::UserException::_downcast (exception) != nullptr)
this->invoke_status_ = TAO::TAO_INVOKE_USER_EXCEPTION;
this->forwarded_to_ = CORBA::Object::_nil ();
@@ -235,7 +235,7 @@ namespace TAO
}
PortableInterceptor::ReplyStatus
- Invocation_Base::pi_reply_status (void) const
+ Invocation_Base::pi_reply_status () const
{
if (cri_adapter_)
{
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/Invocation_Endpoint_Selectors.cpp b/TAO/tao/Invocation_Endpoint_Selectors.cpp
index 913169b2ad6..9d4999cbd25 100644
--- a/TAO/tao/Invocation_Endpoint_Selectors.cpp
+++ b/TAO/tao/Invocation_Endpoint_Selectors.cpp
@@ -10,13 +10,13 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Invocation_Endpoint_Selector::~TAO_Invocation_Endpoint_Selector (void)
+TAO_Invocation_Endpoint_Selector::~TAO_Invocation_Endpoint_Selector ()
{
}
// ****************************************************************
-TAO_Default_Endpoint_Selector::~TAO_Default_Endpoint_Selector (void)
+TAO_Default_Endpoint_Selector::~TAO_Default_Endpoint_Selector ()
{
}
@@ -55,7 +55,7 @@ TAO_Default_Endpoint_Selector::select_endpoint (TAO::Profile_Transport_Resolver
}
for (TAO_Endpoint *ep = r->profile ()->first_filtered_endpoint ();
- ep != 0;
+ ep != nullptr;
ep = r->profile ()->next_filtered_endpoint (ep))
{
TAO_Base_Transport_Property desc (ep);
diff --git a/TAO/tao/Invocation_Retry_Params.cpp b/TAO/tao/Invocation_Retry_Params.cpp
index 48519b3ea0f..c900114d007 100644
--- a/TAO/tao/Invocation_Retry_Params.cpp
+++ b/TAO/tao/Invocation_Retry_Params.cpp
@@ -4,7 +4,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO::Invocation_Retry_Params::Invocation_Retry_Params (void)
+TAO::Invocation_Retry_Params::Invocation_Retry_Params ()
: forward_on_reply_closed_limit_ (0)
, init_retry_delay_ (0, 100000) // Set default to 0.1 seconds
{
diff --git a/TAO/tao/LF_CH_Event.cpp b/TAO/tao/LF_CH_Event.cpp
index 9c168b12f9c..d3ae6c39d35 100644
--- a/TAO/tao/LF_CH_Event.cpp
+++ b/TAO/tao/LF_CH_Event.cpp
@@ -6,14 +6,14 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_LF_CH_Event::TAO_LF_CH_Event (void)
+TAO_LF_CH_Event::TAO_LF_CH_Event ()
: TAO_LF_Event (),
prev_state_ (TAO_LF_Event::LFS_IDLE)
{
}
-TAO_LF_CH_Event::~TAO_LF_CH_Event (void)
+TAO_LF_CH_Event::~TAO_LF_CH_Event ()
{
}
@@ -39,7 +39,7 @@ TAO_LF_CH_Event::state_changed_i (LFS_STATE new_state)
if (TAO_debug_level > 9)
{
size_t id = 0;
- TAO_Connection_Handler *ch = 0;
+ TAO_Connection_Handler *ch = nullptr;
if ((ch = dynamic_cast<TAO_Connection_Handler *> (this))
&& ch->transport ())
{
@@ -109,7 +109,7 @@ TAO_LF_CH_Event::validate_state_change (LFS_STATE new_state)
}
bool
-TAO_LF_CH_Event::successful_i (void) const
+TAO_LF_CH_Event::successful_i () const
{
if (this->prev_state_ == TAO_LF_Event::LFS_CONNECTION_WAIT)
return this->state_ == TAO_LF_Event::LFS_SUCCESS;
@@ -118,7 +118,7 @@ TAO_LF_CH_Event::successful_i (void) const
}
bool
-TAO_LF_CH_Event::error_detected_i (void) const
+TAO_LF_CH_Event::error_detected_i () const
{
if (this->prev_state_ == TAO_LF_Event::LFS_CONNECTION_WAIT)
return this->state_ == TAO_LF_Event::LFS_CONNECTION_CLOSED;
@@ -137,7 +137,7 @@ TAO_LF_CH_Event::set_state (LFS_STATE new_state)
if (TAO_debug_level > 9)
{
size_t id = 0;
- TAO_Connection_Handler *ch = 0;
+ TAO_Connection_Handler *ch = nullptr;
if ((ch = dynamic_cast<TAO_Connection_Handler *> (this)) &&
ch->transport ())
{
@@ -150,7 +150,7 @@ TAO_LF_CH_Event::set_state (LFS_STATE new_state)
}
bool
-TAO_LF_CH_Event::is_state_final (void) const
+TAO_LF_CH_Event::is_state_final () const
{
return this->state_ == TAO_LF_Event::LFS_CONNECTION_CLOSED;
}
diff --git a/TAO/tao/LF_Connect_Strategy.cpp b/TAO/tao/LF_Connect_Strategy.cpp
index 8bc6dce0c6c..b59e184e042 100644
--- a/TAO/tao/LF_Connect_Strategy.cpp
+++ b/TAO/tao/LF_Connect_Strategy.cpp
@@ -17,7 +17,7 @@ TAO_LF_Connect_Strategy::TAO_LF_Connect_Strategy (TAO_ORB_Core *orb_core,
{
}
-TAO_LF_Connect_Strategy::~TAO_LF_Connect_Strategy (void)
+TAO_LF_Connect_Strategy::~TAO_LF_Connect_Strategy ()
{
}
@@ -25,7 +25,7 @@ void
TAO_LF_Connect_Strategy::synch_options (ACE_Time_Value *timeout,
ACE_Synch_Options &options)
{
- if (timeout != 0)
+ if (timeout != nullptr)
{
options.set (ACE_Synch_Options::USE_REACTOR, *timeout);
}
@@ -41,7 +41,7 @@ TAO_LF_Connect_Strategy::wait_i (TAO_LF_Event *ev,
TAO_Transport *transport,
ACE_Time_Value *max_wait_time)
{
- if (transport == 0)
+ if (transport == nullptr)
return -1;
TAO::Nested_Upcall_Guard guard(transport, this->no_upcall_);
diff --git a/TAO/tao/LF_Event.cpp b/TAO/tao/LF_Event.cpp
index 16139aeb985..d8cf240ce1c 100644
--- a/TAO/tao/LF_Event.cpp
+++ b/TAO/tao/LF_Event.cpp
@@ -10,13 +10,13 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_LF_Event::TAO_LF_Event (void)
+TAO_LF_Event::TAO_LF_Event ()
: state_ (TAO_LF_Event::LFS_IDLE)
- , follower_ (0)
+ , follower_ (nullptr)
{
}
-TAO_LF_Event::~TAO_LF_Event (void)
+TAO_LF_Event::~TAO_LF_Event ()
{
}
@@ -30,7 +30,7 @@ TAO_LF_Event::state_changed (LFS_STATE new_state, TAO_Leader_Follower &lf)
this->state_changed_i (new_state);
/// Sort of double-checked optimization..
- if (this->follower_ != 0)
+ if (this->follower_ != nullptr)
this->follower_->signal ();
}
}
diff --git a/TAO/tao/LF_Event_Binder.cpp b/TAO/tao/LF_Event_Binder.cpp
index 7a052e90f2a..1d916f80544 100644
--- a/TAO/tao/LF_Event_Binder.cpp
+++ b/TAO/tao/LF_Event_Binder.cpp
@@ -6,7 +6,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_LF_Event_Binder::~TAO_LF_Event_Binder (void)
+TAO_LF_Event_Binder::~TAO_LF_Event_Binder ()
{
this->event_->unbind (follower_);
}
diff --git a/TAO/tao/LF_Follower.cpp b/TAO/tao/LF_Follower.cpp
index b1bf0a45bff..9f57ef471d8 100644
--- a/TAO/tao/LF_Follower.cpp
+++ b/TAO/tao/LF_Follower.cpp
@@ -13,12 +13,12 @@ TAO_LF_Follower::TAO_LF_Follower (TAO_Leader_Follower &leader_follower)
{
}
-TAO_LF_Follower::~TAO_LF_Follower (void)
+TAO_LF_Follower::~TAO_LF_Follower ()
{
}
int
-TAO_LF_Follower::signal (void)
+TAO_LF_Follower::signal ()
{
// We *must* remove ourselves from the list of followers, otherwise
// we could get signaled twice: to wake up as a follower and as the
diff --git a/TAO/tao/LF_Follower_Auto_Adder.cpp b/TAO/tao/LF_Follower_Auto_Adder.cpp
index 69e26eb5caf..ec4d4ddd668 100644
--- a/TAO/tao/LF_Follower_Auto_Adder.cpp
+++ b/TAO/tao/LF_Follower_Auto_Adder.cpp
@@ -6,7 +6,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_LF_Follower_Auto_Adder::~TAO_LF_Follower_Auto_Adder (void)
+TAO_LF_Follower_Auto_Adder::~TAO_LF_Follower_Auto_Adder ()
{
this->leader_follower_.remove_follower (this->follower_);
}
diff --git a/TAO/tao/LF_Follower_Auto_Ptr.cpp b/TAO/tao/LF_Follower_Auto_Ptr.cpp
index 87aa0780e6c..6d3adc40080 100644
--- a/TAO/tao/LF_Follower_Auto_Ptr.cpp
+++ b/TAO/tao/LF_Follower_Auto_Ptr.cpp
@@ -7,7 +7,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_LF_Follower_Auto_Ptr::~TAO_LF_Follower_Auto_Ptr (void)
+TAO_LF_Follower_Auto_Ptr::~TAO_LF_Follower_Auto_Ptr ()
{
this->leader_follower_.release_follower (this->follower_);
}
diff --git a/TAO/tao/LF_Invocation_Event.cpp b/TAO/tao/LF_Invocation_Event.cpp
index 16964032c5b..7c627c4cdfb 100644
--- a/TAO/tao/LF_Invocation_Event.cpp
+++ b/TAO/tao/LF_Invocation_Event.cpp
@@ -3,12 +3,12 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_LF_Invocation_Event::TAO_LF_Invocation_Event (void)
+TAO_LF_Invocation_Event::TAO_LF_Invocation_Event ()
: TAO_LF_Event ()
{
}
-TAO_LF_Invocation_Event::~TAO_LF_Invocation_Event (void)
+TAO_LF_Invocation_Event::~TAO_LF_Invocation_Event ()
{
}
@@ -62,13 +62,13 @@ TAO_LF_Invocation_Event::state_changed_i (LFS_STATE new_state)
}
bool
-TAO_LF_Invocation_Event::successful_i (void) const
+TAO_LF_Invocation_Event::successful_i () const
{
return this->state_ == TAO_LF_Event::LFS_SUCCESS;
}
bool
-TAO_LF_Invocation_Event::error_detected_i (void) const
+TAO_LF_Invocation_Event::error_detected_i () const
{
return (this->state_ == TAO_LF_Event::LFS_FAILURE
|| this->state_ == TAO_LF_Event::LFS_TIMEOUT
@@ -76,7 +76,7 @@ TAO_LF_Invocation_Event::error_detected_i (void) const
}
bool
-TAO_LF_Invocation_Event::is_state_final (void) const
+TAO_LF_Invocation_Event::is_state_final () const
{
if (this->state_ == TAO_LF_Event::LFS_TIMEOUT ||
this->state_ == TAO_LF_Event::LFS_FAILURE)
diff --git a/TAO/tao/LF_Multi_Event.cpp b/TAO/tao/LF_Multi_Event.cpp
index 4d15cfa1e0e..244ea609a55 100644
--- a/TAO/tao/LF_Multi_Event.cpp
+++ b/TAO/tao/LF_Multi_Event.cpp
@@ -5,16 +5,16 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_LF_Multi_Event::TAO_LF_Multi_Event (void)
+TAO_LF_Multi_Event::TAO_LF_Multi_Event ()
: TAO_LF_Event (),
- events_ (0),
- winner_ (0)
+ events_ (nullptr),
+ winner_ (nullptr)
{
}
-TAO_LF_Multi_Event::~TAO_LF_Multi_Event (void)
+TAO_LF_Multi_Event::~TAO_LF_Multi_Event ()
{
- while (this->events_ != 0)
+ while (this->events_ != nullptr)
{
Event_Node *n = this->events_->next_;
delete this->events_;
@@ -30,7 +30,7 @@ TAO_LF_Multi_Event::bind (TAO_LF_Follower *follower)
return -1;
}
- for (Event_Node *n = this->events_; n != 0; n = n->next_)
+ for (Event_Node *n = this->events_; n != nullptr; n = n->next_)
if (n->ptr_->bind(follower) == -1)
{
return -1;
@@ -46,7 +46,7 @@ TAO_LF_Multi_Event::unbind (TAO_LF_Follower *follower)
return -1;
}
- for (Event_Node *n = this->events_; n != 0; n = n->next_)
+ for (Event_Node *n = this->events_; n != nullptr; n = n->next_)
if (n->ptr_->unbind (follower) == -1)
{
return -1;
@@ -58,7 +58,7 @@ TAO_LF_Multi_Event::unbind (TAO_LF_Follower *follower)
void
TAO_LF_Multi_Event::add_event (TAO_Connection_Handler *ev)
{
- Event_Node *node = 0;
+ Event_Node *node = nullptr;
ACE_NEW (node, Event_Node);
node->next_ = this->events_;
node->ptr_ = ev;
@@ -67,21 +67,21 @@ TAO_LF_Multi_Event::add_event (TAO_Connection_Handler *ev)
}
TAO_Connection_Handler*
-TAO_LF_Multi_Event::winner (void)
+TAO_LF_Multi_Event::winner ()
{
return this->winner_;
}
TAO_Transport *
-TAO_LF_Multi_Event::base_transport (void)
+TAO_LF_Multi_Event::base_transport ()
{
- return (this->events_ == 0) ? 0 : this->events_->ptr_->transport();
+ return (this->events_ == nullptr) ? nullptr : this->events_->ptr_->transport();
}
bool
-TAO_LF_Multi_Event::successful_i (void) const
+TAO_LF_Multi_Event::successful_i () const
{
- for (Event_Node *n = this->events_; n != 0; n = n->next_)
+ for (Event_Node *n = this->events_; n != nullptr; n = n->next_)
if (n->ptr_->successful_i())
{
this->winner_ = n->ptr_;
@@ -91,9 +91,9 @@ TAO_LF_Multi_Event::successful_i (void) const
}
bool
-TAO_LF_Multi_Event::error_detected_i (void) const
+TAO_LF_Multi_Event::error_detected_i () const
{
- for (Event_Node *n = this->events_; n != 0; n = n->next_)
+ for (Event_Node *n = this->events_; n != nullptr; n = n->next_)
{
if (!n->ptr_->error_detected_i ())
{
@@ -109,9 +109,9 @@ TAO_LF_Multi_Event::state_changed_i (LFS_STATE )
}
bool
-TAO_LF_Multi_Event::is_state_final (void) const
+TAO_LF_Multi_Event::is_state_final () const
{
- for (Event_Node *n = this->events_; n != 0; n = n->next_)
+ for (Event_Node *n = this->events_; n != nullptr; n = n->next_)
{
if (!n->ptr_->is_state_final ())
{
diff --git a/TAO/tao/LF_Strategy.cpp b/TAO/tao/LF_Strategy.cpp
index 327816a7a94..a1c4293458c 100644
--- a/TAO/tao/LF_Strategy.cpp
+++ b/TAO/tao/LF_Strategy.cpp
@@ -2,7 +2,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_LF_Strategy::~TAO_LF_Strategy (void)
+TAO_LF_Strategy::~TAO_LF_Strategy ()
{
}
diff --git a/TAO/tao/LF_Strategy_Complete.cpp b/TAO/tao/LF_Strategy_Complete.cpp
index 96628848401..1b7d4e4c60c 100644
--- a/TAO/tao/LF_Strategy_Complete.cpp
+++ b/TAO/tao/LF_Strategy_Complete.cpp
@@ -6,7 +6,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_LF_Strategy_Complete::~TAO_LF_Strategy_Complete (void)
+TAO_LF_Strategy_Complete::~TAO_LF_Strategy_Complete ()
{
}
diff --git a/TAO/tao/LRU_Connection_Purging_Strategy.cpp b/TAO/tao/LRU_Connection_Purging_Strategy.cpp
index 3ed8ef1a4e3..57482d1a29f 100644
--- a/TAO/tao/LRU_Connection_Purging_Strategy.cpp
+++ b/TAO/tao/LRU_Connection_Purging_Strategy.cpp
@@ -11,7 +11,7 @@ TAO_LRU_Connection_Purging_Strategy::TAO_LRU_Connection_Purging_Strategy (
}
-TAO_LRU_Connection_Purging_Strategy::~TAO_LRU_Connection_Purging_Strategy (void)
+TAO_LRU_Connection_Purging_Strategy::~TAO_LRU_Connection_Purging_Strategy ()
{
}
diff --git a/TAO/tao/Leader_Follower.cpp b/TAO/tao/Leader_Follower.cpp
index 62b3527edd8..7baf6687771 100644
--- a/TAO/tao/Leader_Follower.cpp
+++ b/TAO/tao/Leader_Follower.cpp
@@ -30,7 +30,7 @@ ACE_Event_Handler* TAO_Leader_Follower::Deferred_Event::handler () const
return this->eh_.handler ();
}
-TAO_Leader_Follower::~TAO_Leader_Follower (void)
+TAO_Leader_Follower::~TAO_Leader_Follower ()
{
while (!this->deferred_event_set_.is_empty ())
{
@@ -49,19 +49,19 @@ TAO_Leader_Follower::~TAO_Leader_Follower (void)
else
this->orb_core_->resource_factory ()->reclaim_reactor (this->reactor_);
- this->reactor_ = 0;
+ this->reactor_ = nullptr;
}
TAO_LF_Follower *
-TAO_Leader_Follower::allocate_follower (void)
+TAO_Leader_Follower::allocate_follower ()
{
if (!this->follower_free_list_.is_empty ())
return this->follower_free_list_.pop_front ();
- TAO_LF_Follower* ptr = 0;
+ TAO_LF_Follower* ptr = nullptr;
ACE_NEW_RETURN (ptr,
TAO_LF_Follower (*this),
- 0);
+ nullptr);
return ptr;
}
@@ -72,7 +72,7 @@ TAO_Leader_Follower::release_follower (TAO_LF_Follower *follower)
}
int
-TAO_Leader_Follower::elect_new_leader_i (void)
+TAO_Leader_Follower::elect_new_leader_i ()
{
TAO_LF_Follower* const follower = this->follower_set_.head ();
@@ -97,7 +97,7 @@ TAO_Leader_Follower::wait_for_client_leader_to_complete (ACE_Time_Value *max_wai
while (this->client_thread_is_leader_ && result != -1)
{
- if (max_wait_time == 0)
+ if (max_wait_time == nullptr)
{
if (this->event_loop_threads_condition_.wait () == -1)
{
@@ -134,12 +134,12 @@ TAO_Leader_Follower::wait_for_client_leader_to_complete (ACE_Time_Value *max_wai
}
ACE_Reactor *
-TAO_Leader_Follower::reactor (void)
+TAO_Leader_Follower::reactor ()
{
- if (this->reactor_ == 0)
+ if (this->reactor_ == nullptr)
{
- ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock (), 0);
- if (this->reactor_ == 0)
+ ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock (), nullptr);
+ if (this->reactor_ == nullptr)
{
// use GUI reactor factory if available
if ( this->orb_core_->gui_resource_factory () )
@@ -154,7 +154,7 @@ TAO_Leader_Follower::reactor (void)
}
void
-TAO_Leader_Follower::set_client_thread (void)
+TAO_Leader_Follower::set_client_thread ()
{
// If we were a leader thread or an event loop thread, give up
// leadership.
@@ -178,7 +178,7 @@ TAO_Leader_Follower::set_client_thread (void)
}
void
-TAO_Leader_Follower::reset_client_thread (void)
+TAO_Leader_Follower::reset_client_thread ()
{
// If we were a leader thread or an event loop thread, take back
// leadership.
@@ -211,7 +211,7 @@ TAO_Leader_Follower::defer_event (ACE_Event_Handler* eh)
ACE_TEXT ("TAO (%P|%t) - TAO_Leader_Follower::defer_event, ")
ACE_TEXT ("deferring event handler[%d]\n"),
eh->get_handle ()));
- Deferred_Event* ptr = 0;
+ Deferred_Event* ptr = nullptr;
ACE_NEW_RETURN (ptr,
Deferred_Event (eh),
-1);
@@ -265,7 +265,7 @@ TAO_Leader_Follower::wait_for_event (TAO_LF_Event *event,
// in PathFinder
size_t t_id = 0;
- if (TAO_debug_level && transport != 0)
+ if (TAO_debug_level && transport != nullptr)
{
t_id = transport->id ();
}
@@ -283,7 +283,7 @@ TAO_Leader_Follower::wait_for_event (TAO_LF_Event *event,
// leader loop below can end, other than the event being complete
while (event->keep_waiting_i ()
&& !(result == 0 &&
- max_wait_time != 0 &&
+ max_wait_time != nullptr &&
*max_wait_time == ACE_Time_Value::zero)
&& result != -1)
{ // Scope #2: threads here alternate between being leader/followers
@@ -296,7 +296,7 @@ TAO_Leader_Follower::wait_for_event (TAO_LF_Event *event,
// Grab a follower:
TAO_LF_Follower_Auto_Ptr follower (*this);
- if (follower.get () == 0)
+ if (follower.get () == nullptr)
return -1;
if (TAO_debug_level >= 5)
@@ -338,7 +338,7 @@ TAO_Leader_Follower::wait_for_event (TAO_LF_Event *event,
// lost.
TAO_LF_Follower_Auto_Adder auto_adder (*this, follower);
- if (max_wait_time == 0)
+ if (max_wait_time == nullptr)
{
if (follower->wait (max_wait_time) == -1)
{
@@ -506,7 +506,7 @@ TAO_Leader_Follower::wait_for_event (TAO_LF_Event *event,
// Did we timeout? If so, stop running the loop.
if (result == 0 &&
- max_wait_time != 0 &&
+ max_wait_time != nullptr &&
*max_wait_time == ACE_Time_Value::zero)
break;
@@ -600,7 +600,7 @@ TAO_Leader_Follower::wait_for_event (TAO_LF_Event *event,
-1);
// Return an error if there was a problem receiving the reply...
- if (max_wait_time != 0)
+ if (max_wait_time != nullptr)
{
if (!event->successful_i ()
&& *max_wait_time == ACE_Time_Value::zero)
diff --git a/TAO/tao/Leader_Follower_Flushing_Strategy.cpp b/TAO/tao/Leader_Follower_Flushing_Strategy.cpp
index 0c2763b1a84..ed8f4654227 100644
--- a/TAO/tao/Leader_Follower_Flushing_Strategy.cpp
+++ b/TAO/tao/Leader_Follower_Flushing_Strategy.cpp
@@ -48,7 +48,7 @@ TAO_Leader_Follower_Flushing_Strategy::flush_transport (
// transport we're coping with here and this thread will block.
// Instead we do run for a small amount of time and then recheck
// the queue.
- if (max_wait_time == 0)
+ if (max_wait_time == nullptr)
{
ACE_Errno_Guard eguard (errno);
@@ -61,7 +61,7 @@ TAO_Leader_Follower_Flushing_Strategy::flush_transport (
orb_core->orb ()->perform_work (max_wait_time);
}
- if (max_wait_time != 0) {
+ if (max_wait_time != nullptr) {
if (*max_wait_time <= ACE_Time_Value::zero) {
errno = ETIME;
return -1;
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.cpp b/TAO/tao/LocalObject.cpp
index 9ddb386e204..0d806c12689 100644
--- a/TAO/tao/LocalObject.cpp
+++ b/TAO/tao/LocalObject.cpp
@@ -13,7 +13,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-CORBA::LocalObject::~LocalObject (void)
+CORBA::LocalObject::~LocalObject ()
{
}
@@ -50,7 +50,7 @@ CORBA::LocalObject::_is_equivalent (CORBA::Object_ptr other_obj)
TAO::ObjectKey *
-CORBA::LocalObject::_key (void)
+CORBA::LocalObject::_key ()
{
if (TAO_debug_level > 0)
TAOLIB_ERROR ((LM_ERROR,
@@ -66,14 +66,14 @@ CORBA::LocalObject::_key (void)
// the latter case, return FALSE.
CORBA::Boolean
-CORBA::LocalObject::_non_existent (void)
+CORBA::LocalObject::_non_existent ()
{
// Always return false.
return false;
}
char *
-CORBA::LocalObject::_repository_id (void)
+CORBA::LocalObject::_repository_id ()
{
if (TAO_debug_level > 0)
TAOLIB_ERROR ((LM_ERROR,
@@ -126,7 +126,7 @@ CORBA::LocalObject::_request (const char *)
}
CORBA::Object_ptr
-CORBA::LocalObject::_get_component (void)
+CORBA::LocalObject::_get_component ()
{
if (TAO_debug_level > 0)
TAOLIB_ERROR ((LM_ERROR,
@@ -136,7 +136,7 @@ CORBA::LocalObject::_get_component (void)
}
CORBA::InterfaceDef_ptr
-CORBA::LocalObject::_get_interface (void)
+CORBA::LocalObject::_get_interface ()
{
if (TAO_debug_level > 0)
TAOLIB_ERROR ((LM_ERROR,
@@ -204,7 +204,7 @@ CORBA::LocalObject::_validate_connection (CORBA::PolicyList_out)
#endif /* TAO_HAS_CORBA_MESSAGING == 1 */
CORBA::ORB_ptr
-CORBA::LocalObject::_get_orb (void)
+CORBA::LocalObject::_get_orb ()
{
if (TAO_debug_level > 0)
TAOLIB_ERROR ((LM_ERROR,
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/LocateRequest_Invocation.cpp b/TAO/tao/LocateRequest_Invocation.cpp
index deff77755ff..55fba329255 100644
--- a/TAO/tao/LocateRequest_Invocation.cpp
+++ b/TAO/tao/LocateRequest_Invocation.cpp
@@ -34,7 +34,7 @@ namespace TAO
public:
First_Request_Guard (TAO_Transport &transport);
- ~First_Request_Guard (void);
+ ~First_Request_Guard ();
private:
/// The transport that we guard.
@@ -50,7 +50,7 @@ namespace TAO
this->is_first_ = this->transport_.first_request ();
}
- First_Request_Guard::~First_Request_Guard (void)
+ First_Request_Guard::~First_Request_Guard ()
{
this->transport_.first_request_sent (this->is_first_);
}
@@ -71,7 +71,7 @@ namespace TAO
{
TAO::ORB_Countdown_Time countdown (max_wait_time);
- TAO_Synch_Reply_Dispatcher *rd_p = 0;
+ TAO_Synch_Reply_Dispatcher *rd_p = nullptr;
ACE_NEW_NORETURN (rd_p, TAO_Synch_Reply_Dispatcher (this->resolver_.stub ()->orb_core (),
this->details_.reply_service_info ()));
if (!rd_p)
@@ -148,7 +148,7 @@ namespace TAO
TAO_InputCDR &cdr = rd.reply_cdr ();
// Set the translators
- this->resolver_.transport ()->assign_translators (&cdr, 0);
+ this->resolver_.transport ()->assign_translators (&cdr, nullptr);
switch (rd.locate_reply_status ())
{
diff --git a/TAO/tao/LocateRequest_Invocation_Adapter.cpp b/TAO/tao/LocateRequest_Invocation_Adapter.cpp
index 531dba39b28..e7920ac5439 100644
--- a/TAO/tao/LocateRequest_Invocation_Adapter.cpp
+++ b/TAO/tao/LocateRequest_Invocation_Adapter.cpp
@@ -18,19 +18,19 @@ namespace TAO
LocateRequest_Invocation_Adapter::LocateRequest_Invocation_Adapter (
CORBA::Object_ptr target)
: target_ (target)
- , list_ (0)
+ , list_ (nullptr)
{
}
void
- LocateRequest_Invocation_Adapter::invoke (void)
+ LocateRequest_Invocation_Adapter::invoke ()
{
CORBA::Object_var effective_target =
CORBA::Object::_duplicate (this->target_);
TAO_Stub * const stub =
this->target_->_stubobj ();
- if (stub == 0)
+ if (stub == nullptr)
throw ::CORBA::INTERNAL (
CORBA::SystemException::_tao_minor_code (
0,
@@ -45,7 +45,7 @@ namespace TAO
ACE_Service_Config_Guard scg (stub->orb_core ()->configuration ());
ACE_Time_Value tmp_wait_time;
- ACE_Time_Value *max_wait_time = 0;
+ ACE_Time_Value *max_wait_time = nullptr;
if (this->get_timeout (tmp_wait_time))
max_wait_time = &tmp_wait_time;
@@ -70,7 +70,7 @@ namespace TAO
// Dummy operation details that is used to instantiate the
// LocateRequest class.
- TAO_Operation_Details op (0, 0);
+ TAO_Operation_Details op (nullptr, 0);
op.request_id (resolver.transport ()->tms ()->request_id ());
TAO::LocateRequest_Invocation synch (this->target_, resolver, op);
@@ -101,7 +101,7 @@ namespace TAO
}
CORBA::PolicyList *
- LocateRequest_Invocation_Adapter::get_inconsistent_policies (void)
+ LocateRequest_Invocation_Adapter::get_inconsistent_policies ()
{
return this->list_._retn ();
}
@@ -125,7 +125,7 @@ namespace TAO
{
// The object pointer has to be changed to a TAO_Stub pointer
// in order to obtain the profiles.
- TAO_Stub *stubobj = 0;
+ TAO_Stub *stubobj = nullptr;
bool nil_forward_ref = false;
if (CORBA::is_nil (effective_target.in ()))
@@ -146,7 +146,7 @@ namespace TAO
0),
CORBA::COMPLETED_NO);
- if (stubobj == 0)
+ if (stubobj == nullptr)
throw ::CORBA::INTERNAL (
CORBA::SystemException::_tao_minor_code (
TAO_INVOCATION_LOCATION_FORWARD_MINOR_CODE,
@@ -156,7 +156,7 @@ namespace TAO
// Reset the profile in the stubs
stub->add_forward_profiles (stubobj->base_profiles (), permanent_forward);
- if (stub->next_profile () == 0)
+ if (stub->next_profile () == nullptr)
throw ::CORBA::TRANSIENT (
CORBA::SystemException::_tao_minor_code (
TAO_INVOCATION_LOCATION_FORWARD_MINOR_CODE,
diff --git a/TAO/tao/MCAST_Parser.cpp b/TAO/tao/MCAST_Parser.cpp
index 5eda8d95184..101a9c54238 100644
--- a/TAO/tao/MCAST_Parser.cpp
+++ b/TAO/tao/MCAST_Parser.cpp
@@ -21,7 +21,7 @@ static const char mcast_prefix[] = "mcast:";
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_MCAST_Parser::~TAO_MCAST_Parser (void)
+TAO_MCAST_Parser::~TAO_MCAST_Parser ()
{
}
@@ -247,13 +247,13 @@ TAO_MCAST_Parser::multicast_query (char* & buf,
result));
// Wait for response until timeout.
ACE_Time_Value tv (
- timeout == 0
+ timeout == nullptr
? ACE_Time_Value (TAO_DEFAULT_SERVICE_RESOLUTION_TIMEOUT)
: *timeout);
// Accept reply connection from server.
if (acceptor.accept (stream,
- 0,
+ nullptr,
&tv) == -1)
{
if (TAO_debug_level > 0)
@@ -293,7 +293,7 @@ TAO_MCAST_Parser::multicast_query (char* & buf,
if (ior_len >= TAO_DEFAULT_IOR_SIZE)
{
buf = CORBA::string_alloc (ior_len);
- if (buf == 0)
+ if (buf == nullptr)
{
if (TAO_debug_level > 0)
{
diff --git a/TAO/tao/MMAP_Allocator.cpp b/TAO/tao/MMAP_Allocator.cpp
index aca4124f7b1..04453f7cd8d 100644
--- a/TAO/tao/MMAP_Allocator.cpp
+++ b/TAO/tao/MMAP_Allocator.cpp
@@ -54,20 +54,20 @@ namespace
// read(2)) for the open()ed /dev/zero device. Reading through the
// /dev/zero file descriptor simply returns zero, as /dev/zero was
// designed to do. So unfortunate. :)
-TAO_MMAP_Allocator::TAO_MMAP_Allocator (void)
- : TAO_MMAP_Allocator_Base ((char const *) 0 /* pool name */,
- 0, // No need to explicitly name the lock.
+TAO_MMAP_Allocator::TAO_MMAP_Allocator ()
+ : TAO_MMAP_Allocator_Base ((char const *) nullptr /* pool name */,
+ nullptr, // No need to explicitly name the lock.
&the_pool_options)
{
}
-TAO_MMAP_Allocator::~TAO_MMAP_Allocator (void)
+TAO_MMAP_Allocator::~TAO_MMAP_Allocator ()
{
}
// @@ Should be const but underlying allocator methods are not!
ACE_HANDLE
-TAO_MMAP_Allocator::handle (void)
+TAO_MMAP_Allocator::handle ()
{
return this->alloc ().memory_pool ().mmap ().handle ();
}
diff --git a/TAO/tao/MMAP_Allocator.h b/TAO/tao/MMAP_Allocator.h
index 07c5aa64c11..2967593191a 100644
--- a/TAO/tao/MMAP_Allocator.h
+++ b/TAO/tao/MMAP_Allocator.h
@@ -44,7 +44,6 @@ class TAO_MMAP_Allocator
: public TAO_MMAP_Allocator_Base
{
public:
-
/// Constructor
TAO_MMAP_Allocator (void);
@@ -59,11 +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/MM_Sequence_Iterator_T.h b/TAO/tao/MM_Sequence_Iterator_T.h
deleted file mode 100644
index f71cd34f8fb..00000000000
--- a/TAO/tao/MM_Sequence_Iterator_T.h
+++ /dev/null
@@ -1,957 +0,0 @@
-#ifndef mm_sequence_iterator_h
-#define mm_sequence_iterator_h
-
-/**
- * @file
- *
- * @brief Implement the iterator for CORBA sequences that need
- * memory management.
- *
- * There are some CORBA sequences that need to manage memory (e.g.,
- * string sequences). Iterators for these classes also need to
- * manage memory and therefore do not use the iterators defined
- * for the generic sequences.
- *
- * Essentially, only the iterators operators that reference and return
- * elements (e.g.,operator*, operator[]) need to be overridden from the
- * behavior provided by the generic sequence iterators. Template
- * specialization code is appropriate here but I couldn't figure out how
- * to make the compiler happy.
- *
- * In lieu of template specialization code separate iterators exist
- * for sequences that manage memory. Here are those iterators.
- *
- * @author Joe Hoffert
- */
-
-#if defined TAO_HAS_SEQUENCE_ITERATORS && TAO_HAS_SEQUENCE_ITERATORS == 1
-
-namespace TAO
-{
-
-// Forward declare the iterators
-template<typename T>
-class MM_Sequence_Iterator;
-
-template<typename T>
-class Const_MM_Sequence_Iterator;
-
-template<typename T>
-class MM_Sequence_Reverse_Iterator;
-
-template<typename T>
-class Const_MM_Sequence_Reverse_Iterator;
-
-
-/**
- * @class MM_Sequence_Iterator
- * @brief Implements a random access iterator for generic sequence type
- * classes that need to manage memory. MM stands for memory managed.
- */
-template <typename SEQUENCE_T>
- class MM_Sequence_Iterator
-{
- friend class Const_MM_Sequence_Iterator<SEQUENCE_T>;
-
-public:
- // = Necessary traits
- typedef std::random_access_iterator_tag iterator_category;
- typedef typename SEQUENCE_T::value_type value_type;
- typedef typename SEQUENCE_T::value_type *pointer;
- typedef typename SEQUENCE_T::value_type &reference;
- typedef typename SEQUENCE_T::element_type element_type;
- typedef typename SEQUENCE_T::const_element_type const_element_type;
- typedef typename SEQUENCE_T::allocation_traits allocation_traits;
- typedef typename SEQUENCE_T::element_traits element_traits;
- typedef typename SEQUENCE_T::implementation_type implementation_type;
- typedef CORBA::Long difference_type;
-
- /// Construct a MM_Sequence_Iterator at position pos.
- MM_Sequence_Iterator (implementation_type *sequence,
- size_t pos = 0)
- : sequence_ (sequence),
- pos_ (pos)
- {
- }
-
- /// Copy constructor
- MM_Sequence_Iterator (MM_Sequence_Iterator<SEQUENCE_T> const & rhs)
- : sequence_ (rhs.sequence_),
- pos_ (rhs.pos_)
- {
- }
-
- /// Assignment operator
- MM_Sequence_Iterator & operator= (MM_Sequence_Iterator<SEQUENCE_T> const & rhs)
- {
- MM_Sequence_Iterator tmp(rhs);
- swap (tmp);
- return * this;
- }
-
- /// swaps all members
- void swap(MM_Sequence_Iterator<SEQUENCE_T> & rhs)
- throw()
- {
- std::swap (sequence_, rhs.sequence_);
- std::swap (this->pos_, rhs.pos_);
- }
-
- /// typecast operator to Const_MM_Sequence_Iterator
- operator Const_MM_Sequence_Iterator<SEQUENCE_T> ()
- {
- return Const_MM_Sequence_Iterator<SEQUENCE_T> (*this);
- }
-
- /// Dereference operator returns a reference to the item contained
- /// at the current position
- element_type operator* (void)
- {
- // Access the underlying element in the sequence.
- return element_type ((*(this->sequence_))[this->pos_],
- this->sequence_->release ());
- }
-
- /// Returns a const reference to the item contained at the current position
- const_element_type operator* (void) const
- {
- // Access the underlying element in the sequence.
- return const_element_type ((*(this->sequence_))[this->pos_],
- this->sequence_->release ());
- }
-
- /// Preincrement operator
- MM_Sequence_Iterator<SEQUENCE_T> &operator++ (void)
- {
- // Increment the position.
- // We also need to check if we're now past the end.
- ++this->pos_;
- return *this;
- }
-
- /// Postincrement operator
- MM_Sequence_Iterator<SEQUENCE_T> operator++ (int)
- {
- // Create a temporary to return so that it's not modified.
- MM_Sequence_Iterator<SEQUENCE_T> temp_iter (this->sequence_, this->pos_);
- // Increment the position.
- // We also need to check if we're now past the end.
- ++this->pos_;
- return temp_iter;
- }
-
- /// Predecrement operator
- MM_Sequence_Iterator<SEQUENCE_T> &operator-- (void)
- {
- --this->pos_;
- return *this;
- }
-
- /// Postdecrement operator
- MM_Sequence_Iterator<SEQUENCE_T> operator-- (int)
- {
- // Create a temporary to return so that it's not modified.
- MM_Sequence_Iterator<SEQUENCE_T> temp_iter (this->sequence_, this->pos_);
- --this->pos_;
- return temp_iter;
- }
-
- /// Iterator addition
- MM_Sequence_Iterator<SEQUENCE_T> &operator+= (difference_type n)
- {
- // Move ahead n elements.
- this->pos_ += n;
- return *this;
- }
-
- /// Iterator addition
- MM_Sequence_Iterator<SEQUENCE_T> operator+ (difference_type n)
- {
- // Create a temporary to return and move it ahead n elements.
- return MM_Sequence_Iterator<SEQUENCE_T> (this->sequence_, this->pos_ + n);
- }
-
- /// Iterator subtraction
- MM_Sequence_Iterator<SEQUENCE_T> &operator-= (difference_type n)
- {
- // Move back n elements.
- this->pos_ -= n;
- return *this;
- }
-
- /// Iterator subtraction
- MM_Sequence_Iterator<SEQUENCE_T> operator- (difference_type n)
- {
- // Create a temporary to return and move it back n elements.
- return MM_Sequence_Iterator<SEQUENCE_T> (this->sequence_, this->pos_ - n);
- }
-
- /// Difference
- difference_type operator- (const MM_Sequence_Iterator<SEQUENCE_T> & rhs)
- {
- // I think order is important here (i.e., this before rhs).
- return this->pos_ - rhs.pos_;
- }
-
- /// Difference
- difference_type operator- (const Const_MM_Sequence_Iterator<SEQUENCE_T> & rhs)
- {
- // I think order is important here (i.e., this before rhs).
- return this->pos_ - rhs.pos_;
- }
-
- /// Element operator/assignment
- element_type operator[] (difference_type n)
- {
- // Return the element at position pos_ + n
- return element_type ((*(this->sequence_))[this->pos_ + n],
- this->sequence_->release ());
- }
-
- /// Element operator/assignment
- const_element_type operator[] (difference_type n) const
- {
- // Return the element at position pos_ + n
- return const_element_type ((*(this->sequence_))[this->pos_ + n],
- this->sequence_->release ());
- }
-
- /// Less than
- bool operator< (const MM_Sequence_Iterator<SEQUENCE_T> & rhs)
- {
- // Return if this iterator is less than the passed in iterator.
- return this->pos_ < rhs.pos_;
- }
-
- /// Less than
- bool operator< (const Const_MM_Sequence_Iterator<SEQUENCE_T> & rhs)
- {
- // Return if this iterator is less than the passed in iterator.
- return this->pos_ < rhs.pos_;
- }
-
-
- /// Equality operator
- bool operator== (const MM_Sequence_Iterator<SEQUENCE_T> &rhs) const
- {
- // Compare all the data members for equality.
- return this->sequence_ == rhs.sequence_
- && this->pos_ == rhs.pos_;
- }
-
- /// Nonequality operator
- bool operator!= (const MM_Sequence_Iterator<SEQUENCE_T> &rhs) const
- {
- return !(*this == rhs);
- }
-
-private:
- /// the sequence with which we are dealing
- implementation_type *sequence_;
-
- /// Our current position in the sequence.
- mutable difference_type pos_;
-};
-
-
-/// Iterator addition with the difference_type being the first argument.
-template<typename SEQUENCE_T>
- MM_Sequence_Iterator<SEQUENCE_T>
- operator+ (typename MM_Sequence_Iterator<SEQUENCE_T>::difference_type n,
- const MM_Sequence_Iterator<SEQUENCE_T> & iter)
- {
- // Create an iter and move it ahead n elements.
- return MM_Sequence_Iterator<SEQUENCE_T> (iter.sequence_, iter.pos_ + n);
- }
-
-/// Iterator subtraction with the difference_type being the first argument.
-template<typename SEQUENCE_T>
- MM_Sequence_Iterator<SEQUENCE_T> operator-
- (typename MM_Sequence_Iterator<SEQUENCE_T>::difference_type n,
- MM_Sequence_Iterator<SEQUENCE_T> iter)
- {
- // Create an iter and move it back n elements.
- return MM_Sequence_Iterator<SEQUENCE_T> (iter.sequence_, iter.pos_ - n);
- }
-
-
-/**
- * @class Const_MM_Sequence_Iterator
- * @brief Implements a constant random access iterator for generic sequence
- * type classes that need to manage memory. MM stands for memory
- * managed.
- *
- * Note: Having a const Iterator does not guarantee that the current
- * *position* that it points to will not change, it only guarantees that
- * you cannot change the underlying array!
- */
-template <typename SEQUENCE_T>
-class Const_MM_Sequence_Iterator
-{
- friend class MM_Sequence_Iterator<SEQUENCE_T>;
-
-public:
- // = Necessary traits
- typedef std::random_access_iterator_tag iterator_category;
- typedef typename SEQUENCE_T::value_type value_type;
- typedef typename SEQUENCE_T::value_type *pointer;
- typedef typename SEQUENCE_T::value_type &reference;
- typedef typename SEQUENCE_T::const_element_type const_element_type;
- typedef typename SEQUENCE_T::allocation_traits allocation_traits;
- typedef typename SEQUENCE_T::element_traits element_traits;
- typedef typename SEQUENCE_T::implementation_type implementation_type;
- typedef int difference_type;
-
- /// Construct a Const_MM_Sequence_Iterator at position pos from
- /// a const sequence.
- explicit Const_MM_Sequence_Iterator (const implementation_type *sequence,
- size_t pos = 0)
- : sequence_ (sequence),
- pos_ (pos)
- {
- }
-
- virtual ~Const_MM_Sequence_Iterator ()
- {
- }
-
- /// Copy constructor
- Const_MM_Sequence_Iterator (
- Const_MM_Sequence_Iterator<SEQUENCE_T> const & rhs)
- : sequence_ (rhs.sequence_),
- pos_ (rhs.pos_)
- {
- }
-
- /// Copy constructor initializing by a MM_Sequence_Iterator
- explicit Const_MM_Sequence_Iterator (
- MM_Sequence_Iterator<SEQUENCE_T> const & rhs)
- : sequence_ (rhs.sequence_),
- pos_ (rhs.pos_)
- {
- }
-
- /// Assignment operator
- Const_MM_Sequence_Iterator & operator= (
- Const_MM_Sequence_Iterator<SEQUENCE_T> const & rhs)
- {
- Const_MM_Sequence_Iterator tmp(rhs);
- swap (tmp);
- return * this;
- }
-
- /// swaps all members
- void swap(Const_MM_Sequence_Iterator<SEQUENCE_T> & rhs)
- throw()
- {
- std::swap (sequence_, rhs.sequence_);
- std::swap (this->pos_, rhs.pos_);
- }
-
- /// Dereference operator returns a reference to the item contained
- /// at the current position
- const_element_type operator* (void) const
- {
- // Access the underlying element in the sequence.
- return const_element_type ((*(this->sequence_))[this->pos_],
- this->sequence_->release ());
- }
-
- /// Preincrement operator
- const Const_MM_Sequence_Iterator<SEQUENCE_T> &operator++ (void) const
- {
- // Increment the position.
- ++this->pos_;
- return * this;
- }
-
- /// Postincrement operator
- Const_MM_Sequence_Iterator<SEQUENCE_T> operator++ (int) const
- {
- // Create a temporary to return so that it's not modified.
- Const_MM_Sequence_Iterator<SEQUENCE_T> temp_iter (this->sequence_, this->pos_);
- // Increment the position.
- // We also need to check if we're now past the end.
- ++this->pos_;
- return temp_iter;
- }
-
- /// Predecrement operator
- const Const_MM_Sequence_Iterator<SEQUENCE_T> &operator-- (void) const
- {
- --this->pos_;
- return * this;
- }
-
- /// Postdecrement operator
- Const_MM_Sequence_Iterator<SEQUENCE_T> operator-- (int) const
- {
- // Create a temporary to return so that it's not modified.
- Const_MM_Sequence_Iterator<SEQUENCE_T> temp_iter (this->sequence_, this->pos_);
- --this->pos_;
- return temp_iter;
- }
-
- /// Iterator addition
- const Const_MM_Sequence_Iterator<SEQUENCE_T> &operator+= (difference_type n) const
- {
- // Move ahead n elements.
- this->pos_ += n;
- return * this;
- }
-
- /// Iterator addition
- Const_MM_Sequence_Iterator<SEQUENCE_T> operator+ (difference_type n) const
- {
- // Create a temporary to return and move it ahead n elements.
- return Const_MM_Sequence_Iterator<SEQUENCE_T> (this->sequence_, this->pos_ + n);
- }
-
- /// Iterator subtraction
- const Const_MM_Sequence_Iterator<SEQUENCE_T> &operator-= (difference_type n) const
- {
- // Move back n elements.
- this->pos_ -= n;
- return * this;
- }
-
- /// Iterator subtraction
- Const_MM_Sequence_Iterator<SEQUENCE_T> operator- (difference_type n) const
- {
- // Create a temporary to return and move it back n elements.
- return Const_MM_Sequence_Iterator<SEQUENCE_T> (this->sequence_, this->pos_ - n);
- }
-
- /// Difference
- difference_type operator- (const Const_MM_Sequence_Iterator<SEQUENCE_T> & rhs) const
- {
- // I think the order is important here (i.e., this before rhs).
- return this->pos_ - rhs.pos_;
- }
-
- /// Element operator
- const_element_type operator[] (difference_type n) const
- {
- // Return the element at position pos_ + n
- return const_element_type ((*(this->sequence_))[this->pos_ + n],
- this->sequence_->release ());
- }
-
- /// Less than
- virtual bool operator< (const Const_MM_Sequence_Iterator<SEQUENCE_T> & rhs) const
- {
- // Return if this iterator is less than the passed in iterator.
- return this->pos_ < rhs.pos_;
- }
-
- /// Equality operator
- bool operator== (const Const_MM_Sequence_Iterator<SEQUENCE_T> &rhs) const
- {
- // Compare all the data members for equality.
- return this->sequence_ == rhs.sequence_
- && this->pos_ == rhs.pos_;
- }
-
- /// Nonequality operator
- bool operator!= (const Const_MM_Sequence_Iterator<SEQUENCE_T> &rhs) const
- {
- return !(*this == rhs);
- }
-
-private:
- /// the sequence with which we are dealing
- const implementation_type *sequence_;
-
- /// Our current position in the sequence.
- mutable difference_type pos_;
-};
-
-/// Iterator addition with the difference_type being the first argument.
-template<typename SEQUENCE_T>
- Const_MM_Sequence_Iterator<SEQUENCE_T> operator+
- (typename MM_Sequence_Iterator<SEQUENCE_T>::difference_type n,
- Const_MM_Sequence_Iterator<SEQUENCE_T> iter)
- {
- // Create an iter and move it ahead n elements.
- return Const_MM_Sequence_Iterator<SEQUENCE_T> (iter.sequence_, iter.pos_ + n);
- }
-
-/// Iterator subtraction with the difference_type being the first argument.
-template<typename SEQUENCE_T>
- Const_MM_Sequence_Iterator<SEQUENCE_T> operator-
- (typename MM_Sequence_Iterator<SEQUENCE_T>::difference_type n,
- Const_MM_Sequence_Iterator<SEQUENCE_T> iter)
- {
- // Create an iter and move it back n elements.
- return Const_MM_Sequence_Iterator<SEQUENCE_T> (iter.sequence_, iter.pos_ - n);
- }
-
-
-/**
- * @class MM_Sequence_Reverse_Iterator
- * @brief Implements a reverse random access iterator for generic sequence type
- * classes that need to manage memory. MM stands for memory managed.
- */
-template <typename SEQUENCE_T>
-class MM_Sequence_Reverse_Iterator
-{
- friend class Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T>;
-
-public:
- // = Necessary traits
- typedef std::random_access_iterator_tag iterator_category;
- typedef typename SEQUENCE_T::value_type value_type;
- typedef typename SEQUENCE_T::value_type *pointer;
- typedef typename SEQUENCE_T::value_type &reference;
- typedef typename SEQUENCE_T::element_type element_type;
- typedef typename SEQUENCE_T::const_element_type const_element_type;
- typedef typename SEQUENCE_T::allocation_traits allocation_traits;
- typedef typename SEQUENCE_T::element_traits element_traits;
- typedef typename SEQUENCE_T::implementation_type implementation_type;
- typedef int difference_type;
-
- /// Construct a MM_Sequence_Reverse_Iterator at position pos
- MM_Sequence_Reverse_Iterator (implementation_type *sequence,
- size_t pos)
- : sequence_ (sequence),
- pos_ (pos)
- {
- }
-
- /// Copy constructor
- MM_Sequence_Reverse_Iterator (
- MM_Sequence_Reverse_Iterator<SEQUENCE_T> const & rhs)
- : sequence_ (rhs.sequence_),
- pos_ (rhs.pos_)
- {
- }
-
- /// Assignment operator
- MM_Sequence_Reverse_Iterator & operator= (
- MM_Sequence_Reverse_Iterator<SEQUENCE_T> const & rhs)
- {
- MM_Sequence_Reverse_Iterator tmp(rhs);
- swap (tmp);
- return * this;
- }
-
- /// swaps all members
- void swap(MM_Sequence_Reverse_Iterator<SEQUENCE_T> & rhs)
- throw()
- {
- std::swap (sequence_, rhs.sequence_);
- std::swap (this->pos_, rhs.pos_);
- }
-
- /// Dereference operator returns a reference to the item contained
- /// at the current position
- element_type operator* (void)
- {
- // Access the underlying element in the sequence.
- return element_type ((*(this->sequence_))[this->pos_],
- this->sequence_->release ());
- }
-
- /// Returns a const reference to the item contained at the current position
- const_element_type operator* (void) const
- {
- // Access the underlying element in the sequence.
- return const_element_type ((*(this->sequence_))[this->pos_],
- this->sequence_->release ());
- }
-
- /// Preincrement operator
- MM_Sequence_Reverse_Iterator<SEQUENCE_T> &operator++ (void)
- {
- // Decrement the position for reverse iterators.
- // We also need to check if we're now before the start.
- --this->pos_;
- return *this;
- }
-
- /// Postincrement operator
- MM_Sequence_Reverse_Iterator<SEQUENCE_T> operator++ (int)
- {
- // Create a temporary to return so that it's not modified.
- MM_Sequence_Reverse_Iterator<SEQUENCE_T> temp_iter (this->sequence_, this->pos_);
- // Decrement the position for reverse iterators.
- // We also need to check if we're now past the end.
- --this->pos_;
- return temp_iter;
- }
-
- /// Predecrement operator
- MM_Sequence_Reverse_Iterator<SEQUENCE_T> &operator-- (void)
- {
- // Increment the position for reverse iterators.
- ++this->pos_;
- return *this;
- }
-
- /// Postdecrement operator
- MM_Sequence_Reverse_Iterator<SEQUENCE_T> operator-- (int)
- {
- // Create a temporary to return so that it's not modified.
- MM_Sequence_Reverse_Iterator<SEQUENCE_T> temp_iter (this->sequence_, this->pos_);
- // Increment the position for reverse iterators.
- ++this->pos_;
- return temp_iter;
- }
-
- /// Iterator addition
- MM_Sequence_Reverse_Iterator<SEQUENCE_T> &operator+= (difference_type n)
- {
- // Move back n elements for reverse iterators.
- this->pos_ -= n;
- return *this;
- }
-
- /// Iterator addition
- MM_Sequence_Reverse_Iterator<SEQUENCE_T> operator+ (difference_type n)
- {
- // Create a temporary to return and move it back n elements for
- // reverse iterators.
- return MM_Sequence_Reverse_Iterator<SEQUENCE_T> (this->sequence_, this->pos_ - n);
- }
-
- /// Iterator subtraction
- MM_Sequence_Reverse_Iterator<SEQUENCE_T> &operator-= (difference_type n)
- {
- // Move ahead n elements for reverse iterators.
- this->pos_ += n;
- return *this;
- }
-
- /// Iterator subtraction
- MM_Sequence_Reverse_Iterator<SEQUENCE_T> operator- (difference_type n)
- {
- // Create a temporary to return and move it ahead n elements for
- // reverse iterators.
- return MM_Sequence_Reverse_Iterator<SEQUENCE_T> (this->sequence_, this->pos_ + n);
- }
-
- /// Difference
- difference_type operator- (const MM_Sequence_Reverse_Iterator<SEQUENCE_T> & rhs)
- {
- // I think order is important here (i.e., rhs before this).
- return rhs.pos_ - this->pos_;
- }
-
- /// Difference
- difference_type operator- (const Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> & rhs)
- {
- // I think order is important here (i.e., rhs before this).
- return rhs.pos_ - this->pos_;
- }
-
- /// Element operator/assignment
- element_type operator[] (difference_type n)
- {
- // Return the element at position pos_ + n
- return element_type ((*(this->sequence_))[this->pos_ + n],
- this->sequence_->release ());
- }
-
- /// Element operator/assignment
- const_element_type operator[] (difference_type n) const
- {
- // Return the element at position pos_ + n
- return const_element_type ((*(this->sequence_))[this->pos_ + n],
- this->sequence_->release ());
- }
-
- /// Less than
- bool operator< (const MM_Sequence_Reverse_Iterator<SEQUENCE_T> & rhs)
- {
- // Return if this iterator is less than the passed in iterator.
- // For reverse iterators reverse the logic.
- return this->pos_ > rhs.pos_;
- }
-
- /// Less than
- bool operator< (const Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> & rhs)
- {
- // Return if this iterator is less than the passed in iterator.
- // For reverse iterators reverse the logic.
- return this->pos_ > rhs.pos_;
- }
-
-
- /// Equality operator
- bool operator== (const MM_Sequence_Reverse_Iterator<SEQUENCE_T> &rhs) const
- {
- // Compare all the data members for equality.
- return this->sequence_ == rhs.sequence_
- && this->pos_ == rhs.pos_;
- }
-
- /// Equality operator
- bool operator== (const Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> &rhs) const
- {
- // Compare all the data members for equality.
- return this->sequence_ == rhs.sequence_
- && this->pos_ == rhs.pos_;
- }
-
- /// Nonequality operator
- bool operator!= (const MM_Sequence_Reverse_Iterator<SEQUENCE_T> &rhs) const
- {
- return !(*this == rhs);
- }
-
- /// Nonequality operator
- bool operator!= (const Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> &rhs) const
- {
- return !(*this == rhs);
- }
-
-private:
- /// The sequence with which we are dealing
- implementation_type *sequence_;
-
- /// Our current position in the sequence.
- mutable difference_type pos_;
-};
-
-/// Iterator addition with the difference_type being the first argument.
-template<typename SEQUENCE_T>
- MM_Sequence_Reverse_Iterator<SEQUENCE_T> operator+
- (typename MM_Sequence_Reverse_Iterator<SEQUENCE_T>::difference_type n,
- MM_Sequence_Reverse_Iterator<SEQUENCE_T> iter)
- {
- // Create an iter and move it back n elements for reverse iterators.
- return MM_Sequence_Reverse_Iterator<SEQUENCE_T> (iter.sequence_, iter.pos_ - n);
- }
-
-/// Iterator subtraction with the difference_type being the first argument.
-template<typename SEQUENCE_T>
- MM_Sequence_Reverse_Iterator<SEQUENCE_T> operator-
- (typename MM_Sequence_Reverse_Iterator<SEQUENCE_T>::difference_type n,
- MM_Sequence_Reverse_Iterator<SEQUENCE_T> iter)
- {
- // Create an iter and move it ahead n elements for reverse iterators.
- return MM_Sequence_Reverse_Iterator<SEQUENCE_T> (iter.sequence_, iter.pos_ + n);
- }
-
-
-/**
- * @class Const_MM_Sequence_Reverse_Iterator
- * @brief Implements a constant reverse random access iterator for generic
- * sequence type classes that need to manage memory. MM stands for
- * memory managed.
- *
- * Note: Having a const Iterator does not guarantee that the current
- * *position* that it points to will not change, it only guarantees that
- * you cannot change the underlying array!
- */
-template <typename SEQUENCE_T>
-class Const_MM_Sequence_Reverse_Iterator
-{
- friend class MM_Sequence_Reverse_Iterator<SEQUENCE_T>;
-
-public:
- // = Necessary traits
- typedef std::random_access_iterator_tag iterator_category;
- typedef typename SEQUENCE_T::value_type value_type;
- typedef typename SEQUENCE_T::value_type *pointer;
- typedef typename SEQUENCE_T::value_type &reference;
- typedef typename SEQUENCE_T::const_element_type const_element_type;
- typedef typename SEQUENCE_T::allocation_traits allocation_traits;
- typedef typename SEQUENCE_T::element_traits element_traits;
- typedef typename SEQUENCE_T::implementation_type implementation_type;
- typedef int difference_type;
-
- /// Construct a Const_MM_Sequence_Reverse_Iterator at position pos
- /// using a const sequence.
- Const_MM_Sequence_Reverse_Iterator (const implementation_type *sequence,
- size_t pos)
- : sequence_ (sequence),
- pos_ (pos)
- {
- }
-
- /// Copy constructor
- Const_MM_Sequence_Reverse_Iterator (
- Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> const & rhs)
- : sequence_ (rhs.sequence_),
- pos_ (rhs.pos_)
- {
- }
-
- /// Copy constructor
- Const_MM_Sequence_Reverse_Iterator (
- MM_Sequence_Reverse_Iterator<SEQUENCE_T> const & rhs)
- : sequence_ (rhs.sequence_),
- pos_ (rhs.pos_)
- {
- }
-
- /// Assignment operator
- Const_MM_Sequence_Reverse_Iterator & operator= (
- Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> const & rhs)
- {
- Const_MM_Sequence_Reverse_Iterator tmp(rhs);
- swap (tmp);
- return * this;
- }
-
- /// swaps all members
- void swap(Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> & rhs)
- throw()
- {
- std::swap (sequence_, rhs.sequence_);
- std::swap (this->pos_, rhs.pos_);
- }
-
- /// typecast operator to MM_Sequence_Reverse_Iterator
-
- /// Dereference operator returns a reference to the item contained
- /// at the current position
- const_element_type operator* (void) const
- {
- // Access the underlying element in the sequence.
- return const_element_type ((*(this->sequence_))[this->pos_],
- this->sequence_->release ());
- }
-
- /// Preincrement operator
- const Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> &operator++ (void) const
- {
- // Decrement the position for reveres iterators.
- // We also need to check if we're now before the start.
- --this->pos_;
- return *this;
- }
-
- /// Postincrement operator
- Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> operator++ (int) const
- {
- // Create a temporary to return so that it's not modified.
- Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> temp_iter (this->sequence_, this->pos_);
- // Decrement the position for reverse iterators.
- // We also need to check if we're now before the start.
- --this->pos_;
- return temp_iter;
- }
-
- /// Predecrement operator
- const Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> &operator-- (void) const
- {
- // Increment the position for reverse iterators.
- ++this->pos_;
- return *this;
- }
-
- /// Postdecrement operator
- Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> operator-- (int) const
- {
- // Create a temporary to return so that it's not modified.
- Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> temp_iter (this->sequence_, this->pos_);
- // Increment the position for reverse iterators.
- ++this->pos_;
- return temp_iter;
- }
-
- /// Iterator addition
- const Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> &operator+= (difference_type n) const
- {
- // Move back n elements for reverse iterators.
- this->pos_ -= n;
- return *this;
- }
-
- /// Iterator addition
- Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> operator+ (difference_type n) const
- {
- // Create a temporary to return and move it back n elements for
- // reverse iterators.
- return Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> (this->sequence_, this->pos_ - n);
- }
-
- /// Iterator subtraction
- const Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> &operator-= (difference_type n) const
- {
- // Move ahead n elements for reverse iterators.
- this->pos_ += n;
- return *this;
- }
-
- /// Iterator subtraction
- Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> operator- (difference_type n) const
- {
- // Create a temporary to return and move it ahead n elements for
- // reverse iterators.
- return Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> (this->sequence_, this->pos_ + n);
- }
-
- /// Difference
- difference_type operator- (const Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> & rhs) const
- {
- // I think order is important here (i.e., rhs before this).
- return rhs.pos_ - this->pos_;
- }
-
- /// Element operator/assignment
- const_element_type operator[] (difference_type n) const
- {
- // Return the element at position pos_ + n
- return const_element_type ((*(this->sequence_))[this->pos_ + n],
- this->sequence_->release ());
- }
-
- /// Less than
- bool operator< (const Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> & rhs) const
- {
- // Return if this iterator is less than the passed in iterator.
- // For reverse iterators reverse the logic.
- return this->pos_ > rhs.pos_;
- }
-
- /// Equality operator
- bool operator== (const Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> &rhs) const
- {
- // Compare all the data members for equality.
- return this->sequence_ == rhs.sequence_
- && this->pos_ == rhs.pos_;
- }
-
- /// Nonequality operator
- bool operator!= (const Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> &rhs) const
- {
- return !(*this == rhs);
- }
-
-private:
- /// the sequence with which we are dealing
- const implementation_type *sequence_;
-
- /// Our current position in the sequence.
- mutable difference_type pos_;
-};
-
-/// Iterator addition with the difference_type being the first argument.
-template<typename SEQUENCE_T>
- Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> operator+
- (typename Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T>::difference_type n,
- Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> iter)
- {
- // Create an iter and move it back n elements for reverse iterators.
- return Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> (iter.sequence_, iter.pos_ - n);
- }
-
-/// Iterator subtraction with the difference_type being the first argument.
-template<typename SEQUENCE_T>
- Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> operator-
- (typename Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T>::difference_type n,
- Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> iter)
- {
- // Create an iter and move it ahead n elements for reverse iterators.
- return Const_MM_Sequence_Reverse_Iterator<SEQUENCE_T> (iter.sequence_, iter.pos_ + n);
- }
-
-
-} // namespace TAO
-
-#endif /* TAO_HAS_SEQUENCE_ITERATORS == 1 */
-
-#endif // mm_sequence_iterator_h
diff --git a/TAO/tao/MProfile.cpp b/TAO/tao/MProfile.cpp
index cfadbaed48d..a8590c3d08a 100644
--- a/TAO/tao/MProfile.cpp
+++ b/TAO/tao/MProfile.cpp
@@ -15,9 +15,9 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_MProfile::~TAO_MProfile (void)
+TAO_MProfile::~TAO_MProfile ()
{
- if (this->policy_list_ != 0)
+ if (this->policy_list_ != nullptr)
{
CORBA::ULong const len = this->policy_list_->length ();
for (CORBA::ULong i = 0; i < len; ++i)
@@ -41,15 +41,15 @@ TAO_MProfile::~TAO_MProfile (void)
}
void
-TAO_MProfile::cleanup (void)
+TAO_MProfile::cleanup ()
{
- if (this->pfiles_ != 0)
+ if (this->pfiles_ != nullptr)
{
for (TAO_PHandle i = 0; i < this->last_; ++i)
if (this->pfiles_[i])
this->pfiles_[i]->_decr_refcnt ();
delete [] this->pfiles_;
- this->pfiles_ = 0;
+ this->pfiles_ = nullptr;
}
this->current_ = 0;
@@ -78,7 +78,7 @@ TAO_MProfile::set (CORBA::ULong sz)
if (this->pfiles_[h])
{
this->pfiles_[h]->_decr_refcnt ();
- this->pfiles_[h] = 0;
+ this->pfiles_[h] = nullptr;
}
// Next see if we can reuse our profile list memory
@@ -107,7 +107,7 @@ TAO_MProfile::set (CORBA::ULong sz)
this->current_ = 0;
for (TAO_PHandle i = 0; i != this->size_; ++i)
- this->pfiles_[i] = 0;
+ this->pfiles_[i] = nullptr;
return this->size_;
}
@@ -132,7 +132,7 @@ TAO_MProfile::set (const TAO_MProfile &mprofile)
for (TAO_PHandle h = 0; h < this->last_; ++h)
{
this->pfiles_[h] = mprofile.pfiles_[h];
- if (this->pfiles_[h] != 0)
+ if (this->pfiles_[h] != nullptr)
this->pfiles_[h]->_incr_refcnt ();
}
@@ -147,8 +147,8 @@ TAO_MProfile::grow (CORBA::ULong sz)
return 0;
// get the additional space
- TAO_Profile **new_pfiles = 0;
- TAO_Profile **old_pfiles = 0;
+ TAO_Profile **new_pfiles = nullptr;
+ TAO_Profile **old_pfiles = nullptr;
ACE_NEW_RETURN (new_pfiles,
TAO_Profile *[sz],
-1);
@@ -159,7 +159,7 @@ TAO_MProfile::grow (CORBA::ULong sz)
for (TAO_PHandle h = 0; h < this->size_; ++h)
{
new_pfiles[h] = old_pfiles[h];
- old_pfiles[h] = 0;
+ old_pfiles[h] = nullptr;
}
this->pfiles_ = new_pfiles;
@@ -235,7 +235,7 @@ TAO_MProfile::remove_profile (const TAO_Profile *pfile)
if (this->pfiles_[h]->is_equivalent (pfile))
{ // remove it!
TAO_Profile *old = this->pfiles_[h];
- this->pfiles_[h] = 0;
+ this->pfiles_[h] = nullptr;
old->_decr_refcnt ();
// shift other profiles up one
// note, if h == last_ - 1 then do nothing.
@@ -300,17 +300,16 @@ TAO_MProfile::hash (CORBA::ULong max)
}
void
-TAO_MProfile::create_policy_list (void)
+TAO_MProfile::create_policy_list ()
{
ACE_NEW_THROW_EX (this->policy_list_,
CORBA::PolicyList,
CORBA::NO_MEMORY (0,
- CORBA::COMPLETED_NO)
- );
+ CORBA::COMPLETED_NO));
}
void
-TAO_MProfile::init_policy_list (void)
+TAO_MProfile::init_policy_list ()
{
// The first time this method is called
// it causes the initialization of the policies
@@ -322,23 +321,23 @@ TAO_MProfile::init_policy_list (void)
}
CORBA::PolicyList *
-TAO_MProfile::policy_list (void)
+TAO_MProfile::policy_list ()
{
if (!this->is_policy_list_initialized_)
{
ACE_GUARD_RETURN (TAO_SYNCH_RECURSIVE_MUTEX,
guard,
this->mutex_,
- 0);
+ nullptr);
- if (this->policy_list_ == 0)
+ if (this->policy_list_ == nullptr)
{
this->create_policy_list ();
this->init_policy_list ();
}
}
- CORBA::PolicyList *ret_val = 0;
+ CORBA::PolicyList *ret_val = nullptr;
ACE_NEW_THROW_EX (ret_val,
CORBA::PolicyList (*this->policy_list_),
CORBA::NO_MEMORY (0,
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 &params)
}
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 &params);
- 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/Monitor/Monitor_Impl.h b/TAO/tao/Monitor/Monitor_Impl.h
index 5984d73a56b..59c6bf39eba 100644
--- a/TAO/tao/Monitor/Monitor_Impl.h
+++ b/TAO/tao/Monitor/Monitor_Impl.h
@@ -48,7 +48,6 @@ public:
const ::Monitor::ConstraintStructList & constraint);
private:
-
/// Use an ORB reference to convert strings to objects and shutdown
/// the application.
CORBA::ORB_var orb_;
diff --git a/TAO/tao/Muxed_TMS.cpp b/TAO/tao/Muxed_TMS.cpp
index e7d9022413a..c80043ad541 100644
--- a/TAO/tao/Muxed_TMS.cpp
+++ b/TAO/tao/Muxed_TMS.cpp
@@ -9,7 +9,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Muxed_TMS::TAO_Muxed_TMS (TAO_Transport *transport)
: TAO_Transport_Mux_Strategy (transport)
- , lock_ (0)
+ , lock_ (nullptr)
, request_id_generator_ (0)
, orb_core_ (transport->orb_core ())
, dispatcher_table_ (this->orb_core_->client_factory ()->reply_dispatcher_table_size ())
@@ -18,7 +18,7 @@ TAO_Muxed_TMS::TAO_Muxed_TMS (TAO_Transport *transport)
this->orb_core_->client_factory ()->create_transport_mux_strategy_lock ();
}
-TAO_Muxed_TMS::~TAO_Muxed_TMS (void)
+TAO_Muxed_TMS::~TAO_Muxed_TMS ()
{
delete this->lock_;
}
@@ -26,7 +26,7 @@ TAO_Muxed_TMS::~TAO_Muxed_TMS (void)
// Generate and return an unique request id for the current
// invocation.
CORBA::ULong
-TAO_Muxed_TMS::request_id (void)
+TAO_Muxed_TMS::request_id ()
{
// @@ What is a good error return value?
ACE_GUARD_RETURN (ACE_Lock,
@@ -67,7 +67,7 @@ TAO_Muxed_TMS::bind_dispatcher (CORBA::ULong request_id,
*this->lock_,
-1);
- if (rd == 0)
+ if (rd == nullptr)
{
if (TAO_debug_level > 0)
{
@@ -106,7 +106,7 @@ TAO_Muxed_TMS::unbind_dispatcher (CORBA::ULong request_id)
}
bool
-TAO_Muxed_TMS::has_request (void)
+TAO_Muxed_TMS::has_request ()
{
ACE_GUARD_RETURN (ACE_Lock,
ace_mon,
@@ -120,7 +120,7 @@ int
TAO_Muxed_TMS::dispatch_reply (TAO_Pluggable_Reply_Params &params)
{
int result = 0;
- ACE_Intrusive_Auto_Ptr<TAO_Reply_Dispatcher> rd(0);
+ ACE_Intrusive_Auto_Ptr<TAO_Reply_Dispatcher> rd(nullptr);
// Grab the reply dispatcher for this id.
{
@@ -167,7 +167,7 @@ int
TAO_Muxed_TMS::reply_timed_out (CORBA::ULong request_id)
{
int result = 0;
- ACE_Intrusive_Auto_Ptr<TAO_Reply_Dispatcher> rd(0);
+ ACE_Intrusive_Auto_Ptr<TAO_Reply_Dispatcher> rd(nullptr);
// Grab the reply dispatcher for this id.
{
@@ -218,25 +218,25 @@ TAO_Muxed_TMS::reply_timed_out (CORBA::ULong request_id)
bool
-TAO_Muxed_TMS::idle_after_send (void)
+TAO_Muxed_TMS::idle_after_send ()
{
// Irrespective of whether we are successful or not we need to
// return true. If *this* class is not successful in idling the
// transport no one can.
- if (this->transport_ != 0)
+ if (this->transport_ != nullptr)
(void) this->transport_->make_idle ();
return true;
}
bool
-TAO_Muxed_TMS::idle_after_reply (void)
+TAO_Muxed_TMS::idle_after_reply ()
{
return false;
}
void
-TAO_Muxed_TMS::connection_closed (void)
+TAO_Muxed_TMS::connection_closed ()
{
ACE_GUARD (ACE_Lock,
ace_mon,
@@ -251,7 +251,7 @@ TAO_Muxed_TMS::connection_closed (void)
}
int
-TAO_Muxed_TMS::clear_cache_i (void)
+TAO_Muxed_TMS::clear_cache_i ()
{
if (this->dispatcher_table_.current_size () == 0)
return -1;
@@ -274,7 +274,7 @@ TAO_Muxed_TMS::clear_cache_i (void)
for (size_t k = 0 ; k != sz ; ++k)
{
- ACE_Intrusive_Auto_Ptr<TAO_Reply_Dispatcher> rd(0);
+ ACE_Intrusive_Auto_Ptr<TAO_Reply_Dispatcher> rd(nullptr);
if (ubs.pop (rd) == 0)
{
diff --git a/TAO/tao/Muxed_TMS.h b/TAO/tao/Muxed_TMS.h
index a680d25cc84..58bbe6fdbf3 100644
--- a/TAO/tao/Muxed_TMS.h
+++ b/TAO/tao/Muxed_TMS.h
@@ -46,17 +46,16 @@ class TAO_Reply_Dispatcher;
*/
class TAO_Export TAO_Muxed_TMS : public TAO_Transport_Mux_Strategy
{
-
public:
/// Constructor.
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.
@@ -67,10 +66,10 @@ public:
virtual int dispatch_reply (TAO_Pluggable_Reply_Params &params);
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 &);
@@ -98,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.cpp b/TAO/tao/NVList_Adapter.cpp
index a1b542673cc..f4050918d63 100644
--- a/TAO/tao/NVList_Adapter.cpp
+++ b/TAO/tao/NVList_Adapter.cpp
@@ -2,7 +2,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_NVList_Adapter::~TAO_NVList_Adapter (void)
+TAO_NVList_Adapter::~TAO_NVList_Adapter ()
{
}
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/Network_Priority_Protocols_Hooks.cpp b/TAO/tao/Network_Priority_Protocols_Hooks.cpp
index db6e3aaea66..8f7d55568c4 100644
--- a/TAO/tao/Network_Priority_Protocols_Hooks.cpp
+++ b/TAO/tao/Network_Priority_Protocols_Hooks.cpp
@@ -4,7 +4,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Network_Priority_Protocols_Hooks::
-~TAO_Network_Priority_Protocols_Hooks (void)
+~TAO_Network_Priority_Protocols_Hooks ()
{
}
diff --git a/TAO/tao/New_Leader_Generator.cpp b/TAO/tao/New_Leader_Generator.cpp
index e490ae08f73..17e0cb12f97 100644
--- a/TAO/tao/New_Leader_Generator.cpp
+++ b/TAO/tao/New_Leader_Generator.cpp
@@ -3,7 +3,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_New_Leader_Generator::~TAO_New_Leader_Generator (void)
+TAO_New_Leader_Generator::~TAO_New_Leader_Generator ()
{
}
diff --git a/TAO/tao/New_Leader_Generator.h b/TAO/tao/New_Leader_Generator.h
index 25c289aa65d..9560a347fa1 100644
--- a/TAO/tao/New_Leader_Generator.h
+++ b/TAO/tao/New_Leader_Generator.h
@@ -33,7 +33,6 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_Export TAO_New_Leader_Generator
{
public:
-
/// Destructor.
virtual ~TAO_New_Leader_Generator (void);
diff --git a/TAO/tao/Null_Fragmentation_Strategy.cpp b/TAO/tao/Null_Fragmentation_Strategy.cpp
index d41d7f42d34..f04ae96cad2 100644
--- a/TAO/tao/Null_Fragmentation_Strategy.cpp
+++ b/TAO/tao/Null_Fragmentation_Strategy.cpp
@@ -1,6 +1,6 @@
#include "tao/Null_Fragmentation_Strategy.h"
-TAO_Null_Fragmentation_Strategy::~TAO_Null_Fragmentation_Strategy (void)
+TAO_Null_Fragmentation_Strategy::~TAO_Null_Fragmentation_Strategy ()
{
}
diff --git a/TAO/tao/Null_Fragmentation_Strategy.h b/TAO/tao/Null_Fragmentation_Strategy.h
index 528b1a28714..6efc37b0450 100644
--- a/TAO/tao/Null_Fragmentation_Strategy.h
+++ b/TAO/tao/Null_Fragmentation_Strategy.h
@@ -40,17 +40,15 @@ class TAO_Null_Fragmentation_Strategy
: public TAO_GIOP_Fragmentation_Strategy
{
public:
-
TAO_Null_Fragmentation_Strategy (void) {}
virtual ~TAO_Null_Fragmentation_Strategy (void);
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.cpp b/TAO/tao/ORB.cpp
index 9b930da8c0d..70f9681685e 100644
--- a/TAO/tao/ORB.cpp
+++ b/TAO/tao/ORB.cpp
@@ -45,14 +45,14 @@ static const char ior_prefix[] = "IOR:";
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-CORBA::ORB::InvalidName::InvalidName (void)
+CORBA::ORB::InvalidName::InvalidName ()
: CORBA::UserException ("IDL:omg.org/CORBA/ORB/InvalidName:1.0",
"InvalidName")
{
}
// Destructor - all members are of self managing types.
-CORBA::ORB::InvalidName::~InvalidName (void)
+CORBA::ORB::InvalidName::~InvalidName ()
{
}
@@ -77,25 +77,25 @@ CORBA::ORB::InvalidName::_downcast (CORBA::Exception *exc)
return dynamic_cast<InvalidName *> (exc);
}
-CORBA::Exception *CORBA::ORB::InvalidName::_alloc (void)
+CORBA::Exception *CORBA::ORB::InvalidName::_alloc ()
{
- CORBA::Exception *retval = 0;
- ACE_NEW_RETURN (retval, ::CORBA::ORB::InvalidName, 0);
+ CORBA::Exception *retval = nullptr;
+ ACE_NEW_RETURN (retval, ::CORBA::ORB::InvalidName, nullptr);
return retval;
}
CORBA::Exception *
-CORBA::ORB::InvalidName::_tao_duplicate (void) const
+CORBA::ORB::InvalidName::_tao_duplicate () const
{
- CORBA::Exception *result = 0;
+ CORBA::Exception *result = nullptr;
ACE_NEW_RETURN (
result,
::CORBA::ORB::InvalidName (*this),
- 0);
+ nullptr);
return result;
}
-void CORBA::ORB::InvalidName::_raise (void) const
+void CORBA::ORB::InvalidName::_raise () const
{
throw *this;
}
@@ -116,11 +116,11 @@ CORBA::ORB::ORB (TAO_ORB_Core *orb_core)
: refcount_ (1)
, orb_core_ (orb_core)
, use_omg_ior_format_ (1)
- , timeout_ (0)
+ , timeout_ (nullptr)
{
}
-CORBA::ORB::~ORB (void)
+CORBA::ORB::~ORB ()
{
// This destructor is only invoked when the last ORB reference (not
// instance) is being destroyed.
@@ -138,9 +138,9 @@ CORBA::ORB::shutdown (CORBA::Boolean wait_for_completion)
}
void
-CORBA::ORB::destroy (void)
+CORBA::ORB::destroy ()
{
- if (this->orb_core () == 0)
+ if (this->orb_core () == nullptr)
{
// If the ORB_Core pointer is zero, assume that the ORB_Core has
// been destroyed.
@@ -163,13 +163,13 @@ CORBA::ORB::destroy (void)
// Now invalidate the pointer to the ORB_Core that created this
// ORB.
- this->orb_core_ = 0;
+ this->orb_core_ = nullptr;
}
void
-CORBA::ORB::run (void)
+CORBA::ORB::run ()
{
- this->run (0);
+ this->run (nullptr);
}
void
@@ -187,9 +187,9 @@ CORBA::ORB::run (ACE_Time_Value *tv)
}
void
-CORBA::ORB::perform_work (void)
+CORBA::ORB::perform_work ()
{
- this->perform_work (0);
+ this->perform_work (nullptr);
}
void
@@ -224,7 +224,7 @@ CORBA::ORB::work_pending (ACE_Time_Value &tv)
}
CORBA::Boolean
-CORBA::ORB::work_pending (void)
+CORBA::ORB::work_pending ()
{
// This method should not be called if the ORB has been shutdown.
this->check_shutdown ();
@@ -247,7 +247,7 @@ CORBA::ORB::create_list (CORBA::Long count, CORBA::NVList_ptr &new_list)
TAO_NVList_Adapter *adapter =
ACE_Dynamic_Service<TAO_NVList_Adapter>::instance ("TAO_NVList_Adapter");
- if (adapter == 0)
+ if (adapter == nullptr)
{
TAOLIB_ERROR ((LM_ERROR,
ACE_TEXT ("(%P|%t) %p\n"),
@@ -277,7 +277,7 @@ CORBA::ORB::create_operation_list (CORBA::OperationDef_ptr opDef,
ACE_Dynamic_Service<TAO_IFR_Client_Adapter>::instance (
TAO_ORB_Core::ifr_client_adapter_name ());
- if (adapter == 0)
+ if (adapter == nullptr)
{
throw ::CORBA::INTF_REPOS ();
}
@@ -305,7 +305,7 @@ CORBA::ORB::create_named_value (CORBA::NamedValue_ptr &nv)
ACE_Dynamic_Service<TAO_NVList_Adapter>::instance (
"TAO_NVList_Adapter");
- if (adapter == 0)
+ if (adapter == nullptr)
{
TAOLIB_ERROR ((LM_ERROR,
ACE_TEXT ("(%P|%t) %p\n"),
@@ -384,7 +384,7 @@ CORBA::ORB::get_next_response (CORBA::Request_ptr &)
}
CORBA::Boolean
-CORBA::ORB::poll_next_response (void)
+CORBA::ORB::poll_next_response ()
{
throw ::CORBA::NO_IMPLEMENT (
CORBA::SystemException::_tao_minor_code (
@@ -405,7 +405,7 @@ CORBA::ORB::create_struct_tc (
ACE_Dynamic_Service<TAO_TypeCodeFactory_Adapter>::instance (
TAO_ORB_Core::typecodefactory_adapter_name ());
- if (adapter == 0)
+ if (adapter == nullptr)
{
throw ::CORBA::INTERNAL ();
}
@@ -424,7 +424,7 @@ CORBA::ORB::create_union_tc (
ACE_Dynamic_Service<TAO_TypeCodeFactory_Adapter>::instance (
TAO_ORB_Core::typecodefactory_adapter_name ());
- if (adapter == 0)
+ if (adapter == nullptr)
{
throw ::CORBA::INTERNAL ();
}
@@ -445,7 +445,7 @@ CORBA::ORB::create_enum_tc (
ACE_Dynamic_Service<TAO_TypeCodeFactory_Adapter>::instance (
TAO_ORB_Core::typecodefactory_adapter_name ());
- if (adapter == 0)
+ if (adapter == nullptr)
{
throw ::CORBA::INTERNAL ();
}
@@ -463,7 +463,7 @@ CORBA::ORB::create_alias_tc (
ACE_Dynamic_Service<TAO_TypeCodeFactory_Adapter>::instance (
TAO_ORB_Core::typecodefactory_adapter_name ());
- if (adapter == 0)
+ if (adapter == nullptr)
{
throw ::CORBA::INTERNAL ();
}
@@ -481,7 +481,7 @@ CORBA::ORB::create_exception_tc (
ACE_Dynamic_Service<TAO_TypeCodeFactory_Adapter>::instance (
TAO_ORB_Core::typecodefactory_adapter_name ());
- if (adapter == 0)
+ if (adapter == nullptr)
{
throw ::CORBA::INTERNAL ();
}
@@ -498,7 +498,7 @@ CORBA::ORB::create_interface_tc (
ACE_Dynamic_Service<TAO_TypeCodeFactory_Adapter>::instance (
TAO_ORB_Core::typecodefactory_adapter_name ());
- if (adapter == 0)
+ if (adapter == nullptr)
{
throw ::CORBA::INTERNAL ();
}
@@ -514,7 +514,7 @@ CORBA::ORB::create_string_tc (
ACE_Dynamic_Service<TAO_TypeCodeFactory_Adapter>::instance (
TAO_ORB_Core::typecodefactory_adapter_name ());
- if (adapter == 0)
+ if (adapter == nullptr)
{
throw ::CORBA::INTERNAL ();
}
@@ -530,7 +530,7 @@ CORBA::ORB::create_wstring_tc (
ACE_Dynamic_Service<TAO_TypeCodeFactory_Adapter>::instance (
TAO_ORB_Core::typecodefactory_adapter_name ());
- if (adapter == 0)
+ if (adapter == nullptr)
{
throw ::CORBA::INTERNAL ();
}
@@ -547,7 +547,7 @@ CORBA::ORB::create_fixed_tc (
ACE_Dynamic_Service<TAO_TypeCodeFactory_Adapter>::instance (
TAO_ORB_Core::typecodefactory_adapter_name ());
- if (adapter == 0)
+ if (adapter == nullptr)
{
throw ::CORBA::INTERNAL ();
}
@@ -564,7 +564,7 @@ CORBA::ORB::create_sequence_tc (
ACE_Dynamic_Service<TAO_TypeCodeFactory_Adapter>::instance (
TAO_ORB_Core::typecodefactory_adapter_name ());
- if (adapter == 0)
+ if (adapter == nullptr)
{
throw ::CORBA::INTERNAL ();
}
@@ -581,7 +581,7 @@ CORBA::ORB::create_array_tc (
ACE_Dynamic_Service<TAO_TypeCodeFactory_Adapter>::instance (
TAO_ORB_Core::typecodefactory_adapter_name ());
- if (adapter == 0)
+ if (adapter == nullptr)
{
throw ::CORBA::INTERNAL ();
}
@@ -601,7 +601,7 @@ CORBA::ORB::create_value_tc (
ACE_Dynamic_Service<TAO_TypeCodeFactory_Adapter>::instance (
TAO_ORB_Core::typecodefactory_adapter_name ());
- if (adapter == 0)
+ if (adapter == nullptr)
{
throw ::CORBA::INTERNAL ();
}
@@ -622,7 +622,7 @@ CORBA::ORB::create_value_box_tc (
ACE_Dynamic_Service<TAO_TypeCodeFactory_Adapter>::instance (
TAO_ORB_Core::typecodefactory_adapter_name ());
- if (adapter == 0)
+ if (adapter == nullptr)
{
throw ::CORBA::INTERNAL ();
}
@@ -637,7 +637,7 @@ CORBA::ORB::create_native_tc (const char *id, const char *name)
ACE_Dynamic_Service<TAO_TypeCodeFactory_Adapter>::instance (
TAO_ORB_Core::typecodefactory_adapter_name ());
- if (adapter == 0)
+ if (adapter == nullptr)
{
throw ::CORBA::INTERNAL ();
}
@@ -652,7 +652,7 @@ CORBA::ORB::create_recursive_tc (const char *id)
ACE_Dynamic_Service<TAO_TypeCodeFactory_Adapter>::instance (
TAO_ORB_Core::typecodefactory_adapter_name ());
- if (adapter == 0)
+ if (adapter == nullptr)
{
throw ::CORBA::INTERNAL ();
}
@@ -667,7 +667,7 @@ CORBA::ORB::create_abstract_interface_tc (const char *id, const char *name)
ACE_Dynamic_Service<TAO_TypeCodeFactory_Adapter>::instance (
TAO_ORB_Core::typecodefactory_adapter_name ());
- if (adapter == 0)
+ if (adapter == nullptr)
{
throw ::CORBA::INTERNAL ();
}
@@ -682,7 +682,7 @@ CORBA::ORB::create_local_interface_tc (const char *id, const char *name)
ACE_Dynamic_Service<TAO_TypeCodeFactory_Adapter>::instance (
TAO_ORB_Core::typecodefactory_adapter_name ());
- if (adapter == 0)
+ if (adapter == nullptr)
{
throw ::CORBA::INTERNAL ();
}
@@ -697,7 +697,7 @@ CORBA::ORB::create_component_tc (const char *id, const char *name)
ACE_Dynamic_Service<TAO_TypeCodeFactory_Adapter>::instance (
TAO_ORB_Core::typecodefactory_adapter_name ());
- if (adapter == 0)
+ if (adapter == nullptr)
{
throw ::CORBA::INTERNAL ();
}
@@ -712,7 +712,7 @@ CORBA::ORB::create_home_tc (const char *id, const char *name)
ACE_Dynamic_Service<TAO_TypeCodeFactory_Adapter>::instance (
TAO_ORB_Core::typecodefactory_adapter_name ());
- if (adapter == 0)
+ if (adapter == nullptr)
{
throw ::CORBA::INTERNAL ();
}
@@ -732,7 +732,7 @@ CORBA::ORB::create_event_tc (
ACE_Dynamic_Service<TAO_TypeCodeFactory_Adapter>::instance (
TAO_ORB_Core::typecodefactory_adapter_name ());
- if (adapter == 0)
+ if (adapter == nullptr)
{
throw ::CORBA::INTERNAL ();
}
@@ -749,13 +749,13 @@ CORBA::ORB::create_event_tc (
#endif /* TAO_HAS_MINIMUM_CORBA */
CORBA::Object_ptr
-CORBA::ORB::resolve_policy_manager (void)
+CORBA::ORB::resolve_policy_manager ()
{
#if (TAO_HAS_CORBA_MESSAGING == 1)
TAO_Policy_Manager *policy_manager = this->orb_core_->policy_manager ();
- if (policy_manager == 0)
+ if (policy_manager == nullptr)
{
return CORBA::Object::_nil ();
}
@@ -770,7 +770,7 @@ CORBA::ORB::resolve_policy_manager (void)
}
CORBA::Object_ptr
-CORBA::ORB::resolve_policy_current (void)
+CORBA::ORB::resolve_policy_current ()
{
#if (TAO_HAS_CORBA_MESSAGING == 1)
@@ -827,7 +827,7 @@ CORBA::ORB::resolve_service (TAO::MCAST_SERVICEID mcast_service_id)
char const * const port_number =
ACE_OS::getenv (env_service_port[mcast_service_id]);
- if (port_number != 0)
+ if (port_number != nullptr)
port = static_cast<unsigned short> (ACE_OS::atoi (port_number));
else
port = default_service_port[mcast_service_id];
@@ -1005,7 +1005,7 @@ CORBA::ORB::resolve_initial_references (const char *name,
void
CORBA::ORB::register_initial_reference (const char * id, CORBA::Object_ptr obj)
{
- if (id == 0 || ACE_OS::strlen (id) == 0)
+ if (id == nullptr || ACE_OS::strlen (id) == 0)
throw ::CORBA::ORB::InvalidName ();
if (CORBA::is_nil (obj))
@@ -1020,7 +1020,7 @@ CORBA::ORB::register_initial_reference (const char * id, CORBA::Object_ptr obj)
CORBA::Object_ptr
CORBA::ORB::unregister_initial_reference (const char * id)
{
- if (id == 0 || ACE_OS::strlen (id) == 0)
+ if (id == nullptr || ACE_OS::strlen (id) == 0)
throw ::CORBA::ORB::InvalidName ();
TAO_Object_Ref_Table &table = this->orb_core_->object_ref_table ();
@@ -1034,7 +1034,7 @@ CORBA::ORB::unregister_initial_reference (const char * id)
#endif
CORBA::ORB::ObjectIdList_ptr
-CORBA::ORB::list_initial_services (void)
+CORBA::ORB::list_initial_services ()
{
this->check_shutdown ();
@@ -1042,9 +1042,9 @@ CORBA::ORB::list_initial_services (void)
}
void
-CORBA::ORB::check_shutdown (void)
+CORBA::ORB::check_shutdown ()
{
- if (this->orb_core () != 0)
+ if (this->orb_core () != nullptr)
{
this->orb_core ()->check_shutdown ();
}
@@ -1134,7 +1134,7 @@ namespace TAO
// big as the default repository
if (ACE_OS::strcasecmp (arg, ACE_TEXT("LOCAL")) == 0)
{
- ACE_Service_Gestalt* gestalt = 0;
+ ACE_Service_Gestalt* gestalt = nullptr;
ACE_NEW_THROW_EX (gestalt,
ACE_Service_Gestalt
(ACE_Service_Gestalt::MAX_SERVICES / 4, true),
@@ -1166,7 +1166,7 @@ namespace TAO
// Get ORB Core
TAO_ORB_Core_Auto_Ptr oc (TAO::ORB_Table::instance ()->find (
ACE_TEXT_ALWAYS_CHAR(orbid.c_str ())));
- if (oc.get () != 0)
+ if (oc.get () != nullptr)
return oc->configuration ();
if (TAO_debug_level > 0)
@@ -1237,7 +1237,7 @@ CORBA::ORB_init (int &argc, ACE_TCHAR *argv[], const char *orbid)
: 0);
if ((argc == 0 && argv0_len != 0)
- || (argc != 0 && (argv == 0 || argv[0] == 0)))
+ || (argc != 0 && (argv == nullptr || argv[0] == nullptr)))
{
throw ::CORBA::BAD_PARAM (
CORBA::SystemException::_tao_minor_code (
@@ -1273,7 +1273,7 @@ CORBA::ORB_init (int &argc, ACE_TCHAR *argv[], const char *orbid)
ACE_TEXT_ALWAYS_CHAR(orbid_string.c_str ())));
// The ORB was already initialized. Just return that one.
- if (oc.get () != 0)
+ if (oc.get () != nullptr)
{
return CORBA::ORB::_duplicate (oc->orb ());
}
@@ -1288,7 +1288,7 @@ CORBA::ORB_init (int &argc, ACE_TCHAR *argv[], const char *orbid)
// An ORB corresponding to the desired ORBid doesn't exist so create
// a new one.
- TAO_ORB_Core * tmp = 0;
+ TAO_ORB_Core * tmp = nullptr;
ACE_NEW_THROW_EX (tmp,
TAO_ORB_Core (ACE_TEXT_ALWAYS_CHAR(orbid_string.c_str ()),
gestalt),
@@ -1343,7 +1343,7 @@ CORBA::ORB_init (int &argc, ACE_TCHAR *argv[], const char *orbid)
PortableInterceptor::SlotId slotid = 0;
size_t pre_init_count = 0;
- if (orbinitializer_registry != 0)
+ if (orbinitializer_registry != nullptr)
{
pre_init_count =
orbinitializer_registry->pre_init (oc.get (),
@@ -1356,7 +1356,7 @@ CORBA::ORB_init (int &argc, ACE_TCHAR *argv[], const char *orbid)
result = oc->init (command_line.get_argc(),
command_line.get_ASCII_argv());
- if (orbinitializer_registry != 0)
+ if (orbinitializer_registry != nullptr)
{
orbinitializer_registry->post_init (pre_init_count,
oc.get (),
@@ -1400,7 +1400,7 @@ CORBA::ORB::object_to_string (CORBA::Object_ptr obj)
char* user_string =
obj->convert_to_ior (this->use_omg_ior_format_, ior_prefix);
- if (user_string != 0)
+ if (user_string != nullptr)
return user_string;
}
@@ -1448,20 +1448,20 @@ CORBA::ORB::object_to_string (CORBA::Object_ptr obj)
// return that string.
size_t const total_len = cdr.total_length ();
- char *cp = 0;
+ char *cp = nullptr;
ACE_ALLOCATOR_RETURN (cp,
CORBA::string_alloc (
sizeof ior_prefix
+ 2
* static_cast<CORBA::ULong> (total_len)),
- 0);
+ nullptr);
CORBA::String_var string = cp;
ACE_OS::strcpy (cp, ior_prefix);
cp += sizeof (ior_prefix) - 1;
- for (const ACE_Message_Block *i = cdr.begin (); i != 0; i = i->cont ())
+ for (const ACE_Message_Block *i = cdr.begin (); i != nullptr; i = i->cont ())
{
const char *bytes = i->rd_ptr ();
size_t len = i->length ();
@@ -1483,7 +1483,7 @@ CORBA::ORB::object_to_string (CORBA::Object_ptr obj)
// It is perfectly valid to marshal a nil object reference.
// However, it is not possible to convert a nil object reference
// to a URL IOR, so throw an exception.
- if (CORBA::is_nil (obj) || obj->_stubobj () == 0)
+ if (CORBA::is_nil (obj) || obj->_stubobj () == nullptr)
{
if (TAO_debug_level > 0)
TAOLIB_ERROR ((LM_ERROR,
@@ -1530,7 +1530,7 @@ CORBA::ORB::string_to_object (const char *str)
this->check_shutdown ();
// Check for NULL pointer
- if (str == 0)
+ if (str == nullptr)
throw ::CORBA::INV_OBJREF (
CORBA::SystemException::_tao_minor_code (
0,
@@ -1540,7 +1540,7 @@ CORBA::ORB::string_to_object (const char *str)
TAO_IOR_Parser *ior_parser =
this->orb_core_->parser_registry ()->match_parser (str);
- if (ior_parser != 0)
+ if (ior_parser != nullptr)
{
return ior_parser->parse_string (str, this);
}
@@ -1562,7 +1562,7 @@ CORBA::ORB::string_to_object (const wchar_t *str)
// ****************************************************************
char *
-CORBA::ORB::id (void)
+CORBA::ORB::id ()
{
return CORBA::string_dup (this->orb_core_->orbid ());
}
@@ -1578,7 +1578,7 @@ CORBA::ORB::create_policy (CORBA::PolicyType type, const CORBA::Any& val)
TAO::PolicyFactory_Registry_Adapter *adapter =
this->orb_core_->policy_factory_registry ();
- if (adapter == 0)
+ if (adapter == nullptr)
{
throw ::CORBA::INTERNAL ();
}
@@ -1597,7 +1597,7 @@ CORBA::ORB::_create_policy (CORBA::PolicyType type)
TAO::PolicyFactory_Registry_Adapter *adapter =
this->orb_core_->policy_factory_registry ();
- if (adapter == 0)
+ if (adapter == nullptr)
{
throw ::CORBA::INTERNAL ();
}
@@ -1689,7 +1689,7 @@ CORBA::ORB::url_ior_string_to_object (const char* str)
}
// Now make the TAO_Stub.
- TAO_Stub *data = this->orb_core_->create_stub ((char *) 0, mprofile);
+ TAO_Stub *data = this->orb_core_->create_stub ((char *) nullptr, mprofile);
TAO_Stub_Auto_Ptr safe_objdata (data);
diff --git a/TAO/tao/ORB.h b/TAO/tao/ORB.h
index 7878dbbb274..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_;
@@ -594,7 +586,6 @@ namespace CORBA
/// Timeout value
ACE_Time_Value * timeout_;
-
};
} // End namespace CORBA
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.cpp b/TAO/tao/ORBInitializer_Registry.cpp
index 309110a79cc..9b74ab3f3a7 100644
--- a/TAO/tao/ORBInitializer_Registry.cpp
+++ b/TAO/tao/ORBInitializer_Registry.cpp
@@ -42,7 +42,7 @@ namespace PortableInterceptor
("ORBInitializer_Registry", true); // only look in the local repo
#if !defined (TAO_AS_STATIC_LIBS)
- if (orbinitializer_registry_ == 0)
+ if (orbinitializer_registry_ == nullptr)
{
ACE_Service_Config::process_directive (
ACE_DYNAMIC_VERSIONED_SERVICE_DIRECTIVE("ORBInitializer_Registry",
@@ -56,7 +56,7 @@ namespace PortableInterceptor
}
#endif /* !TAO_AS_STATIC_LIBS */
- if (orbinitializer_registry_ != 0)
+ if (orbinitializer_registry_ != nullptr)
{
orbinitializer_registry_->register_orb_initializer (init);
}
diff --git a/TAO/tao/ORBInitializer_Registry_Adapter.cpp b/TAO/tao/ORBInitializer_Registry_Adapter.cpp
index 874bca2e5fc..aac674bc9d7 100644
--- a/TAO/tao/ORBInitializer_Registry_Adapter.cpp
+++ b/TAO/tao/ORBInitializer_Registry_Adapter.cpp
@@ -4,7 +4,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
- ORBInitializer_Registry_Adapter::~ORBInitializer_Registry_Adapter (void)
+ ORBInitializer_Registry_Adapter::~ORBInitializer_Registry_Adapter ()
{
}
}
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 e91407c0d79..cb2d45bff86 100644
--- a/TAO/tao/ORB_Core.cpp
+++ b/TAO/tao/ORB_Core.cpp
@@ -91,7 +91,7 @@ ACE_FACTORY_DEFINE (TAO, TAO_ORB_Core_Static_Resources)
// ****************************************************************
CORBA::Environment&
-TAO_default_environment (void)
+TAO_default_environment ()
{
return *TAO_TSS_Resources::instance ()->default_environment_;
}
@@ -111,14 +111,14 @@ TAO_ORB_Core_Static_Resources::initialization_reference_ =
TAO_ORB_Core_Static_Resources::instance ();
TAO_ORB_Core_Static_Resources*
-TAO_ORB_Core_Static_Resources::instance (void)
+TAO_ORB_Core_Static_Resources::instance ()
{
ACE_Service_Gestalt *current = ACE_Service_Config::current();
TAO_ORB_Core_Static_Resources* tocsr =
ACE_Dynamic_Service<TAO_ORB_Core_Static_Resources>::instance
(current, "TAO_ORB_Core_Static_Resources", true);
- if (tocsr == 0)
+ if (tocsr == nullptr)
{
// This new is never freed on purpose. The data specified by
// it needs to be around for the last shared library that references
@@ -136,7 +136,7 @@ TAO_ORB_Core_Static_Resources::instance (void)
ACE_Dynamic_Service<TAO_ORB_Core_Static_Resources>::instance
(global,"TAO_ORB_Core_Static_Resources");
- if (global_tocsr != 0)
+ if (global_tocsr != nullptr)
*tocsr = *global_tocsr;
}
}
@@ -144,17 +144,17 @@ TAO_ORB_Core_Static_Resources::instance (void)
return tocsr;
}
-TAO_ORB_Core_Static_Resources::TAO_ORB_Core_Static_Resources (void)
+TAO_ORB_Core_Static_Resources::TAO_ORB_Core_Static_Resources ()
: network_priority_protocols_hooks_name_ (
"Network_Priority_Protocols_Hooks"),
- connection_timeout_hook_ (0),
+ connection_timeout_hook_ (nullptr),
resource_factory_name_ ("Resource_Factory"),
dynamic_adapter_name_ ("Dynamic_Adapter"),
ifr_client_adapter_name_ ("IFR_Client_Adapter"),
typecodefactory_adapter_name_ ("TypeCodeFactory_Adapter"),
iorinterceptor_adapter_factory_name_ ("IORInterceptor_Adapter_Factory"),
valuetype_adapter_factory_name_ ("Valuetype_Adapter_Factory"),
- alt_connection_timeout_hook_ (0)
+ alt_connection_timeout_hook_ (nullptr)
{
}
@@ -180,18 +180,18 @@ TAO_ORB_Core_Static_Resources::operator=(const TAO_ORB_Core_Static_Resources& ot
TAO_ORB_Core::TAO_ORB_Core (const char *orbid,
ACE_Intrusive_Auto_Ptr<ACE_Service_Gestalt> gestalt)
- : protocols_hooks_ (0),
- network_priority_protocols_hooks_ (0),
+ : protocols_hooks_ (nullptr),
+ network_priority_protocols_hooks_ (nullptr),
#if TAO_USE_LOCAL_MEMORY_POOL == 1
use_local_memory_pool_ (true),
#else
use_local_memory_pool_ (false),
#endif
lock_ (),
- thread_lane_resources_manager_ (0),
- collocation_resolver_ (0),
- stub_factory_ (0),
- protocol_factories_ (0),
+ thread_lane_resources_manager_ (nullptr),
+ collocation_resolver_ (nullptr),
+ stub_factory_ (nullptr),
+ protocol_factories_ (nullptr),
implrepo_service_ (CORBA::Object::_nil ()),
use_implrepo_ (0),
imr_endpoints_in_ior_ (1),
@@ -210,9 +210,9 @@ TAO_ORB_Core::TAO_ORB_Core (const char *orbid,
object_ref_table_ (),
object_key_table_ (),
orbid_ (ACE_OS::strdup (orbid ? orbid : "")),
- resource_factory_ (0),
- client_factory_ (0),
- server_factory_ (0),
+ resource_factory_ (nullptr),
+ client_factory_ (nullptr),
+ server_factory_ (nullptr),
ft_send_extended_sc_ (false),
opt_for_collocation_ (true),
use_global_collocation_ (true),
@@ -220,15 +220,15 @@ TAO_ORB_Core::TAO_ORB_Core (const char *orbid,
#if (TAO_HAS_CORBA_MESSAGING == 1)
- policy_manager_ (0),
- default_policies_ (0),
- policy_current_ (0),
+ policy_manager_ (nullptr),
+ default_policies_ (nullptr),
+ policy_current_ (nullptr),
#endif /* TAO_HAS_CORBA_MESSAGING == 1 */
poa_current_ (),
adapter_registry_ (this),
- poa_adapter_ (0),
+ poa_adapter_ (nullptr),
tm_ (),
tss_cleanup_funcs_ (),
tss_resources_ (),
@@ -239,33 +239,33 @@ TAO_ORB_Core::TAO_ORB_Core (const char *orbid,
// can only be initialized once.
thread_per_connection_use_timeout_ (1),
open_lock_ (),
- endpoint_selector_factory_ (0),
+ endpoint_selector_factory_ (nullptr),
#if (TAO_HAS_BUFFERING_CONSTRAINT_POLICY == 1)
- eager_transport_queueing_strategy_ (0),
- delayed_transport_queueing_strategy_ (0),
- flush_transport_queueing_strategy_ (0),
+ eager_transport_queueing_strategy_ (nullptr),
+ delayed_transport_queueing_strategy_ (nullptr),
+ flush_transport_queueing_strategy_ (nullptr),
#endif /* TAO_HAS_BUFFERING_CONSTRAINT_POLICY == 1 */
refcount_ (1),
- policy_factory_registry_ (0),
- orbinitializer_registry_ (0),
+ policy_factory_registry_ (nullptr),
+ orbinitializer_registry_ (nullptr),
#if (TAO_HAS_INTERCEPTORS == 1)
pi_current_ (CORBA::Object::_nil ()),
- client_request_interceptor_adapter_ (0),
- server_request_interceptor_adapter_ (0),
+ client_request_interceptor_adapter_ (nullptr),
+ server_request_interceptor_adapter_ (nullptr),
#endif /* TAO_HAS_INTERCEPTORS == 1 */
- ior_interceptor_adapter_ (0),
- valuetype_adapter_ (0),
+ ior_interceptor_adapter_ (nullptr),
+ valuetype_adapter_ (nullptr),
parser_registry_ (),
- bidir_adapter_ (0),
+ bidir_adapter_ (nullptr),
bidir_giop_policy_ (0),
- ziop_adapter_ (0),
+ ziop_adapter_ (nullptr),
ziop_enabled_ (false),
- flushing_strategy_ (0),
- codeset_manager_ (0),
+ flushing_strategy_ (nullptr),
+ codeset_manager_ (nullptr),
config_ (gestalt),
- sync_scope_hook_ (0),
+ sync_scope_hook_ (nullptr),
default_sync_scope_ (Messaging::SYNC_WITH_TRANSPORT),
- timeout_hook_ (0)
+ timeout_hook_ (nullptr)
{
#if (TAO_HAS_BUFFERING_CONSTRAINT_POLICY == 1)
@@ -294,7 +294,7 @@ TAO_ORB_Core::TAO_ORB_Core (const char *orbid,
this->set_sync_scope_hook (TAO_ORB_Core::default_sync_scope_hook);
}
-TAO_ORB_Core::~TAO_ORB_Core (void)
+TAO_ORB_Core::~TAO_ORB_Core ()
{
delete this->thread_lane_resources_manager_;
@@ -323,12 +323,12 @@ TAO_ORB_Core::~TAO_ORB_Core (void)
delete this->policy_factory_registry_;
// Don't delete, is a process wide singleton shared by all orbs
- orbinitializer_registry_ = 0;
+ orbinitializer_registry_ = nullptr;
::CORBA::release (this->orb_);
delete this->codeset_manager_;
- this->codeset_manager_ = 0;
+ this->codeset_manager_ = nullptr;
// This will destroy the service repository for this core
(void) TAO::ORB::close_services (this->config_);
@@ -434,19 +434,19 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
// the "-ORBUseIMR" command line argument.
//
char* const use_IMR_env_var_value = ACE_OS::getenv ("TAO_USE_IMR") ;
- if (use_IMR_env_var_value != 0)
+ if (use_IMR_env_var_value != nullptr)
{
this->use_implrepo_ = ACE_OS::atoi (use_IMR_env_var_value) ;
}
while (arg_shifter.is_anything_left ())
{
- const ACE_TCHAR *current_arg = 0;
+ const ACE_TCHAR *current_arg = nullptr;
////////////////////////////////////////////////////////////////
// begin with the 'parameterless' flags //
////////////////////////////////////////////////////////////////
- if (0 != (current_arg = arg_shifter.get_the_parameter
+ if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBDottedDecimalAddresses"))))
{
// Use dotted decimal addresses
@@ -456,7 +456,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBNoServerSideNameLookups"))))
{
// Don't look up the host name for incoming connections
@@ -465,7 +465,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBNameServicePort"))))
{
// Specify the port number for the NameService.
@@ -475,7 +475,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBMulticastDiscoveryEndpoint"))))
{
// Specify mcast address:port@network_interface for the
@@ -488,7 +488,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBNodelay"))))
{
// Use TCP_NODELAY or not.
@@ -497,7 +497,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBKeepalive"))))
{
// Use SO_KEEPALIVE or not.
@@ -506,7 +506,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBDontRoute"))))
{
// Use SO_DONTROUTE or not.
@@ -515,7 +515,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBIPHopLimit"))))
{
// Number of IP hops.
@@ -524,7 +524,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBIPMulticastLoop"))))
{
// Use IP_MULTICAST_LOOP or not.
@@ -533,7 +533,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBTradingServicePort"))))
{
// Specify the port number for the TradingService.
@@ -542,7 +542,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBImplRepoServicePort"))))
{
// Specify the multicast port number for the Implementation
@@ -551,7 +551,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBRcvSock"))))
{
// @@ All protocol implementation may not use sockets, so
@@ -564,7 +564,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBSndSock"))))
{
// @@ All protocol implementation may not use sockets, so
@@ -576,7 +576,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBObjRefStyle"))))
{
// Specifies the style of printed objrefs: URL or IOR
@@ -606,7 +606,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBCollocationStrategy"))))
{
// Specify which collocation policy we want to use.
@@ -626,7 +626,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBCollocation"))))
{
// Specify whether we want to optimize against collocation
@@ -658,21 +658,21 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBIIOPClientPortBase"))))
{
this->orb_params ()->iiop_client_port_base (ACE_OS::atoi (current_arg));
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBIIOPClientPortSpan"))))
{
this->orb_params ()->iiop_client_port_span (ACE_OS::atoi (current_arg));
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBPreferredInterfaces"))) ||
- 0 != (current_arg = arg_shifter.get_the_parameter
+ nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBPreferredInterface"))) )
{
if (this->orb_params ()->preferred_interfaces (
@@ -685,9 +685,9 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBEnforcePreferredInterfaces"))) ||
- 0 != (current_arg = arg_shifter.get_the_parameter
+ nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBEnforcePreferredInterface"))) )
{
this->orb_params ()->enforce_pref_interfaces (
@@ -698,7 +698,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
else if (0 != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBPreferIPV6Interfaces"))))
{
- int prefer_ipv6_interfaces = ACE_OS::atoi (current_arg);
+ int const prefer_ipv6_interfaces = ACE_OS::atoi (current_arg);
if (prefer_ipv6_interfaces)
this->orb_params ()->prefer_ipv6_interfaces (true);
else
@@ -709,7 +709,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
else if (0 != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBConnectIPV6Only"))))
{
- int connect_ipv6_only = ACE_OS::atoi (current_arg);
+ int const connect_ipv6_only = ACE_OS::atoi (current_arg);
if (connect_ipv6_only)
this->orb_params ()->connect_ipv6_only (true);
else
@@ -720,7 +720,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBUseIPV6LinkLocal"))))
{
- int use_ipv6_link_local = ACE_OS::atoi (current_arg);
+ int const use_ipv6_link_local = ACE_OS::atoi (current_arg);
if (use_ipv6_link_local)
this->orb_params ()->use_ipv6_link_local (true);
else
@@ -729,7 +729,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
#endif /* ACE_HAS_IPV6 */
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBCDRTradeoff"))))
{
cdr_tradeoff = ACE_OS::atoi (current_arg);
@@ -740,11 +740,11 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
// A new <ObjectID>:<IOR> mapping has been specified. This will be
// used by the resolve_initial_references ().
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBInitRef"))))
{
const ACE_TCHAR *pos = ACE_OS::strchr (current_arg, '=');
- if (pos == 0)
+ if (pos == nullptr)
{
TAOLIB_ERROR ((LM_ERROR,
ACE_TEXT ("Invalid ORBInitRef argument '%s'")
@@ -775,7 +775,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
}
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBDefaultInitRef"))))
{
// Set the list of prefixes from -ORBDefaultInitRef.
@@ -784,14 +784,14 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBStdProfileComponents"))))
{
std_profile_components =
ACE_OS::atoi (current_arg);
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBAMICollocation"))))
{
int const ami_collocation = ACE_OS::atoi (current_arg);
@@ -802,7 +802,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBResources"))))
{
TAOLIB_DEBUG ((LM_WARNING,
@@ -811,7 +811,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBLogFile"))))
{
// redirect all TAOLIB_DEBUG and TAOLIB_ERROR output to a file
@@ -834,7 +834,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
#else /* ! ACE_LACKS_IOSTREAM_TOTALLY */
- ofstream* output_stream = 0;
+ ofstream* output_stream = nullptr;
//
// note: we are allocating dynamic memory here....but
@@ -862,7 +862,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
ACE_LOG_MSG->clr_flags (ACE_Log_Msg::STDERR | ACE_Log_Msg::LOGGER);
ACE_LOG_MSG->set_flags (ACE_Log_Msg::OSTREAM);
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBVerboseLogging"))))
{
unsigned long const verbose_logging = ACE_OS::atoi (current_arg);
@@ -894,14 +894,14 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
dynamic_cast<ACE_Logging_Strategy*> (
ACE_Dynamic_Service<ACE_Service_Object>::instance (current_arg));
- if (logging_strategy != 0)
+ if (logging_strategy != nullptr)
{
logging_strategy->reactor (this->reactor ());
}
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBUseIMR"))))
{
// Use IR or not.
@@ -909,14 +909,14 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBIMREndpointsInIOR"))))
{
this->imr_endpoints_in_ior_ = ACE_OS::atoi (current_arg);
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBid"))))
{
// The ORBid is actually set in ORB_init(), and then passed
@@ -935,7 +935,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBServerId"))))
{
// The this->server_id_ is to uniquely identify a server to
@@ -945,21 +945,21 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBLingerTimeout"))))
{
linger = ACE_OS::atoi (current_arg);
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBAcceptErrorDelay"))))
{
accept_error_delay = ACE_OS::atoi (current_arg);
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBEndpoint"))))
{
// Each "endpoint" is of the form:
@@ -986,7 +986,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBListenEndpoints"))))
{
// This option is similar to the -ORBEndPoint option. May be
@@ -999,9 +999,9 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if ((0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBLaneEndpoint")))) ||
- (0 != (current_arg = arg_shifter.get_the_parameter
+ (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBLaneListenEndpoints")))))
{
// This option is similar to the -ORBEndPoint option but
@@ -1022,7 +1022,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
this->set_endpoint_helper (lane, endpoints);
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBNoProprietaryActivation"))))
{
// This option can be used to set to not use any proprietary
@@ -1035,34 +1035,34 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
throw ::CORBA::NO_IMPLEMENT ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBUseSharedProfile"))))
{
this->orb_params ()->shared_profile (ACE_OS::atoi (current_arg));
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBNegotiateCodesets"))))
{
negotiate_codesets = (ACE_OS::atoi (current_arg));
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBUseParallelConnects"))))
{
use_parallel_connects = ACE_OS::atoi (current_arg);
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBParallelConnectDelay"))))
{
this->orb_params ()->parallel_connect_delay
(ACE_OS::atoi (current_arg));
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBSingleReadOptimization"))))
{
this->orb_params ()->single_read_optimization
@@ -1070,7 +1070,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBDisableRTCollocation"))))
{
int disable_rt_collocation = ACE_OS::atoi (current_arg);
@@ -1081,31 +1081,31 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBUseLocalMemoryPool"))))
{
this->use_local_memory_pool_ = (0 != ACE_OS::atoi (current_arg));
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBMaxMessageSize"))))
{
this->orb_params_.max_message_size (ACE_OS::atoi (current_arg));
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBFTSendFullGroupTC"))))
{
this->ft_send_extended_sc_ = ACE_OS::atoi (current_arg);
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBForwardInvocationOnObjectNotExist"))))
{
- int forward = ACE_OS::atoi (current_arg);
+ int const forward = ACE_OS::atoi (current_arg);
if (forward)
this->orb_params_.forward_invocation_on_object_not_exist (true);
else
@@ -1113,81 +1113,81 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBForwardOnTransientLimit"))))
{
- int limit = ACE_OS::atoi (current_arg);
+ int const limit = ACE_OS::atoi (current_arg);
this->orb_params_.forward_on_exception_limit (TAO::FOE_TRANSIENT, limit);
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBForwardOnCommFailureLimit"))))
{
- int limit = ACE_OS::atoi (current_arg);
+ int const limit = ACE_OS::atoi (current_arg);
this->orb_params_.forward_on_exception_limit (
TAO::FOE_COMM_FAILURE, limit);
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBForwardOnObjectNotExistLimit"))))
{
- int limit = ACE_OS::atoi (current_arg);
+ int const limit = ACE_OS::atoi (current_arg);
this->orb_params_.forward_on_exception_limit (
TAO::FOE_OBJECT_NOT_EXIST, limit);
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBForwardOnInvObjrefLimit"))))
{
- int limit = ACE_OS::atoi (current_arg);
+ int const limit = ACE_OS::atoi (current_arg);
this->orb_params_.forward_on_exception_limit (
TAO::FOE_INV_OBJREF, limit);
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBForwardOnReplyClosedLimit"))))
{
- int limit = ACE_OS::atoi (current_arg);
+ int const limit = ACE_OS::atoi (current_arg);
this->orb_params_.invocation_retry_params ()
.forward_on_reply_closed_limit_ = limit;
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBForwardDelay"))))
{
- int msecs = ACE_OS::atoi (current_arg);
+ int const msecs = ACE_OS::atoi (current_arg);
ACE_Time_Value delay(0, 1000*msecs);
this->orb_params_.forward_on_exception_delay (delay);
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBForwardOnceOnObjectNotExist"))))
{
- int forward = ACE_OS::atoi (current_arg);
+ int const forward = ACE_OS::atoi (current_arg);
if (forward)
this->orb_params_.forward_once_exception (TAO::FOE_OBJECT_NOT_EXIST);
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBForwardOnceOnCommFailure"))))
{
- int forward = ACE_OS::atoi (current_arg);
+ int const forward = ACE_OS::atoi (current_arg);
if (forward)
this->orb_params_.forward_once_exception (TAO::FOE_COMM_FAILURE);
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBForwardOnceOnTransient"))))
{
- int forward = ACE_OS::atoi (current_arg);
+ int const forward = ACE_OS::atoi (current_arg);
if (forward)
this->orb_params_.forward_once_exception (TAO::FOE_TRANSIENT);
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBForwardOnceOnInvObjref"))))
{
int forward = ACE_OS::atoi (current_arg);
@@ -1196,14 +1196,14 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBAllowZIOPNoServerPolicies"))))
{
// This option takes a boolean 0 (off/dissallow) or 1 (on/allow)
this->orb_params_.allow_ziop_no_server_policies (!!ACE_OS::atoi (current_arg));
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBDynamicThreadPoolName"))))
{
this->orb_params_.dynamic_thread_pool_config_name (ACE_TEXT_ALWAYS_CHAR
@@ -1222,7 +1222,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
TAOLIB_ERROR ((LM_ERROR,
ACE_TEXT ("ERROR: Unknown \"-ORB\" option ")
ACE_TEXT ("<%s>.\n"),
- ((current_arg == 0) ? ACE_TEXT("<NULL>")
+ ((current_arg == nullptr) ? ACE_TEXT("<NULL>")
: current_arg)));
}
@@ -1247,7 +1247,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
const char *env_endpoint =
ACE_OS::getenv ("TAO_ORBENDPOINT");
- if (env_endpoint != 0)
+ if (env_endpoint != nullptr)
{
int result =
this->orb_params ()->add_endpoints (TAO_DEFAULT_LANE, env_endpoint);
@@ -1293,7 +1293,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
// services because we'll load the factory from there.
TAO_Resource_Factory *trf = this->resource_factory ();
- if (trf == 0)
+ if (trf == nullptr)
{
TAOLIB_ERROR ((LM_ERROR,
ACE_TEXT ("TAO (%P|%t) - %p\n"),
@@ -1313,7 +1313,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
// @@ ????
// Make sure the reactor is initialized...
ACE_Reactor *reactor = this->reactor ();
- if (reactor == 0)
+ if (reactor == nullptr)
{
TAOLIB_ERROR ((LM_ERROR,
ACE_TEXT ("TAO (%P|%t) - %p\n"),
@@ -1327,7 +1327,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
TAO_Server_Strategy_Factory *ssf = this->server_factory ();
- if (ssf == 0)
+ if (ssf == nullptr)
{
TAOLIB_ERROR ((LM_ERROR,
ACE_TEXT ("TAO (%P|%t) - %p\n"),
@@ -1465,7 +1465,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
(this->configuration (),
ACE_TEXT_CHAR_TO_TCHAR (protocols_hooks_name));
- if (this->protocols_hooks_ != 0)
+ if (this->protocols_hooks_ != nullptr)
{
// Initialize the protocols hooks instance.
this->protocols_hooks_->init_hooks (this);
@@ -1477,9 +1477,9 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
this->configuration (),
this->orb_params ()->poa_factory_name ());
- if (adapter_factory != 0)
+ if (adapter_factory != nullptr)
{
- adapter_factory->init (0, 0);
+ adapter_factory->init (0, nullptr);
}
// Look in the service repository for an instance of the
@@ -1493,7 +1493,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
(this->configuration (),
ACE_TEXT_CHAR_TO_TCHAR (network_priority_protocols_hooks_name.c_str()));
- if (this->network_priority_protocols_hooks_ != 0)
+ if (this->network_priority_protocols_hooks_ != nullptr)
{
// Initialize the protocols hooks instance.
this->network_priority_protocols_hooks_->init_hooks (this);
@@ -1511,7 +1511,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] )
int
-TAO_ORB_Core::fini (void)
+TAO_ORB_Core::fini ()
{
try
{
@@ -1565,7 +1565,7 @@ TAO_ORB_Core::fini (void)
//
// @todo Fix potential seg fault in
// TAO_ORB_Core::thread_lane_resources_manager().
- if (this->thread_lane_resources_manager_ != 0)
+ if (this->thread_lane_resources_manager_ != nullptr)
this->thread_lane_resources_manager_->finalize ();
// Destroy the object_key table
@@ -1586,7 +1586,7 @@ TAO_ORB_Core::set_resource_factory (const char *resource_factory_name)
void
TAO_ORB_Core::set_gui_resource_factory (TAO::GUIResource_Factory *gui_resource_factory)
{
- if (TAO_TSS_Resources::instance ()->gui_resource_factory_ != 0)
+ if (TAO_TSS_Resources::instance ()->gui_resource_factory_ != nullptr)
{
if (TAO_debug_level > 2)
{
@@ -1606,7 +1606,7 @@ TAO_ORB_Core::dynamic_adapter_name (const char *name)
}
const char *
-TAO_ORB_Core::dynamic_adapter_name (void)
+TAO_ORB_Core::dynamic_adapter_name ()
{
return TAO_ORB_Core_Static_Resources::instance ()->dynamic_adapter_name_.c_str();
}
@@ -1618,7 +1618,7 @@ TAO_ORB_Core::ifr_client_adapter_name (const char *name)
}
const char *
-TAO_ORB_Core::ifr_client_adapter_name (void)
+TAO_ORB_Core::ifr_client_adapter_name ()
{
return TAO_ORB_Core_Static_Resources::instance ()->ifr_client_adapter_name_.c_str();
}
@@ -1630,7 +1630,7 @@ TAO_ORB_Core::typecodefactory_adapter_name (const char *name)
}
const char *
-TAO_ORB_Core::typecodefactory_adapter_name (void)
+TAO_ORB_Core::typecodefactory_adapter_name ()
{
return TAO_ORB_Core_Static_Resources::instance ()->typecodefactory_adapter_name_.c_str();
}
@@ -1642,7 +1642,7 @@ TAO_ORB_Core::iorinterceptor_adapter_factory_name (const char *name)
}
const char *
-TAO_ORB_Core::iorinterceptor_adapter_factory_name (void)
+TAO_ORB_Core::iorinterceptor_adapter_factory_name ()
{
return TAO_ORB_Core_Static_Resources::instance ()->iorinterceptor_adapter_factory_name_.c_str();
}
@@ -1654,16 +1654,16 @@ TAO_ORB_Core::valuetype_adapter_factory_name (const char *name)
}
const char *
-TAO_ORB_Core::valuetype_adapter_factory_name (void)
+TAO_ORB_Core::valuetype_adapter_factory_name ()
{
return TAO_ORB_Core_Static_Resources::instance ()->valuetype_adapter_factory_name_.c_str();
}
TAO_Resource_Factory *
-TAO_ORB_Core::resource_factory (void)
+TAO_ORB_Core::resource_factory ()
{
// Check if there is a cached reference.
- if (this->resource_factory_ != 0)
+ if (this->resource_factory_ != nullptr)
{
return this->resource_factory_;
}
@@ -1681,17 +1681,17 @@ TAO_ORB_Core::resource_factory (void)
}
TAO::GUIResource_Factory *
-TAO_ORB_Core::gui_resource_factory (void)
+TAO_ORB_Core::gui_resource_factory ()
{
return TAO_TSS_Resources::instance ()->gui_resource_factory_;
}
TAO_Thread_Lane_Resources_Manager &
-TAO_ORB_Core::thread_lane_resources_manager (void)
+TAO_ORB_Core::thread_lane_resources_manager ()
{
// Check if there is a cached reference.
- if (this->thread_lane_resources_manager_ != 0)
+ if (this->thread_lane_resources_manager_ != nullptr)
return *this->thread_lane_resources_manager_;
// If not, lookup the corresponding factory and ask it to make one.
@@ -1710,10 +1710,10 @@ TAO_ORB_Core::thread_lane_resources_manager (void)
}
TAO_Collocation_Resolver &
-TAO_ORB_Core::collocation_resolver (void)
+TAO_ORB_Core::collocation_resolver ()
{
// Check if there is a cached reference.
- if (this->collocation_resolver_ != 0)
+ if (this->collocation_resolver_ != nullptr)
return *this->collocation_resolver_;
// If not, lookup it up.
@@ -1726,7 +1726,7 @@ TAO_ORB_Core::collocation_resolver (void)
}
TAO::PolicyFactory_Registry_Adapter *
-TAO_ORB_Core::policy_factory_registry_i (void)
+TAO_ORB_Core::policy_factory_registry_i ()
{
TAO_PolicyFactory_Registry_Factory *loader =
@@ -1734,7 +1734,7 @@ TAO_ORB_Core::policy_factory_registry_i (void)
(this->configuration (),
ACE_TEXT ("PolicyFactory_Loader"));
- if (loader == 0)
+ if (loader == nullptr)
{
this->configuration ()->process_directive (
ACE_DYNAMIC_VERSIONED_SERVICE_DIRECTIVE("PolicyFactory_Loader",
@@ -1748,7 +1748,7 @@ TAO_ORB_Core::policy_factory_registry_i (void)
ACE_TEXT ("PolicyFactory_Loader"));
}
- if (loader != 0)
+ if (loader != nullptr)
{
this->policy_factory_registry_ =
loader->create ();
@@ -1758,10 +1758,10 @@ TAO_ORB_Core::policy_factory_registry_i (void)
}
TAO_ZIOP_Adapter *
-TAO_ORB_Core::ziop_adapter_i (void)
+TAO_ORB_Core::ziop_adapter_i ()
{
// Check if there is a cached reference.
- if (this->ziop_adapter_ != 0)
+ if (this->ziop_adapter_ != nullptr)
return this->ziop_adapter_;
this->ziop_adapter_ =
@@ -1773,7 +1773,7 @@ TAO_ORB_Core::ziop_adapter_i (void)
}
TAO::ORBInitializer_Registry_Adapter *
-TAO_ORB_Core::orbinitializer_registry_i (void)
+TAO_ORB_Core::orbinitializer_registry_i ()
{
// @todo The ORBInitializer_Registry is supposed to be a singleton.
@@ -1787,7 +1787,7 @@ TAO_ORB_Core::orbinitializer_registry_i (void)
// In case we build shared, try to load the PI Client library, in a
// static build we just can't do this, so don't try it, lower layers
// output an error then.
- if (this->orbinitializer_registry_ == 0)
+ if (this->orbinitializer_registry_ == nullptr)
{
this->configuration ()->process_directive (
ACE_DYNAMIC_VERSIONED_SERVICE_DIRECTIVE ("ORBInitializer_Registry",
@@ -1806,10 +1806,10 @@ TAO_ORB_Core::orbinitializer_registry_i (void)
}
TAO_Stub_Factory *
-TAO_ORB_Core::stub_factory (void)
+TAO_ORB_Core::stub_factory ()
{
// Check if there is a cached reference.
- if (this->stub_factory_ != 0)
+ if (this->stub_factory_ != nullptr)
return this->stub_factory_;
// If not, look in the service repository for an instance.
@@ -1825,10 +1825,10 @@ TAO_ORB_Core::stub_factory (void)
}
TAO_Endpoint_Selector_Factory *
-TAO_ORB_Core::endpoint_selector_factory (void)
+TAO_ORB_Core::endpoint_selector_factory ()
{
// Check if there is a cached reference.
- if (this->endpoint_selector_factory_ != 0)
+ if (this->endpoint_selector_factory_ != nullptr)
return this->endpoint_selector_factory_;
// If not, look in the service repository for an instance.
@@ -1854,7 +1854,7 @@ TAO_ORB_Core::set_network_priority_protocols_hooks (
}
void
-TAO_ORB_Core::services_callbacks_init (void)
+TAO_ORB_Core::services_callbacks_init ()
{
// We (should) know what are the services that would need
// callbacks. So, what we do is go through the Service Configurator
@@ -1899,9 +1899,9 @@ TAO_ORB_Core::service_raise_transient_failure (
}
TAO_Client_Strategy_Factory *
-TAO_ORB_Core::client_factory (void)
+TAO_ORB_Core::client_factory ()
{
- if (this->client_factory_ == 0)
+ if (this->client_factory_ == nullptr)
{
// Look in the service repository for an instance.
this->client_factory_ =
@@ -1914,9 +1914,9 @@ TAO_ORB_Core::client_factory (void)
}
TAO_Server_Strategy_Factory *
-TAO_ORB_Core::server_factory (void)
+TAO_ORB_Core::server_factory ()
{
- if (this->server_factory_ == 0)
+ if (this->server_factory_ == nullptr)
{
// Look in the service repository for an instance.
this->server_factory_ =
@@ -1929,7 +1929,7 @@ TAO_ORB_Core::server_factory (void)
}
CORBA::Object_ptr
-TAO_ORB_Core::root_poa (void)
+TAO_ORB_Core::root_poa ()
{
// DCL ..
if (CORBA::is_nil (this->root_poa_.in ()))
@@ -1943,7 +1943,7 @@ TAO_ORB_Core::root_poa (void)
(this->configuration (),
this->orb_params ()->poa_factory_name ());
- if (factory == 0)
+ if (factory == nullptr)
{
this->configuration()->process_directive (
this->orb_params ()->poa_factory_directive ());
@@ -1954,7 +1954,7 @@ TAO_ORB_Core::root_poa (void)
this->orb_params ()->poa_factory_name ());
}
- if (factory == 0)
+ if (factory == nullptr)
{
return CORBA::Object::_nil ();
}
@@ -1962,15 +1962,11 @@ TAO_ORB_Core::root_poa (void)
ACE_GUARD_RETURN (TAO_SYNCH_MUTEX,
monitor,
this->open_lock_,
- 0);
+ nullptr);
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
@@ -1986,12 +1982,12 @@ TAO_ORB_Core::root_poa (void)
}
TAO_Adapter *
-TAO_ORB_Core::poa_adapter (void)
+TAO_ORB_Core::poa_adapter ()
{
- if (this->poa_adapter_ == 0)
+ if (this->poa_adapter_ == nullptr)
{
- ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 0);
- if (this->poa_adapter_ == 0)
+ ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, nullptr);
+ if (this->poa_adapter_ == nullptr)
{
this->poa_adapter_ =
this->adapter_registry_.find_adapter ("RootPOA");
@@ -2033,7 +2029,7 @@ TAO_ORB_Core::create_stub_object (TAO_MProfile &mprofile,
// orbos\98-05-05.pdf Section 5.4)
if (policy_list->length () != 0)
{
- TAO_Profile * profile = 0;
+ TAO_Profile * profile = nullptr;
CORBA::ULong const count = mprofile.profile_count ();
for (CORBA::ULong i = 0; i < count; ++i)
@@ -2055,7 +2051,7 @@ TAO_ORB_Core::create_stub_object (TAO_MProfile &mprofile,
void
TAO_ORB_Core::load_policy_validators (TAO_Policy_Validator &validator)
{
- if (this->bidir_adapter_ == 0)
+ if (this->bidir_adapter_ == nullptr)
{
this->bidir_adapter_ =
ACE_Dynamic_Service<TAO_BiDir_Adapter>::instance
@@ -2085,7 +2081,7 @@ TAO_ORB_Core::create_object (TAO_Stub *stub)
// @@ We should thow CORBA::NO_MEMORY in platforms with exceptions,
// but we are stuck in platforms without exceptions!
TAO_ORB_Core_Auto_Ptr collocated_orb_core;
- CORBA::Object_ptr x = 0;
+ CORBA::Object_ptr x = nullptr;
{
// Lock the ORB_Table against concurrent modification while we
@@ -2123,7 +2119,7 @@ TAO_ORB_Core::create_object (TAO_Stub *stub)
// Remote one.
ACE_NEW_RETURN (x,
CORBA::Object (stub, 0),
- 0);
+ nullptr);
}
return x;
@@ -2198,7 +2194,7 @@ TAO_ORB_Core::is_collocation_enabled (TAO_ORB_Core *orb_core,
{
TAO_MProfile mp_temp;
- TAO_Profile* profile = 0;
+ TAO_Profile* profile = nullptr;
if (this->service_profile_selection(mp, profile) && profile)
{
if (mp_temp.add_profile(profile) == -1)
@@ -2239,13 +2235,13 @@ TAO_ORB_Core::is_collocated (const TAO_MProfile& mprofile)
// ****************************************************************
TAO_Leader_Follower &
-TAO_ORB_Core::leader_follower (void)
+TAO_ORB_Core::leader_follower ()
{
return this->lane_resources ().leader_follower ();
}
TAO_LF_Strategy &
-TAO_ORB_Core::lf_strategy (void)
+TAO_ORB_Core::lf_strategy ()
{
return this->thread_lane_resources_manager ().lf_strategy ();
}
@@ -2333,7 +2329,7 @@ TAO_ORB_Core::run (ACE_Time_Value *tv, int perform_work)
break;
}
if (result == 0
- && tv != 0
+ && tv != nullptr
&& *tv == ACE_Time_Value::zero)
{
// A timeout, terminate the loop...
@@ -2352,7 +2348,7 @@ TAO_ORB_Core::run (ACE_Time_Value *tv, int perform_work)
// wait only in the parent thread.
if (this->has_shutdown () == true &&
(this->server_factory_->activate_server_connections () ||
- (this->tm_.task() == 0 && this->tm_.count_threads() > 0) ) )
+ (this->tm_.task() == nullptr && this->tm_.count_threads() > 0) ) )
{
this->tm_.wait ();
}
@@ -2415,7 +2411,7 @@ TAO_ORB_Core::shutdown (CORBA::Boolean wait_for_completion)
ACE_GUARD (TAO_SYNCH_MUTEX, monitor, this->lock_);
delete this->valuetype_adapter_;
- this->valuetype_adapter_ = 0;
+ this->valuetype_adapter_ = nullptr;
}
// Explicitly destroy the object reference table since it
@@ -2436,7 +2432,7 @@ TAO_ORB_Core::shutdown (CORBA::Boolean wait_for_completion)
}
void
-TAO_ORB_Core::destroy (void)
+TAO_ORB_Core::destroy ()
{
// All destroy() should do is (a) call shutdown() and (b) unbind()
// from the ORB table. Nothing else should really be added to this
@@ -2472,7 +2468,7 @@ TAO_ORB_Core::destroy (void)
}
void
-TAO_ORB_Core::check_shutdown (void)
+TAO_ORB_Core::check_shutdown ()
{
if (this->has_shutdown ())
{
@@ -2485,36 +2481,36 @@ TAO_ORB_Core::check_shutdown (void)
}
void
-TAO_ORB_Core::destroy_interceptors (void)
+TAO_ORB_Core::destroy_interceptors ()
{
try
{
ACE_GUARD (TAO_SYNCH_MUTEX, monitor, this->lock_);
#if TAO_HAS_INTERCEPTORS == 1
- if (this->client_request_interceptor_adapter_ != 0)
+ if (this->client_request_interceptor_adapter_ != nullptr)
{
this->client_request_interceptor_adapter_->destroy_interceptors ();
delete this->client_request_interceptor_adapter_;
- this->client_request_interceptor_adapter_ = 0;
+ this->client_request_interceptor_adapter_ = nullptr;
}
- if (this->server_request_interceptor_adapter_ != 0)
+ if (this->server_request_interceptor_adapter_ != nullptr)
{
this->server_request_interceptor_adapter_->destroy_interceptors ();
delete this->server_request_interceptor_adapter_;
- this->server_request_interceptor_adapter_ = 0;
+ this->server_request_interceptor_adapter_ = nullptr;
}
#endif /* TAO_HAS_INTERCEPTORS == 1 */
- if (this->ior_interceptor_adapter_ != 0)
+ if (this->ior_interceptor_adapter_ != nullptr)
{
this->ior_interceptor_adapter_->destroy_interceptors ();
- this->ior_interceptor_adapter_ = 0;
+ this->ior_interceptor_adapter_ = nullptr;
}
}
@@ -2533,20 +2529,20 @@ TAO_ORB_Core::destroy_interceptors (void)
}
TAO_Thread_Lane_Resources &
-TAO_ORB_Core::lane_resources (void)
+TAO_ORB_Core::lane_resources ()
{
return this->thread_lane_resources_manager ().lane_resources ();
}
void
-TAO_ORB_Core::resolve_typecodefactory_i (void)
+TAO_ORB_Core::resolve_typecodefactory_i ()
{
TAO_Object_Loader *loader =
ACE_Dynamic_Service<TAO_Object_Loader>::instance
(this->configuration (),
ACE_TEXT ("TypeCodeFactory_Loader"));
- if (loader == 0)
+ if (loader == nullptr)
{
this->configuration ()->process_directive
(ACE_DYNAMIC_VERSIONED_SERVICE_DIRECTIVE("TypeCodeFactory",
@@ -2559,7 +2555,7 @@ TAO_ORB_Core::resolve_typecodefactory_i (void)
(this->configuration (),
ACE_TEXT ("TypeCodeFactory_Loader"));
- if (loader == 0)
+ if (loader == nullptr)
{
TAOLIB_ERROR ((LM_ERROR,
ACE_TEXT ("TAO (%P|%t) Unable to instantiate ")
@@ -2569,18 +2565,18 @@ TAO_ORB_Core::resolve_typecodefactory_i (void)
}
this->typecode_factory_ =
- loader->create_object (this->orb_, 0, 0);
+ loader->create_object (this->orb_, 0, nullptr);
}
void
-TAO_ORB_Core::resolve_codecfactory_i (void)
+TAO_ORB_Core::resolve_codecfactory_i ()
{
TAO_Object_Loader *loader =
ACE_Dynamic_Service<TAO_Object_Loader>::instance
(this->configuration (),
ACE_TEXT ("CodecFactory_Loader"));
- if (loader == 0)
+ if (loader == nullptr)
{
this->configuration()->process_directive
(ACE_DYNAMIC_VERSIONED_SERVICE_DIRECTIVE("CodecFactory",
@@ -2593,22 +2589,22 @@ TAO_ORB_Core::resolve_codecfactory_i (void)
(this->configuration (), ACE_TEXT ("CodecFactory_Loader"));
}
- if (loader != 0)
+ if (loader != nullptr)
{
this->codec_factory_ =
- loader->create_object (this->orb_, 0, 0);
+ loader->create_object (this->orb_, 0, nullptr);
}
}
void
-TAO_ORB_Core::resolve_compression_manager_i (void)
+TAO_ORB_Core::resolve_compression_manager_i ()
{
TAO_Object_Loader *loader =
ACE_Dynamic_Service<TAO_Object_Loader>::instance
(this->configuration (),
ACE_TEXT ("Compression_Loader"));
- if (loader == 0)
+ if (loader == nullptr)
{
this->configuration()->process_directive
(ACE_DYNAMIC_VERSIONED_SERVICE_DIRECTIVE("Compression",
@@ -2621,21 +2617,21 @@ TAO_ORB_Core::resolve_compression_manager_i (void)
(this->configuration (), ACE_TEXT ("Compression_Loader"));
}
- if (loader != 0)
+ if (loader != nullptr)
{
- this->compression_manager_ = loader->create_object (this->orb_, 0, 0);
+ this->compression_manager_ = loader->create_object (this->orb_, 0, nullptr);
}
}
void
-TAO_ORB_Core::resolve_poa_current_i (void)
+TAO_ORB_Core::resolve_poa_current_i ()
{
TAO_Object_Loader *loader =
ACE_Dynamic_Service<TAO_Object_Loader>::instance
(this->configuration(),
ACE_TEXT ("TAO_POA_Current_Factory"));
- if (loader == 0)
+ if (loader == nullptr)
{
this->configuration()->process_directive
(ACE_DYNAMIC_VERSIONED_SERVICE_DIRECTIVE("TAO_POA_Current_Factory",
@@ -2648,9 +2644,9 @@ TAO_ORB_Core::resolve_poa_current_i (void)
(this->configuration(), ACE_TEXT ("TAO_POA_Current_Factory"));
}
- if (loader != 0)
+ if (loader != nullptr)
{
- this->poa_current_ = loader->create_object (this->orb_, 0, 0);
+ this->poa_current_ = loader->create_object (this->orb_, 0, nullptr);
}
}
@@ -2658,14 +2654,14 @@ TAO_ORB_Core::resolve_poa_current_i (void)
#if TAO_HAS_INTERCEPTORS == 1
void
-TAO_ORB_Core::resolve_picurrent_i (void)
+TAO_ORB_Core::resolve_picurrent_i ()
{
TAO_Object_Loader *loader =
ACE_Dynamic_Service<TAO_Object_Loader>::instance
(this->configuration (),
ACE_TEXT ("PICurrent_Loader"));
- if (loader == 0)
+ if (loader == nullptr)
{
this->configuration ()->process_directive
(ACE_DYNAMIC_VERSIONED_SERVICE_DIRECTIVE("PICurrent_Loader",
@@ -2678,9 +2674,9 @@ TAO_ORB_Core::resolve_picurrent_i (void)
(this->configuration (), ACE_TEXT ("PICurrent_Loader"));
}
- if (loader != 0)
+ if (loader != nullptr)
{
- CORBA::Object_ptr pi = loader->create_object (this->orb_, 0, 0);
+ CORBA::Object_ptr pi = loader->create_object (this->orb_, 0, nullptr);
this->pi_current_ = pi;
}
@@ -2690,14 +2686,14 @@ TAO_ORB_Core::resolve_picurrent_i (void)
void
-TAO_ORB_Core::resolve_dynanyfactory_i (void)
+TAO_ORB_Core::resolve_dynanyfactory_i ()
{
TAO_Object_Loader *loader =
ACE_Dynamic_Service<TAO_Object_Loader>::instance
(this->configuration (),
ACE_TEXT ("DynamicAny_Loader"));
- if (loader == 0)
+ if (loader == nullptr)
{
this->configuration ()->process_directive
(ACE_DYNAMIC_VERSIONED_SERVICE_DIRECTIVE("DynamicAny_Loader",
@@ -2711,21 +2707,21 @@ TAO_ORB_Core::resolve_dynanyfactory_i (void)
ACE_TEXT ("DynamicAny_Loader"));
}
- if (loader != 0)
+ if (loader != nullptr)
{
- this->dynany_factory_ = loader->create_object (this->orb_, 0, 0);
+ this->dynany_factory_ = loader->create_object (this->orb_, 0, nullptr);
}
}
void
-TAO_ORB_Core::resolve_iormanipulation_i (void)
+TAO_ORB_Core::resolve_iormanipulation_i ()
{
TAO_Object_Loader *loader =
ACE_Dynamic_Service<TAO_Object_Loader>::instance
(this->configuration (),
ACE_TEXT ("IORManip_Loader"));
- if (loader == 0)
+ if (loader == nullptr)
{
this->configuration()->process_directive
(ACE_DYNAMIC_VERSIONED_SERVICE_DIRECTIVE("IORManip_Loader",
@@ -2738,19 +2734,19 @@ TAO_ORB_Core::resolve_iormanipulation_i (void)
(this->configuration (), ACE_TEXT ("IORManip_Loader"));
}
- if (loader != 0)
+ if (loader != nullptr)
{
- this->ior_manip_factory_ = loader->create_object (this->orb_, 0, 0);
+ this->ior_manip_factory_ = loader->create_object (this->orb_, 0, nullptr);
}
}
void
-TAO_ORB_Core::resolve_ior_table_i (void)
+TAO_ORB_Core::resolve_ior_table_i ()
{
TAO_Adapter_Factory *factory =
ACE_Dynamic_Service<TAO_Adapter_Factory>::instance
(this->configuration (), ACE_TEXT("TAO_IORTable"));
- if (factory == 0)
+ if (factory == nullptr)
{
this->configuration ()->process_directive
(ACE_DYNAMIC_VERSIONED_SERVICE_DIRECTIVE("TAO_IORTable",
@@ -2763,7 +2759,7 @@ TAO_ORB_Core::resolve_ior_table_i (void)
(this->configuration (), ACE_TEXT("TAO_IORTable"));
}
- if (factory != 0)
+ if (factory != nullptr)
{
ACE_Auto_Ptr <TAO_Adapter> iortable_adapter (factory->create (this));
iortable_adapter->open ();
@@ -2779,12 +2775,12 @@ TAO_ORB_Core::resolve_ior_table_i (void)
}
void
-TAO_ORB_Core::resolve_async_ior_table_i (void)
+TAO_ORB_Core::resolve_async_ior_table_i ()
{
TAO_Adapter_Factory *factory =
ACE_Dynamic_Service<TAO_Adapter_Factory>::instance
(this->configuration (), ACE_TEXT("TAO_Async_IORTable"));
- if (factory == 0)
+ if (factory == nullptr)
{
this->configuration ()->process_directive
(ACE_DYNAMIC_VERSIONED_SERVICE_DIRECTIVE("TAO_Async_IORTable",
@@ -2797,7 +2793,7 @@ TAO_ORB_Core::resolve_async_ior_table_i (void)
(this->configuration (), ACE_TEXT("TAO_Async_IORTable"));
}
- if (factory != 0)
+ if (factory != nullptr)
{
ACE_Auto_Ptr <TAO_Adapter> iortable_adapter (factory->create (this));
iortable_adapter->open ();
@@ -2813,14 +2809,14 @@ TAO_ORB_Core::resolve_async_ior_table_i (void)
}
void
-TAO_ORB_Core::resolve_monitor_i (void)
+TAO_ORB_Core::resolve_monitor_i ()
{
TAO_Object_Loader *loader =
ACE_Dynamic_Service<TAO_Object_Loader>::instance
(this->configuration (),
ACE_TEXT ("Monitor_Init"));
- if (loader == 0)
+ if (loader == nullptr)
{
this->configuration ()->process_directive
(ACE_DYNAMIC_VERSIONED_SERVICE_DIRECTIVE("Monitor_Init",
@@ -2834,9 +2830,9 @@ TAO_ORB_Core::resolve_monitor_i (void)
ACE_TEXT ("Monitor_Init"));
}
- if (loader != 0)
+ if (loader != nullptr)
{
- this->monitor_ = loader->create_object (this->orb_, 0, 0);
+ this->monitor_ = loader->create_object (this->orb_, 0, nullptr);
}
}
@@ -2918,7 +2914,7 @@ TAO_ORB_Core::resolve_rir (const char *name)
}
CORBA::ORB::ObjectIdList *
-TAO_ORB_Core::list_initial_references (void)
+TAO_ORB_Core::list_initial_references ()
{
// Unsupported initial services should NOT be included in the below list!
static const char *initial_services[] = { TAO_LIST_OF_INITIAL_SERVICES };
@@ -2933,7 +2929,7 @@ TAO_ORB_Core::list_initial_references (void)
+ this->init_ref_map_.size ()
+ this->object_ref_table_.current_size ();
- CORBA::ORB::ObjectIdList *tmp = 0;
+ CORBA::ORB::ObjectIdList *tmp = nullptr;
ACE_NEW_THROW_EX (tmp,
CORBA::ORB::ObjectIdList (
@@ -2976,46 +2972,46 @@ TAO_ORB_Core::list_initial_references (void)
// ****************************************************************
ACE_Allocator*
-TAO_ORB_Core::input_cdr_dblock_allocator (void)
+TAO_ORB_Core::input_cdr_dblock_allocator ()
{
return this->lane_resources ().input_cdr_dblock_allocator ();
}
ACE_Allocator*
-TAO_ORB_Core::input_cdr_buffer_allocator (void)
+TAO_ORB_Core::input_cdr_buffer_allocator ()
{
return this->lane_resources ().input_cdr_buffer_allocator ();
}
ACE_Allocator*
-TAO_ORB_Core::input_cdr_msgblock_allocator (void)
+TAO_ORB_Core::input_cdr_msgblock_allocator ()
{
return this->lane_resources ().input_cdr_msgblock_allocator ();
}
ACE_Allocator*
-TAO_ORB_Core::output_cdr_dblock_allocator (void)
+TAO_ORB_Core::output_cdr_dblock_allocator ()
{
return this->lane_resources ().output_cdr_dblock_allocator ();
}
ACE_Allocator*
-TAO_ORB_Core::output_cdr_buffer_allocator (void)
+TAO_ORB_Core::output_cdr_buffer_allocator ()
{
return this->lane_resources ().output_cdr_buffer_allocator ();
}
ACE_Allocator*
-TAO_ORB_Core::output_cdr_msgblock_allocator (void)
+TAO_ORB_Core::output_cdr_msgblock_allocator ()
{
return this->lane_resources ().output_cdr_msgblock_allocator ();
}
ACE_Allocator *
-TAO_ORB_Core::transport_message_buffer_allocator (void)
+TAO_ORB_Core::transport_message_buffer_allocator ()
{
return this->lane_resources ().transport_message_buffer_allocator ();
}
@@ -3025,15 +3021,15 @@ ACE_Data_Block*
TAO_ORB_Core::create_input_cdr_data_block (size_t size)
{
- ACE_Allocator *dblock_allocator = 0;
- ACE_Allocator *buffer_allocator = 0;
+ ACE_Allocator *dblock_allocator = nullptr;
+ ACE_Allocator *buffer_allocator = nullptr;
dblock_allocator =
this->input_cdr_dblock_allocator ();
buffer_allocator =
this->input_cdr_buffer_allocator ();
- ACE_Lock* lock_strategy = 0;
+ ACE_Lock* lock_strategy = nullptr;
if (this->resource_factory ()->use_locked_data_blocks ())
{
lock_strategy = &this->data_block_lock_;
@@ -3051,7 +3047,7 @@ TAO_ORB_Core::create_data_block_i (size_t size,
ACE_Allocator *dblock_allocator,
ACE_Lock *lock_strategy)
{
- ACE_Data_Block *nb = 0;
+ ACE_Data_Block *nb = nullptr;
ACE_NEW_MALLOC_RETURN (
nb,
@@ -3059,18 +3055,18 @@ TAO_ORB_Core::create_data_block_i (size_t size,
dblock_allocator->malloc (sizeof (ACE_Data_Block))),
ACE_Data_Block (size,
ACE_Message_Block::MB_DATA,
- 0,
+ nullptr,
buffer_allocator,
lock_strategy,
0,
dblock_allocator),
- 0);
+ nullptr);
return nb;
}
TAO_Connector_Registry *
-TAO_ORB_Core::connector_registry (void)
+TAO_ORB_Core::connector_registry ()
{
TAO_Connector_Registry *conn =
this->lane_resources ().connector_registry ();
@@ -3088,13 +3084,13 @@ TAO_ORB_Core::fragmentation_strategy (TAO_Transport * transport)
}
ACE_Reactor *
-TAO_ORB_Core::reactor (void)
+TAO_ORB_Core::reactor ()
{
return this->leader_follower ().reactor ();
}
CORBA::Object_ptr
-TAO_ORB_Core::implrepo_service (void)
+TAO_ORB_Core::implrepo_service ()
{
if (!this->use_implrepo_)
return CORBA::Object::_nil ();
@@ -3130,7 +3126,7 @@ TAO_ORB_Core::default_sync_scope_hook (TAO_ORB_Core *oc,
Messaging::SyncScope &scope)
{
has_synchronization = true;
- scope = (oc == 0) ? Messaging::SYNC_WITH_TRANSPORT : oc->default_sync_scope_;
+ scope = (oc == nullptr) ? Messaging::SYNC_WITH_TRANSPORT : oc->default_sync_scope_;
}
void
@@ -3140,7 +3136,7 @@ TAO_ORB_Core::call_sync_scope_hook (TAO_Stub *stub,
{
Sync_Scope_Hook sync_scope_hook = this->sync_scope_hook_;
- if (sync_scope_hook == 0)
+ if (sync_scope_hook == nullptr)
{
has_synchronization = false;
return;
@@ -3176,7 +3172,7 @@ TAO_ORB_Core::get_transport_queueing_strategy (TAO_Stub *,
break;
default:
{
- return 0;
+ return nullptr;
}
}
}
@@ -3196,7 +3192,7 @@ TAO_ORB_Core::call_timeout_hook (TAO_Stub *stub,
{
Timeout_Hook timeout_hook = this->timeout_hook_;
- if (timeout_hook == 0)
+ if (timeout_hook == nullptr)
{
has_timeout = false;
return;
@@ -3212,7 +3208,7 @@ TAO_ORB_Core::connection_timeout (TAO_Stub *stub,
Timeout_Hook connection_timeout_hook =
TAO_ORB_Core_Static_Resources::instance ()->connection_timeout_hook_;
- if (connection_timeout_hook == 0)
+ if (connection_timeout_hook == nullptr)
{
has_timeout = false;
return;
@@ -3223,7 +3219,7 @@ TAO_ORB_Core::connection_timeout (TAO_Stub *stub,
Timeout_Hook alt_connection_timeout_hook =
TAO_ORB_Core_Static_Resources::instance ()->alt_connection_timeout_hook_;
- if (alt_connection_timeout_hook == 0)
+ if (alt_connection_timeout_hook == nullptr)
return;
if (!has_timeout || time_value == ACE_Time_Value::zero )
@@ -3267,7 +3263,7 @@ TAO_ORB_Core::connection_timeout_hook (Timeout_Hook hook)
// keep this code lockless as it always was, assuming no
// simultanious overwrite will occur.
- if (TOCSRi->connection_timeout_hook_ == 0)
+ if (TOCSRi->connection_timeout_hook_ == nullptr)
{
if (TAO_debug_level > 2)
{
@@ -3278,7 +3274,7 @@ TAO_ORB_Core::connection_timeout_hook (Timeout_Hook hook)
TOCSRi->connection_timeout_hook_ = hook;
}
else if (TOCSRi->connection_timeout_hook_ != hook &&
- TOCSRi->alt_connection_timeout_hook_ == 0)
+ TOCSRi->alt_connection_timeout_hook_ == nullptr)
{
if (TAO_debug_level > 2)
{
@@ -3308,7 +3304,7 @@ TAO_ORB_Core::get_policy (CORBA::PolicyType type)
CORBA::Policy_var result;
TAO_Policy_Manager *policy_manager = this->policy_manager ();
- if (policy_manager != 0)
+ if (policy_manager != nullptr)
{
result = policy_manager->get_policy (type);
}
@@ -3342,7 +3338,7 @@ TAO_ORB_Core::get_cached_policy (TAO_Cached_Policy_Type type)
CORBA::Policy_var result;
TAO_Policy_Manager *policy_manager = this->policy_manager ();
- if (policy_manager != 0)
+ if (policy_manager != nullptr)
{
result = policy_manager->get_cached_policy (type);
}
@@ -3373,7 +3369,7 @@ TAO_ORB_Core::get_cached_policy_including_current (TAO_Cached_Policy_Type type)
#endif /* (TAO_HAS_CORBA_MESSAGING == 1) */
CORBA::Environment *
-TAO_ORB_Core::default_environment (void) const
+TAO_ORB_Core::default_environment () const
{
return TAO_TSS_Resources::instance ()->default_environment_;
}
@@ -3404,16 +3400,16 @@ TAO_ORB_Core::add_interceptor (
}
TAO_IORInterceptor_Adapter *
-TAO_ORB_Core::ior_interceptor_adapter (void)
+TAO_ORB_Core::ior_interceptor_adapter ()
{
- if (this->ior_interceptor_adapter_ == 0)
+ if (this->ior_interceptor_adapter_ == nullptr)
{
ACE_GUARD_RETURN (TAO_SYNCH_MUTEX,
ace_mon,
this->lock_,
- 0);
+ nullptr);
- if (this->ior_interceptor_adapter_ == 0)
+ if (this->ior_interceptor_adapter_ == nullptr)
{
try
{
@@ -3462,16 +3458,16 @@ TAO_ORB_Core::add_interceptor (
}
TAO::ClientRequestInterceptor_Adapter *
-TAO_ORB_Core::clientrequestinterceptor_adapter_i (void)
+TAO_ORB_Core::clientrequestinterceptor_adapter_i ()
{
- if (this->client_request_interceptor_adapter_ == 0)
+ if (this->client_request_interceptor_adapter_ == nullptr)
{
ACE_GUARD_RETURN (TAO_SYNCH_MUTEX,
ace_mon,
this->lock_,
- 0);
+ nullptr);
- if (this->client_request_interceptor_adapter_ == 0)
+ if (this->client_request_interceptor_adapter_ == nullptr)
{
TAO_ClientRequestInterceptor_Adapter_Factory *factory =
ACE_Dynamic_Service<TAO_ClientRequestInterceptor_Adapter_Factory>::instance
@@ -3559,16 +3555,16 @@ TAO_ORB_Core::add_interceptor (
}
TAO::ServerRequestInterceptor_Adapter *
-TAO_ORB_Core::serverrequestinterceptor_adapter_i (void)
+TAO_ORB_Core::serverrequestinterceptor_adapter_i ()
{
- if (this->server_request_interceptor_adapter_ == 0)
+ if (this->server_request_interceptor_adapter_ == nullptr)
{
ACE_GUARD_RETURN (TAO_SYNCH_MUTEX,
ace_mon,
this->lock_,
- 0);
+ nullptr);
- if (this->server_request_interceptor_adapter_ == 0)
+ if (this->server_request_interceptor_adapter_ == nullptr)
{
TAO_ServerRequestInterceptor_Adapter_Factory *factory =
ACE_Dynamic_Service<TAO_ServerRequestInterceptor_Adapter_Factory>::instance
@@ -3589,16 +3585,16 @@ TAO_ORB_Core::serverrequestinterceptor_adapter_i (void)
#endif /* TAO_HAS_INTERCEPTORS == 1 */
TAO_Valuetype_Adapter *
-TAO_ORB_Core::valuetype_adapter (void)
+TAO_ORB_Core::valuetype_adapter ()
{
- if (this->valuetype_adapter_ == 0)
+ if (this->valuetype_adapter_ == nullptr)
{
ACE_GUARD_RETURN (TAO_SYNCH_MUTEX,
ace_mon,
this->lock_,
- 0);
+ nullptr);
- if (this->valuetype_adapter_ == 0)
+ if (this->valuetype_adapter_ == nullptr)
{
try
{
@@ -3618,7 +3614,7 @@ TAO_ORB_Core::valuetype_adapter (void)
}
}
- if (this->valuetype_adapter_ == 0)
+ if (this->valuetype_adapter_ == nullptr)
{
throw ::CORBA::INTERNAL ();
}
@@ -3638,11 +3634,11 @@ TAO_ORB_Core::register_value_factory (const char *repository_id,
{
if (this->valuetype_adapter ())
{
- ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 0);
+ ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, nullptr);
- if (this->valuetype_adapter_ == 0)
+ if (this->valuetype_adapter_ == nullptr)
{
- return 0;
+ return nullptr;
}
int const result =
@@ -3650,7 +3646,7 @@ TAO_ORB_Core::register_value_factory (const char *repository_id,
if (result == 0) // No previous factory found
{
- return 0;
+ return nullptr;
}
if (result == -1)
@@ -3672,7 +3668,7 @@ TAO_ORB_Core::unregister_value_factory (const char *repository_id)
{
ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_);
- if (this->valuetype_adapter_ == 0)
+ if (this->valuetype_adapter_ == nullptr)
{
return;
}
@@ -3689,34 +3685,34 @@ TAO_ORB_Core::lookup_value_factory (const char *repository_id)
{
if (this->valuetype_adapter ())
{
- ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 0);
+ ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, nullptr);
- if (this->valuetype_adapter_ == 0)
+ if (this->valuetype_adapter_ == nullptr)
{
- return 0;
+ return nullptr;
}
return this->valuetype_adapter_->vf_map_find (repository_id);
}
- return 0;
+ return nullptr;
}
#endif
// ****************************************************************
TAO_Export TAO_ORB_Core *
-TAO_ORB_Core_instance (void)
+TAO_ORB_Core_instance ()
{
// @@ This is a slight violation of layering, we should use
// TAO_ORB_Core_instance(), but that breaks during startup.
TAO::ORB_Table * const orb_table = TAO::ORB_Table::instance ();
- if (orb_table->first_orb () == 0)
+ if (orb_table->first_orb () == nullptr)
{
ACE_MT (ACE_GUARD_RETURN (TAO_SYNCH_RECURSIVE_MUTEX, guard,
- *ACE_Static_Object_Lock::instance (), 0));
+ *ACE_Static_Object_Lock::instance (), nullptr));
- if (orb_table->first_orb () == 0)
+ if (orb_table->first_orb () == nullptr)
{
// Calling CORBA::ORB_init() returns a duplicated ORB
// reference, so make sure that reference is stored in an
@@ -3729,7 +3725,7 @@ TAO_ORB_Core_instance (void)
try
{
int argc = 0;
- ACE_TCHAR **const argv= 0;
+ ACE_TCHAR **const argv= nullptr;
CORBA::ORB_var orb =
CORBA::ORB_init (argc, argv);
}
diff --git a/TAO/tao/ORB_Core.h b/TAO/tao/ORB_Core.h
index f29cd02430d..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
@@ -602,7 +598,7 @@ public:
CORBA::PolicyList *policy_list);
/// Factory method that create the "right" Stub depending on
- /// wheather RTCORBA is loaded or not. The factory used to create
+ /// whether RTCORBA is loaded or not. The factory used to create
/// the stub, is loaded at ORB initialization, and its type depends
/// on the fact that RTCORBA is being used or not.
TAO_Stub *create_stub (const char *repository_id,
@@ -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.cpp b/TAO/tao/ORB_Core_Auto_Ptr.cpp
index 44b464abf54..e3904b7661e 100644
--- a/TAO/tao/ORB_Core_Auto_Ptr.cpp
+++ b/TAO/tao/ORB_Core_Auto_Ptr.cpp
@@ -8,9 +8,9 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_ORB_Core_Auto_Ptr::~TAO_ORB_Core_Auto_Ptr (void)
+TAO_ORB_Core_Auto_Ptr::~TAO_ORB_Core_Auto_Ptr ()
{
- if (this->get () != 0)
+ if (this->get () != nullptr)
{
this->get ()->_decr_refcnt ();
}
@@ -19,7 +19,7 @@ TAO_ORB_Core_Auto_Ptr::~TAO_ORB_Core_Auto_Ptr (void)
void
TAO_ORB_Core_Auto_Ptr::reset (TAO_ORB_Core *p)
{
- if (this->get () != p && this->get () != 0)
+ if (this->get () != p && this->get () != nullptr)
{
this->get ()->_decr_refcnt ();
}
diff --git a/TAO/tao/ORB_Core_Auto_Ptr.h b/TAO/tao/ORB_Core_Auto_Ptr.h
index be8c62fbd8c..0b7a3f6f6a3 100644
--- a/TAO/tao/ORB_Core_Auto_Ptr.h
+++ b/TAO/tao/ORB_Core_Auto_Ptr.h
@@ -38,7 +38,6 @@ class TAO_ORB_Core;
class TAO_Export TAO_ORB_Core_Auto_Ptr
{
public:
-
/**
* @name Initialization and termination methods
*/
@@ -46,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 ();
//@}
/**
@@ -54,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.cpp b/TAO/tao/ORB_Core_TSS_Resources.cpp
index 7e554596102..f59d131c6d6 100644
--- a/TAO/tao/ORB_Core_TSS_Resources.cpp
+++ b/TAO/tao/ORB_Core_TSS_Resources.cpp
@@ -3,29 +3,29 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_ORB_Core_TSS_Resources::TAO_ORB_Core_TSS_Resources (void)
+TAO_ORB_Core_TSS_Resources::TAO_ORB_Core_TSS_Resources ()
: event_loop_thread_ (0)
, client_leader_thread_ (0)
- , lane_ (0)
+ , lane_ (nullptr)
, ts_objects_ ()
, upcalls_temporarily_suspended_on_this_thread_ (false)
- , orb_core_ (0)
+ , orb_core_ (nullptr)
{
}
-TAO_ORB_Core_TSS_Resources::~TAO_ORB_Core_TSS_Resources (void)
+TAO_ORB_Core_TSS_Resources::~TAO_ORB_Core_TSS_Resources ()
{
this->fini ();
}
void
-TAO_ORB_Core_TSS_Resources::fini (void)
+TAO_ORB_Core_TSS_Resources::fini ()
{
- if (this->orb_core_ != 0)
+ if (this->orb_core_ != nullptr)
{
this->orb_core_->tss_cleanup (this->ts_objects_);
}
- this->orb_core_ = 0;
+ this->orb_core_ = nullptr;
}
TAO_END_VERSIONED_NAMESPACE_DECL
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.cpp b/TAO/tao/ORB_Table.cpp
index d31aea67b24..174c9272ecf 100644
--- a/TAO/tao/ORB_Table.cpp
+++ b/TAO/tao/ORB_Table.cpp
@@ -11,11 +11,11 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO::ORB_Table::ORB_Table (void)
+TAO::ORB_Table::ORB_Table ()
: lock_ (),
first_orb_not_default_ (false),
table_ (TAO_DEFAULT_ORB_TABLE_SIZE),
- first_orb_ (0)
+ first_orb_ (nullptr)
{
}
@@ -25,7 +25,7 @@ TAO::ORB_Table::bind (char const * orb_id,
{
// Make sure that the supplied ORB core pointer is valid,
// i.e. non-zero.
- if (orb_id == 0 || orb_core == 0)
+ if (orb_id == nullptr || orb_core == nullptr)
{
errno = EINVAL;
return -1;
@@ -46,7 +46,7 @@ TAO::ORB_Table::bind (char const * orb_id,
// This is not the first ORB, but if the current default ORB
// decided not to be the default and there is more than one ORB
// then set this ORB to be the default.
- if (this->first_orb_ != 0
+ if (this->first_orb_ != nullptr
&& this->first_orb_not_default_)
{
this->first_orb_ = orb_core;
@@ -55,7 +55,7 @@ TAO::ORB_Table::bind (char const * orb_id,
// Set the "first_orb_" member for the first given ORB Core
// that was successfully added to the ORB table.
- if (this->first_orb_ == 0)
+ if (this->first_orb_ == nullptr)
{
this->first_orb_ = orb_core;
}
@@ -67,12 +67,12 @@ TAO::ORB_Table::bind (char const * orb_id,
TAO_ORB_Core *
TAO::ORB_Table::find (char const * orb_id)
{
- TAO_ORB_Core * orb_core = 0;
+ TAO_ORB_Core * orb_core = nullptr;
ACE_GUARD_RETURN (TAO_SYNCH_MUTEX,
guard,
this->lock_,
- 0);
+ nullptr);
iterator const i = this->table_.find (Table::key_type (orb_id));
@@ -110,7 +110,7 @@ TAO::ORB_Table::unbind (const char *orb_id)
}
else
{
- this->first_orb_ = 0;
+ this->first_orb_ = nullptr;
}
}
}
@@ -145,7 +145,7 @@ TAO::ORB_Table::not_default (char const * orb_id)
// Check if there is a default ORB already and if it is *not* the
// same as the orb_id thats passed in. We don't have to do
// anything.
- if (this->first_orb_ != 0)
+ if (this->first_orb_ != nullptr)
{
if (ACE_OS::strcmp (this->first_orb_->orbid (), orb_id) != 0)
{
@@ -162,7 +162,7 @@ TAO::ORB_Table::not_default (char const * orb_id)
}
TAO::ORB_Table *
-TAO::ORB_Table::instance (void)
+TAO::ORB_Table::instance ()
{
return TAO_Singleton<TAO::ORB_Table, TAO_SYNCH_MUTEX>::instance ();
}
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/ORB_Time_Policy.cpp b/TAO/tao/ORB_Time_Policy.cpp
index a8c9fe9672a..242197c6362 100644
--- a/TAO/tao/ORB_Time_Policy.cpp
+++ b/TAO/tao/ORB_Time_Policy.cpp
@@ -13,13 +13,13 @@ namespace TAO
void ORB_Time_Policy::set_time_policy (ACE_Dynamic_Time_Policy_Base const * pol)
{
- if (pol != 0 )
+ if (pol != nullptr )
{
active_policy_ = pol;
}
}
- void ORB_Time_Policy::reset_time_policy (void)
+ void ORB_Time_Policy::reset_time_policy ()
{
active_policy_ = &default_policy_;
}
diff --git a/TAO/tao/Object.cpp b/TAO/tao/Object.cpp
index b96ae7b5125..f1be9002e7d 100644
--- a/TAO/tao/Object.cpp
+++ b/TAO/tao/Object.cpp
@@ -30,7 +30,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-CORBA::Object::~Object (void)
+CORBA::Object::~Object ()
{
if (this->protocol_proxy_)
(void) this->protocol_proxy_->_decr_refcnt ();
@@ -43,16 +43,16 @@ CORBA::Object::Object (TAO_Stub * protocol_proxy,
: refcount_ (1)
, is_local_ (false)
, is_evaluated_ (true)
- , ior_ (0)
+ , ior_ (nullptr)
, orb_core_ (orb_core)
, protocol_proxy_ (protocol_proxy)
{
/// This constructor should not be called when the protocol proxy is
/// null ie. when the object is a LocalObject. Assert that
/// requirement.
- ACE_ASSERT (this->protocol_proxy_ != 0);
+ ACE_ASSERT (this->protocol_proxy_ != nullptr);
- if (this->orb_core_ == 0)
+ if (this->orb_core_ == nullptr)
this->orb_core_ = this->protocol_proxy_->orb_core ();
// Set the collocation marker on the stub. This may not be news to it.
@@ -70,7 +70,7 @@ CORBA::Object::Object (IOP::IOR *ior,
, is_evaluated_ (false)
, ior_ (ior)
, orb_core_ (orb_core)
- , protocol_proxy_ (0)
+ , protocol_proxy_ (nullptr)
{
}
@@ -93,13 +93,13 @@ if (!this->is_evaluated_) \
}
void
-CORBA::Object::_add_ref (void)
+CORBA::Object::_add_ref ()
{
++this->refcount_;
}
void
-CORBA::Object::_remove_ref (void)
+CORBA::Object::_remove_ref ()
{
if (--this->refcount_ == 0)
{
@@ -108,13 +108,9 @@ CORBA::Object::_remove_ref (void)
}
CORBA::ULong
-CORBA::Object::_refcount_value(void) const
+CORBA::Object::_refcount_value() const
{
-#if defined (ACE_HAS_CPP11)
return this->refcount_;
-#else
- return this->refcount_.value ();
-#endif /* ACE_HAS_CPP11 */
}
void
@@ -134,7 +130,7 @@ CORBA::Object::marshal (TAO_OutputCDR &cdr)
/*static*/ CORBA::Boolean
CORBA::Object::marshal (const CORBA::Object_ptr x, TAO_OutputCDR &cdr)
{
- if (x == 0)
+ if (x == nullptr)
{
// NIL objrefs ... marshal as empty type hint, no elements.
cdr.write_ulong (1);
@@ -164,7 +160,7 @@ CORBA::Object::_tao_stream_v (std::ostream &strm) const
#endif /* GEN_OSTREAM_OPS */
bool
-CORBA::Object::can_convert_to_ior (void) const
+CORBA::Object::can_convert_to_ior () const
{
// By default, objects can not be stringified if they are local
return !this->_is_local ();
@@ -173,16 +169,16 @@ CORBA::Object::can_convert_to_ior (void) const
char*
CORBA::Object::convert_to_ior (bool, const char*) const
{
- return 0;
+ return nullptr;
}
TAO_Abstract_ServantBase*
-CORBA::Object::_servant (void) const
+CORBA::Object::_servant () const
{
- if (this->protocol_proxy_ == 0)
+ if (this->protocol_proxy_ == nullptr)
{
// No stub set. Should not happen.
- return 0;
+ return nullptr;
}
return this->protocol_proxy_->collocated_servant ();
@@ -212,7 +208,7 @@ CORBA::Object::_is_a (const char *type_id)
//
// XXX if type_id is that of CORBA::Object, "yes, we comply" :-)
- if (this->protocol_proxy_ == 0)
+ if (this->protocol_proxy_ == nullptr)
{
if (TAO_debug_level > 0)
TAOLIB_ERROR ((LM_ERROR,
@@ -222,7 +218,7 @@ CORBA::Object::_is_a (const char *type_id)
throw ::CORBA::NO_IMPLEMENT ();
}
- if (this->_stubobj ()->type_id.in () != 0
+ if (this->_stubobj ()->type_id.in () != nullptr
&& ACE_OS::strcmp (type_id,
this->_stubobj ()->type_id.in ()) == 0)
return true;
@@ -231,13 +227,13 @@ CORBA::Object::_is_a (const char *type_id)
}
const char*
-CORBA::Object::_interface_repository_id (void) const
+CORBA::Object::_interface_repository_id () const
{
return "IDL:omg.org/CORBA/Object:1.0";
}
CORBA::Boolean
-CORBA::Object::_is_collocated (void) const
+CORBA::Object::_is_collocated () const
{
if (this->protocol_proxy_)
{
@@ -248,19 +244,19 @@ CORBA::Object::_is_collocated (void) const
}
CORBA::Boolean
-CORBA::Object::_is_local (void) const
+CORBA::Object::_is_local () const
{
return this->is_local_;
}
TAO_Stub *
-CORBA::Object::_stubobj (void) const
+CORBA::Object::_stubobj () const
{
return this->protocol_proxy_;
}
TAO_Stub *
-CORBA::Object::_stubobj (void)
+CORBA::Object::_stubobj ()
{
TAO_OBJECT_IOR_EVALUATE_RETURN;
return this->protocol_proxy_;
@@ -271,7 +267,7 @@ CORBA::Object::_hash (CORBA::ULong maximum)
{
TAO_OBJECT_IOR_EVALUATE_RETURN;
- if (this->protocol_proxy_ != 0)
+ if (this->protocol_proxy_ != nullptr)
return this->protocol_proxy_->hash (maximum);
else
{
@@ -291,7 +287,7 @@ CORBA::Object::_hash (CORBA::ULong maximum)
CORBA::Boolean
CORBA::Object::_is_equivalent (CORBA::Object_ptr other_obj)
{
- if (other_obj == 0)
+ if (other_obj == nullptr)
{
return false;
}
@@ -303,7 +299,7 @@ CORBA::Object::_is_equivalent (CORBA::Object_ptr other_obj)
TAO_OBJECT_IOR_EVALUATE_RETURN;
- if (this->protocol_proxy_ != 0)
+ if (this->protocol_proxy_ != nullptr)
return this->protocol_proxy_->is_equivalent (other_obj);
return false;
@@ -312,7 +308,7 @@ CORBA::Object::_is_equivalent (CORBA::Object_ptr other_obj)
// TAO's extensions
TAO::ObjectKey *
-CORBA::Object::_key (void)
+CORBA::Object::_key ()
{
TAO_OBJECT_IOR_EVALUATE_RETURN;
@@ -342,13 +338,12 @@ CORBA::Object::_proxy_broker (TAO::Object_Proxy_Broker *proxy_broker)
CORBA::Boolean
CORBA::Object::is_nil_i (CORBA::Object_ptr obj)
{
-
- // If the profile length is zero for a non-evaluted IOR it is a
+ // If the profile length is zero for a non-evaluated IOR it is a
// null-object.
if ((!obj->is_evaluated ()) && obj->ior ().profiles.length () == 0)
return true;
- // To accomodate new definitions.
+ // To accommodate new definitions.
if (obj->orb_core_)
{
return obj->orb_core_->object_is_nil (obj);
@@ -357,8 +352,6 @@ CORBA::Object::is_nil_i (CORBA::Object_ptr obj)
return false;
}
-
-
#if (TAO_HAS_MINIMUM_CORBA == 0)
#if !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO)
@@ -376,7 +369,7 @@ CORBA::Object::_create_request (CORBA::Context_ptr ctx,
// is a no-no.
// Neither can we create a request object from locality constrained
// object references.
- if (ctx != 0 || this->protocol_proxy_ == 0)
+ if (ctx != nullptr || this->protocol_proxy_ == nullptr)
{
if (TAO_debug_level > 0)
TAOLIB_ERROR ((LM_ERROR,
@@ -397,10 +390,9 @@ CORBA::Object::_create_request (CORBA::Context_ptr ctx,
operation,
arg_list,
result,
- 0,
+ nullptr,
request,
- req_flags
- );
+ req_flags);
}
#endif
@@ -421,7 +413,7 @@ CORBA::Object::_create_request (CORBA::Context_ptr ctx,
// is a no-no.
// Neither can we create a request object from locality constrained
// object references.
- if (ctx != 0 || this->protocol_proxy_ == 0)
+ if (ctx != nullptr || this->protocol_proxy_ == nullptr)
{
if (TAO_debug_level > 0)
TAOLIB_ERROR ((LM_ERROR,
@@ -481,7 +473,7 @@ CORBA::Object::_request (const char *operation)
// the latter case, return true.
CORBA::Boolean
-CORBA::Object::_non_existent (void)
+CORBA::Object::_non_existent ()
{
TAO_OBJECT_IOR_EVALUATE_RETURN;
@@ -502,14 +494,14 @@ CORBA::Object::_non_existent (void)
#if ! defined (CORBA_E_COMPACT) && ! defined (CORBA_E_MICRO)
CORBA::InterfaceDef_ptr
-CORBA::Object::_get_interface (void)
+CORBA::Object::_get_interface ()
{
TAO_OBJECT_IOR_EVALUATE_RETURN;
return this->proxy_broker ()->_get_interface (this);
}
CORBA::Object_ptr
-CORBA::Object::_get_component (void)
+CORBA::Object::_get_component ()
{
TAO_OBJECT_IOR_EVALUATE_RETURN;
return this->proxy_broker ()->_get_component (this);
@@ -517,7 +509,7 @@ CORBA::Object::_get_component (void)
#endif
char*
-CORBA::Object::_repository_id (void)
+CORBA::Object::_repository_id ()
{
TAO_OBJECT_IOR_EVALUATE_RETURN;
return this->proxy_broker ()->_repository_id (this);
@@ -601,7 +593,7 @@ CORBA::Object::_set_policy_overrides (
// If the stub is collocated and we don't have a collocated server we need
// to reinitialize it to get it.
- if (stub->is_collocated () && stub->collocated_servant () == 0)
+ if (stub->is_collocated () && stub->collocated_servant () == nullptr)
{
obj->orb_core ()->reinitialize_object (stub);
}
@@ -633,7 +625,7 @@ CORBA::Object::_validate_connection (
{
TAO_OBJECT_IOR_EVALUATE_RETURN;
- inconsistent_policies = 0;
+ inconsistent_policies = nullptr;
CORBA::Boolean retval = true;
#if (TAO_HAS_MINIMUM_CORBA == 0)
@@ -665,9 +657,9 @@ CORBA::Object::_validate_connection (
CORBA::ORB_ptr
-CORBA::Object::_get_orb (void)
+CORBA::Object::_get_orb ()
{
- if (this->orb_core_ != 0)
+ if (this->orb_core_ != nullptr)
{
return CORBA::ORB::_duplicate (this->orb_core_->orb ());
}
@@ -688,12 +680,11 @@ CORBA::Object::_get_orb (void)
}
TAO::Object_Proxy_Broker *
-CORBA::Object::proxy_broker (void) const
+CORBA::Object::proxy_broker () const
{
// Paranoid check. We *should* never access the proxy_broker
// when the object has not been initialised so there *should*
- // alway be a stub, but just in case...
-
+ // always be a stub, but just in case...
if (this->protocol_proxy_)
{
return this->protocol_proxy_->object_proxy_broker ();
@@ -710,7 +701,7 @@ CORBA::Object::proxy_broker (void) const
CORBA::Boolean
operator<< (TAO_OutputCDR& cdr, const CORBA::Object* x)
{
- if (x == 0)
+ if (x == nullptr)
{
// NIL objrefs ... marshal as empty type hint, no elements.
cdr.write_ulong (1);
@@ -729,7 +720,7 @@ operator<< (TAO_OutputCDR& cdr, const CORBA::Object* x)
TAO_Stub *stubobj = x->_stubobj ();
- if (stubobj == 0)
+ if (stubobj == nullptr)
return false;
return (stubobj->marshal (cdr));
@@ -751,7 +742,7 @@ CORBA::Object::tao_object_initialize (CORBA::Object *obj)
TAO_MProfile mp (profile_count);
TAO_ORB_Core *&orb_core = obj->orb_core_;
- if (orb_core == 0)
+ if (orb_core == nullptr)
{
orb_core = TAO_ORB_Core_instance ();
if (TAO_debug_level > 0)
@@ -763,7 +754,7 @@ CORBA::Object::tao_object_initialize (CORBA::Object *obj)
}
}
- TAO_Stub *objdata = 0;
+ TAO_Stub *objdata = nullptr;
try
{
@@ -789,7 +780,7 @@ CORBA::Object::tao_object_initialize (CORBA::Object *obj)
TAO_Profile *pfile = connector_registry->create_profile (cdr);
- if (pfile != 0)
+ if (pfile != nullptr)
{
if (mp.give_profile (pfile) == -1)
{
@@ -837,7 +828,7 @@ CORBA::Object::tao_object_initialize (CORBA::Object *obj)
obj->is_evaluated_ = true;
// Release the contents of the ior to keep memory consumption down.
- obj->ior_ = 0;
+ obj->ior_ = nullptr;
// Transfer ownership to the CORBA::Object
(void) safe_objdata.release ();
@@ -849,7 +840,7 @@ operator>> (TAO_InputCDR& cdr, CORBA::Object*& x)
bool lazy_strategy = false;
TAO_ORB_Core *orb_core = cdr.orb_core ();
- if (orb_core == 0)
+ if (orb_core == nullptr)
{
orb_core = TAO_ORB_Core_instance ();
if (TAO_debug_level > 0)
@@ -872,7 +863,6 @@ operator>> (TAO_InputCDR& cdr, CORBA::Object*& x)
{
// If the user has set up a eager strategy..
CORBA::String_var type_hint;
-
if (!(cdr >> type_hint.inout ()))
return false;
@@ -890,7 +880,7 @@ operator>> (TAO_InputCDR& cdr, CORBA::Object*& x)
TAO_MProfile mp (profile_count);
TAO_ORB_Core *orb_core = cdr.orb_core ();
- if (orb_core == 0)
+ if (orb_core == nullptr)
{
orb_core = TAO_ORB_Core_instance ();
if (TAO_debug_level > 0)
@@ -904,8 +894,7 @@ operator>> (TAO_InputCDR& cdr, CORBA::Object*& x)
// Ownership of type_hint is given to TAO_Stub
// TAO_Stub will make a copy of mp!
-
- TAO_Stub *objdata = 0;
+ TAO_Stub *objdata = nullptr;
try
{
@@ -915,7 +904,7 @@ operator>> (TAO_InputCDR& cdr, CORBA::Object*& x)
for (CORBA::ULong i = 0; i != profile_count && cdr.good_bit (); ++i)
{
TAO_Profile *pfile = connector_registry->create_profile (cdr);
- if (pfile != 0)
+ if (pfile != nullptr)
{
if (mp.give_profile (pfile) == -1)
{
@@ -966,7 +955,7 @@ operator>> (TAO_InputCDR& cdr, CORBA::Object*& x)
else
{
// Lazy strategy!
- IOP::IOR *ior = 0;
+ IOP::IOR *ior = nullptr;
ACE_NEW_RETURN (ior,
IOP::IOR (),
@@ -983,7 +972,7 @@ operator>> (TAO_InputCDR& cdr, CORBA::Object*& x)
ACE_NEW_NORETURN (x,
CORBA::Object (ior, orb_core));
- if (x == 0)
+ if (x == nullptr)
{
// Can't allocate a CORBA Object so delete first the
// memory we already allocated before we return
@@ -1009,7 +998,6 @@ operator<< (std::ostream &strm, CORBA::Object_ptr _tao_objref)
// Traits specializations for CORBA::Object.
namespace TAO
{
-
void In_Object_Argument_Cloner_T<CORBA::InterfaceDef_ptr>::duplicate
(CORBA::InterfaceDef_ptr)
{
@@ -1033,7 +1021,7 @@ namespace TAO
}
CORBA::Object_ptr
- Objref_Traits<CORBA::Object>::nil (void)
+ Objref_Traits<CORBA::Object>::nil ()
{
return CORBA::Object::_nil ();
}
@@ -1046,8 +1034,6 @@ namespace TAO
}
} // close TAO namespace
-
-TAO::Object_Proxy_Broker * (*_TAO_Object_Proxy_Broker_Factory_function_pointer) (void) = 0;
-
+TAO::Object_Proxy_Broker * (*_TAO_Object_Proxy_Broker_Factory_function_pointer) () = nullptr;
TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Object.h b/TAO/tao/Object.h
index a2d2dd26fae..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
@@ -101,9 +97,8 @@ namespace CORBA
class TAO_Export Object
{
public:
-
/// Destructor.
- virtual ~Object (void);
+ virtual ~Object ();
/**
* @name Spec defined methods
@@ -116,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);
@@ -132,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.
@@ -153,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.
@@ -218,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
@@ -228,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.
@@ -252,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*);
@@ -273,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,
@@ -284,14 +279,13 @@ 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);
public:
-
/// Allows us to forbid marshaling of local interfaces.
virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
@@ -306,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.
/**
@@ -317,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
@@ -333,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.
@@ -344,15 +338,10 @@ namespace CORBA
TAO::Object_Proxy_Broker *proxy_broker () const;
/// Number of outstanding references to this object.
-#if defined (ACE_HAS_CPP11)
# define TAO_OBJECT_USES_STD_ATOMIC_REFCOUNT
std::atomic<uint32_t> refcount_;
-#else
- ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> refcount_;
-#endif /* ACE_HAS_CPP11 */
private:
-
// = Unimplemented methods
ACE_UNIMPLEMENTED_FUNC (Object (const Object &))
ACE_UNIMPLEMENTED_FUNC (Object &operator = (const Object &))
@@ -419,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);
};
@@ -436,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.cpp b/TAO/tao/ObjectKey_Table.cpp
index 328df7abc63..b6c5474b37f 100644
--- a/TAO/tao/ObjectKey_Table.cpp
+++ b/TAO/tao/ObjectKey_Table.cpp
@@ -31,19 +31,19 @@ TAO::Less_Than_ObjectKey::operator () (const TAO::ObjectKey &lhs,
}
/********************************************************/
-TAO::ObjectKey_Table::ObjectKey_Table (void)
+TAO::ObjectKey_Table::ObjectKey_Table ()
: table_ ()
{
}
-TAO::ObjectKey_Table::~ObjectKey_Table (void)
+TAO::ObjectKey_Table::~ObjectKey_Table ()
{
this->table_.close ();
}
int
-TAO::ObjectKey_Table::destroy (void)
+TAO::ObjectKey_Table::destroy ()
{
if (this->table_.current_size ())
{
@@ -92,7 +92,7 @@ TAO::ObjectKey_Table::bind_i (const TAO::ObjectKey &key,
int
TAO::ObjectKey_Table::unbind_i (TAO::Refcounted_ObjectKey *&key_new)
{
- TAO::Refcounted_ObjectKey *tmp = 0;
+ TAO::Refcounted_ObjectKey *tmp = nullptr;
if (this->table_.unbind (key_new->object_key (), tmp) != -1)
{
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.cpp b/TAO/tao/Object_KeyC.cpp
index 6f128153b13..dc0c4745f8d 100644
--- a/TAO/tao/Object_KeyC.cpp
+++ b/TAO/tao/Object_KeyC.cpp
@@ -52,7 +52,7 @@ namespace TAO
#if !defined (_TAO_OBJECTKEY_CS_)
#define _TAO_OBJECTKEY_CS_
-TAO::ObjectKey::ObjectKey (void)
+TAO::ObjectKey::ObjectKey ()
{}
TAO::ObjectKey::ObjectKey (
@@ -76,7 +76,7 @@ TAO::ObjectKey::ObjectKey (
(max, length, buffer, release)
{}
-TAO::ObjectKey::~ObjectKey (void)
+TAO::ObjectKey::~ObjectKey ()
{}
// Hand crafted.
@@ -143,7 +143,7 @@ TAO::ObjectKey::decode_string_to_sequence (
TAO::unbounded_value_sequence<CORBA::Octet> & seq,
char const * str)
{
- if (str == 0)
+ if (str == nullptr)
{
seq.length (0);
return;
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.cpp b/TAO/tao/Object_Loader.cpp
index 3dc0eb22099..4a1b32c30b6 100644
--- a/TAO/tao/Object_Loader.cpp
+++ b/TAO/tao/Object_Loader.cpp
@@ -2,7 +2,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Object_Loader::~TAO_Object_Loader (void)
+TAO_Object_Loader::~TAO_Object_Loader ()
{
}
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.cpp b/TAO/tao/Object_Proxy_Broker.cpp
index f5f4c45eff0..0870e737deb 100644
--- a/TAO/tao/Object_Proxy_Broker.cpp
+++ b/TAO/tao/Object_Proxy_Broker.cpp
@@ -2,7 +2,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO::Object_Proxy_Broker::~Object_Proxy_Broker (void)
+TAO::Object_Proxy_Broker::~Object_Proxy_Broker ()
{
}
diff --git a/TAO/tao/Object_Proxy_Broker.h b/TAO/tao/Object_Proxy_Broker.h
index 4eaac3cbf0e..27fc4c656d2 100644
--- a/TAO/tao/Object_Proxy_Broker.h
+++ b/TAO/tao/Object_Proxy_Broker.h
@@ -49,9 +49,8 @@ namespace TAO
class TAO_Export Object_Proxy_Broker
{
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.cpp b/TAO/tao/Object_Ref_Table.cpp
index 3b2bf7360bc..e5268b7612e 100644
--- a/TAO/tao/Object_Ref_Table.cpp
+++ b/TAO/tao/Object_Ref_Table.cpp
@@ -64,7 +64,7 @@ TAO_Object_Ref_Table::bind_i (const char *id, CORBA::Object_ptr obj)
{
// Make sure that the supplied Object reference is valid,
// i.e. not nil.
- if (id == 0
+ if (id == nullptr
|| ACE_OS::strlen (id) == 0
|| ::CORBA::is_nil (obj))
{
diff --git a/TAO/tao/Object_Ref_Table.h b/TAO/tao/Object_Ref_Table.h
index 1eb79612fea..fb7ca8039ae 100644
--- a/TAO/tao/Object_Ref_Table.h
+++ b/TAO/tao/Object_Ref_Table.h
@@ -49,7 +49,6 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_Export TAO_Object_Ref_Table
{
public:
-
typedef ACE_Array_Map<CORBA::String_var,
CORBA::Object_var,
TAO::String_Var_Equal_To> Table;
@@ -57,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
@@ -79,21 +78,20 @@ 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:
-
/**
* @name The canonical ACE_Map methods
*/
@@ -104,19 +102,17 @@ 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.
Table table_;
/// Table synchronization lock.
TAO_SYNCH_MUTEX lock_;
-
};
TAO_END_VERSIONED_NAMESPACE_DECL
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.cpp b/TAO/tao/On_Demand_Fragmentation_Strategy.cpp
index e9b790dd6fa..b5261fde697 100644
--- a/TAO/tao/On_Demand_Fragmentation_Strategy.cpp
+++ b/TAO/tao/On_Demand_Fragmentation_Strategy.cpp
@@ -17,7 +17,7 @@ TAO_On_Demand_Fragmentation_Strategy::TAO_On_Demand_Fragmentation_Strategy (
}
TAO_On_Demand_Fragmentation_Strategy::~TAO_On_Demand_Fragmentation_Strategy (
- void)
+ )
{
}
@@ -27,7 +27,7 @@ TAO_On_Demand_Fragmentation_Strategy::fragment (
ACE_CDR::ULong pending_alignment,
ACE_CDR::ULong pending_length)
{
- if (this->transport_ == 0)
+ if (this->transport_ == nullptr)
return 0; // No transport. Can't fragment.
TAO_GIOP_Message_Version giop_version;
@@ -80,7 +80,7 @@ TAO_On_Demand_Fragmentation_Strategy::fragment (
// bit.
if (this->transport_->send_message (cdr,
cdr.stub (),
- 0,
+ nullptr,
cdr.message_semantics (),
cdr.timeout ()) == -1
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 &param_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 &param_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.cpp b/TAO/tao/PI/Interceptor_List_T.cpp
index 8e9cdd52325..249b6bc2a84 100644
--- a/TAO/tao/PI/Interceptor_List_T.cpp
+++ b/TAO/tao/PI/Interceptor_List_T.cpp
@@ -180,8 +180,7 @@ namespace TAO
0,
EINVAL
),
- CORBA::COMPLETED_NO
- );
+ CORBA::COMPLETED_NO);
}
}
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 cf4c1b20366..56537358735 100644
--- a/TAO/tao/PI/RequestInfo_Util.h
+++ b/TAO/tao/PI/RequestInfo_Util.h
@@ -51,7 +51,6 @@ namespace Dynamic
class TAO_PI_Export TAO_RequestInfo_Util
{
public:
-
/**
* @name Factory Methods
*
@@ -61,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 367a84faa81..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* []);
@@ -40,7 +40,6 @@ private:
bool initialized_;
};
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PI_Server, TAO_PI_Server_Loader)
ACE_FACTORY_DECLARE (TAO_PI_Server, TAO_PI_Server_Loader)
diff --git a/TAO/tao/PI_Server/PortableServer_ORBInitializer.h b/TAO/tao/PI_Server/PortableServer_ORBInitializer.h
index d2499fe18a8..cf8df3cfa6d 100644
--- a/TAO/tao/PI_Server/PortableServer_ORBInitializer.h
+++ b/TAO/tao/PI_Server/PortableServer_ORBInitializer.h
@@ -29,7 +29,6 @@ class TAO_PortableServer_ORBInitializer
public virtual ::CORBA::LocalObject
{
public:
-
/**
* @name PortableInterceptor::ORBInitializer methods
*
@@ -43,7 +42,6 @@ public:
//@}
private:
-
/// Register PortableServer policy factories.
void register_policy_factories (PortableInterceptor::ORBInitInfo_ptr info);
};
diff --git a/TAO/tao/PI_Server/ServerInterceptorAdapter.cpp b/TAO/tao/PI_Server/ServerInterceptorAdapter.cpp
index d0cf73ac879..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 ()
{
}
@@ -229,8 +229,7 @@ TAO::ServerRequestInterceptor_Adapter_Impl::receive_request (
size_t nargs,
TAO::Portable_Server::Servant_Upcall *servant_upcall,
CORBA::TypeCode_ptr const * exceptions,
- CORBA::ULong nexceptions
- )
+ CORBA::ULong nexceptions)
{
// This method implements an "intermediate" server side interception
// point. Interceptors are invoked in the same order they were
@@ -258,7 +257,7 @@ TAO::ServerRequestInterceptor_Adapter_Impl::receive_request (
try
{
- bool is_remote_request = !server_request.collocated ();
+ bool const is_remote_request = !server_request.collocated ();
for (size_t i = 0; i < server_request.interceptor_count (); ++i)
{
@@ -507,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 6c3efa5c4c7..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
@@ -93,7 +93,7 @@ namespace TAO
/// This method implements the "intermediate" server side
/// interception point if the above #ifdef is set to 1 and a
- /// starting intercetion point if it is not set to 1.
+ /// starting interception point if it is not set to 1.
///
/// @note This method should have been the "starting" interception
/// point according to the interceptor spec. This will be
@@ -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 1e47815ef05..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);
@@ -60,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_Server/ServerRequestInfo.cpp b/TAO/tao/PI_Server/ServerRequestInfo.cpp
index bd0a9afa68b..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,12 +472,13 @@ TAO::ServerRequestInfo::set_slot (PortableInterceptor::SlotId id,
CORBA::Boolean
TAO::ServerRequestInfo::target_is_a (const char * id)
{
- // Implemented in the generated skeleton.
+ if (this->servant_upcall_ == 0)
+ {
+ throw ::CORBA::BAD_INV_ORDER (CORBA::OMGVMCID | 14, CORBA::COMPLETED_NO);
+ }
- PortableServer::Servant const servant =
- (this->servant_upcall_ == 0
- ? 0
- : this->servant_upcall_->servant ());
+ // Implemented in the generated skeleton.
+ 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 af0274b0509..279a231b79c 100644
--- a/TAO/tao/PI_Server/ServerRequestInfo.h
+++ b/TAO/tao/PI_Server/ServerRequestInfo.h
@@ -70,7 +70,6 @@ namespace TAO
, public virtual ::CORBA::LocalObject
{
public:
-
/// Constructor.
ServerRequestInfo (TAO_ServerRequest & server_request,
TAO::Argument * const * args,
@@ -81,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.
/**
@@ -116,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);
@@ -142,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.
@@ -185,7 +184,6 @@ namespace TAO
CORBA::Boolean replace);
public:
-
/**
* @name Helper methods specific to TAO.
*/
@@ -209,10 +207,9 @@ 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
/// contexts.
IOP::ServiceContext * get_service_context_i (
@@ -220,7 +217,6 @@ namespace TAO
IOP::ServiceId id);
protected:
-
/// Underlying request object that contains much of the
/// information encapsulated by this @c ServerRequestInfo
/// implementation.
diff --git a/TAO/tao/PI_Server/ServerRequestInfo.inl b/TAO/tao/PI_Server/ServerRequestInfo.inl
index 190306e3b6c..836e40c0572 100644
--- a/TAO/tao/PI_Server/ServerRequestInfo.inl
+++ b/TAO/tao/PI_Server/ServerRequestInfo.inl
@@ -1,7 +1,6 @@
// -*- C++ -*-
#include "tao/PortableServer/Servant_Upcall.h"
-
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE
@@ -27,7 +26,6 @@ TAO::ServerRequestInfo::forward_reference (
{
// Note that we're converting the ForwardRequest exception in to a
// LOCATION_FORWARD reply, so we do not set the exception status.
-
this->server_request_.pi_reply_status (PortableInterceptor::LOCATION_FORWARD);
// Store the forward reference in the TAO_ServerRequest object.
@@ -39,7 +37,6 @@ TAO::ServerRequestInfo::forward_reference (CORBA::Object_ptr obj)
{
// We only get here if a servant manager threw a
// PortableServer::ForwardRequest exception.
-
this->server_request_.pi_reply_status (PortableInterceptor::LOCATION_FORWARD);
// Store the forward reference in the TAO_ServerRequest object.
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.cpp b/TAO/tao/Parser_Registry.cpp
index cd35119b474..eed0f04a2cd 100644
--- a/TAO/tao/Parser_Registry.cpp
+++ b/TAO/tao/Parser_Registry.cpp
@@ -11,13 +11,13 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Parser_Registry::TAO_Parser_Registry (void)
- : parsers_ (0),
+TAO_Parser_Registry::TAO_Parser_Registry ()
+ : parsers_ (nullptr),
size_ (0)
{
}
-TAO_Parser_Registry::~TAO_Parser_Registry (void)
+TAO_Parser_Registry::~TAO_Parser_Registry ()
{
delete [] this->parsers_;
}
@@ -25,10 +25,10 @@ TAO_Parser_Registry::~TAO_Parser_Registry (void)
int
TAO_Parser_Registry::open (TAO_ORB_Core *orb_core)
{
- char **names = 0;
+ char **names = nullptr;
int number_of_names = 0;
- if (orb_core->resource_factory () == 0)
+ if (orb_core->resource_factory () == nullptr)
{
return -1;
}
@@ -51,7 +51,7 @@ TAO_Parser_Registry::open (TAO_ORB_Core *orb_core)
ACE_Dynamic_Service<TAO_IOR_Parser>::instance (orb_core->configuration (),
names [i]);
- if (this->parsers_[index] == 0)
+ if (this->parsers_[index] == nullptr)
{
--number_of_names;
if (TAO_debug_level >= 1)
@@ -81,7 +81,7 @@ TAO_Parser_Registry::match_parser (const char *ior_string)
}
}
- return 0;
+ return nullptr;
}
TAO_END_VERSIONED_NAMESPACE_DECL
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.cpp b/TAO/tao/Pluggable_Messaging_Utils.cpp
index fd43f298cee..28b548ce1df 100644
--- a/TAO/tao/Pluggable_Messaging_Utils.cpp
+++ b/TAO/tao/Pluggable_Messaging_Utils.cpp
@@ -8,7 +8,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Pluggable_Reply_Params::TAO_Pluggable_Reply_Params (TAO_Transport *t)
- : input_cdr_ (0)
+ : input_cdr_ (nullptr)
, transport_ (t)
{
}
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.cpp b/TAO/tao/PolicyFactory_Registry_Adapter.cpp
index 6c75b805ad4..7ec9258e60c 100644
--- a/TAO/tao/PolicyFactory_Registry_Adapter.cpp
+++ b/TAO/tao/PolicyFactory_Registry_Adapter.cpp
@@ -3,7 +3,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO::PolicyFactory_Registry_Adapter::~PolicyFactory_Registry_Adapter (void)
+TAO::PolicyFactory_Registry_Adapter::~PolicyFactory_Registry_Adapter ()
{
}
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.cpp b/TAO/tao/PolicyFactory_Registry_Factory.cpp
index 3ba55302382..6bf506d8222 100644
--- a/TAO/tao/PolicyFactory_Registry_Factory.cpp
+++ b/TAO/tao/PolicyFactory_Registry_Factory.cpp
@@ -2,7 +2,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_PolicyFactory_Registry_Factory::~TAO_PolicyFactory_Registry_Factory (void)
+TAO_PolicyFactory_Registry_Factory::~TAO_PolicyFactory_Registry_Factory ()
{
}
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.cpp b/TAO/tao/Policy_Current.cpp
index a4ec5b8a0dd..0631b65435d 100644
--- a/TAO/tao/Policy_Current.cpp
+++ b/TAO/tao/Policy_Current.cpp
@@ -21,7 +21,7 @@ TAO_Policy_Current::implementation (TAO_Policy_Current_Impl &current)
}
TAO_Policy_Current_Impl &
-TAO_Policy_Current::implementation (void) const
+TAO_Policy_Current::implementation () const
{
return *TAO_TSS_Resources::instance ()->policy_current_;
}
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.cpp b/TAO/tao/Policy_Manager.cpp
index fbfaea4a28b..87320fbca67 100644
--- a/TAO/tao/Policy_Manager.cpp
+++ b/TAO/tao/Policy_Manager.cpp
@@ -11,7 +11,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
CORBA::PolicyList *
TAO_Policy_Manager::get_policy_overrides (const CORBA::PolicyTypeSeq & ts)
{
- ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->mutex_, 0);
+ ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->mutex_, nullptr);
return this->impl_.get_policy_overrides (ts);
}
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.cpp b/TAO/tao/Policy_Set.cpp
index bd3507cfebb..c7e28444dba 100644
--- a/TAO/tao/Policy_Set.cpp
+++ b/TAO/tao/Policy_Set.cpp
@@ -14,10 +14,10 @@ TAO_Policy_Set::TAO_Policy_Set (TAO_Policy_Scope scope)
: scope_ (scope)
{
for (unsigned int i = 0; i < TAO_CACHED_POLICY_MAX_CACHED; ++i)
- this->cached_policies_[i] = 0;
+ this->cached_policies_[i] = nullptr;
}
-TAO_Policy_Set::~TAO_Policy_Set (void)
+TAO_Policy_Set::~TAO_Policy_Set ()
{
try
{
@@ -35,7 +35,7 @@ TAO_Policy_Set::TAO_Policy_Set (const TAO_Policy_Set &rhs)
// Initialize the cache.
for (int i = 0; i < TAO_CACHED_POLICY_MAX_CACHED; ++i)
{
- this->cached_policies_[i] = 0;
+ this->cached_policies_[i] = nullptr;
}
// Copy over the policy list.
@@ -78,7 +78,7 @@ TAO_Policy_Set::TAO_Policy_Set (const TAO_Policy_Set &rhs)
void
TAO_Policy_Set::copy_from (TAO_Policy_Set *source)
{
- if (source == 0)
+ if (source == nullptr)
{
return;
}
@@ -119,7 +119,7 @@ TAO_Policy_Set::copy_from (TAO_Policy_Set *source)
}
void
-TAO_Policy_Set::cleanup_i (void)
+TAO_Policy_Set::cleanup_i ()
{
CORBA::ULong const len = this->policy_list_.length ();
// Cleanup the policy list.
@@ -134,7 +134,7 @@ TAO_Policy_Set::cleanup_i (void)
// Cleanup the cache.
for (CORBA::ULong j = 0; j < TAO_CACHED_POLICY_MAX_CACHED; ++j)
{
- this->cached_policies_[j] = 0;
+ this->cached_policies_[j] = nullptr;
}
}
@@ -247,7 +247,7 @@ CORBA::PolicyList *
TAO_Policy_Set::get_policy_overrides (const CORBA::PolicyTypeSeq &types)
{
CORBA::ULong const slots = types.length ();
- CORBA::PolicyList *policy_list_ptr = 0;
+ CORBA::PolicyList *policy_list_ptr = nullptr;
if (slots == 0)
{
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.cpp b/TAO/tao/Policy_Validator.cpp
index 8cacaf38dc9..d2580db35b1 100644
--- a/TAO/tao/Policy_Validator.cpp
+++ b/TAO/tao/Policy_Validator.cpp
@@ -6,11 +6,11 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Policy_Validator::TAO_Policy_Validator (TAO_ORB_Core &orb_core)
: orb_core_ (orb_core),
- next_ (0)
+ next_ (nullptr)
{
}
-TAO_Policy_Validator::~TAO_Policy_Validator (void)
+TAO_Policy_Validator::~TAO_Policy_Validator ()
{
delete this->next_;
}
@@ -25,7 +25,7 @@ void
TAO_Policy_Validator::add_validator (TAO_Policy_Validator *validator)
{
// The validator we're adding can't be part of another list
- ACE_ASSERT (validator->next_ == 0);
+ ACE_ASSERT (validator->next_ == nullptr);
// Why would we want to add ourself to our list
if (this != validator)
@@ -33,7 +33,7 @@ TAO_Policy_Validator::add_validator (TAO_Policy_Validator *validator)
// Get to the end of the list and make sure that the
// new validator isn't already part of our list
TAO_Policy_Validator* current = this;
- while (current->next_ != 0)
+ while (current->next_ != nullptr)
{
if (current->next_ == validator)
{
@@ -61,7 +61,7 @@ TAO_Policy_Validator::validate (TAO_Policy_Set &policies)
{
this->validate_impl (policies);
- if (this->next_ != 0)
+ if (this->next_ != nullptr)
{
this->next_->validate (policies);
}
@@ -82,7 +82,7 @@ CORBA::Boolean
TAO_Policy_Validator::legal_policy (CORBA::PolicyType type)
{
return (this->legal_policy_impl (type)
- || ((this->next_ != 0)
+ || ((this->next_ != nullptr)
&& this->next_->legal_policy_impl (type)));
}
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 fd983213528..b683ed244eb 100644
--- a/TAO/tao/PortableServer/Active_Policy_Strategies.h
+++ b/TAO/tao/PortableServer/Active_Policy_Strategies.h
@@ -50,27 +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
- );
+ 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_;
@@ -98,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 c20461a0a74..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,15 +59,14 @@ namespace TAO
}
void
- LifespanStrategyPersistent::notify_startup (void)
+ LifespanStrategyPersistent::notify_startup ()
{
if (this->use_imr_)
{
// The user specified that the ImR should be used.
ImR_Client_Adapter *adapter =
ACE_Dynamic_Service<ImR_Client_Adapter>::instance (
- TAO_Root_POA::imr_client_adapter_name ()
- );
+ TAO_Root_POA::imr_client_adapter_name ());
#if !defined (TAO_AS_STATIC_LIBS)
// In case we build shared, try to load the ImR Client library, in a
@@ -105,12 +104,11 @@ namespace TAO
}
void
- LifespanStrategyPersistent::notify_shutdown (void)
+ LifespanStrategyPersistent::notify_shutdown ()
{
ImR_Client_Adapter *adapter =
ACE_Dynamic_Service<ImR_Client_Adapter>::instance (
- TAO_Root_POA::imr_client_adapter_name ()
- );
+ TAO_Root_POA::imr_client_adapter_name ());
if (adapter != 0)
{
@@ -124,7 +122,7 @@ namespace TAO
}
void
- LifespanStrategyPersistent::check_state (void)
+ LifespanStrategyPersistent::check_state ()
{
this->poa_->tao_poa_manager().check_state ();
}
@@ -154,8 +152,7 @@ namespace TAO
// The user specified that the ImR should be used.
ImR_Client_Adapter *adapter =
ACE_Dynamic_Service<ImR_Client_Adapter>::instance (
- TAO_Root_POA::imr_client_adapter_name ()
- );
+ TAO_Root_POA::imr_client_adapter_name ());
if (adapter == 0)
{
// couldn't load adapter, already reported error
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 00819b064ec..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;
}
@@ -757,7 +745,7 @@ TAO_Object_Adapter::dispatch (TAO::ObjectKey &key,
0, // nargs
0, // servant_upcall
0, // exceptions
- 0); // nexceptions
+ 0); // nexceptions
// If a PortableInterceptor::ForwardRequest exception was
// thrown, then set the forward_to object reference and return
@@ -786,8 +774,7 @@ TAO_Object_Adapter::dispatch (TAO::ObjectKey &key,
0, // nargs
0, // servant_upcall
0, // exceptions
- 0 // nexceptions
- );
+ 0); // nexceptions
}
}
}
@@ -829,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_);
}
@@ -936,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 ()
{
}
@@ -951,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 ()
{
}
@@ -1024,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 ()
{
}
@@ -1115,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_;
;
@@ -1141,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 (),
@@ -1149,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 (),
@@ -1157,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
@@ -1174,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 71d0583c0bc..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 &);
@@ -176,7 +176,7 @@ protected:
void locate_poa (const TAO::ObjectKey &key,
PortableServer::ObjectId &id,
- TAO_Root_POA *&poa );
+ TAO_Root_POA *&poa);
int find_transient_poa (const poa_name &system_name,
CORBA::Boolean root,
@@ -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 bd72b717853..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
@@ -182,7 +182,6 @@ TAO_POA_Manager::hold_requests_i (CORBA::Boolean wait_for_completion)
// requests. Any requests that have been queued but have not
// started executing will continue to be queued while in the holding
// state.
-
if (this->state_ == PortableServer::POAManager::INACTIVE)
{
throw PortableServer::POAManager::AdapterInactive ();
@@ -204,7 +203,6 @@ TAO_POA_Manager::hold_requests_i (CORBA::Boolean wait_for_completion)
// and the current thread is in an invocation context dispatched by
// some POA belonging to the same ORB as this POA the BAD_INV_ORDER
// exception is raised and the state is not changed.
-
if (wait_for_completion)
{
for (POA_COLLECTION::iterator iterator = this->poa_collection_.begin ();
@@ -234,7 +232,6 @@ TAO_POA_Manager::discard_requests_i (CORBA::Boolean wait_for_completion)
// have not started executing are discarded. When a request is
// discarded, a TRANSIENT system exception is returned to the
// client.
-
if (this->state_ == PortableServer::POAManager::INACTIVE)
{
throw PortableServer::POAManager::AdapterInactive ();
@@ -304,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)
{
@@ -370,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 d593c8eba66..a589b63c4d0 100644
--- a/TAO/tao/PortableServer/POAManager.h
+++ b/TAO/tao/PortableServer/POAManager.h
@@ -59,8 +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)
@@ -73,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)
@@ -86,22 +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);
@@ -118,14 +116,13 @@ protected:
#endif /* TAO_HAS_MINIMUM_POA == 0 */
- ACE_Lock &lock (void);
+ ACE_Lock &lock ();
int remove_poa (TAO_Root_POA *poa);
int register_poa (TAO_Root_POA *poa);
protected:
-
PortableServer::POAManager::State state_;
ACE_Lock &lock_;
@@ -139,22 +136,18 @@ protected:
CORBA::String_var id_;
#if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO)
-
TAO_POAManager_Factory& poa_manager_factory_;
CORBA::PolicyList policies_;
-
#endif
-
private :
-
/**
* Generate an id for this POAManager.
* @return A value that uniquely identifies the POAManager within a
* 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 64b5098bdfe..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 ()
{
}
@@ -47,8 +47,7 @@ namespace TAO
{
CORBA::Policy_var policy = policy_set.get_policy_by_index (i);
- this->update_policy (policy.in ()
- );
+ this->update_policy (policy.in ());
}
}
@@ -59,8 +58,7 @@ namespace TAO
#if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO)
::PortableServer::ThreadPolicy_var thread
- = ::PortableServer::ThreadPolicy::_narrow (policy
- );
+ = ::PortableServer::ThreadPolicy::_narrow (policy);
if (!CORBA::is_nil (thread.in ()))
{
@@ -72,8 +70,7 @@ namespace TAO
#if !defined (CORBA_E_MICRO)
::PortableServer::LifespanPolicy_var lifespan
- = ::PortableServer::LifespanPolicy::_narrow (policy
- );
+ = ::PortableServer::LifespanPolicy::_narrow (policy);
if (!CORBA::is_nil (lifespan.in ()))
{
@@ -85,8 +82,7 @@ namespace TAO
#if !defined (CORBA_E_MICRO)
::PortableServer::IdUniquenessPolicy_var id_uniqueness
- = ::PortableServer::IdUniquenessPolicy::_narrow (policy
- );
+ = ::PortableServer::IdUniquenessPolicy::_narrow (policy);
if (!CORBA::is_nil (id_uniqueness.in ()))
{
@@ -98,8 +94,7 @@ namespace TAO
#if !defined (CORBA_E_MICRO)
::PortableServer::IdAssignmentPolicy_var id_assignment
- = ::PortableServer::IdAssignmentPolicy::_narrow (policy
- );
+ = ::PortableServer::IdAssignmentPolicy::_narrow (policy);
if (!CORBA::is_nil (id_assignment.in ()))
{
@@ -112,8 +107,7 @@ namespace TAO
#if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO)
::PortableServer::ImplicitActivationPolicy_var implicit_activation
- = ::PortableServer::ImplicitActivationPolicy::_narrow (policy
- );
+ = ::PortableServer::ImplicitActivationPolicy::_narrow (policy);
if (!CORBA::is_nil (implicit_activation.in ()))
{
@@ -123,8 +117,7 @@ namespace TAO
}
::PortableServer::ServantRetentionPolicy_var servant_retention
- = ::PortableServer::ServantRetentionPolicy::_narrow (policy
- );
+ = ::PortableServer::ServantRetentionPolicy::_narrow (policy);
if (!CORBA::is_nil (servant_retention.in ()))
{
@@ -134,8 +127,7 @@ namespace TAO
}
::PortableServer::RequestProcessingPolicy_var request_processing
- = ::PortableServer::RequestProcessingPolicy::_narrow (policy
- );
+ = ::PortableServer::RequestProcessingPolicy::_narrow (policy);
if (!CORBA::is_nil (request_processing.in ()))
{
diff --git a/TAO/tao/PortableServer/POA_Cached_Policies.h b/TAO/tao/PortableServer/POA_Cached_Policies.h
index 93e502abd84..491b9833d83 100644
--- a/TAO/tao/PortableServer/POA_Cached_Policies.h
+++ b/TAO/tao/PortableServer/POA_Cached_Policies.h
@@ -57,40 +57,39 @@ namespace TAO
Cached_Policies ();
- ~Cached_Policies (void);
+ ~Cached_Policies ();
/// Update the cached policy values.
- void update (TAO_POA_Policy_Set &policy_set
- );
+ void update (TAO_POA_Policy_Set &policy_set);
/**
* @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.
@@ -116,8 +115,7 @@ namespace TAO
protected:
/// Helper method to update a particular policy.
- void update_policy (const CORBA::Policy_ptr policy
- );
+ void update_policy (const CORBA::Policy_ptr policy);
::PortableServer::ThreadPolicyValue thread_;
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 6891761505d..3c014c7ece7 100644
--- a/TAO/tao/PortableServer/POA_Current.h
+++ b/TAO/tao/PortableServer/POA_Current.h
@@ -40,20 +40,19 @@ namespace TAO
, public ::CORBA::LocalObject
{
public:
-
/**
* Returns the POA on which the current request is being invoked.
* 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
@@ -64,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 ef33cc178b9..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,34 +111,33 @@ 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);
private:
-
// = Hidden because we don't allow these
POA_Current_Impl (const POA_Current_Impl &);
void operator= (const POA_Current_Impl &);
@@ -175,7 +174,6 @@ namespace TAO
/// Pointer to tss resources.
TAO_TSS_Resources *tss_resources_;
-
};
}
}
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 d842c2ccbc2..8cc73b11ebe 100644
--- a/TAO/tao/PortableServer/POA_Policy_Set.h
+++ b/TAO/tao/PortableServer/POA_Policy_Set.h
@@ -29,19 +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);
@@ -56,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 2824458e957..531be3b10f4 100644
--- a/TAO/tao/PortableServer/Servant_Base.cpp
+++ b/TAO/tao/PortableServer/Servant_Base.cpp
@@ -29,8 +29,6 @@
#include "ace/Dynamic_Service.h"
#include "ace/OS_NS_string.h"
-//@@ TAO_SERVANT_BASE_INCLUDE_ADD_HOOK
-
#if !defined (__ACE_INLINE__)
# include "tao/PortableServer/Servant_Base.inl"
#endif /* ! __ACE_INLINE__ */
@@ -81,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 ();
@@ -436,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 (
@@ -461,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 ());
}
@@ -495,7 +493,7 @@ TAO_ServantBase::_find (const char *opname,
}
TAO_Stub *
-TAO_ServantBase::_create_stub (void)
+TAO_ServantBase::_create_stub ()
{
TAO_Stub *stub = 0;
@@ -569,12 +567,6 @@ TAO_ServantBase::synchronous_upcall_dispatch (
// case.
skel (req, servant_upcall, derived_this);
- /*
- * Dispatch resolution specialization add hook.
- * Over-ridden with code to handle optimized dispatch.
- */
- //@@ TAO_DISPATCH_RESOLUTION_OPT_ADD_HOOK
-
// It is our job to send the already marshaled reply, but only
// send if it is expected and it has not already been sent
@@ -653,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_;
@@ -670,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 b37018662db..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,
@@ -187,7 +183,6 @@ public:
TAO::Collocation_Strategy strategy);
protected:
-
/// Default constructor, only derived classes can be created.
explicit TAO_ServantBase (TAO_Operation_Table* optable = 0);
@@ -209,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/ThreadStrategySingle.h b/TAO/tao/PortableServer/ThreadStrategySingle.h
index 5b6dea30625..6d3b9bdbac0 100644
--- a/TAO/tao/PortableServer/ThreadStrategySingle.h
+++ b/TAO/tao/PortableServer/ThreadStrategySingle.h
@@ -30,7 +30,6 @@
#include "ace/Recursive_Thread_Mutex.h"
#include "ace/Null_Mutex.h"
-
#if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO)
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
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.cpp b/TAO/tao/Principal.cpp
index c7934c3238b..a8710e3b283 100644
--- a/TAO/tao/Principal.cpp
+++ b/TAO/tao/Principal.cpp
@@ -11,19 +11,19 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-CORBA::Principal::Principal (void)
+CORBA::Principal::Principal ()
: refcount_ (1)
{
}
-CORBA::Principal::~Principal (void)
+CORBA::Principal::~Principal ()
{
}
CORBA::Boolean
operator<< (TAO_OutputCDR & cdr, CORBA::Principal * x)
{
- if (x != 0)
+ if (x != nullptr)
{
CORBA::ULong length = x->id.length ();
cdr.write_long (length);
@@ -45,7 +45,7 @@ operator>> (TAO_InputCDR & cdr, CORBA::Principal *& x)
if (length == 0 || !cdr.good_bit ())
{
- x = 0;
+ x = nullptr;
}
else
{
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.cpp b/TAO/tao/Profile.cpp
index 2c332b8fb03..00b5370e7c6 100644
--- a/TAO/tao/Profile.cpp
+++ b/TAO/tao/Profile.cpp
@@ -27,11 +27,11 @@ TAO_Profile::TAO_Profile (CORBA::ULong tag,
: version_ (version)
, are_policies_parsed_ (false)
, addressing_mode_ (0)
- , tagged_profile_ (0)
- , ref_object_key_ (0)
+ , tagged_profile_ (nullptr)
+ , ref_object_key_ (nullptr)
, tag_ (tag)
, orb_core_ (orb_core)
- , forward_to_ (0)
+ , forward_to_ (nullptr)
, refcount_ (1)
, tagged_profile_lock_ ()
, tagged_profile_created_ (false)
@@ -46,18 +46,18 @@ TAO_Profile::TAO_Profile (CORBA::ULong tag,
: version_ (version)
, are_policies_parsed_ (false)
, addressing_mode_ (0)
- , tagged_profile_ (0)
- , ref_object_key_ (0)
+ , tagged_profile_ (nullptr)
+ , ref_object_key_ (nullptr)
, tag_ (tag)
, orb_core_ (orb_core)
- , forward_to_ (0)
+ , forward_to_ (nullptr)
, refcount_ (1)
, tagged_profile_lock_ ()
, tagged_profile_created_ (false)
{
}
-TAO_Profile::~TAO_Profile (void)
+TAO_Profile::~TAO_Profile ()
{
if (this->tagged_profile_)
{
@@ -65,8 +65,6 @@ TAO_Profile::~TAO_Profile (void)
}
this->orb_core_->object_key_table ().unbind (this->ref_object_key_);
-
- //@@ TAO_PROFILE_SPL_DESTRUCTOR_ADD_HOOK
}
void
@@ -88,21 +86,21 @@ TAO_Profile::add_tagged_component (const IOP::TaggedComponent &component)
TAO_Endpoint *
-TAO_Profile::base_endpoint (void)
+TAO_Profile::base_endpoint ()
{
return this->endpoint();
}
TAO::ObjectKey *
-TAO_Profile::_key (void) const
+TAO_Profile::_key () const
{
- TAO::ObjectKey *key = 0;
+ TAO::ObjectKey *key = nullptr;
if (this->ref_object_key_)
{
ACE_NEW_RETURN (key,
TAO::ObjectKey (this->ref_object_key_->object_key ()),
- 0);
+ nullptr);
}
return key;
}
@@ -234,7 +232,7 @@ TAO_Profile::decode (TAO_InputCDR& cdr)
}
IOP::TaggedProfile *
-TAO_Profile::create_tagged_profile (void)
+TAO_Profile::create_tagged_profile ()
{
if (this->tagged_profile_created_)
return this->tagged_profile_;
@@ -249,7 +247,7 @@ TAO_Profile::create_tagged_profile (void)
{
ACE_NEW_RETURN (this->tagged_profile_,
IOP::TaggedProfile,
- 0);
+ nullptr);
// As we have not created we will now create the TaggedProfile
this->tagged_profile_->tag = this->tag_;
@@ -305,7 +303,7 @@ TAO_Profile::set_tagged_components (TAO_OutputCDR &out_cdr)
CORBA::Octet *buf = tagged_component.component_data.get_buffer ();
for (const ACE_Message_Block *iterator = out_cdr.begin ();
- iterator != 0;
+ iterator != nullptr;
iterator = iterator->cont ())
{
size_t const i_length = iterator->length ();
@@ -323,7 +321,7 @@ TAO_Profile::set_tagged_components (TAO_OutputCDR &out_cdr)
void
TAO_Profile::policies (CORBA::PolicyList *policy_list)
{
- if (policy_list == 0)
+ if (policy_list == nullptr)
{
if (TAO_debug_level)
{
@@ -338,7 +336,7 @@ TAO_Profile::policies (CORBA::PolicyList *policy_list)
Messaging::PolicyValueSeq policy_value_seq;
size_t length = 0;
- CORBA::Octet *buf = 0;
+ CORBA::Octet *buf = nullptr;
// This loop iterates through CORBA::PolicyList to convert
// each CORBA::Policy into a CORBA::PolicyValue
@@ -365,7 +363,7 @@ TAO_Profile::policies (CORBA::PolicyList *policy_list)
// Copy the CDR buffer data into the octet sequence buffer.
for (const ACE_Message_Block *iterator = out_CDR.begin ();
- iterator != 0;
+ iterator != nullptr;
iterator = iterator->cont ())
{
ACE_OS::memcpy (buf, iterator->rd_ptr (), iterator->length ());
@@ -392,7 +390,7 @@ TAO_Profile::policies (CORBA::PolicyList *policy_list)
buf = tagged_component.component_data.get_buffer ();
for (const ACE_Message_Block *iterator = out_cdr.begin ();
- iterator != 0;
+ iterator != nullptr;
iterator = iterator->cont ())
{
size_t const i_length = iterator->length ();
@@ -514,7 +512,7 @@ TAO_Profile::get_policies (CORBA::PolicyList& pl)
}
void
-TAO_Profile::verify_orb_configuration (void)
+TAO_Profile::verify_orb_configuration ()
{
// If the ORB isn't configured to support tagged components, then
// throw an exception.
@@ -547,7 +545,7 @@ TAO_Profile::verify_orb_configuration (void)
}
void
-TAO_Profile::verify_profile_version (void)
+TAO_Profile::verify_profile_version ()
{
// GIOP 1.0 does not support tagged components. Throw an exception
// if the profile is a GIOP 1.0 profile.
@@ -578,14 +576,14 @@ TAO_Profile::verify_profile_version (void)
}
int
-TAO_Profile::supports_multicast (void) const
+TAO_Profile::supports_multicast () const
{
// Most profiles do not support multicast endpoints.
return 0;
}
bool
-TAO_Profile::supports_non_blocking_oneways (void) const
+TAO_Profile::supports_non_blocking_oneways () const
{
return !(this->version_.major == 1 && this->version_.minor == 0);
}
@@ -688,23 +686,23 @@ CORBA::Boolean
TAO_Profile::compare_key (const TAO_Profile *other) const
{
return (this->ref_object_key_ == other->ref_object_key_) ||
- ((this->ref_object_key_ != 0 &&
- other->ref_object_key_ != 0 &&
+ ((this->ref_object_key_ != nullptr &&
+ other->ref_object_key_ != nullptr &&
this->ref_object_key_->object_key() ==
other->ref_object_key_->object_key()));
}
TAO_Endpoint *
-TAO_Profile::first_filtered_endpoint (void)
+TAO_Profile::first_filtered_endpoint ()
{
TAO_Endpoint *ep = this->endpoint();
- return ep == 0 ? 0 : ep->next_filtered(this->orb_core_,0);
+ return ep == nullptr ? nullptr : ep->next_filtered(this->orb_core_,nullptr);
}
TAO_Endpoint *
TAO_Profile::next_filtered_endpoint (TAO_Endpoint *source)
{
- if (source == 0)
+ if (source == nullptr)
return this->first_filtered_endpoint();
return source->next_filtered(this->orb_core_,this->endpoint());
}
@@ -728,15 +726,8 @@ TAO_Profile::hash_service_i (CORBA::ULong m)
return this->orb_core_->hash_service (this, m);
}
-/*
- * Hook to comment out no op method
- * in the base class that is specialized in the
- * derived class.
- */
-//@@ TAO_PROFILE_SPL_COMMENT_HOOK_START
-
int
-TAO_Profile::encode_alternate_endpoints(void)
+TAO_Profile::encode_alternate_endpoints()
{
// this should be a pure virtual, but there are many
// existing specializations that would need to be
@@ -753,10 +744,6 @@ TAO_Profile::remove_generic_endpoint (TAO_Endpoint *)
// default for virtual methods, thus a no-op
}
-//@@ TAO_PROFILE_SPL_COMMENT_HOOK_END
-
-//@@ TAO_PROFILE_SPL_METHODS_ADD_HOOK
-
// ****************************************************************
TAO_Unknown_Profile::TAO_Unknown_Profile (CORBA::ULong tag,
@@ -769,13 +756,13 @@ TAO_Unknown_Profile::TAO_Unknown_Profile (CORBA::ULong tag,
}
TAO_Endpoint*
-TAO_Unknown_Profile::endpoint (void)
+TAO_Unknown_Profile::endpoint ()
{
- return 0;
+ return nullptr;
}
CORBA::ULong
-TAO_Unknown_Profile::endpoint_count (void) const
+TAO_Unknown_Profile::endpoint_count () const
{
return 0;
}
@@ -793,16 +780,16 @@ TAO_Unknown_Profile::parse_string_i (const char *)
}
char
-TAO_Unknown_Profile::object_key_delimiter (void) const
+TAO_Unknown_Profile::object_key_delimiter () const
{
return 0;
}
char *
-TAO_Unknown_Profile::to_string (void) const
+TAO_Unknown_Profile::to_string () const
{
// @@ THROW something?
- return 0;
+ return nullptr;
}
int
@@ -823,7 +810,7 @@ TAO_Unknown_Profile::decode_profile (TAO_InputCDR &)
}
int
-TAO_Unknown_Profile::decode_endpoints (void)
+TAO_Unknown_Profile::decode_endpoints ()
{
return 0;
}
@@ -836,15 +823,15 @@ TAO_Unknown_Profile::encode (TAO_OutputCDR &stream) const
}
int
-TAO_Unknown_Profile::encode_endpoints (void)
+TAO_Unknown_Profile::encode_endpoints ()
{
return 0;
}
TAO::ObjectKey *
-TAO_Unknown_Profile::_key (void) const
+TAO_Unknown_Profile::_key () const
{
- return 0;
+ return nullptr;
}
CORBA::Boolean
@@ -853,7 +840,7 @@ TAO_Unknown_Profile::do_is_equivalent (const TAO_Profile* other_profile)
const TAO_Unknown_Profile * op =
dynamic_cast <const TAO_Unknown_Profile *> (other_profile);
- return (CORBA::Boolean) (op == 0 ? 0 : this->body_ == op->body_);
+ return (CORBA::Boolean) (op == nullptr ? 0 : this->body_ == op->body_);
}
TAO_Service_Callbacks::Profile_Equivalence
@@ -893,7 +880,7 @@ operator<< (TAO_OutputCDR& cdr, const TAO_opaque& x)
cdr.write_ulong (length);
#if (TAO_NO_COPY_OCTET_SEQUENCES == 1)
- if (x.mb () != 0)
+ if (x.mb () != nullptr)
{
cdr.write_octet_array_mb (x.mb ());
}
@@ -915,7 +902,7 @@ operator>>(TAO_InputCDR& cdr, TAO_opaque& x)
#if (TAO_NO_COPY_OCTET_SEQUENCES == 1)
if(ACE_BIT_DISABLED(cdr.start()->flags(),
ACE_Message_Block::DONT_DELETE)
- && (cdr.orb_core() == 0
+ && (cdr.orb_core() == nullptr
|| 1 == cdr.orb_core()->
resource_factory()->
input_cdr_allocator_type_locked()
diff --git a/TAO/tao/Profile.h b/TAO/tao/Profile.h
index 88423d1657e..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
@@ -273,11 +269,9 @@ public:
virtual CORBA::ULong hash (CORBA::ULong max) = 0;
//@}
- //@@ TAO_PROFILE_SPL_PUBLIC_METHODS_ADD_HOOK
-
protected:
/// If you have a virtual method you need a virtual dtor.
- virtual ~TAO_Profile (void);
+ virtual ~TAO_Profile ();
/**
* @name Protected template methods.
@@ -296,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;
@@ -333,24 +327,21 @@ 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&);
void operator= (const TAO_Profile&);
- //@@ TAO_PROFILE_SPL_PROTECTED_METHODS_ADD_HOOK
-
protected:
-
/// IIOP version number.
TAO_GIOP_Message_Version version_;
@@ -384,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_;
@@ -396,15 +383,10 @@ private:
/// Having (tagged_profile_ != 0) doesn't mean yet that
/// tagged_profile_ building is finished.
bool tagged_profile_created_;
-
- //@@ TAO_PROFILE_SPL_PRIVATE_DATA_ADD_HOOK
};
-//@@ TAO_PROFILE_SPL_EXTERN_ADD_HOOK
-
// A helper class to handle the various kinds of octet sequences used
// inside the ORB.
-
typedef TAO::unbounded_value_sequence<CORBA::Octet> TAO_opaque;
TAO_Export CORBA::Boolean
@@ -435,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);
@@ -462,8 +444,6 @@ private:
TAO_opaque body_;
};
-//@@ TAO_PROFILE_SPL_EXTERN_HOOK
-
TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
diff --git a/TAO/tao/Profile_Transport_Resolver.cpp b/TAO/tao/Profile_Transport_Resolver.cpp
index 4423d4a25fe..860a3283295 100644
--- a/TAO/tao/Profile_Transport_Resolver.cpp
+++ b/TAO/tao/Profile_Transport_Resolver.cpp
@@ -28,7 +28,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
- Profile_Transport_Resolver::~Profile_Transport_Resolver (void)
+ Profile_Transport_Resolver::~Profile_Transport_Resolver ()
{
if (this->profile_)
{
@@ -82,7 +82,7 @@ namespace TAO
// Select the endpoint
es->select_endpoint (this, max_time_val);
- if (this->transport_.get () == 0)
+ if (this->transport_.get () == nullptr)
{
// No useable endpoint could be found. We will not
// be able to send the message. Wait to throw an exception until
@@ -130,7 +130,7 @@ namespace TAO
TAO_Connector_Registry *conn_reg =
this->stub_->orb_core ()->connector_registry ();
- if (conn_reg == 0)
+ if (conn_reg == nullptr)
{
throw ::CORBA::INTERNAL (
CORBA::SystemException::_tao_minor_code (
@@ -148,18 +148,18 @@ namespace TAO
}
else if (has_con_timeout)
{
- if (timeout == 0 || connection_timeout < *timeout)
+ if (timeout == nullptr || connection_timeout < *timeout)
timeout = &connection_timeout;
else
has_con_timeout = false;
}
else if (!this->blocked_)
{
- timeout = 0;
+ timeout = nullptr;
}
TAO_Connector *con = conn_reg->get_connector (desc->endpoint ()->tag ());
- ACE_ASSERT(con != 0);
+ ACE_ASSERT(con != nullptr);
if (parallel)
{
this->transport_.set (con->parallel_connect (this, desc, timeout));
@@ -172,7 +172,7 @@ namespace TAO
// If the user has set a roundtrip timeout policy, throw a timeout
// exception. Otherwise, just fall through and return false to
// look at the next endpoint.
- if (this->transport_.get () == 0 &&
+ if (this->transport_.get () == nullptr &&
has_con_timeout == false &&
errno == ETIME)
{
@@ -182,7 +182,7 @@ namespace TAO
errno),
CORBA::COMPLETED_NO);
}
- else if (this->transport_.get () == 0)
+ else if (this->transport_.get () == nullptr)
{
return false;
}
@@ -200,7 +200,7 @@ namespace TAO
}
bool
- Profile_Transport_Resolver::use_parallel_connect (void) const
+ Profile_Transport_Resolver::use_parallel_connect () const
{
TAO_ORB_Core *oc = this->stub_->orb_core();
return (oc->orb_params()->use_parallel_connects()
@@ -229,7 +229,7 @@ namespace TAO
void
- Profile_Transport_Resolver::init_inconsistent_policies (void)
+ Profile_Transport_Resolver::init_inconsistent_policies ()
{
ACE_NEW_THROW_EX (this->inconsistent_policies_,
CORBA::PolicyList (0),
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/Protocol_Factory.cpp b/TAO/tao/Protocol_Factory.cpp
index d8572873fe1..9fd5df93b81 100644
--- a/TAO/tao/Protocol_Factory.cpp
+++ b/TAO/tao/Protocol_Factory.cpp
@@ -7,12 +7,12 @@ TAO_Protocol_Factory::TAO_Protocol_Factory (CORBA::ULong tag)
{
}
-TAO_Protocol_Factory::~TAO_Protocol_Factory (void)
+TAO_Protocol_Factory::~TAO_Protocol_Factory ()
{
}
CORBA::ULong
-TAO_Protocol_Factory::tag (void) const
+TAO_Protocol_Factory::tag () const
{
return this->tag_;
}
diff --git a/TAO/tao/Protocols_Hooks.cpp b/TAO/tao/Protocols_Hooks.cpp
index cc344282e8d..ad56ce31a3f 100644
--- a/TAO/tao/Protocols_Hooks.cpp
+++ b/TAO/tao/Protocols_Hooks.cpp
@@ -3,7 +3,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_IIOP_Protocol_Properties::TAO_IIOP_Protocol_Properties (void)
+TAO_IIOP_Protocol_Properties::TAO_IIOP_Protocol_Properties ()
: send_buffer_size_ (0),
recv_buffer_size_ (0),
keep_alive_ (0),
@@ -14,13 +14,13 @@ TAO_IIOP_Protocol_Properties::TAO_IIOP_Protocol_Properties (void)
{
}
-TAO_UIOP_Protocol_Properties::TAO_UIOP_Protocol_Properties (void)
+TAO_UIOP_Protocol_Properties::TAO_UIOP_Protocol_Properties ()
: send_buffer_size_ (0),
recv_buffer_size_ (0)
{
}
-TAO_SHMIOP_Protocol_Properties::TAO_SHMIOP_Protocol_Properties (void)
+TAO_SHMIOP_Protocol_Properties::TAO_SHMIOP_Protocol_Properties ()
: send_buffer_size_ (0),
recv_buffer_size_ (0),
keep_alive_ (0),
@@ -32,7 +32,7 @@ TAO_SHMIOP_Protocol_Properties::TAO_SHMIOP_Protocol_Properties (void)
{
}
-TAO_DIOP_Protocol_Properties::TAO_DIOP_Protocol_Properties (void)
+TAO_DIOP_Protocol_Properties::TAO_DIOP_Protocol_Properties ()
: send_buffer_size_ (0),
recv_buffer_size_ (0),
enable_network_priority_ (0),
@@ -41,7 +41,7 @@ TAO_DIOP_Protocol_Properties::TAO_DIOP_Protocol_Properties (void)
{
}
-TAO_SCIOP_Protocol_Properties::TAO_SCIOP_Protocol_Properties (void)
+TAO_SCIOP_Protocol_Properties::TAO_SCIOP_Protocol_Properties ()
: send_buffer_size_ (0),
recv_buffer_size_ (0),
keep_alive_ (0),
@@ -52,7 +52,7 @@ TAO_SCIOP_Protocol_Properties::TAO_SCIOP_Protocol_Properties (void)
{
}
-TAO_Protocols_Hooks::~TAO_Protocols_Hooks (void)
+TAO_Protocols_Hooks::~TAO_Protocols_Hooks ()
{
}
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.cpp b/TAO/tao/Queued_Data.cpp
index 88806f10973..438f9d8a5c4 100644
--- a/TAO/tao/Queued_Data.cpp
+++ b/TAO/tao/Queued_Data.cpp
@@ -34,15 +34,15 @@ clone_mb_nocopy_size (ACE_Message_Block *mb, size_t span_size)
size_t const aligned_size = ACE_CDR::first_size (span_size + ACE_CDR::MAX_ALIGNMENT);
// Get the allocators
- ACE_Allocator *data_allocator = 0;
- ACE_Allocator *data_block_allocator = 0;
- ACE_Allocator *message_block_allocator = 0;
+ ACE_Allocator *data_allocator = nullptr;
+ ACE_Allocator *data_block_allocator = nullptr;
+ ACE_Allocator *message_block_allocator = nullptr;
mb->access_allocators (data_allocator,
data_block_allocator,
message_block_allocator);
// Create a new Message Block
- ACE_Message_Block *nb = 0;
+ ACE_Message_Block *nb = nullptr;
ACE_NEW_MALLOC_RETURN (nb,
static_cast<ACE_Message_Block*> (
message_block_allocator->malloc (
@@ -50,7 +50,7 @@ clone_mb_nocopy_size (ACE_Message_Block *mb, size_t span_size)
ACE_Message_Block(aligned_size,
mb->msg_type(),
mb->cont(),
- 0, //we want the data block created
+ nullptr, //we want the data block created
data_allocator,
mb->locking_strategy(),
mb->msg_priority(),
@@ -58,7 +58,7 @@ clone_mb_nocopy_size (ACE_Message_Block *mb, size_t span_size)
mb->msg_deadline_time (),
data_block_allocator,
message_block_allocator),
- 0);
+ nullptr);
ACE_CDR::mb_align (nb);
@@ -77,7 +77,7 @@ TAO_Queued_Data::make_queued_data (ACE_Allocator *message_buffer_alloc,
ACE_Data_Block *db)
{
// Get a node for the queue..
- TAO_Queued_Data *qd = 0;
+ TAO_Queued_Data *qd = nullptr;
if (message_buffer_alloc)
{
@@ -85,7 +85,7 @@ TAO_Queued_Data::make_queued_data (ACE_Allocator *message_buffer_alloc,
static_cast<TAO_Queued_Data *> (
message_buffer_alloc->malloc (sizeof (TAO_Queued_Data))),
TAO_Queued_Data (message_buffer_alloc),
- 0);
+ nullptr);
}
else
@@ -93,20 +93,20 @@ TAO_Queued_Data::make_queued_data (ACE_Allocator *message_buffer_alloc,
// No allocator, so use the global pool!
ACE_NEW_RETURN (qd,
TAO_Queued_Data,
- 0);
+ nullptr);
}
// Providing an ACE_Data_Block indicates that the caller wants
// an aligned ACE_Message_Block added to the TAO_Queued_Data.
- if (db != 0)
+ if (db != nullptr)
{
// If this allocation fails, the TAO_Queued_Data will be leaked.
- if (input_cdr_alloc == 0)
+ if (input_cdr_alloc == nullptr)
ACE_NEW_RETURN (qd->msg_block_,
ACE_Message_Block (db,
0,
input_cdr_alloc),
- 0);
+ nullptr);
else
ACE_NEW_MALLOC_RETURN (qd->msg_block_,
static_cast<ACE_Message_Block*> (
@@ -114,7 +114,7 @@ TAO_Queued_Data::make_queued_data (ACE_Allocator *message_buffer_alloc,
ACE_Message_Block (db,
0,
input_cdr_alloc),
- 0);
+ nullptr);
ACE_CDR::mb_align (qd->msg_block_);
}
@@ -168,7 +168,7 @@ TAO_Queued_Data::duplicate (TAO_Queued_Data &sqd)
(void) TAO_Queued_Data::replace_data_block (*sqd.msg_block_);
- TAO_Queued_Data *qd = 0;
+ TAO_Queued_Data *qd = nullptr;
if (sqd.allocator_)
{
@@ -176,7 +176,7 @@ TAO_Queued_Data::duplicate (TAO_Queued_Data &sqd)
static_cast<TAO_Queued_Data *> (
sqd.allocator_->malloc (sizeof (TAO_Queued_Data))),
TAO_Queued_Data (sqd),
- 0);
+ nullptr);
return qd;
}
@@ -193,23 +193,23 @@ TAO_Queued_Data::duplicate (TAO_Queued_Data &sqd)
ACE_NEW_RETURN (qd,
TAO_Queued_Data (sqd),
- 0);
+ nullptr);
return qd;
}
int
-TAO_Queued_Data::consolidate (void)
+TAO_Queued_Data::consolidate ()
{
// Is this a chain of fragments?
- if (this->state_.more_fragments () && this->msg_block_->cont () != 0)
+ if (this->state_.more_fragments () && this->msg_block_->cont () != nullptr)
{
// Create a message block big enough to hold the entire chain
ACE_Message_Block *dest = clone_mb_nocopy_size (
this->msg_block_,
this->msg_block_->total_length ());
- if (0 == dest)
+ if (nullptr == dest)
{
// out of memory
return -1;
@@ -220,7 +220,7 @@ TAO_Queued_Data::consolidate (void)
// Reset the cont() parameter. We have cloned the message
// block but not the chain as we will no longer have chain.
- dest->cont (0);
+ dest->cont (nullptr);
// Use ACE_CDR to consolidate the chain for us
ACE_CDR::consolidate (dest, this->msg_block_);
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/Queued_Message.cpp b/TAO/tao/Queued_Message.cpp
index f279c7b4b57..74e2dd273d0 100644
--- a/TAO/tao/Queued_Message.cpp
+++ b/TAO/tao/Queued_Message.cpp
@@ -12,12 +12,12 @@ TAO_Queued_Message::TAO_Queued_Message (TAO_ORB_Core *oc,
: allocator_ (alloc)
, is_heap_created_ (is_heap_allocated)
, orb_core_ (oc)
- , next_ (0)
- , prev_ (0)
+ , next_ (nullptr)
+ , prev_ (nullptr)
{
}
-TAO_Queued_Message::~TAO_Queued_Message (void)
+TAO_Queued_Message::~TAO_Queued_Message ()
{
}
@@ -25,7 +25,7 @@ void
TAO_Queued_Message::remove_from_list (TAO_Queued_Message *&head,
TAO_Queued_Message *&tail)
{
- if (this->prev_ != 0)
+ if (this->prev_ != nullptr)
{
this->prev_->next_ = this->next_;
}
@@ -34,7 +34,7 @@ TAO_Queued_Message::remove_from_list (TAO_Queued_Message *&head,
head = this->next_;
}
- if (this->next_ != 0)
+ if (this->next_ != nullptr)
{
this->next_->prev_ = this->prev_;
}
@@ -43,26 +43,26 @@ TAO_Queued_Message::remove_from_list (TAO_Queued_Message *&head,
tail = this->prev_;
}
- this->next_ = 0;
- this->prev_ = 0;
+ this->next_ = nullptr;
+ this->prev_ = nullptr;
}
void
TAO_Queued_Message::push_back (TAO_Queued_Message *&head,
TAO_Queued_Message *&tail)
{
- if (tail == 0)
+ if (tail == nullptr)
{
tail = this;
head = this;
- this->next_ = 0;
- this->prev_ = 0;
+ this->next_ = nullptr;
+ this->prev_ = nullptr;
}
else
{
tail->next_ = this;
this->prev_ = tail;
- this->next_ = 0;
+ this->next_ = nullptr;
tail = this;
}
}
@@ -71,18 +71,18 @@ void
TAO_Queued_Message::push_front (TAO_Queued_Message *&head,
TAO_Queued_Message *&tail)
{
- if (head == 0)
+ if (head == nullptr)
{
tail = this;
head = this;
- this->next_ = 0;
- this->prev_ = 0;
+ this->next_ = nullptr;
+ this->prev_ = nullptr;
}
else
{
head->prev_ = this;
this->next_ = head;
- this->prev_ = 0;
+ this->prev_ = nullptr;
head = this;
}
}
diff --git a/TAO/tao/RTCORBA/Continuous_Priority_Mapping.h b/TAO/tao/RTCORBA/Continuous_Priority_Mapping.h
index ec5685a7e1c..ebea5fae814 100644
--- a/TAO/tao/RTCORBA/Continuous_Priority_Mapping.h
+++ b/TAO/tao/RTCORBA/Continuous_Priority_Mapping.h
@@ -49,7 +49,6 @@ class TAO_RTCORBA_Export TAO_Continuous_Priority_Mapping
: public TAO_Priority_Mapping
{
public:
-
/// Constructor.
TAO_Continuous_Priority_Mapping (int policy = ACE_SCHED_OTHER);
diff --git a/TAO/tao/RTCORBA/Direct_Priority_Mapping.h b/TAO/tao/RTCORBA/Direct_Priority_Mapping.h
index b0101210399..3d6137a8583 100644
--- a/TAO/tao/RTCORBA/Direct_Priority_Mapping.h
+++ b/TAO/tao/RTCORBA/Direct_Priority_Mapping.h
@@ -37,7 +37,6 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_RTCORBA_Export TAO_Direct_Priority_Mapping : public TAO_Priority_Mapping
{
public:
-
TAO_Direct_Priority_Mapping (long);
/// The destructor
diff --git a/TAO/tao/RTCORBA/Linear_Network_Priority_Mapping.h b/TAO/tao/RTCORBA/Linear_Network_Priority_Mapping.h
index 8dbd1dcb636..69b1946e9c3 100644
--- a/TAO/tao/RTCORBA/Linear_Network_Priority_Mapping.h
+++ b/TAO/tao/RTCORBA/Linear_Network_Priority_Mapping.h
@@ -40,7 +40,6 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_RTCORBA_Export TAO_Linear_Network_Priority_Mapping : public TAO_Network_Priority_Mapping
{
public:
-
TAO_Linear_Network_Priority_Mapping (long);
CORBA::Boolean to_network (RTCORBA::Priority corba_priority,
diff --git a/TAO/tao/RTCORBA/RT_ORB_Loader.cpp b/TAO/tao/RTCORBA/RT_ORB_Loader.cpp
index 4ba033315b0..5e2f2cc3ff2 100644
--- a/TAO/tao/RTCORBA/RT_ORB_Loader.cpp
+++ b/TAO/tao/RTCORBA/RT_ORB_Loader.cpp
@@ -147,7 +147,7 @@ TAO_RT_ORB_Loader::init (int argc, ACE_TCHAR* argv[])
(ACE_TEXT("-RTORBDynamicThreadIdleTimeout"))))
{
const ACE_TCHAR *name = current_arg;
- int timeout = ACE_OS::atoi (name);
+ int const timeout = ACE_OS::atoi (name);
dynamic_thread_time = ACE_Time_Value (0, timeout);
lifespan = TAO_RT_ORBInitializer::TAO_RTCORBA_DT_IDLE;
arg_shifter.consume_arg ();
@@ -156,7 +156,7 @@ TAO_RT_ORB_Loader::init (int argc, ACE_TCHAR* argv[])
(ACE_TEXT("-RTORBDynamicThreadRunTime"))))
{
const ACE_TCHAR *name = current_arg;
- int timeout = ACE_OS::atoi (name);
+ int const timeout = ACE_OS::atoi (name);
dynamic_thread_time = ACE_Time_Value (0, timeout);
lifespan = TAO_RT_ORBInitializer::TAO_RTCORBA_DT_FIXED;
arg_shifter.consume_arg ();
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/RTPortableServer/RT_POA.cpp b/TAO/tao/RTPortableServer/RT_POA.cpp
index fff8a5119b9..7bb648c4e7f 100644
--- a/TAO/tao/RTPortableServer/RT_POA.cpp
+++ b/TAO/tao/RTPortableServer/RT_POA.cpp
@@ -285,8 +285,7 @@ TAO_RT_POA::key_to_stub_i (const TAO::ObjectKey &object_key,
type_id,
client_exposed_policies._retn (),
&filter,
- lanes[i]->resources ().acceptor_registry ()
- );
+ lanes[i]->resources ().acceptor_registry ());
}
ACE_ASSERT (0);
diff --git a/TAO/tao/RTScheduling/Current.cpp b/TAO/tao/RTScheduling/Current.cpp
index 0635fcc691b..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
@@ -88,16 +88,14 @@ TAO_RTScheduler_Current::begin_scheduling_segment (
impl->begin_scheduling_segment (name,
sched_param,
- implicit_sched_param
- );
+ implicit_sched_param);
}
void
TAO_RTScheduler_Current::update_scheduling_segment (const char * name,
CORBA::Policy_ptr sched_param,
- CORBA::Policy_ptr implicit_sched_param
- )
+ CORBA::Policy_ptr implicit_sched_param)
{
TAO_RTScheduler_Current_i *impl = this->implementation ();
@@ -106,8 +104,7 @@ TAO_RTScheduler_Current::update_scheduling_segment (const char * name,
impl->update_scheduling_segment (name,
sched_param,
- implicit_sched_param
- );
+ implicit_sched_param);
}
void
@@ -123,8 +120,7 @@ TAO_RTScheduler_Current::end_scheduling_segment (const char * name)
return;
}
- impl->end_scheduling_segment (name
- );
+ impl->end_scheduling_segment (name);
}
RTScheduling::DistributableThread_ptr
@@ -162,8 +158,7 @@ TAO_RTScheduler_Current::spawn (RTScheduling::ThreadAction_ptr start,
sched_param,
implicit_sched_param,
stack_size,
- base_priority
- );
+ base_priority);
}
RTScheduling::Current::IdType *
@@ -301,8 +296,7 @@ TAO_RTScheduler_Current_i::TAO_RTScheduler_Current_i (
orb->object_ref_table ().resolve_initial_reference (
"RTScheduler");
- this->scheduler_ = RTScheduling::Scheduler::_narrow (scheduler_obj.in ()
- );
+ this->scheduler_ = RTScheduling::Scheduler::_narrow (scheduler_obj.in ());
}
TAO_RTScheduler_Current_i::~TAO_RTScheduler_Current_i (void)
@@ -335,8 +329,7 @@ TAO_RTScheduler_Current_i::begin_scheduling_segment(
this->scheduler_->begin_new_scheduling_segment (this->guid_,
name,
sched_param,
- implicit_sched_param
- );
+ implicit_sched_param);
if (CORBA::is_nil (this->dt_.in ()))
//Create new DT.
@@ -371,8 +364,7 @@ TAO_RTScheduler_Current_i::begin_scheduling_segment(
(this->guid_,
name,
sched_param,
- implicit_sched_param
- );
+ implicit_sched_param);
TAO_TSS_Resources *tss =
TAO_TSS_Resources::instance ();
@@ -413,8 +405,7 @@ TAO_RTScheduler_Current_i::update_scheduling_segment (const char * name,
this->scheduler_->update_scheduling_segment (this->guid_,
name,
sched_param,
- implicit_sched_param
- );
+ implicit_sched_param);
// Remember the new values.
this->name_ = CORBA::string_dup (name);
@@ -435,9 +426,7 @@ TAO_RTScheduler_Current_i::end_scheduling_segment (const char * name)
{
// Let the scheduler know that the DT is
// terminating.
- this->scheduler_->end_scheduling_segment(this->guid_,
- name
- );
+ this->scheduler_->end_scheduling_segment(this->guid_, name);
// Cleanup DT.
this->cleanup_DT ();
@@ -452,8 +441,7 @@ TAO_RTScheduler_Current_i::end_scheduling_segment (const char * name)
// scheduling segment.
this->scheduler_->end_nested_scheduling_segment (this->guid_,
name,
- this->previous_current_->sched_param_.in ()
- );
+ this->previous_current_->sched_param_.in ());
// Cleanup current.
this->cleanup_current ();
@@ -540,8 +528,7 @@ DTTask::activate_task (RTCORBA::Priority base_priority,
TAO_OBJID_PRIORITYMAPPINGMANAGER);
RTCORBA::PriorityMappingManager_var mapping_manager =
- RTCORBA::PriorityMappingManager::_narrow (object.in ()
- );
+ RTCORBA::PriorityMappingManager::_narrow (object.in ());
RTCORBA::PriorityMapping *pm =
mapping_manager->mapping ();
@@ -608,15 +595,12 @@ DTTask::svc (void)
this->current_->begin_scheduling_segment (this->name_.in (),
this->sched_param_.in (),
- this->implicit_sched_param_.in ()
- );
+ this->implicit_sched_param_.in ());
// Invoke entry point into new DT.
- this->start_->_cxx_do (this->data_
- );
+ this->start_->_cxx_do (this->data_);
- this->current_->end_scheduling_segment (this->name_.in ()
- );
+ this->current_->end_scheduling_segment (this->name_.in ());
}
catch (const ::CORBA::Exception& ex)
{
@@ -692,8 +676,7 @@ TAO_RTScheduler_Current_i::cancel_thread (void)
// Let the scheduler know that the thread has
// been cancelled.
- this->scheduler_->cancel (this->guid_
- );
+ this->scheduler_->cancel (this->guid_);
this->cleanup_DT ();
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/RTScheduler_Initializer.cpp b/TAO/tao/RTScheduling/RTScheduler_Initializer.cpp
index e2203898718..a431e8c4be4 100644
--- a/TAO/tao/RTScheduling/RTScheduler_Initializer.cpp
+++ b/TAO/tao/RTScheduling/RTScheduler_Initializer.cpp
@@ -119,8 +119,7 @@ TAO_RTScheduler_ORB_Initializer::post_init (PortableInterceptor::ORBInitInfo_ptr
// counting.
// Narrow to a TAO_ORBInitInfo object to get access to the
// orb_core() TAO extension.
- //TAO_ORBInitInfo_var tao_info = TAO_ORBInitInfo::_narrow (info
- // );
+ //TAO_ORBInitInfo_var tao_info = TAO_ORBInitInfo::_narrow (info);
if (TAO_debug_level > 0)
TAOLIB_DEBUG ((LM_DEBUG,
diff --git a/TAO/tao/RTScheduling/RTScheduler_Manager.inl b/TAO/tao/RTScheduling/RTScheduler_Manager.inl
index 06c377c6a36..8247beea3a8 100644
--- a/TAO/tao/RTScheduling/RTScheduler_Manager.inl
+++ b/TAO/tao/RTScheduling/RTScheduler_Manager.inl
@@ -217,8 +217,7 @@ TAO_RTScheduler_Manager::rtscheduler (void)
}
ACE_INLINE void
-TAO_RTScheduler_Manager::rtscheduler (RTScheduling::Scheduler_ptr rtscheduler
- )
+TAO_RTScheduler_Manager::rtscheduler (RTScheduling::Scheduler_ptr rtscheduler)
{
this->rtscheduler_ = RTScheduling::Scheduler::_duplicate (rtscheduler);
this->orb_->orb ()->register_initial_reference (
diff --git a/TAO/tao/RTScheduling/Request_Interceptor.cpp b/TAO/tao/RTScheduling/Request_Interceptor.cpp
index 37c187c7ad9..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 =
@@ -253,8 +253,7 @@ Server_Interceptor::receive_request_service_contexts (
}
void
-Server_Interceptor::receive_request (PortableInterceptor::ServerRequestInfo_ptr ri
- )
+Server_Interceptor::receive_request (PortableInterceptor::ServerRequestInfo_ptr ri)
{
if (TAO_debug_level > 0)
TAOLIB_DEBUG ((LM_DEBUG,
diff --git a/TAO/tao/RTScheduling/Request_Interceptor.h b/TAO/tao/RTScheduling/Request_Interceptor.h
index 5eaffea8a89..879d73a7876 100644
--- a/TAO/tao/RTScheduling/Request_Interceptor.h
+++ b/TAO/tao/RTScheduling/Request_Interceptor.h
@@ -13,14 +13,13 @@
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,
public ::CORBA::LocalObject
{
public:
-
// Client_Interceptor (RTScheduling::Current_ptr current);
virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri);
@@ -37,14 +36,12 @@ public:
virtual void destroy (void);
static const IOP::ServiceId SchedulingInfo;
-
};
class TAO_RTScheduler_Export Server_Interceptor :
public PortableInterceptor::ServerRequestInterceptor,
public ::CORBA::LocalObject
{
-
public:
Server_Interceptor (TAO_RTScheduler_Current_ptr current);
@@ -66,7 +63,6 @@ public:
private:
TAO_RTScheduler_Current_var current_;
-
};
TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Reactive_Connect_Strategy.cpp b/TAO/tao/Reactive_Connect_Strategy.cpp
index db4e03fc623..8593179a35a 100644
--- a/TAO/tao/Reactive_Connect_Strategy.cpp
+++ b/TAO/tao/Reactive_Connect_Strategy.cpp
@@ -16,7 +16,7 @@ TAO_Reactive_Connect_Strategy::TAO_Reactive_Connect_Strategy (
{
}
-TAO_Reactive_Connect_Strategy::~TAO_Reactive_Connect_Strategy (void)
+TAO_Reactive_Connect_Strategy::~TAO_Reactive_Connect_Strategy ()
{
}
@@ -24,7 +24,7 @@ void
TAO_Reactive_Connect_Strategy::synch_options (ACE_Time_Value *timeout,
ACE_Synch_Options &options)
{
- if (timeout != 0)
+ if (timeout != nullptr)
{
options.set (ACE_Synch_Options::USE_REACTOR,
*timeout);
@@ -43,7 +43,7 @@ TAO_Reactive_Connect_Strategy::wait_i (TAO_LF_Event *ev,
ACE_Time_Value * max_wait_time)
{
int result = 0;
- if (ev == 0)
+ if (ev == nullptr)
return -1;
if (TAO_debug_level > 2)
@@ -66,7 +66,7 @@ TAO_Reactive_Connect_Strategy::wait_i (TAO_LF_Event *ev,
// Did we timeout? If so, stop running the loop.
if (result == 0 &&
- max_wait_time != 0 &&
+ max_wait_time != nullptr &&
*max_wait_time == ACE_Time_Value::zero)
{
errno = ETIME;
diff --git a/TAO/tao/Reactive_Flushing_Strategy.cpp b/TAO/tao/Reactive_Flushing_Strategy.cpp
index 9cd855e8bf0..f7bff78c6c2 100644
--- a/TAO/tao/Reactive_Flushing_Strategy.cpp
+++ b/TAO/tao/Reactive_Flushing_Strategy.cpp
@@ -34,7 +34,7 @@ TAO_Reactive_Flushing_Strategy::flush_message (TAO_Transport *transport,
{
result = orb_core->run (max_wait_time, 1);
- if (max_wait_time != 0) {
+ if (max_wait_time != nullptr) {
if (*max_wait_time <= ACE_Time_Value::zero) {
errno = ETIME;
result = -1;
@@ -63,7 +63,7 @@ TAO_Reactive_Flushing_Strategy::flush_transport (TAO_Transport *transport
if (orb_core->run (max_wait_time, 1) == -1)
return -1;
- if (max_wait_time != 0) {
+ if (max_wait_time != nullptr) {
if (*max_wait_time <= ACE_Time_Value::zero) {
errno = ETIME;
return -1;
diff --git a/TAO/tao/Refcounted_ObjectKey.cpp b/TAO/tao/Refcounted_ObjectKey.cpp
index 4290884211a..64f765258d5 100644
--- a/TAO/tao/Refcounted_ObjectKey.cpp
+++ b/TAO/tao/Refcounted_ObjectKey.cpp
@@ -14,7 +14,7 @@ TAO::Refcounted_ObjectKey::Refcounted_ObjectKey (const TAO::ObjectKey &key)
{
}
-TAO::Refcounted_ObjectKey::~Refcounted_ObjectKey (void)
+TAO::Refcounted_ObjectKey::~Refcounted_ObjectKey ()
{
}
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/Remote_Invocation.cpp b/TAO/tao/Remote_Invocation.cpp
index cb8ed85c6a5..8245c697236 100644
--- a/TAO/tao/Remote_Invocation.cpp
+++ b/TAO/tao/Remote_Invocation.cpp
@@ -70,7 +70,7 @@ namespace TAO
// IOP::IOR info, the call would create the info and return the
// index that we need.
CORBA::ULong index = 0;
- IOP::IOR *ior_info = 0;
+ IOP::IOR *ior_info = nullptr;
if (this->resolver_.stub ()->create_ior_info (ior_info, index) == -1)
{
@@ -94,7 +94,7 @@ namespace TAO
void
Remote_Invocation::write_header (TAO_OutputCDR &out_stream)
{
- this->resolver_.transport ()->clear_translators (0, &out_stream);
+ this->resolver_.transport ()->clear_translators (nullptr, &out_stream);
TAO_Target_Specification spec;
this->init_target_spec (spec, out_stream);
@@ -107,7 +107,7 @@ namespace TAO
throw ::CORBA::MARSHAL ();
}
- this->resolver_.transport ()->assign_translators (0, &out_stream);
+ this->resolver_.transport ()->assign_translators (nullptr, &out_stream);
}
Invocation_Status
@@ -125,7 +125,7 @@ namespace TAO
TAO_Connection_Handler *connection_handler =
this->resolver_.transport ()->connection_handler ();
- if (nph != 0)
+ if (nph != nullptr)
{
// nph = 0, means DiffServ library is not used
// nph = 0, means DiffServ library is used, and
@@ -138,7 +138,7 @@ namespace TAO
this->resolver_.object ());
connection_handler->set_dscp_codepoint (dscp);
}
- else if (tph != 0)
+ else if (tph != nullptr)
{
// If we execute this code, DiffServ library is not used,
// but RTCORBA could be used.
diff --git a/TAO/tao/Remote_Object_Proxy_Broker.cpp b/TAO/tao/Remote_Object_Proxy_Broker.cpp
index 390d2d7c1b4..38a1cc996d5 100644
--- a/TAO/tao/Remote_Object_Proxy_Broker.cpp
+++ b/TAO/tao/Remote_Object_Proxy_Broker.cpp
@@ -34,7 +34,7 @@ namespace TAO
5,
TAO::TAO_CO_NONE | TAO::TAO_CO_THRU_POA_STRATEGY);
- tao_call.invoke (0, 0);
+ tao_call.invoke (nullptr, 0);
return _tao_retval.retn ();
}
@@ -58,7 +58,7 @@ namespace TAO
13,
TAO::TAO_CO_NONE | TAO::TAO_CO_THRU_POA_STRATEGY);
- _tao_call.invoke (0, 0);
+ _tao_call.invoke (nullptr, 0);
return _tao_retval.retn ();
}
@@ -80,7 +80,7 @@ namespace TAO
10,
TAO::TAO_CO_NONE | TAO::TAO_CO_THRU_POA_STRATEGY);
- _tao_call.invoke (0, 0);
+ _tao_call.invoke (nullptr, 0);
return _tao_retval.retn ();
}
@@ -93,7 +93,7 @@ namespace TAO
TAO_ORB_Core::ifr_client_adapter_name ()
);
- if (adapter == 0)
+ if (adapter == nullptr)
{
throw ::CORBA::INTF_REPOS ();
}
@@ -118,7 +118,7 @@ namespace TAO
14,
TAO::TAO_CO_NONE | TAO::TAO_CO_THRU_POA_STRATEGY);
- _tao_call.invoke (0, 0);
+ _tao_call.invoke (nullptr, 0);
return _tao_retval.retn ();
}
@@ -128,7 +128,7 @@ namespace TAO
// -----------------------------------------------------
TAO::Remote_Object_Proxy_Broker *
-the_tao_remote_object_proxy_broker (void)
+the_tao_remote_object_proxy_broker ()
{
static TAO::Remote_Object_Proxy_Broker the_broker;
return &the_broker;
diff --git a/TAO/tao/Reply_Dispatcher.cpp b/TAO/tao/Reply_Dispatcher.cpp
index 620f87f65e2..93c08198894 100644
--- a/TAO/tao/Reply_Dispatcher.cpp
+++ b/TAO/tao/Reply_Dispatcher.cpp
@@ -17,7 +17,7 @@ TAO_Reply_Dispatcher::TAO_Reply_Dispatcher (ACE_Allocator *allocator)
}
// Destructor.
-TAO_Reply_Dispatcher::~TAO_Reply_Dispatcher (void)
+TAO_Reply_Dispatcher::~TAO_Reply_Dispatcher ()
{
}
@@ -25,7 +25,7 @@ TAO_Reply_Dispatcher::~TAO_Reply_Dispatcher (void)
void
TAO_Reply_Dispatcher::intrusive_add_ref (TAO_Reply_Dispatcher* rd)
{
- if (rd != 0)
+ if (rd != nullptr)
{
++rd->refcount_;
}
@@ -34,10 +34,10 @@ TAO_Reply_Dispatcher::intrusive_add_ref (TAO_Reply_Dispatcher* rd)
void
TAO_Reply_Dispatcher::intrusive_remove_ref (TAO_Reply_Dispatcher* rd)
{
- if (rd != 0)
+ 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 &params) = 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.cpp b/TAO/tao/RequestInterceptor_Adapter.cpp
index c19df8e51df..171df98cd94 100644
--- a/TAO/tao/RequestInterceptor_Adapter.cpp
+++ b/TAO/tao/RequestInterceptor_Adapter.cpp
@@ -13,7 +13,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO::RequestInterceptor_Adapter::~RequestInterceptor_Adapter (void)
+TAO::RequestInterceptor_Adapter::~RequestInterceptor_Adapter ()
{
}
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/Request_Dispatcher.cpp b/TAO/tao/Request_Dispatcher.cpp
index 16a77d9459c..b7c031f1eee 100644
--- a/TAO/tao/Request_Dispatcher.cpp
+++ b/TAO/tao/Request_Dispatcher.cpp
@@ -4,7 +4,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Request_Dispatcher::~TAO_Request_Dispatcher (void)
+TAO_Request_Dispatcher::~TAO_Request_Dispatcher ()
{
}
diff --git a/TAO/tao/Resource_Factory.cpp b/TAO/tao/Resource_Factory.cpp
index 46dc712b08a..9a7299be1a6 100644
--- a/TAO/tao/Resource_Factory.cpp
+++ b/TAO/tao/Resource_Factory.cpp
@@ -7,25 +7,25 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Protocol_Item::TAO_Protocol_Item (const ACE_CString &name)
: name_ (name),
- factory_ (0),
+ factory_ (nullptr),
factory_owner_ (0)
{
}
-TAO_Protocol_Item::~TAO_Protocol_Item (void)
+TAO_Protocol_Item::~TAO_Protocol_Item ()
{
if (this->factory_owner_ == 1)
delete this->factory_;
}
const ACE_CString &
-TAO_Protocol_Item::protocol_name (void)
+TAO_Protocol_Item::protocol_name ()
{
return this->name_;
}
TAO_Protocol_Factory *
-TAO_Protocol_Item::factory (void)
+TAO_Protocol_Item::factory ()
{
return this->factory_;
}
@@ -42,24 +42,24 @@ TAO_Protocol_Item::factory (TAO_Protocol_Factory *factory,
// ********************************************************************
-TAO_Resource_Factory::TAO_Resource_Factory (void)
+TAO_Resource_Factory::TAO_Resource_Factory ()
{
}
-TAO_Resource_Factory::~TAO_Resource_Factory (void)
+TAO_Resource_Factory::~TAO_Resource_Factory ()
{
}
int
-TAO_Resource_Factory::use_locked_data_blocks (void) const
+TAO_Resource_Factory::use_locked_data_blocks () const
{
return 0;
}
ACE_Reactor *
-TAO_Resource_Factory::get_reactor (void)
+TAO_Resource_Factory::get_reactor ()
{
- return 0;
+ return nullptr;
}
void
@@ -69,15 +69,15 @@ TAO_Resource_Factory::reclaim_reactor (ACE_Reactor *)
}
TAO_Connector_Registry *
-TAO_Resource_Factory::get_connector_registry (void)
+TAO_Resource_Factory::get_connector_registry ()
{
- return 0;
+ return nullptr;
}
TAO_Acceptor_Registry *
-TAO_Resource_Factory::get_acceptor_registry (void)
+TAO_Resource_Factory::get_acceptor_registry ()
{
- return 0;
+ return nullptr;
}
void
@@ -86,91 +86,91 @@ TAO_Resource_Factory::use_local_memory_pool (bool)
}
ACE_Allocator *
-TAO_Resource_Factory::input_cdr_dblock_allocator (void)
+TAO_Resource_Factory::input_cdr_dblock_allocator ()
{
- return 0;
+ return nullptr;
}
ACE_Allocator *
-TAO_Resource_Factory::input_cdr_buffer_allocator (void)
+TAO_Resource_Factory::input_cdr_buffer_allocator ()
{
- return 0;
+ return nullptr;
}
ACE_Allocator *
-TAO_Resource_Factory::input_cdr_msgblock_allocator (void)
+TAO_Resource_Factory::input_cdr_msgblock_allocator ()
{
- return 0;
+ return nullptr;
}
int
-TAO_Resource_Factory::input_cdr_allocator_type_locked (void)
+TAO_Resource_Factory::input_cdr_allocator_type_locked ()
{
return -1;
}
ACE_Allocator *
-TAO_Resource_Factory::output_cdr_dblock_allocator (void)
+TAO_Resource_Factory::output_cdr_dblock_allocator ()
{
- return 0;
+ return nullptr;
}
ACE_Allocator *
-TAO_Resource_Factory::output_cdr_buffer_allocator (void)
+TAO_Resource_Factory::output_cdr_buffer_allocator ()
{
- return 0;
+ return nullptr;
}
ACE_Allocator *
-TAO_Resource_Factory::output_cdr_msgblock_allocator (void)
+TAO_Resource_Factory::output_cdr_msgblock_allocator ()
{
- return 0;
+ return nullptr;
}
ACE_Allocator *
-TAO_Resource_Factory::amh_response_handler_allocator (void)
+TAO_Resource_Factory::amh_response_handler_allocator ()
{
- return 0;
+ return nullptr;
}
ACE_Allocator *
-TAO_Resource_Factory::ami_response_handler_allocator (void)
+TAO_Resource_Factory::ami_response_handler_allocator ()
{
- return 0;
+ return nullptr;
}
TAO_ProtocolFactorySet *
-TAO_Resource_Factory::get_protocol_factories (void)
+TAO_Resource_Factory::get_protocol_factories ()
{
- return 0;
+ return nullptr;
}
int
-TAO_Resource_Factory::init_protocol_factories (void)
+TAO_Resource_Factory::init_protocol_factories ()
{
return -1;
}
TAO_Codeset_Manager *
-TAO_Resource_Factory::codeset_manager (void)
+TAO_Resource_Factory::codeset_manager ()
{
- return 0;
+ return nullptr;
}
int
-TAO_Resource_Factory::cache_maximum (void) const
+TAO_Resource_Factory::cache_maximum () const
{
return TAO_CONNECTION_CACHE_MAXIMUM;
}
int
-TAO_Resource_Factory::purge_percentage (void) const
+TAO_Resource_Factory::purge_percentage () const
{
return 0;
}
int
-TAO_Resource_Factory::max_muxed_connections (void) const
+TAO_Resource_Factory::max_muxed_connections () const
{
return 0;
}
@@ -183,19 +183,19 @@ TAO_Resource_Factory::get_parser_names (char **&, int &)
}
ACE_Lock *
-TAO_Resource_Factory::create_cached_connection_lock (void)
+TAO_Resource_Factory::create_cached_connection_lock ()
{
- return 0;
+ return nullptr;
}
int
-TAO_Resource_Factory::locked_transport_cache (void)
+TAO_Resource_Factory::locked_transport_cache ()
{
return 0;
}
int
-TAO_Resource_Factory::load_default_protocols (void)
+TAO_Resource_Factory::load_default_protocols ()
{
return 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/Resume_Handle.cpp b/TAO/tao/Resume_Handle.cpp
index 48318ca247c..9340184e28b 100644
--- a/TAO/tao/Resume_Handle.cpp
+++ b/TAO/tao/Resume_Handle.cpp
@@ -12,7 +12,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
void
-TAO_Resume_Handle::resume_handle (void)
+TAO_Resume_Handle::resume_handle ()
{
// If we have a complete message, just resume the handler
// Resume the handler.
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.cpp b/TAO/tao/ServerRequestInterceptor_Adapter.cpp
index ff032bbdb59..32a4eb26a2d 100644
--- a/TAO/tao/ServerRequestInterceptor_Adapter.cpp
+++ b/TAO/tao/ServerRequestInterceptor_Adapter.cpp
@@ -2,7 +2,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO::ServerRequestInterceptor_Adapter::~ServerRequestInterceptor_Adapter (void)
+TAO::ServerRequestInterceptor_Adapter::~ServerRequestInterceptor_Adapter ()
{
}
diff --git a/TAO/tao/ServerRequestInterceptor_Adapter.h b/TAO/tao/ServerRequestInterceptor_Adapter.h
index 8377f130a47..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
@@ -91,7 +91,7 @@ namespace TAO
/// This method implements the "intermediate" server side
/// interception point if the above #ifdef is set to 1 and a
- /// starting intercetion point if it is not set to 1.
+ /// starting interception point if it is not set to 1.
///
/// @note This method should have been the "starting" interception
/// point according to the interceptor spec. This will be
@@ -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.cpp b/TAO/tao/ServerRequestInterceptor_Adapter_Factory.cpp
index be5ff8d08c5..148cc664a82 100644
--- a/TAO/tao/ServerRequestInterceptor_Adapter_Factory.cpp
+++ b/TAO/tao/ServerRequestInterceptor_Adapter_Factory.cpp
@@ -3,7 +3,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_ServerRequestInterceptor_Adapter_Factory::~TAO_ServerRequestInterceptor_Adapter_Factory (void)
+TAO_ServerRequestInterceptor_Adapter_Factory::~TAO_ServerRequestInterceptor_Adapter_Factory ()
{
}
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.cpp b/TAO/tao/Server_Strategy_Factory.cpp
index 94b91cbaf42..a0cdd404f4a 100644
--- a/TAO/tao/Server_Strategy_Factory.cpp
+++ b/TAO/tao/Server_Strategy_Factory.cpp
@@ -3,22 +3,22 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Server_Strategy_Factory::TAO_Server_Strategy_Factory (void)
+TAO_Server_Strategy_Factory::TAO_Server_Strategy_Factory ()
: active_object_map_creation_parameters_ ()
{
}
-TAO_Server_Strategy_Factory::~TAO_Server_Strategy_Factory(void)
+TAO_Server_Strategy_Factory::~TAO_Server_Strategy_Factory()
{
}
const TAO_Server_Strategy_Factory::Active_Object_Map_Creation_Parameters &
-TAO_Server_Strategy_Factory::active_object_map_creation_parameters (void) const
+TAO_Server_Strategy_Factory::active_object_map_creation_parameters () const
{
return this->active_object_map_creation_parameters_;
}
-TAO_Server_Strategy_Factory::Active_Object_Map_Creation_Parameters::Active_Object_Map_Creation_Parameters (void)
+TAO_Server_Strategy_Factory::Active_Object_Map_Creation_Parameters::Active_Object_Map_Creation_Parameters ()
: active_object_map_size_ (TAO_DEFAULT_SERVER_ACTIVE_OBJECT_MAP_SIZE),
object_lookup_strategy_for_user_id_policy_ (TAO_DYNAMIC_HASH),
object_lookup_strategy_for_system_id_policy_ (TAO_ACTIVE_DEMUX),
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.cpp b/TAO/tao/Service_Callbacks.cpp
index b830c4d863c..bf71128e2ae 100644
--- a/TAO/tao/Service_Callbacks.cpp
+++ b/TAO/tao/Service_Callbacks.cpp
@@ -5,7 +5,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Service_Callbacks::~TAO_Service_Callbacks (void)
+TAO_Service_Callbacks::~TAO_Service_Callbacks ()
{
}
@@ -16,7 +16,6 @@ TAO_Service_Callbacks::select_profile (const TAO_MProfile & /*mprofile*/,
return false;
}
-
CORBA::Boolean
TAO_Service_Callbacks::object_is_nil (CORBA::Object_ptr /* obj */)
{
@@ -25,7 +24,6 @@ TAO_Service_Callbacks::object_is_nil (CORBA::Object_ptr /* obj */)
return true;
}
-
TAO_Service_Callbacks::Profile_Equivalence
TAO_Service_Callbacks::is_profile_equivalent (const TAO_Profile *,
const TAO_Profile *)
diff --git a/TAO/tao/Service_Callbacks.h b/TAO/tao/Service_Callbacks.h
index 9940ab56ac0..5eddb99847f 100644
--- a/TAO/tao/Service_Callbacks.h
+++ b/TAO/tao/Service_Callbacks.h
@@ -51,13 +51,12 @@ namespace IOP
* @brief An Abstract Base class for the hooks in the ORB.
*
* This class (would) define all the hooks that may be needed by
- * the ORB to override some of its default behaviour. The methods
+ * the ORB to override some of its default behavior. The methods
* can be potentially used to call service level specific
* processing that may be required.
*/
class TAO_Export TAO_Service_Callbacks
{
-
public:
enum Profile_Equivalence
@@ -67,9 +66,8 @@ public:
DONT_KNOW
};
-
/// 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
@@ -79,7 +77,6 @@ public:
/// Check whether @a obj is nil or not.
virtual CORBA::Boolean object_is_nil (CORBA::Object_ptr obj);
-
/// Check for equivalency of the two profiles
virtual Profile_Equivalence is_profile_equivalent (const TAO_Profile *,
const TAO_Profile *);
diff --git a/TAO/tao/Service_Context.cpp b/TAO/tao/Service_Context.cpp
index f39f2ce2a88..7f29afdd6bc 100644
--- a/TAO/tao/Service_Context.cpp
+++ b/TAO/tao/Service_Context.cpp
@@ -22,7 +22,7 @@ TAO_Service_Context::set_context_i (IOP::ServiceId id, TAO_OutputCDR &cdr)
CORBA::Octet *buf = context.context_data.get_buffer ();
for (const ACE_Message_Block *i = cdr.begin ();
- i != 0;
+ i != nullptr;
i = i->cont ())
{
ACE_OS::memcpy (buf, i->rd_ptr (), i->length ());
@@ -42,7 +42,7 @@ TAO_Service_Context::set_context_i (IOP::ServiceContext &context,
CORBA::Octet *buf = context.context_data.get_buffer ();
for (const ACE_Message_Block *i = cdr.begin ();
- i != 0;
+ i != nullptr;
i = i->cont ())
{
ACE_OS::memcpy (buf, i->rd_ptr (), i->length ());
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.cpp b/TAO/tao/Service_Context_Handler.cpp
index b6d2800fd34..1f80a63dcf2 100644
--- a/TAO/tao/Service_Context_Handler.cpp
+++ b/TAO/tao/Service_Context_Handler.cpp
@@ -3,11 +3,11 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Service_Context_Handler::TAO_Service_Context_Handler (void)
+TAO_Service_Context_Handler::TAO_Service_Context_Handler ()
{
}
-TAO_Service_Context_Handler::~TAO_Service_Context_Handler (void)
+TAO_Service_Context_Handler::~TAO_Service_Context_Handler ()
{
}
diff --git a/TAO/tao/Service_Context_Handler_Registry.cpp b/TAO/tao/Service_Context_Handler_Registry.cpp
index 7cf3a049332..550056efe2e 100644
--- a/TAO/tao/Service_Context_Handler_Registry.cpp
+++ b/TAO/tao/Service_Context_Handler_Registry.cpp
@@ -49,7 +49,7 @@ TAO_Service_Context_Registry::generate_service_context (
return result;
}
-TAO_Service_Context_Registry::~TAO_Service_Context_Registry (void)
+TAO_Service_Context_Registry::~TAO_Service_Context_Registry ()
{
for (Table::iterator x = this->registry_.begin ();
x != this->registry_.end ();
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/Services_Activate.cpp b/TAO/tao/Services_Activate.cpp
index 6fffafa3c84..97f5307725c 100644
--- a/TAO/tao/Services_Activate.cpp
+++ b/TAO/tao/Services_Activate.cpp
@@ -3,7 +3,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Services_Activate::~TAO_Services_Activate (void)
+TAO_Services_Activate::~TAO_Services_Activate ()
{
}
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/Storable_Base.cpp b/TAO/tao/Storable_Base.cpp
index 083199b8bf7..a04f09d1564 100644
--- a/TAO/tao/Storable_Base.cpp
+++ b/TAO/tao/Storable_Base.cpp
@@ -20,7 +20,7 @@ bool TAO::Storable_Base::use_backup_default = false;
bool TAO::Storable_Base::retry_on_ebadf_default = false;
void
-TAO::Storable_Base::remove (void)
+TAO::Storable_Base::remove ()
{
if (this->use_backup_)
{
diff --git a/TAO/tao/Storable_Factory.cpp b/TAO/tao/Storable_Factory.cpp
index 624f7200e00..41b99d0dbc1 100644
--- a/TAO/tao/Storable_Factory.cpp
+++ b/TAO/tao/Storable_Factory.cpp
@@ -12,11 +12,11 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO::Storable_Factory::Storable_Factory (void)
+TAO::Storable_Factory::Storable_Factory ()
{
}
-TAO::Storable_Factory::~Storable_Factory (void)
+TAO::Storable_Factory::~Storable_Factory ()
{
}
diff --git a/TAO/tao/Storable_File_Guard.cpp b/TAO/tao/Storable_File_Guard.cpp
index 09a4b60f57e..b428fe67121 100644
--- a/TAO/tao/Storable_File_Guard.cpp
+++ b/TAO/tao/Storable_File_Guard.cpp
@@ -15,7 +15,7 @@
TAO::Storable_File_Guard::
Storable_File_Guard (bool redundant, bool use_backup)
- : fl_(0)
+ : fl_(nullptr)
, redundant_(redundant)
, closed_(1)
, rwflags_(0)
@@ -69,7 +69,7 @@ TAO::Storable_File_Guard::init_no_load(Method_Type method_type)
}
void
-TAO::Storable_File_Guard::reload (void)
+TAO::Storable_File_Guard::reload ()
{
if (redundant_)
{
@@ -145,21 +145,21 @@ TAO::Storable_File_Guard::init(Method_Type method_type)
}
bool
-TAO::Storable_File_Guard::object_obsolete (void)
+TAO::Storable_File_Guard::object_obsolete ()
{ // Default implementation uses time to determine
// if obsolete.
return (fl_->last_changed () > this->get_object_last_changed ());
}
void
-TAO::Storable_File_Guard::mark_object_current (void)
+TAO::Storable_File_Guard::mark_object_current ()
{ // Default implementation is to set the last changed
// time to that of the file lock.
this->set_object_last_changed (fl_->last_changed ());
}
void
-TAO::Storable_File_Guard::release (void)
+TAO::Storable_File_Guard::release ()
{
if ( ! closed_ )
{
diff --git a/TAO/tao/Storable_FlatFileStream.cpp b/TAO/tao/Storable_FlatFileStream.cpp
index a95c5063fc0..2cb1951cc3a 100644
--- a/TAO/tao/Storable_FlatFileStream.cpp
+++ b/TAO/tao/Storable_FlatFileStream.cpp
@@ -41,7 +41,7 @@ namespace
char buf[BUFSIZ];
char * result = fgets (buf, BUFSIZ, fl);
- if (result == 0)
+ if (result == nullptr)
{
if (feof (fl))
{
@@ -59,7 +59,7 @@ namespace
result = fgets (buf, BUFSIZ, fl);
}
- if (result == 0)
+ if (result == nullptr)
{
if (feof (fl))
{
@@ -131,18 +131,18 @@ TAO::Storable_FlatFileStream::Storable_FlatFileStream (const ACE_CString & file,
bool retry_on_ebadf)
: Storable_Base(use_backup, retry_on_ebadf)
, filelock_ ()
- , fl_ (0)
+ , fl_ (nullptr)
, file_(file)
, mode_(mode)
{
// filelock_ will be completely initialized in call to init ().
filelock_.handle_ = ACE_INVALID_HANDLE;
- filelock_.lockname_ = 0;
+ filelock_.lockname_ = nullptr;
}
TAO::Storable_FlatFileStream::~Storable_FlatFileStream ()
{
- if ( fl_ != 0 )
+ if ( fl_ != nullptr )
this->close();
}
@@ -178,7 +178,7 @@ TAO::Storable_FlatFileStream::open()
{
// For now, three flags exist "r", "w", and "c"
int flags = 0;
- const char *fdmode = 0;
+ const char *fdmode = nullptr;
if( ACE_OS::strchr(mode_.c_str(), 'r') )
if( ACE_OS::strchr(mode_.c_str(), 'w') )
flags = O_RDWR, fdmode = "w+";
@@ -206,14 +206,14 @@ TAO::Storable_FlatFileStream::open()
-1);
#endif
- this->fl_ = 0;
+ this->fl_ = nullptr;
for (int attempts = this->retry_on_ebadf_ ? 2 : 1;
- attempts > 0 && this->fl_ == 0;
+ attempts > 0 && this->fl_ == nullptr;
attempts--)
{
this->fl_ = ACE_OS::fdopen(filelock_.handle_, ACE_TEXT_CHAR_TO_TCHAR (fdmode));
- if (this->fl_ == 0)
+ if (this->fl_ == nullptr)
{
if (TAO_debug_level > 0)
{
@@ -228,7 +228,7 @@ TAO::Storable_FlatFileStream::open()
}
}
}
- return this->fl_ == 0 ? -1 : 0;
+ return this->fl_ == nullptr ? -1 : 0;
}
int
@@ -241,7 +241,7 @@ TAO::Storable_FlatFileStream::close()
ACE_OS::fclose (fl_); // even though flock_destroy closes the handle
// we still need to destroy the FILE*
- fl_ = 0;
+ fl_ = nullptr;
return 0;
}
@@ -331,7 +331,7 @@ TAO::Storable_FlatFileStream::funlock (int whence, int start, int len)
}
time_t
-TAO::Storable_FlatFileStream::last_changed(void)
+TAO::Storable_FlatFileStream::last_changed()
{
ACE_stat st;
int result = 0;
@@ -384,19 +384,19 @@ TAO::Storable_FlatFileStream::last_changed(void)
}
void
-TAO::Storable_FlatFileStream::rewind (void)
+TAO::Storable_FlatFileStream::rewind ()
{
ACE_OS::rewind(this->fl_);
}
bool
-TAO::Storable_FlatFileStream::flush (void)
+TAO::Storable_FlatFileStream::flush ()
{
return ACE_OS::fflush(this->fl_);
}
int
-TAO::Storable_FlatFileStream::sync (void)
+TAO::Storable_FlatFileStream::sync ()
{
return ACE_OS::fsync (this->filelock_.handle_);
}
@@ -441,12 +441,12 @@ TAO::Storable_FlatFileStream::operator >> (ACE_CString& str)
str_array[0] = '\0';
if (ACE_OS::fgets (str_array.get (),
strSize,
- this->fl_) == 0
+ this->fl_) == nullptr
&& bufSize != 0)
{
this->throw_on_read_error (badbit);
}
- str = ACE_CString (str_array.get (), 0, false);
+ str = ACE_CString (str_array.get (), nullptr, false);
}
return *this;
@@ -539,7 +539,7 @@ TAO::Storable_FlatFileStream::operator << (const TAO_OutputCDR & cdr)
unsigned int const length =
ACE_Utils::truncate_cast<unsigned int> (cdr.total_length ());
*this << length;
- for (const ACE_Message_Block *i = cdr.begin (); i != 0; i = i->cont ())
+ for (const ACE_Message_Block *i = cdr.begin (); i != nullptr; i = i->cont ())
{
const char *bytes = i->rd_ptr ();
size_t const len = i->length ();
@@ -569,7 +569,7 @@ TAO::Storable_FlatFileStream::backup_file_name ()
int
TAO::Storable_FlatFileStream::create_backup ()
{
- if (this->fl_ == 0)
+ if (this->fl_ == nullptr)
{
return 0;
}
@@ -634,7 +634,7 @@ TAO::Storable_FlatFileStream::restore_backup ()
if (ACE_OS::access (backup_name.c_str (), F_OK))
return -1;
- if (ACE_OS::strchr (this->mode_.c_str(),'w') == 0)
+ if (ACE_OS::strchr (this->mode_.c_str(),'w') == nullptr)
{
this->mode_ += 'w';
}
@@ -704,7 +704,7 @@ TAO::Storable_FlatFileFactory::is_nfs (const ACE_CString& directory)
if (*dir != '/')
{
rpath[0] = 0;
- if (ACE_OS::getcwd (rpath, PATH_MAX) == 0)
+ if (ACE_OS::getcwd (rpath, PATH_MAX) == nullptr)
{
if (TAO_debug_level > 0)
{
@@ -734,10 +734,10 @@ TAO::Storable_FlatFileFactory::is_nfs (const ACE_CString& directory)
}
size_t match = 0;
size_t dirlen = ACE_OS::strlen(dir);
- struct mntent *ent = 0;
+ struct mntent *ent = nullptr;
const char *fname = "/etc/mtab";
FILE *mt = ::setmntent(fname,"r");
- if (mt == 0)
+ if (mt == nullptr)
{
if (TAO_debug_level > 0)
{
@@ -748,7 +748,7 @@ TAO::Storable_FlatFileFactory::is_nfs (const ACE_CString& directory)
}
return ret;
}
- while ((ent = ::getmntent(mt)) != 0)
+ while ((ent = ::getmntent(mt)) != nullptr)
{
size_t len = ACE_OS::strlen(ent->mnt_dir);
@@ -788,14 +788,14 @@ TAO::Storable_FlatFileFactory::create_stream (const ACE_CString & file,
const char * mode,
bool )
{
- TAO::Storable_Base *stream = 0;
+ TAO::Storable_Base *stream = nullptr;
ACE_CString path = this->directory_ + "/" + file;
ACE_NEW_RETURN (stream,
TAO::Storable_FlatFileStream(path,
mode,
this->use_backup_,
this->retry_on_ebadf_),
- 0);
+ nullptr);
return stream;
}
diff --git a/TAO/tao/Strategies/COIOP_Profile.h b/TAO/tao/Strategies/COIOP_Profile.h
index 3a32e5e2c00..3ee737d614b 100644
--- a/TAO/tao/Strategies/COIOP_Profile.h
+++ b/TAO/tao/Strategies/COIOP_Profile.h
@@ -79,8 +79,7 @@ protected:
/// Template methods. Please see tao/Profile.h for documentation.
virtual int decode_profile (TAO_InputCDR& cdr);
- virtual void parse_string_i (const char *string
- );
+ virtual void parse_string_i (const char *string);
virtual void create_profile_body (TAO_OutputCDR &cdr) const;
virtual int decode_endpoints (void);
virtual CORBA::Boolean do_is_equivalent (const TAO_Profile *other_profile);
diff --git a/TAO/tao/Strategies/DIOP_Acceptor.cpp b/TAO/tao/Strategies/DIOP_Acceptor.cpp
index 166d0222916..0053c012e61 100644
--- a/TAO/tao/Strategies/DIOP_Acceptor.cpp
+++ b/TAO/tao/Strategies/DIOP_Acceptor.cpp
@@ -219,7 +219,7 @@ TAO_DIOP_Acceptor::is_collocated (const TAO_Endpoint *endpoint)
// this code by comparing the IP address instead. That would
// trigger the following bug:
//
- // http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1220
+ // http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1220
//
if (endp->port () == this->addrs_[i].get_port_number ()
&& ACE_OS::strcmp (endp->host (), this->hosts_[i]) == 0)
diff --git a/TAO/tao/Strategies/SCIOP_Acceptor.cpp b/TAO/tao/Strategies/SCIOP_Acceptor.cpp
index 65e10a506ff..028312365f0 100644
--- a/TAO/tao/Strategies/SCIOP_Acceptor.cpp
+++ b/TAO/tao/Strategies/SCIOP_Acceptor.cpp
@@ -190,7 +190,7 @@ TAO_SCIOP_Acceptor::is_collocated (const TAO_Endpoint *endpoint)
// this code by comparing the IP address instead. That would
// trigger the following bug:
//
- // http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1220
+ // http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1220
//
if (endp->port() == this->addrs_[i].get_port_number()
&& ACE_OS::strcmp(endp->host(), this->hosts_[i]) == 0)
@@ -525,7 +525,7 @@ TAO_SCIOP_Acceptor::open_i (const ACE_Multihomed_INET_Addr& addr,
{
ACE_Multihomed_INET_Addr a(addr);
- int found_a_port = 0;
+ bool found_a_port = false;
ACE_UINT32 last_port = requested_port + this->port_span_ - 1;
if (last_port > ACE_MAX_DEFAULT_PORT)
{
@@ -547,13 +547,13 @@ TAO_SCIOP_Acceptor::open_i (const ACE_Multihomed_INET_Addr& addr,
this->accept_strategy_,
this->concurrency_strategy_) != -1)
{
- found_a_port = 1;
+ found_a_port = true;
break;
}
}
// Now, if we couldn't locate a port, we punt
- if (! found_a_port)
+ if (!found_a_port)
{
if (TAO_debug_level > 0)
TAOLIB_DEBUG ((LM_DEBUG,
@@ -1000,7 +1000,7 @@ TAO_SCIOP_Acceptor::parse_options (const char *str)
}
else if (name == "portspan")
{
- int range = static_cast<int> (ACE_OS::atoi (value.c_str ()));
+ int const range = ACE_OS::atoi (value.c_str ());
// @@ What's the lower bound on the range? zero, or one?
if (range < 1 || range > ACE_MAX_DEFAULT_PORT)
TAOLIB_ERROR_RETURN ((LM_ERROR,
diff --git a/TAO/tao/Strategies/SCIOP_Acceptor.h b/TAO/tao/Strategies/SCIOP_Acceptor.h
index d386e78f29e..ed76fe47c55 100644
--- a/TAO/tao/Strategies/SCIOP_Acceptor.h
+++ b/TAO/tao/Strategies/SCIOP_Acceptor.h
@@ -11,7 +11,6 @@
*/
// ===================================================================
-
#ifndef TAO_SCIOP_ACCEPTOR_H
#define TAO_SCIOP_ACCEPTOR_H
#include /**/ "ace/pre.h"
@@ -109,7 +108,6 @@ public:
char *&host);
protected:
-
/**
* Implement the common part of the open*() methods. This method is
* virtual to allow a derived class implementation to be invoked
@@ -204,7 +202,6 @@ protected:
TAO_ORB_Core *orb_core_;
private:
-
/// the concrete acceptor, as a pointer to it's base class.
TAO_SCIOP_BASE_ACCEPTOR base_acceptor_;
@@ -212,7 +209,6 @@ private:
TAO_SCIOP_CREATION_STRATEGY *creation_strategy_;
TAO_SCIOP_CONCURRENCY_STRATEGY *concurrency_strategy_;
TAO_SCIOP_ACCEPT_STRATEGY *accept_strategy_;
-
};
TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Strategies/SCIOP_Profile.cpp b/TAO/tao/Strategies/SCIOP_Profile.cpp
index dc81b03e23d..a5088c77aa5 100644
--- a/TAO/tao/Strategies/SCIOP_Profile.cpp
+++ b/TAO/tao/Strategies/SCIOP_Profile.cpp
@@ -132,8 +132,7 @@ TAO_SCIOP_Profile::decode_profile (TAO_InputCDR& cdr)
}
void
-TAO_SCIOP_Profile::parse_string_i (const char *ior
- )
+TAO_SCIOP_Profile::parse_string_i (const char *ior)
{
// Pull off the "hostname:port/" part of the objref
// Copy the string because we are going to modify it...
@@ -257,8 +256,7 @@ TAO_SCIOP_Profile::do_is_equivalent (const TAO_Profile *other_profile)
}
CORBA::ULong
-TAO_SCIOP_Profile::hash (CORBA::ULong max
- )
+TAO_SCIOP_Profile::hash (CORBA::ULong max)
{
// Get the hash value for all endpoints.
CORBA::ULong hashval = 0;
diff --git a/TAO/tao/Strategies/SCIOP_Profile.h b/TAO/tao/Strategies/SCIOP_Profile.h
index 5b39d19758a..0b043b1784d 100644
--- a/TAO/tao/Strategies/SCIOP_Profile.h
+++ b/TAO/tao/Strategies/SCIOP_Profile.h
@@ -75,8 +75,7 @@ public:
virtual int encode_endpoints (void);
virtual TAO_Endpoint *endpoint (void);
virtual CORBA::ULong endpoint_count (void) const;
- virtual CORBA::ULong hash (CORBA::ULong max
- );
+ virtual CORBA::ULong hash (CORBA::ULong max);
/**
* Add <endp> to this profile's list of endpoints (it is inserted
* next to the head of the list). This profiles takes ownership of
@@ -89,8 +88,7 @@ protected:
/// Template methods. Please see Profile.h for the documentation.
virtual int decode_profile (TAO_InputCDR &cdr);
virtual int decode_endpoints (void);
- virtual void parse_string_i (const char *string
- );
+ virtual void parse_string_i (const char *string);
virtual void create_profile_body (TAO_OutputCDR &cdr) const;
virtual CORBA::Boolean do_is_equivalent (const TAO_Profile *other_profile);
diff --git a/TAO/tao/Strategies/SHMIOP_Profile.cpp b/TAO/tao/Strategies/SHMIOP_Profile.cpp
index 17a3b19add8..7b43eb77f60 100644
--- a/TAO/tao/Strategies/SHMIOP_Profile.cpp
+++ b/TAO/tao/Strategies/SHMIOP_Profile.cpp
@@ -123,8 +123,7 @@ TAO_SHMIOP_Profile::decode_profile (TAO_InputCDR& cdr)
}
void
-TAO_SHMIOP_Profile::parse_string_i (const char *string
- )
+TAO_SHMIOP_Profile::parse_string_i (const char *string)
{
// Pull off the "hostname:port/" part of the objref
// Copy the string because we are going to modify it...
@@ -284,8 +283,7 @@ TAO_SHMIOP_Profile::do_is_equivalent (const TAO_Profile *other_profile)
}
CORBA::ULong
-TAO_SHMIOP_Profile::hash (CORBA::ULong max
- )
+TAO_SHMIOP_Profile::hash (CORBA::ULong max)
{
// Get the hashvalue for all endpoints.
CORBA::ULong hashval = 0;
diff --git a/TAO/tao/Strategies/SHMIOP_Profile.h b/TAO/tao/Strategies/SHMIOP_Profile.h
index 3dce4c81f9c..666b5b633ba 100644
--- a/TAO/tao/Strategies/SHMIOP_Profile.h
+++ b/TAO/tao/Strategies/SHMIOP_Profile.h
@@ -78,8 +78,7 @@ public:
virtual int encode_endpoints (void);
virtual TAO_Endpoint *endpoint (void);
virtual CORBA::ULong endpoint_count (void) const;
- virtual CORBA::ULong hash (CORBA::ULong max
- );
+ virtual CORBA::ULong hash (CORBA::ULong max);
/**
* Add <endp> to this profile's list of endpoints (it is inserted
* next to the head of the list). This profiles takes ownership of
@@ -91,8 +90,7 @@ protected:
/// Template methods. Please see tao/Profile.h for documentation.
virtual int decode_profile (TAO_InputCDR& cdr);
- virtual void parse_string_i (const char *string
- );
+ virtual void parse_string_i (const char *string);
virtual void create_profile_body (TAO_OutputCDR &cdr) const;
virtual int decode_endpoints (void);
virtual CORBA::Boolean do_is_equivalent (const TAO_Profile *other_profile);
diff --git a/TAO/tao/Strategies/UIOP_Connector.h b/TAO/tao/Strategies/UIOP_Connector.h
index b3cafb31e62..76a974e3498 100644
--- a/TAO/tao/Strategies/UIOP_Connector.h
+++ b/TAO/tao/Strategies/UIOP_Connector.h
@@ -69,8 +69,7 @@ public:
virtual int check_prefix (const char *endpoint);
- virtual TAO_Profile *corbaloc_scan (const char *str, size_t &len
- );
+ virtual TAO_Profile *corbaloc_scan (const char *str, size_t &len);
virtual char object_key_delimiter (void) const;
diff --git a/TAO/tao/Strategies/advanced_resource.cpp b/TAO/tao/Strategies/advanced_resource.cpp
index d2243029e0d..b4fdb54c24b 100644
--- a/TAO/tao/Strategies/advanced_resource.cpp
+++ b/TAO/tao/Strategies/advanced_resource.cpp
@@ -424,7 +424,6 @@ TAO_Advanced_Resource_Factory::allocate_reactor_impl (void) const
// get a timer queue (or not) from a possibly configured
// time policy
TAO_RSF_Timer_Queue_Ptr tmq (*this, this->create_timer_queue ());
-//@@ TAO_ADVANCED_RESOURCE_REACTOR_SPL_COMMENT_HOOK_START
switch (this->reactor_type_)
{
case TAO_REACTOR_SELECT_MT:
@@ -496,8 +495,6 @@ TAO_Advanced_Resource_Factory::allocate_reactor_impl (void) const
break;
}
-//@@ TAO_ADVANCED_RESOURCE_REACTOR_SPL_COMMENT_HOOK_END
-
// safe to release timer queue
tmq.release ();
return impl;
diff --git a/TAO/tao/String_Alloc.cpp b/TAO/tao/String_Alloc.cpp
index 7b6edfaac05..91935ce80a1 100644
--- a/TAO/tao/String_Alloc.cpp
+++ b/TAO/tao/String_Alloc.cpp
@@ -22,7 +22,7 @@ CORBA::string_dup (const char *str)
if (!str)
{
errno = EINVAL;
- return 0;
+ return nullptr;
}
#ifndef TAO_NO_SHARED_NULL_CORBA_STRING
@@ -47,10 +47,10 @@ char *
CORBA::string_alloc (CORBA::ULong len)
{
// Allocate 1 + strlen to accomodate the null terminating character.
- char *s = 0;
+ char *s = nullptr;
ACE_NEW_RETURN (s,
char[size_t (len + 1)],
- 0);
+ nullptr);
s[0]= '\0';
return s;
@@ -73,7 +73,7 @@ CORBA::wstring_dup (const WChar *const str)
if (!str)
{
errno = EINVAL;
- return 0;
+ return nullptr;
}
#ifndef TAO_NO_SHARED_NULL_CORBA_STRING
@@ -83,10 +83,10 @@ CORBA::wstring_dup (const WChar *const str)
CORBA::WChar* retval =
CORBA::wstring_alloc (static_cast <CORBA::ULong> (ACE_OS::strlen (str)));
- if (retval == 0)
+ if (retval == nullptr)
{
// The wscpy() below assumes that the destination is a valid buffer.
- return 0;
+ return nullptr;
}
return ACE_OS::wscpy (retval, str);
@@ -95,10 +95,10 @@ CORBA::wstring_dup (const WChar *const str)
CORBA::WChar*
CORBA::wstring_alloc (CORBA::ULong len)
{
- CORBA::WChar *s = 0;
+ CORBA::WChar *s = nullptr;
ACE_NEW_RETURN (s,
CORBA::WChar [(size_t) (len + 1)],
- 0);
+ nullptr);
return s;
}
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 5f5a645e70e..c132daaeef9 100644
--- a/TAO/tao/Stub.cpp
+++ b/TAO/tao/Stub.cpp
@@ -35,23 +35,23 @@ TAO_Stub::TAO_Stub (const char *repository_id,
, orb_ ()
, is_collocated_ (false)
, servant_orb_ ()
- , collocated_servant_ (0)
+ , collocated_servant_ (nullptr)
, object_proxy_broker_ (the_tao_remote_object_proxy_broker ())
, base_profiles_ ((CORBA::ULong) 0)
- , forward_profiles_ (0)
- , forward_profiles_perm_ (0)
- , profile_in_use_ (0)
+ , forward_profiles_ (nullptr)
+ , forward_profiles_perm_ (nullptr)
+ , profile_in_use_ (nullptr)
, profile_success_ (false)
, refcount_ (1)
#if (TAO_HAS_CORBA_MESSAGING == 1)
- , policies_ (0)
+ , policies_ (nullptr)
#endif
- , ior_info_ (0)
- , forwarded_ior_info_ (0)
+ , ior_info_ (nullptr)
+ , forwarded_ior_info_ (nullptr)
, collocation_opt_ (orb_core->optimize_collocation_objects ())
, forwarded_on_exception_ (false)
{
- if (this->orb_core_.get() == 0)
+ if (this->orb_core_.get() == nullptr)
{
if (TAO_debug_level > 0)
{
@@ -79,7 +79,7 @@ TAO_Stub::TAO_Stub (const char *repository_id,
this->base_profiles (profiles);
}
-TAO_Stub::~TAO_Stub (void)
+TAO_Stub::~TAO_Stub ()
{
ACE_ASSERT (this->refcount_ == 0);
@@ -89,11 +89,11 @@ TAO_Stub::~TAO_Stub (void)
// reset_profiles doesn't delete forward_profiles_perm_.
delete this->forward_profiles_perm_;
- if (this->profile_in_use_ != 0)
+ if (this->profile_in_use_ != nullptr)
{
// decrease reference count on profile
this->profile_in_use_->_decr_refcnt ();
- this->profile_in_use_ = 0;
+ this->profile_in_use_ = nullptr;
}
#if (TAO_HAS_CORBA_MESSAGING == 1)
@@ -125,13 +125,13 @@ TAO_Stub::add_forward_profiles (const TAO_MProfile &mprofiles,
if (permanent_forward)
{
// paranoid, reset the bookmark, then clear the forward-stack
- this->forward_profiles_perm_ = 0;
+ this->forward_profiles_perm_ = nullptr;
this->reset_forward ();
}
TAO_MProfile *now_pfiles = this->forward_profiles_;
- if (now_pfiles == 0)
+ if (now_pfiles == nullptr)
now_pfiles = &this->base_profiles_;
ACE_NEW (this->forward_profiles_,
@@ -175,11 +175,11 @@ TAO_Stub::create_ior_info (IOP::IOR *&ior_info, CORBA::ULong &index)
}
- IOP::IOR *tmp_info = 0;
+ IOP::IOR *tmp_info = nullptr;
- if (this->forward_profiles_ != 0)
+ if (this->forward_profiles_ != nullptr)
{
- if (this->forwarded_ior_info_ == 0)
+ if (this->forwarded_ior_info_ == nullptr)
{
this->get_profile_ior_info (*this->forward_profiles_, tmp_info);
@@ -203,7 +203,7 @@ TAO_Stub::create_ior_info (IOP::IOR *&ior_info, CORBA::ULong &index)
}
// Else we look at the base profiles
- if (this->ior_info_ == 0)
+ if (this->ior_info_ == nullptr)
{
this->get_profile_ior_info (this->base_profiles_, tmp_info);
@@ -228,7 +228,7 @@ TAO_Stub::create_ior_info (IOP::IOR *&ior_info, CORBA::ULong &index)
}
const TAO::ObjectKey &
-TAO_Stub::object_key (void) const
+TAO_Stub::object_key () const
{
// Return the profile in use's object key if you see one.
if (this->profile_in_use_)
@@ -242,7 +242,7 @@ TAO_Stub::object_key (void) const
const_cast <TAO_SYNCH_MUTEX&>(this->profile_lock_));
// FUZZ: enable check_for_ACE_Guard
- if (obj.locked () != 0 && this->forward_profiles_ != 0)
+ if (obj.locked () != 0 && this->forward_profiles_ != nullptr)
return this->forward_profiles_->get_profile (0)->object_key ();
}
@@ -271,7 +271,7 @@ TAO_Stub::get_profile_ior_info (TAO_MProfile &profiles, IOP::IOR *&ior_info)
IOP::TaggedProfile *tp = prof->create_tagged_profile ();
- if (tp == 0)
+ if (tp == nullptr)
throw ::CORBA::NO_MEMORY ();
ior_info->profiles[index] = *tp;
}
@@ -285,7 +285,7 @@ TAO_Stub::is_collocated (CORBA::Boolean collocated)
if (this->is_collocated_ != collocated)
{
if (collocated &&
- _TAO_Object_Proxy_Broker_Factory_function_pointer != 0)
+ _TAO_Object_Proxy_Broker_Factory_function_pointer != nullptr)
{
this->object_proxy_broker_ =
_TAO_Object_Proxy_Broker_Factory_function_pointer ();
@@ -327,7 +327,7 @@ TAO_Stub::is_equivalent (CORBA::Object_ptr other_obj)
TAO_Profile * const other_profile = other_obj->_stubobj ()->profile_in_use_;
TAO_Profile * const this_profile = this->profile_in_use_;
- if (other_profile == 0 || this_profile == 0)
+ if (other_profile == nullptr || this_profile == nullptr)
return false;
// Compare the profiles
@@ -359,7 +359,7 @@ TAO_Stub::set_profile_in_use_i (TAO_Profile *pfile)
}
void
-TAO_Stub::forward_back_one (void)
+TAO_Stub::forward_back_one ()
{
TAO_MProfile *from = forward_profiles_->forward_from ();
@@ -371,12 +371,12 @@ TAO_Stub::forward_back_one (void)
// longer being forwarded, so set the reference to zero.
if (from == &this->base_profiles_)
{
- this->base_profiles_.get_current_profile ()->forward_to (0);
- this->forward_profiles_ = 0;
+ this->base_profiles_.get_current_profile ()->forward_to (nullptr);
+ this->forward_profiles_ = nullptr;
}
else
{
- from->get_current_profile ()->forward_to (0);
+ from->get_current_profile ()->forward_to (nullptr);
this->forward_profiles_ = from;
}
}
@@ -418,7 +418,7 @@ TAO_Stub::get_policy (CORBA::PolicyType type)
// construction time...
CORBA::Policy_var result;
- if (this->policies_ != 0)
+ if (this->policies_ != nullptr)
{
result = this->policies_->get_policy (type);
}
@@ -438,7 +438,7 @@ TAO_Stub::get_cached_policy (TAO_Cached_Policy_Type type)
// construction time...
CORBA::Policy_var result;
- if (this->policies_ != 0)
+ if (this->policies_ != nullptr)
{
result = this->policies_->get_cached_policy (type);
}
@@ -456,17 +456,13 @@ 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)
{
policy_manager->set_policy_overrides (policies, set_add);
}
- else if (this->policies_ == 0)
+ else if (this->policies_ == nullptr)
{
policy_manager->set_policy_overrides (policies, CORBA::SET_OVERRIDE);
}
@@ -491,9 +487,9 @@ TAO_Stub::set_policy_overrides (const CORBA::PolicyList & policies,
CORBA::PolicyList *
TAO_Stub::get_policy_overrides (const CORBA::PolicyTypeSeq &types)
{
- if (this->policies_ == 0)
+ if (this->policies_ == nullptr)
{
- CORBA::PolicyList *policy_list_ptr = 0;
+ CORBA::PolicyList *policy_list_ptr = nullptr;
ACE_NEW_THROW_EX (policy_list_ptr,
CORBA::PolicyList (),
CORBA::NO_MEMORY ());
@@ -548,7 +544,7 @@ TAO_Stub::marshal (TAO_OutputCDR &cdr)
}
- ACE_ASSERT(this->forward_profiles_ !=0);
+ ACE_ASSERT(this->forward_profiles_ !=nullptr);
// paranoid - in case of FT the basic_profiles_ would do, too,
// but might be dated
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/Stub_Factory.cpp b/TAO/tao/Stub_Factory.cpp
index 7a29fd40e4d..e6ac07d53a6 100644
--- a/TAO/tao/Stub_Factory.cpp
+++ b/TAO/tao/Stub_Factory.cpp
@@ -3,7 +3,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Stub_Factory::~TAO_Stub_Factory (void)
+TAO_Stub_Factory::~TAO_Stub_Factory ()
{
}
diff --git a/TAO/tao/Synch_Invocation.cpp b/TAO/tao/Synch_Invocation.cpp
index 6e1c38b22e9..ee073e085d3 100644
--- a/TAO/tao/Synch_Invocation.cpp
+++ b/TAO/tao/Synch_Invocation.cpp
@@ -75,7 +75,7 @@ namespace TAO
resolver,
detail,
response_expected)
- , retry_state_ (0)
+ , retry_state_ (nullptr)
{
}
@@ -90,7 +90,7 @@ namespace TAO
{
TAO::ORB_Countdown_Time countdown (max_wait_time);
- TAO_Synch_Reply_Dispatcher *rd_p = 0;
+ TAO_Synch_Reply_Dispatcher *rd_p = nullptr;
ACE_NEW_NORETURN (rd_p, TAO_Synch_Reply_Dispatcher (this->resolver_.stub ()->orb_core (),
this->details_.reply_service_info ()));
if (!rd_p)
@@ -398,7 +398,7 @@ namespace TAO
}
catch (const ::CORBA::Exception&)
{
- if (this->retry_state_ == 0 ||
+ if (this->retry_state_ == nullptr ||
!this->retry_state_->forward_on_exception_limit_used ())
{
this->resolver_.stub ()->reset_profiles ();
@@ -426,7 +426,7 @@ namespace TAO
TAO_InputCDR &cdr = rd.reply_cdr ();
// Set the translators
- this->resolver_.transport ()->assign_translators (&cdr, 0);
+ this->resolver_.transport ()->assign_translators (&cdr, nullptr);
// At this point it can be assumed that the GIOP/whatever protocol
// header and the reply header are already handled. Further it
@@ -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 ();
@@ -718,7 +714,7 @@ namespace TAO
CORBA::SystemException *ex = TAO::create_system_exception (type_id.in ());
- if (ex == 0)
+ if (ex == nullptr)
{
// @@ We should raise a CORBA::NO_MEMORY, but we ran out
// of memory already. We need a pre-allocated, TSS,
@@ -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/Synch_Queued_Message.cpp b/TAO/tao/Synch_Queued_Message.cpp
index f4ed2276cec..fb5122c0aea 100644
--- a/TAO/tao/Synch_Queued_Message.cpp
+++ b/TAO/tao/Synch_Queued_Message.cpp
@@ -20,24 +20,24 @@ TAO_Synch_Queued_Message::TAO_Synch_Queued_Message (
{
}
-TAO_Synch_Queued_Message::~TAO_Synch_Queued_Message (void)
+TAO_Synch_Queued_Message::~TAO_Synch_Queued_Message ()
{
- if (this->own_contents_ && this->contents_ != 0)
+ if (this->own_contents_ && this->contents_ != nullptr)
{
ACE_Message_Block::release (this->contents_);
}
}
const ACE_Message_Block *
-TAO_Synch_Queued_Message::current_block (void) const
+TAO_Synch_Queued_Message::current_block () const
{
return this->current_block_;
}
size_t
-TAO_Synch_Queued_Message::message_length (void) const
+TAO_Synch_Queued_Message::message_length () const
{
- if (this->current_block_ == 0)
+ if (this->current_block_ == nullptr)
{
return 0;
}
@@ -46,9 +46,9 @@ TAO_Synch_Queued_Message::message_length (void) const
}
int
-TAO_Synch_Queued_Message::all_data_sent (void) const
+TAO_Synch_Queued_Message::all_data_sent () const
{
- return this->current_block_ == 0;
+ return this->current_block_ == nullptr;
}
void
@@ -59,7 +59,7 @@ TAO_Synch_Queued_Message::fill_iov (int iovcnt_max,
ACE_ASSERT (iovcnt_max > iovcnt);
for (const ACE_Message_Block *message_block = this->current_block_;
- message_block != 0 && iovcnt < iovcnt_max;
+ message_block != nullptr && iovcnt < iovcnt_max;
message_block = message_block->cont ())
{
size_t const message_block_length = message_block->length ();
@@ -82,7 +82,7 @@ TAO_Synch_Queued_Message::bytes_transferred (size_t &byte_count)
{
this->state_changed_i (TAO_LF_Event::LFS_ACTIVE);
- while (this->current_block_ != 0 && byte_count > 0)
+ while (this->current_block_ != nullptr && byte_count > 0)
{
size_t const l = this->current_block_->length ();
@@ -97,14 +97,14 @@ TAO_Synch_Queued_Message::bytes_transferred (size_t &byte_count)
this->current_block_->rd_ptr (l);
this->current_block_ = this->current_block_->cont ();
- while (this->current_block_ != 0
+ while (this->current_block_ != nullptr
&& this->current_block_->length () == 0)
{
this->current_block_ = this->current_block_->cont ();
}
}
- if (this->current_block_ == 0)
+ if (this->current_block_ == nullptr)
this->state_changed (TAO_LF_Event::LFS_SUCCESS,
this->orb_core_->leader_follower ());
}
@@ -112,7 +112,7 @@ TAO_Synch_Queued_Message::bytes_transferred (size_t &byte_count)
TAO_Queued_Message *
TAO_Synch_Queued_Message::clone (ACE_Allocator *alloc)
{
- TAO_Synch_Queued_Message *qm = 0;
+ TAO_Synch_Queued_Message *qm = nullptr;
// Clone the message block.
// NOTE: We wantedly do the cloning from <current_block_> instead of
@@ -130,26 +130,26 @@ TAO_Synch_Queued_Message::clone (ACE_Allocator *alloc)
this->orb_core_,
alloc,
true),
- 0);
+ nullptr);
}
else
{
ACE_NEW_RETURN (qm,
- TAO_Synch_Queued_Message (mb, this->orb_core_, 0, true),
- 0);
+ TAO_Synch_Queued_Message (mb, this->orb_core_, nullptr, true),
+ nullptr);
}
return qm;
}
void
-TAO_Synch_Queued_Message::destroy (void)
+TAO_Synch_Queued_Message::destroy ()
{
if (this->own_contents_)
{
ACE_Message_Block::release (this->contents_);
- this->current_block_ = 0;
- this->contents_ = 0;
+ this->current_block_ = nullptr;
+ this->contents_ = nullptr;
}
if (this->is_heap_created_)
@@ -176,7 +176,7 @@ TAO_Synch_Queued_Message::copy_if_necessary (const ACE_Message_Block* chain)
{
// Go through the message block chain looking for the message block
// that matches our "current" message block.
- for (const ACE_Message_Block* mb = chain; mb != 0; mb = mb->cont ())
+ for (const ACE_Message_Block* mb = chain; mb != nullptr; mb = mb->cont ())
{
if (mb == this->current_block_)
{
diff --git a/TAO/tao/Synch_Reply_Dispatcher.cpp b/TAO/tao/Synch_Reply_Dispatcher.cpp
index 3043fd45ce0..a63bcad601c 100644
--- a/TAO/tao/Synch_Reply_Dispatcher.cpp
+++ b/TAO/tao/Synch_Reply_Dispatcher.cpp
@@ -31,18 +31,18 @@ TAO_Synch_Reply_Dispatcher::TAO_Synch_Reply_Dispatcher (
}
// Destructor.
-TAO_Synch_Reply_Dispatcher::~TAO_Synch_Reply_Dispatcher (void)
+TAO_Synch_Reply_Dispatcher::~TAO_Synch_Reply_Dispatcher ()
{
}
TAO_InputCDR &
-TAO_Synch_Reply_Dispatcher::reply_cdr (void)
+TAO_Synch_Reply_Dispatcher::reply_cdr ()
{
return this->reply_cdr_;
}
void
-TAO_Synch_Reply_Dispatcher::reply_timed_out (void)
+TAO_Synch_Reply_Dispatcher::reply_timed_out ()
{
// noop
}
@@ -51,7 +51,7 @@ int
TAO_Synch_Reply_Dispatcher::dispatch_reply (
TAO_Pluggable_Reply_Params &params)
{
- if (params.input_cdr_ == 0)
+ if (params.input_cdr_ == nullptr)
return -1;
this->reply_status_ = params.reply_status ();
@@ -67,7 +67,7 @@ TAO_Synch_Reply_Dispatcher::dispatch_reply (
if (this->reply_service_info_.length() > 0)
{
orb_core_->service_context_registry ().
- process_service_contexts (this->reply_service_info_, *(params.transport_), 0);
+ process_service_contexts (this->reply_service_info_, *(params.transport_), nullptr);
}
// Must reset the message state, it is possible that the same reply
@@ -86,7 +86,7 @@ TAO_Synch_Reply_Dispatcher::dispatch_reply (
{
ACE_Data_Block *db = this->reply_cdr_.clone_from (*params.input_cdr_);
- if (db == 0)
+ if (db == nullptr)
{
if (TAO_debug_level > 2)
{
@@ -116,7 +116,7 @@ TAO_Synch_Reply_Dispatcher::dispatch_reply (
}
void
-TAO_Synch_Reply_Dispatcher::connection_closed (void)
+TAO_Synch_Reply_Dispatcher::connection_closed ()
{
this->state_changed (TAO_LF_Event::LFS_CONNECTION_CLOSED,
this->orb_core_->leader_follower ());
diff --git a/TAO/tao/SystemException.cpp b/TAO/tao/SystemException.cpp
index d966dbd8b0b..7dc23aa3e40 100644
--- a/TAO/tao/SystemException.cpp
+++ b/TAO/tao/SystemException.cpp
@@ -55,7 +55,7 @@ const CORBA::ULong TAO_ENOTSUP_MINOR_CODE = 0x14U;
// ****************************************************************
-CORBA::SystemException::SystemException (void)
+CORBA::SystemException::SystemException ()
: minor_ (0),
completed_ (CORBA::COMPLETED_NO)
{
@@ -86,7 +86,7 @@ CORBA::SystemException::SystemException (const CORBA::SystemException &src)
{
}
-CORBA::SystemException::~SystemException (void)
+CORBA::SystemException::~SystemException ()
{
}
@@ -197,9 +197,9 @@ CORBA::SystemException::_tao_errno (int errno_value)
}
CORBA::Exception *
-CORBA::SystemException::_tao_duplicate (void) const
+CORBA::SystemException::_tao_duplicate () const
{
- return 0;
+ return nullptr;
}
CORBA::ULong
@@ -220,7 +220,7 @@ CORBA::SystemException::_tao_print_system_exception (FILE *) const
}
ACE_CString
-CORBA::SystemException::_info (void) const
+CORBA::SystemException::_info () const
{
// @@ there are a few other "user exceptions" in the CORBA scope,
// they're not all standard/system exceptions ... really need to
@@ -241,7 +241,7 @@ CORBA::SystemException::_info (void) const
if (VMCID == TAO::VMCID)
{
// @@ Move the following code to a subroutine, it is too long already!
- const char *location = 0;
+ const char *location = nullptr;
switch (this->minor () & 0x00000F80u)
{
case TAO_INVOCATION_LOCATION_FORWARD_MINOR_CODE:
@@ -308,7 +308,7 @@ CORBA::SystemException::_info (void) const
location = "unknown location";
}
- const char *errno_indication = 0;
+ const char *errno_indication = nullptr;
char unknown_errno [255];
CORBA::ULong minor_code = this->minor () & 0x7FU;
switch (minor_code)
@@ -410,7 +410,7 @@ CORBA::SystemException::_info (void) const
{
CORBA::ULong const minor_code = this->minor () & 0xFFFU;
- const char *minor_description = 0;
+ const char *minor_description = nullptr;
if (minor_code > 0)
minor_description =
@@ -697,133 +697,133 @@ CORBA::SystemException::_tao_get_omg_exception_description (
CORBA::UNKNOWN const * unknown_exception =
dynamic_cast <const CORBA::UNKNOWN *> (&exc);
- if (unknown_exception != 0
+ if (unknown_exception != nullptr
&& minor_code < sizeof UNKNOWN_TABLE / sizeof (char *))
return UNKNOWN_TABLE[minor_code];
CORBA::BAD_PARAM const * bad_param__exception =
dynamic_cast <const CORBA::BAD_PARAM *> (&exc);
- if (bad_param__exception != 0
+ if (bad_param__exception != nullptr
&& minor_code < sizeof BAD_PARAM_TABLE / sizeof (char *))
return BAD_PARAM_TABLE[minor_code];
CORBA::IMP_LIMIT const * imp_limit_exception =
dynamic_cast <const CORBA::IMP_LIMIT *> (&exc);
- if (imp_limit_exception != 0
+ if (imp_limit_exception != nullptr
&& minor_code < sizeof IMP_LIMIT_TABLE / sizeof (char *))
return IMP_LIMIT_TABLE[minor_code];
CORBA::INITIALIZE const * initialize_exception =
dynamic_cast <const CORBA::INITIALIZE *> (&exc);
- if (initialize_exception != 0
+ if (initialize_exception != nullptr
&& minor_code < sizeof INITIALIZE_TABLE / sizeof (char *))
return INITIALIZE_TABLE[minor_code];
CORBA::INV_OBJREF const * inv_objref_exception =
dynamic_cast <const CORBA::INV_OBJREF *> (&exc);
- if (inv_objref_exception != 0
+ if (inv_objref_exception != nullptr
&& minor_code < sizeof INV_OBJREF_TABLE / sizeof (char *))
return INV_OBJREF_TABLE[minor_code];
CORBA::MARSHAL const * marshal_exception =
dynamic_cast <const CORBA::MARSHAL *> (&exc);
- if (marshal_exception != 0
+ if (marshal_exception != nullptr
&& minor_code < sizeof MARSHAL_TABLE / sizeof (char *))
return MARSHAL_TABLE[minor_code];
CORBA::BAD_TYPECODE const * bad_typecode_exception =
dynamic_cast <const CORBA::BAD_TYPECODE *> (&exc);
- if (bad_typecode_exception != 0
+ if (bad_typecode_exception != nullptr
&& minor_code < sizeof BAD_TYPECODE_TABLE / sizeof (char *))
return BAD_TYPECODE_TABLE[minor_code];
CORBA::NO_IMPLEMENT const * no_implement_exception =
dynamic_cast <const CORBA::NO_IMPLEMENT *> (&exc);
- if (no_implement_exception != 0
+ if (no_implement_exception != nullptr
&& minor_code < sizeof NO_IMPLEMENT_TABLE / sizeof (char *))
return NO_IMPLEMENT_TABLE[minor_code];
CORBA::NO_RESOURCES const * no_resource_exception =
dynamic_cast <const CORBA::NO_RESOURCES *> (&exc);
- if (no_resource_exception != 0
+ if (no_resource_exception != nullptr
&& minor_code < sizeof NO_RESOURCES_TABLE / sizeof (char *))
return NO_RESOURCES_TABLE[minor_code];
CORBA::BAD_INV_ORDER const * bad_inv_order_exception =
dynamic_cast <const CORBA::BAD_INV_ORDER *> (&exc);
- if (bad_inv_order_exception != 0
+ if (bad_inv_order_exception != nullptr
&& minor_code < sizeof BAD_INV_ORDER_TABLE / sizeof (char *))
return BAD_INV_ORDER_TABLE[minor_code];
CORBA::TRANSIENT const * transient_exception =
dynamic_cast <const CORBA::TRANSIENT *> (&exc);
- if (transient_exception != 0
+ if (transient_exception != nullptr
&& minor_code < sizeof TRANSIENT_TABLE / sizeof (char *))
return TRANSIENT_TABLE[minor_code];
CORBA::OBJ_ADAPTER const * obj_adapter_exception =
dynamic_cast <const CORBA::OBJ_ADAPTER *> (&exc);
- if (obj_adapter_exception != 0
+ if (obj_adapter_exception != nullptr
&& minor_code < sizeof OBJ_ADAPTER_TABLE / sizeof (char *))
return OBJ_ADAPTER_TABLE[minor_code];
CORBA::DATA_CONVERSION const * data_conversion_exception =
dynamic_cast <const CORBA::DATA_CONVERSION *> (&exc);
- if (data_conversion_exception != 0
+ if (data_conversion_exception != nullptr
&& minor_code < sizeof DATA_CONVERSION_TABLE / sizeof (char *))
return DATA_CONVERSION_TABLE[minor_code];
CORBA::OBJECT_NOT_EXIST const * object_not_exist_exception =
dynamic_cast <const CORBA::OBJECT_NOT_EXIST *> (&exc);
- if (object_not_exist_exception != 0
+ if (object_not_exist_exception != nullptr
&& minor_code < sizeof OBJECT_NOT_EXIST_TABLE / sizeof (char *))
return OBJECT_NOT_EXIST_TABLE[minor_code];
CORBA::INV_POLICY const * inv_policy_exception =
dynamic_cast <const CORBA::INV_POLICY *> (&exc);
- if (inv_policy_exception != 0
+ if (inv_policy_exception != nullptr
&& minor_code < sizeof INV_POLICY_TABLE / sizeof (char *))
return INV_POLICY_TABLE[minor_code];
CORBA::ACTIVITY_COMPLETED const * activity_completed_exception =
dynamic_cast <const CORBA::ACTIVITY_COMPLETED *> (&exc);
- if (activity_completed_exception != 0
+ if (activity_completed_exception != nullptr
&& minor_code < sizeof ACTIVITY_COMPLETED_TABLE / sizeof (char *))
return ACTIVITY_COMPLETED_TABLE[minor_code];
CORBA::ACTIVITY_REQUIRED const * activity_required_exception =
dynamic_cast <const CORBA::ACTIVITY_REQUIRED *> (&exc);
- if (activity_required_exception != 0
+ if (activity_required_exception != nullptr
&& minor_code < sizeof ACTIVITY_REQUIRED_TABLE / sizeof (char *))
return ACTIVITY_REQUIRED_TABLE[minor_code];
CORBA::BAD_OPERATION const * bad_operation_exception =
dynamic_cast <const CORBA::BAD_OPERATION *> (&exc);
- if (bad_operation_exception != 0
+ if (bad_operation_exception != nullptr
&& minor_code < sizeof BAD_OPERATION_TABLE / sizeof (char *))
return BAD_OPERATION_TABLE[minor_code];
CORBA::BAD_CONTEXT const * bad_context_exception =
dynamic_cast <const CORBA::BAD_CONTEXT *> (&exc);
- if (bad_context_exception != 0
+ if (bad_context_exception != nullptr
&& minor_code < sizeof BAD_CONTEXT_TABLE / sizeof (char *))
return BAD_CONTEXT_TABLE[minor_code];
CORBA::CODESET_INCOMPATIBLE const * codeset_incompatible_exception =
dynamic_cast <const CORBA::CODESET_INCOMPATIBLE *> (&exc);
- if (codeset_incompatible_exception != 0
+ if (codeset_incompatible_exception != nullptr
&& minor_code < sizeof CODESET_INCOMPATIBLE_TABLE / sizeof (char *))
return CODESET_INCOMPATIBLE_TABLE[minor_code];
CORBA::INTF_REPOS const * intf_repos_exception =
dynamic_cast <const CORBA::INTF_REPOS *> (&exc);
- if (intf_repos_exception != 0
+ if (intf_repos_exception != nullptr
&& minor_code < sizeof INTF_REPOS_TABLE / sizeof (char *))
return INTF_REPOS_TABLE[minor_code];
CORBA::TIMEOUT const * timeout_exception =
dynamic_cast <const CORBA::TIMEOUT *> (&exc);
- if (timeout_exception != 0
+ if (timeout_exception != nullptr
&& minor_code < sizeof TIMEOUT_TABLE / sizeof (char *))
return TIMEOUT_TABLE[minor_code];
@@ -893,7 +893,7 @@ static const char *repo_id_array[] = {
(char *) "IDL:omg.org/CORBA/" #name ":1.0",
STANDARD_EXCEPTION_LIST
#undef TAO_SYSTEM_EXCEPTION
- 0
+ nullptr
};
// Since we add an extra element subtract 1
@@ -907,7 +907,7 @@ TAO::excp_factory excp_array [] = {
&CORBA::name::_tao_create,
STANDARD_EXCEPTION_LIST
#undef TAO_SYSTEM_EXCEPTION
- 0
+ nullptr
};
// Concrete SystemException constructors
@@ -963,7 +963,7 @@ TAO::create_system_exception (const char *id)
return (*(excp_array[i])) ();
}
- return 0;
+ return nullptr;
}
#define TAO_SYSTEM_EXCEPTION(name) \
diff --git a/TAO/tao/SystemException.h b/TAO/tao/SystemException.h
index 9a1da6ec170..f52e0414820 100644
--- a/TAO/tao/SystemException.h
+++ b/TAO/tao/SystemException.h
@@ -27,13 +27,9 @@
#include "tao/Exception.h"
#ifndef TAO_Exception_Export
-# if (__GNUC__ > 3)
-// Exceptions found in DLL A but potentially thrown in DLL B must
-// always be exported.
# define TAO_Exception_Export ACE_Proper_Export_Flag
# else
# define TAO_Exception_Export TAO_Export
-# endif /* __GNUC__ > 3*/
#endif /* !TAO_Exception_Export */
#ifdef THREAD_CANCELLED
@@ -59,7 +55,7 @@ namespace CORBA
namespace TAO
{
- typedef CORBA::SystemException* (*excp_factory)(void);
+ typedef CORBA::SystemException* (*excp_factory)();
}
namespace CORBA
@@ -103,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);
@@ -123,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.
@@ -133,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;
@@ -147,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/System_Time_Policy_Strategy.cpp b/TAO/tao/System_Time_Policy_Strategy.cpp
index 30255432059..7f72324b906 100644
--- a/TAO/tao/System_Time_Policy_Strategy.cpp
+++ b/TAO/tao/System_Time_Policy_Strategy.cpp
@@ -13,15 +13,15 @@ TAO_System_Time_Policy_Strategy::~TAO_System_Time_Policy_Strategy ()
{
}
-ACE_Timer_Queue * TAO_System_Time_Policy_Strategy::create_timer_queue (void)
+ACE_Timer_Queue * TAO_System_Time_Policy_Strategy::create_timer_queue ()
{
- ACE_Timer_Queue * tmq = 0;
+ ACE_Timer_Queue * tmq = nullptr;
typedef ACE_Timer_Heap_T<ACE_Event_Handler *,
ACE_Event_Handler_Handle_Timeout_Upcall,
ACE_SYNCH_RECURSIVE_MUTEX,
ACE_System_Time_Policy> timer_queue_type;
- ACE_NEW_RETURN (tmq, timer_queue_type (), 0);
+ ACE_NEW_RETURN (tmq, timer_queue_type (), nullptr);
return tmq;
}
@@ -32,7 +32,7 @@ TAO_System_Time_Policy_Strategy::destroy_timer_queue (ACE_Timer_Queue *tmq)
delete tmq;
}
-ACE_Dynamic_Time_Policy_Base * TAO_System_Time_Policy_Strategy::get_time_policy (void)
+ACE_Dynamic_Time_Policy_Base * TAO_System_Time_Policy_Strategy::get_time_policy ()
{
return &time_policy_;
}
diff --git a/TAO/tao/TAO_Internal.cpp b/TAO/tao/TAO_Internal.cpp
index 9e324aec423..2bdb10bdcbe 100644
--- a/TAO/tao/TAO_Internal.cpp
+++ b/TAO/tao/TAO_Internal.cpp
@@ -191,13 +191,13 @@ class TAO_Ubergestalt_Ready_Condition
: public ACE_SYNCH_RECURSIVE_CONDITION
{
public:
- static TAO_Ubergestalt_Ready_Condition* instance (void)
+ static TAO_Ubergestalt_Ready_Condition* instance ()
{
return TAO_Singleton <TAO_Ubergestalt_Ready_Condition,
TAO_SYNCH_RECURSIVE_MUTEX>::instance ();
}
- TAO_Ubergestalt_Ready_Condition (void)
+ TAO_Ubergestalt_Ready_Condition ()
: ACE_SYNCH_RECURSIVE_CONDITION (mutex_)
{
}
@@ -260,7 +260,7 @@ TAO::ORB::open_global_services (int argc, ACE_TCHAR **argv)
// has something to skip!
ACE_ARGV global_svc_config_argv (true); // only this ctor allows
// subsequent use of add()!
- global_svc_config_argv.add ((argc <= 0 || argv == 0) ?
+ global_svc_config_argv.add ((argc <= 0 || argv == nullptr) ?
ACE_TEXT ("") : argv[0], true);
// Will expand the environment variables, if any were used.
@@ -428,7 +428,7 @@ TAO::ORB::open_services (ACE_Intrusive_Auto_Ptr<ACE_Service_Gestalt> pcfg,
// has something to skip!
ACE_ARGV svc_config_argv (true); // only this ctor allows subsequent
// use of add()!
- svc_config_argv.add ((argc <= 0 || argv == 0) ? ACE_TEXT ("") : argv[0],
+ svc_config_argv.add ((argc <= 0 || argv == nullptr) ? ACE_TEXT ("") : argv[0],
true);
// Should we skip the ACE_Service_Config::open() method?,
@@ -587,7 +587,7 @@ namespace
return pcfg->open (command_line.get_argc (),
command_line.get_TCHAR_argv (),
- 0,
+ nullptr,
false, // Don't ignore static services.
ignore_default_svc_conf_file);
}
@@ -606,7 +606,7 @@ namespace
ACE_Dynamic_Service<TAO_Codeset_Manager_Factory_Base>::instance (
"TAO_Codeset");
- if (factory == 0 || factory->is_default ())
+ if (factory == nullptr || factory->is_default ())
{
#if !defined (TAO_AS_STATIC_LIBS) && !(defined (ACE_VXWORKS) && !defined (__RTP__))
// only for dynamic libs, check to see if default factory
@@ -629,7 +629,7 @@ namespace
#endif /* !TAO_AS_STATIC_LIBS && !(ACE_VXWORKS && !__RTP__) */
}
- if (factory == 0)
+ if (factory == nullptr)
{
if (TAO_debug_level > 0)
{
@@ -703,19 +703,19 @@ namespace
// @@ They are needed for platforms that have no file system,
// like VxWorks.
- if (resource_factory_args != 0)
+ if (resource_factory_args != nullptr)
{
pcfg->process_directive(
ACE_TEXT_CHAR_TO_TCHAR (resource_factory_args));
}
- if (client_strategy_factory_args != 0)
+ if (client_strategy_factory_args != nullptr)
{
pcfg->process_directive
(ACE_TEXT_CHAR_TO_TCHAR (client_strategy_factory_args));
}
- if (server_strategy_factory_args != 0)
+ if (server_strategy_factory_args != nullptr)
{
pcfg->process_directive
(ACE_TEXT_CHAR_TO_TCHAR (server_strategy_factory_args));
@@ -726,9 +726,9 @@ namespace
pcfg,
"PI_Server_Loader");
- if (pi_server_loader != 0)
+ if (pi_server_loader != nullptr)
{
- pi_server_loader->init (0, 0);
+ pi_server_loader->init (0, nullptr);
}
ACE_Service_Object * const bidir_loader =
@@ -736,9 +736,9 @@ namespace
pcfg,
"BiDirGIOP_Loader");
- if (bidir_loader != 0)
+ if (bidir_loader != nullptr)
{
- bidir_loader->init (0, 0);
+ bidir_loader->init (0, nullptr);
}
#if defined (TAO_HAS_ZIOP) && TAO_HAS_ZIOP == 1
@@ -747,9 +747,9 @@ namespace
pcfg,
"ZIOP_Loader");
- if (ziop_loader != 0)
+ if (ziop_loader != nullptr)
{
- ziop_loader->init (0, 0);
+ ziop_loader->init (0, nullptr);
}
#endif
@@ -758,9 +758,9 @@ namespace
pcfg,
"Messaging_Loader");
- if (messaging_loader != 0)
+ if (messaging_loader != nullptr)
{
- messaging_loader->init (0, 0);
+ messaging_loader->init (0, nullptr);
}
// Handle RTCORBA library special case. Since RTCORBA needs
@@ -771,9 +771,9 @@ namespace
pcfg,
"RT_ORB_Loader");
- if (rt_loader != 0)
+ if (rt_loader != nullptr)
{
- rt_loader->init (0, 0);
+ rt_loader->init (0, nullptr);
}
ACE_Service_Object * const rtscheduler_loader =
@@ -781,9 +781,9 @@ namespace
pcfg,
"RTScheduler_Loader");
- if (rtscheduler_loader != 0)
+ if (rtscheduler_loader != nullptr)
{
- rtscheduler_loader->init (0, 0);
+ rtscheduler_loader->init (0, nullptr);
}
ACE_Service_Object * const csd_framework_loader =
@@ -791,9 +791,9 @@ namespace
pcfg,
"CSD_Framework_Loader");
- if (csd_framework_loader != 0)
+ if (csd_framework_loader != nullptr)
{
- csd_framework_loader->init (0, 0);
+ csd_framework_loader->init (0, nullptr);
}
ACE_Service_Object * const endpoint_policy_loader =
@@ -801,9 +801,9 @@ namespace
pcfg,
"EndpointPolicy_Initializer");
- if (endpoint_policy_loader != 0)
+ if (endpoint_policy_loader != nullptr)
{
- endpoint_policy_loader->init (0, 0);
+ endpoint_policy_loader->init (0, nullptr);
}
ACE_Service_Object * const diffserv_policy_loader =
@@ -811,9 +811,9 @@ namespace
pcfg,
"DiffservPolicy_Initializer");
- if (diffserv_policy_loader != 0)
+ if (diffserv_policy_loader != nullptr)
{
- diffserv_policy_loader->init (0, 0);
+ diffserv_policy_loader->init (0, nullptr);
}
} /* register_additional_services_i */
@@ -838,7 +838,7 @@ namespace
// Proceeds only if the configuration file exists.
FILE * const conf_file =
ACE_OS::fopen (current_arg, ACE_TEXT ("r"));
- if (0 == conf_file)
+ if (nullptr == conf_file)
{
// Assigning EINVAL to errno to make an exception
// thrown. calling code does not throw an exception if
@@ -898,7 +898,7 @@ namespace
while (arg_shifter.is_anything_left ())
{
- const ACE_TCHAR *current_arg = 0;
+ const ACE_TCHAR *current_arg = nullptr;
if (0 == arg_shifter.cur_arg_strncasecmp
(ACE_TEXT ("-ORBSkipServiceConfigOpen")))
{
@@ -913,7 +913,7 @@ namespace
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if (nullptr != (current_arg = arg_shifter.get_the_parameter
(ACE_TEXT ("-ORBServiceConfigLoggerKey"))))
{
svc_config_argv.add (ACE_TEXT ("-k"));
@@ -930,12 +930,12 @@ namespace
// Don't consume, the ORB_Core::init will use it again.
arg_shifter.ignore_arg();
- if (0 != (current_arg = arg_shifter.get_current()))
+ if (nullptr != (current_arg = arg_shifter.get_current()))
negotiate_codesets = (ACE_OS::atoi (current_arg));
arg_shifter.ignore_arg();
}
- else if (0 != (current_arg =
+ else if (nullptr != (current_arg =
arg_shifter.get_the_parameter
(ACE_TEXT ("-ORBDebugLevel"))))
{
@@ -1044,7 +1044,7 @@ namespace
// This should set current_arg to the value of ORBGestalt option.
const ACE_TCHAR *current_arg = arg_shifter.get_current ();
- if (0 != current_arg &&
+ if (nullptr != current_arg &&
ACE_OS::strcasecmp (current_arg, ACE_TEXT("GLOBAL")) != 0)
{
with_global_gestalt = false;
diff --git a/TAO/tao/TAO_Server_Request.cpp b/TAO/tao/TAO_Server_Request.cpp
index 81c8828191f..52578239720 100644
--- a/TAO/tao/TAO_Server_Request.cpp
+++ b/TAO/tao/TAO_Server_Request.cpp
@@ -49,7 +49,7 @@ TAO_ServerRequest::TAO_ServerRequest (TAO_GIOP_Message_Base *mesg_base,
TAO_Transport *transport,
TAO_ORB_Core *orb_core)
: mesg_base_ (mesg_base),
- operation_ (0),
+ operation_ (nullptr),
operation_len_ (0),
release_operation_ (false),
is_forwarded_ (false),
@@ -65,14 +65,14 @@ TAO_ServerRequest::TAO_ServerRequest (TAO_GIOP_Message_Base *mesg_base,
orb_core_ (orb_core),
request_id_ (0),
profile_ (orb_core),
- requesting_principal_ (0),
+ requesting_principal_ (nullptr),
dsi_nvlist_align_ (0),
- operation_details_ (0),
+ operation_details_ (nullptr),
argument_flag_ (true)
#if TAO_HAS_INTERCEPTORS == 1
, interceptor_count_ (0)
- , rs_pi_current_ (0)
- , caught_exception_ (0)
+ , rs_pi_current_ (nullptr)
+ , caught_exception_ (nullptr)
, pi_reply_status_ (-1)
#endif /* TAO_HAS_INTERCEPTORS == 1 */
, transport_(transport) //already duplicated in TAO_Transport::process_parsed_messages ()
@@ -94,10 +94,10 @@ TAO_ServerRequest::TAO_ServerRequest (TAO_GIOP_Message_Base *mesg_base,
int &parse_error)
: mesg_base_ (mesg_base),
operation_ (CORBA::string_dup (operation)),
- operation_len_ (operation == 0 ? 0 : ACE_OS::strlen (operation)),
+ operation_len_ (operation == nullptr ? 0 : ACE_OS::strlen (operation)),
release_operation_ (true),
is_forwarded_ (false),
- incoming_ (0),
+ incoming_ (nullptr),
outgoing_ (&output),
response_expected_ (response_expected),
deferred_reply_ (deferred_reply),
@@ -108,14 +108,14 @@ TAO_ServerRequest::TAO_ServerRequest (TAO_GIOP_Message_Base *mesg_base,
orb_core_ (orb_core),
request_id_ (request_id),
profile_ (orb_core),
- requesting_principal_ (0),
+ requesting_principal_ (nullptr),
dsi_nvlist_align_ (0),
- operation_details_ (0),
+ operation_details_ (nullptr),
argument_flag_ (true)
#if TAO_HAS_INTERCEPTORS == 1
, interceptor_count_ (0)
- , rs_pi_current_ (0)
- , caught_exception_ (0)
+ , rs_pi_current_ (nullptr)
+ , caught_exception_ (nullptr)
, pi_reply_status_ (-1)
#endif /* TAO_HAS_INTERCEPTORS == 1 */
, transport_(transport) //already duplicated in TAO_Transport::process_parsed_messages ()
@@ -128,13 +128,13 @@ TAO_ServerRequest::TAO_ServerRequest (TAO_GIOP_Message_Base *mesg_base,
TAO_ServerRequest::TAO_ServerRequest (TAO_ORB_Core * orb_core,
TAO_Operation_Details const & details,
CORBA::Object_ptr target)
- : mesg_base_ (0),
+ : mesg_base_ (nullptr),
operation_ (details.opname ()),
operation_len_ (details.opname_len ()),
release_operation_ (false),
is_forwarded_ (false),
- incoming_ (0),
- outgoing_ (0),
+ incoming_ (nullptr),
+ outgoing_ (nullptr),
response_expected_ (details.response_flags () == TAO_TWOWAY_RESPONSE_FLAG
|| details.response_flags () == static_cast<CORBA::Octet> (Messaging::SYNC_WITH_SERVER)
|| details.response_flags () == static_cast<CORBA::Octet> (Messaging::SYNC_WITH_TARGET)),
@@ -146,17 +146,17 @@ TAO_ServerRequest::TAO_ServerRequest (TAO_ORB_Core * orb_core,
orb_core_ (orb_core),
request_id_ (0),
profile_ (orb_core),
- requesting_principal_ (0),
+ requesting_principal_ (nullptr),
dsi_nvlist_align_ (0),
operation_details_ (&details),
argument_flag_ (false)
#if TAO_HAS_INTERCEPTORS == 1
, interceptor_count_ (0)
- , rs_pi_current_ (0)
- , caught_exception_ (0)
+ , rs_pi_current_ (nullptr)
+ , caught_exception_ (nullptr)
, pi_reply_status_ (-1)
#endif /* TAO_HAS_INTERCEPTORS == 1 */
- , transport_ (0)
+ , transport_ (nullptr)
{
// Have to use a const_cast<>. *sigh*
this->profile_.object_key (
@@ -180,7 +180,7 @@ TAO_ServerRequest::TAO_ServerRequest (TAO_ORB_Core * orb_core,
// then the operation details don't get the reply service context
}
-TAO_ServerRequest::~TAO_ServerRequest (void)
+TAO_ServerRequest::~TAO_ServerRequest ()
{
#if TAO_HAS_INTERCEPTORS == 1
if (this->rs_pi_current_)
@@ -200,13 +200,13 @@ TAO_ServerRequest::~TAO_ServerRequest (void)
}
CORBA::ORB_ptr
-TAO_ServerRequest::orb (void)
+TAO_ServerRequest::orb ()
{
return this->orb_core_->orb ();
}
TAO_Service_Context &
-TAO_ServerRequest::reply_service_context (void)
+TAO_ServerRequest::reply_service_context ()
{
if (!operation_details_)
{
@@ -221,7 +221,7 @@ TAO_ServerRequest::reply_service_context (void)
void
-TAO_ServerRequest::init_reply (void)
+TAO_ServerRequest::init_reply ()
{
if (!this->outgoing_)
return; // Collocated
@@ -266,9 +266,9 @@ TAO_ServerRequest::init_reply (void)
}
this->outgoing_->message_attributes (this->request_id_,
- 0,
+ nullptr,
TAO_Message_Semantics (TAO_Message_Semantics::TAO_REPLY),
- 0);
+ nullptr);
// Construct a REPLY header.
this->mesg_base_->generate_reply_header (*this->outgoing_, reply_params);
@@ -288,11 +288,11 @@ TAO_ServerRequest::init_reply (void)
ACE_TEXT ("marshal encoding forwarded objref failed\n")));
}
}
- this->transport_->assign_translators (0, this->outgoing_);
+ this->transport_->assign_translators (nullptr, this->outgoing_);
}
void
-TAO_ServerRequest::send_no_exception_reply (void)
+TAO_ServerRequest::send_no_exception_reply ()
{
// Construct our reply generator.
TAO_Pluggable_Reply_Params_Base reply_params;
@@ -313,9 +313,9 @@ TAO_ServerRequest::send_no_exception_reply (void)
reply_params.argument_flag_ = false;
this->outgoing_->message_attributes (this->request_id_,
- 0,
+ nullptr,
TAO_Message_Semantics (TAO_Message_Semantics::TAO_REPLY),
- 0);
+ nullptr);
// Construct a REPLY header.
this->mesg_base_->generate_reply_header (*this->outgoing_, reply_params);
@@ -324,7 +324,7 @@ TAO_ServerRequest::send_no_exception_reply (void)
// Send the message.
int const result = this->transport_->send_message (*this->outgoing_,
- 0,
+ nullptr,
this,
TAO_Message_Semantics (TAO_Message_Semantics::TAO_REPLY));
@@ -344,7 +344,7 @@ TAO_ServerRequest::send_no_exception_reply (void)
}
void
-TAO_ServerRequest::tao_send_reply (void)
+TAO_ServerRequest::tao_send_reply ()
{
if (this->collocated ())
return; // No transport in the collocated case.
@@ -352,7 +352,7 @@ TAO_ServerRequest::tao_send_reply (void)
this->outgoing_->more_fragments (false);
int const result = this->transport_->send_message (*this->outgoing_,
- 0,
+ nullptr,
this,
TAO_Message_Semantics (TAO_Message_Semantics::TAO_REPLY));
if (result == -1)
@@ -388,7 +388,7 @@ TAO_ServerRequest::tao_send_reply_exception (const CORBA::Exception &ex)
// Make a default reply status
// Check whether we are able to downcast the exception
- if (CORBA::SystemException::_downcast (&ex) != 0)
+ if (CORBA::SystemException::_downcast (&ex) != nullptr)
{
reply_params.reply_status (GIOP::SYSTEM_EXCEPTION);
}
@@ -422,7 +422,7 @@ TAO_ServerRequest::tao_send_reply_exception (const CORBA::Exception &ex)
gv.major,
gv.minor);
- this->transport_->assign_translators (0, &output);
+ this->transport_->assign_translators (nullptr, &output);
try
{
@@ -441,7 +441,7 @@ TAO_ServerRequest::tao_send_reply_exception (const CORBA::Exception &ex)
// Send the message
if (this->transport_->send_message (*this->outgoing_,
- 0,
+ nullptr,
this,
TAO_Message_Semantics (TAO_Message_Semantics::TAO_REPLY)) == -1)
{
@@ -503,7 +503,7 @@ TAO_ServerRequest::send_cached_reply (CORBA::OctetSeq &s)
gv.major,
gv.minor);
- this->transport_->assign_translators (0, &output);
+ this->transport_->assign_translators (nullptr, &output);
// A copy of the reply parameters
TAO_Pluggable_Reply_Params_Base reply_params;
@@ -522,9 +522,9 @@ TAO_ServerRequest::send_cached_reply (CORBA::OctetSeq &s)
reply_params.reply_status (GIOP::NO_EXCEPTION);
this->outgoing_->message_attributes (this->request_id_,
- 0,
+ nullptr,
TAO_Message_Semantics (TAO_Message_Semantics::TAO_REPLY),
- 0);
+ nullptr);
// Make the reply message
if (this->mesg_base_->generate_reply_header (*this->outgoing_,
@@ -552,7 +552,7 @@ TAO_ServerRequest::send_cached_reply (CORBA::OctetSeq &s)
// Send the message
if (this->transport_->send_message (*this->outgoing_,
- 0,
+ nullptr,
this,
TAO_Message_Semantics (TAO_Message_Semantics::TAO_REPLY)) == -1)
{
@@ -565,16 +565,16 @@ TAO_ServerRequest::send_cached_reply (CORBA::OctetSeq &s)
void
TAO_ServerRequest::caught_exception (CORBA::Exception *exception)
{
- if (CORBA::SystemException::_downcast (exception) != 0)
+ if (CORBA::SystemException::_downcast (exception) != nullptr)
this->pi_reply_status_ = PortableInterceptor::SYSTEM_EXCEPTION;
- else if (CORBA::UserException::_downcast (exception) != 0)
+ else if (CORBA::UserException::_downcast (exception) != nullptr)
this->pi_reply_status_ = PortableInterceptor::USER_EXCEPTION;
this->caught_exception_ = exception;
}
TAO::PICurrent_Impl *
-TAO_ServerRequest::rs_pi_current (void)
+TAO_ServerRequest::rs_pi_current ()
{
if (!this->rs_pi_current_)
{
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.cpp b/TAO/tao/TAO_Singleton_Manager.cpp
index c928a30d204..60ca39a7d95 100644
--- a/TAO/tao/TAO_Singleton_Manager.cpp
+++ b/TAO/tao/TAO_Singleton_Manager.cpp
@@ -13,7 +13,7 @@
namespace
{
// Singleton instance pointer.
- TAO_Singleton_Manager * the_instance = 0;
+ TAO_Singleton_Manager * the_instance = nullptr;
}
#if (defined (ACE_HAS_VERSIONED_NAMESPACE) && ACE_HAS_VERSIONED_NAMESPACE == 1)
@@ -38,9 +38,9 @@ TAO_SINGLETON_MANAGER_CLEANUP_DESTROYER_NAME (void *, void *)
}
#if (ACE_HAS_GCC_DESTRUCTOR_ATTRIBUTE == 1)
-static void TAO_SINGLETON_MANAGER_FINI_NAME (void) ACE_GCC_DESTRUCTOR_ATTRIBUTE;
+static void TAO_SINGLETON_MANAGER_FINI_NAME () ACE_GCC_DESTRUCTOR_ATTRIBUTE;
-void TAO_SINGLETON_MANAGER_FINI_NAME (void)
+void TAO_SINGLETON_MANAGER_FINI_NAME ()
{
#if defined (TAO_HAS_VERSIONED_NAMESPACE) \
&& TAO_HAS_VERSIONED_NAMESPACE == 1
@@ -55,13 +55,13 @@ void TAO_SINGLETON_MANAGER_FINI_NAME (void)
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Singleton_Manager::TAO_Singleton_Manager (void)
- : default_mask_ (0),
- thread_hook_ (0),
+TAO_Singleton_Manager::TAO_Singleton_Manager ()
+ : default_mask_ (nullptr),
+ thread_hook_ (nullptr),
exit_info_ (),
registered_with_object_manager_ (-1)
#if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0)
- , internal_lock_ (0)
+ , internal_lock_ (nullptr)
# endif /* ACE_MT_SAFE */
{
#if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0)
@@ -69,7 +69,7 @@ TAO_Singleton_Manager::TAO_Singleton_Manager (void)
TAO_SYNCH_RECURSIVE_MUTEX);
# endif /* ACE_MT_SAFE */
// Be sure that no further instances are created via instance ().
- if (the_instance == 0)
+ if (the_instance == nullptr)
{
the_instance = this;
}
@@ -82,25 +82,25 @@ TAO_Singleton_Manager::TAO_Singleton_Manager (void)
(void) this->init (register_with_object_manager);
}
-TAO_Singleton_Manager::~TAO_Singleton_Manager (void)
+TAO_Singleton_Manager::~TAO_Singleton_Manager ()
{
this->dynamically_allocated_ = false; // Don't delete this again in fini()
(void) this->fini ();
#if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0)
delete this->internal_lock_;
- this->internal_lock_ = 0;
+ this->internal_lock_ = nullptr;
#endif /* ACE_MT_SAFE */
}
sigset_t *
-TAO_Singleton_Manager::default_mask (void)
+TAO_Singleton_Manager::default_mask ()
{
return TAO_Singleton_Manager::instance ()->default_mask_;
}
ACE_Thread_Hook *
-TAO_Singleton_Manager::thread_hook (void)
+TAO_Singleton_Manager::thread_hook ()
{
return TAO_Singleton_Manager::instance ()->thread_hook_;
}
@@ -115,18 +115,18 @@ TAO_Singleton_Manager::thread_hook (ACE_Thread_Hook *new_thread_hook)
}
TAO_Singleton_Manager *
-TAO_Singleton_Manager::instance (void)
+TAO_Singleton_Manager::instance ()
{
// This function should be called during construction of static
// instances, or before any other threads have been created in the
// process. So, it's not thread safe.
- if (the_instance == 0)
+ if (the_instance == nullptr)
{
- TAO_Singleton_Manager *instance_pointer = 0;
+ TAO_Singleton_Manager *instance_pointer = nullptr;
ACE_NEW_RETURN (instance_pointer,
TAO_Singleton_Manager,
- 0);
+ nullptr);
ACE_ASSERT (instance_pointer == the_instance);
instance_pointer->dynamically_allocated_ = true;
@@ -140,7 +140,7 @@ TAO_Singleton_Manager::instance (void)
}
int
-TAO_Singleton_Manager::init (void)
+TAO_Singleton_Manager::init ()
{
if (this->registered_with_object_manager_ == -1)
{
@@ -203,7 +203,7 @@ TAO_Singleton_Manager::init (int register_with_object_manager)
&& ACE_Object_Manager::at_exit (
this,
(ACE_CLEANUP_FUNC) TAO_SINGLETON_MANAGER_CLEANUP_DESTROYER_NAME,
- 0,
+ nullptr,
typeid (*this).name ()) != 0)
return -1;
@@ -219,9 +219,9 @@ TAO_Singleton_Manager::init (int register_with_object_manager)
// reason. All objects clean up their per-object information and managed
// objects, but only The Instance cleans up the static preallocated objects.
int
-TAO_Singleton_Manager::fini (void)
+TAO_Singleton_Manager::fini ()
{
- if (the_instance == 0 || this->shutting_down_i ())
+ if (the_instance == nullptr || this->shutting_down_i ())
{
// Too late. Or, maybe too early. Either fini () has already
// been called, or init () was never called.
@@ -240,7 +240,7 @@ TAO_Singleton_Manager::fini (void)
if (this->next_)
{
this->next_->fini ();
- this->next_ = 0; // Protect against recursive calls.
+ this->next_ = nullptr; // Protect against recursive calls.
}
// Call all registered cleanup hooks, in reverse order of
@@ -254,13 +254,13 @@ TAO_Singleton_Manager::fini (void)
}
delete this->default_mask_;
- this->default_mask_ = 0;
+ this->default_mask_ = nullptr;
// Indicate that this TAO_Singleton_Manager instance has been shut down.
this->object_manager_state_ = OBJ_MAN_SHUT_DOWN;
if (this == the_instance)
- the_instance = 0;
+ the_instance = nullptr;
if (this->dynamically_allocated_)
{
@@ -271,7 +271,7 @@ TAO_Singleton_Manager::fini (void)
}
int
-TAO_Singleton_Manager::starting_up (void)
+TAO_Singleton_Manager::starting_up ()
{
return
the_instance
@@ -280,7 +280,7 @@ TAO_Singleton_Manager::starting_up (void)
}
int
-TAO_Singleton_Manager::shutting_down (void)
+TAO_Singleton_Manager::shutting_down ()
{
return
the_instance
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.cpp b/TAO/tao/TSS_Resources.cpp
index 9f1d44141a6..2e13d8d2271 100644
--- a/TAO/tao/TSS_Resources.cpp
+++ b/TAO/tao/TSS_Resources.cpp
@@ -4,10 +4,10 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_TSS_Resources::TAO_TSS_Resources (void)
- : poa_current_impl_ (0)
- , rtscheduler_current_impl_ (0)
- , rtscheduler_previous_current_impl_ (0)
+TAO_TSS_Resources::TAO_TSS_Resources ()
+ : poa_current_impl_ (nullptr)
+ , rtscheduler_current_impl_ (nullptr)
+ , rtscheduler_previous_current_impl_ (nullptr)
, rtcorba_current_priority_ (-1) // RTCORBA::minPriority - 1
, default_environment_ (&tss_environment_)
@@ -16,20 +16,20 @@ TAO_TSS_Resources::TAO_TSS_Resources (void)
, policy_current_ (&initial_policy_current_)
#endif /* TAO_HAS_CORBA_MESSAGING == 1 */
- , gui_resource_factory_ (0)
+ , gui_resource_factory_ (nullptr)
#if (TAO_HAS_TRANSPORT_CURRENT == 1)
- , tsg_ (0)
+ , tsg_ (nullptr)
#endif /* TAO_HAS_TRANSPORT_CURRENT */
{
}
-TAO_TSS_Resources::~TAO_TSS_Resources (void)
+TAO_TSS_Resources::~TAO_TSS_Resources ()
{
delete this->gui_resource_factory_;
}
TAO_TSS_Resources *
-TAO_TSS_Resources::instance (void)
+TAO_TSS_Resources::instance ()
{
// Hide the template instantiation to prevent multiple instances
// from being created.
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.cpp b/TAO/tao/Tagged_Components.cpp
index b95b4a0cae9..a93161ce9fe 100644
--- a/TAO/tao/Tagged_Components.cpp
+++ b/TAO/tao/Tagged_Components.cpp
@@ -77,7 +77,7 @@ TAO_Tagged_Components::set_component_i (IOP::ComponentId tag,
CORBA::Octet *buf = component.component_data.get_buffer ();
for (const ACE_Message_Block *i = cdr.begin ();
- i != 0;
+ i != nullptr;
i = i->cont ())
{
ACE_OS::memcpy (buf, i->rd_ptr (), i->length ());
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.cpp b/TAO/tao/Thread_Lane_Resources.cpp
index edd83b85c5f..32bc8c072df 100644
--- a/TAO/tao/Thread_Lane_Resources.cpp
+++ b/TAO/tao/Thread_Lane_Resources.cpp
@@ -18,20 +18,20 @@ TAO_Thread_Lane_Resources::TAO_Thread_Lane_Resources (
TAO_ORB_Core &orb_core,
TAO_New_Leader_Generator *new_leader_generator)
: orb_core_ (orb_core),
- acceptor_registry_ (0),
- connector_registry_ (0),
- transport_cache_ (0),
- leader_follower_ (0),
+ acceptor_registry_ (nullptr),
+ connector_registry_ (nullptr),
+ transport_cache_ (nullptr),
+ leader_follower_ (nullptr),
new_leader_generator_ (new_leader_generator),
- input_cdr_dblock_allocator_ (0),
- input_cdr_buffer_allocator_ (0),
- input_cdr_msgblock_allocator_ (0),
- transport_message_buffer_allocator_ (0),
- output_cdr_dblock_allocator_ (0),
- output_cdr_buffer_allocator_ (0),
- output_cdr_msgblock_allocator_ (0),
- amh_response_handler_allocator_ (0),
- ami_response_handler_allocator_ (0)
+ input_cdr_dblock_allocator_ (nullptr),
+ input_cdr_buffer_allocator_ (nullptr),
+ input_cdr_msgblock_allocator_ (nullptr),
+ transport_message_buffer_allocator_ (nullptr),
+ output_cdr_dblock_allocator_ (nullptr),
+ output_cdr_buffer_allocator_ (nullptr),
+ output_cdr_msgblock_allocator_ (nullptr),
+ amh_response_handler_allocator_ (nullptr),
+ ami_response_handler_allocator_ (nullptr)
{
// Create the transport cache.
ACE_NEW (this->transport_cache_,
@@ -43,20 +43,20 @@ TAO_Thread_Lane_Resources::TAO_Thread_Lane_Resources (
orb_core.orbid ()));
}
-TAO_Thread_Lane_Resources::~TAO_Thread_Lane_Resources (void)
+TAO_Thread_Lane_Resources::~TAO_Thread_Lane_Resources ()
{
}
TAO::Transport_Cache_Manager &
-TAO_Thread_Lane_Resources::transport_cache (void)
+TAO_Thread_Lane_Resources::transport_cache ()
{
return *this->transport_cache_;
}
int
-TAO_Thread_Lane_Resources::has_acceptor_registry_been_created (void) const
+TAO_Thread_Lane_Resources::has_acceptor_registry_been_created () const
{
- return this->acceptor_registry_ != 0;
+ return this->acceptor_registry_ != nullptr;
}
int
@@ -71,10 +71,10 @@ TAO_Thread_Lane_Resources::is_collocated (const TAO_MProfile& mprofile)
}
TAO_Acceptor_Registry &
-TAO_Thread_Lane_Resources::acceptor_registry (void)
+TAO_Thread_Lane_Resources::acceptor_registry ()
{
// Double check.
- if (this->acceptor_registry_ == 0)
+ if (this->acceptor_registry_ == nullptr)
{
// @todo: Wouldnt this crash big time if you happen to
// dereference a null-pointer? Needs fixing.
@@ -83,7 +83,7 @@ TAO_Thread_Lane_Resources::acceptor_registry (void)
this->lock_,
*this->acceptor_registry_);
- if (this->acceptor_registry_ == 0)
+ if (this->acceptor_registry_ == nullptr)
{
// @@ Not exception safe code
// Get the resource factory.
@@ -100,23 +100,23 @@ TAO_Thread_Lane_Resources::acceptor_registry (void)
}
TAO_Connector_Registry *
-TAO_Thread_Lane_Resources::connector_registry (void)
+TAO_Thread_Lane_Resources::connector_registry ()
{
// Double check.
- if (this->connector_registry_ == 0)
+ if (this->connector_registry_ == nullptr)
{
ACE_GUARD_RETURN (TAO_SYNCH_MUTEX,
ace_mon,
this->lock_,
- 0);
+ nullptr);
- if (this->connector_registry_ == 0)
+ if (this->connector_registry_ == nullptr)
{
// Ask it to create a new acceptor registry.
TAO_Connector_Registry *connector_registry =
this->orb_core_.resource_factory ()->get_connector_registry ();
- if (connector_registry == 0)
+ if (connector_registry == nullptr)
{
throw ::CORBA::INITIALIZE (
CORBA::SystemException::_tao_minor_code (
@@ -146,17 +146,17 @@ TAO_Thread_Lane_Resources::connector_registry (void)
TAO_Leader_Follower &
-TAO_Thread_Lane_Resources::leader_follower (void)
+TAO_Thread_Lane_Resources::leader_follower ()
{
// Double check.
- if (this->leader_follower_ == 0)
+ if (this->leader_follower_ == nullptr)
{
ACE_GUARD_RETURN (TAO_SYNCH_MUTEX,
ace_mon,
this->lock_,
*this->leader_follower_);
- if (this->leader_follower_ == 0)
+ if (this->leader_follower_ == nullptr)
{
// Create a new Leader Follower object.
ACE_NEW_RETURN (this->leader_follower_,
@@ -171,14 +171,14 @@ TAO_Thread_Lane_Resources::leader_follower (void)
ACE_Allocator*
-TAO_Thread_Lane_Resources::input_cdr_dblock_allocator (void)
+TAO_Thread_Lane_Resources::input_cdr_dblock_allocator ()
{
- if (this->input_cdr_dblock_allocator_ == 0)
+ if (this->input_cdr_dblock_allocator_ == nullptr)
{
// Double checked locking
- ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 0);
+ ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, nullptr);
- if (this->input_cdr_dblock_allocator_ == 0)
+ if (this->input_cdr_dblock_allocator_ == nullptr)
{
this->input_cdr_dblock_allocator_ =
this->resource_factory ()->input_cdr_dblock_allocator ();
@@ -190,14 +190,14 @@ TAO_Thread_Lane_Resources::input_cdr_dblock_allocator (void)
ACE_Allocator*
-TAO_Thread_Lane_Resources::input_cdr_buffer_allocator (void)
+TAO_Thread_Lane_Resources::input_cdr_buffer_allocator ()
{
- if (this->input_cdr_buffer_allocator_ == 0)
+ if (this->input_cdr_buffer_allocator_ == nullptr)
{
// Double checked locking
- ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 0);
+ ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, nullptr);
- if (this->input_cdr_buffer_allocator_ == 0)
+ if (this->input_cdr_buffer_allocator_ == nullptr)
{
this->input_cdr_buffer_allocator_ =
this->resource_factory ()->input_cdr_buffer_allocator ();
@@ -209,14 +209,14 @@ TAO_Thread_Lane_Resources::input_cdr_buffer_allocator (void)
ACE_Allocator*
-TAO_Thread_Lane_Resources::input_cdr_msgblock_allocator (void)
+TAO_Thread_Lane_Resources::input_cdr_msgblock_allocator ()
{
- if (this->input_cdr_msgblock_allocator_ == 0)
+ if (this->input_cdr_msgblock_allocator_ == nullptr)
{
// Double checked locking
- ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 0);
+ ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, nullptr);
- if (this->input_cdr_msgblock_allocator_ == 0)
+ if (this->input_cdr_msgblock_allocator_ == nullptr)
{
this->input_cdr_msgblock_allocator_ =
this->resource_factory ()->input_cdr_msgblock_allocator ();
@@ -227,14 +227,14 @@ TAO_Thread_Lane_Resources::input_cdr_msgblock_allocator (void)
}
ACE_Allocator*
-TAO_Thread_Lane_Resources::transport_message_buffer_allocator (void)
+TAO_Thread_Lane_Resources::transport_message_buffer_allocator ()
{
- if (this->transport_message_buffer_allocator_ == 0)
+ if (this->transport_message_buffer_allocator_ == nullptr)
{
// Double checked locking
- ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 0);
+ ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, nullptr);
- if (this->transport_message_buffer_allocator_ == 0)
+ if (this->transport_message_buffer_allocator_ == nullptr)
{
this->transport_message_buffer_allocator_ =
this->resource_factory ()->input_cdr_dblock_allocator ();
@@ -246,14 +246,14 @@ TAO_Thread_Lane_Resources::transport_message_buffer_allocator (void)
ACE_Allocator*
-TAO_Thread_Lane_Resources::output_cdr_dblock_allocator (void)
+TAO_Thread_Lane_Resources::output_cdr_dblock_allocator ()
{
- if (this->output_cdr_dblock_allocator_ == 0)
+ if (this->output_cdr_dblock_allocator_ == nullptr)
{
// Double checked locking
- ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 0);
+ ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, nullptr);
- if (this->output_cdr_dblock_allocator_ == 0)
+ if (this->output_cdr_dblock_allocator_ == nullptr)
{
this->output_cdr_dblock_allocator_ =
this->resource_factory ()->output_cdr_dblock_allocator ();
@@ -265,14 +265,14 @@ TAO_Thread_Lane_Resources::output_cdr_dblock_allocator (void)
ACE_Allocator*
-TAO_Thread_Lane_Resources::output_cdr_buffer_allocator (void)
+TAO_Thread_Lane_Resources::output_cdr_buffer_allocator ()
{
- if (this->output_cdr_buffer_allocator_ == 0)
+ if (this->output_cdr_buffer_allocator_ == nullptr)
{
// Double checked locking
- ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 0);
+ ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, nullptr);
- if (this->output_cdr_buffer_allocator_ == 0)
+ if (this->output_cdr_buffer_allocator_ == nullptr)
{
this->output_cdr_buffer_allocator_ =
this->resource_factory ()->output_cdr_buffer_allocator ();
@@ -284,14 +284,14 @@ TAO_Thread_Lane_Resources::output_cdr_buffer_allocator (void)
ACE_Allocator*
-TAO_Thread_Lane_Resources::output_cdr_msgblock_allocator (void)
+TAO_Thread_Lane_Resources::output_cdr_msgblock_allocator ()
{
- if (this->output_cdr_msgblock_allocator_ == 0)
+ if (this->output_cdr_msgblock_allocator_ == nullptr)
{
// Double checked locking
- ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 0);
+ ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, nullptr);
- if (this->output_cdr_msgblock_allocator_ == 0)
+ if (this->output_cdr_msgblock_allocator_ == nullptr)
{
this->output_cdr_msgblock_allocator_ =
this->resource_factory ()->output_cdr_msgblock_allocator ();
@@ -302,14 +302,14 @@ TAO_Thread_Lane_Resources::output_cdr_msgblock_allocator (void)
}
ACE_Allocator*
-TAO_Thread_Lane_Resources::amh_response_handler_allocator (void)
+TAO_Thread_Lane_Resources::amh_response_handler_allocator ()
{
- if (this->amh_response_handler_allocator_ == 0)
+ if (this->amh_response_handler_allocator_ == nullptr)
{
// Double checked locking
- ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 0);
+ ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, nullptr);
- if (this->amh_response_handler_allocator_ == 0)
+ if (this->amh_response_handler_allocator_ == nullptr)
{
this->amh_response_handler_allocator_ =
this->resource_factory ()->amh_response_handler_allocator ();
@@ -320,14 +320,14 @@ TAO_Thread_Lane_Resources::amh_response_handler_allocator (void)
}
ACE_Allocator*
-TAO_Thread_Lane_Resources::ami_response_handler_allocator (void)
+TAO_Thread_Lane_Resources::ami_response_handler_allocator ()
{
- if (this->ami_response_handler_allocator_ == 0)
+ if (this->ami_response_handler_allocator_ == nullptr)
{
// Double checked locking
- ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 0);
+ ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, nullptr);
- if (this->ami_response_handler_allocator_ == 0)
+ if (this->ami_response_handler_allocator_ == nullptr)
{
this->ami_response_handler_allocator_ =
this->resource_factory ()->ami_response_handler_allocator ();
@@ -352,29 +352,29 @@ TAO_Thread_Lane_Resources::open_acceptor_registry (const TAO_EndpointSet &endpoi
}
TAO_Resource_Factory *
-TAO_Thread_Lane_Resources::resource_factory (void)
+TAO_Thread_Lane_Resources::resource_factory ()
{
return this->orb_core_.resource_factory ();
}
void
-TAO_Thread_Lane_Resources::finalize (void)
+TAO_Thread_Lane_Resources::finalize ()
{
// Close connectors before acceptors!
// Ask the registry to close all registered connectors.
- if (this->connector_registry_ != 0)
+ if (this->connector_registry_ != nullptr)
{
this->connector_registry_->close_all ();
delete this->connector_registry_;
- this->connector_registry_ = 0;
+ this->connector_registry_ = nullptr;
}
// Ask the registry to close all registered acceptors.
- if (this->acceptor_registry_ != 0)
+ if (this->acceptor_registry_ != nullptr)
{
this->acceptor_registry_->close_all ();
delete this->acceptor_registry_;
- this->acceptor_registry_ = 0;
+ this->acceptor_registry_ = nullptr;
}
// Set of handlers still in the connection cache.
@@ -389,7 +389,7 @@ TAO_Thread_Lane_Resources::finalize (void)
// Go through the handler set, closing the connections and removing
// the references.
- TAO_Connection_Handler **handler = 0;
+ TAO_Connection_Handler **handler = nullptr;
for (TAO::Connection_Handler_Set::iterator iter (handlers);
iter.next (handler);
@@ -403,80 +403,80 @@ TAO_Thread_Lane_Resources::finalize (void)
}
delete this->transport_cache_;
- this->transport_cache_ = 0;
+ this->transport_cache_ = nullptr;
delete this->leader_follower_;
- this->leader_follower_ = 0;
+ this->leader_follower_ = nullptr;
// Delete all the allocators here.. They shouldnt be done earlier,
// lest some of the contents in the above, say reactor or acceptor
// may use memory from the pool..
- if (this->input_cdr_dblock_allocator_ != 0)
+ if (this->input_cdr_dblock_allocator_ != nullptr)
{
this->input_cdr_dblock_allocator_->remove ();
delete this->input_cdr_dblock_allocator_;
- this->input_cdr_dblock_allocator_ = 0;
+ this->input_cdr_dblock_allocator_ = nullptr;
}
- if (this->input_cdr_buffer_allocator_ != 0)
+ if (this->input_cdr_buffer_allocator_ != nullptr)
{
this->input_cdr_buffer_allocator_->remove ();
delete this->input_cdr_buffer_allocator_;
- this->input_cdr_buffer_allocator_ = 0;
+ this->input_cdr_buffer_allocator_ = nullptr;
}
- if (this->input_cdr_msgblock_allocator_ != 0)
+ if (this->input_cdr_msgblock_allocator_ != nullptr)
{
this->input_cdr_msgblock_allocator_->remove ();
delete this->input_cdr_msgblock_allocator_;
- this->input_cdr_msgblock_allocator_ = 0;
+ this->input_cdr_msgblock_allocator_ = nullptr;
}
- if (this->transport_message_buffer_allocator_ != 0)
+ if (this->transport_message_buffer_allocator_ != nullptr)
{
this->transport_message_buffer_allocator_->remove ();
delete this->transport_message_buffer_allocator_;
- this->transport_message_buffer_allocator_ = 0;
+ this->transport_message_buffer_allocator_ = nullptr;
}
- if (this->output_cdr_dblock_allocator_ != 0)
+ if (this->output_cdr_dblock_allocator_ != nullptr)
{
this->output_cdr_dblock_allocator_->remove ();
delete this->output_cdr_dblock_allocator_;
- this->output_cdr_dblock_allocator_ = 0;
+ this->output_cdr_dblock_allocator_ = nullptr;
}
- if (this->output_cdr_buffer_allocator_ != 0)
+ if (this->output_cdr_buffer_allocator_ != nullptr)
{
this->output_cdr_buffer_allocator_->remove ();
delete this->output_cdr_buffer_allocator_;
- this->output_cdr_buffer_allocator_ = 0;
+ this->output_cdr_buffer_allocator_ = nullptr;
}
- if (this->output_cdr_msgblock_allocator_ != 0)
+ if (this->output_cdr_msgblock_allocator_ != nullptr)
{
this->output_cdr_msgblock_allocator_->remove ();
delete this->output_cdr_msgblock_allocator_;
- this->output_cdr_msgblock_allocator_ = 0;
+ this->output_cdr_msgblock_allocator_ = nullptr;
}
- if (this->amh_response_handler_allocator_ != 0)
+ if (this->amh_response_handler_allocator_ != nullptr)
{
this->amh_response_handler_allocator_->remove ();
delete this->amh_response_handler_allocator_;
- this->amh_response_handler_allocator_ = 0;
+ this->amh_response_handler_allocator_ = nullptr;
}
- if (this->ami_response_handler_allocator_ != 0)
+ if (this->ami_response_handler_allocator_ != nullptr)
{
this->ami_response_handler_allocator_->remove ();
delete this->ami_response_handler_allocator_;
- this->ami_response_handler_allocator_ = 0;
+ this->ami_response_handler_allocator_ = nullptr;
}
}
void
-TAO_Thread_Lane_Resources::shutdown_reactor (void)
+TAO_Thread_Lane_Resources::shutdown_reactor ()
{
TAO_Leader_Follower &leader_follower = this->leader_follower ();
@@ -508,11 +508,11 @@ TAO_Thread_Lane_Resources::shutdown_reactor (void)
}
void
-TAO_Thread_Lane_Resources::close_all_transports (void)
+TAO_Thread_Lane_Resources::close_all_transports ()
{
// If we have no-drop-reply strategy or already fininalized simply return.
if (!this->orb_core_.resource_factory ()->drop_replies_during_shutdown () ||
- this->transport_cache_ == 0)
+ this->transport_cache_ == nullptr)
return;
// Set of handlers still in the connection cache.
@@ -527,7 +527,7 @@ TAO_Thread_Lane_Resources::close_all_transports (void)
// Go through the handler set, closing the connections and removing
// the references.
- TAO_Connection_Handler **handler = 0;
+ TAO_Connection_Handler **handler = nullptr;
for (TAO::Connection_Handler_Set::iterator iter (handlers);
iter.next (handler);
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.cpp b/TAO/tao/Thread_Lane_Resources_Manager.cpp
index feac67c8c5f..9a8cc6b6f19 100644
--- a/TAO/tao/Thread_Lane_Resources_Manager.cpp
+++ b/TAO/tao/Thread_Lane_Resources_Manager.cpp
@@ -9,24 +9,24 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Thread_Lane_Resources_Manager::TAO_Thread_Lane_Resources_Manager (TAO_ORB_Core &orb_core)
: orb_core_ (&orb_core),
- lf_strategy_ (0)
+ lf_strategy_ (nullptr)
{
this->lf_strategy_ =
this->orb_core_->resource_factory ()->create_lf_strategy ();
}
-TAO_Thread_Lane_Resources_Manager::~TAO_Thread_Lane_Resources_Manager (void)
+TAO_Thread_Lane_Resources_Manager::~TAO_Thread_Lane_Resources_Manager ()
{
delete this->lf_strategy_;
}
TAO_LF_Strategy &
-TAO_Thread_Lane_Resources_Manager::lf_strategy (void)
+TAO_Thread_Lane_Resources_Manager::lf_strategy ()
{
return *this->lf_strategy_;
}
-TAO_Thread_Lane_Resources_Manager_Factory::~TAO_Thread_Lane_Resources_Manager_Factory (void)
+TAO_Thread_Lane_Resources_Manager_Factory::~TAO_Thread_Lane_Resources_Manager_Factory ()
{
}
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/Thread_Per_Connection_Handler.cpp b/TAO/tao/Thread_Per_Connection_Handler.cpp
index c665403fc14..0b81e5e3a52 100644
--- a/TAO/tao/Thread_Per_Connection_Handler.cpp
+++ b/TAO/tao/Thread_Per_Connection_Handler.cpp
@@ -16,14 +16,14 @@ TAO_Thread_Per_Connection_Handler::TAO_Thread_Per_Connection_Handler (
this->ch_->transport ()->add_reference ();
}
-TAO_Thread_Per_Connection_Handler::~TAO_Thread_Per_Connection_Handler (void)
+TAO_Thread_Per_Connection_Handler::~TAO_Thread_Per_Connection_Handler ()
{
this->ch_->close_connection ();
this->ch_->transport ()->remove_reference ();
}
int
-TAO_Thread_Per_Connection_Handler::svc (void)
+TAO_Thread_Per_Connection_Handler::svc ()
{
ACE::clr_flags (this->ch_->transport ()->event_handler_i ()->get_handle (),
ACE_NONBLOCK);
diff --git a/TAO/tao/Time_Policy_Manager.cpp b/TAO/tao/Time_Policy_Manager.cpp
index 8d03150147d..2a4e674dfdb 100644
--- a/TAO/tao/Time_Policy_Manager.cpp
+++ b/TAO/tao/Time_Policy_Manager.cpp
@@ -11,7 +11,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Time_Policy_Manager::TAO_Time_Policy_Manager ()
- : time_policy_strategy_ (0)
+ : time_policy_strategy_ (nullptr)
#if defined(TAO_USE_HR_TIME_POLICY_STRATEGY)
, time_policy_setting_ (TAO_HR_TIME_POLICY)
#else
@@ -68,17 +68,17 @@ TAO_Time_Policy_Manager::parse_args (int argc, ACE_TCHAR* argv[])
return 0;
}
-ACE_Timer_Queue * TAO_Time_Policy_Manager::create_timer_queue (void)
+ACE_Timer_Queue * TAO_Time_Policy_Manager::create_timer_queue ()
{
// locking scope
{
ACE_GUARD_RETURN (TAO_SYNCH_MUTEX,
monitor,
this->lock_,
- 0);
+ nullptr);
// check if time policy strategy has already been initialized
- if (this->time_policy_strategy_ == 0)
+ if (this->time_policy_strategy_ == nullptr)
{
// load strategy
if (this->time_policy_setting_ == TAO_OS_TIME_POLICY)
@@ -92,13 +92,13 @@ ACE_Timer_Queue * TAO_Time_Policy_Manager::create_timer_queue (void)
this->time_policy_strategy_ =
ACE_Dynamic_Service<TAO_Time_Policy_Strategy>::instance (
this->time_policy_name_.c_str ());
- if (this->time_policy_strategy_ == 0)
+ if (this->time_policy_strategy_ == nullptr)
{
TAOLIB_ERROR ((LM_ERROR,
ACE_TEXT ("TAO (%P|%t) - TAO_Time_Policy_Manager: ")
ACE_TEXT ("FAILED to load time policy strategy '%C'\n"),
this->time_policy_name_.c_str ()));
- return 0;
+ return nullptr;
}
if (TAO_debug_level > 1)
@@ -128,7 +128,7 @@ TAO_Time_Policy_Manager::destroy_timer_queue (ACE_Timer_Queue *tmq)
this->lock_);
// check if time policy strategy has been initialized
- if (this->time_policy_strategy_ == 0)
+ if (this->time_policy_strategy_ == nullptr)
{
return;
}
diff --git a/TAO/tao/Transport.cpp b/TAO/tao/Transport.cpp
index 37b2c37a234..13bfa7174f7 100644
--- a/TAO/tao/Transport.cpp
+++ b/TAO/tao/Transport.cpp
@@ -33,12 +33,6 @@
#include "ace/CORBA_macros.h"
#include "ace/Truncate.h"
-/*
- * Specialization hook to add include files from
- * concrete transport implementation.
- */
-//@@ TAO_TRANSPORT_SPL_INCLUDE_FORWARD_DECL_ADD_HOOK
-
#if !defined (__ACE_INLINE__)
# include "tao/Transport.inl"
#endif /* __ACE_INLINE__ */
@@ -124,13 +118,13 @@ TAO_Transport::TAO_Transport (CORBA::ULong tag,
size_t input_cdr_size)
: tag_ (tag)
, orb_core_ (orb_core)
- , cache_map_entry_ (0)
- , tms_ (0)
- , ws_ (0)
+ , cache_map_entry_ (nullptr)
+ , tms_ (nullptr)
+ , ws_ (nullptr)
, bidirectional_flag_ (-1)
, opening_connection_role_ (TAO::TAO_UNSPECIFIED_ROLE)
- , head_ (0)
- , tail_ (0)
+ , head_ (nullptr)
+ , tail_ (nullptr)
, incoming_message_queue_ (orb_core)
, current_deadline_ (ACE_Time_Value::zero)
, flush_timer_id_ (-1)
@@ -142,12 +136,12 @@ TAO_Transport::TAO_Transport (CORBA::ULong tag,
, sent_byte_count_ (0)
, is_connected_ (false)
, connection_closed_on_read_ (false)
- , messaging_object_ (0)
- , char_translator_ (0)
- , wchar_translator_ (0)
+ , messaging_object_ (nullptr)
+ , char_translator_ (nullptr)
+ , wchar_translator_ (nullptr)
, tcs_set_ (0)
, first_request_ (true)
- , partial_message_ (0)
+ , partial_message_ (nullptr)
#if TAO_HAS_SENDFILE == 1
// The ORB has been configured to use the MMAP allocator, meaning
// we could/should use sendfile() to send data. Cast once rather
@@ -159,7 +153,7 @@ TAO_Transport::TAO_Transport (CORBA::ULong tag,
orb_core->output_cdr_buffer_allocator ()))
#endif /* TAO_HAS_SENDFILE==1 */
#if TAO_HAS_TRANSPORT_CURRENT == 1
- , stats_ (0)
+ , stats_ (nullptr)
#endif /* TAO_HAS_TRANSPORT_CURRENT == 1 */
, flush_in_post_open_ (false)
{
@@ -183,17 +177,9 @@ TAO_Transport::TAO_Transport (CORBA::ULong tag,
TAO::Transport::Stats,
CORBA::NO_MEMORY ());
#endif /* TAO_HAS_TRANSPORT_CURRENT == 1 */
-
- /*
- * Hook to add code that initializes components that
- * belong to the concrete protocol implementation.
- * Further additions to this Transport class will
- * need to add code *before* this hook.
- */
- //@@ TAO_TRANSPORT_SPL_CONSTRUCTOR_ADD_HOOK
}
-TAO_Transport::~TAO_Transport (void)
+TAO_Transport::~TAO_Transport ()
{
if (TAO_debug_level > 9)
{
@@ -227,19 +213,11 @@ TAO_Transport::~TAO_Transport (void)
// The following assert is needed for the test "Bug_2494_Regression".
// See the bugzilla bug #2494 for details.
ACE_ASSERT (this->queue_is_empty_i ());
- ACE_ASSERT (this->cache_map_entry_ == 0);
+ ACE_ASSERT (this->cache_map_entry_ == nullptr);
#if TAO_HAS_TRANSPORT_CURRENT == 1
delete this->stats_;
#endif /* TAO_HAS_TRANSPORT_CURRENT == 1 */
-
- /*
- * Hook to add code that cleans up components
- * belong to the concrete protocol implementation.
- * Further additions to this Transport class will
- * need to add code *before* this hook.
- */
- //@@ TAO_TRANSPORT_SPL_DESTRUCTOR_ADD_HOOK
}
void
@@ -265,27 +243,17 @@ TAO_Transport::provide_blockable_handler (TAO::Connection_Handler_Set &h)
}
bool
-TAO_Transport::idle_after_send (void)
+TAO_Transport::idle_after_send ()
{
return this->tms ()->idle_after_send ();
}
bool
-TAO_Transport::idle_after_reply (void)
+TAO_Transport::idle_after_reply ()
{
return this->tms ()->idle_after_reply ();
}
-/*
- * A concrete transport class specializes this
- * method. This hook allows commenting this function
- * when TAO's transport is specialized. Note: All
- * functions that have an implementation that does
- * nothing should be added within this hook to
- * enable specialization.
- */
-//@@ TAO_TRANSPORT_SPL_COMMENT_HOOK_START
-
int
TAO_Transport::tear_listen_point_list (TAO_InputCDR &)
{
@@ -320,16 +288,14 @@ TAO_Transport::send_message_shared (TAO_Stub *stub,
return result;
}
-//@@ TAO_TRANSPORT_SPL_COMMENT_HOOK_END
-
bool
-TAO_Transport::post_connect_hook (void)
+TAO_Transport::post_connect_hook ()
{
return true;
}
bool
-TAO_Transport::register_if_necessary (void)
+TAO_Transport::register_if_necessary ()
{
if (this->is_connected_ &&
this->wait_strategy ()->register_handler () == -1)
@@ -357,13 +323,13 @@ TAO_Transport::register_if_necessary (void)
}
void
-TAO_Transport::close_connection (void)
+TAO_Transport::close_connection ()
{
this->connection_handler_i ()->close_connection ();
}
int
-TAO_Transport::register_handler (void)
+TAO_Transport::register_handler ()
{
if (TAO_debug_level > 4)
{
@@ -415,7 +381,7 @@ TAO_Transport::register_handler (void)
}
int
-TAO_Transport::remove_handler (void)
+TAO_Transport::remove_handler ()
{
if (TAO_debug_level > 4)
{
@@ -434,7 +400,7 @@ TAO_Transport::remove_handler (void)
false);
- if (this->event_handler_i ()->reactor () == 0)
+ if (this->event_handler_i ()->reactor () == nullptr)
{
return 0;
}
@@ -467,7 +433,7 @@ TAO_Transport::remove_handler (void)
// reset the reactor property of the event handler or
// Transport::register_handler() will not re-register
// when called after us again.
- this->event_handler_i ()->reactor (0);
+ this->event_handler_i ()->reactor (nullptr);
return 0;
}
}
@@ -553,7 +519,7 @@ TAO_Transport::recache_transport (TAO_Transport_Descriptor_Interface *desc)
}
int
-TAO_Transport::purge_entry (void)
+TAO_Transport::purge_entry ()
{
if (TAO_debug_level > 3)
{
@@ -567,13 +533,13 @@ TAO_Transport::purge_entry (void)
}
bool
-TAO_Transport::can_be_purged (void)
+TAO_Transport::can_be_purged ()
{
return !this->tms_->has_request ();
}
int
-TAO_Transport::make_idle (void)
+TAO_Transport::make_idle ()
{
if (TAO_debug_level > 3)
{
@@ -586,7 +552,7 @@ TAO_Transport::make_idle (void)
}
int
-TAO_Transport::update_transport (void)
+TAO_Transport::update_transport ()
{
return this->transport_cache_manager ().update_entry (this->cache_map_entry_);
}
@@ -631,7 +597,7 @@ TAO_Transport::format_queue_message (TAO_OutputCDR &stream,
ACE_Time_Value *max_wait_time,
TAO_Stub* stub)
{
- if (this->messaging_object ()->format_message (stream, stub, 0) != 0)
+ if (this->messaging_object ()->format_message (stream, stub, nullptr) != 0)
return -1;
if (this->queue_message_i (stream.begin (), max_wait_time) != 0)
@@ -848,7 +814,7 @@ TAO_Transport::send_reply_message_i (const ACE_Message_Block *mb,
typedef ACE_Reverse_Lock<ACE_Lock> TAO_REVERSE_LOCK;
TAO_REVERSE_LOCK reverse (*this->handler_lock_);
ACE_GUARD_RETURN (TAO_REVERSE_LOCK, ace_mon, reverse, -1);
- (void) flushing_strategy->flush_transport (this, 0);
+ (void) flushing_strategy->flush_transport (this, nullptr);
}
return 1;
@@ -882,12 +848,12 @@ TAO_Transport::send_synch_message_helper_i (TAO_Synch_Queued_Message &synch_mess
}
int
-TAO_Transport::schedule_output_i (void)
+TAO_Transport::schedule_output_i ()
{
ACE_Event_Handler * const eh = this->event_handler_i ();
ACE_Reactor * const reactor = eh->reactor ();
- if (reactor == 0)
+ if (reactor == nullptr)
{
if (TAO_debug_level > 1)
{
@@ -936,7 +902,7 @@ TAO_Transport::schedule_output_i (void)
}
int
-TAO_Transport::cancel_output_i (void)
+TAO_Transport::cancel_output_i ()
{
ACE_Event_Handler * const eh = this->event_handler_i ();
ACE_Reactor *const reactor = eh->reactor ();
@@ -983,7 +949,7 @@ TAO_Transport::handle_timeout (const ACE_Time_Value & /* current_time */,
typedef ACE_Reverse_Lock<ACE_Lock> TAO_REVERSE_LOCK;
TAO_REVERSE_LOCK reverse (*this->handler_lock_);
ACE_GUARD_RETURN (TAO_REVERSE_LOCK, ace_mon, reverse, -1);
- if (flushing_strategy->flush_transport (this, 0) == -1) {
+ if (flushing_strategy->flush_transport (this, nullptr) == -1) {
return -1;
}
}
@@ -1106,7 +1072,7 @@ TAO_Transport::drain_queue_i (TAO::Transport::Drain_Constraints const & dc)
// sent
int iovcnt = 0;
#if defined (ACE_INITIALIZE_MEMORY_BEFORE_USE)
- iovec iov[ACE_IOV_MAX] = { { 0 , 0 } };
+ iovec iov[ACE_IOV_MAX] = { { nullptr , 0 } };
#else
iovec iov[ACE_IOV_MAX];
#endif /* ACE_INITIALIZE_MEMORY_BEFORE_USE */
@@ -1123,7 +1089,7 @@ TAO_Transport::drain_queue_i (TAO::Transport::Drain_Constraints const & dc)
// If we are forced to send in the loop then we'll recompute the time.
ACE_Time_Value now = ACE_High_Res_Timer::gettimeofday_hr ();
- while (i != 0)
+ while (i != nullptr)
{
if (i->is_expired (now))
{
@@ -1307,7 +1273,7 @@ TAO_Transport::check_buffering_constraints_i (TAO_Stub *stub, bool &must_flush)
size_t msg_count = 0;
size_t total_bytes = 0;
- for (TAO_Queued_Message *i = this->head_; i != 0; i = i->next ())
+ for (TAO_Queued_Message *i = this->head_; i != nullptr; i = i->next ())
{
++msg_count;
total_bytes += i->message_length ();
@@ -1375,7 +1341,7 @@ TAO_Transport::report_invalid_event_handler (const char *caller)
}
void
-TAO_Transport::send_connection_closed_notifications (void)
+TAO_Transport::send_connection_closed_notifications ()
{
{
ACE_MT (ACE_GUARD (ACE_Lock, guard, *this->handler_lock_));
@@ -1387,7 +1353,7 @@ TAO_Transport::send_connection_closed_notifications (void)
}
void
-TAO_Transport::send_connection_closed_notifications_i (void)
+TAO_Transport::send_connection_closed_notifications_i ()
{
this->cleanup_queue_i ();
}
@@ -1423,7 +1389,7 @@ TAO_Transport::send_message_shared_i (TAO_Stub *stub,
#if TAO_HAS_TRANSPORT_CURRENT == 1
// "Count" the message, only if no error was encountered.
- if (ret != -1 && this->stats_ != 0)
+ if (ret != -1 && this->stats_ != nullptr)
this->stats_->messages_sent (message_length);
#endif /* TAO_HAS_TRANSPORT_CURRENT == 1 */
@@ -1557,7 +1523,7 @@ TAO_Transport::send_asynchronous_message_i (TAO_Stub *stub,
// ... part of the data was sent, need to figure out what piece
// of the message block chain must be queued ...
- while (message_block != 0 && message_block->length () == 0)
+ while (message_block != nullptr && message_block->length () == 0)
{
message_block = message_block->cont ();
}
@@ -1569,7 +1535,7 @@ TAO_Transport::send_asynchronous_message_i (TAO_Stub *stub,
// ... either the message must be queued or we need to queue it
// because it was not completely sent out ...
- ACE_Time_Value *wait_time = (partially_sent ? 0: max_wait_time);
+ ACE_Time_Value *wait_time = (partially_sent ? nullptr: max_wait_time);
if (this->queue_message_i (message_block, wait_time, !partially_sent)
== -1)
{
@@ -1685,12 +1651,12 @@ int
TAO_Transport::queue_message_i (const ACE_Message_Block *message_block,
ACE_Time_Value *max_wait_time, bool back)
{
- TAO_Queued_Message *queued_message = 0;
+ TAO_Queued_Message *queued_message = nullptr;
ACE_NEW_RETURN (queued_message,
TAO_Asynch_Queued_Message (message_block,
this->orb_core_,
max_wait_time,
- 0,
+ nullptr,
true),
-1);
if (back) {
@@ -1745,7 +1711,7 @@ TAO_Transport::handle_input (TAO_Resume_Handle &rh,
}
}
- TAO_Queued_Data *q_data = 0;
+ TAO_Queued_Data *q_data = nullptr;
if (this->incoming_message_stack_.top (q_data) != -1
&& q_data->missing_data () != TAO_MISSING_DATA_UNDEFINED)
@@ -1802,7 +1768,7 @@ TAO_Transport::consolidate_process_message (TAO_Queued_Data *q_data,
q_data->msg_type () == GIOP::Fragment)
{
// consolidate message on top of stack, only for fragmented messages
- TAO_Queued_Data *new_q_data = 0;
+ TAO_Queued_Data *new_q_data = nullptr;
switch (this->messaging_object()->consolidate_fragmented_message (q_data, new_q_data))
{
@@ -1882,7 +1848,7 @@ TAO_Transport::consolidate_enqueue_message (TAO_Queued_Data *q_data)
if (q_data->more_fragments () ||
q_data->msg_type () == GIOP::Fragment)
{
- TAO_Queued_Data *new_q_data = 0;
+ TAO_Queued_Data *new_q_data = nullptr;
switch (this->messaging_object()->consolidate_fragmented_message (q_data, new_q_data))
{
@@ -1931,7 +1897,7 @@ TAO_Transport::handle_input_missing_data (TAO_Resume_Handle &rh,
TAO_Queued_Data *q_data)
{
// paranoid check
- if (q_data == 0)
+ if (q_data == nullptr)
{
return -1;
}
@@ -2012,7 +1978,7 @@ TAO_Transport::handle_input_parse_extra_messages (
// parsed
int buf_status = 0;
- TAO_Queued_Data *q_data = 0; // init
+ TAO_Queued_Data *q_data = nullptr; // init
// parse buffer until all messages have been extracted, consolidate
// and enqueue complete messages, if the last message being parsed
@@ -2020,7 +1986,7 @@ TAO_Transport::handle_input_parse_extra_messages (
while (message_block.length () > 0 &&
(buf_status = this->messaging_object ()->extract_next_message
(message_block, q_data)) != -1 &&
- q_data != 0) // paranoid check
+ q_data != nullptr) // paranoid check
{
if (q_data->missing_data () == 0)
{
@@ -2035,7 +2001,7 @@ TAO_Transport::handle_input_parse_extra_messages (
this->incoming_message_stack_.push (q_data);
}
- q_data = 0; // reset
+ q_data = nullptr; // reset
} // while
if (buf_status == -1)
@@ -2090,7 +2056,7 @@ TAO_Transport::handle_input_parse_data (TAO_Resume_Handle &rh,
size_t recv_size = 0; // Note: unsigned integer
// Pointer to newly parsed message
- TAO_Queued_Data *q_data = 0;
+ TAO_Queued_Data *q_data = nullptr;
// Optimizing access of constants
size_t const header_length = this->messaging_object ()->header_length ();
@@ -2133,7 +2099,7 @@ TAO_Transport::handle_input_parse_data (TAO_Resume_Handle &rh,
// If we have a partial message, copy it into our message block and
// clear out the partial message.
- if (this->partial_message_ != 0 && this->partial_message_->length () > 0)
+ if (this->partial_message_ != nullptr && this->partial_message_->length () > 0)
{
// (*) Copy back the partial message into current read-buffer,
// verify that the read-strategy of "recv_size" bytes is not
@@ -2170,7 +2136,7 @@ TAO_Transport::handle_input_parse_data (TAO_Resume_Handle &rh,
ACE_TEXT ("Error - endless loop detection, closing connection"),
this->id ()));
}
- if (this->partial_message_ != 0 && this->partial_message_->length () > 0)
+ if (this->partial_message_ != nullptr && this->partial_message_->length () > 0)
{
this->partial_message_->reset ();
}
@@ -2196,7 +2162,7 @@ TAO_Transport::handle_input_parse_data (TAO_Resume_Handle &rh,
if (n <= 0)
{
if ((n < 0) &&
- (this->partial_message_ != 0 && this->partial_message_->length () > 0))
+ (this->partial_message_ != nullptr && this->partial_message_->length () > 0))
{
this->partial_message_->reset ();
}
@@ -2204,7 +2170,7 @@ TAO_Transport::handle_input_parse_data (TAO_Resume_Handle &rh,
return ACE_Utils::truncate_cast<int> (n);
}
- if (this->partial_message_ != 0 && this->partial_message_->length () > 0)
+ if (this->partial_message_ != nullptr && this->partial_message_->length () > 0)
{
this->partial_message_->reset ();
}
@@ -2313,7 +2279,7 @@ TAO_Transport::handle_input_parse_data (TAO_Resume_Handle &rh,
// Dealing with a fragment
TAO_Queued_Data *nqd = TAO_Queued_Data::duplicate (qd);
- if (nqd == 0)
+ if (nqd == nullptr)
{
return -1;
}
@@ -2362,7 +2328,7 @@ TAO_Transport::handle_input_parse_data (TAO_Resume_Handle &rh,
TAO_Queued_Data *nqd = TAO_Queued_Data::duplicate (qd);
- if (nqd == 0)
+ if (nqd == nullptr)
{
return -1;
}
@@ -2462,12 +2428,12 @@ TAO_Transport::handle_input_parse_data (TAO_Resume_Handle &rh,
// in buffer that needs to be safed for next "handle_input" invocations.
if (message_block.length () > 0)
{
- if (this->partial_message_ == 0)
+ if (this->partial_message_ == nullptr)
{
this->allocate_partial_message_block ();
}
- if (this->partial_message_ != 0 &&
+ if (this->partial_message_ != nullptr &&
this->partial_message_->copy (message_block.rd_ptr (),
message_block.length ()) == 0)
{
@@ -2497,7 +2463,7 @@ TAO_Transport::process_parsed_messages (TAO_Queued_Data *qd,
#if TAO_HAS_TRANSPORT_CURRENT == 1
// Update stats, if any
- if (this->stats_ != 0)
+ if (this->stats_ != nullptr)
this->stats_->messages_received (qd->msg_block ()->length ());
#endif /* TAO_HAS_TRANSPORT_CURRENT == 1 */
@@ -2670,7 +2636,7 @@ TAO_Transport::process_queue_head (TAO_Resume_Handle &rh)
}
int
-TAO_Transport::notify_reactor_now (void)
+TAO_Transport::notify_reactor_now ()
{
ACE_Event_Handler *eh = this->event_handler_i ();
@@ -2702,7 +2668,7 @@ TAO_Transport::notify_reactor_now (void)
}
TAO::Transport_Cache_Manager &
-TAO_Transport::transport_cache_manager (void)
+TAO_Transport::transport_cache_manager ()
{
return this->orb_core_->lane_resources ().transport_cache ();
}
@@ -2727,36 +2693,36 @@ TAO_Transport::clear_translators (TAO_InputCDR *inp, TAO_OutputCDR *outp)
{
if (inp)
{
- inp->char_translator (0);
- inp->wchar_translator (0);
+ inp->char_translator (nullptr);
+ inp->wchar_translator (nullptr);
}
if (outp)
{
- outp->char_translator (0);
- outp->wchar_translator (0);
+ outp->char_translator (nullptr);
+ outp->wchar_translator (nullptr);
}
}
ACE_Event_Handler::Reference_Count
-TAO_Transport::add_reference (void)
+TAO_Transport::add_reference ()
{
return this->event_handler_i ()->add_reference ();
}
ACE_Event_Handler::Reference_Count
-TAO_Transport::remove_reference (void)
+TAO_Transport::remove_reference ()
{
return this->event_handler_i ()->remove_reference ();
}
TAO_OutputCDR &
-TAO_Transport::out_stream (void)
+TAO_Transport::out_stream ()
{
return this->messaging_object ()->out_stream ();
}
TAO_SYNCH_MUTEX &
-TAO_Transport::output_cdr_lock (void)
+TAO_Transport::output_cdr_lock ()
{
return this->output_cdr_mutex_;
}
@@ -2768,7 +2734,7 @@ TAO_Transport::messaging_init (TAO_GIOP_Message_Version const &version)
}
void
-TAO_Transport::pre_close (void)
+TAO_Transport::pre_close ()
{
if (TAO_debug_level > 9)
{
@@ -2814,7 +2780,7 @@ TAO_Transport::post_open (size_t id)
TAO_Flushing_Strategy *flushing_strategy =
this->orb_core ()->flushing_strategy ();
- if (flushing_strategy == 0)
+ if (flushing_strategy == nullptr)
throw CORBA::INTERNAL ();
this->flush_in_post_open_ = false;
@@ -2868,9 +2834,9 @@ TAO_Transport::post_open (size_t id)
}
void
-TAO_Transport::allocate_partial_message_block (void)
+TAO_Transport::allocate_partial_message_block ()
{
- if (this->partial_message_ == 0)
+ if (this->partial_message_ == nullptr)
{
// This value must be at least large enough to hold a GIOP message
// header plus a GIOP fragment header
@@ -2899,13 +2865,13 @@ TAO_Transport::io_timeout(
}
if (this->wait_strategy()->can_process_upcalls())
{
- return 0;
+ return nullptr;
}
return dc.timeout();
}
bool
-TAO_Transport::using_blocking_io_for_synch_messages (void) const
+TAO_Transport::using_blocking_io_for_synch_messages () const
{
if (this->wait_strategy()->can_process_upcalls())
{
@@ -2915,22 +2881,15 @@ TAO_Transport::using_blocking_io_for_synch_messages (void) const
}
bool
-TAO_Transport::using_blocking_io_for_asynch_messages (void) const
+TAO_Transport::using_blocking_io_for_asynch_messages () const
{
return false;
}
bool
-TAO_Transport::connection_closed_on_read (void) const
+TAO_Transport::connection_closed_on_read () const
{
return connection_closed_on_read_;
}
-/*
- * Hook to add concrete implementations from the derived class onto
- * TAO's transport.
- */
-
-//@@ TAO_TRANSPORT_SPL_METHODS_ADD_HOOK
-
TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Transport.h b/TAO/tao/Transport.h
index ea7f68d4c96..4b3c84d069d 100644
--- a/TAO/tao/Transport.h
+++ b/TAO/tao/Transport.h
@@ -147,11 +147,6 @@ namespace TAO
}
}
-/*
- * Specialization hook for the TAO's transport implementation.
- */
-//@@ TAO_TRANSPORT_SPL_INCLUDE_FORWARD_DECL_ADD_HOOK
-
/**
* @class TAO_Transport
*
@@ -326,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.
/**
@@ -334,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.
/**
@@ -350,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.
/**
@@ -360,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
{
@@ -393,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);
@@ -402,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.
/**
@@ -410,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.
@@ -470,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.
/**
@@ -558,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
@@ -599,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
*
@@ -638,43 +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);
- /*
- * Specialization hook to add public methods from
- * concrete transport implementations to TAO's transport
- * class
- */
- //@@ TAO_TRANSPORT_SPL_PUBLIC_METHODS_ADD_HOOK
-
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
@@ -840,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.
@@ -868,16 +856,16 @@ public:
int handle_timeout (const ACE_Time_Value &current_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 *);
@@ -905,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.
/**
@@ -931,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[],
@@ -948,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.
/**
@@ -991,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);
@@ -1038,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
@@ -1077,8 +1065,6 @@ private:
* TAO's protocol implementation onto the base Transport class
*/
- //@@ TAO_TRANSPORT_SPL_PRIVATE_METHODS_ADD_HOOK
-
protected:
/// IOP protocol tag.
CORBA::ULong const tag_;
@@ -1235,22 +1221,8 @@ private:
/// lock for synchronizing Transport OutputCDR access
mutable TAO_SYNCH_MUTEX output_cdr_mutex_;
-
- /*
- * specialization hook to add class members from concrete
- * transport class onto the base transport class. Please
- * add any private members to this class *before* this hook.
- */
- //@@ TAO_TRANSPORT_SPL_DATA_MEMBERS_ADD_HOOK
};
-/*
- * Hook to add external typedefs and specializations to
- * TAO's transport implementation.
- */
-
-//@@ TAO_TRANSPORT_SPL_EXTERN_ADD_HOOK
-
#if TAO_HAS_TRANSPORT_CURRENT == 1
namespace TAO
{
@@ -1279,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/TransportCurrent/Current_ORBInitializer_Base.h b/TAO/tao/TransportCurrent/Current_ORBInitializer_Base.h
index a47d4dea15b..bfc363cf8c4 100644
--- a/TAO/tao/TransportCurrent/Current_ORBInitializer_Base.h
+++ b/TAO/tao/TransportCurrent/Current_ORBInitializer_Base.h
@@ -45,8 +45,7 @@ namespace TAO
virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info);
protected:
virtual TAO::Transport::Current_ptr
- make_current_instance (TAO_ORB_Core* core, size_t tss_slot_id)
- = 0;
+ make_current_instance (TAO_ORB_Core* core, size_t tss_slot_id) = 0;
protected:
const ACE_TString id_;
#if defined (ACE_WIN32_VC14)
diff --git a/TAO/tao/Transport_Acceptor.cpp b/TAO/tao/Transport_Acceptor.cpp
index 3ef9deb8982..bdf634c708b 100644
--- a/TAO/tao/Transport_Acceptor.cpp
+++ b/TAO/tao/Transport_Acceptor.cpp
@@ -15,10 +15,8 @@ TAO_Acceptor::TAO_Acceptor (CORBA::ULong tag)
{
}
-TAO_Acceptor::~TAO_Acceptor (void)
+TAO_Acceptor::~TAO_Acceptor ()
{
-
- //@@ TAO_ACCEPTOR_DESTRUCTOR_ADD_HOOK
}
int
@@ -39,7 +37,7 @@ TAO_Acceptor::handle_accept_error (ACE_Event_Handler* base_acceptor)
// Get the reactor. If there isn't one, which isn't very likely,
// then just return -1.
ACE_Reactor* reactor = base_acceptor->reactor ();
- if (reactor == 0)
+ if (reactor == nullptr)
return -1;
// So that the reactor doesn't completely remove this handler from
@@ -57,7 +55,7 @@ TAO_Acceptor::handle_accept_error (ACE_Event_Handler* base_acceptor)
// Schedule a timer so that we can resume the handler in hopes
// that some file handles have freed up.
ACE_Time_Value timeout (this->error_retry_delay_);
- reactor->schedule_timer (base_acceptor, 0, timeout);
+ reactor->schedule_timer (base_acceptor, nullptr, timeout);
}
// We want to keep accepting in all other situations.
@@ -70,7 +68,7 @@ TAO_Acceptor::handle_expiration (ACE_Event_Handler* base_acceptor)
// Get the reactor. If there isn't one, which isn't very likely, then
// just return -1;
ACE_Reactor* reactor = base_acceptor->reactor ();
- if (reactor == 0)
+ if (reactor == nullptr)
return -1;
if (TAO_debug_level > 0)
@@ -89,6 +87,4 @@ TAO_Acceptor::handle_expiration (ACE_Event_Handler* base_acceptor)
return 0;
}
-//@@ TAO_ACCEPTOR_SPL_METHODS_ADD_HOOK
-
TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Transport_Acceptor.h b/TAO/tao/Transport_Acceptor.h
index 984ad333825..87d660aa4c9 100644
--- a/TAO/tao/Transport_Acceptor.h
+++ b/TAO/tao/Transport_Acceptor.h
@@ -48,8 +48,6 @@ namespace TAO
class ObjectKey;
}
-//@@ TAO_ACCEPTOR_SPL_INCLUDE_FORWARD_DECL_ADD_HOOK
-
// ****************************************************************
/// The TAO-specific OMG assigned value for the TAG_ORB_TYPE tagged
@@ -78,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.
@@ -106,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.
@@ -127,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
@@ -148,23 +146,11 @@ public:
/// into the reactor to try accepting again.
int handle_expiration (ACE_Event_Handler* base_acceptor);
- /*
- * Hook to add public methods from derived acceptor classes onto
- * this class.
- */
- //@@ TAO_ACCEPTOR_SPL_PUBLIC_METHODS_ADD_HOOK
-
private:
/// IOP protocol tag.
CORBA::ULong const tag_;
time_t error_retry_delay_;
-
- /*
- * Hook to add data members from concrete acceptor implementations onto
- * the base class.
- */
- //@@ TAO_ACCEPTOR_SPL_DATA_MEMBERS_ADD_HOOK
};
/// This is a drop-in replacement class for the ACE_Strategy_Acceptor.
@@ -187,7 +173,7 @@ public:
{
}
- virtual int handle_accept_error (void)
+ virtual int handle_accept_error ()
{
return this->acceptor_->handle_accept_error (this);
}
@@ -201,8 +187,6 @@ private:
TAO_Acceptor* acceptor_;
};
-//@@ TAO_ACCEPTOR_SPL_EXTERN_ADD_HOOK
-
TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
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_Connector.cpp b/TAO/tao/Transport_Connector.cpp
index 6a47a484bf3..4e4961b1f90 100644
--- a/TAO/tao/Transport_Connector.cpp
+++ b/TAO/tao/Transport_Connector.cpp
@@ -18,8 +18,6 @@
#include "ace/OS_NS_string.h"
-//@@ TAO_CONNECTOR_SPL_INCLUDE_ADD_HOOK
-
#if !defined (__ACE_INLINE__)
# include "tao/Transport_Connector.inl"
#endif /* __ACE_INLINE__ */
@@ -67,13 +65,13 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// Connector
TAO_Connector::TAO_Connector (CORBA::ULong tag)
- : active_connect_strategy_ (0),
+ : active_connect_strategy_ (nullptr),
tag_ (tag),
- orb_core_ (0)
+ orb_core_ (nullptr)
{
}
-TAO_Connector::~TAO_Connector (void)
+TAO_Connector::~TAO_Connector ()
{
delete this->active_connect_strategy_;
}
@@ -82,14 +80,14 @@ TAO_Profile *
TAO_Connector::corbaloc_scan (const char *str, size_t &len)
{
if (this->check_prefix (str) != 0)
- return 0;
+ return nullptr;
const char *comma_pos = ACE_OS::strchr (str,',');
const char *slash_pos = ACE_OS::strchr (str,'/');
- if (comma_pos == 0 && slash_pos == 0)
+ if (comma_pos == nullptr && slash_pos == nullptr)
{
len = ACE_OS::strlen (str);
}
- else if (comma_pos == 0 || comma_pos > slash_pos)
+ else if (comma_pos == nullptr || comma_pos > slash_pos)
len = (slash_pos - str);
else len = comma_pos - str;
return this->make_profile();
@@ -238,8 +236,7 @@ TAO_Connector::make_mprofile (const char *string, TAO_MProfile &mprofile)
// Initialize a Profile using the individual endpoint
// string.
// @@ Not exception safe! We need a TAO_Profile_var!
- profile->parse_string (endpoint.c_str ()
- );
+ profile->parse_string (endpoint.c_str ());
// Give up ownership of the profile.
if (mprofile.give_profile (profile) == -1)
@@ -266,7 +263,7 @@ TAO_Connector::make_mprofile (const char *string, TAO_MProfile &mprofile)
}
int
-TAO_Connector::supports_parallel_connects(void) const
+TAO_Connector::supports_parallel_connects() const
{
return 0; // by default, we don't support parallel connection attempts;
}
@@ -276,7 +273,7 @@ TAO_Connector::make_parallel_connection (TAO::Profile_Transport_Resolver *,
TAO_Transport_Descriptor_Interface &,
ACE_Time_Value *)
{
- return 0;
+ return nullptr;
}
@@ -288,14 +285,14 @@ TAO_Connector::parallel_connect (TAO::Profile_Transport_Resolver *r,
if (this->supports_parallel_connects() == 0)
{
errno = ENOTSUP;
- return 0;
+ return nullptr;
}
errno = 0; // need to clear errno to ensure a stale enotsup is not set
- if (desc == 0)
- return 0;
+ if (desc == nullptr)
+ return nullptr;
TAO_Endpoint *root_ep = desc->endpoint();
- TAO_Transport *base_transport = 0;
+ TAO_Transport *base_transport = nullptr;
TAO::Transport_Cache_Manager &tcm =
this->orb_core ()->lane_resources ().transport_cache ();
@@ -303,8 +300,8 @@ TAO_Connector::parallel_connect (TAO::Profile_Transport_Resolver *r,
// Iterate through the endpoints. Since find_transport takes a
// Transport Descriptor rather than an endpoint, we must create a
// local TDI for each endpoint. The first one found will be used.
- for (TAO_Endpoint *ep = root_ep->next_filtered (this->orb_core(),0);
- ep != 0;
+ for (TAO_Endpoint *ep = root_ep->next_filtered (this->orb_core(),nullptr);
+ ep != nullptr;
ep = ep->next_filtered(this->orb_core(),root_ep))
{
TAO_Base_Transport_Property desc2(ep,0);
@@ -332,13 +329,13 @@ TAO_Connector::parallel_connect (TAO::Profile_Transport_Resolver *r,
// when one succeeds the rest are cancelled or closed.
unsigned int endpoint_count = 0;
- for (TAO_Endpoint *ep = root_ep->next_filtered (this->orb_core(),0);
- ep != 0;
+ for (TAO_Endpoint *ep = root_ep->next_filtered (this->orb_core(),nullptr);
+ ep != nullptr;
ep = ep->next_filtered(this->orb_core(),root_ep))
if (this->set_validate_endpoint (ep) == 0)
++endpoint_count;
if (endpoint_count == 0)
- return 0;
+ return nullptr;
return this->make_parallel_connection (r,*desc,timeout);
}
@@ -407,7 +404,7 @@ TAO_Connector::wait_for_transport (TAO::Profile_Transport_Resolver *r,
// connection, the wait() call will block forever (or until the ORB
// thread leaves the reactor, which may not happen).
int result = 0;
- if (timeout == 0 && !r->blocked_connect ())
+ if (timeout == nullptr && !r->blocked_connect ())
{
ACE_Time_Value tv (0, 500);
result = this->active_connect_strategy_->wait (transport, &tv);
@@ -491,7 +488,7 @@ TAO_Connector::connect (TAO::Profile_Transport_Resolver *r,
{
// Find a connection in the cache
// If transport found, reference count is incremented on assignment
- TAO_Transport *base_transport = 0;
+ TAO_Transport *base_transport = nullptr;
size_t busy_count = 0;
TAO::Transport_Cache_Manager::Find_Result found =
tcm.find_transport (desc,
@@ -570,7 +567,7 @@ TAO_Connector::connect (TAO::Profile_Transport_Resolver *r,
"TAO (%P|%t) - Transport_Connector::connect,"
" wait for completion failed\n"));
}
- return 0;
+ return nullptr;
}
if (base_transport->is_connected () &&
@@ -585,7 +582,7 @@ TAO_Connector::connect (TAO::Profile_Transport_Resolver *r,
"in the reactor.\n",
base_transport->id ()));
}
- return 0;
+ return nullptr;
}
tg.clear ();
@@ -614,7 +611,7 @@ TAO_Connector::connect (TAO::Profile_Transport_Resolver *r,
if (!base_transport->register_if_necessary ())
{
base_transport->remove_reference ();
- return 0;
+ return nullptr;
}
}
@@ -641,9 +638,9 @@ TAO_Connector::connect (TAO::Profile_Transport_Resolver *r,
}
else
{
- if (desc == 0 ||
+ if (desc == nullptr ||
(this->set_validate_endpoint (desc->endpoint ()) == -1))
- return 0;
+ return nullptr;
// @todo: This is not the right place for this! (bugzilla 3023)
// Purge connections (if necessary)
@@ -657,13 +654,13 @@ TAO_Connector::connect (TAO::Profile_Transport_Resolver *r,
{
// we aren't going to use the transport returned from the cache
// (if any)
- if (base_transport != 0)
+ if (base_transport != nullptr)
{
base_transport->remove_reference ();
}
base_transport = this->make_connection (r, *desc, timeout);
- if (base_transport == 0)
+ if (base_transport == nullptr)
{
if (TAO_debug_level > 4)
{
@@ -671,7 +668,7 @@ TAO_Connector::connect (TAO::Profile_Transport_Resolver *r,
ACE_TEXT ("TAO (%P|%t) - Transport_Connector::")
ACE_TEXT ("connect, make_connection failed\n")));
}
- return 0;
+ return nullptr;
}
if (TAO_debug_level > 4)
@@ -817,7 +814,7 @@ TAO_Connector::wait_for_connection_completion (
{
if (errno == ETIME)
{
- if (timeout == 0)
+ if (timeout == nullptr)
{
// There was an error during connecting and the errno was
// ETIME. We didn't pass in a timeout, so there's
@@ -876,7 +873,7 @@ TAO_Connector::wait_for_connection_completion (
// Set transport to zero, it is not usable, and the reference
// count we added above was decremented by the base connector
// handling the connection failure.
- transport = 0;
+ transport = nullptr;
return false;
}
// Connection not ready yet but we can use this transport, if
@@ -929,7 +926,7 @@ TAO_Connector::wait_for_connection_completion (
if (r->blocked_connect ())
{
result = this->active_connect_strategy_->wait (mev, timeout);
- the_winner = 0;
+ the_winner = nullptr;
}
else
{
@@ -966,7 +963,7 @@ TAO_Connector::wait_for_connection_completion (
this->cleanup_pending (the_winner, transport, count);
// In case of errors.
- if (the_winner == 0)
+ if (the_winner == nullptr)
{
// Report that making the connection failed, don't print errno
// because we touched the reactor and errno could be changed
@@ -998,7 +995,7 @@ TAO_Connector::wait_for_connection_completion (
// Forget the return value. We are busted anyway. Try our best
// here.
(void) this->cancel_svc_handler (the_winner->connection_handler ());
- the_winner = 0;
+ the_winner = nullptr;
return false;
}
@@ -1009,16 +1006,16 @@ TAO_Connector::wait_for_connection_completion (
}
int
-TAO_Connector::create_connect_strategy (void)
+TAO_Connector::create_connect_strategy ()
{
- if (this->active_connect_strategy_ == 0)
+ if (this->active_connect_strategy_ == nullptr)
{
this->active_connect_strategy_ =
this->orb_core_->client_factory ()->create_connect_strategy (
this->orb_core_);
}
- if (this->active_connect_strategy_ == 0)
+ if (this->active_connect_strategy_ == nullptr)
{
return -1;
}
@@ -1029,7 +1026,7 @@ TAO_Connector::create_connect_strategy (void)
bool
TAO_Connector::new_connection_is_ok (size_t busy_count)
{
- if (this->orb_core_ == 0)
+ if (this->orb_core_ == nullptr)
return true;
unsigned int mux_limit = this->orb_core_->resource_factory ()
@@ -1091,6 +1088,4 @@ TAO_Connector::check_connection_closure (
return result;
}
-//@@ TAO_CONNECTOR_SPL_METHODS_ADD_HOOK
-
TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Transport_Connector.h b/TAO/tao/Transport_Connector.h
index 292f451b3b7..b8aa3702d0e 100644
--- a/TAO/tao/Transport_Connector.h
+++ b/TAO/tao/Transport_Connector.h
@@ -45,12 +45,6 @@ namespace TAO
class Profile_Transport_Resolver;
}
-/*
- * Hook to add includes and forward declaration
- * to the Connector class.
- */
-//@@ TAO_CONNECTOR_SPL_INCLUDE_FORWARD_DECL_ADD_HOOK
-
/**
* @class TAO_Connector
*
@@ -123,8 +117,6 @@ public:
/// Return the object key delimiter to use or expect.
virtual char object_key_delimiter (void) const = 0;
- //@@ TAO_CONNECTOR_SPL_PUBLIC_METHODS_ADD_HOOK
-
protected:
/// A flag indicating the actual connector supports parallel connection
/// attempts. The base implementation always returns 0. Override to return
@@ -216,23 +208,17 @@ protected:
TAO_ORB_Core *orb_core (void);
protected:
-
/// The (a)synch connect strategy
TAO_Connect_Strategy *active_connect_strategy_;
private:
-
/// IOP protocol tag.
CORBA::ULong const tag_;
/// Pointer to our ORB core
TAO_ORB_Core *orb_core_;
-
- //@@ TAO_CONNECTOR_SPL_PRIVATE_DATA_ADD_HOOK
};
-//@@ TAO_CONNECTOR_SPL_EXTERN_ADD_HOOK
-
TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
diff --git a/TAO/tao/Transport_Descriptor_Interface.cpp b/TAO/tao/Transport_Descriptor_Interface.cpp
index fe038e33c63..7cfe705188f 100644
--- a/TAO/tao/Transport_Descriptor_Interface.cpp
+++ b/TAO/tao/Transport_Descriptor_Interface.cpp
@@ -8,7 +8,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Transport_Descriptor_Interface::~TAO_Transport_Descriptor_Interface (void)
+TAO_Transport_Descriptor_Interface::~TAO_Transport_Descriptor_Interface ()
{
if (this->release_)
{
@@ -23,7 +23,7 @@ TAO_Transport_Descriptor_Interface::reset_endpoint (TAO_Endpoint *ep)
if (this->release_)
return false;
- for (TAO_Endpoint *ptr = this->endpoint_; ptr != 0; ptr = ptr->next())
+ for (TAO_Endpoint *ptr = this->endpoint_; ptr != nullptr; ptr = ptr->next())
if (ptr == ep)
{
diff --git a/TAO/tao/Transport_Mux_Strategy.cpp b/TAO/tao/Transport_Mux_Strategy.cpp
index f2c3d15618a..47c6156fede 100644
--- a/TAO/tao/Transport_Mux_Strategy.cpp
+++ b/TAO/tao/Transport_Mux_Strategy.cpp
@@ -8,7 +8,7 @@ TAO_Transport_Mux_Strategy::TAO_Transport_Mux_Strategy (
{
}
-TAO_Transport_Mux_Strategy::~TAO_Transport_Mux_Strategy (void)
+TAO_Transport_Mux_Strategy::~TAO_Transport_Mux_Strategy ()
{
}
diff --git a/TAO/tao/Transport_Mux_Strategy.h b/TAO/tao/Transport_Mux_Strategy.h
index 45f76ce4c43..301f9bc496c 100644
--- a/TAO/tao/Transport_Mux_Strategy.h
+++ b/TAO/tao/Transport_Mux_Strategy.h
@@ -36,17 +36,16 @@ class TAO_Pluggable_Reply_Params;
*/
class TAO_Export TAO_Transport_Mux_Strategy
{
-
public:
/// Base class constructor.
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.
@@ -74,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.cpp b/TAO/tao/Transport_Queueing_Strategies.cpp
index 6343041843d..c6a41562673 100644
--- a/TAO/tao/Transport_Queueing_Strategies.cpp
+++ b/TAO/tao/Transport_Queueing_Strategies.cpp
@@ -10,7 +10,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
- Transport_Queueing_Strategy::~Transport_Queueing_Strategy (void)
+ Transport_Queueing_Strategy::~Transport_Queueing_Strategy ()
{
}
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.cpp b/TAO/tao/Transport_Selection_Guard.cpp
index a3d12a0544a..cd79ab92d66 100644
--- a/TAO/tao/Transport_Selection_Guard.cpp
+++ b/TAO/tao/Transport_Selection_Guard.cpp
@@ -44,13 +44,13 @@ namespace TAO
}
/// Dtor
- Transport_Selection_Guard::~Transport_Selection_Guard (void)
+ Transport_Selection_Guard::~Transport_Selection_Guard ()
{
#if TAO_HAS_TRANSPORT_CURRENT == 1
TAO_TSS_Resources::instance ()->tsg_ = prev_;
- this->prev_ = 0;
+ this->prev_ = nullptr;
#endif /* TAO_HAS_TRANSPORT_CURRENT == 1 */
- this->curr_ = 0;
+ this->curr_ = nullptr;
}
bool
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/TypeCodeFactory_i.cpp b/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp
index c1e11a1484c..ee4e1641e7e 100644
--- a/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp
+++ b/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp
@@ -251,8 +251,7 @@ TAO_TypeCodeFactory_i::create_union_tc (
CORBA::TypeCode_var const tmp = member.label.type ();
CORBA::Boolean const equiv =
- discriminator_type->equivalent (tmp.in ()
- );
+ discriminator_type->equivalent (tmp.in ());
if (!equiv)
{
@@ -266,8 +265,7 @@ TAO_TypeCodeFactory_i::create_union_tc (
CORBA::Boolean const unique_labels =
this->unique_label_values (members,
discriminator_type,
- raw_default_index
- );
+ raw_default_index);
if (!unique_labels)
{
@@ -746,8 +744,7 @@ TAO_TypeCodeFactory_i::create_value_tc (
type_modifier,
concrete_base,
members,
- CORBA::tk_value
- );
+ CORBA::tk_value);
}
CORBA::TypeCode_ptr
@@ -799,27 +796,23 @@ TAO_TypeCodeFactory_i::create_abstract_interface_tc (
{
return this->create_tc_common (id,
name,
- CORBA::tk_abstract_interface
- );
+ CORBA::tk_abstract_interface);
}
CORBA::TypeCode_ptr
TAO_TypeCodeFactory_i::create_local_interface_tc (
const char *id,
- const char *name
- )
+ const char *name)
{
return this->create_tc_common (id,
name,
- CORBA::tk_local_interface
- );
+ CORBA::tk_local_interface);
}
CORBA::TypeCode_ptr
TAO_TypeCodeFactory_i::create_component_tc (
const char *id,
- const char *name
- )
+ const char *name)
{
return this->create_tc_common (id,
name,
@@ -1216,8 +1209,7 @@ TAO_TypeCodeFactory_i::struct_except_tc_common (
CORBA::TypeCode_ptr const member_tc = members[index].type.in ();
CORBA::Boolean const valid_member =
- this->valid_content_type (member_tc
- );
+ this->valid_content_type (member_tc);
if (!valid_member)
{
@@ -1534,12 +1526,10 @@ CORBA::Boolean
TAO_TypeCodeFactory_i::unique_label_values (
const CORBA::UnionMemberSeq &members,
CORBA::TypeCode_ptr disc_tc,
- CORBA::ULong default_index_slot
- )
+ CORBA::ULong default_index_slot)
{
- CORBA::TCKind disc_kind = disc_tc->kind ();
-
- CORBA::ULong length = members.length ();
+ CORBA::TCKind const disc_kind = disc_tc->kind ();
+ CORBA::ULong const length = members.length ();
// We have already checked for valid discriminator type
// and valid label types, so we won't check for any of that here.
@@ -1689,8 +1679,7 @@ TAO_TypeCodeFactory_i::unique_label_values (
}
CORBA::Boolean
-TAO_TypeCodeFactory_i::valid_disc_type (CORBA::TypeCode_ptr tc
- )
+TAO_TypeCodeFactory_i::valid_disc_type (CORBA::TypeCode_ptr tc)
{
CORBA::TCKind const kind = tc->kind ();
diff --git a/TAO/tao/TypeCodeFactory_Adapter.cpp b/TAO/tao/TypeCodeFactory_Adapter.cpp
index ed855ffc906..cb97ddae79e 100644
--- a/TAO/tao/TypeCodeFactory_Adapter.cpp
+++ b/TAO/tao/TypeCodeFactory_Adapter.cpp
@@ -2,7 +2,7 @@
#include "ace/Dynamic_Service.h"
-TAO_TypeCodeFactory_Adapter::~TAO_TypeCodeFactory_Adapter (void)
+TAO_TypeCodeFactory_Adapter::~TAO_TypeCodeFactory_Adapter ()
{
}
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_Basic_String_Sequence_T.h b/TAO/tao/Unbounded_Basic_String_Sequence_T.h
index 3dcac56a8b8..c6839076d9d 100644
--- a/TAO/tao/Unbounded_Basic_String_Sequence_T.h
+++ b/TAO/tao/Unbounded_Basic_String_Sequence_T.h
@@ -12,7 +12,6 @@
#include "tao/Generic_Sequence_T.h"
#include "tao/String_Sequence_Element_T.h"
#include "tao/String_Const_Sequence_Element_T.h"
-#include "tao/MM_Sequence_Iterator_T.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
@@ -112,117 +111,9 @@ public:
implementation_type::freebuf(buffer);
}
-
-#if defined TAO_HAS_SEQUENCE_ITERATORS && TAO_HAS_SEQUENCE_ITERATORS == 1
-
- ///
- /// Additions to support iterator semantics for TAO unbounded basic
- /// string sequences.
- ///
-
- // = Traits and factory methods that create iterators.
- typedef MM_Sequence_Iterator<unbounded_basic_string_sequence<charT> > iterator;
- typedef Const_MM_Sequence_Iterator<unbounded_basic_string_sequence<charT> > const_iterator;
- typedef MM_Sequence_Reverse_Iterator<unbounded_basic_string_sequence<charT> > reverse_iterator;
- typedef Const_MM_Sequence_Reverse_Iterator<unbounded_basic_string_sequence<charT> > const_reverse_iterator;
-
- /// Get an iterator that points to the beginning of the sequence.
- inline iterator begin (void)
- {
- return iterator (&this->impl_);
- }
-
- /// Get a const iterator that points to the beginning of the sequence.
- inline const_iterator begin (void) const
- {
- return const_iterator (&this->impl_);
- }
-
- /// Get an iterator that points to the end of the sequence.
- inline iterator end (void)
- {
- return iterator (&this->impl_,
- this->impl_.length ());
- }
-
- /// Get a const iterator that points to the end of the sequence.
- inline const_iterator end (void) const
- {
- return const_iterator (&this->impl_,
- this->impl_.length ());
- }
-
- /// Get a reverse iterator that points to the end of the sequence.
- inline reverse_iterator rbegin (void)
- {
- return reverse_iterator (&this->impl_,
- this->impl_.length () - 1);
- }
-
- /// Get a const reverse iterator that points to the end of the sequence.
- inline const_reverse_iterator rbegin (void) const
- {
- return const_reverse_iterator (&this->impl_,
- this->impl_.length () - 1);
- }
-
- /// Get a reverse iterator that points to one before the beginning
- /// of the sequence.
- inline reverse_iterator rend (void)
- {
- return reverse_iterator (&this->impl_,
- -1);
- }
-
- /// Get a const reverse iterator that points to one before the
- /// beginning of the sequence.
- inline const_reverse_iterator rend (void) const
- {
- return const_reverse_iterator (&this->impl_,
- -1);
- }
-
-#endif /* TAO_HAS_SEQUENCE_ITERATORS==1 */
-
private:
implementation_type impl_;
};
-
-#if defined TAO_HAS_SEQUENCE_ITERATORS && TAO_HAS_SEQUENCE_ITERATORS == 1
-/*
-// Below is an attempt at template specialization that would
-// not compile. It might be useful later.
-// Generic_Sequence_Iterator template specializations for
-// Unbounded_Basic_String_Sequence. These are needed since
-// Unbounded_Basic_String_Sequence does some memory management with
-// the strings. Without these specialization we leak memory.
-
-/// Dereference operator returns a reference to the item contained
-/// at the current position. This dereference implies string
-/// memory management.
-// template<typename charT>
- unbounded_basic_string_sequence<char>::element_type&
- details::Generic_Sequence_Iterator<unbounded_basic_string_sequence<char>, unbounded_basic_string_sequence::allocation_traits, unbounded_basic_string_sequence::element_traits >::operator* (void)
- {
- // Access the underlying element in the sequence.
- //return element_type (impl_[i], release());
- return element_type ((*(this->sequence_))[this->pos_],
- this->sequence_->release());
- }
-
- /// Returns a const reference to the item contained at the current position
- // template<typename charT>
- unbounded_basic_string_sequence<char>::const_element_type&
- details::Generic_Sequence_Iterator<unbounded_basic_string_sequence<char> >::operator* (void) const
- {
- // Access the underlying element in the sequence.
- //return const_element_type (impl_[i], release());
- return const_element_type ((*(this->sequence_))[this->pos_],
- this->sequence_->release ());
- }
-*/
-#endif /* TAO_HAS_SEQUENCE_ITERATORS==1 */
-
} // namespace TAO
TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Unbounded_Object_Reference_Sequence_T.h b/TAO/tao/Unbounded_Object_Reference_Sequence_T.h
index 1f63609def6..cbbb8a59336 100644
--- a/TAO/tao/Unbounded_Object_Reference_Sequence_T.h
+++ b/TAO/tao/Unbounded_Object_Reference_Sequence_T.h
@@ -12,7 +12,6 @@
#include "Generic_Sequence_T.h"
#include "Object_Reference_Sequence_Element_T.h"
#include "Object_Reference_Const_Sequence_Element_T.h"
-#include "tao/MM_Sequence_Iterator_T.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
@@ -107,73 +106,6 @@ public:
implementation_type::freebuf(buffer);
}
-#if defined TAO_HAS_SEQUENCE_ITERATORS && TAO_HAS_SEQUENCE_ITERATORS == 1
- /// Additions to support iterator semantics for TAO unbounded object reference
- /// sequences.
-
- // = Traits and factory methods that create iterators.
- typedef MM_Sequence_Iterator<unbounded_object_reference_sequence<object_t, object_t_var> > iterator;
- typedef Const_MM_Sequence_Iterator<unbounded_object_reference_sequence<object_t, object_t_var> > const_iterator;
- typedef MM_Sequence_Reverse_Iterator<unbounded_object_reference_sequence<object_t, object_t_var> > reverse_iterator;
- typedef Const_MM_Sequence_Reverse_Iterator<unbounded_object_reference_sequence<object_t, object_t_var> > const_reverse_iterator;
-
- /// Get an iterator that points to the beginning of the sequence.
- iterator begin (void)
- {
- return iterator (&this->impl_);
- }
-
- /// Get a const iterator that points to the beginning of the sequence.
- const_iterator begin (void) const
- {
- return const_iterator (&this->impl_);
- }
-
- /// Get an iterator that points to the end of the sequence.
- iterator end (void)
- {
- return iterator (&this->impl_,
- this->impl_.length ());
- }
-
- /// Get a const iterator that points to the end of the sequence.
- const_iterator end (void) const
- {
- return const_iterator (&this->impl_,
- this->impl_.length ());
- }
-
- /// Get a reverse iterator that points to the end of the sequence.
- reverse_iterator rbegin (void)
- {
- return reverse_iterator (&this->impl_,
- this->impl_.length () - 1);
- }
-
- /// Get a const reverse iterator that points to the end of the sequence.
- const_reverse_iterator rbegin (void) const
- {
- return const_reverse_iterator (&this->impl_,
- this->impl_.length () - 1);
- }
-
- /// Get a reverse iterator that points to one before the beginning
- /// of the sequence.
- reverse_iterator rend (void)
- {
- return reverse_iterator (&this->impl_,
- -1);
- }
-
- /// Get a const reverse iterator that points to one before the
- /// beginning of the sequence.
- const_reverse_iterator rend (void) const
- {
- return const_reverse_iterator (&this->impl_,
- -1);
- }
-#endif /* TAO_HAS_SEQUENCE_ITERATORS==1 */
-
private:
implementation_type impl_;
};
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/Unbounded_Value_Sequence_T.h b/TAO/tao/Unbounded_Value_Sequence_T.h
index c3b5a53e60c..a82aa26e6c4 100644
--- a/TAO/tao/Unbounded_Value_Sequence_T.h
+++ b/TAO/tao/Unbounded_Value_Sequence_T.h
@@ -88,71 +88,6 @@ public:
implementation_type::freebuf(buffer);
}
-#if defined TAO_HAS_SEQUENCE_ITERATORS && TAO_HAS_SEQUENCE_ITERATORS == 1
-
- ///
- /// Additions to support iterator semantics for TAO unbounded value
- /// sequences.
- ///
-
- // = Traits and factory methods that create iterators.
- typedef details::Generic_Sequence_Iterator<details::generic_sequence<value_type, allocation_traits, element_traits> > iterator;
- typedef details::Const_Generic_Sequence_Iterator<details::generic_sequence<value_type, allocation_traits, element_traits> > const_iterator;
- typedef details::Generic_Sequence_Reverse_Iterator<details::generic_sequence<value_type, allocation_traits, element_traits> > reverse_iterator;
- typedef details::Const_Generic_Sequence_Reverse_Iterator<details::generic_sequence<value_type, allocation_traits, element_traits> > const_reverse_iterator;
-
- // Get an iterator that points to the beginning of the sequence.
- iterator begin (void)
- {
- return impl_.begin ();
- }
-
- // Get a const iterator that points to the beginning of the sequence.
- const_iterator begin (void) const
- {
- return impl_.begin ();
- }
-
- // Get an iterator that points to the end of the sequence.
- iterator end (void)
- {
- return impl_.end ();
- }
-
- // Get a const iterator that points to the end of the sequence.
- const_iterator end (void) const
- {
- return impl_.end ();
- }
-
- // Get a reverse iterator that points to the end of the sequence.
- reverse_iterator rbegin (void)
- {
- return impl_.rbegin ();
- }
-
- // Get a const reverse iterator that points to the end of the sequence.
- const_reverse_iterator rbegin (void) const
- {
- return impl_.rbegin ();
- }
-
- // Get a reverse iterator that points to one before the beginning
- // of the sequence.
- reverse_iterator rend (void)
- {
- return impl_.rend ();
- }
-
- // Get a const reverse iterator that points to one before the
- // beginning of the sequence.
- const_reverse_iterator rend (void) const
- {
- return impl_.rend ();
- }
-
-#endif /* TAO_HAS_SEQUENCE_ITERATORS==1 */
-
private:
implementation_type impl_;
};
diff --git a/TAO/tao/UserException.cpp b/TAO/tao/UserException.cpp
index 34bf89289d5..590916c2753 100644
--- a/TAO/tao/UserException.cpp
+++ b/TAO/tao/UserException.cpp
@@ -10,7 +10,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// Virtual. Do not inline.
-CORBA::UserException::~UserException (void)
+CORBA::UserException::~UserException ()
{
}
@@ -23,13 +23,13 @@ CORBA::UserException::operator= (CORBA::UserException const & rhs)
// Virtual. Do not inline.
CORBA::TypeCode_ptr
-CORBA::UserException::_tao_type (void) const
+CORBA::UserException::_tao_type () const
{
- return 0;
+ return nullptr;
}
ACE_CString
-CORBA::UserException::_info (void) const
+CORBA::UserException::_info () const
{
// @@ we can use the exception's typecode to dump all the data held
// within it ...
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/Bounded_Valuetype_Sequence_T.h b/TAO/tao/Valuetype/Bounded_Valuetype_Sequence_T.h
index 4f8556a5630..4ec02bb7989 100644
--- a/TAO/tao/Valuetype/Bounded_Valuetype_Sequence_T.h
+++ b/TAO/tao/Valuetype/Bounded_Valuetype_Sequence_T.h
@@ -11,7 +11,6 @@
#include "Valuetype_Traits_T.h"
#include "tao/Generic_Sequence_T.h"
#include "Valuetype_Sequence_Element_T.h"
-#include "tao/MM_Sequence_Iterator_T.h"
#include "tao/Bounded_Reference_Allocation_Traits_T.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
@@ -98,78 +97,6 @@ public:
implementation_type::freebuf(buffer);
}
-#if defined TAO_HAS_SEQUENCE_ITERATORS && TAO_HAS_SEQUENCE_ITERATORS == 1
-
- ///
- /// Additions to support iterator semantics for TAO bounded value type
- /// sequences.
- ///
-
- // = Traits and factory methods that create iterators.
- typedef MM_Sequence_Iterator<bounded_valuetype_sequence<object_t, object_t_var, MAX> > iterator;
- typedef Const_MM_Sequence_Iterator<bounded_valuetype_sequence<object_t, object_t_var, MAX> > const_iterator;
- typedef MM_Sequence_Reverse_Iterator<bounded_valuetype_sequence<object_t, object_t_var, MAX> > reverse_iterator;
- typedef Const_MM_Sequence_Reverse_Iterator<bounded_valuetype_sequence<object_t, object_t_var, MAX> > const_reverse_iterator;
-
- // Get an iterator that points to the beginning of the sequence.
- inline iterator begin (void)
- {
- return iterator (&this->impl_);
- }
-
- // Get a const iterator that points to the beginning of the sequence.
- inline const_iterator begin (void) const
- {
- return const_iterator (&this->impl_);
- }
-
- // Get an iterator that points to the end of the sequence.
- inline iterator end (void)
- {
- return iterator (&this->impl_,
- this->impl_.length ());
- }
-
- // Get a const iterator that points to the end of the sequence.
- inline const_iterator end (void) const
- {
- return const_iterator (&this->impl_,
- this->impl_.length ());
- }
-
- // Get a reverse iterator that points to the end of the sequence.
- inline reverse_iterator rbegin (void)
- {
- return reverse_iterator (&this->impl_,
- this->impl_.length () - 1);
- }
-
- // Get a const reverse iterator that points to the end of the sequence.
- inline const_reverse_iterator rbegin (void) const
- {
- return const_reverse_iterator (&this->impl_,
- this->impl_.length () - 1);
- }
-
- // Get a reverse iterator that points to one before the beginning
- // of the sequence.
- inline reverse_iterator rend (void)
- {
- return reverse_iterator (&this->impl_,
- -1);
- }
-
- // Get a const reverse iterator that points to one before the
- // beginning of the sequence.
- inline const_reverse_iterator rend (void) const
- {
- return const_reverse_iterator (&this->impl_,
- -1);
- }
-
-#endif /* TAO_HAS_SEQUENCE_ITERATORS==1 */
-
-
private:
implementation_type impl_;
};
diff --git a/TAO/tao/Valuetype/Unbounded_Valuetype_Sequence_T.h b/TAO/tao/Valuetype/Unbounded_Valuetype_Sequence_T.h
index 2055ec0b1d7..72a64f3a308 100644
--- a/TAO/tao/Valuetype/Unbounded_Valuetype_Sequence_T.h
+++ b/TAO/tao/Valuetype/Unbounded_Valuetype_Sequence_T.h
@@ -11,7 +11,6 @@
#include "Valuetype_Traits_T.h"
#include "tao/Generic_Sequence_T.h"
#include "Valuetype_Sequence_Element_T.h"
-#include "tao/MM_Sequence_Iterator_T.h"
#include "tao/Unbounded_Reference_Allocation_Traits_T.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
@@ -97,78 +96,6 @@ public:
implementation_type::freebuf(buffer);
}
-#if defined TAO_HAS_SEQUENCE_ITERATORS && TAO_HAS_SEQUENCE_ITERATORS == 1
-
- ///
- /// Additions to support iterator semantics for TAO unbounded value type
- /// sequences.
- ///
-
- // = Traits and factory methods that create iterators.
- typedef MM_Sequence_Iterator<unbounded_valuetype_sequence<object_t, object_t_var> > iterator;
- typedef Const_MM_Sequence_Iterator<unbounded_valuetype_sequence<object_t, object_t_var> > const_iterator;
- typedef MM_Sequence_Reverse_Iterator<unbounded_valuetype_sequence<object_t, object_t_var> > reverse_iterator;
- typedef Const_MM_Sequence_Reverse_Iterator<unbounded_valuetype_sequence<object_t, object_t_var> > const_reverse_iterator;
-
- // Get an iterator that points to the beginning of the sequence.
- inline iterator begin (void)
- {
- return iterator (&this->impl_);
- }
-
- // Get a const iterator that points to the beginning of the sequence.
- inline const_iterator begin (void) const
- {
- return const_iterator (&this->impl_);
- }
-
- // Get an iterator that points to the end of the sequence.
- inline iterator end (void)
- {
- return iterator (&this->impl_,
- this->impl_.length ());
- }
-
- // Get a const iterator that points to the end of the sequence.
- inline const_iterator end (void) const
- {
- return const_iterator (&this->impl_,
- this->impl_.length ());
- }
-
- // Get a reverse iterator that points to the end of the sequence.
- inline reverse_iterator rbegin (void)
- {
- return reverse_iterator (&this->impl_,
- this->impl_.length () - 1);
- }
-
- // Get a const reverse iterator that points to the end of the sequence.
- inline const_reverse_iterator rbegin (void) const
- {
- return const_reverse_iterator (&this->impl_,
- this->impl_.length () - 1);
- }
-
- // Get a reverse iterator that points to one before the beginning
- // of the sequence.
- inline reverse_iterator rend (void)
- {
- return reverse_iterator (&this->impl_,
- -1);
- }
-
- // Get a const reverse iterator that points to one before the
- // beginning of the sequence.
- inline const_reverse_iterator rend (void) const
- {
- return const_reverse_iterator (&this->impl_,
- -1);
- }
-
-#endif /* TAO_HAS_SEQUENCE_ITERATORS==1 */
-
-
private:
implementation_type impl_;
};
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.cpp b/TAO/tao/Valuetype_Adapter.cpp
index 9dec3450404..944d6ad3668 100644
--- a/TAO/tao/Valuetype_Adapter.cpp
+++ b/TAO/tao/Valuetype_Adapter.cpp
@@ -2,7 +2,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Valuetype_Adapter::~TAO_Valuetype_Adapter (void)
+TAO_Valuetype_Adapter::~TAO_Valuetype_Adapter ()
{
}
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.cpp b/TAO/tao/Valuetype_Adapter_Factory.cpp
index e6f12a7d34c..eea713b06ad 100644
--- a/TAO/tao/Valuetype_Adapter_Factory.cpp
+++ b/TAO/tao/Valuetype_Adapter_Factory.cpp
@@ -2,7 +2,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Valuetype_Adapter_Factory::~TAO_Valuetype_Adapter_Factory (void)
+TAO_Valuetype_Adapter_Factory::~TAO_Valuetype_Adapter_Factory ()
{
}
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/Version.h b/TAO/tao/Version.h
index e3aa3a5cd76..10655235dc0 100644
--- a/TAO/tao/Version.h
+++ b/TAO/tao/Version.h
@@ -4,8 +4,8 @@
#define TAO_MAJOR_VERSION 2
#define TAO_MINOR_VERSION 5
-#define TAO_MICRO_VERSION 11
-#define TAO_BETA_VERSION 11
-#define TAO_VERSION "2.5.11"
-#define TAO_VERSION_CODE 132363
+#define TAO_MICRO_VERSION 12
+#define TAO_BETA_VERSION 12
+#define TAO_VERSION "2.5.12"
+#define TAO_VERSION_CODE 132364
#define TAO_MAKE_VERSION_CODE(a,b,c) (((a) << 16) + ((b) << 8) + (c))
diff --git a/TAO/tao/Wait_On_LF_No_Upcall.cpp b/TAO/tao/Wait_On_LF_No_Upcall.cpp
index 16405fa3774..c6d79a32ff4 100644
--- a/TAO/tao/Wait_On_LF_No_Upcall.cpp
+++ b/TAO/tao/Wait_On_LF_No_Upcall.cpp
@@ -11,7 +11,7 @@ namespace TAO
{
}
- Wait_On_LF_No_Upcall::~Wait_On_LF_No_Upcall (void)
+ Wait_On_LF_No_Upcall::~Wait_On_LF_No_Upcall ()
{
}
@@ -25,7 +25,7 @@ namespace TAO
}
bool
- Wait_On_LF_No_Upcall::can_process_upcalls (void) const
+ Wait_On_LF_No_Upcall::can_process_upcalls () const
{
if ((this->transport_->opened_as () == TAO::TAO_SERVER_ROLE) &&
(this->transport_->bidirectional_flag () == -1))
diff --git a/TAO/tao/Wait_On_Leader_Follower.cpp b/TAO/tao/Wait_On_Leader_Follower.cpp
index de6873224f4..4491baac65e 100644
--- a/TAO/tao/Wait_On_Leader_Follower.cpp
+++ b/TAO/tao/Wait_On_Leader_Follower.cpp
@@ -13,20 +13,12 @@ TAO_Wait_On_Leader_Follower::TAO_Wait_On_Leader_Follower
{
}
-TAO_Wait_On_Leader_Follower::~TAO_Wait_On_Leader_Follower (void)
+TAO_Wait_On_Leader_Follower::~TAO_Wait_On_Leader_Follower ()
{
}
-/*
- * Hook to specialize the wait strategy when the concrete strategy is
- * a simple "lf" strategy. Add all public/protected/private methods
- * within the *COPY* hooks.
- */
-
-//@@ WAIT_STRATEGY_SPL_COPY_HOOK_START
-
int
-TAO_Wait_On_Leader_Follower::register_handler (void)
+TAO_Wait_On_Leader_Follower::register_handler ()
{
if (!this->is_registered_)
{
@@ -37,7 +29,7 @@ TAO_Wait_On_Leader_Follower::register_handler (void)
}
bool
-TAO_Wait_On_Leader_Follower::non_blocking (void) const
+TAO_Wait_On_Leader_Follower::non_blocking () const
{
return true;
}
@@ -52,8 +44,6 @@ TAO_Wait_On_Leader_Follower::sending_request (TAO_ORB_Core *orb_core,
this->transport_->register_handler ();
}
- // Send the request.
-//@@ LF_WAIT_STRATEGY_SPL_SENDING_REQUEST_HOOK
return this->TAO_Wait_Strategy::sending_request (orb_core, msg_semantics);
}
@@ -67,14 +57,9 @@ TAO_Wait_On_Leader_Follower::wait (ACE_Time_Value *max_wait_time,
}
bool
-TAO_Wait_On_Leader_Follower::can_process_upcalls (void) const
+TAO_Wait_On_Leader_Follower::can_process_upcalls () const
{
return true;
}
-//@@ WAIT_STRATEGY_SPL_COPY_HOOK_END
-/*
- * End copy hook.
- */
-
TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Wait_On_Reactor.cpp b/TAO/tao/Wait_On_Reactor.cpp
index 7232bf64838..4e73e0109f9 100644
--- a/TAO/tao/Wait_On_Reactor.cpp
+++ b/TAO/tao/Wait_On_Reactor.cpp
@@ -13,7 +13,7 @@ TAO_Wait_On_Reactor::TAO_Wait_On_Reactor (TAO_Transport *transport)
{
}
-TAO_Wait_On_Reactor::~TAO_Wait_On_Reactor (void)
+TAO_Wait_On_Reactor::~TAO_Wait_On_Reactor ()
{
}
@@ -49,7 +49,7 @@ TAO_Wait_On_Reactor::wait (ACE_Time_Value *max_wait_time,
// Did we timeout? If so, stop running the loop.
if (result == 0
- && max_wait_time != 0
+ && max_wait_time != nullptr
&& *max_wait_time == ACE_Time_Value::zero)
{
break;
@@ -70,7 +70,7 @@ TAO_Wait_On_Reactor::wait (ACE_Time_Value *max_wait_time,
}
// Return an error if there was a problem receiving the reply.
- if (max_wait_time != 0)
+ if (max_wait_time != nullptr)
{
if (rd.successful (leader_follower) && *max_wait_time == ACE_Time_Value::zero)
{
@@ -93,7 +93,7 @@ TAO_Wait_On_Reactor::wait (ACE_Time_Value *max_wait_time,
// Register the handler with the Reactor.
int
-TAO_Wait_On_Reactor::register_handler (void)
+TAO_Wait_On_Reactor::register_handler ()
{
if (!this->is_registered_)
{
@@ -104,13 +104,13 @@ TAO_Wait_On_Reactor::register_handler (void)
}
bool
-TAO_Wait_On_Reactor::non_blocking (void) const
+TAO_Wait_On_Reactor::non_blocking () const
{
return true;
}
bool
-TAO_Wait_On_Reactor::can_process_upcalls (void) const
+TAO_Wait_On_Reactor::can_process_upcalls () const
{
return true;
}
diff --git a/TAO/tao/Wait_On_Read.cpp b/TAO/tao/Wait_On_Read.cpp
index f2cc92134e3..0105e9ed5f4 100644
--- a/TAO/tao/Wait_On_Read.cpp
+++ b/TAO/tao/Wait_On_Read.cpp
@@ -16,18 +16,10 @@ TAO_Wait_On_Read::TAO_Wait_On_Read (TAO_Transport *transport)
}
// Destructor.
-TAO_Wait_On_Read::~TAO_Wait_On_Read (void)
+TAO_Wait_On_Read::~TAO_Wait_On_Read ()
{
}
-/*
- * Hook to specialize the wait strategy when the concrete strategy is
- * a simple "rw" strategy. Add all public/protected/private methods
- * within the *COPY* hooks.
- */
-
-//@@ WAIT_STRATEGY_SPL_COPY_HOOK_START
-
int
TAO_Wait_On_Read::sending_request (TAO_ORB_Core *orb_core,
TAO_Message_Semantics msg_semantics)
@@ -49,7 +41,6 @@ TAO_Wait_On_Read::sending_request (TAO_ORB_Core *orb_core,
}
// Send the request.
-//@@ LF_WAIT_STRATEGY_SPL_SENDING_REQUEST_HOOK
return this->TAO_Wait_Strategy::sending_request (orb_core, msg_semantics);
}
@@ -68,7 +59,6 @@ TAO_Wait_On_Read::finished_request ()
}
}
- //@@ LF_WAIT_STRATEGY_SPL_SENDING_REQUEST_HOOK
this->TAO_Wait_Strategy::finished_request ();
}
@@ -157,26 +147,21 @@ TAO_Wait_On_Read::wait (ACE_Time_Value * max_wait_time,
// No-op.
int
-TAO_Wait_On_Read::register_handler (void)
+TAO_Wait_On_Read::register_handler ()
{
return 0;
}
bool
-TAO_Wait_On_Read::non_blocking (void) const
+TAO_Wait_On_Read::non_blocking () const
{
return false;
}
bool
-TAO_Wait_On_Read::can_process_upcalls (void) const
+TAO_Wait_On_Read::can_process_upcalls () const
{
return true;
}
-//@@ WAIT_STRATEGY_SPL_COPY_HOOK_END
-/*
- * End copy hook.
- */
-
TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Wait_Strategy.cpp b/TAO/tao/Wait_Strategy.cpp
index efb90ca1103..fc13c417789 100644
--- a/TAO/tao/Wait_Strategy.cpp
+++ b/TAO/tao/Wait_Strategy.cpp
@@ -1,7 +1,5 @@
#include "tao/Wait_Strategy.h"
-//@@ WAIT_STRATEGY_SPL_COPY_HOOK_START
-
#if !defined (__ACE_INLINE__)
# include "tao/Wait_Strategy.inl"
#endif /* __ACE_INLINE__ */
@@ -16,7 +14,7 @@ TAO_Wait_Strategy::TAO_Wait_Strategy (TAO_Transport *transport)
}
// Destructor.
-TAO_Wait_Strategy::~TAO_Wait_Strategy (void)
+TAO_Wait_Strategy::~TAO_Wait_Strategy ()
{
}
@@ -26,25 +24,15 @@ TAO_Wait_Strategy::defer_upcall (ACE_Event_Handler*)
return -1;
}
-/*
- * Hook to comment out this method in the lf wait strategy
- */
-//@@ LF_WAIT_STRATEGY_SPL_COMMENT_HOOK_START
int
TAO_Wait_Strategy::sending_request (TAO_ORB_Core *, TAO_Message_Semantics)
{
return 0;
}
-//@@ LF_WAIT_STRATEGY_SPL_COMMENT_HOOK_END
void
TAO_Wait_Strategy::finished_request ()
{
}
-/*
- * Hook to specialize the Wait Strategy
- */
-//@@ TAO_WAIT_STRATEGY_SPL_ADD_HOOK
-
TAO_END_VERSIONED_NAMESPACE_DECL
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.cpp b/TAO/tao/WrongTransactionC.cpp
index e9055d36cda..a2f1be23a7b 100644
--- a/TAO/tao/WrongTransactionC.cpp
+++ b/TAO/tao/WrongTransactionC.cpp
@@ -48,7 +48,7 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_visitor_exception/exception_cs.cpp:63
-CORBA::WrongTransaction::WrongTransaction (void)
+CORBA::WrongTransaction::WrongTransaction ()
: CORBA::UserException (
"IDL:omg.org/CORBA/WrongTransaction:1.0",
"WrongTransaction"
@@ -56,7 +56,7 @@ CORBA::WrongTransaction::WrongTransaction (void)
{
}
-CORBA::WrongTransaction::~WrongTransaction (void)
+CORBA::WrongTransaction::~WrongTransaction ()
{
}
@@ -94,26 +94,26 @@ CORBA::WrongTransaction::_downcast (CORBA::Exception const *_tao_excp)
return dynamic_cast<const WrongTransaction *> (_tao_excp);
}
-CORBA::Exception *CORBA::WrongTransaction::_alloc (void)
+CORBA::Exception *CORBA::WrongTransaction::_alloc ()
{
- CORBA::Exception *retval = 0;
- ACE_NEW_RETURN (retval, ::CORBA::WrongTransaction, 0);
+ CORBA::Exception *retval = nullptr;
+ ACE_NEW_RETURN (retval, ::CORBA::WrongTransaction, nullptr);
return retval;
}
CORBA::Exception *
-CORBA::WrongTransaction::_tao_duplicate (void) const
+CORBA::WrongTransaction::_tao_duplicate () const
{
- CORBA::Exception *result = 0;
+ CORBA::Exception *result = nullptr;
ACE_NEW_RETURN (
result,
::CORBA::WrongTransaction (*this),
- 0
+ nullptr
);
return result;
}
-void CORBA::WrongTransaction::_raise (void) const
+void CORBA::WrongTransaction::_raise () const
{
throw *this;
}
@@ -143,13 +143,13 @@ void CORBA::WrongTransaction::_tao_decode (
}
// TAO extension - the virtual _type method.
-CORBA::TypeCode_ptr CORBA::WrongTransaction::_tao_type (void) const
+CORBA::TypeCode_ptr CORBA::WrongTransaction::_tao_type () const
{
TAO_AnyTypeCode_Adapter *adapter =
ACE_Dynamic_Service<TAO_AnyTypeCode_Adapter>::instance (
"AnyTypeCode_Adapter"
);
- if (adapter != 0)
+ if (adapter != nullptr)
return adapter->_tao_type_WrongTransaction ();
else
{
@@ -157,7 +157,7 @@ CORBA::TypeCode_ptr CORBA::WrongTransaction::_tao_type (void) const
ACE_TEXT ("(%P|%t) %p\n"),
ACE_TEXT ("Unable to find the ")
ACE_TEXT ("AnyTypeCode Adapter instance")));
- return 0;
+ return nullptr;
}
}
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/ZIOP_Adapter.cpp b/TAO/tao/ZIOP_Adapter.cpp
index 39a38991533..8f9c4a5cba2 100644
--- a/TAO/tao/ZIOP_Adapter.cpp
+++ b/TAO/tao/ZIOP_Adapter.cpp
@@ -2,7 +2,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_ZIOP_Adapter::~TAO_ZIOP_Adapter (void)
+TAO_ZIOP_Adapter::~TAO_ZIOP_Adapter ()
{
}
diff --git a/TAO/tao/default_client.cpp b/TAO/tao/default_client.cpp
index 8edce81619d..221e680cb50 100644
--- a/TAO/tao/default_client.cpp
+++ b/TAO/tao/default_client.cpp
@@ -21,7 +21,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Default_Client_Strategy_Factory::TAO_Default_Client_Strategy_Factory (void)
+TAO_Default_Client_Strategy_Factory::TAO_Default_Client_Strategy_Factory ()
: transport_mux_strategy_ (TAO_MUXED_TMS)
, wait_strategy_ (TAO_WAIT_ON_LEADER_FOLLOWER)
, connect_strategy_ (TAO_LEADER_FOLLOWER_CONNECT)
@@ -57,7 +57,7 @@ TAO_Default_Client_Strategy_Factory::TAO_Default_Client_Strategy_Factory (void)
#endif
}
-TAO_Default_Client_Strategy_Factory::~TAO_Default_Client_Strategy_Factory (void)
+TAO_Default_Client_Strategy_Factory::~TAO_Default_Client_Strategy_Factory ()
{
}
@@ -242,7 +242,7 @@ TAO_Default_Client_Strategy_Factory::parse_args (int argc, ACE_TCHAR* argv[])
{
ACE_TCHAR* name = argv[curarg];
- ACE_TCHAR *err = 0;
+ ACE_TCHAR *err = nullptr;
long limit = ACE_OS::strtol (name, &err, 10);
if (err && *err != 0)
{
@@ -264,7 +264,7 @@ TAO_Default_Client_Strategy_Factory::parse_args (int argc, ACE_TCHAR* argv[])
{
ACE_TCHAR* name = argv[curarg];
- ACE_TCHAR *err = 0;
+ ACE_TCHAR *err = nullptr;
long limit = ACE_OS::strtol (name, &err, 10);
if (err && *err != 0)
{
@@ -287,7 +287,7 @@ TAO_Default_Client_Strategy_Factory::parse_args (int argc, ACE_TCHAR* argv[])
{
ACE_TCHAR* name = argv[curarg];
- ACE_TCHAR *err = 0;
+ ACE_TCHAR *err = nullptr;
long limit = ACE_OS::strtol (name, &err, 10);
if (err && *err != 0)
{
@@ -309,7 +309,7 @@ TAO_Default_Client_Strategy_Factory::parse_args (int argc, ACE_TCHAR* argv[])
{
ACE_TCHAR* name = argv[curarg];
- ACE_TCHAR *err = 0;
+ ACE_TCHAR *err = nullptr;
long limit = ACE_OS::strtol (name, &err, 10);
if (err && *err != 0)
{
@@ -331,7 +331,7 @@ TAO_Default_Client_Strategy_Factory::parse_args (int argc, ACE_TCHAR* argv[])
{
ACE_TCHAR* name = argv[curarg];
- ACE_TCHAR *err = 0;
+ ACE_TCHAR *err = nullptr;
long limit = ACE_OS::strtol (name, &err, 10);
if (err && *err != 0)
{
@@ -368,7 +368,7 @@ TAO_Transport_Mux_Strategy *
TAO_Default_Client_Strategy_Factory::create_transport_mux_strategy (
TAO_Transport *transport)
{
- TAO_Transport_Mux_Strategy *tms = 0;
+ TAO_Transport_Mux_Strategy *tms = nullptr;
switch (this->transport_mux_strategy_)
{
@@ -376,14 +376,14 @@ TAO_Default_Client_Strategy_Factory::create_transport_mux_strategy (
{
ACE_NEW_RETURN (tms,
TAO_Muxed_TMS (transport),
- 0);
+ nullptr);
break;
}
case TAO_EXCLUSIVE_TMS:
{
ACE_NEW_RETURN (tms,
TAO_Exclusive_TMS (transport),
- 0);
+ nullptr);
break;
}
}
@@ -392,9 +392,9 @@ TAO_Default_Client_Strategy_Factory::create_transport_mux_strategy (
}
ACE_Lock *
-TAO_Default_Client_Strategy_Factory::create_transport_mux_strategy_lock (void)
+TAO_Default_Client_Strategy_Factory::create_transport_mux_strategy_lock ()
{
- ACE_Lock *the_lock = 0;
+ ACE_Lock *the_lock = nullptr;
switch (this->muxed_strategy_lock_type_)
{
@@ -402,14 +402,14 @@ TAO_Default_Client_Strategy_Factory::create_transport_mux_strategy_lock (void)
{
ACE_NEW_RETURN (the_lock,
ACE_Lock_Adapter<ACE_SYNCH_NULL_MUTEX> (),
- 0);
+ nullptr);
break;
}
case TAO_THREAD_LOCK:
{
ACE_NEW_RETURN (the_lock,
ACE_Lock_Adapter<TAO_SYNCH_RECURSIVE_MUTEX> (),
- 0);
+ nullptr);
break;
}
}
@@ -418,7 +418,7 @@ TAO_Default_Client_Strategy_Factory::create_transport_mux_strategy_lock (void)
}
int
-TAO_Default_Client_Strategy_Factory::reply_dispatcher_table_size (void) const
+TAO_Default_Client_Strategy_Factory::reply_dispatcher_table_size () const
{
return this->rd_table_size_;
}
@@ -427,51 +427,45 @@ TAO_Wait_Strategy *
TAO_Default_Client_Strategy_Factory::create_wait_strategy (
TAO_Transport *transport)
{
- TAO_Wait_Strategy *ws = 0;
+ TAO_Wait_Strategy *ws = nullptr;
-/*
- * Hook to customize the wait strategy object when the concrete
- * wait strategy object is known a priori.
- */
-//@@ WAIT_STRATEGY_SPL_COMMENT_HOOK_START
switch (this->wait_strategy_)
{
case TAO_WAIT_ON_LEADER_FOLLOWER :
{
ACE_NEW_RETURN (ws,
TAO_Wait_On_Leader_Follower (transport),
- 0);
+ nullptr);
break;
}
case TAO_WAIT_ON_REACTOR:
{
ACE_NEW_RETURN (ws,
TAO_Wait_On_Reactor (transport),
- 0);
+ nullptr);
break;
}
case TAO_WAIT_ON_READ:
{
ACE_NEW_RETURN (ws,
TAO_Wait_On_Read (transport),
- 0);
+ nullptr);
break;
}
case TAO_WAIT_ON_LF_NO_UPCALL:
{
ACE_NEW_RETURN (ws,
TAO::Wait_On_LF_No_Upcall (transport),
- 0);
+ nullptr);
break;
}
}
-//@@ WAIT_STRATEGY_SPL_COMMENT_HOOK_END
return ws;
}
TAO_Client_Strategy_Factory::Connect_Strategy
-TAO_Default_Client_Strategy_Factory::connect_strategy (void) const
+TAO_Default_Client_Strategy_Factory::connect_strategy () const
{
return this->connect_strategy_;
}
@@ -480,7 +474,7 @@ TAO_Connect_Strategy *
TAO_Default_Client_Strategy_Factory::create_connect_strategy (
TAO_ORB_Core *orb_core)
{
- TAO_Connect_Strategy *cs = 0;
+ TAO_Connect_Strategy *cs = nullptr;
switch (this->connect_strategy_)
{
@@ -488,21 +482,21 @@ TAO_Default_Client_Strategy_Factory::create_connect_strategy (
{
ACE_NEW_RETURN (cs,
TAO_Blocked_Connect_Strategy (orb_core),
- 0);
+ nullptr);
break;
}
case TAO_REACTIVE_CONNECT:
{
ACE_NEW_RETURN (cs,
TAO_Reactive_Connect_Strategy (orb_core),
- 0);
+ nullptr);
break;
}
case TAO_LEADER_FOLLOWER_CONNECT :
{
ACE_NEW_RETURN (cs,
TAO_LF_Connect_Strategy (orb_core, this->wait_strategy_ == TAO_WAIT_ON_LF_NO_UPCALL),
- 0);
+ nullptr);
break;
}
}
@@ -511,13 +505,13 @@ TAO_Default_Client_Strategy_Factory::create_connect_strategy (
}
Messaging::SyncScope
-TAO_Default_Client_Strategy_Factory::sync_scope (void) const
+TAO_Default_Client_Strategy_Factory::sync_scope () const
{
return this->sync_scope_;
}
int
-TAO_Default_Client_Strategy_Factory::allow_callback (void)
+TAO_Default_Client_Strategy_Factory::allow_callback ()
{
return (this->wait_strategy_ != TAO_WAIT_ON_READ);
}
@@ -534,13 +528,13 @@ TAO_Default_Client_Strategy_Factory::report_option_value_error (
}
bool
-TAO_Default_Client_Strategy_Factory::use_cleanup_options (void) const
+TAO_Default_Client_Strategy_Factory::use_cleanup_options () const
{
return this->use_cleanup_options_;
}
const TAO::Invocation_Retry_Params &
-TAO_Default_Client_Strategy_Factory::invocation_retry_params (void) const
+TAO_Default_Client_Strategy_Factory::invocation_retry_params () const
{
return this->invocation_retry_params_;
}
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/default_resource.cpp b/TAO/tao/default_resource.cpp
index 8ea0122bbb4..cee00e985c0 100644
--- a/TAO/tao/default_resource.cpp
+++ b/TAO/tao/default_resource.cpp
@@ -34,20 +34,20 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Codeset_Parameters::TAO_Codeset_Parameters (void)
+TAO_Codeset_Parameters::TAO_Codeset_Parameters ()
: translators_ ()
- , native_ (0)
+ , native_ (nullptr)
{
}
-TAO_Codeset_Parameters::~TAO_Codeset_Parameters (void)
+TAO_Codeset_Parameters::~TAO_Codeset_Parameters ()
{
for (TAO_Codeset_Parameters::iterator i =
this->translators ();
!i.done ();
i.advance ())
{
- ACE_TCHAR** element = 0;
+ ACE_TCHAR** element = nullptr;
if (i.next (element))
ACE_OS::free (*element);
}
@@ -56,7 +56,7 @@ TAO_Codeset_Parameters::~TAO_Codeset_Parameters (void)
}
const ACE_TCHAR*
-TAO_Codeset_Parameters::native (void)
+TAO_Codeset_Parameters::native ()
{
return (this->native_);
}
@@ -64,13 +64,13 @@ TAO_Codeset_Parameters::native (void)
void
TAO_Codeset_Parameters::apply_to (TAO_Codeset_Descriptor_Base *csd)
{
- if (csd == 0)
+ if (csd == nullptr)
return;
- if (this->native () != 0)
+ if (this->native () != nullptr)
csd->ncs (this->native ());
- ACE_TCHAR** element = 0;
+ ACE_TCHAR** element = nullptr;
for (TAO_Codeset_Parameters::iterator i = this->translators ();
!i.done ();
i.advance ())
@@ -94,15 +94,15 @@ TAO_Codeset_Parameters::add_translator (const ACE_TCHAR*name)
}
TAO_Codeset_Parameters::iterator
-TAO_Codeset_Parameters::translators (void)
+TAO_Codeset_Parameters::translators ()
{
return this->translators_.begin ();
}
-TAO_Default_Resource_Factory::TAO_Default_Resource_Factory (void)
+TAO_Default_Resource_Factory::TAO_Default_Resource_Factory ()
: use_locked_data_blocks_ (1)
, parser_names_count_ (0)
- , parser_names_ (0)
+ , parser_names_ (nullptr)
, protocol_factories_ ()
, connection_purging_type_ (TAO_CONNECTION_PURGING_STRATEGY)
, cache_maximum_ (TAO_CONNECTION_CACHE_MAXIMUM)
@@ -143,7 +143,7 @@ TAO_Default_Resource_Factory::TAO_Default_Resource_Factory (void)
}
-TAO_Default_Resource_Factory::~TAO_Default_Resource_Factory (void)
+TAO_Default_Resource_Factory::~TAO_Default_Resource_Factory ()
{
const TAO_ProtocolFactorySetItor end = this->protocol_factories_.end ();
@@ -205,7 +205,7 @@ TAO_Default_Resource_Factory::init (int argc, ACE_TCHAR *argv[])
for (int i = 0;
i < this->parser_names_count_;
++i)
- this->parser_names_[i] = 0;
+ this->parser_names_[i] = nullptr;
this->index_ = 0;
}
@@ -237,7 +237,7 @@ TAO_Default_Resource_Factory::init (int argc, ACE_TCHAR *argv[])
++curarg;
if (curarg < argc)
{
- TAO_Protocol_Item *item = 0;
+ TAO_Protocol_Item *item = nullptr;
ACE_NEW_RETURN (item,
TAO_Protocol_Item (ACE_TEXT_ALWAYS_CHAR(argv[curarg])),
-1);
@@ -390,10 +390,6 @@ TAO_Default_Resource_Factory::init (int argc, ACE_TCHAR *argv[])
ACE_TEXT("-ORBFlushingStrategy")) == 0)
{
++curarg;
- /*
- * Hook to specialize TAO's Flushing strategy implementations
- */
-//@@ FLUSHING_STRATEGY_SPL_COMMENT_HOOK_START
if (curarg < argc)
{
ACE_TCHAR* name = argv[curarg];
@@ -410,7 +406,6 @@ TAO_Default_Resource_Factory::init (int argc, ACE_TCHAR *argv[])
else
this->report_option_value_error (ACE_TEXT("-ORBFlushingStrategy"), name);
}
-//@@ FLUSHING_STRATEGY_SPL_COMMENT_HOOK_END
}
else if (ACE_OS::strcasecmp (argv[curarg],
ACE_TEXT ("-ORBMuxedConnectionMax")) == 0)
@@ -429,7 +424,7 @@ TAO_Default_Resource_Factory::init (int argc, ACE_TCHAR *argv[])
++curarg;
if (curarg < argc)
{
- int tmp = ACE_OS::atoi (argv[curarg]);
+ int const tmp = ACE_OS::atoi (argv[curarg]);
if (tmp == 0)
this->drop_replies_ = false;
@@ -598,7 +593,7 @@ TAO_Default_Resource_Factory::add_to_ior_parser_names (const char *curarg)
// This is virtual and protected...
int
-TAO_Default_Resource_Factory::load_default_protocols (void)
+TAO_Default_Resource_Factory::load_default_protocols ()
{
#if defined (TAO_HAS_IIOP) && (TAO_HAS_IIOP != 0)
// If the user did not list any protocols in her svc.conf file
@@ -637,7 +632,7 @@ TAO_Default_Resource_Factory::load_default_protocols (void)
}
int
-TAO_Default_Resource_Factory::init_protocol_factories (void)
+TAO_Default_Resource_Factory::init_protocol_factories ()
{
const TAO_ProtocolFactorySetItor end = protocol_factories_.end ();
TAO_ProtocolFactorySetItor factory = protocol_factories_.begin ();
@@ -652,7 +647,7 @@ TAO_Default_Resource_Factory::init_protocol_factories (void)
const ACE_CString &name = (*factory)->protocol_name ();
(*factory)->factory (
ACE_Dynamic_Service<TAO_Protocol_Factory>::instance (name.c_str ()));
- if ((*factory)->factory () == 0)
+ if ((*factory)->factory () == nullptr)
{
TAOLIB_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("TAO (%P|%t) - Unable to load ")
@@ -674,50 +669,50 @@ TAO_Default_Resource_Factory::init_protocol_factories (void)
}
int
-TAO_Default_Resource_Factory::use_locked_data_blocks (void) const
+TAO_Default_Resource_Factory::use_locked_data_blocks () const
{
return this->use_locked_data_blocks_;
}
TAO_ProtocolFactorySet *
-TAO_Default_Resource_Factory::get_protocol_factories (void)
+TAO_Default_Resource_Factory::get_protocol_factories ()
{
return &protocol_factories_;
}
TAO_Acceptor_Registry *
-TAO_Default_Resource_Factory::get_acceptor_registry (void)
+TAO_Default_Resource_Factory::get_acceptor_registry ()
{
- TAO_Acceptor_Registry *ar = 0;
+ TAO_Acceptor_Registry *ar = nullptr;
ACE_NEW_RETURN(ar,
TAO_Acceptor_Registry,
- 0);
+ nullptr);
return ar;
}
TAO_Connector_Registry *
-TAO_Default_Resource_Factory::get_connector_registry (void)
+TAO_Default_Resource_Factory::get_connector_registry ()
{
- TAO_Connector_Registry *cr = 0;
+ TAO_Connector_Registry *cr = nullptr;
ACE_NEW_RETURN(cr,
TAO_Connector_Registry,
- 0);
+ nullptr);
return cr;
}
#if (TAO_HAS_TIME_POLICY == 1)
TAO_Time_Policy_Manager*
-TAO_Default_Resource_Factory::time_policy_manager (void) const
+TAO_Default_Resource_Factory::time_policy_manager () const
{
// get time policy manager service
TAO_Time_Policy_Manager * tpm =
ACE_Dynamic_Service<TAO_Time_Policy_Manager>::instance (ACE_TEXT ("Time_Policy_Manager"));
- if (tpm == 0)
+ if (tpm == nullptr)
{
TAOLIB_ERROR ((LM_ERROR,
ACE_TEXT ("TAO (%P|%t) - TAO_Default_Resource_Factory::time_policy_manager: ")
@@ -729,7 +724,7 @@ TAO_Default_Resource_Factory::time_policy_manager (void) const
#endif /* TAO_HAS_TIME_POLICY */
ACE_Timer_Queue *
-TAO_Default_Resource_Factory::create_timer_queue (void) const
+TAO_Default_Resource_Factory::create_timer_queue () const
{
#if (TAO_HAS_TIME_POLICY == 1)
TAO_Time_Policy_Manager * tpm = this->time_policy_manager ();
@@ -738,7 +733,7 @@ TAO_Default_Resource_Factory::create_timer_queue (void) const
return tpm->create_timer_queue ();
}
#endif /* TAO_HAS_TIME_POLICY */
- return 0;
+ return nullptr;
}
void
@@ -754,37 +749,32 @@ TAO_Default_Resource_Factory::destroy_timer_queue (ACE_Timer_Queue *tmq) const
}
ACE_Reactor_Impl*
-TAO_Default_Resource_Factory::allocate_reactor_impl (void) const
+TAO_Default_Resource_Factory::allocate_reactor_impl () const
{
- ACE_Reactor_Impl *impl = 0;
- /*
- * Hook to specialize TAO's reactor implementation.
- */
+ ACE_Reactor_Impl *impl = nullptr;
// get a timer queue (or not) from a possibly configured
// time policy
TAO_RSF_Timer_Queue_Ptr tmq (*this, this->create_timer_queue ());
-//@@ TAO_REACTOR_SPL_COMMENT_HOOK_START
ACE_NEW_RETURN (impl,
ACE_TP_Reactor (ACE::max_handles (),
1,
- (ACE_Sig_Handler*)0,
+ (ACE_Sig_Handler*)nullptr,
tmq.get (),
this->reactor_mask_signals_,
ACE_Select_Reactor_Token::LIFO),
- 0);
-//@@ TAO_REACTOR_SPL_COMMENT_HOOK_END
+ nullptr);
// safe to release timer queue
tmq.release ();
return impl;
}
ACE_Reactor *
-TAO_Default_Resource_Factory::get_reactor (void)
+TAO_Default_Resource_Factory::get_reactor ()
{
- ACE_Reactor *reactor = 0;
+ ACE_Reactor *reactor = nullptr;
ACE_NEW_RETURN (reactor,
ACE_Reactor (this->allocate_reactor_impl (), 1),
- 0);
+ nullptr);
if (reactor->initialized () == 0)
{
@@ -792,7 +782,7 @@ TAO_Default_Resource_Factory::get_reactor (void)
ACE_Timer_Queue *tmq = reactor->timer_queue ();
// clean up reactor
delete reactor;
- reactor = 0;
+ reactor = nullptr;
// clean up timer queue in case it was created by time policy
this->destroy_timer_queue (tmq);
}
@@ -831,102 +821,102 @@ TAO_Default_Resource_Factory::use_local_memory_pool (bool flag)
}
ACE_Allocator *
-TAO_Default_Resource_Factory::input_cdr_dblock_allocator (void)
+TAO_Default_Resource_Factory::input_cdr_dblock_allocator ()
{
- ACE_Allocator *allocator = 0;
+ ACE_Allocator *allocator = nullptr;
if (use_local_memory_pool_)
{
ACE_NEW_RETURN (allocator,
LOCKED_ALLOCATOR_POOL,
- 0);
+ nullptr);
}
else
{
ACE_NEW_RETURN (allocator,
LOCKED_ALLOCATOR_NO_POOL,
- 0);
+ nullptr);
}
return allocator;
}
ACE_Allocator *
-TAO_Default_Resource_Factory::input_cdr_buffer_allocator (void)
+TAO_Default_Resource_Factory::input_cdr_buffer_allocator ()
{
- ACE_Allocator *allocator = 0;
+ ACE_Allocator *allocator = nullptr;
if (use_local_memory_pool_)
{
ACE_NEW_RETURN (allocator,
LOCKED_ALLOCATOR_POOL,
- 0);
+ nullptr);
}
else
{
ACE_NEW_RETURN (allocator,
LOCKED_ALLOCATOR_NO_POOL,
- 0);
+ nullptr);
}
return allocator;
}
ACE_Allocator *
-TAO_Default_Resource_Factory::input_cdr_msgblock_allocator (void)
+TAO_Default_Resource_Factory::input_cdr_msgblock_allocator ()
{
- ACE_Allocator *allocator = 0;
+ ACE_Allocator *allocator = nullptr;
if (use_local_memory_pool_)
{
ACE_NEW_RETURN (allocator,
LOCKED_ALLOCATOR_POOL,
- 0);
+ nullptr);
}
else
{
ACE_NEW_RETURN (allocator,
LOCKED_ALLOCATOR_NO_POOL,
- 0);
+ nullptr);
}
return allocator;
}
int
-TAO_Default_Resource_Factory::input_cdr_allocator_type_locked (void)
+TAO_Default_Resource_Factory::input_cdr_allocator_type_locked ()
{
return 1;
}
ACE_Allocator*
-TAO_Default_Resource_Factory::output_cdr_dblock_allocator (void)
+TAO_Default_Resource_Factory::output_cdr_dblock_allocator ()
{
- ACE_Allocator *allocator = 0;
+ ACE_Allocator *allocator = nullptr;
if (use_local_memory_pool_)
{
ACE_NEW_RETURN (allocator,
LOCKED_ALLOCATOR_POOL,
- 0);
+ nullptr);
}
else
{
ACE_NEW_RETURN (allocator,
LOCKED_ALLOCATOR_NO_POOL,
- 0);
+ nullptr);
}
return allocator;
}
ACE_Allocator *
-TAO_Default_Resource_Factory::output_cdr_buffer_allocator (void)
+TAO_Default_Resource_Factory::output_cdr_buffer_allocator ()
{
- ACE_Allocator *allocator = 0;
+ ACE_Allocator *allocator = nullptr;
switch (this->output_cdr_allocator_type_)
{
case LOCAL_MEMORY_POOL:
ACE_NEW_RETURN (allocator,
LOCKED_ALLOCATOR_POOL,
- 0);
+ nullptr);
break;
@@ -934,7 +924,7 @@ TAO_Default_Resource_Factory::output_cdr_buffer_allocator (void)
case MMAP_ALLOCATOR:
ACE_NEW_RETURN (allocator,
TAO_MMAP_Allocator,
- 0);
+ nullptr);
break;
#endif /* TAO_HAS_SENDFILE==1 */
@@ -943,7 +933,7 @@ TAO_Default_Resource_Factory::output_cdr_buffer_allocator (void)
default:
ACE_NEW_RETURN (allocator,
LOCKED_ALLOCATOR_NO_POOL,
- 0);
+ nullptr);
break;
}
@@ -952,103 +942,103 @@ TAO_Default_Resource_Factory::output_cdr_buffer_allocator (void)
}
ACE_Allocator*
-TAO_Default_Resource_Factory::output_cdr_msgblock_allocator (void)
+TAO_Default_Resource_Factory::output_cdr_msgblock_allocator ()
{
- ACE_Allocator *allocator = 0;
+ ACE_Allocator *allocator = nullptr;
if (use_local_memory_pool_)
{
ACE_NEW_RETURN (allocator,
LOCKED_ALLOCATOR_POOL,
- 0);
+ nullptr);
}
else
{
ACE_NEW_RETURN (allocator,
LOCKED_ALLOCATOR_NO_POOL,
- 0);
+ nullptr);
}
return allocator;
}
ACE_Allocator*
-TAO_Default_Resource_Factory::amh_response_handler_allocator (void)
+TAO_Default_Resource_Factory::amh_response_handler_allocator ()
{
- ACE_Allocator *allocator = 0;
+ ACE_Allocator *allocator = nullptr;
if (use_local_memory_pool_)
{
ACE_NEW_RETURN (allocator,
LOCKED_ALLOCATOR_POOL,
- 0);
+ nullptr);
}
else
{
ACE_NEW_RETURN (allocator,
LOCKED_ALLOCATOR_NO_POOL,
- 0);
+ nullptr);
}
return allocator;
}
ACE_Allocator*
-TAO_Default_Resource_Factory::ami_response_handler_allocator (void)
+TAO_Default_Resource_Factory::ami_response_handler_allocator ()
{
- ACE_Allocator *allocator = 0;
+ ACE_Allocator *allocator = nullptr;
if (use_local_memory_pool_)
{
ACE_NEW_RETURN (allocator,
LOCKED_ALLOCATOR_POOL,
- 0);
+ nullptr);
}
else
{
ACE_NEW_RETURN (allocator,
LOCKED_ALLOCATOR_NO_POOL,
- 0);
+ nullptr);
}
return allocator;
}
int
-TAO_Default_Resource_Factory::cache_maximum (void) const
+TAO_Default_Resource_Factory::cache_maximum () const
{
return this->cache_maximum_;
}
int
-TAO_Default_Resource_Factory::purge_percentage (void) const
+TAO_Default_Resource_Factory::purge_percentage () const
{
return this->purge_percentage_;
}
int
-TAO_Default_Resource_Factory::max_muxed_connections (void) const
+TAO_Default_Resource_Factory::max_muxed_connections () const
{
return this->max_muxed_connections_;
}
ACE_Lock *
-TAO_Default_Resource_Factory::create_cached_connection_lock (void)
+TAO_Default_Resource_Factory::create_cached_connection_lock ()
{
- ACE_Lock *the_lock = 0;
+ ACE_Lock *the_lock = nullptr;
if (this->cached_connection_lock_type_ == TAO_NULL_LOCK)
ACE_NEW_RETURN (the_lock,
ACE_Lock_Adapter<ACE_SYNCH_NULL_MUTEX>,
- 0);
+ nullptr);
else
ACE_NEW_RETURN (the_lock,
ACE_Lock_Adapter<TAO_SYNCH_MUTEX>,
- 0);
+ nullptr);
return the_lock;
}
int
-TAO_Default_Resource_Factory::locked_transport_cache (void)
+TAO_Default_Resource_Factory::locked_transport_cache ()
{
if (this->cached_connection_lock_type_ == TAO_NULL_LOCK)
return 0;
@@ -1057,35 +1047,35 @@ TAO_Default_Resource_Factory::locked_transport_cache (void)
}
TAO_Flushing_Strategy *
-TAO_Default_Resource_Factory::create_flushing_strategy (void)
+TAO_Default_Resource_Factory::create_flushing_strategy ()
{
- TAO_Flushing_Strategy *strategy = 0;
+ TAO_Flushing_Strategy *strategy = nullptr;
if (this->flushing_strategy_type_ == TAO_LEADER_FOLLOWER_FLUSHING)
ACE_NEW_RETURN (strategy,
TAO_Leader_Follower_Flushing_Strategy,
- 0);
+ nullptr);
else if (this->flushing_strategy_type_ == TAO_REACTIVE_FLUSHING)
ACE_NEW_RETURN (strategy,
TAO_Reactive_Flushing_Strategy,
- 0);
+ nullptr);
else
ACE_NEW_RETURN (strategy,
TAO_Block_Flushing_Strategy,
- 0);
+ nullptr);
return strategy;
}
TAO_Connection_Purging_Strategy *
-TAO_Default_Resource_Factory::create_purging_strategy (void)
+TAO_Default_Resource_Factory::create_purging_strategy ()
{
- TAO_Connection_Purging_Strategy *strategy = 0;
+ TAO_Connection_Purging_Strategy *strategy = nullptr;
if (this->connection_purging_type_ == TAO_Resource_Factory::LRU)
{
ACE_NEW_RETURN (strategy,
TAO_LRU_Connection_Purging_Strategy (
this->cache_maximum ()),
- 0);
+ nullptr);
}
else
{
@@ -1099,13 +1089,13 @@ TAO_Default_Resource_Factory::create_purging_strategy (void)
}
TAO_LF_Strategy *
-TAO_Default_Resource_Factory::create_lf_strategy (void)
+TAO_Default_Resource_Factory::create_lf_strategy ()
{
- TAO_LF_Strategy *strategy = 0;
+ TAO_LF_Strategy *strategy = nullptr;
ACE_NEW_RETURN (strategy,
TAO_LF_Strategy_Complete,
- 0);
+ nullptr);
return strategy;
}
@@ -1115,7 +1105,7 @@ TAO_Default_Resource_Factory::create_fragmentation_strategy (
TAO_Transport * transport,
CORBA::ULong max_message_size) const
{
- TAO_GIOP_Fragmentation_Strategy* strategy = 0;
+ TAO_GIOP_Fragmentation_Strategy* strategy = nullptr;
// Minimum GIOP message size is 24 (a multiple of 8):
// 12 GIOP Message Header
@@ -1164,7 +1154,7 @@ TAO_Default_Resource_Factory::report_option_value_error (
}
void
-TAO_Default_Resource_Factory::disable_factory (void)
+TAO_Default_Resource_Factory::disable_factory ()
{
this->factory_disabled_ = 1;
if (this->options_processed_)
@@ -1176,29 +1166,29 @@ TAO_Default_Resource_Factory::disable_factory (void)
}
TAO_Codeset_Manager *
-TAO_Default_Resource_Factory::codeset_manager(void)
+TAO_Default_Resource_Factory::codeset_manager()
{
TAO_Codeset_Manager_Factory_Base *factory =
ACE_Dynamic_Service<TAO_Codeset_Manager_Factory_Base>::instance ("TAO_Codeset");
- if (factory == 0)
+ if (factory == nullptr)
{
if (TAO_debug_level >= 2)
TAOLIB_DEBUG ((LM_DEBUG,
ACE_TEXT ("TAO (%P|%t) - Default_Resource_Factory")
ACE_TEXT (" - unable to find codeset manager factory.\n")));
- return 0;
+ return nullptr;
}
TAO_Codeset_Manager* mgr = factory->create ();
- if (mgr == 0)
+ if (mgr == nullptr)
{
if (TAO_debug_level >= 2)
TAOLIB_DEBUG ((LM_INFO,
ACE_TEXT ("TAO (%P|%t) - Default_Resource_Factory")
ACE_TEXT (" - unable to create codeset manager.\n")));
- return 0;
+ return nullptr;
}
@@ -1217,13 +1207,13 @@ TAO_Default_Resource_Factory::codeset_manager(void)
}
TAO_Resource_Factory::Resource_Usage
-TAO_Default_Resource_Factory::resource_usage_strategy (void) const
+TAO_Default_Resource_Factory::resource_usage_strategy () const
{
return this->resource_usage_strategy_;
}
bool
-TAO_Default_Resource_Factory::drop_replies_during_shutdown (void) const
+TAO_Default_Resource_Factory::drop_replies_during_shutdown () const
{
return this->drop_replies_;
}
diff --git a/TAO/tao/default_server.cpp b/TAO/tao/default_server.cpp
index f37c5d498c3..6e59dd8bb09 100644
--- a/TAO/tao/default_server.cpp
+++ b/TAO/tao/default_server.cpp
@@ -5,20 +5,20 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Default_Server_Strategy_Factory::TAO_Default_Server_Strategy_Factory (void)
+TAO_Default_Server_Strategy_Factory::TAO_Default_Server_Strategy_Factory ()
: activate_server_connections_ (0),
thread_flags_ (THR_BOUND | THR_DETACHED),
thread_per_connection_use_timeout_ (-1)
{
}
-TAO_Default_Server_Strategy_Factory::~TAO_Default_Server_Strategy_Factory (void)
+TAO_Default_Server_Strategy_Factory::~TAO_Default_Server_Strategy_Factory ()
{
// Perform appropriate cleanup.
}
int
-TAO_Default_Server_Strategy_Factory::activate_server_connections (void)
+TAO_Default_Server_Strategy_Factory::activate_server_connections ()
{
return this->activate_server_connections_;
}
@@ -31,13 +31,13 @@ TAO_Default_Server_Strategy_Factory::thread_per_connection_timeout (ACE_Time_Val
}
int
-TAO_Default_Server_Strategy_Factory::server_connection_thread_flags (void)
+TAO_Default_Server_Strategy_Factory::server_connection_thread_flags ()
{
return this->thread_flags_;
}
int
-TAO_Default_Server_Strategy_Factory::server_connection_thread_count (void)
+TAO_Default_Server_Strategy_Factory::server_connection_thread_count ()
{
return 1;
}
@@ -52,13 +52,13 @@ TAO_Default_Server_Strategy_Factory::server_connection_thread_count (void)
void
TAO_Default_Server_Strategy_Factory::tokenize (ACE_TCHAR* flag_string)
{
- ACE_TCHAR* lasts = 0;
+ ACE_TCHAR* lasts = nullptr;
for (ACE_TCHAR* flag = ACE_OS::strtok_r (flag_string,
ACE_TEXT("|"),
&lasts);
- flag != 0;
- flag = ACE_OS::strtok_r (0,
+ flag != nullptr;
+ flag = ACE_OS::strtok_r (nullptr,
ACE_TEXT("|"),
&lasts))
{
@@ -129,7 +129,7 @@ TAO_Default_Server_Strategy_Factory::parse_args (int argc, ACE_TCHAR* argv[])
else
{
this->thread_per_connection_use_timeout_ = 1;
- int milliseconds = ACE_OS::atoi (name);
+ int const milliseconds = ACE_OS::atoi (name);
this->thread_per_connection_timeout_.set (0,
1000 * milliseconds);
}
@@ -145,7 +145,7 @@ TAO_Default_Server_Strategy_Factory::parse_args (int argc, ACE_TCHAR* argv[])
if (curarg < argc)
this->active_object_map_creation_parameters_.active_object_map_size_ =
ACE_OS::strtoul (argv[curarg],
- 0,
+ nullptr,
10);
}
else if (ACE_OS::strcasecmp (argv[curarg],
@@ -155,7 +155,7 @@ TAO_Default_Server_Strategy_Factory::parse_args (int argc, ACE_TCHAR* argv[])
if (curarg < argc)
this->active_object_map_creation_parameters_.poa_map_size_ =
ACE_OS::strtoul (argv[curarg],
- 0,
+ nullptr,
10);
}
else if (ACE_OS::strcasecmp (argv[curarg],
diff --git a/TAO/tao/operation_details.cpp b/TAO/tao/operation_details.cpp
index 2c0bd86b0c1..873d7fff501 100644
--- a/TAO/tao/operation_details.cpp
+++ b/TAO/tao/operation_details.cpp
@@ -28,7 +28,7 @@ TAO_Operation_Details::corba_exception (const char *id) const
// Create an exception object
CORBA::Exception *exception = this->ex_data_[i].alloc ();
- if (exception == 0)
+ if (exception == nullptr)
{
throw ::CORBA::NO_MEMORY (0, CORBA::COMPLETED_YES);
}
diff --git a/TAO/tao/operation_details.h b/TAO/tao/operation_details.h
index bdace9457dd..9d85feb2355 100644
--- a/TAO/tao/operation_details.h
+++ b/TAO/tao/operation_details.h
@@ -63,7 +63,6 @@ class TAO_Reply_Dispatcher;
class TAO_Export TAO_Operation_Details
{
public:
-
/// Declare FW_Server_Request_Wrapper a friend
/// This friendship makes the FW_Server_Request_Wrapper be able to
/// clone the TAO_Operation_Details data member in TAO_ServerRequest.
@@ -79,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);
@@ -149,34 +148,33 @@ 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:
-
/// Name of the operation being invoked.
const char *opname_;
@@ -235,7 +233,6 @@ private:
/// The optional reply dispatcher
TAO_Reply_Dispatcher *reply_dispatcher_;
-
};
TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/orbconf.h b/TAO/tao/orbconf.h
index 86530c3e4e7..de5905aea50 100644
--- a/TAO/tao/orbconf.h
+++ b/TAO/tao/orbconf.h
@@ -853,10 +853,6 @@ enum TAO_Policy_Scope
# endif
#endif
-#if !defined (TAO_HAS_SEQUENCE_ITERATORS)
-# define TAO_HAS_SEQUENCE_ITERATORS 0
-#endif
-
#if !defined (TAO_DEFAULT_COLLOCATION_STRATEGY)
# define TAO_DEFAULT_COLLOCATION_STRATEGY TAO_COLLOCATION_THRU_POA
#endif
diff --git a/TAO/tao/params.cpp b/TAO/tao/params.cpp
index 286ea3f81c7..885cb7eaab6 100644
--- a/TAO/tao/params.cpp
+++ b/TAO/tao/params.cpp
@@ -16,7 +16,7 @@
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_ORB_Parameters::TAO_ORB_Parameters (void)
+TAO_ORB_Parameters::TAO_ORB_Parameters ()
: endpoints_map_ (10)
, mcast_discovery_endpoint_ ()
, default_init_ref_ (TAO_DEFAULT_INIT_REFERENCE_INITIALIZER)
@@ -291,7 +291,7 @@ TAO_ORB_Parameters::preferred_interfaces (const char *s)
}
const char *
-TAO_ORB_Parameters::preferred_interfaces (void) const
+TAO_ORB_Parameters::preferred_interfaces () const
{
return this->pref_network_.c_str ();
}
@@ -303,7 +303,7 @@ TAO_ORB_Parameters::enforce_pref_interfaces (bool p)
}
bool
-TAO_ORB_Parameters::enforce_pref_interfaces (void) const
+TAO_ORB_Parameters::enforce_pref_interfaces () const
{
return this->enforce_preferred_interfaces_;
}
@@ -353,7 +353,7 @@ TAO_ORB_Parameters::protocols_hooks_name (const char *s)
}
const char *
-TAO_ORB_Parameters::protocols_hooks_name (void) const
+TAO_ORB_Parameters::protocols_hooks_name () const
{
return this->protocols_hooks_name_.c_str ();
}
@@ -365,7 +365,7 @@ TAO_ORB_Parameters::thread_lane_resources_manager_factory_name (const char *s)
}
const char *
-TAO_ORB_Parameters::thread_lane_resources_manager_factory_name (void) const
+TAO_ORB_Parameters::thread_lane_resources_manager_factory_name () const
{
return this->thread_lane_resources_manager_factory_name_.c_str ();
}
@@ -377,7 +377,7 @@ TAO_ORB_Parameters::dynamic_thread_pool_config_name (const char *s)
}
const char *
-TAO_ORB_Parameters::dynamic_thread_pool_config_name (void) const
+TAO_ORB_Parameters::dynamic_thread_pool_config_name () const
{
return this->dynamic_thread_pool_config_name_.c_str ();
}
@@ -389,7 +389,7 @@ TAO_ORB_Parameters::stub_factory_name (const char *s)
}
const char *
-TAO_ORB_Parameters::stub_factory_name (void) const
+TAO_ORB_Parameters::stub_factory_name () const
{
return this->stub_factory_name_.c_str ();
}
@@ -401,7 +401,7 @@ TAO_ORB_Parameters::poa_factory_name (const char *s)
}
const char *
-TAO_ORB_Parameters::poa_factory_name (void) const
+TAO_ORB_Parameters::poa_factory_name () const
{
return this->poa_factory_name_.c_str ();
}
@@ -413,7 +413,7 @@ TAO_ORB_Parameters::poa_factory_directive (const ACE_TCHAR *s)
}
const ACE_TCHAR *
-TAO_ORB_Parameters::poa_factory_directive (void) const
+TAO_ORB_Parameters::poa_factory_directive () const
{
return this->poa_factory_directive_.c_str ();
}
@@ -425,19 +425,19 @@ TAO_ORB_Parameters::endpoint_selector_factory_name (const char *s)
}
const char *
-TAO_ORB_Parameters::endpoint_selector_factory_name (void) const
+TAO_ORB_Parameters::endpoint_selector_factory_name () const
{
return this->endpoint_selector_factory_name_.c_str ();
}
const TAO::Invocation_Retry_Params &
-TAO_ORB_Parameters::invocation_retry_params (void) const
+TAO_ORB_Parameters::invocation_retry_params () const
{
return this->invocation_retry_params_;
}
TAO::Invocation_Retry_Params &
-TAO_ORB_Parameters::invocation_retry_params (void)
+TAO_ORB_Parameters::invocation_retry_params ()
{
return this->invocation_retry_params_;
}
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/tao.mpc b/TAO/tao/tao.mpc
index 57036a486f1..a816e0ce154 100644
--- a/TAO/tao/tao.mpc
+++ b/TAO/tao/tao.mpc
@@ -492,7 +492,6 @@ project(TAO) : acelib, install, tao_output, taodefaults, pidl, extra_core, taoid
Messaging_PolicyValueS.h
Messaging_SyncScopeC.h
Messaging_SyncScopeS.h
- MM_Sequence_Iterator_T.h
MMAP_Allocator.h
MProfile.h
Muxed_TMS.h
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/AMH_Exceptions/server.cpp b/TAO/tests/AMH_Exceptions/server.cpp
index 83afa65ba63..14dce3d4eb6 100644
--- a/TAO/tests/AMH_Exceptions/server.cpp
+++ b/TAO/tests/AMH_Exceptions/server.cpp
@@ -39,10 +39,9 @@ ST_AMH_Servant::test_method (Test::AMH_RoundtripResponseHandler_ptr _tao_rh,
Test::Timestamp)
{
// Throw an overload exception
-
Test::ServerOverload *ts = new Test::ServerOverload;
- // Calee owns the memory now. Need not delete 'ts'
+ // Caller owns the memory now. Need not delete 'ts'
Test::AMH_RoundtripExceptionHolder holder (ts);
try
@@ -72,7 +71,7 @@ public:
ST_AMH_Server (int argc, ACE_TCHAR **argv);
virtual ~ST_AMH_Server ();
- /// ORB inititalisation stuff
+ /// ORB initialisation stuff
int start_orb_and_poa (void);
/// register the servant with the poa
@@ -97,8 +96,6 @@ private:
int write_ior_to_file (CORBA::String_var ior);
};
-
-
/*** Server Declaration ***/
ST_AMH_Server::ST_AMH_Server (int argc, ACE_TCHAR **argv)
diff --git a/TAO/tests/AMH_Oneway/server.cpp b/TAO/tests/AMH_Oneway/server.cpp
index 88512b95d35..086b43367e0 100644
--- a/TAO/tests/AMH_Oneway/server.cpp
+++ b/TAO/tests/AMH_Oneway/server.cpp
@@ -1,4 +1,3 @@
-
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_unistd.h"
#include "ace/Get_Opt.h"
@@ -113,8 +112,6 @@ private:
int write_ior_to_file (CORBA::String_var ior);
};
-
-
/*** Server Declaration ***/
ST_AMH_Server::ST_AMH_Server (int* argc, ACE_TCHAR **argv)
diff --git a/TAO/tests/AMI/run_test.pl b/TAO/tests/AMI/run_test.pl
index 13f9a99095c..884119168eb 100755
--- a/TAO/tests/AMI/run_test.pl
+++ b/TAO/tests/AMI/run_test.pl
@@ -63,7 +63,7 @@ if ($client->PutFile ($iorbase) == -1) {
$SV->Kill (); $SV->TimedWait (1);
exit 1;
}
-# copy the configruation file.
+# copy the configuration file.
if ($client->PutFile ($conf_file) == -1) {
print STDERR "ERROR: cannot set file <$client_conf>\n";
$SV->Kill (); $SV->TimedWait (1);
diff --git a/TAO/tests/AlternateIIOP/README b/TAO/tests/AlternateIIOP/README
index 18fcfb795c6..ea0923cc06c 100644
--- a/TAO/tests/AlternateIIOP/README
+++ b/TAO/tests/AlternateIIOP/README
@@ -1,10 +1,8 @@
/**
-
-
@page AlternateIIOP Test README File
- This test uses the binaries from the Hello test, but builds an
+This test uses the binaries from the Hello test, but builds an
IOR that contains multiple endpoints. The "hostname_in_ior" option is
used to add two unreachable endpoints along with a third that is
successful.
@@ -13,8 +11,8 @@ successful.
the test to allow for manual inspection using
$TAO_ROOT/utils/catior/catior.
- To run the test use the run_test.pl script:
+To run the test use the run_test.pl script:
$ ./run_test.pl
- the script returns 0 if the test was successful.
+the script returns 0 if the test was successful.
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/Big_Oneways/README b/TAO/tests/Big_Oneways/README
index 3de1a42ef28..7787ce966e0 100644
--- a/TAO/tests/Big_Oneways/README
+++ b/TAO/tests/Big_Oneways/README
@@ -1,23 +1,21 @@
/**
-
-
@page Big_Oneways Test README File
- This is a stress test for the non-blocking I/O features in the
+This is a stress test for the non-blocking I/O features in the
ORB. The test connects multiple peer processes together. Each
process sends messages to all its peers, using multiple threads to
generate the messages. Without non-blocking I/O the system soon
deadlocks.
- This is part of the regression testsuite for:
+This is part of the regression testsuite for:
http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=132
- To run the test use the run_test.pl script:
+To run the test use the run_test.pl script:
$ ./run_test.pl
- the script returns 0 if the test was successful.
+the script returns 0 if the test was successful.
*/
diff --git a/TAO/tests/Big_Oneways/Session.h b/TAO/tests/Big_Oneways/Session.h
index e085eaf5c3c..7dad8676bc4 100644
--- a/TAO/tests/Big_Oneways/Session.h
+++ b/TAO/tests/Big_Oneways/Session.h
@@ -85,7 +85,7 @@ private:
/// Helper class to run svc() in a separate thread
Session_Task task_;
- /// Barrier to start all threads simultaenously
+ /// Barrier to start all threads simultaneously
#if defined(ACE_HAS_THREADS)
typedef ACE_Thread_Barrier Barrier;
#else
diff --git a/TAO/tests/Bug_1361_Regression/Echo.h b/TAO/tests/Bug_1361_Regression/Echo.h
index e10e02a1773..2f7d8119694 100644
--- a/TAO/tests/Bug_1361_Regression/Echo.h
+++ b/TAO/tests/Bug_1361_Regression/Echo.h
@@ -13,14 +13,11 @@
class Echo : public POA_Test::Echo
{
public:
- Echo(CORBA::ORB_ptr orb,
- int abort_counter);
+ Echo(CORBA::ORB_ptr orb, int abort_counter);
virtual void echo_payload (Test::Payload const & data);
- virtual void echo_payload_out (
- Test::Payload_out data
- );
+ virtual void echo_payload_out (Test::Payload_out data);
private:
CORBA::ORB_var orb_;
diff --git a/TAO/tests/Bug_2702_Regression/fakeserver2.pl b/TAO/tests/Bug_2702_Regression/fakeserver2.pl
index 038c9deb64d..13d0a9a04ef 100755
--- a/TAO/tests/Bug_2702_Regression/fakeserver2.pl
+++ b/TAO/tests/Bug_2702_Regression/fakeserver2.pl
@@ -1,5 +1,4 @@
-#!/usr/bin/perl
-
+#!/usr/bin/env perl
use Socket;
use IO::Socket;
diff --git a/TAO/tests/Bug_3531b_Regression/server.cpp b/TAO/tests/Bug_3531b_Regression/server.cpp
index 93fdf3555f6..8863849edb7 100644
--- a/TAO/tests/Bug_3531b_Regression/server.cpp
+++ b/TAO/tests/Bug_3531b_Regression/server.cpp
@@ -203,10 +203,6 @@ public:
virtual ACE_Reactor_Impl* allocate_reactor_impl (void) const
{
ACE_Reactor_Impl *impl = 0;
- /*
- * Hook to specialize TAO's reactor implementation.
- */
- //@@ TAO_REACTOR_SPL_COMMENT_HOOK_START
ACE_NEW_RETURN (impl,
Test_Reactor (ACE::max_handles (),
1,
@@ -215,14 +211,13 @@ public:
this->reactor_mask_signals_,
ACE_Select_Reactor_Token::LIFO),
0);
- //@@ TAO_REACTOR_SPL_COMMENT_HOOK_END
return impl;
}
private:
};
-// force export flag otherwise Windoze will complain
+// force export flag otherwise Windows will complain
#define TAO_Test_Export ACE_Proper_Export_Flag
ACE_FACTORY_DEFINE (TAO_Test, Test_Resource_Factory)
diff --git a/TAO/tests/IDL_Test/IDL_Test.mpc b/TAO/tests/IDL_Test/IDL_Test.mpc
index 8ef9a6b2d1e..7ce1884e8bc 100644
--- a/TAO/tests/IDL_Test/IDL_Test.mpc
+++ b/TAO/tests/IDL_Test/IDL_Test.mpc
@@ -30,7 +30,7 @@ project(*IDL): taoserver, messaging, gen_ostream {
gperf.idl
interface.idl
nested_scope.idl
-
+ keywords.idl
old_constants.idl
simple.idl
simple2.idl
@@ -39,7 +39,6 @@ project(*IDL): taoserver, messaging, gen_ostream {
old_struct.idl
old_union.idl
old_union2.idl
-
params.idl
reopened_modules.idl
struct.idl
@@ -73,7 +72,6 @@ project(*IDL): taoserver, messaging, gen_ostream {
array_only.idl
constants.idl
generic_object.idl
- keywords.idl
inherit.idl
module.idl
@@ -162,7 +160,6 @@ project(*DLL): taoidldefaults, taolib, messaging {
inheritS.cpp
interfaceC.cpp
interfaceS.cpp
- keywordsA.cpp
keywordsC.cpp
keywordsS.cpp
loader_constC.cpp
diff --git a/TAO/tests/IDL_Test/README b/TAO/tests/IDL_Test/README
index 4533b382ce1..386728b4915 100644
--- a/TAO/tests/IDL_Test/README
+++ b/TAO/tests/IDL_Test/README
@@ -1,5 +1,3 @@
-
-
This test is a collection of IDL files that once caused IDL compiler
or C++ compiler errors, plus a dummy main.cpp for the build. There is
no execution check in this test, the only outcome of interest being
diff --git a/TAO/tests/IDL_Test/enum_in_struct.idl b/TAO/tests/IDL_Test/enum_in_struct.idl
index 9b71f864eb3..cd0d4ee97f5 100644
--- a/TAO/tests/IDL_Test/enum_in_struct.idl
+++ b/TAO/tests/IDL_Test/enum_in_struct.idl
@@ -61,7 +61,7 @@ struct decl_heavy_struct
};
// Similar case for exception included here - no sense
-// in making a separte file for exceptions, which are
+// in making a separate file for exceptions, which are
// almost the same as structs.
exception ErrorException
diff --git a/TAO/tests/IDL_Test/keywords.idl b/TAO/tests/IDL_Test/keywords.idl
index 561e511b996..08f7233ea91 100644
--- a/TAO/tests/IDL_Test/keywords.idl
+++ b/TAO/tests/IDL_Test/keywords.idl
@@ -1,4 +1,3 @@
-
//=============================================================================
/**
* @file keywords.idl
@@ -8,31 +7,36 @@
* compiler. This test is to make sure the problems
* stay fixed.
*
- *
* @author Jeff Parsons <parsons@cs.wustl.edu> and TAO users.
*/
//=============================================================================
-
// All these identifiers should be accepted, but
// prepended with _cxx_.
-// 'private' and 'public' have been commented out because they are now, in
-// addition to being C++ keywords, IDL keywords, and thus are illegal
-// except when used as such.
+// IDL identifiers are escaped using _
struct Keywords
{
unsigned short or;
char or_eq;
-// octet private;
+ octet _private;
boolean protected;
-// float public;
+ float _public;
double int;
};
+struct _Object {
+ long long id;
+};
+typedef sequence<_Object> ObjectSeq;
+struct Objects {
+ ObjectSeq objs;
+};
+
interface Testing
{
void foo (in string namespace);
+ void bar (in Objects foo);
};
diff --git a/TAO/tests/IDL_Test/typecode.idl b/TAO/tests/IDL_Test/typecode.idl
index d4c1f051da1..4ec95f616a3 100644
--- a/TAO/tests/IDL_Test/typecode.idl
+++ b/TAO/tests/IDL_Test/typecode.idl
@@ -1,16 +1,13 @@
-
//=============================================================================
/**
* @file typecode.idl
*
* Test a sequence of typecodes
*
- *
* @author Johnny Willemsen <jwillemsen@remedy.nl>
*/
//=============================================================================
-
#include "orb.idl"
module MyModule
diff --git a/TAO/tests/OBV/Collocated/Forward/TreeBase.idl b/TAO/tests/OBV/Collocated/Forward/TreeBase.idl
index 666b02e83fe..57d4280b016 100644
--- a/TAO/tests/OBV/Collocated/Forward/TreeBase.idl
+++ b/TAO/tests/OBV/Collocated/Forward/TreeBase.idl
@@ -1,7 +1,7 @@
// Forward declaration to make recursive construct.
valuetype BaseNode;
-//@@ Dosn't work for now
+//@@ Doesn't work for now
//typedef sequence<BaseNode> BaseNodeSeq;
// Performance test: One may try to pass
diff --git a/TAO/tests/OBV/Forward/TreeBase.idl b/TAO/tests/OBV/Forward/TreeBase.idl
index 666b02e83fe..57d4280b016 100644
--- a/TAO/tests/OBV/Forward/TreeBase.idl
+++ b/TAO/tests/OBV/Forward/TreeBase.idl
@@ -1,7 +1,7 @@
// Forward declaration to make recursive construct.
valuetype BaseNode;
-//@@ Dosn't work for now
+//@@ Doesn't work for now
//typedef sequence<BaseNode> BaseNodeSeq;
// Performance test: One may try to pass
diff --git a/TAO/tests/ORB_shutdown/README b/TAO/tests/ORB_shutdown/README
index 89eecda60dc..9e57fb2934e 100644
--- a/TAO/tests/ORB_shutdown/README
+++ b/TAO/tests/ORB_shutdown/README
@@ -7,7 +7,7 @@
The simplest possible test for TAO's shutdown procedure. This
test is basically a regression for BUG 1265. Please see BUG 1265 in
- http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1265
+ http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1265
for details.
diff --git a/TAO/tests/Portable_Interceptors/Bug_3582/Client_Request_Interceptor.h b/TAO/tests/Portable_Interceptors/Bug_3582/Client_Request_Interceptor.h
index 3753fc5ccdc..c9090eae741 100644
--- a/TAO/tests/Portable_Interceptors/Bug_3582/Client_Request_Interceptor.h
+++ b/TAO/tests/Portable_Interceptors/Bug_3582/Client_Request_Interceptor.h
@@ -27,7 +27,6 @@ class Client_Request_Interceptor
public virtual ::CORBA::LocalObject
{
public:
-
/// Constructor.
Client_Request_Interceptor (const char *orb_id,
const char *forward_str);
@@ -63,7 +62,6 @@ public:
//@}
private:
-
///The ID of the ORB this interceptor is registered with.
CORBA::String_var orb_id_;
@@ -75,7 +73,6 @@ private:
CORBA::ULong request_count_;
CORBA::String_var forward_str_;
-
};
#if defined(_MSC_VER)
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 */
diff --git a/TAO/tests/Portable_Interceptors/ForwardRequest/Client_Request_Interceptor.h b/TAO/tests/Portable_Interceptors/ForwardRequest/Client_Request_Interceptor.h
index 37728cbd5b4..df858f6df1f 100644
--- a/TAO/tests/Portable_Interceptors/ForwardRequest/Client_Request_Interceptor.h
+++ b/TAO/tests/Portable_Interceptors/ForwardRequest/Client_Request_Interceptor.h
@@ -48,7 +48,6 @@ class Client_Request_Interceptor
public virtual ::CORBA::LocalObject
{
public:
-
/// Constructor.
Client_Request_Interceptor (const char *orb_id,
const char *forward_str);
@@ -84,7 +83,6 @@ public:
//@}
private:
-
///The ID of the ORB this interceptor is registered with.
CORBA::String_var orb_id_;
@@ -98,7 +96,6 @@ private:
/// Stringified reference to the object the initial request will be
/// forwarded to by this interceptor.
CORBA::String_var forward_str_;
-
};
#if defined(_MSC_VER)
diff --git a/TAO/tests/Portable_Interceptors/PICurrent/ClientORBInitializer.h b/TAO/tests/Portable_Interceptors/PICurrent/ClientORBInitializer.h
index d915986215d..d4a5cbd430e 100644
--- a/TAO/tests/Portable_Interceptors/PICurrent/ClientORBInitializer.h
+++ b/TAO/tests/Portable_Interceptors/PICurrent/ClientORBInitializer.h
@@ -25,7 +25,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-
// Test's SlotId made global for ease of implementation.
// It is initialized to a large number to make it obvious when the
// SlotId is invalid.
@@ -34,7 +33,6 @@
// if thread-safety is an issue!!!
extern PortableInterceptor::SlotId slot_id;
-
/**
* @class ClientORBInitializer
*
@@ -48,7 +46,6 @@ class ClientORBInitializer :
public virtual ::CORBA::LocalObject
{
public:
-
/**
* @name Methods Required by the ORBInitializer Interface
*
@@ -65,7 +62,6 @@ public:
virtual void post_init (
PortableInterceptor::ORBInitInfo_ptr info);
//@}
-
};
#if defined(_MSC_VER)
diff --git a/TAO/tests/Portable_Interceptors/PICurrent/ClientRequestInterceptor.h b/TAO/tests/Portable_Interceptors/PICurrent/ClientRequestInterceptor.h
index 7b7f18aac6b..0bca4b49de4 100644
--- a/TAO/tests/Portable_Interceptors/PICurrent/ClientRequestInterceptor.h
+++ b/TAO/tests/Portable_Interceptors/PICurrent/ClientRequestInterceptor.h
@@ -43,7 +43,6 @@ class ClientRequestInterceptor
public virtual ::CORBA::LocalObject
{
public:
-
/// Constructor.
ClientRequestInterceptor (PortableInterceptor::SlotId slot_id,
PortableInterceptor::Current_ptr pi_current);
@@ -79,14 +78,12 @@ public:
//@}
private:
-
/// The PICurrent slot ID allocated to this application during ORB
/// initialization.
PortableInterceptor::SlotId slot_id_;
/// Reference to the PICurrent object.
PortableInterceptor::Current_var pi_current_;
-
};
#if defined(_MSC_VER)
diff --git a/TAO/tests/Portable_Interceptors/PICurrent/ClientRequestInterceptor2.h b/TAO/tests/Portable_Interceptors/PICurrent/ClientRequestInterceptor2.h
index 4d3bafe639d..bb69b5c1e82 100644
--- a/TAO/tests/Portable_Interceptors/PICurrent/ClientRequestInterceptor2.h
+++ b/TAO/tests/Portable_Interceptors/PICurrent/ClientRequestInterceptor2.h
@@ -40,7 +40,6 @@ class ClientRequestInterceptor2
public virtual ::CORBA::LocalObject
{
public:
-
/// Constructor.
ClientRequestInterceptor2 (PortableInterceptor::SlotId slot_id);
@@ -75,11 +74,9 @@ public:
//@}
private:
-
/// The PICurrent slot ID allocated to this application during ORB
/// initialization.
PortableInterceptor::SlotId slot_id_;
-
};
#if defined(_MSC_VER)
diff --git a/TAO/tests/Portable_Interceptors/PICurrent/README b/TAO/tests/Portable_Interceptors/PICurrent/README
index 605ac2c1260..98e491468d7 100644
--- a/TAO/tests/Portable_Interceptors/PICurrent/README
+++ b/TAO/tests/Portable_Interceptors/PICurrent/README
@@ -1,5 +1,3 @@
-
-
This test verifies that the "PICurrent" object semantics are correct
on both the client side and the server side. In particular, it
attempts to make sure the request scope current (RSC) and thread scope
diff --git a/TAO/tests/Portable_Interceptors/PICurrent/ServerORBInitializer.h b/TAO/tests/Portable_Interceptors/PICurrent/ServerORBInitializer.h
index fe70c86f8eb..4985cf7d4de 100644
--- a/TAO/tests/Portable_Interceptors/PICurrent/ServerORBInitializer.h
+++ b/TAO/tests/Portable_Interceptors/PICurrent/ServerORBInitializer.h
@@ -49,7 +49,6 @@ class ServerORBInitializer :
public virtual ::CORBA::LocalObject
{
public:
-
/**
* @name Methods Required by the ORBInitializer Interface
*
@@ -66,7 +65,6 @@ public:
virtual void post_init (
PortableInterceptor::ORBInitInfo_ptr info);
//@}
-
};
#if defined(_MSC_VER)
diff --git a/TAO/tests/Portable_Interceptors/PICurrent/ServerRequestInterceptor.h b/TAO/tests/Portable_Interceptors/PICurrent/ServerRequestInterceptor.h
index 8be04ba5395..d9990d5b102 100644
--- a/TAO/tests/Portable_Interceptors/PICurrent/ServerRequestInterceptor.h
+++ b/TAO/tests/Portable_Interceptors/PICurrent/ServerRequestInterceptor.h
@@ -42,7 +42,6 @@ class ServerRequestInterceptor
public virtual ::CORBA::LocalObject
{
public:
-
/// Constructor.
ServerRequestInterceptor (PortableInterceptor::SlotId id,
PortableInterceptor::Current_ptr pi_current);
@@ -78,14 +77,12 @@ public:
//@}
private:
-
/// The PICurrent slot ID allocated to this application during ORB
/// initialization.
PortableInterceptor::SlotId slot_id_;
/// Reference to the PICurrent object.
PortableInterceptor::Current_var pi_current_;
-
};
#if defined(_MSC_VER)
diff --git a/TAO/tests/Portable_Interceptors/PICurrent/test_i.h b/TAO/tests/Portable_Interceptors/PICurrent/test_i.h
index cda81e4f4ed..9e370707c0e 100644
--- a/TAO/tests/Portable_Interceptors/PICurrent/test_i.h
+++ b/TAO/tests/Portable_Interceptors/PICurrent/test_i.h
@@ -29,7 +29,6 @@
class test_i : public virtual POA_PICurrentTest::test
{
public:
-
/// Constructor.
test_i (PortableInterceptor::Current_ptr current,
PortableInterceptor::SlotId id,
@@ -53,7 +52,6 @@ public:
virtual void shutdown (void);
private:
-
/// Reference to the PICurrent object.
PortableInterceptor::Current_var current_;
@@ -62,7 +60,6 @@ private:
/// Pseudo-reference to the ORB.
CORBA::ORB_var orb_;
-
};
#endif /* TEST_I_H */
diff --git a/TAO/tests/Portable_Interceptors/Redirection/Client_Request_Interceptor.h b/TAO/tests/Portable_Interceptors/Redirection/Client_Request_Interceptor.h
index 3753fc5ccdc..c9090eae741 100644
--- a/TAO/tests/Portable_Interceptors/Redirection/Client_Request_Interceptor.h
+++ b/TAO/tests/Portable_Interceptors/Redirection/Client_Request_Interceptor.h
@@ -27,7 +27,6 @@ class Client_Request_Interceptor
public virtual ::CORBA::LocalObject
{
public:
-
/// Constructor.
Client_Request_Interceptor (const char *orb_id,
const char *forward_str);
@@ -63,7 +62,6 @@ public:
//@}
private:
-
///The ID of the ORB this interceptor is registered with.
CORBA::String_var orb_id_;
@@ -75,7 +73,6 @@ private:
CORBA::ULong request_count_;
CORBA::String_var forward_str_;
-
};
#if defined(_MSC_VER)
diff --git a/TAO/tests/Portable_Interceptors/Redirection/Server_Request_Interceptor.h b/TAO/tests/Portable_Interceptors/Redirection/Server_Request_Interceptor.h
index 1f2abcbc24b..5907543ac8b 100644
--- a/TAO/tests/Portable_Interceptors/Redirection/Server_Request_Interceptor.h
+++ b/TAO/tests/Portable_Interceptors/Redirection/Server_Request_Interceptor.h
@@ -26,7 +26,6 @@ class Server_Request_Interceptor
public virtual ::CORBA::LocalObject
{
public:
-
/// Constructor.
Server_Request_Interceptor (void);
@@ -61,15 +60,12 @@ public:
//@}
protected:
-
/// Destructor.
~Server_Request_Interceptor (void);
private:
-
/// The number of requests intercepted by this interceptor.
CORBA::ULong request_count_;
-
};
#if defined(_MSC_VER)
diff --git a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Client_ORBInitializer.h b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Client_ORBInitializer.h
index a6adcaee7d7..66aef9277e6 100644
--- a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Client_ORBInitializer.h
+++ b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Client_ORBInitializer.h
@@ -8,7 +8,6 @@
*/
//=============================================================================
-
#ifndef TAO_CLIENT_ORB_INITIALIZER_H
#define TAO_CLIENT_ORB_INITIALIZER_H
@@ -42,11 +41,9 @@ class Client_ORBInitializer :
public virtual ::CORBA::LocalObject
{
public:
-
virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info);
virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info);
-
};
#if defined(_MSC_VER)
diff --git a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Client_Request_Interceptor.h b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Client_Request_Interceptor.h
index 514796e720e..0b6a17e2bb0 100644
--- a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Client_Request_Interceptor.h
+++ b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Client_Request_Interceptor.h
@@ -43,7 +43,6 @@ class Client_Request_Interceptor
public virtual Request_Interceptor
{
public:
-
/// Constructor.
Client_Request_Interceptor (const char *name);
@@ -73,12 +72,10 @@ public:
//@}
private:
-
// Returns 1 if the client-side test is currently being run, and 0
// otherwise.
CORBA::Boolean client_side_test (
PortableInterceptor::ClientRequestInfo_ptr info);
-
};
#if defined(_MSC_VER)
diff --git a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/README b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/README
index a002c1bbc16..86f889bfa0c 100644
--- a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/README
+++ b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/README
@@ -1,12 +1,9 @@
-
-
NOTE: The code in this test is highly specialized and very brittle.
Do not use it as a model for "real world" interceptor code.
-
This test verifies that proper request interceptor flow semantics
occur during a given request/invocation. It does so by executing a
-canned (hard-coded) set of scenarios. Each scenario excercises a
+canned (hard-coded) set of scenarios. Each scenario exercises a
specific flow behavior. All scenarios correspond to the ones detailed
in the Portable Interceptor specification (00-04-05). They are listed
below:
diff --git a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Request_Interceptor.h b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Request_Interceptor.h
index ded8412f970..662b8e79d85 100644
--- a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Request_Interceptor.h
+++ b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Request_Interceptor.h
@@ -42,7 +42,6 @@ class Request_Interceptor
: public virtual PortableInterceptor::Interceptor
{
public:
-
/// Constructor.
Request_Interceptor (const char *name);
@@ -62,7 +61,6 @@ public:
//@}
protected:
-
/// The name of this interceptor.
CORBA::String_var name_;
@@ -75,7 +73,6 @@ protected:
/// called.
ACE_Atomic_Op<TAO_SYNCH_MUTEX, CORBA::ULong>
ending_interception_point_count_;
-
};
#if defined(_MSC_VER)
diff --git a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Server_ORBInitializer.h b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Server_ORBInitializer.h
index bf6e9a79b15..4f9f1a17d5f 100644
--- a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Server_ORBInitializer.h
+++ b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Server_ORBInitializer.h
@@ -42,11 +42,9 @@ class Server_ORBInitializer :
public virtual ::CORBA::LocalObject
{
public:
-
virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info);
virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info);
-
};
#if defined(_MSC_VER)
diff --git a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Server_Request_Interceptor.cpp b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Server_Request_Interceptor.cpp
index 435eb4e6a3d..0caaf005906 100644
--- a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Server_Request_Interceptor.cpp
+++ b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Server_Request_Interceptor.cpp
@@ -15,7 +15,6 @@ void
Server_Request_Interceptor::receive_request_service_contexts (
PortableInterceptor::ServerRequestInfo_ptr ri)
{
-
CORBA::Boolean server_side =
this->server_side_test (ri);
@@ -58,7 +57,6 @@ void
Server_Request_Interceptor::receive_request (
PortableInterceptor::ServerRequestInfo_ptr ri)
{
-
CORBA::Boolean server_side =
this->server_side_test (ri);
@@ -129,7 +127,6 @@ void
Server_Request_Interceptor::send_exception (
PortableInterceptor::ServerRequestInfo_ptr ri)
{
-
CORBA::Boolean server_side =
this->server_side_test (ri);
@@ -206,7 +203,6 @@ void
Server_Request_Interceptor::send_other (
PortableInterceptor::ServerRequestInfo_ptr ri)
{
-
CORBA::Boolean server_side =
this->server_side_test (ri);
diff --git a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Server_Request_Interceptor.h b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Server_Request_Interceptor.h
index 524842dd5a3..79f396b40fc 100644
--- a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Server_Request_Interceptor.h
+++ b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/Server_Request_Interceptor.h
@@ -44,7 +44,6 @@ class Server_Request_Interceptor
public virtual Request_Interceptor
{
public:
-
/// Constructor. Accepts the name of the interceptor.
Server_Request_Interceptor (const char *name);
@@ -74,14 +73,12 @@ public:
//@}
private:
-
/// Returns 1 if the server-side test is currently being run, and 0
/// otherwise.
CORBA::Boolean server_side_test (
PortableInterceptor::ServerRequestInfo_ptr info);
private:
-
/// Variable used to keep track of the scenario count. Used to get
/// around the inability to call RequestInfo::arguments() in the
/// receive_service_contexts() interception point.
diff --git a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/test_i.h b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/test_i.h
index 654eb1a4a1b..91260b771db 100644
--- a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/test_i.h
+++ b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/test_i.h
@@ -26,7 +26,6 @@
class test_i : public virtual POA_Test
{
public:
-
/// Constructor.
test_i (CORBA::ORB_ptr orb);
@@ -41,10 +40,8 @@ public:
virtual void shutdown (void);
private:
-
/// Pseudo-reference to the ORB.
CORBA::ORB_var orb_;
-
};
#endif /* TEST_I_H */
diff --git a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/README b/TAO/tests/RTCORBA/Dynamic_Thread_Pool/README
index 94074ab8aeb..3286dcbe9ad 100644
--- a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/README
+++ b/TAO/tests/RTCORBA/Dynamic_Thread_Pool/README
@@ -1,5 +1,3 @@
-
-
Description:
This is a simple test for a RT thread-pool server. It creates a
server process with multiple thread pools, POAs, and servants. The
@@ -7,4 +5,4 @@ test also spawns multiple clients for each servant. The servants with
multiple threads in their thread-pool respond faster than the servants
with a single thread thread-pool.
-See run_test.pl to see how to run this test. \ No newline at end of file
+See run_test.pl to see how to run this test.
diff --git a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/server.cpp b/TAO/tests/RTCORBA/Dynamic_Thread_Pool/server.cpp
index 7bdf6bff90d..3de5fa0d2bb 100644
--- a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/server.cpp
+++ b/TAO/tests/RTCORBA/Dynamic_Thread_Pool/server.cpp
@@ -150,7 +150,6 @@ create_POA_and_register_servant (CORBA::Policy_ptr threadpool_policy,
class Task : public ACE_Task_Base
{
public:
-
Task (ACE_Thread_Manager &thread_manager,
CORBA::ORB_ptr orb);
diff --git a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/test_i.h b/TAO/tests/RTCORBA/Dynamic_Thread_Pool/test_i.h
index 3dafef71563..17dc7cbdea7 100644
--- a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/test_i.h
+++ b/TAO/tests/RTCORBA/Dynamic_Thread_Pool/test_i.h
@@ -8,8 +8,7 @@
#include "testS.h"
-class test_i :
- public POA_test
+class test_i : public POA_test
{
public:
/// Constructor.
diff --git a/TAO/tests/Sequence_Iterators/.gitignore b/TAO/tests/Sequence_Iterators/.gitignore
deleted file mode 100644
index c24a6328561..00000000000
--- a/TAO/tests/Sequence_Iterators/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-/Bounded_String
-/StringSeq
-/Unbounded_Objectref
-/Unbounded_Value
diff --git a/TAO/tests/Sequence_Iterators/Bounded_String.cpp b/TAO/tests/Sequence_Iterators/Bounded_String.cpp
deleted file mode 100644
index 4e10ab58bf0..00000000000
--- a/TAO/tests/Sequence_Iterators/Bounded_String.cpp
+++ /dev/null
@@ -1,673 +0,0 @@
-/**
- * @file Bounded_String.cpp
- *
- * @brief test for STL iterator behaviour of CORBA bounded string sequence
- *
- * @author Friedhelm Wolf (fwolf@dre.vanderbilt.edu)
- */
-
-#include "tao/Bounded_Basic_String_Sequence_T.h"
-#include "tao/CORBA_String.h"
-#include "ace/Log_Msg.h"
-#include "ace/OS_NS_string.h"
-
-#include <iostream>
-#include <iterator>
-#include <sstream>
-
-#if defined TAO_HAS_SEQUENCE_ITERATORS && TAO_HAS_SEQUENCE_ITERATORS == 1
-
-typedef TAO::bounded_basic_string_sequence<char, 4> s_sequence;
-
-#define FAIL_RETURN_IF(CONDITION) \
- if (CONDITION) \
- { \
- ACE_DEBUG ((LM_ERROR, ACE_TEXT ("\tFailed at %N:%l\n"))); \
- return 1; \
- }
-
-template <typename ITERATOR_T>
-int test_sequence ()
-{
- s_sequence a;
-
- // test equality operator
- FAIL_RETURN_IF (!(a.begin () == a.begin ()));
-
- // test non-equality operator
- FAIL_RETURN_IF (a.end () != a.end ());
-
- // test for correct behaviour for empty sequence
- FAIL_RETURN_IF (a.begin() != a.end ());
-
- // setup of an example sequence
- a.length (4);
-
- const char * elem0_cstr = "elem0";
- const char * elem1_cstr = "elem1";
- const char * elem2_cstr = "elem2";
- const char * elem3_cstr = "elem3";
-
- a[0] = CORBA::string_dup (elem0_cstr);
- a[1] = CORBA::string_dup (elem1_cstr);
- a[2] = CORBA::string_dup (elem2_cstr);
- a[3] = CORBA::string_dup (elem3_cstr);
-
- // test iterator copy constructor
- ITERATOR_T a_it (a.begin ());
- FAIL_RETURN_IF (a_it != a.begin ());
-
- // test assignment operator
- a_it = a.begin ();
- FAIL_RETURN_IF (a_it != a.begin ());
-
- // test non const dereferencing
- // JWH2 - I don't think this test makes sense. I believe the compiler
- // will always return a const value since the dereference is on
- // the right hand side of the assignment (i.e., r value).
- //char* value0 = *a_it;
- //FAIL_RETURN_IF (ACE_OS::strcmp (value0, elem0_cstr) != 0);
-
- // test const dereferencing
- const char* const value1 = *a_it;
- FAIL_RETURN_IF (ACE_OS::strcmp (value1, elem0_cstr) != 0);
-
- // test increment operation
- a_it++;
- FAIL_RETURN_IF (a_it == a.begin());
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem1_cstr) != 0);
-
- // test < operator
- FAIL_RETURN_IF (!(a.begin () < a_it));
- FAIL_RETURN_IF (a_it < a.begin ());
-
- // test difference type
- int a_diff = a_it - a.begin ();
- FAIL_RETURN_IF (a_diff != 1);
-
- // test copy constructor
- ITERATOR_T a_it1 (a_it);
- FAIL_RETURN_IF (a_it1 != a_it);
-
- // test preincrement operator
- ++a_it1;
- FAIL_RETURN_IF ((a_it1 - a_it) != 1);
-
- // test = and += operator
- ITERATOR_T a_it2 = a_it += 3;
- FAIL_RETURN_IF (a_it2 != a_it);
- FAIL_RETURN_IF ((a_it - a_it1) != 2);
-
- // test + operator
- a_it2 = a_it1 + 3;
- FAIL_RETURN_IF ((a_it2 - a_it1) != 3);
-
- // test post-decrement operation
- a_it = a.end ();
- a_it--;
- FAIL_RETURN_IF (a_it == a.end ());
- FAIL_RETURN_IF ((a.end () - a_it) != 1);
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem3_cstr) != 0);
-
- // test pre-decrement operator
- a_it = a.end ();
- --a_it;
- FAIL_RETURN_IF (a_it == a.end ());
- FAIL_RETURN_IF ((a.end () - a_it) != 1);
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem3_cstr) != 0);
-
- // test -= operator
- a_it -= 3;
- FAIL_RETURN_IF ((a_it1 - a_it) != 2);
-
- // test - operator
- a_it2 = a_it1 - 2;
- FAIL_RETURN_IF ((a_it1 - a_it2) != 2);
-
- // test operator[] read
- a_it = a.begin ();
- FAIL_RETURN_IF (ACE_OS::strcmp (a_it[0],a[0]) != 0);
- a_it += 2;
- FAIL_RETURN_IF (ACE_OS::strcmp (a_it[0],a[2]) != 0);
-
- // test operator[] write
- // NOTE: This now changes the sequence a.
- // NOTE: This does not work for const_iterators which are
- // sometimes used in this function.
- // a_it[0] = CORBA::string_dup (elem0_cstr);
- // FAIL_RETURN_IF (ACE_OS::strcmp (a[2],elem0_cstr) != 0);
-
- // reset content of sequence a
- //a[2] = CORBA::string_dup (elem2_cstr);
-
- // test for loop behaviour
- s_sequence b = a;
- ITERATOR_T b_it = b.begin ();
-
- for (a_it = a.begin ();
- a_it != a.end ();
- a_it++, b_it++)
- {
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, *b_it) != 0);
- }
-
- s_sequence test;
- test.length (4);
-
- std::copy (a.begin (),
- a.end (),
- test.begin ());
-
- FAIL_RETURN_IF (test.length () != a.length ());
-
- ITERATOR_T copytest_iter = test.begin ();
- for (ITERATOR_T copya_iter = a.begin ();
- copya_iter != a.end ();
- ++copya_iter, ++copytest_iter)
- {
- FAIL_RETURN_IF (ACE_OS::strcmp (*copya_iter, *copytest_iter) != 0);
- }
-
- /// Testing - using ostream_iterator
- std::ostringstream ostream;
- std::copy (a.begin (),
- a.end (),
- // JWH2 - I changed value_type to const_value_type. Is that
- // the correct approach?
- std::ostream_iterator<s_sequence::const_value_type> (ostream,
- "\n"));
-
- FAIL_RETURN_IF (
- ostream.str ().compare ("elem0\nelem1\nelem2\nelem3\n") != 0);
-
- return 0;
-}
-
-//-----------------------------------------------------------------------------
-
-template <typename ITERATOR_T>
-int test_const_sequence ()
-{
- // setup of an example sequence
- s_sequence setup;
- setup.length (4);
-
- const char * elem0_cstr = "elem0";
- const char * elem1_cstr = "elem1";
- const char * elem2_cstr = "elem2";
- const char * elem3_cstr = "elem3";
-
- setup[0] = CORBA::string_dup (elem0_cstr);
- setup[1] = CORBA::string_dup (elem1_cstr);
- setup[2] = CORBA::string_dup (elem2_cstr);
- setup[3] = CORBA::string_dup (elem3_cstr);
-
- const s_sequence a = setup;
-
- // test equality operator
- FAIL_RETURN_IF (!(a.begin () == a.begin ()));
-
- // test non-equality operator
- FAIL_RETURN_IF (a.end () != a.end ());
-
- // test iterator copy constructor
- ITERATOR_T a_it (a.begin ());
- FAIL_RETURN_IF (a_it != a.begin ());
-
- // test assignment operator
- a_it = a.begin ();
- FAIL_RETURN_IF (a_it != a.begin ());
-
- // test non const dereferencing
- // JWH2 - I don't think this test makes sense. I believe the compiler
- // will always return a const value since the dereference is on
- // the right hand side of the assignment (i.e., r value).
- //char* value0 = *a_it;
- //FAIL_RETURN_IF (ACE_OS::strcmp (value0, elem0_cstr) != 0);
-
- // test const dereferencing
- const char* const value1 = *a_it;
- FAIL_RETURN_IF (ACE_OS::strcmp (value1, elem0_cstr) != 0);
-
- // test increment operation
- a_it++;
- FAIL_RETURN_IF (a_it == a.begin());
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem1_cstr) != 0);
-
- // test < operator
- FAIL_RETURN_IF (!(a.begin () < a_it));
- FAIL_RETURN_IF (a_it < a.begin ());
-
- // test difference type
- int a_diff = a_it - a.begin ();
- FAIL_RETURN_IF (a_diff != 1);
-
- // test copy constructor
- ITERATOR_T a_it1 (a_it);
- FAIL_RETURN_IF (a_it1 != a_it);
-
- // test preincrement operator
- ++a_it1;
- FAIL_RETURN_IF ((a_it1 - a_it) != 1);
-
- // test = and += operator
- ITERATOR_T a_it2 = a_it += 3;
- FAIL_RETURN_IF (a_it2 != a_it);
- FAIL_RETURN_IF ((a_it - a_it1) != 2);
-
- // test + operator
- a_it2 = a_it1 + 3;
- FAIL_RETURN_IF ((a_it2 - a_it1) != 3);
-
- // test post-decrement operation
- a_it = a.end ();
- a_it--;
- FAIL_RETURN_IF (a_it == a.end ());
- FAIL_RETURN_IF ((a.end () - a_it) != 1);
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem3_cstr) != 0);
-
- // test pre-decrement operator
- a_it = a.end ();
- --a_it;
- FAIL_RETURN_IF (a_it == a.end ());
- FAIL_RETURN_IF ((a.end () - a_it) != 1);
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem3_cstr) != 0);
-
- // test -= operator
- a_it -= 3;
- FAIL_RETURN_IF ((a_it1 - a_it) != 2);
-
- // test - operator
- a_it2 = a_it1 - 2;
- FAIL_RETURN_IF ((a_it1 - a_it2) != 2);
-
- // test operator[] read
- a_it = a.begin ();
- FAIL_RETURN_IF (ACE_OS::strcmp (a_it[0],a[0]) != 0);
- a_it += 2;
- FAIL_RETURN_IF (ACE_OS::strcmp (a_it[0],a[2]) != 0);
-
- // test for loop behaviour
- s_sequence b = a;
- ITERATOR_T b_it = b.begin ();
-
- for (a_it = a.begin ();
- a_it != a.end ();
- a_it++, b_it++)
- {
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, *b_it) != 0);
- }
-
- s_sequence test;
- test.length (4);
-
- std::copy (a.begin (),
- a.end (),
- test.begin ());
-
- FAIL_RETURN_IF (test.length () != a.length ());
-
- ITERATOR_T copytest_iter = test.begin ();
- for (ITERATOR_T copya_iter = a.begin ();
- copya_iter != a.end ();
- ++copya_iter, ++copytest_iter)
- {
- FAIL_RETURN_IF (ACE_OS::strcmp (*copya_iter, *copytest_iter) != 0);
- }
-
- /// Testing - using ostream_iterator
- std::ostringstream ostream;
- std::copy (a.begin (),
- a.end (),
- // JWH2 - I changed value_type to const_value_type. Is that
- // the correct approach?
- std::ostream_iterator<s_sequence::const_value_type> (ostream,
- "\n"));
-
- FAIL_RETURN_IF (
- ostream.str ().compare ("elem0\nelem1\nelem2\nelem3\n") != 0);
-
- return 0;
-}
-
-//-----------------------------------------------------------------------------
-
-template <typename REVERSE_ITERATOR_T>
-int test_sequence_reverse ()
-{
- s_sequence a;
-
- // test equality operator
- FAIL_RETURN_IF (!(a.begin () == a.begin ()));
-
- // test non-equality operator
- FAIL_RETURN_IF (a.end () != a.end ());
-
- // test for correct behaviour for empty sequence
-
- FAIL_RETURN_IF (a.begin() != a.end ());
-
- // setup of an example sequence
- a.length (4);
-
- const char * elem0_cstr = "elem0";
- const char * elem1_cstr = "elem1";
- const char * elem2_cstr = "elem2";
- const char * elem3_cstr = "elem3";
-
- a.length (4);
- a[0] = CORBA::string_dup (elem0_cstr);
- a[1] = CORBA::string_dup (elem1_cstr);
- a[2] = CORBA::string_dup (elem2_cstr);
- a[3] = CORBA::string_dup (elem3_cstr);
-
- // test iterator copy constructor
- REVERSE_ITERATOR_T a_it (a.rbegin ());
- FAIL_RETURN_IF (a_it != a.rbegin ());
-
- // test assignment operator
- a_it = a.rbegin ();
- FAIL_RETURN_IF (a_it != a.rbegin ());
-
- // test non const dereferencing
- // JWH2 - I don't think this test makes sense. I believe the compiler
- // will always return a const value since the dereference is on
- // the right hand side of the assignment (i.e., r value).
- //char* value0 = *a_it;
- //FAIL_RETURN_IF (ACE_OS::strcmp (value0, elem3_cstr) != 0);
-
- // test const dereferencing
- const char* const value1 = *a_it;
- FAIL_RETURN_IF (ACE_OS::strcmp (value1, elem3_cstr) != 0);
-
- // test increment operation
- a_it++;
- FAIL_RETURN_IF (a_it == a.rbegin());
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem2_cstr) != 0);
-
- // test < operator
- FAIL_RETURN_IF (!(a.rbegin () < a_it));
- FAIL_RETURN_IF (a_it < a.rbegin ());
-
- // test difference type
- int a_diff = a_it - a.rbegin ();
- FAIL_RETURN_IF (a_diff != 1);
-
- // test copy constructor
- REVERSE_ITERATOR_T a_it1 (a_it);
- FAIL_RETURN_IF (a_it1 != a_it);
-
- // test preincrement operator
- ++a_it1;
- FAIL_RETURN_IF ((a_it1 - a_it) != 1);
-
- // test = and += operator
- REVERSE_ITERATOR_T a_it2 = a_it += 3;
- FAIL_RETURN_IF (a_it2 != a_it);
- FAIL_RETURN_IF ((a_it - a_it1) != 2);
-
- // test + operator
- a_it2 = a_it1 + 3;
- FAIL_RETURN_IF ((a_it2 - a_it1) != 3);
-
- // test post-decrement operation
- a_it = a.rend ();
- a_it--;
- FAIL_RETURN_IF (a_it == a.rend ());
- FAIL_RETURN_IF ((a.rend () - a_it) != 1);
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem0_cstr) != 0);
-
- // test pre-decrement operator
- a_it = a.rend ();
- --a_it;
- FAIL_RETURN_IF (a_it == a.rend ());
- FAIL_RETURN_IF ((a.rend () - a_it) != 1);
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem0_cstr) != 0);
-
- // test -= operator
- a_it -= 3;
- FAIL_RETURN_IF ((a_it1 - a_it) != 2);
-
- // test - operator
- a_it2 = a_it1 - 2;
- FAIL_RETURN_IF ((a_it1 - a_it2) != 2);
-
- // test operator[] read
- a_it = a.rbegin ();
- FAIL_RETURN_IF (ACE_OS::strcmp (a_it[0],a[3]) != 0);
- a_it += 2;
- FAIL_RETURN_IF (ACE_OS::strcmp (a_it[0],a[1]) != 0);
-
- // test operator[] write
- // NOTE: This now changes the sequence a.
- // this is not possible for const iterators which are
- // sometimes used by this function.
- // a_it[0] = CORBA::string_dup (elem0_cstr);
- // FAIL_RETURN_IF (ACE_OS::strcmp (a[1],elem0_cstr) != 0);
-
- // reset content of sequence a
- //a[1] = CORBA::string_dup (elem1_cstr);
-
- // test for loop behaviour
- s_sequence b = a;
- REVERSE_ITERATOR_T b_it = b.rbegin ();
-
- for (a_it = a.rbegin ();
- a_it != a.rend ();
- a_it++, b_it++)
- {
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, *b_it) != 0);
- }
-
- s_sequence test;
- test.length (a.length ());
-
- std::copy (a.begin (),
- a.end (),
- test.begin ());
-
- FAIL_RETURN_IF (test.length () != a.length ());
-
- REVERSE_ITERATOR_T copytest_iter = test.rbegin ();
- for (REVERSE_ITERATOR_T copya_iter = a.rbegin ();
- copya_iter != a.rend ();
- ++copya_iter, ++copytest_iter)
- {
- FAIL_RETURN_IF (ACE_OS::strcmp (*copya_iter, *copytest_iter) != 0);
- }
-
- /// Testing - using ostream_iterator
- std::ostringstream ostream;
- std::copy (a.rbegin (),
- a.rend (),
- // JWH2 - I changed value_type to const_value_type. Is that
- // the correct approach?
- std::ostream_iterator<s_sequence::const_value_type> (ostream,
- "\n"));
-
- FAIL_RETURN_IF (
- ostream.str ().compare ("elem3\nelem2\nelem1\nelem0\n") != 0);
-
- return 0;
-}
-
-//-----------------------------------------------------------------------------
-
-template <typename REVERSE_ITERATOR_T>
-int test_const_sequence_reverse ()
-{
- // setup of an example sequence
- s_sequence setup;
- setup.length (4);
-
- const char * elem0_cstr = "elem0";
- const char * elem1_cstr = "elem1";
- const char * elem2_cstr = "elem2";
- const char * elem3_cstr = "elem3";
-
- setup[0] = CORBA::string_dup (elem0_cstr);
- setup[1] = CORBA::string_dup (elem1_cstr);
- setup[2] = CORBA::string_dup (elem2_cstr);
- setup[3] = CORBA::string_dup (elem3_cstr);
-
- const s_sequence a = setup;
-
- // test equality operator
- FAIL_RETURN_IF (!(a.begin () == a.begin ()));
-
- // test non-equality operator
- FAIL_RETURN_IF (a.end () != a.end ());
-
- // test iterator copy constructor
- REVERSE_ITERATOR_T a_it (a.rbegin ());
- FAIL_RETURN_IF (a_it != a.rbegin ());
-
- // test assignment operator
- a_it = a.rbegin ();
- FAIL_RETURN_IF (a_it != a.rbegin ());
-
- // test non const dereferencing
- // JWH2 - I don't think this test makes sense. I believe the compiler
- // will always return a const value since the dereference is on
- // the right hand side of the assignment (i.e., r value).
- //char* value0 = *a_it;
- //FAIL_RETURN_IF (ACE_OS::strcmp (value0, elem3_cstr) != 0);
-
- // test const dereferencing
- const char* const value1 = *a_it;
- FAIL_RETURN_IF (ACE_OS::strcmp (value1, elem3_cstr) != 0);
-
- // test increment operation
- a_it++;
- FAIL_RETURN_IF (a_it == a.rbegin());
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem2_cstr) != 0);
-
- // test < operator
- FAIL_RETURN_IF (!(a.rbegin () < a_it));
- FAIL_RETURN_IF (a_it < a.rbegin ());
-
- // test difference type
- int a_diff = a_it - a.rbegin ();
- FAIL_RETURN_IF (a_diff != 1);
-
- // test copy constructor
- REVERSE_ITERATOR_T a_it1 (a_it);
- FAIL_RETURN_IF (a_it1 != a_it);
-
- // test preincrement operator
- ++a_it1;
- FAIL_RETURN_IF ((a_it1 - a_it) != 1);
-
- // test = and += operator
- REVERSE_ITERATOR_T a_it2 = a_it += 3;
- FAIL_RETURN_IF (a_it2 != a_it);
- FAIL_RETURN_IF ((a_it - a_it1) != 2);
-
- // test + operator
- a_it2 = a_it1 + 3;
- FAIL_RETURN_IF ((a_it2 - a_it1) != 3);
-
- // test post-decrement operation
- a_it = a.rend ();
- a_it--;
- FAIL_RETURN_IF (a_it == a.rend ());
- FAIL_RETURN_IF ((a.rend () - a_it) != 1);
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem0_cstr) != 0);
-
- // test pre-decrement operator
- a_it = a.rend ();
- --a_it;
- FAIL_RETURN_IF (a_it == a.rend ());
- FAIL_RETURN_IF ((a.rend () - a_it) != 1);
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem0_cstr) != 0);
-
- // test -= operator
- a_it -= 3;
- FAIL_RETURN_IF ((a_it1 - a_it) != 2);
-
- // test - operator
- a_it2 = a_it1 - 2;
- FAIL_RETURN_IF ((a_it1 - a_it2) != 2);
-
- // test operator[] read
- a_it = a.rbegin ();
- FAIL_RETURN_IF (ACE_OS::strcmp (a_it[0],a[3]) != 0);
- a_it += 2;
- FAIL_RETURN_IF (ACE_OS::strcmp (a_it[0],a[1]) != 0);
-
- // test for loop behaviour
- s_sequence b = a;
- REVERSE_ITERATOR_T b_it = b.rbegin ();
-
- for (a_it = a.rbegin ();
- a_it != a.rend ();
- a_it++, b_it++)
- {
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, *b_it) != 0);
- }
-
- s_sequence test;
- test.length (a.length ());
-
- std::copy (a.begin (),
- a.end (),
- test.begin ());
-
- FAIL_RETURN_IF (test.length () != a.length ());
-
- REVERSE_ITERATOR_T copytest_iter = test.rbegin ();
- for (REVERSE_ITERATOR_T copya_iter = a.rbegin ();
- copya_iter != a.rend ();
- ++copya_iter, ++copytest_iter)
- {
- FAIL_RETURN_IF (ACE_OS::strcmp (*copya_iter, *copytest_iter) != 0);
- }
-
- /// Testing - using ostream_iterator
- std::ostringstream ostream;
- std::copy (a.rbegin (),
- a.rend (),
- // JWH2 - I changed value_type to const_value_type. Is that
- // the correct approach?
- std::ostream_iterator<s_sequence::const_value_type> (ostream,
- "\n"));
-
- FAIL_RETURN_IF (
- ostream.str ().compare ("elem3\nelem2\nelem1\nelem0\n") != 0);
-
- return 0;
-}
-
-#endif
-
-//-----------------------------------------------------------------------------
-
-int ACE_TMAIN(int,ACE_TCHAR*[])
-{
- int status = 0;
-
-#if defined TAO_HAS_SEQUENCE_ITERATORS && TAO_HAS_SEQUENCE_ITERATORS == 1
-
- // Test Generic_Sequence_Iterator.
- status += test_sequence<s_sequence::iterator> ();
-
- // Test Const_Generic_Sequence_Iterator with non-const sequence.
- status += test_sequence<s_sequence::const_iterator> ();
-
- // Test Const_Generic_Sequence_Iterator with const sequence.
- status += test_const_sequence<s_sequence::const_iterator> ();
-
- // Test Generic_Sequence_Reverse_Iterator.
- status += test_sequence_reverse<s_sequence::reverse_iterator> ();
-
- // Test Const_Generic_Sequence_Reverse_Iterator with non-const sequence.
- status += test_sequence_reverse<s_sequence::const_reverse_iterator> ();
-
- // Test Const_Generic_Sequence_Reverse_Iterator with const sequence.
- status += test_const_sequence_reverse<s_sequence::const_reverse_iterator> ();
-
-#endif
-
- return status;
-}
-
diff --git a/TAO/tests/Sequence_Iterators/Sequence_Iterators.mpc b/TAO/tests/Sequence_Iterators/Sequence_Iterators.mpc
deleted file mode 100644
index 320b84b882c..00000000000
--- a/TAO/tests/Sequence_Iterators/Sequence_Iterators.mpc
+++ /dev/null
@@ -1,29 +0,0 @@
-// -*- MPC -*-
-project(StringSeq) : taoexe {
- exename = StringSeq
- Source_Files {
- StringSeq.cpp
- }
-}
-
-project(Bounded_String) : taoexe {
- exename = Bounded_String
- Source_Files {
- Bounded_String.cpp
- }
-}
-
-project(Unbounded_Value) : taoexe {
- exename = Unbounded_Value
- Source_Files {
- Unbounded_Value.cpp
- }
-}
-
-project(Unbounded_Objectref) : taoexe {
- exename = Unbounded_Objectref
- Source_Files {
- mock_reference.cpp
- Unbounded_Objectref.cpp
- }
-}
diff --git a/TAO/tests/Sequence_Iterators/StringSeq.cpp b/TAO/tests/Sequence_Iterators/StringSeq.cpp
deleted file mode 100644
index 937c583c7aa..00000000000
--- a/TAO/tests/Sequence_Iterators/StringSeq.cpp
+++ /dev/null
@@ -1,959 +0,0 @@
-/**
- * @file StringSeq.cpp
- *
- * @brief test for STL iterator behaviour of CORBA unbounded string sequence
- *
- * @author Friedhelm Wolf (fwolf@dre.vanderbilt.edu)
- */
-
-#include "tao/StringSeqC.h"
-#include "ace/Log_Msg.h"
-#include "ace/OS_NS_string.h"
-
-#include <iostream>
-#include <iterator>
-#include <sstream>
-
-#define FAIL_RETURN_IF(CONDITION) \
- if (CONDITION) \
- { \
- ACE_DEBUG ((LM_ERROR, ACE_TEXT ("\tFailed at %N:%l\n"))); \
- return 1; \
- }
-
-//-----------------------------------------------------------------------------
-
-#if defined TAO_HAS_SEQUENCE_ITERATORS && TAO_HAS_SEQUENCE_ITERATORS == 1
-
-template <typename ITERATOR_T>
-int test_sequence ()
-{
- ::CORBA::StringSeq a;
-
- // test equality operator
- FAIL_RETURN_IF (!(a.begin () == a.begin ()));
-
- // test non-equality operator
- FAIL_RETURN_IF (a.end () != a.end ());
-
- // test for correct behaviour for empty sequence
-
- FAIL_RETURN_IF (a.begin() != a.end ());
-
- // setup of an example sequence
-
- const char * elem0_cstr = "elem0";
- const char * elem1_cstr = "elem1";
- const char * elem2_cstr = "elem2";
- const char * elem3_cstr = "elem3";
-
- a.length (4);
- // Create a case to test for memory leaks
- // in the sequence.
- a[0] = CORBA::string_dup (elem0_cstr);
- a[0] = CORBA::string_dup (elem0_cstr);
- a[1] = CORBA::string_dup (elem1_cstr);
- a[2] = CORBA::string_dup (elem2_cstr);
- a[3] = CORBA::string_dup (elem3_cstr);
-
- // test iterator copy constructor
- ITERATOR_T a_it (a.begin ());
- FAIL_RETURN_IF (a_it != a.begin ());
-
- // test assignment operator
- a_it = a.begin ();
-
- // Create a case to test for memory leaks
- // in the iterator.
- *a_it = CORBA::string_dup (elem0_cstr);
- FAIL_RETURN_IF (a_it != a.begin ());
-
- // test non const dereferencing
- // I'm not sure this test makes sense since what's returned from
- // dereferencing the iterator is an r value.
- const char* value_seq = a[0];
- FAIL_RETURN_IF (ACE_OS::strcmp (value_seq, elem0_cstr) != 0);
- const char* value0 = *a_it;
- FAIL_RETURN_IF (ACE_OS::strcmp (value0, elem0_cstr) != 0);
-
- // test const dereferencing
- const char* const value1 = *a_it;
- FAIL_RETURN_IF (ACE_OS::strcmp (value1, elem0_cstr) != 0);
-
- // test increment operation
- a_it++;
- FAIL_RETURN_IF (a_it == a.begin());
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem1_cstr) != 0);
-
- // test < operator
- FAIL_RETURN_IF (!(a.begin () < a_it));
- FAIL_RETURN_IF (a_it < a.begin ());
-
- // test difference type
- int a_diff = a_it - a.begin ();
- FAIL_RETURN_IF (a_diff != 1);
-
- // test copy constructor
- ITERATOR_T a_it1 (a_it);
- FAIL_RETURN_IF (a_it1 != a_it);
-
- // test preincrement operator
- ++a_it1;
- FAIL_RETURN_IF ((a_it1 - a_it) != 1);
-
- // test = and += operator
- ITERATOR_T a_it2 = a_it += 3;
- FAIL_RETURN_IF (a_it2 != a_it);
- FAIL_RETURN_IF ((a_it - a_it1) != 2);
-
- // test + operator
- a_it2 = a_it1 + 3;
- FAIL_RETURN_IF ((a_it2 - a_it1) != 3);
-
- // test post-decrement operation
- a_it = a.end ();
- a_it--;
- FAIL_RETURN_IF (a_it == a.end ());
- FAIL_RETURN_IF ((a.end () - a_it) != 1);
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem3_cstr) != 0);
-
- // test pre-decrement operator
- a_it = a.end ();
- --a_it;
- FAIL_RETURN_IF (a_it == a.end ());
- FAIL_RETURN_IF ((a.end () - a_it) != 1);
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem3_cstr) != 0);
-
- // test -= operator
- a_it -= 3;
- FAIL_RETURN_IF ((a_it1 - a_it) != 2);
-
- // test - operator
- a_it2 = a_it1 - 2;
- FAIL_RETURN_IF ((a_it1 - a_it2) != 2);
-
- // test operator[] read
- a_it = a.begin ();
- FAIL_RETURN_IF (ACE_OS::strcmp (a_it[0],a[0]) != 0);
- a_it += 2;
- FAIL_RETURN_IF (ACE_OS::strcmp (a_it[0],a[2]) != 0);
-
- // test operator[] write
- // NOTE: This assignment actually modifies the third element
- // in the sequence since the iterator was previously positioned
- // at the third element. I believe these are the proper semantics
- // for using the bracket operator with an iterator. The number
- // in the brackets is additive - not absolute.
- a_it[0] = CORBA::string_dup (elem2_cstr);
- FAIL_RETURN_IF (ACE_OS::strcmp (a[2], elem2_cstr) != 0);
-
- // reset content of sequence a
- a[1] = CORBA::string_dup (elem1_cstr);
-
- // test for loop behaviour
- ::CORBA::StringSeq b = a;
- ITERATOR_T b_it = b.begin ();
-
- for (a_it = a.begin ();
- a_it != a.end ();
- a_it++, b_it++)
- {
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, *b_it) != 0);
- }
-
- ::CORBA::StringSeq test;
- test.length (a.length ());
-
- std::copy (a.begin (),
- a.end (),
- test.begin ());
-
- FAIL_RETURN_IF (test.length () != a.length ());
-
- ITERATOR_T copytest_iter = test.begin ();
- for (ITERATOR_T copya_iter = a.begin ();
- copya_iter != a.end ();
- ++copya_iter, ++copytest_iter)
- {
- FAIL_RETURN_IF (ACE_OS::strcmp (*copya_iter, *copytest_iter) != 0);
- }
-
- /// Testing - using ostream_iterator
- std::ostringstream ostream;
- std::copy (a.begin (),
- a.end (),
- std::ostream_iterator<CORBA::StringSeq::const_value_type> (ostream,
- "\n"));
-
- // The third sequence element has been modified. Either we need to restore
- // the original sequence values or modify the test here. I modified the
- // test since it's easier.
- FAIL_RETURN_IF (
- ostream.str ().compare ("elem0\nelem1\nelem2\nelem3\n") != 0);
-
- return 0;
-}
-
-//-----------------------------------------------------------------------------
-
-template <typename ITERATOR_T>
-int test_sequence_const_iterator ()
-{
- ::CORBA::StringSeq a;
-
- // test equality operator
- FAIL_RETURN_IF (!(a.begin () == a.begin ()));
-
- // test non-equality operator
- FAIL_RETURN_IF (a.end () != a.end ());
-
- // test for correct behaviour for empty sequence
-
- FAIL_RETURN_IF (a.begin() != a.end ());
-
- // setup of an example sequence
-
- const char * elem0_cstr = "elem0";
- const char * elem1_cstr = "elem1";
- const char * elem2_cstr = "elem2";
- const char * elem3_cstr = "elem3";
-
- a.length (4);
- a[0] = CORBA::string_dup (elem0_cstr);
- a[0] = CORBA::string_dup (elem0_cstr);
- a[1] = CORBA::string_dup (elem1_cstr);
- a[2] = CORBA::string_dup (elem2_cstr);
- a[3] = CORBA::string_dup (elem3_cstr);
-
- // test iterator copy constructor
- ITERATOR_T a_it (a.begin ());
- FAIL_RETURN_IF (a_it != a.begin ());
-
- // test assignment operator
- a_it = a.begin ();
- FAIL_RETURN_IF (a_it != a.begin ());
-
- // test non const dereferencing
- // I'm not sure non-const deferencing makes sense since
- // we are getting an r value.
- const char * value0 = *a_it;
- FAIL_RETURN_IF (ACE_OS::strcmp (value0, elem0_cstr) != 0);
-
- // test const dereferencing
- const char* const value1 = *a_it;
- FAIL_RETURN_IF (ACE_OS::strcmp (value1, elem0_cstr) != 0);
-
- // test increment operation
- a_it++;
- FAIL_RETURN_IF (a_it == a.begin());
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem1_cstr) != 0);
-
- // test < operator
- FAIL_RETURN_IF (!(a.begin () < a_it));
- FAIL_RETURN_IF (a_it < a.begin ());
-
- // test difference type
- int a_diff = a_it - a.begin ();
- FAIL_RETURN_IF (a_diff != 1);
-
- // test copy constructor
- ITERATOR_T a_it1 (a_it);
- FAIL_RETURN_IF (a_it1 != a_it);
-
- // test preincrement operator
- ++a_it1;
- FAIL_RETURN_IF ((a_it1 - a_it) != 1);
-
- // test = and += operator
- ITERATOR_T a_it2 = a_it += 3;
- FAIL_RETURN_IF (a_it2 != a_it);
- FAIL_RETURN_IF ((a_it - a_it1) != 2);
-
- // test + operator
- a_it2 = a_it1 + 3;
- FAIL_RETURN_IF ((a_it2 - a_it1) != 3);
-
- // test post-decrement operation
- a_it = a.end ();
- a_it--;
- FAIL_RETURN_IF (a_it == a.end ());
- FAIL_RETURN_IF ((a.end () - a_it) != 1);
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem3_cstr) != 0);
-
- // test pre-decrement operator
- a_it = a.end ();
- --a_it;
- FAIL_RETURN_IF (a_it == a.end ());
- FAIL_RETURN_IF ((a.end () - a_it) != 1);
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem3_cstr) != 0);
-
- // test -= operator
- a_it -= 3;
- FAIL_RETURN_IF ((a_it1 - a_it) != 2);
-
- // test - operator
- a_it2 = a_it1 - 2;
- FAIL_RETURN_IF ((a_it1 - a_it2) != 2);
-
- // test operator[] read
- a_it = a.begin ();
- FAIL_RETURN_IF (ACE_OS::strcmp (a_it[0],a[0]) != 0);
- a_it += 2;
- FAIL_RETURN_IF (ACE_OS::strcmp (a_it[0],a[2]) != 0);
-
- // test for loop behaviour
- ::CORBA::StringSeq b = a;
- ITERATOR_T b_it = b.begin ();
-
- for (a_it = a.begin ();
- a_it != a.end ();
- a_it++, b_it++)
- {
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, *b_it) != 0);
- }
-
- ::CORBA::StringSeq test;
- test.length (a.length ());
-
- std::copy (a.begin (),
- a.end (),
- test.begin ());
-
- FAIL_RETURN_IF (test.length () != a.length ());
-
- ITERATOR_T copytest_iter = test.begin ();
- for (ITERATOR_T copya_iter = a.begin ();
- copya_iter != a.end ();
- ++copya_iter, ++copytest_iter)
- {
- FAIL_RETURN_IF (ACE_OS::strcmp (*copya_iter, *copytest_iter) != 0);
- }
-
- /// Testing - using ostream_iterator
- std::ostringstream ostream;
- std::copy (a.begin (),
- a.end (),
- std::ostream_iterator<CORBA::StringSeq::const_value_type>(ostream,
- "\n"));
-
- FAIL_RETURN_IF (
- ostream.str ().compare ("elem0\nelem1\nelem2\nelem3\n") != 0);
-
- return 0;
-}
-
-//-----------------------------------------------------------------------------
-
-template <typename ITERATOR_T>
-int test_const_sequence ()
-{
- // setup of an example sequence
- const char * elem0_cstr = "elem0";
- const char * elem1_cstr = "elem1";
- const char * elem2_cstr = "elem2";
- const char * elem3_cstr = "elem3";
-
- ::CORBA::StringSeq setup;
- setup.length (4);
- setup[0] = CORBA::string_dup (elem0_cstr);
- setup[1] = CORBA::string_dup (elem1_cstr);
- setup[2] = CORBA::string_dup (elem2_cstr);
- setup[3] = CORBA::string_dup (elem3_cstr);
-
- const ::CORBA::StringSeq a = setup;
-
- // test equality operator
- FAIL_RETURN_IF (!(a.begin () == a.begin ()));
- ITERATOR_T c_iter1 (a.begin ());
- ITERATOR_T c_iter2 = a.begin ();
- FAIL_RETURN_IF (!(c_iter1 == c_iter2));
-
- // test non-equality operator
- FAIL_RETURN_IF (a.end () != a.end ());
-
- // test iterator copy constructor
- ITERATOR_T a_it (a.begin ());
- FAIL_RETURN_IF (a_it != a.begin ());
-
- // test non const dereferencing
- // JWH2 - This test shouldn't be done when dealing with
- // a const iterator (which we sometimes do with the current
- // testing setup).
- //typename ITERATOR_T::element_type value0 = *a_it;
- //FAIL_RETURN_IF (ACE_OS::strcmp (value0, elem0_cstr) != 0);
-
- // test const dereferencing
- typename ITERATOR_T::const_element_type value1 = *a_it;
- FAIL_RETURN_IF (ACE_OS::strcmp (value1, elem0_cstr) != 0);
-
- // test increment operation
- a_it++;
- FAIL_RETURN_IF (a_it == a.begin());
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem1_cstr) != 0);
-
- // test < operator
- FAIL_RETURN_IF (!(a.begin () < a_it));
- FAIL_RETURN_IF (a_it < a.begin ());
-
- // test difference type
- int a_diff = a_it - a.begin ();
- FAIL_RETURN_IF (a_diff != 1);
-
- // test copy constructor
- ITERATOR_T a_it1 (a_it);
- FAIL_RETURN_IF (a_it1 != a_it);
-
- // test preincrement operator
- ++a_it1;
- FAIL_RETURN_IF ((a_it1 - a_it) != 1);
-
- // test = and += operator
- ITERATOR_T a_it2 = a_it += 3;
- FAIL_RETURN_IF (a_it2 != a_it);
- FAIL_RETURN_IF ((a_it - a_it1) != 2);
-
- // test + operator
- a_it2 = a_it1 + 3;
- FAIL_RETURN_IF ((a_it2 - a_it1) != 3);
-
- // test post-decrement operation
- a_it = a.end ();
- a_it--;
- FAIL_RETURN_IF (a_it == a.end ());
- FAIL_RETURN_IF ((a.end () - a_it) != 1);
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem3_cstr) != 0);
-
- // test pre-decrement operator
- a_it = a.end ();
- --a_it;
- FAIL_RETURN_IF (a_it == a.end ());
- FAIL_RETURN_IF ((a.end () - a_it) != 1);
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem3_cstr) != 0);
-
- // test -= operator
- a_it -= 3;
- FAIL_RETURN_IF ((a_it1 - a_it) != 2);
-
- // test - operator
- a_it2 = a_it1 - 2;
- FAIL_RETURN_IF ((a_it1 - a_it2) != 2);
-
- // test operator[] read
- a_it = a.begin ();
- FAIL_RETURN_IF (ACE_OS::strcmp (a_it[0],a[0]) != 0);
- a_it += 2;
- FAIL_RETURN_IF (ACE_OS::strcmp (a_it[0],a[2]) != 0);
-
- // test for loop behaviour
- const ::CORBA::StringSeq b = a;
- ITERATOR_T b_it = b.begin ();
-
- for (a_it = a.begin ();
- a_it != a.end ();
- a_it++, b_it++)
- {
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, *b_it) != 0);
- }
-
- ::CORBA::StringSeq test;
- test.length (a.length ());
-
- std::copy (a.begin (),
- a.end (),
- test.begin ());
-
- FAIL_RETURN_IF (test.length () != a.length ());
-
- ITERATOR_T copytest_iter = test.begin ();
- for (ITERATOR_T copya_iter = a.begin ();
- copya_iter != a.end ();
- ++copya_iter, ++copytest_iter)
- {
- FAIL_RETURN_IF (ACE_OS::strcmp (*copya_iter, *copytest_iter) != 0);
- }
-
- /// Testing - using ostream_iterator
- std::ostringstream ostream;
- std::copy (a.begin (),
- a.end (),
- std::ostream_iterator<CORBA::StringSeq::const_value_type> (ostream,
- "\n"));
-
- FAIL_RETURN_IF (
- ostream.str ().compare ("elem0\nelem1\nelem2\nelem3\n") != 0);
-
- return 0;
-}
-
-//-----------------------------------------------------------------------------
-
-template <typename REVERSE_ITERATOR_T>
-int test_sequence_reverse ()
-{
- ::CORBA::StringSeq a;
-
- // test equality operator
- FAIL_RETURN_IF (!(a.begin () == a.begin ()));
-
- // test non-equality operator
- FAIL_RETURN_IF (a.end () != a.end ());
-
- // test for correct behaviour for empty sequence
-
- FAIL_RETURN_IF (a.begin() != a.end ());
-
- // setup of an example sequence
- const char * elem0_cstr = "elem0";
- const char * elem1_cstr = "elem1";
- const char * elem2_cstr = "elem2";
- const char * elem3_cstr = "elem3";
-
- a.length (4);
- a[0] = CORBA::string_dup (elem0_cstr);
- a[1] = CORBA::string_dup (elem1_cstr);
- a[2] = CORBA::string_dup (elem2_cstr);
- a[3] = CORBA::string_dup (elem3_cstr);
-
- // test iterator copy constructor
- REVERSE_ITERATOR_T a_it (a.rbegin ());
- FAIL_RETURN_IF (a_it != a.rbegin ());
-
- // test assignment operator
- a_it = a.rbegin ();
-
- // Create a case to test for memory leaks
- // in the iterator.
- *a_it = CORBA::string_dup (elem3_cstr);
- FAIL_RETURN_IF (a_it != a.rbegin ());
-
- // test non const dereferencing
- typename REVERSE_ITERATOR_T::element_type value0 = *a_it;
- FAIL_RETURN_IF (ACE_OS::strcmp (value0, elem3_cstr) != 0);
-
- // test const dereferencing
- const char* const value1 = *a_it;
- FAIL_RETURN_IF (ACE_OS::strcmp (value1, elem3_cstr) != 0);
-
- // test increment operation
- a_it++;
- FAIL_RETURN_IF (a_it == a.rbegin());
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem2_cstr) != 0);
-
- // test < operator
- FAIL_RETURN_IF (!(a.rbegin () < a_it));
- FAIL_RETURN_IF (a_it < a.rbegin ());
-
- // test difference type
- int a_diff = a_it - a.rbegin ();
- FAIL_RETURN_IF (a_diff != 1);
-
- // test copy constructor
- REVERSE_ITERATOR_T a_it1 (a_it);
- FAIL_RETURN_IF (a_it1 != a_it);
-
- // test preincrement operator
- ++a_it1;
- FAIL_RETURN_IF ((a_it1 - a_it) != 1);
-
- // test = and += operator
- REVERSE_ITERATOR_T a_it2 = a_it += 3;
- FAIL_RETURN_IF (a_it2 != a_it);
- FAIL_RETURN_IF ((a_it - a_it1) != 2);
-
- // test + operator
- a_it2 = a_it1 + 3;
- FAIL_RETURN_IF ((a_it2 - a_it1) != 3);
-
- // test post-decrement operation
- a_it = a.rend ();
- a_it--;
- FAIL_RETURN_IF (a_it == a.rend ());
- FAIL_RETURN_IF ((a.rend () - a_it) != 1);
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem0_cstr) != 0);
-
- // test pre-decrement operator
- a_it = a.rend ();
- --a_it;
- FAIL_RETURN_IF (a_it == a.rend ());
- FAIL_RETURN_IF ((a.rend () - a_it) != 1);
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem0_cstr) != 0);
-
- // test -= operator
- a_it -= 3;
- FAIL_RETURN_IF ((a_it1 - a_it) != 2);
-
- // test - operator
- a_it2 = a_it1 - 2;
- FAIL_RETURN_IF ((a_it1 - a_it2) != 2);
-
- // test operator[] read
- a_it = a.rbegin ();
- FAIL_RETURN_IF (ACE_OS::strcmp (a_it[0],a[3]) != 0);
- a_it += 2;
- FAIL_RETURN_IF (ACE_OS::strcmp (a_it[0],a[1]) != 0);
-
- // test operator[] write
- a_it[0] = CORBA::string_dup (elem0_cstr);
- FAIL_RETURN_IF (ACE_OS::strcmp (a[1],elem0_cstr) != 0);
-
- // reset content of sequence a
- a[1] = CORBA::string_dup (elem1_cstr);
-
- // test for loop behaviour
- ::CORBA::StringSeq b = a;
- REVERSE_ITERATOR_T b_it = b.rbegin ();
-
- for (a_it = a.rbegin ();
- a_it != a.rend ();
- a_it++, b_it++)
- {
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, *b_it) != 0);
- }
-
- ::CORBA::StringSeq test;
- test.length (a.length ());
-
- std::copy (a.begin (),
- a.end (),
- test.begin ());
-
- FAIL_RETURN_IF (test.length () != a.length ());
-
- REVERSE_ITERATOR_T copytest_iter = test.rbegin ();
- for (REVERSE_ITERATOR_T copya_iter = a.rbegin ();
- copya_iter != a.rend ();
- ++copya_iter, ++copytest_iter)
- {
- FAIL_RETURN_IF (ACE_OS::strcmp (*copya_iter, *copytest_iter) != 0);
- }
-
- /// Testing - using ostream_iterator
- std::ostringstream ostream;
- std::copy (a.rbegin (),
- a.rend (),
- std::ostream_iterator<CORBA::StringSeq::element_type> (ostream,
- "\n"));
-
- FAIL_RETURN_IF (
- ostream.str ().compare ("elem3\nelem2\nelem1\nelem0\n") != 0);
-
- return 0;
-}
-
-//-----------------------------------------------------------------------------
-
-template <typename REVERSE_ITERATOR_T>
-int test_sequence_reverse_const_iterator ()
-{
- ::CORBA::StringSeq a;
-
- // test equality operator
- FAIL_RETURN_IF (!(a.begin () == a.begin ()));
-
- // test non-equality operator
- FAIL_RETURN_IF (a.end () != a.end ());
-
- // test for correct behaviour for empty sequence
-
- FAIL_RETURN_IF (a.begin() != a.end ());
-
- // setup of an example sequence
- const char * elem0_cstr = "elem0";
- const char * elem1_cstr = "elem1";
- const char * elem2_cstr = "elem2";
- const char * elem3_cstr = "elem3";
-
- a.length (4);
- a[0] = CORBA::string_dup (elem0_cstr);
- a[1] = CORBA::string_dup (elem1_cstr);
- a[2] = CORBA::string_dup (elem2_cstr);
- a[3] = CORBA::string_dup (elem3_cstr);
-
- // test iterator copy constructor
- REVERSE_ITERATOR_T a_it (a.rbegin ());
- FAIL_RETURN_IF (a_it != a.rbegin ());
-
- // test assignment operator
- a_it = a.rbegin ();
- FAIL_RETURN_IF (a_it != a.rbegin ());
-
- // test non const dereferencing
- typename REVERSE_ITERATOR_T::const_element_type value0 = *a_it;
- FAIL_RETURN_IF (ACE_OS::strcmp (value0, elem3_cstr) != 0);
-
- // test const dereferencing
- const char* const value1 = *a_it;
- FAIL_RETURN_IF (ACE_OS::strcmp (value1, elem3_cstr) != 0);
-
- // test increment operation
- a_it++;
- FAIL_RETURN_IF (a_it == a.rbegin());
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem2_cstr) != 0);
-
- // test < operator
- FAIL_RETURN_IF (!(a.rbegin () < a_it));
- FAIL_RETURN_IF (a_it < a.rbegin ());
-
- // test difference type
- int a_diff = a_it - a.rbegin ();
- FAIL_RETURN_IF (a_diff != 1);
-
- // test copy constructor
- REVERSE_ITERATOR_T a_it1 (a_it);
- FAIL_RETURN_IF (a_it1 != a_it);
-
- // test preincrement operator
- ++a_it1;
- FAIL_RETURN_IF ((a_it1 - a_it) != 1);
-
- // test = and += operator
- REVERSE_ITERATOR_T a_it2 = a_it += 3;
- FAIL_RETURN_IF (a_it2 != a_it);
- FAIL_RETURN_IF ((a_it - a_it1) != 2);
-
- // test + operator
- a_it2 = a_it1 + 3;
- FAIL_RETURN_IF ((a_it2 - a_it1) != 3);
-
- // test post-decrement operation
- a_it = a.rend ();
- a_it--;
- FAIL_RETURN_IF (a_it == a.rend ());
- FAIL_RETURN_IF ((a.rend () - a_it) != 1);
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem0_cstr) != 0);
-
- // test pre-decrement operator
- a_it = a.rend ();
- --a_it;
- FAIL_RETURN_IF (a_it == a.rend ());
- FAIL_RETURN_IF ((a.rend () - a_it) != 1);
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem0_cstr) != 0);
-
- // test -= operator
- a_it -= 3;
- FAIL_RETURN_IF ((a_it1 - a_it) != 2);
-
- // test - operator
- a_it2 = a_it1 - 2;
- FAIL_RETURN_IF ((a_it1 - a_it2) != 2);
-
- // test operator[] read
- a_it = a.rbegin ();
- FAIL_RETURN_IF (ACE_OS::strcmp (a_it[0],a[3]) != 0);
- a_it += 2;
- FAIL_RETURN_IF (ACE_OS::strcmp (a_it[0],a[1]) != 0);
-
- // test for loop behaviour
- ::CORBA::StringSeq b = a;
- REVERSE_ITERATOR_T b_it = b.rbegin ();
-
- for (a_it = a.rbegin ();
- a_it != a.rend ();
- a_it++, b_it++)
- {
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, *b_it) != 0);
- }
-
- ::CORBA::StringSeq test;
- test.length (a.length ());
-
- std::copy (a.begin (),
- a.end (),
- test.begin ());
-
- FAIL_RETURN_IF (test.length () != a.length ());
-
- REVERSE_ITERATOR_T copytest_iter = test.rbegin ();
- for (REVERSE_ITERATOR_T copya_iter = a.rbegin ();
- copya_iter != a.rend ();
- ++copya_iter, ++copytest_iter)
- {
- FAIL_RETURN_IF (ACE_OS::strcmp (*copya_iter, *copytest_iter) != 0);
- }
-
- /// Testing - using ostream_iterator
- std::ostringstream ostream;
- std::copy (a.rbegin (),
- a.rend (),
- std::ostream_iterator<CORBA::StringSeq::element_type> (ostream,
- "\n"));
-
- FAIL_RETURN_IF (
- ostream.str ().compare ("elem3\nelem2\nelem1\nelem0\n") != 0);
-
- return 0;
-}
-
-//-----------------------------------------------------------------------------
-
-template <typename REVERSE_ITERATOR_T>
-int test_const_sequence_reverse ()
-{
- // setup of an example sequence
- const char * elem0_cstr = "elem0";
- const char * elem1_cstr = "elem1";
- const char * elem2_cstr = "elem2";
- const char * elem3_cstr = "elem3";
-
- ::CORBA::StringSeq setup;;
- setup.length (4);
- setup[0] = CORBA::string_dup (elem0_cstr);
- setup[1] = CORBA::string_dup (elem1_cstr);
- setup[2] = CORBA::string_dup (elem2_cstr);
- setup[3] = CORBA::string_dup (elem3_cstr);
-
- const ::CORBA::StringSeq a = setup;
-
- // test equality operator
- FAIL_RETURN_IF (!(a.begin () == a.begin ()));
-
- // test non-equality operator
- FAIL_RETURN_IF (a.end () != a.end ());
-
- // test iterator copy constructor
- REVERSE_ITERATOR_T a_it (a.rbegin ());
- FAIL_RETURN_IF (a_it != a.rbegin ());
-
- // test non const dereferencing
- typename REVERSE_ITERATOR_T::const_element_type value0 = *a_it;
- FAIL_RETURN_IF (ACE_OS::strcmp (value0, elem3_cstr) != 0);
-
- // test const dereferencing
- const char* const value1 = *a_it;
- FAIL_RETURN_IF (ACE_OS::strcmp (value1, elem3_cstr) != 0);
-
- // test increment operation
- a_it++;
- FAIL_RETURN_IF (a_it == a.rbegin());
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem2_cstr) != 0);
-
- // test < operator
- FAIL_RETURN_IF (!(a.rbegin () < a_it));
- FAIL_RETURN_IF (a_it < a.rbegin ());
-
- // test difference type
- int a_diff = a_it - a.rbegin ();
- FAIL_RETURN_IF (a_diff != 1);
-
- // test copy constructor
- REVERSE_ITERATOR_T a_it1 (a_it);
- FAIL_RETURN_IF (a_it1 != a_it);
-
- // test preincrement operator
- ++a_it1;
- FAIL_RETURN_IF ((a_it1 - a_it) != 1);
-
- // test = and += operator
- REVERSE_ITERATOR_T a_it2 = a_it += 3;
- FAIL_RETURN_IF (a_it2 != a_it);
- FAIL_RETURN_IF ((a_it - a_it1) != 2);
-
- // test + operator
- a_it2 = a_it1 + 3;
- FAIL_RETURN_IF ((a_it2 - a_it1) != 3);
-
- // test post-decrement operation
- a_it = a.rend ();
- a_it--;
- FAIL_RETURN_IF (a_it == a.rend ());
- FAIL_RETURN_IF ((a.rend () - a_it) != 1);
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem0_cstr) != 0);
-
- // test pre-decrement operator
- a_it = a.rend ();
- --a_it;
- FAIL_RETURN_IF (a_it == a.rend ());
- FAIL_RETURN_IF ((a.rend () - a_it) != 1);
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, elem0_cstr) != 0);
-
- // test -= operator
- a_it -= 3;
- FAIL_RETURN_IF ((a_it1 - a_it) != 2);
-
- // test - operator
- a_it2 = a_it1 - 2;
- FAIL_RETURN_IF ((a_it1 - a_it2) != 2);
-
- // test operator[] read
- a_it = a.rbegin ();
- FAIL_RETURN_IF (ACE_OS::strcmp (a_it[0],a[3]) != 0);
- a_it += 2;
- FAIL_RETURN_IF (ACE_OS::strcmp (a_it[0],a[1]) != 0);
-
- // test for loop behaviour
- ::CORBA::StringSeq b = a;
- REVERSE_ITERATOR_T b_it = b.rbegin ();
-
- for (a_it = a.rbegin ();
- a_it != a.rend ();
- a_it++, b_it++)
- {
- FAIL_RETURN_IF (ACE_OS::strcmp (*a_it, *b_it) != 0);
- }
-
- ::CORBA::StringSeq test;
- test.length (a.length ());
-
- std::copy (a.begin (),
- a.end (),
- test.begin ());
-
- FAIL_RETURN_IF (test.length () != a.length ());
-
- REVERSE_ITERATOR_T copytest_iter = test.rbegin ();
- for (REVERSE_ITERATOR_T copya_iter = a.rbegin ();
- copya_iter != a.rend ();
- ++copya_iter, ++copytest_iter)
- {
- FAIL_RETURN_IF (ACE_OS::strcmp (*copya_iter, *copytest_iter) != 0);
- }
-
- /// Testing - using ostream_iterator
- std::ostringstream ostream;
- std::copy (a.rbegin (),
- a.rend (),
- std::ostream_iterator<CORBA::StringSeq::const_element_type> (ostream,
- "\n"));
-
- FAIL_RETURN_IF (
- ostream.str ().compare ("elem3\nelem2\nelem1\nelem0\n") != 0);
-
- return 0;
-}
-
-#endif
-
-//-----------------------------------------------------------------------------
-
-int ACE_TMAIN(int,ACE_TCHAR*[])
-{
- int status = 0;
-
-#if defined TAO_HAS_SEQUENCE_ITERATORS && TAO_HAS_SEQUENCE_ITERATORS == 1
-
- // Test Generic_Sequence_Iterator.
- status += test_sequence< ::CORBA::StringSeq::iterator> ();
-
- // g++ seems to make the conversion from iterator to const_iterator
- // and Windows doesn't. Not sure why.
- // Test Const_Generic_Sequence_Iterator with non-const sequence.
- status += test_sequence_const_iterator <
- ::CORBA::StringSeq::const_iterator> ();
-
- // Test Const_Generic_Sequence_Iterator with const sequence.
- status += test_const_sequence< ::CORBA::StringSeq::const_iterator> ();
-
- // Test Generic_Sequence_Reverse_Iterator.
- status += test_sequence_reverse< ::CORBA::StringSeq::reverse_iterator> ();
-
- // Test Const_Generic_Sequence_Reverse_Iterator with non-const sequence.
- status += test_sequence_reverse_const_iterator<
- ::CORBA::StringSeq::const_reverse_iterator> ();
-
- // Test Const_Generic_Sequence_Reverse_Iterator with const sequence.
- status += test_const_sequence_reverse<
- ::CORBA::StringSeq::const_reverse_iterator> ();
-#endif
-
- return status;
-}
diff --git a/TAO/tests/Sequence_Iterators/Unbounded_Objectref.cpp b/TAO/tests/Sequence_Iterators/Unbounded_Objectref.cpp
deleted file mode 100644
index c951b6e90a1..00000000000
--- a/TAO/tests/Sequence_Iterators/Unbounded_Objectref.cpp
+++ /dev/null
@@ -1,667 +0,0 @@
-/**
- * @file Unbounded_Objectref.cpp
- *
- * @brief test for STL iterator behaviour of CORBA unbounded object reference
- * sequence
- *
- * @author Friedhelm Wolf (fwolf@dre.vanderbilt.edu)
- */
-
-#include "ace/Log_Msg.h"
-
-#include <iostream>
-#include <iterator>
-#include <sstream>
-
-#include "tao/Object_Reference_Traits_T.h"
-#include "mock_reference.hpp"
-#include "tao/Unbounded_Object_Reference_Sequence_T.h"
-
-#define FAIL_RETURN_IF(CONDITION) \
- if (CONDITION) \
- { \
- ACE_DEBUG ((LM_ERROR, ACE_TEXT ("\tFailed at %N:%l\n"))); \
- return 1; \
- }
-
-#if defined TAO_HAS_SEQUENCE_ITERATORS && TAO_HAS_SEQUENCE_ITERATORS == 1
-
-typedef TAO::unbounded_object_reference_sequence<mock_reference, mock_reference_var> tested_sequence;
-
-template <typename ITERATOR_T>
-int test_sequence ()
-{
- tested_sequence a;
-
- // test equality operator
- FAIL_RETURN_IF (!(a.begin () == a.begin ()));
-
- // test non-equality operator
- FAIL_RETURN_IF (a.end () != a.end ());
-
- // test for correct behaviour for empty sequence
-
- FAIL_RETURN_IF (a.begin() != a.end ());
-
- mock_reference* elem0 = mock_reference::allocate (0);
- mock_reference* elem1 = mock_reference::allocate (1);
- mock_reference* elem2 = mock_reference::allocate (2);
- mock_reference* elem3 = mock_reference::allocate (3);
-
- // setup of an example sequence
- a.length (4);
-
- a[0] = elem0;
- a[1] = elem1;
- a[2] = elem2;
- a[3] = elem3;
-
- // test iterator copy constructor
- ITERATOR_T a_it (a.begin ());
- FAIL_RETURN_IF (a_it != a.begin ());
-
- // test assignment operator
- a_it = a.begin ();
- FAIL_RETURN_IF (a_it != a.begin ());
-
- // test non const dereferencing
- mock_reference* value0 = *a_it;
- FAIL_RETURN_IF (value0->id () != elem0->id ());
-
- // test const dereferencing
- const mock_reference* const value1 = *a_it;
- FAIL_RETURN_IF (value1->id () != elem0->id ());
-
- // test increment operation
- a_it++;
- FAIL_RETURN_IF (a_it == a.begin());
- FAIL_RETURN_IF ((*a_it)->id () != elem1->id ());
-
- // test < operator
- FAIL_RETURN_IF (!(a.begin () < a_it));
- FAIL_RETURN_IF (a_it < a.begin ());
-
- // test difference type
- int a_diff = a_it - a.begin ();
- FAIL_RETURN_IF (a_diff != 1);
-
- // test copy constructor
- ITERATOR_T a_it1 (a_it);
- FAIL_RETURN_IF (a_it1 != a_it);
-
- // test preincrement operator
- ++a_it1;
- FAIL_RETURN_IF ((a_it1 - a_it) != 1);
-
- // test = and += operator
- ITERATOR_T a_it2 = a_it += 3;
- FAIL_RETURN_IF (a_it2 != a_it);
- FAIL_RETURN_IF ((a_it - a_it1) != 2);
-
- // test + operator
- a_it2 = a_it1 + 3;
- FAIL_RETURN_IF ((a_it2 - a_it1) != 3);
-
- // test post-decrement operation
- a_it = a.end ();
- a_it--;
- FAIL_RETURN_IF (a_it == a.end ());
- FAIL_RETURN_IF ((a.end () - a_it) != 1);
- FAIL_RETURN_IF ((*a_it)->id () != elem3->id ());
-
- // test pre-decrement operator
- a_it = a.end ();
- --a_it;
- FAIL_RETURN_IF (a_it == a.end ());
- FAIL_RETURN_IF ((a.end () - a_it) != 1);
- FAIL_RETURN_IF ((*a_it)->id () != elem3->id ());
-
- // test -= operator
- a_it -= 3;
- FAIL_RETURN_IF ((a_it1 - a_it) != 2);
-
- // test - operator
- a_it2 = a_it1 - 2;
- FAIL_RETURN_IF ((a_it1 - a_it2) != 2);
-
- // test operator[] read
- a_it = a.begin ();
- FAIL_RETURN_IF (a_it[0]->id () != a[0]->id ());
- a_it += 2;
- FAIL_RETURN_IF (a_it[0]->id () != a[2]->id ());
-
- // test for loop behaviour
- tested_sequence b = a;
- ITERATOR_T b_it = b.begin ();
-
- for (a_it = a.begin ();
- a_it != a.end ();
- a_it++, b_it++)
- {
- FAIL_RETURN_IF ((*a_it)->id () != (*b_it)->id ());
- }
-
- tested_sequence test;
- test.length (a.length ());
-
- std::copy (a.begin (),
- a.end (),
- test.begin ());
-
- FAIL_RETURN_IF (test.length () != a.length ());
-
- ITERATOR_T copytest_iter = test.begin ();
- for (ITERATOR_T copya_iter = a.begin ();
- copya_iter != a.end ();
- ++copya_iter, ++copytest_iter)
- {
- FAIL_RETURN_IF ((*copya_iter)->id () != (*copytest_iter)->id ());
- }
-
- /// Testing - using ostream_iterator
- /// JWH2 - I don't think the ostream test makes sense for object references.
- /*
- std::ostringstream ostream;
- std::copy (a.begin (),
- a.end (),
- std::ostream_iterator<tested_sequence::value_type> (ostream,
- "\n"));
-
- FAIL_RETURN_IF (
- ostream.str ().compare ("elem0\nelem1\nelem2\nelem3\n") != 0);
- */
-
- return 0;
-}
-
-//-----------------------------------------------------------------------------
-
-template <typename ITERATOR_T>
-int test_const_sequence ()
-{
- // setup of an example sequence
- tested_sequence setup;
- setup.length (4);
-
- mock_reference* elem0 = mock_reference::allocate (0);
- mock_reference* elem1 = mock_reference::allocate (1);
- mock_reference* elem2 = mock_reference::allocate (2);
- mock_reference* elem3 = mock_reference::allocate (3);
-
- // setup of an example sequence
- setup[0] = elem0;
- setup[1] = elem1;
- setup[2] = elem2;
- setup[3] = elem3;
-
- const tested_sequence a = setup;
-
- // test equality operator
- FAIL_RETURN_IF (!(a.begin () == a.begin ()));
-
- // test non-equality operator
- FAIL_RETURN_IF (a.end () != a.end ());
-
- // test iterator copy constructor
- ITERATOR_T a_it (a.begin ());
- FAIL_RETURN_IF (a_it != a.begin ());
-
- // test assignment operator
- a_it = a.begin ();
- FAIL_RETURN_IF (a_it != a.begin ());
-
- // test non const dereferencing
- mock_reference* value0 = *a_it;
- FAIL_RETURN_IF (value0->id () != elem0->id ());
-
- // test const dereferencing
- const mock_reference* const value1 = *a_it;
- FAIL_RETURN_IF (value1->id () != elem0->id ());
-
- // test increment operation
- a_it++;
- FAIL_RETURN_IF (a_it == a.begin());
- FAIL_RETURN_IF ((*a_it)->id () != elem1->id ());
-
- // test < operator
- FAIL_RETURN_IF (!(a.begin () < a_it));
- FAIL_RETURN_IF (a_it < a.begin ());
-
- // test difference type
- int a_diff = a_it - a.begin ();
- FAIL_RETURN_IF (a_diff != 1);
-
- // test copy constructor
- ITERATOR_T a_it1 (a_it);
- FAIL_RETURN_IF (a_it1 != a_it);
-
- // test preincrement operator
- ++a_it1;
- FAIL_RETURN_IF ((a_it1 - a_it) != 1);
-
- // test = and += operator
- ITERATOR_T a_it2 = a_it += 3;
- FAIL_RETURN_IF (a_it2 != a_it);
- FAIL_RETURN_IF ((a_it - a_it1) != 2);
-
- // test + operator
- a_it2 = a_it1 + 3;
- FAIL_RETURN_IF ((a_it2 - a_it1) != 3);
-
- // test post-decrement operation
- a_it = a.end ();
- a_it--;
- FAIL_RETURN_IF (a_it == a.end ());
- FAIL_RETURN_IF ((a.end () - a_it) != 1);
- FAIL_RETURN_IF ((*a_it)->id () != elem3->id ());
-
- // test pre-decrement operator
- a_it = a.end ();
- --a_it;
- FAIL_RETURN_IF (a_it == a.end ());
- FAIL_RETURN_IF ((a.end () - a_it) != 1);
- FAIL_RETURN_IF ((*a_it)->id () != elem3->id ());
-
- // test -= operator
- a_it -= 3;
- FAIL_RETURN_IF ((a_it1 - a_it) != 2);
-
- // test - operator
- a_it2 = a_it1 - 2;
- FAIL_RETURN_IF ((a_it1 - a_it2) != 2);
-
- // test operator[] read
- a_it = a.begin ();
- FAIL_RETURN_IF ((a_it[0])->id () != a[0]->id ());
- a_it += 2;
- FAIL_RETURN_IF ((a_it[0])->id () != a[2]->id ());
-
- // test for loop behaviour
- tested_sequence b = a;
- ITERATOR_T b_it = b.begin ();
-
- for (a_it = a.begin ();
- a_it != a.end ();
- a_it++, b_it++)
- {
- FAIL_RETURN_IF ((*a_it)->id () != (*b_it)->id ());
- }
-
- tested_sequence test;
- test.length (4);
-
- /*
- * The copy call below causes double deletes and seg faults.
- */
- std::copy (a.begin (),
- a.end (),
- test.begin ());
-
- FAIL_RETURN_IF (test.length () != a.length ());
-
- ITERATOR_T copytest_iter = test.begin ();
- for (ITERATOR_T copya_iter = a.begin ();
- copya_iter != a.end ();
- ++copya_iter, ++copytest_iter)
- {
- FAIL_RETURN_IF ((*copya_iter)->id () != (*copytest_iter)->id ());
- }
-
- /// Testing - using ostream_iterator
- /// JWH2 - I don't think the ostream test makes sense for object references.
- /*
- std::ostringstream ostream;
- std::copy (a.begin (),
- a.end (),
- std::ostream_iterator<tested_sequence::value_type> (ostream,
- "\n"));
-
- FAIL_RETURN_IF (
- ostream.str ().compare ("elem0\nelem1\nelem2\nelem3\n") != 0);
- */
-
- return 0;
-}
-
-//-----------------------------------------------------------------------------
-
-template <typename REVERSE_ITERATOR_T>
-int test_sequence_reverse ()
-{
- tested_sequence a;
-
- // test equality operator
- FAIL_RETURN_IF (!(a.begin () == a.begin ()));
-
- // test non-equality operator
- FAIL_RETURN_IF (a.end () != a.end ());
-
- // test for correct behaviour for empty sequence
-
- FAIL_RETURN_IF (a.begin() != a.end ());
-
- // setup of an example sequence
- a.length (4);
-
- mock_reference* elem0 = mock_reference::allocate (0);
- mock_reference* elem1 = mock_reference::allocate (1);
- mock_reference* elem2 = mock_reference::allocate (2);
- mock_reference* elem3 = mock_reference::allocate (3);
-
- // setup of an example sequence
- a.length (4);
- a[0] = elem0;
- a[1] = elem1;
- a[2] = elem2;
- a[3] = elem3;
-
- // test iterator copy constructor
- REVERSE_ITERATOR_T a_it (a.rbegin ());
- FAIL_RETURN_IF (a_it != a.rbegin ());
-
- // test assignment operator
- a_it = a.rbegin ();
- FAIL_RETURN_IF (a_it != a.rbegin ());
-
- // test non const dereferencing
- mock_reference* value0 = *a_it;
- FAIL_RETURN_IF (value0->id () != elem3->id ());
-
- // test const dereferencing
- const mock_reference* const value1 = *a_it;
- FAIL_RETURN_IF (value1->id () != elem3->id ());
-
- // test increment operation
- a_it++;
- FAIL_RETURN_IF (a_it == a.rbegin());
- FAIL_RETURN_IF ((*a_it)->id () != elem2->id ());
-
- // test < operator
- FAIL_RETURN_IF (!(a.rbegin () < a_it));
- FAIL_RETURN_IF (a_it < a.rbegin ());
-
- // test difference type
- int a_diff = a_it - a.rbegin ();
- FAIL_RETURN_IF (a_diff != 1);
-
- // test copy constructor
- REVERSE_ITERATOR_T a_it1 (a_it);
- FAIL_RETURN_IF (a_it1 != a_it);
-
- // test preincrement operator
- ++a_it1;
- FAIL_RETURN_IF ((a_it1 - a_it) != 1);
-
- // test = and += operator
- REVERSE_ITERATOR_T a_it2 = a_it += 3;
- FAIL_RETURN_IF (a_it2 != a_it);
- FAIL_RETURN_IF ((a_it - a_it1) != 2);
-
- // test + operator
- a_it2 = a_it1 + 3;
- FAIL_RETURN_IF ((a_it2 - a_it1) != 3);
-
- // test post-decrement operation
- a_it = a.rend ();
- a_it--;
- FAIL_RETURN_IF (a_it == a.rend ());
- FAIL_RETURN_IF ((a.rend () - a_it) != 1);
- FAIL_RETURN_IF ((*a_it)->id () != elem0->id ());
-
- // test pre-decrement operator
- a_it = a.rend ();
- --a_it;
- FAIL_RETURN_IF (a_it == a.rend ());
- FAIL_RETURN_IF ((a.rend () - a_it) != 1);
- FAIL_RETURN_IF ((*a_it)->id () != elem0->id ());
-
- // test -= operator
- a_it -= 3;
- FAIL_RETURN_IF ((a_it1 - a_it) != 2);
-
- // test - operator
- a_it2 = a_it1 - 2;
- FAIL_RETURN_IF ((a_it1 - a_it2) != 2);
-
- // test operator[] read
- a_it = a.rbegin ();
- FAIL_RETURN_IF ((a_it[0])->id () != a[3]->id ());
- a_it += 2;
- FAIL_RETURN_IF ((a_it[0])->id () != a[1]->id ());
-
- // test for loop behaviour
- tested_sequence b = a;
- REVERSE_ITERATOR_T b_it = b.rbegin ();
-
- for (a_it = a.rbegin ();
- a_it != a.rend ();
- a_it++, b_it++)
- {
- FAIL_RETURN_IF ((*a_it)->id () != (*b_it)->id ());
- }
-
- tested_sequence test;
- test.length (a.length ());
-
- std::copy (a.begin (),
- a.end (),
- test.begin ());
-
- FAIL_RETURN_IF (test.length () != a.length ());
-
- REVERSE_ITERATOR_T copytest_iter = test.rbegin ();
- for (REVERSE_ITERATOR_T copya_iter = a.rbegin ();
- copya_iter != a.rend ();
- ++copya_iter, ++copytest_iter)
- {
- FAIL_RETURN_IF ((*copya_iter)->id () != (*copytest_iter)->id ());
- }
-
- /// Testing - using ostream_iterator
- /// JWH2 - I don't think the ostream test makes sense for object references.
- /*
- std::ostringstream ostream;
- std::copy (a.rbegin (),
- a.rend (),
- std::ostream_iterator<tested_sequence::value_type> (ostream,
- "\n"));
-
- FAIL_RETURN_IF (
- ostream.str ().compare ("elem3\nelem2\nelem1\nelem0\n") != 0);
- */
-
- return 0;
-}
-
-//-----------------------------------------------------------------------------
-
-template <typename REVERSE_ITERATOR_T>
-int test_const_sequence_reverse ()
-{
- // setup of an example sequence
- tested_sequence setup;
- setup.length (4);
-
- mock_reference* elem0 = mock_reference::allocate (0);
- mock_reference* elem1 = mock_reference::allocate (1);
- mock_reference* elem2 = mock_reference::allocate (2);
- mock_reference* elem3 = mock_reference::allocate (3);
-
- // setup of an example sequence
- setup[0] = elem0;
- setup[1] = elem1;
- setup[2] = elem2;
- setup[3] = elem3;
-
- const tested_sequence a = setup;
-
- // test equality operator
- FAIL_RETURN_IF (!(a.begin () == a.begin ()));
-
- // test non-equality operator
- FAIL_RETURN_IF (a.end () != a.end ());
-
- // test iterator copy constructor
- REVERSE_ITERATOR_T a_it (a.rbegin ());
- FAIL_RETURN_IF (a_it != a.rbegin ());
-
- // test assignment operator
- a_it = a.rbegin ();
- FAIL_RETURN_IF (a_it != a.rbegin ());
-
- // test non const dereferencing
- mock_reference* value0 = *a_it;
- FAIL_RETURN_IF (value0->id () != elem3->id ());
-
- // test const dereferencing
- const mock_reference* const value1 = *a_it;
- FAIL_RETURN_IF (value1->id () != elem3->id ());
-
- // test increment operation
- a_it++;
- FAIL_RETURN_IF (a_it == a.rbegin());
- FAIL_RETURN_IF ((*a_it)->id () != elem2->id ());
-
- // test < operator
- FAIL_RETURN_IF (!(a.rbegin () < a_it));
- FAIL_RETURN_IF (a_it < a.rbegin ());
-
- // test difference type
- int a_diff = a_it - a.rbegin ();
- FAIL_RETURN_IF (a_diff != 1);
-
- // test copy constructor
- REVERSE_ITERATOR_T a_it1 (a_it);
- FAIL_RETURN_IF (a_it1 != a_it);
-
- // test preincrement operator
- ++a_it1;
- FAIL_RETURN_IF ((a_it1 - a_it) != 1);
-
- // test = and += operator
- REVERSE_ITERATOR_T a_it2 = a_it += 3;
- FAIL_RETURN_IF (a_it2 != a_it);
- FAIL_RETURN_IF ((a_it - a_it1) != 2);
-
- // test + operator
- a_it2 = a_it1 + 3;
- FAIL_RETURN_IF ((a_it2 - a_it1) != 3);
-
- // test post-decrement operation
- a_it = a.rend ();
- a_it--;
- FAIL_RETURN_IF (a_it == a.rend ());
- FAIL_RETURN_IF ((a.rend () - a_it) != 1);
- FAIL_RETURN_IF ((*a_it)->id () != elem0->id ());
-
- // test pre-decrement operator
- a_it = a.rend ();
- --a_it;
- FAIL_RETURN_IF (a_it == a.rend ());
- FAIL_RETURN_IF ((a.rend () - a_it) != 1);
- FAIL_RETURN_IF ((*a_it)->id () != elem0->id ());
-
- // test -= operator
- a_it -= 3;
- FAIL_RETURN_IF ((a_it1 - a_it) != 2);
-
- // test - operator
- a_it2 = a_it1 - 2;
- FAIL_RETURN_IF ((a_it1 - a_it2) != 2);
-
- // test operator[] read
- a_it = a.rbegin ();
- FAIL_RETURN_IF ((a_it[0])->id () != a[3]->id ());
- a_it += 2;
- FAIL_RETURN_IF ((a_it[0])->id () != a[1]->id ());
-
- // test operator[] write
- // NOTE: This now changes the sequence a.
- // this is not possible for const iterators
- // a_it[0] = CORBA::string_dup (elem0_cstr);
- // FAIL_RETURN_IF (ACE_OS::strcmp (a[1],elem0_cstr) != 0);
-
- // reset content of sequence a
- //a[1] = CORBA::string_dup (elem1_cstr);
-
- // test for loop behaviour
- tested_sequence b = a;
- REVERSE_ITERATOR_T b_it = b.rbegin ();
-
- for (a_it = a.rbegin ();
- a_it != a.rend ();
- a_it++, b_it++)
- {
- FAIL_RETURN_IF ((*a_it)->id () != (*b_it)->id ());
- }
-
- tested_sequence test;
- test.length (a.length ());
-
- /*
- * The copy call below causes double deletes and seg faults.
- */
- std::copy (a.begin (),
- a.end (),
- test.begin ());
-
- FAIL_RETURN_IF (test.length () != a.length ());
-
- REVERSE_ITERATOR_T copytest_iter = test.rbegin ();
- for (REVERSE_ITERATOR_T copya_iter = a.rbegin ();
- copya_iter != a.rend ();
- ++copya_iter, ++copytest_iter)
- {
- FAIL_RETURN_IF ((*copya_iter)->id () != (*copytest_iter)->id ());
- }
-
- /// Testing - using ostream_iterator
- /// JWH2 - I don't think the ostream test makes sense for object references.
- /*
- std::ostringstream ostream;
- std::copy (a.rbegin (),
- a.rend (),
- std::ostream_iterator<tested_sequence::value_type> (ostream,
- "\n"));
-
- FAIL_RETURN_IF (
- ostream.str ().compare ("elem3\nelem2\nelem1\nelem0\n") != 0);
- */
-
- return 0;
-}
-
-#endif
-
-//-----------------------------------------------------------------------------
-
-int ACE_TMAIN(int,ACE_TCHAR*[])
-{
- int status = 0;
-
-#if defined TAO_HAS_SEQUENCE_ITERATORS && TAO_HAS_SEQUENCE_ITERATORS == 1
-
- // Test Generic_Sequence_Iterator.
- status += test_sequence< tested_sequence::iterator> ();
-
- // g++ seems to make the conversion from iterator to const_iterator
- // and Windows doesn't. Not sure why.
- // Test Const_Generic_Sequence_Iterator with non-const sequence.
- status += test_sequence< tested_sequence::const_iterator> ();
-
- // Test Const_Generic_Sequence_Iterator with const sequence.
- status += test_const_sequence< tested_sequence::const_iterator> ();
-
- // Test Generic_Sequence_Reverse_Iterator.
- status += test_sequence_reverse< tested_sequence::reverse_iterator> ();
-
- // Test Const_Generic_Sequence_Reverse_Iterator with non-const sequence.
- status += test_sequence_reverse< tested_sequence::const_reverse_iterator> ();
-
- // Test Const_Generic_Sequence_Reverse_Iterator with const sequence.
- status += test_const_sequence_reverse< tested_sequence::const_reverse_iterator> ();
-
-#endif /* TAO_HAS_SEQUENCE_ITERATORS == 1 */
-
- return status;
-}
diff --git a/TAO/tests/Sequence_Iterators/Unbounded_Value.cpp b/TAO/tests/Sequence_Iterators/Unbounded_Value.cpp
deleted file mode 100644
index 682c27bd025..00000000000
--- a/TAO/tests/Sequence_Iterators/Unbounded_Value.cpp
+++ /dev/null
@@ -1,690 +0,0 @@
-/**
- * @file Unbounded_Value.cpp
- *
- * @brief test for STL iterator behaviour of CORBA bounded string sequence
- *
- * @author Friedhelm Wolf (fwolf@dre.vanderbilt.edu)
- */
-
-#include "tao/Unbounded_Value_Sequence_T.h"
-#include "ace/Log_Msg.h"
-
-#include <iostream>
-#include <iterator>
-#include <sstream>
-
-#if defined TAO_HAS_SEQUENCE_ITERATORS && TAO_HAS_SEQUENCE_ITERATORS == 1
-
-typedef TAO::unbounded_value_sequence<int> v_sequence;
-
-#define FAIL_RETURN_IF(CONDITION) \
- if (CONDITION) \
- { \
- ACE_DEBUG ((LM_ERROR, ACE_TEXT ("\tFailed at %N:%l\n"))); \
- return 1; \
- }
-
-template <typename ITERATOR_T>
-int test_sequence ()
-{
- v_sequence a;
-
- // test equality operator
- FAIL_RETURN_IF (!(a.begin () == a.begin ()));
-
- // test non-equality operator
- FAIL_RETURN_IF (a.end () != a.end ());
-
- // test for correct behaviour for empty sequence
- FAIL_RETURN_IF (a.begin() != a.end ());
-
- // setup of an example sequence
- a.length (4);
-
- int elem0 = 0;
- int elem1 = 1;
- int elem2 = 2;
- int elem3 = 3;
-
- a[0] = elem0;
- a[1] = elem1;
- a[2] = elem2;
- a[3] = elem3;
-
- // test iterator copy constructor
- ITERATOR_T a_it (a.begin ());
- FAIL_RETURN_IF (a_it != a.begin ());
-
- // test assignment operator
- a_it = a.begin ();
- FAIL_RETURN_IF (a_it != a.begin ());
-
- // test non const dereferencing
- // JWH2 - I don't think this test makes sense. I believe the compiler
- // will always return a const value since the dereference is on
- // the right hand side of the assignment (i.e., r value).
- //int value0 = *a_it;
- //FAIL_RETURN_IF (value0 != elem0);
-
- // test const dereferencing
- int value1 = *a_it;
- FAIL_RETURN_IF (value1 != elem0);
-
- // test increment operation
- a_it++;
- FAIL_RETURN_IF (a_it == a.begin());
- FAIL_RETURN_IF (*a_it != elem1);
-
- // test < operator
- FAIL_RETURN_IF (!(a.begin () < a_it));
- FAIL_RETURN_IF (a_it < a.begin ());
-
- // test difference type
- int a_diff = a_it - a.begin ();
- FAIL_RETURN_IF (a_diff != 1);
-
- // test copy constructor
- ITERATOR_T a_it1 (a_it);
- FAIL_RETURN_IF (a_it1 != a_it);
-
- // test preincrement operator
- ++a_it1;
- FAIL_RETURN_IF ((a_it1 - a_it) != 1);
-
- // test = and += operator
- ITERATOR_T a_it2 = a_it += 3;
- FAIL_RETURN_IF (a_it2 != a_it);
- FAIL_RETURN_IF ((a_it - a_it1) != 2);
-
- // test + operator
- a_it2 = a_it1 + 3;
- FAIL_RETURN_IF ((a_it2 - a_it1) != 3);
-
- // test post-decrement operation
- a_it = a.end ();
- a_it--;
- FAIL_RETURN_IF (a_it == a.end ());
- FAIL_RETURN_IF ((a.end () - a_it) != 1);
- FAIL_RETURN_IF (*a_it != elem3);
-
- // test pre-decrement operator
- a_it = a.end ();
- --a_it;
- FAIL_RETURN_IF (a_it == a.end ());
- FAIL_RETURN_IF ((a.end () - a_it) != 1);
- FAIL_RETURN_IF (*a_it != elem3);
-
- // test -= operator
- a_it -= 3;
- FAIL_RETURN_IF ((a_it1 - a_it) != 2);
-
- // test - operator
- a_it2 = a_it1 - 2;
- FAIL_RETURN_IF ((a_it1 - a_it2) != 2);
-
- // test operator[] read
- a_it = a.begin ();
- FAIL_RETURN_IF (a_it[0] != a[0]);
- a_it += 2;
- FAIL_RETURN_IF (a_it[0] != a[2]);
-
- // test operator[] write
- // NOTE: This now changes the sequence a.
- // NOTE: This does not work for const_iterators
- // a_it[0] = elem0;
- // FAIL_RETURN_IF (a[2] != elem0);
-
- // reset content of sequence a
- //a[2] = elem2;
-
- // test for loop behaviour
- v_sequence b = a;
- ITERATOR_T b_it = b.begin ();
-
- for (a_it = a.begin ();
- a_it != a.end ();
- a_it++, b_it++)
- {
- FAIL_RETURN_IF (*a_it != *b_it);
- }
-
- v_sequence test;
- test.length (4);
-
- std::copy (a.begin (),
- a.end (),
- test.begin ());
-
- FAIL_RETURN_IF (test.length () != a.length ());
-
- ITERATOR_T copytest_iter = test.begin ();
- for (ITERATOR_T copya_iter = a.begin ();
- copya_iter != a.end ();
- ++copya_iter, ++copytest_iter)
- {
- FAIL_RETURN_IF (*copya_iter != *copytest_iter);
- }
-
- /// Testing - using ostream_iterator
-
- std::ostringstream ostream;
- std::copy (a.begin (),
- a.end (),
- // JWH2 - I changed value_type to const_value_type. Is that
- // the correct approach?
- std::ostream_iterator<v_sequence::const_value_type> (ostream,
- "\n"));
-
- FAIL_RETURN_IF (
- ostream.str ().compare ("0\n1\n2\n3\n") != 0);
-
- return 0;
-}
-
-//-----------------------------------------------------------------------------
-
-template <typename ITERATOR_T>
-int test_const_sequence ()
-{
- // setup of an example sequence
- v_sequence setup;
- setup.length (4);
-
- int elem0 = 0;
- int elem1 = 1;
- int elem2 = 2;
- int elem3 = 3;
-
- setup[0] = elem0;
- setup[1] = elem1;
- setup[2] = elem2;
- setup[3] = elem3;
-
- const v_sequence a = setup;
-
- // test equality operator
- FAIL_RETURN_IF (!(a.begin () == a.begin ()));
-
- // test non-equality operator
- FAIL_RETURN_IF (a.end () != a.end ());
-
- // test iterator copy constructor
- ITERATOR_T a_it (a.begin ());
- FAIL_RETURN_IF (a_it != a.begin ());
-
- // test assignment operator
- a_it = a.begin ();
- FAIL_RETURN_IF (a_it != a.begin ());
-
- // test non const dereferencing
- // JWH2 - I don't think this test makes sense. I believe the compiler
- // will always return a const value since the dereference is on
- // the right hand side of the assignment (i.e., r value).
- //char* value0 = *a_it;
- //FAIL_RETURN_IF (value0 != elem0);
-
- // test const dereferencing
- int value1 = *a_it;
- FAIL_RETURN_IF (value1 != elem0);
-
- // test increment operation
- a_it++;
- FAIL_RETURN_IF (a_it == a.begin());
- FAIL_RETURN_IF (*a_it != elem1);
-
- // test < operator
- FAIL_RETURN_IF (!(a.begin () < a_it));
- FAIL_RETURN_IF (a_it < a.begin ());
-
- // test difference type
- int a_diff = a_it - a.begin ();
- FAIL_RETURN_IF (a_diff != 1);
-
- // test copy constructor
- ITERATOR_T a_it1 (a_it);
- FAIL_RETURN_IF (a_it1 != a_it);
-
- // test preincrement operator
- ++a_it1;
- FAIL_RETURN_IF ((a_it1 - a_it) != 1);
-
- // test = and += operator
- ITERATOR_T a_it2 = a_it += 3;
- FAIL_RETURN_IF (a_it2 != a_it);
- FAIL_RETURN_IF ((a_it - a_it1) != 2);
-
- // test + operator
- a_it2 = a_it1 + 3;
- FAIL_RETURN_IF ((a_it2 - a_it1) != 3);
-
- // test post-decrement operation
- a_it = a.end ();
- a_it--;
- FAIL_RETURN_IF (a_it == a.end ());
- FAIL_RETURN_IF ((a.end () - a_it) != 1);
- FAIL_RETURN_IF (*a_it != elem3);
-
- // test pre-decrement operator
- a_it = a.end ();
- --a_it;
- FAIL_RETURN_IF (a_it == a.end ());
- FAIL_RETURN_IF ((a.end () - a_it) != 1);
- FAIL_RETURN_IF (*a_it != elem3);
-
- // test -= operator
- a_it -= 3;
- FAIL_RETURN_IF ((a_it1 - a_it) != 2);
-
- // test - operator
- a_it2 = a_it1 - 2;
- FAIL_RETURN_IF ((a_it1 - a_it2) != 2);
-
- // test operator[] read
- a_it = a.begin ();
- FAIL_RETURN_IF (a_it[0] != a[0]);
- a_it += 2;
- FAIL_RETURN_IF (a_it[0] != a[2]);
-
- // test operator[] write
- // NOTE: This now changes the sequence a.
- // NOTE: This does not work for const_iterators
- // a_it[0] = elem0;
- // FAIL_RETURN_IF (a[2] != elem0);
-
- // reset content of sequence a
- //a[2] = elem2;
-
- // test for loop behaviour
- v_sequence b = a;
- ITERATOR_T b_it = b.begin ();
-
- for (a_it = a.begin ();
- a_it != a.end ();
- a_it++, b_it++)
- {
- FAIL_RETURN_IF (*a_it != *b_it);
- }
-
- v_sequence test;
- test.length (4);
-
- std::copy (a.begin (),
- a.end (),
- test.begin ());
-
- FAIL_RETURN_IF (test.length () != a.length ());
-
- ITERATOR_T copytest_iter = test.begin ();
- for (ITERATOR_T copya_iter = a.begin ();
- copya_iter != a.end ();
- ++copya_iter, ++copytest_iter)
- {
- FAIL_RETURN_IF (*copya_iter != *copytest_iter);
- }
-
- /// Testing - using ostream_iterator
-
- std::ostringstream ostream;
- std::copy (a.begin (),
- a.end (),
- // JWH2 - I changed value_type to const_value_type. Is that
- // the correct approach?
- std::ostream_iterator<v_sequence::const_value_type> (ostream,
- "\n"));
-
- FAIL_RETURN_IF (
- ostream.str ().compare ("0\n1\n2\n3\n") != 0);
-
- return 0;
-}
-
-//-----------------------------------------------------------------------------
-
-template <typename REVERSE_ITERATOR_T>
-int test_sequence_reverse ()
-{
- v_sequence a;
-
- // test equality operator
- FAIL_RETURN_IF (!(a.begin () == a.begin ()));
-
- // test non-equality operator
- FAIL_RETURN_IF (a.end () != a.end ());
-
- // test for correct behaviour for empty sequence
-
- FAIL_RETURN_IF (a.begin() != a.end ());
-
- // setup of an example sequence
- a.length (4);
-
- int elem0 = 0;
- int elem1 = 1;
- int elem2 = 2;
- int elem3 = 3;
-
- a[0] = elem0;
- a[1] = elem1;
- a[2] = elem2;
- a[3] = elem3;
-
- // test iterator copy constructor
- REVERSE_ITERATOR_T a_it (a.rbegin ());
- FAIL_RETURN_IF (a_it != a.rbegin ());
-
- // test assignment operator
- a_it = a.rbegin ();
- FAIL_RETURN_IF (a_it != a.rbegin ());
-
- // test non const dereferencing
- // JWH2 - I don't think this test makes sense. I believe the compiler
- // will always return a const value since the dereference is on
- // the right hand side of the assignment (i.e., r value).
- //int value0 = *a_it;
- //FAIL_RETURN_IF (value0 != elem3);
-
- // test const dereferencing
- int value1 = *a_it;
- FAIL_RETURN_IF (value1 != elem3);
-
- // test increment operation
- a_it++;
- FAIL_RETURN_IF (a_it == a.rbegin());
- FAIL_RETURN_IF (*a_it != elem2);
-
- // test < operator
- FAIL_RETURN_IF (!(a.rbegin () < a_it));
- FAIL_RETURN_IF (a_it < a.rbegin ());
-
- // test difference type
- int a_diff = a_it - a.rbegin ();
- FAIL_RETURN_IF (a_diff != 1);
-
- // test copy constructor
- REVERSE_ITERATOR_T a_it1 (a_it);
- FAIL_RETURN_IF (a_it1 != a_it);
-
- // test preincrement operator
- ++a_it1;
- FAIL_RETURN_IF ((a_it1 - a_it) != 1);
-
- // test = and += operator
- REVERSE_ITERATOR_T a_it2 = a_it += 3;
- FAIL_RETURN_IF (a_it2 != a_it);
- FAIL_RETURN_IF ((a_it - a_it1) != 2);
-
- // test + operator
- a_it2 = a_it1 + 3;
- FAIL_RETURN_IF ((a_it2 - a_it1) != 3);
-
- // test post-decrement operation
- a_it = a.rend ();
- a_it--;
- FAIL_RETURN_IF (a_it == a.rend ());
- FAIL_RETURN_IF ((a.rend () - a_it) != 1);
- FAIL_RETURN_IF (*a_it != elem0);
-
- // test pre-decrement operator
- a_it = a.rend ();
- --a_it;
- FAIL_RETURN_IF (a_it == a.rend ());
- FAIL_RETURN_IF ((a.rend () - a_it) != 1);
- FAIL_RETURN_IF (*a_it != elem0);
-
- // test -= operator
- a_it -= 3;
- FAIL_RETURN_IF ((a_it1 - a_it) != 2);
-
- // test - operator
- a_it2 = a_it1 - 2;
- FAIL_RETURN_IF ((a_it1 - a_it2) != 2);
-
- // test operator[] read
- a_it = a.rbegin ();
- FAIL_RETURN_IF (a_it[0] != a[3]);
- a_it += 2;
- FAIL_RETURN_IF (a_it[0] != a[1]);
-
- // test operator[] write
- // NOTE: This now changes the sequence a.
- // this is not possible for const iterators
- // a_it[0] = elem0;
- // FAIL_RETURN_IF (a[1] != elem0);
-
- // reset content of sequence a
- //a[1] = elem1;
-
- // test for loop behaviour
- v_sequence b = a;
- REVERSE_ITERATOR_T b_it = b.rbegin ();
-
- for (a_it = a.rbegin ();
- a_it != a.rend ();
- a_it++, b_it++)
- {
- FAIL_RETURN_IF (*a_it != *b_it);
- }
-
- v_sequence test;
- test.length (a.length ());
-
- std::copy (a.begin (),
- a.end (),
- test.begin ());
-
- FAIL_RETURN_IF (test.length () != a.length ());
-
- REVERSE_ITERATOR_T copytest_iter = test.rbegin ();
- for (REVERSE_ITERATOR_T copya_iter = a.rbegin ();
- copya_iter != a.rend ();
- ++copya_iter, ++copytest_iter)
- {
- FAIL_RETURN_IF (*copya_iter != *copytest_iter);
- }
-
- /// Testing - using ostream_iterator
-
- std::ostringstream ostream;
- std::copy (a.rbegin (),
- a.rend (),
- // JWH2 - I changed value_type to const_value_type. Is that
- // the correct approach?
- std::ostream_iterator<v_sequence::const_value_type> (ostream,
- "\n"));
-
- FAIL_RETURN_IF (
- ostream.str ().compare ("3\n2\n1\n0\n") != 0);
-
- return 0;
-}
-
-//-----------------------------------------------------------------------------
-
-template <typename REVERSE_ITERATOR_T>
-int test_const_sequence_reverse ()
-{
- // setup of an example sequence
- v_sequence setup;
- setup.length (4);
-
- int elem0 = 0;
- int elem1 = 1;
- int elem2 = 2;
- int elem3 = 3;
-
- setup[0] = elem0;
- setup[1] = elem1;
- setup[2] = elem2;
- setup[3] = elem3;
-
- const v_sequence a = setup;
-
- // test equality operator
- FAIL_RETURN_IF (!(a.begin () == a.begin ()));
-
- // test non-equality operator
- FAIL_RETURN_IF (a.end () != a.end ());
-
- // test iterator copy constructor
- REVERSE_ITERATOR_T a_it (a.rbegin ());
- FAIL_RETURN_IF (a_it != a.rbegin ());
-
- // test assignment operator
- a_it = a.rbegin ();
- FAIL_RETURN_IF (a_it != a.rbegin ());
-
- // test non const dereferencing
- // JWH2 - I don't think this test makes sense. I believe the compiler
- // will always return a const value since the dereference is on
- // the right hand side of the assignment (i.e., r value).
- //int value0 = *a_it;
- //FAIL_RETURN_IF (value0 != elem3);
-
- // test const dereferencing
- int value1 = *a_it;
- FAIL_RETURN_IF (value1 != elem3);
-
- // test increment operation
- a_it++;
- FAIL_RETURN_IF (a_it == a.rbegin());
- FAIL_RETURN_IF (*a_it != elem2);
-
- // test < operator
- FAIL_RETURN_IF (!(a.rbegin () < a_it));
- FAIL_RETURN_IF (a_it < a.rbegin ());
-
- // test difference type
- int a_diff = a_it - a.rbegin ();
- FAIL_RETURN_IF (a_diff != 1);
-
- // test copy constructor
- REVERSE_ITERATOR_T a_it1 (a_it);
- FAIL_RETURN_IF (a_it1 != a_it);
-
- // test preincrement operator
- ++a_it1;
- FAIL_RETURN_IF ((a_it1 - a_it) != 1);
-
- // test = and += operator
- REVERSE_ITERATOR_T a_it2 = a_it += 3;
- FAIL_RETURN_IF (a_it2 != a_it);
- FAIL_RETURN_IF ((a_it - a_it1) != 2);
-
- // test + operator
- a_it2 = a_it1 + 3;
- FAIL_RETURN_IF ((a_it2 - a_it1) != 3);
-
- // test post-decrement operation
- a_it = a.rend ();
- a_it--;
- FAIL_RETURN_IF (a_it == a.rend ());
- FAIL_RETURN_IF ((a.rend () - a_it) != 1);
- FAIL_RETURN_IF (*a_it != elem0);
-
- // test pre-decrement operator
- a_it = a.rend ();
- --a_it;
- FAIL_RETURN_IF (a_it == a.rend ());
- FAIL_RETURN_IF ((a.rend () - a_it) != 1);
- FAIL_RETURN_IF (*a_it != elem0);
-
- // test -= operator
- a_it -= 3;
- FAIL_RETURN_IF ((a_it1 - a_it) != 2);
-
- // test - operator
- a_it2 = a_it1 - 2;
- FAIL_RETURN_IF ((a_it1 - a_it2) != 2);
-
- // test operator[] read
- a_it = a.rbegin ();
- FAIL_RETURN_IF (a_it[0] != a[3]);
- a_it += 2;
- FAIL_RETURN_IF (a_it[0] != a[1]);
-
- // test operator[] write
- // NOTE: This now changes the sequence a.
- // this is not possible for const iterators
- // a_it[0] = elem0;
- // FAIL_RETURN_IF (a[1] != elem0);
-
- // reset content of sequence a
- //a[1] = elem1;
-
- // test for loop behaviour
- v_sequence b = a;
- REVERSE_ITERATOR_T b_it = b.rbegin ();
-
- for (a_it = a.rbegin ();
- a_it != a.rend ();
- a_it++, b_it++)
- {
- FAIL_RETURN_IF (*a_it != *b_it);
- }
-
- v_sequence test;
- test.length (a.length ());
-
- std::copy (a.begin (),
- a.end (),
- test.begin ());
-
- FAIL_RETURN_IF (test.length () != a.length ());
-
- REVERSE_ITERATOR_T copytest_iter = test.rbegin ();
- for (REVERSE_ITERATOR_T copya_iter = a.rbegin ();
- copya_iter != a.rend ();
- ++copya_iter, ++copytest_iter)
- {
- FAIL_RETURN_IF (*copya_iter != *copytest_iter);
- }
-
- /// Testing - using ostream_iterator
-
- std::ostringstream ostream;
- std::copy (a.rbegin (),
- a.rend (),
- // JWH2 - I changed value_type to const_value_type. Is that
- // the correct approach?
- std::ostream_iterator<v_sequence::const_value_type> (ostream,
- "\n"));
-
- FAIL_RETURN_IF (
- ostream.str ().compare ("3\n2\n1\n0\n") != 0);
-
- return 0;
-}
-
-#endif
-
-//-----------------------------------------------------------------------------
-
-int ACE_TMAIN(int,ACE_TCHAR*[])
-{
- int status = 0;
-
-#if defined TAO_HAS_SEQUENCE_ITERATORS && TAO_HAS_SEQUENCE_ITERATORS == 1
-
- // Test Generic_Sequence_Iterator.
- status += test_sequence<v_sequence::iterator> ();
-
- // g++ seems to make the conversion from iterator to const_iterator
- // and Windows doesn't. Not sure why.
- // Test Const_Generic_Sequence_Iterator with non-const sequence.
- status += test_sequence<v_sequence::const_iterator> ();
-
- // Test Const_Generic_Sequence_Iterator with const sequence.
- status += test_const_sequence<v_sequence::const_iterator> ();
-
- // Test Generic_Sequence_Reverse_Iterator.
- status += test_sequence_reverse<v_sequence::reverse_iterator> ();
-
- // Test Const_Generic_Sequence_Reverse_Iterator with non-const sequence.
- status += test_sequence_reverse<v_sequence::const_reverse_iterator> ();
-
- // Test Const_Generic_Sequence_Reverse_Iterator with const sequence.
- status += test_const_sequence_reverse<v_sequence::const_reverse_iterator> ();
-#endif
-
- return status;
-}
diff --git a/TAO/tests/Sequence_Iterators/mock_reference.cpp b/TAO/tests/Sequence_Iterators/mock_reference.cpp
deleted file mode 100644
index 02f2e999f85..00000000000
--- a/TAO/tests/Sequence_Iterators/mock_reference.cpp
+++ /dev/null
@@ -1,88 +0,0 @@
-/**
- * @file
- *
- * @author Carlos O'Ryan <coryan@atdesk.com>
- */
-#include "mock_reference.hpp"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-mock_reference::
-~mock_reference()
-{
-}
-
-mock_reference * mock_reference::
-allocate(int id)
-{
- return new mock_reference(id);
-}
-
-mock_reference * mock_reference::
-_nil()
-{
- return 0;
-}
-
-mock_reference * mock_reference::
-_duplicate(mock_reference * rhs)
-{
- if (rhs == 0)
- {
- return 0;
- }
- return new mock_reference(*rhs);
-}
-
-void mock_reference::
-_tao_release(mock_reference * rhs)
-{
- delete rhs;
-}
-
-void CORBA::release(mock_reference * r)
-{
- mock_reference::_tao_release(r);
-}
-
-mock_reference *
-TAO::Objref_Traits<mock_reference>::duplicate (
- mock_reference_ptr p
- )
-{
- return mock_reference::_duplicate (p);
-}
-
-void
-TAO::Objref_Traits<mock_reference>::release (
- mock_reference_ptr p
- )
-{
- CORBA::release (p);
-}
-
-mock_reference_ptr
-TAO::Objref_Traits<mock_reference>::nil (void)
-{
- return mock_reference::_nil ();
-}
-
-CORBA::Boolean
-TAO::Objref_Traits<mock_reference>::marshal (
- const mock_reference_ptr,
- TAO_OutputCDR &
- )
-{
- return true;
-}
-
-CORBA::Boolean operator<< (TAO_OutputCDR &, const mock_reference *)
-{
- return true;
-}
-CORBA::Boolean operator>> (TAO_InputCDR &, mock_reference *&)
-{
- return true;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tests/Sequence_Iterators/mock_reference.hpp b/TAO/tests/Sequence_Iterators/mock_reference.hpp
deleted file mode 100644
index 31ed319199c..00000000000
--- a/TAO/tests/Sequence_Iterators/mock_reference.hpp
+++ /dev/null
@@ -1,100 +0,0 @@
-#ifndef guard_mock_reference_hpp
-#define guard_mock_reference_hpp
-/**
- * @file
- *
- * @brief Mock an object reference so we can test the sequences in
- * isolation.
- *
- * @author Carlos O'Ryan
- */
-#include "ace/config-all.h"
-
-#include "tao/Basic_Types.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-// Forward declare the class a CORBA::release function for it. That
-// avoids having to introduce CORBA::Object into the tests.
-// Ideally the T_var and T_out types should accept mock objects
-// too, but that is too much to bite in the current iteration.
-class mock_reference;
-namespace CORBA
-{
-void release(mock_reference*);
-}
-
-class mock_stream;
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include "tao/Objref_VarOut_T.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-typedef mock_reference *mock_reference_ptr;
-typedef TAO_Objref_Var_T<mock_reference> mock_reference_var;
-typedef TAO_Objref_Out_T<mock_reference> mock_reference_out;
-
-/**
- * @class mock_reference
- *
- * @brief Implement a concrete class with the right interface for an
- * object reference.
- */
-class mock_reference
-{
-public:
- virtual ~mock_reference();
-
- typedef mock_reference_var _var_type;
- typedef mock_reference_out _out_type;
-
- static mock_reference * allocate(int id);
- static mock_reference * _nil();
-
- static mock_reference * _duplicate(mock_reference * rhs);
- static void _tao_release(mock_reference * rhs);
-
- inline bool operator==(mock_reference const & rhs) const
- {
- return id_ == rhs.id_;
- }
-
- inline bool operator!=(mock_reference const & rhs) const
- {
- return !(*this == rhs);
- }
-
- inline int id() const
- {
- return id_;
- }
-
-private:
- mock_reference ();
-
- inline mock_reference(int id)
- : id_(id)
- {}
-
-private:
- int id_;
-};
-
-CORBA::Boolean operator<< (TAO_OutputCDR &, const mock_reference *);
-CORBA::Boolean operator>> (TAO_InputCDR &, mock_reference *&);
-
-namespace TAO
-{
- template<>
- struct Objref_Traits< mock_reference>
- {
- static mock_reference_ptr duplicate (mock_reference_ptr);
- static void release (mock_reference_ptr);
- static mock_reference_ptr nil (void);
- static CORBA::Boolean marshal (const mock_reference_ptr p, TAO_OutputCDR & cdr);
- };
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-#endif // guard_mock_reference_hpp
diff --git a/TAO/tests/Sequence_Iterators/run_test.pl b/TAO/tests/Sequence_Iterators/run_test.pl
deleted file mode 100755
index e9cb5343e72..00000000000
--- a/TAO/tests/Sequence_Iterators/run_test.pl
+++ /dev/null
@@ -1,45 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# -*- perl -*-
-
-use lib "$ENV{ACE_ROOT}/bin";
-use PerlACE::TestTarget;
-use strict;
-
-my $final_result = 0;
-
-my @testsToRun = qw(
- StringSeq
- Bounded_String
- Unbounded_Value
- Unbounded_Objectref
- );
-
-foreach my $process (@testsToRun) {
-
- my $server = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
- my $P = $server->CreateProcess ($process);
- print "Running $process ...\n";
- my $result = $P->Spawn;
- if ($result != 0) {
- print "FAILED $process\n";
- $final_result = 1;
- next;
- }
- $result = $P->WaitKill($server->ProcessStartWaitInterval());
- if ($result != 0) {
- print "FAILED $process\n";
- $final_result = 1;
- next;
- }
- print "SUCCESS\n";
-}
-
-exit $final_result;
-
-
-
-
-
diff --git a/TAO/tests/Sequence_Iterators/testing_counters.hpp b/TAO/tests/Sequence_Iterators/testing_counters.hpp
deleted file mode 100644
index fd190f2ec47..00000000000
--- a/TAO/tests/Sequence_Iterators/testing_counters.hpp
+++ /dev/null
@@ -1,104 +0,0 @@
-#ifndef guard_testing_counters_hpp
-#define guard_testing_counters_hpp
-/**
- * @file
- *
- * @brief Some unit tests need to count how many times a function is
- * called. Here we implement some simple helper classes for that
- * purpose.
- *
- * @author Carlos O'Ryan
- */
-
-#include "testing_exception.hpp"
-
-#include <boost/utility.hpp>
-
-#include <iostream>
-
-/**
- * @brief Used to count how many times a function gets called. The
- * unit test should create one instance per function.
- */
-class call_counter
-{
-public:
- inline call_counter()
- : count_(0)
- , failure_countdown_(0)
- {}
-
- inline long current_count() const
- {
- return count_;
- }
-
- inline void failure_countdown(long countdown)
- {
- failure_countdown_ = countdown;
- }
-
- inline void operator()()
- {
- ++count_;
- if (--failure_countdown_ == 0)
- {
- throw testing_exception();
- }
- }
-
-private:
- long count_;
- long failure_countdown_;
-};
-
-/**
- * @brief Used to detect if a testing_counter is "called" the right
- * number of times.
- */
-class expected_calls
- : private boost::noncopyable
-{
-public:
- inline expected_calls(call_counter const & counter)
- : current_count_(counter.current_count())
- , previous_count_(counter.current_count())
- , counter_(counter)
- { }
-
- inline bool expect(long n)
- {
- reset();
- return (previous_count_ + n == current_count_);
- }
-
- inline void reset()
- {
- previous_count_ = current_count_;
- current_count_ = counter_.current_count();
- }
-
- inline long current_count() const
- {
- return current_count_;
- }
-
- inline long previous_count() const
- {
- return previous_count_;
- }
-
-private:
- long current_count_;
- long previous_count_;
- call_counter const & counter_;
-};
-
-inline std::ostream & operator<<(std::ostream & os, expected_calls const & x)
-{
- return os << "current=" << x.current_count()
- << ",previous=" << x.previous_count();
-
-}
-
-#endif // guard_testing_counters_hpp
diff --git a/TAO/tests/Sequence_Iterators/testing_exception.hpp b/TAO/tests/Sequence_Iterators/testing_exception.hpp
deleted file mode 100644
index 8423204bfbb..00000000000
--- a/TAO/tests/Sequence_Iterators/testing_exception.hpp
+++ /dev/null
@@ -1,13 +0,0 @@
-#ifndef guard_testing_exception_hpp
-#define guard_testing_exception_hpp
-/**
- * @file
- *
- * @brief Simple exception to raise in the tests.
- *
- * @author Carlos O'Ryan
- */
-
-struct testing_exception {};
-
-#endif // guard_testing_exception_hpp
diff --git a/TAO/tests/Stack_Recursion/README b/TAO/tests/Stack_Recursion/README
index e0434613745..6f0eb8495dd 100644
--- a/TAO/tests/Stack_Recursion/README
+++ b/TAO/tests/Stack_Recursion/README
@@ -44,7 +44,7 @@ End Comment added August 14, 2007 <wilsond@ociweb.com>
A stress test for the stack recursion outlined in the bugzilla
under id 1125. Here is the link for the bug
-http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1125
+http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1125
This test is designed to show the bug. The test has a server running 4
threads and clients running 16 threads requesting around 30 MB of
diff --git a/TAO/tests/TransportCurrent/lib/Server_Request_Interceptor.h b/TAO/tests/TransportCurrent/lib/Server_Request_Interceptor.h
index bbcd2f7d8e1..3830c787546 100644
--- a/TAO/tests/TransportCurrent/lib/Server_Request_Interceptor.h
+++ b/TAO/tests/TransportCurrent/lib/Server_Request_Interceptor.h
@@ -84,16 +84,13 @@ namespace Test
//@}
protected:
-
/// The number of requests intercepted by this interceptor.
CORBA::ULong request_count_;
CORBA::String_var orb_id_;
TEST test_;
-
};
-
}
#endif /* SERVER_REQUEST_INTERCEPTOR_H */