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/List.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'utils/List.h') diff --git a/utils/List.h b/utils/List.h index 98311a9..72b015f 100644 --- a/utils/List.h +++ b/utils/List.h @@ -36,7 +36,7 @@ friend class CcuListIter; CcuListLink* Next; inline CcuListLink (CcuListItem* e, CcuListLink* n = 0) { Entry = e; Next = n ? n : this; } CcuListLink* Previous (); - void* operator new (unsigned int); + void* operator new (unsigned long); void operator delete (void*); }; #endif @@ -129,7 +129,7 @@ inline int Find (ITEM* it) const { return CcuList::Find (it); } inline void Append (ITEM* it) { CcuList::Append (it); } inline void Prepend (ITEM* it) { CcuList::Prepend (it); } -inline CcuListOf& operator << (ITEM* it) { CcuList::Append (it); return *this; } +inline CcuListOf& operator << (ITEM* it) { CcuList::Append (it); return *this; } inline ITEM* RemoveFirst () { return (ITEM*) (CcuList::RemoveFirst ()); } inline ITEM* RemoveLast () { return (ITEM*) (CcuList::RemoveLast ()); } @@ -144,9 +144,9 @@ inline ITEM* RemoveAfter (const CcuListIterOf & li) { return (ITEM*) CcuL template class CcuListIterOf : public CcuListIter { public: inline CcuListIterOf (const CcuListOf & l) : CcuListIter (l) { } -inline CcuListIterOf& operator = (const CcuListOf & l) { return (CcuListIterOf&) CcuListIter::operator = (l); } -inline CcuListIterOf& operator = (const CcuListIterOf& li) { return (CcuListIterOf&) CcuListIter::operator = (li); } -inline CcuListIterOf& operator ++ () { return (CcuListIterOf&) CcuListIter::operator ++ (); } +inline CcuListIterOf& operator = (const CcuListOf & l) { return (CcuListIterOf &) CcuListIter::operator = (l); } +inline CcuListIterOf& operator = (const CcuListIterOf & li) { return (CcuListIterOf &) CcuListIter::operator = (li); } +inline CcuListIterOf& operator ++ () { return (CcuListIterOf &) CcuListIter::operator ++ (); } inline ITEM* operator * () const { return (ITEM*) CcuListIter::operator * (); } inline int Find (ITEM* it) { return CcuListIter::Find (it); } }; -- cgit v1.1