diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-12-17 14:31:36 +0100 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-12-17 14:31:36 +0100 |
commit | a1ef42d61bc921c7e942f24583a0af6982f96a42 (patch) | |
tree | 4e47928027044d1c366b3645c9b891a2f1a712c8 /TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.cpp | |
parent | 4094875e8a295d08a3b28971f8c4bf5cfd2d3292 (diff) | |
download | ATCD-a1ef42d61bc921c7e942f24583a0af6982f96a42.tar.gz |
Use nullptr
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.cpp')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.cpp index 3a6b062ce0f..f5a486ffc2c 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.cpp @@ -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 |