diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-07-29 13:43:52 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-07-29 13:43:52 +0000 |
commit | 2b0ec8de90704cad70afe4836a32ff56e61b4b80 (patch) | |
tree | 15dca4a72cc3934a96009f6f418de491cfa83361 /tests/IOStream_Test.cpp | |
parent | fc9704dc1f548e771a2417d178db2c68fbf3e796 (diff) | |
download | ATCD-2b0ec8de90704cad70afe4836a32ff56e61b4b80.tar.gz |
(client,server): use ACE_NEW_RETURN instead of "new"
Diffstat (limited to 'tests/IOStream_Test.cpp')
-rw-r--r-- | tests/IOStream_Test.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/IOStream_Test.cpp b/tests/IOStream_Test.cpp index ddd23049a71..2c57de6eec6 100644 --- a/tests/IOStream_Test.cpp +++ b/tests/IOStream_Test.cpp @@ -163,7 +163,8 @@ client (void *arg = 0) // g++ 2.7.2.1 and Sun C++ 4.2 on Solaris 2.5.1. (It does work on // Linux, so the code seems fine.) If we manage the // storage ourselves, we _will_ destroy it at the end of this function. - ACE_SOCK_IOStream *server_p = new ACE_SOCK_IOStream; + ACE_SOCK_IOStream *server_p; + ACE_NEW_RETURN (server_p, ACE_SOCK_IOStream, 0); ACE_SOCK_IOStream &server = *server_p; ACE_INET_Addr *remote_addr = (ACE_INET_Addr *) arg; @@ -253,7 +254,8 @@ server (void *arg = 0) // g++ 2.7.2.1 and Sun C++ 4.2 on Solaris 2.5.1. (It does work on // Linux, so the code seems fine.) If we manage the // storage ourselves, we _will_ destroy it at the end of this function. - ACE_SOCK_IOStream *client_handler_p = new ACE_SOCK_IOStream; + ACE_SOCK_IOStream *client_handler_p; + ACE_NEW_RETURN (client_handler_p, ACE_SOCK_IOStream, 0); ACE_SOCK_IOStream &client_handler = *client_handler_p; ACE_INET_Addr server_addr; |