From b75cdf41d321bce00a3f7c0c980c1f6cdc6117a8 Mon Sep 17 00:00:00 2001 From: Pixel <> Date: Wed, 21 Mar 2001 10:58:51 +0000 Subject: Bugfixes --- lib/BinHeap.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/BinHeap.cc') diff --git a/lib/BinHeap.cc b/lib/BinHeap.cc index b57a31d..bb58141 100644 --- a/lib/BinHeap.cc +++ b/lib/BinHeap.cc @@ -66,10 +66,11 @@ bool BinHeap::Lower_Key(Cell x, Key_t NKey) return true; } -BinHeap::BinHeap(void):FP(new CList) +BinHeap::BinHeap(void) : FP(new CList) { Key = 0; Datas = NULL; + type = T_BINHEAP; } BinHeap::~BinHeap(void) @@ -80,7 +81,6 @@ BinHeap::~BinHeap(void) Key_t BinHeap::ReadKey(Cell C) { - cerr << "Lecture de " << C << endl; return ((binheap_t *) FP->ReadDatas(C))->Key; } @@ -143,7 +143,6 @@ Cell BinHeap::Insert(Key_t IKey, Datas_t const &IDatas) binheap[i - 1] = newcell; r = binheap[i - 1].FP = FP->Insert(0, &(binheap[i - 1])); - cerr << "Ajout de " << r << endl; return r; } -- cgit v1.2.3