summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_connector/facet_ami_exh.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2020-12-07 11:45:35 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2020-12-07 11:47:33 +0100
commite1d1203db3e48aa29bb3774f3ba444da26091fb1 (patch)
tree2806da54321e52369b388f3129e2e0a1ca65de82 /TAO/TAO_IDL/be/be_visitor_connector/facet_ami_exh.cpp
parentc62ecd5955c1350fa25f95deb9bce2c81bc70f1c (diff)
downloadATCD-e1d1203db3e48aa29bb3774f3ba444da26091fb1.tar.gz
Use nullptr instead of 0 in tao_idl
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_connector/facet_ami_exh.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_connector/facet_ami_exh.cpp18
1 files changed, 9 insertions, 9 deletions
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 0651e27403d..15d97e0fda8 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()
@@ -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);
@@ -208,12 +208,12 @@ be_visitor_facet_ami_exh::init (bool for_impl)
AST_Decl *d = s->lookup_by_name (sn, true, false);
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
@@ -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,7 +312,7 @@ be_visitor_facet_ami_exh::gen_facet_executor_class (void)
sn->destroy ();
delete sn;
- sn = 0;
+ sn = nullptr;
be_interface *sync_iface =
dynamic_cast<be_interface*> (d);