@@ -73,7 +73,7 @@ ACE_Acceptor<SVC_HANDLER, PEER_ACCEPTOR>::open
7373
7474 // Must supply a valid Reactor to Acceptor::open()...
7575
76- if (reactor == 0 )
76+ if (reactor == nullptr )
7777 {
7878 errno = EINVAL;
7979 return -1 ;
@@ -187,7 +187,7 @@ ACE_Acceptor<SVC_HANDLER, PEER_ACCEPTOR>::info (ACE_TCHAR **strp,
187187 addr_str,
188188 ACE_TEXT (" # acceptor factory\n " ));
189189
190- if (*strp == 0 && (*strp = ACE_OS::strdup (buf)) == 0 )
190+ if (*strp == nullptr && (*strp = ACE_OS::strdup (buf)) == nullptr )
191191 return -1 ;
192192 else
193193 ACE_OS::strsncpy (*strp, buf, length);
@@ -563,18 +563,18 @@ ACE_Strategy_Acceptor<SVC_HANDLER, PEER_ACCEPTOR>::open
563563{
564564 ACE_TRACE (" ACE_Strategy_Acceptor<SVC_HANDLER, PEER_ACCEPTOR>::open" );
565565
566- if (this ->service_name_ == 0 && service_name != 0 )
566+ if (this ->service_name_ == 0 && service_name != nullptr )
567567 ACE_ALLOCATOR_RETURN (this ->service_name_ ,
568568 ACE_OS::strdup (service_name),
569569 -1 );
570- if (this ->service_description_ == 0 && service_description != 0 )
570+ if (this ->service_description_ == 0 && service_description != nullptr )
571571 ACE_ALLOCATOR_RETURN (this ->service_description_ ,
572572 ACE_OS::strdup (service_description),
573573 -1 );
574574 this ->reactor (reactor);
575575
576576 // Must supply a valid Reactor to Acceptor::open()...
577- if (reactor == 0 )
577+ if (reactor == nullptr )
578578 {
579579 errno = EINVAL;
580580 return -1 ;
@@ -659,15 +659,15 @@ ACE_Strategy_Acceptor<SVC_HANDLER, PEER_ACCEPTOR>::ACE_Strategy_Acceptor
659659 delete_concurrency_strategy_ (false ),
660660 scheduling_strategy_ (0 ),
661661 delete_scheduling_strategy_ (false ),
662- service_name_ (0 ),
663- service_description_ (0 )
662+ service_name_ (nullptr ),
663+ service_description_ (nullptr )
664664{
665665 ACE_TRACE (" ACE_Strategy_Acceptor<SVC_HANDLER, PEER_ACCEPTOR>::ACE_Strategy_Acceptor" );
666666
667- if (service_name != 0 )
667+ if (service_name != nullptr )
668668 ACE_ALLOCATOR (this ->service_name_ ,
669669 ACE_OS::strdup (service_name));
670- if (service_description != 0 )
670+ if (service_description != nullptr )
671671 ACE_ALLOCATOR (this ->service_description_ ,
672672 ACE_OS::strdup (service_description));
673673 this ->use_select_ = use_select;
@@ -694,8 +694,8 @@ ACE_Strategy_Acceptor<SVC_HANDLER, PEER_ACCEPTOR>::ACE_Strategy_Acceptor
694694 delete_concurrency_strategy_ (false ),
695695 scheduling_strategy_ (0 ),
696696 delete_scheduling_strategy_ (false ),
697- service_name_ (0 ),
698- service_description_ (0 )
697+ service_name_ (nullptr ),
698+ service_description_ (nullptr )
699699{
700700 ACE_TRACE (" ACE_Strategy_Acceptor<SVC_HANDLER, PEER_ACCEPTOR>::ACE_Strategy_Acceptor" );
701701
@@ -859,7 +859,7 @@ ACE_Strategy_Acceptor<SVC_HANDLER, PEER_ACCEPTOR>::info (ACE_TCHAR **strp,
859859 ? ACE_TEXT (" <unknown>" )
860860 : this ->service_description_ );
861861
862- if (*strp == 0 && (*strp = ACE_OS::strdup (buf)) == 0 )
862+ if (*strp == nullptr && (*strp = ACE_OS::strdup (buf)) == nullptr )
863863 return -1 ;
864864 else
865865 ACE_OS::strsncpy (*strp, buf, length);
@@ -1031,7 +1031,7 @@ ACE_Oneshot_Acceptor<SVC_HANDLER, PEER_ACCEPTOR>::register_handler
10311031 this ->restart_ = restart;
10321032 ACE_Time_Value *tv = (ACE_Time_Value *) synch_options.time_value ();
10331033
1034- if (tv != 0
1034+ if (tv != nullptr
10351035 && this ->reactor ()->schedule_timer (this ,
10361036 synch_options.arg (),
10371037 *tv) == -1 )
@@ -1222,7 +1222,7 @@ ACE_Oneshot_Acceptor<SVC_HANDLER, PEER_ACCEPTOR>::info (ACE_TCHAR **strp,
12221222 addr_str,
12231223 ACE_TEXT (" #oneshot acceptor factory\n " ));
12241224
1225- if (*strp == 0 && (*strp = ACE_OS::strdup (buf)) == 0 )
1225+ if (*strp == nullptr && (*strp = ACE_OS::strdup (buf)) == nullptr )
12261226 return -1 ;
12271227 else
12281228 ACE_OS::strsncpy (*strp, buf, length);
0 commit comments