diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2022-09-13 12:04:48 +0200 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2022-09-13 12:04:48 +0200 |
commit | 603ecf36e5a6142ced625b1579a3ea1d4e48bdd8 (patch) | |
tree | 84b17f3688d769a706daf9a2e216b79c1bca229a /TAO/TAO_IDL/be/be_visitor_typecode/struct_typecode.cpp | |
parent | fe03724176dcfd20e0f9a6e493198469242be6b6 (diff) | |
download | ATCD-603ecf36e5a6142ced625b1579a3ea1d4e48bdd8.tar.gz |
Use nullptr, check pointers with 1, use std::addressof, reduced sloc
* TAO/TAO_IDL/be/be_visitor_array/any_op_cs.cpp:
* TAO/TAO_IDL/be/be_visitor_component/executor_exs.cpp:
* TAO/TAO_IDL/be/be_visitor_component/servant_svs.cpp:
* TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp:
* TAO/TAO_IDL/be/be_visitor_interface/any_op_cs.cpp:
* TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_cs.cpp:
* TAO/TAO_IDL/be/be_visitor_typecode/struct_typecode.cpp:
* TAO/TAO_IDL/be/be_visitor_union/union_cs.cpp:
* TAO/TAO_IDL/be/be_visitor_union_branch/public_assign_cs.cpp:
* TAO/TAO_IDL/be/be_visitor_union_branch/public_reset_cs.cpp:
* TAO/TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp:
* TAO/TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_typecode/struct_typecode.cpp')
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_typecode/struct_typecode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 8bc43ce8117..3455662f9f8 100644 --- a/TAO/TAO_IDL/be/be_visitor_typecode/struct_typecode.cpp +++ b/TAO/TAO_IDL/be/be_visitor_typecode/struct_typecode.cpp @@ -105,7 +105,7 @@ TAO::be_visitor_struct_typecode::visit (AST_Structure * node, { // Should only be possible for user exceptions with no fields. os << "* const " << be_idt_nl - << fields_name.c_str () << " = 0;" << be_uidt_nl << be_uidt_nl; + << fields_name.c_str () << " = nullptr;" << be_uidt_nl << be_uidt_nl; } else { |