From 6dbb3e3b0c624b1e4d51e7f3034918fe58e95970 Mon Sep 17 00:00:00 2001 From: Pixel <> Date: Thu, 22 Mar 2001 12:37:28 +0000 Subject: Last bugfixe (?) --- lib/BinHeap.cc | 2 ++ lib/CList.cc | 2 ++ lib/PCommon.cc | 3 --- po/PriorityLists.pot | 6 +++--- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/BinHeap.cc b/lib/BinHeap.cc index bb58141..b4df068 100644 --- a/lib/BinHeap.cc +++ b/lib/BinHeap.cc @@ -1,5 +1,6 @@ #include #include +#include #include "config.h" #include "BinHeap.h" #include "CList.h" @@ -77,6 +78,7 @@ BinHeap::~BinHeap(void) { if (Datas) free(Datas); + delete FP; } Key_t BinHeap::ReadKey(Cell C) diff --git a/lib/CList.cc b/lib/CList.cc index 7e1f39a..07378db 100644 --- a/lib/CList.cc +++ b/lib/CList.cc @@ -1,4 +1,5 @@ #include +#include #include "config.h" #include "CList.h" @@ -26,6 +27,7 @@ CList::CList(CList * IPoint, Datas_t IDatas, Key_t IKey):Left(IPoint), Right(IPo CList::CList(void):Left(NULL), Right(NULL), Key(0), Datas(NULL) { } + CList::~CList(void) { if (Right) diff --git a/lib/PCommon.cc b/lib/PCommon.cc index 1ceec6a..16a8a3f 100644 --- a/lib/PCommon.cc +++ b/lib/PCommon.cc @@ -46,10 +46,7 @@ PriorityList *PriorityList::GenericUnion(PriorityList * P) Key_t IKey; Datas_t IDatas; - cerr << "Dans l'union generique\n"; - while (!(P->IsEmpty())) { - cerr << "Extraction de la clef " << IKey << endl; IKey = P->Extract_Min(IDatas); Insert(IKey, IDatas); } diff --git a/po/PriorityLists.pot b/po/PriorityLists.pot index 9887f85..bc15857 100644 --- a/po/PriorityLists.pot +++ b/po/PriorityLists.pot @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2001-03-22 01:30+0100\n" +"POT-Creation-Date: 2001-03-22 13:52+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -429,11 +429,11 @@ msgid "" " |\n" msgstr "" -#: lib/BinHeap.cc:131 +#: lib/BinHeap.cc:133 msgid "Not enough memory" msgstr "" -#: lib/BinHeap.cc:161 +#: lib/BinHeap.cc:163 msgid "negative overflow" msgstr "" -- cgit v1.2.3