summaryrefslogtreecommitdiff
path: root/ACE
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2015-03-01 19:22:09 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2015-03-01 19:22:09 +0100
commitf8dab2a45cce95c6165033efed159ec33397244e (patch)
treec542f4e4c6061448ac004a1d94d265a7f7374b3c /ACE
parent986faed4758065ea56c615232938b818bdbf5b22 (diff)
downloadATCD-f8dab2a45cce95c6165033efed159ec33397244e.tar.gz
Fixed coverity 1271860 Non-array delete for scalars
Diffstat (limited to 'ACE')
-rw-r--r--ACE/examples/Reactor/TP_Reactor/client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ACE/examples/Reactor/TP_Reactor/client.cpp b/ACE/examples/Reactor/TP_Reactor/client.cpp
index a946d6bef07..eb6deecf8ee 100644
--- a/ACE/examples/Reactor/TP_Reactor/client.cpp
+++ b/ACE/examples/Reactor/TP_Reactor/client.cpp
@@ -51,8 +51,8 @@ int ACE_TMAIN(int argc, ACE_TCHAR **argv) {
ACE_TEXT ("%N:%l: Failed to allocate ")
ACE_TEXT ("data buffer.\n")), -1);
- // put someData in an auto_ptr so it gets deleted automatically
- auto_ptr<char> pSomeData(someData);
+ // put someData in a kind of auto_ptr so it gets deleted automatically
+ ACE_Auto_Array_Ptr<char> pSomeData(someData);
// parse the <count> argument if available
if ((argc == 3) && (((count = ACE_OS::strtol(argv[2], 0, 10)) < 1) ||