summaryrefslogtreecommitdiff
path: root/ace/Timeprobe.cpp
diff options
context:
space:
mode:
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)