diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-07-03 18:26:32 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-07-03 18:26:32 +0000 |
commit | 476508361329e0c9a431fdbc86344c3a6caf0571 (patch) | |
tree | 4cf3ea03c84abac2a37ee8bfc4ec6cf47226b5bd /ace/Strategies_T.cpp | |
parent | cb1f0768e2db53d76f173c687003d098cf6bb456 (diff) | |
download | ATCD-476508361329e0c9a431fdbc86344c3a6caf0571.tar.gz |
ChangeLogTag:Sat Jul 3 12:05:46 1999 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
Diffstat (limited to 'ace/Strategies_T.cpp')
-rw-r--r-- | ace/Strategies_T.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/ace/Strategies_T.cpp b/ace/Strategies_T.cpp index 55898c2ecc8..47a832cbb99 100644 --- a/ace/Strategies_T.cpp +++ b/ace/Strategies_T.cpp @@ -77,18 +77,17 @@ ACE_DLL_Strategy<SVC_HANDLER>::make_svc_handler (SVC_HANDLER *&sh) // Create an ACE_Service_Type containing the SVC_Handler and // insert into this->svc_rep_; - ACE_Service_Type_Impl *stp = - new ACE_Service_Object_Type (svc_handler, this->svc_name_); - - if (stp == 0) - { - errno = ENOMEM; - return -1; - } + ACE_Service_Type_Impl *stp; + ACE_NEW_RETURN (stp, + ACE_Service_Object_Type (svc_handler, + this->svc_name_), + -1); ACE_Service_Type *srp = - new ACE_Service_Type (this->svc_name_, stp, handle, 1); - + new ACE_Service_Type (this->svc_name_, + stp, + handle, + 1); if (srp == 0) { delete stp; |