diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-02-01 00:25:25 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-02-01 00:25:25 +0000 |
commit | db7b4ad3c63d16562d3a259e8dd4ace92aeacf87 (patch) | |
tree | bf0c509196240908dbea64ddda89f0b025b09648 | |
parent | ffae0803cf0fb9432d80d1198ea5c34ae1b745f8 (diff) | |
download | ATCD-db7b4ad3c63d16562d3a259e8dd4ace92aeacf87.tar.gz |
*** empty log message ***
-rw-r--r-- | tests/CDR_Test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/CDR_Test.cpp b/tests/CDR_Test.cpp index 138b6ad4fed..966166a6a0d 100644 --- a/tests/CDR_Test.cpp +++ b/tests/CDR_Test.cpp @@ -20,6 +20,7 @@ #include "test_config.h" #include "ace/Get_Opt.h" +#include "ace/Auto_ptr.h" #include "ace/CDR.h" #if defined(__BORLANDC__) && __BORLANDC__ >= 0x0530 @@ -169,12 +170,12 @@ test_get (ACE_InputCDR &cdr, const CDR_Test_Types &test_types) "read_string2[%d] failed\n", i), 1); - if (ACE_OS::strcmp (xstr, test_types.str) != 0) + auto_ptr<CDR::Char> auto_xstr (xstr); + if (ACE_OS::strcmp (auto_xstr.get (), test_types.str) != 0) ACE_ERROR_RETURN ((LM_ERROR, "string[%d] differs\n", i), 1); - delete [] xstr; } return 0; } |