From 4cb93b09f13a4ad3da30b2c5c859c7c3896b38bc Mon Sep 17 00:00:00 2001 From: irfan Date: Mon, 1 Jun 1998 18:03:22 +0000 Subject: *** empty log message *** --- ace/Timeprobe.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'ace/Timeprobe.cpp') diff --git a/ace/Timeprobe.cpp b/ace/Timeprobe.cpp index e629109343b..8ce9286ac0c 100644 --- a/ace/Timeprobe.cpp +++ b/ace/Timeprobe.cpp @@ -14,17 +14,13 @@ #include "ace/High_Res_Timer.h" template -ACE_Timeprobe::ACE_Timeprobe (u_long size, - ACE_Allocator *alloc) +ACE_Timeprobe::ACE_Timeprobe (u_long size) : timeprobes_ (0), - allocator_ (alloc != 0 ? alloc : ACE_Allocator::instance ()), lock_ (), max_size_ (size), current_size_ (0) { - ACE_NEW_MALLOC (this->timeprobes_, - (ACE_timeprobe_t *) this->allocator_->malloc ((sizeof (ACE_timeprobe_t)) * this->max_size_), - ACE_timeprobe_t[this->max_size_]); + this->timeprobes_ = new ACE_timeprobe_t[this->max_size_]; #ifdef VXWORKS if (sysProcNumGet () == 0) @@ -41,10 +37,7 @@ ACE_Timeprobe::ACE_Timeprobe (u_long size, template ACE_Timeprobe::~ACE_Timeprobe (void) { - for (u_long i = 0; i < this->max_size_; i++) - this->timeprobes_[i].ACE_timeprobe_t::~ACE_timeprobe_t (); - - this->allocator_->free (this->timeprobes_); + delete this->timeprobes_; } template void -- cgit v1.2.1