From d57dd00975ec10a65238f0339dba036a611e17b2 Mon Sep 17 00:00:00 2001 From: chatty Date: Wed, 22 Dec 1993 12:26:40 +0000 Subject: changed arg of operator new Added lots of --- utils/DList.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'utils/DList.h') diff --git a/utils/DList.h b/utils/DList.h index 9c978b3..3c84753 100644 --- a/utils/DList.h +++ b/utils/DList.h @@ -37,7 +37,7 @@ friend class CcuDListIter; CcuDListLink* Next; inline CcuDListLink (CcuDListItem* e, CcuDListLink* p) : Entry (e), Previous (p), Next (p->Next) { Previous->Next = Next->Previous = this; } inline CcuDListLink (CcuDListItem* e) : Entry (e), Previous (this), Next (this) {} - void* operator new (unsigned int); + void* operator new (unsigned long); void operator delete (void*); }; #endif @@ -130,7 +130,7 @@ inline int Find (ITEM* it) const { return CcuDList::Find (it); } inline void Append (ITEM* it) { CcuDList::Append (it); } inline void Prepend (ITEM* it) { CcuDList::Prepend (it); } -inline CcuDListOf& operator << (ITEM* it) { CcuDList::Append (it); return *this; } +inline CcuDListOf & operator << (ITEM* it) { CcuDList::Append (it); return *this; } inline ITEM* RemoveFirst () { return (ITEM*) (CcuDList::RemoveFirst ()); } inline ITEM* RemoveLast () { return (ITEM*) (CcuDList::RemoveLast ()); } @@ -146,8 +146,8 @@ inline ITEM* RemoveAt (CcuDListIterOf & li) { return (ITEM*) CcuDList::Re template class CcuDListIterOf : public CcuDListIter { public: inline CcuDListIterOf (const CcuDListOf & l) : CcuDListIter (l) { } -inline CcuDListIterOf& operator = (const CcuDListOf & l) { return (CcuDListIterOf&) CcuDListIter::operator = (l); } -inline CcuDListIterOf& operator = (const CcuDListIterOf& li) { return (CcuDListIterOf&) CcuDListIter::operator = (li); } +inline CcuDListIterOf & operator = (const CcuDListOf & l) { return (CcuDListIterOf &) CcuDListIter::operator = (l); } +inline CcuDListIterOf & operator = (const CcuDListIterOf & li) { return (CcuDListIterOf &) CcuDListIter::operator = (li); } inline ITEM* operator * () const { return (ITEM*) CcuDListIter::operator * (); } inline int Find (ITEM* it) { return CcuDListIter::Find (it); } inline int FindBack (ITEM* it) { return CcuDListIter::FindBack (it); } -- cgit v1.1