summaryrefslogtreecommitdiff
path: root/ace/Arg_Shifter.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-06-26 17:54:04 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-06-26 17:54:04 +0000
commit02030339816b817bd023a02f51b770dba278e79e (patch)
treeec1066f6117d9c1f6831b9b52eb7d7b5e663b6cd /ace/Arg_Shifter.cpp
parent58ca4868afa9f30639757a4e76d3cc4fcef9c7c3 (diff)
downloadATCD-02030339816b817bd023a02f51b770dba278e79e.tar.gz
.
Diffstat (limited to 'ace/Arg_Shifter.cpp')
-rw-r--r--ace/Arg_Shifter.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/ace/Arg_Shifter.cpp b/ace/Arg_Shifter.cpp
index dce44bcab60..938ecde49dc 100644
--- a/ace/Arg_Shifter.cpp
+++ b/ace/Arg_Shifter.cpp
@@ -6,7 +6,9 @@
ACE_RCSID(ace, Arg_Shifter, "$Id$")
-ACE_Arg_Shifter::ACE_Arg_Shifter (int &argc, char **argv, char **temp)
+ACE_Arg_Shifter::ACE_Arg_Shifter (int &argc,
+ char **argv,
+ char **temp)
: argc_ (argc),
total_size_ (argc),
temp_ (temp),
@@ -17,7 +19,8 @@ ACE_Arg_Shifter::ACE_Arg_Shifter (int &argc, char **argv, char **temp)
{
// If not provided with one, allocate a temporary array.
if (this->temp_ == 0)
- this->temp_ = new char *[this->total_size_];
+ ACE_NEW (this->temp_,
+ char *[this->total_size_]);
if (this->temp_ != 0)
{