From 695304d5aa8235993b35f933dd44339e68b211e4 Mon Sep 17 00:00:00 2001 From: chatty Date: Mon, 13 Mar 1995 15:03:50 +0000 Subject: unsigned long -> size_t (finally!) --- utils/HashTable.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'utils/HashTable.h') diff --git a/utils/HashTable.h b/utils/HashTable.h index c30e5c7..2db7b93 100644 --- a/utils/HashTable.h +++ b/utils/HashTable.h @@ -3,7 +3,7 @@ * * by Stephane Chatty * - * Copyright 1991, 1992 + * Copyright 1991-1995 * Laboratoire de Recherche en Informatique (LRI) * Centre d'Etudes de la Navigation Aerienne (CENA) * @@ -19,6 +19,7 @@ #include "cplus_bugs.h" +#include class CcuAllocator; @@ -42,7 +43,7 @@ inline void SetInfo (CcuHashItem* p) { Info = p; } inline CcuHashItem* GetInfo () const { return Info; } inline const void* GetKey () const { return Key; } - void* operator new (unsigned long); + void* operator new (size_t); void operator delete (void*); }; @@ -106,7 +107,7 @@ inline int GetSize () const { return Size; } class CcuDictionnary : public CcuHashTable { protected: static void* CopyString (const void*); -static void DeleteString (void*); +static void DeleteString (const void*); static int CompareString (const void*, const void*); @@ -147,7 +148,8 @@ public: inline CcuHashIter (const CcuHashTable& t) : CcuHashCellIter (t) { } inline ~CcuHashIter () {} -inline CcuHashIter& operator ++ () { ++((CcuHashCellIter) (*this)); return *this; } +//inline CcuHashIter& operator ++ () { ++((CcuHashCellIter) (*this)); return *this; } +inline CcuHashIter& operator ++ () { return (CcuHashIter&)(this->CcuHashCellIter::operator ++ ()); } inline CcuHashItem* operator * () const { return CurCell ? CurCell->GetInfo () : 0; } }; -- cgit v1.1