summaryrefslogtreecommitdiff
path: root/ace/Timeprobe.cpp
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-01 17:18:59 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-01 17:18:59 +0000
commitc6ad692324909f64ec7dd3095f36de87a039b556 (patch)
treefb196814f4ccf6e113a16e21805518885c5e73d8 /ace/Timeprobe.cpp
parent33666e12306f8f764a65e99883b28b3b7776a71c (diff)
downloadATCD-c6ad692324909f64ec7dd3095f36de87a039b556.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Timeprobe.cpp')
-rw-r--r--ace/Timeprobe.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/ace/Timeprobe.cpp b/ace/Timeprobe.cpp
index b33af0fc4b0..e629109343b 100644
--- a/ace/Timeprobe.cpp
+++ b/ace/Timeprobe.cpp
@@ -22,8 +22,9 @@ ACE_Timeprobe<ACE_LOCK>::ACE_Timeprobe (u_long size,
max_size_ (size),
current_size_ (0)
{
- void *space = this->allocator_->malloc ((sizeof (ACE_timeprobe_t)) * this->max_size_);
- this->timeprobes_ = new ((ACE_timeprobe_t *) space) ACE_timeprobe_t[this->max_size_];
+ ACE_NEW_MALLOC (this->timeprobes_,
+ (ACE_timeprobe_t *) this->allocator_->malloc ((sizeof (ACE_timeprobe_t)) * this->max_size_),
+ ACE_timeprobe_t[this->max_size_]);
#ifdef VXWORKS
if (sysProcNumGet () == 0)