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
commita89c1e3a2a9ff4572458c534b20edb09bfa69a09 (patch)
treefb196814f4ccf6e113a16e21805518885c5e73d8 /ace/Timeprobe.cpp
parent2a965ce397fa2b12b12478ebd1a41c33812a2a79 (diff)
downloadATCD-a89c1e3a2a9ff4572458c534b20edb09bfa69a09.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)