mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 23:28:20 +00:00
PriorityQueue: initialization cleanup
This commit is contained in:
parent
a312851d6e
commit
8424b68d77
2 changed files with 13 additions and 15 deletions
|
@ -9,11 +9,9 @@
|
|||
#include "Reporter.h"
|
||||
#include "util.h"
|
||||
|
||||
PriorityQueue::PriorityQueue(int initial_size)
|
||||
PriorityQueue::PriorityQueue(int initial_size) : max_heap_size(initial_size)
|
||||
{
|
||||
max_heap_size = initial_size;
|
||||
heap = new PQ_Element*[max_heap_size];
|
||||
peak_heap_size = heap_size = cumulative_num = 0;
|
||||
}
|
||||
|
||||
PriorityQueue::~PriorityQueue()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue