From 7c4324b96360fee6afd5c8681c77642078ed9b07 Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Wed, 5 May 2004 18:41:36 +0000 Subject: [PATCH] use of const functions --- amxmodx/CList.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amxmodx/CList.h b/amxmodx/CList.h index 0be47c37..1f9eaf7e 100755 --- a/amxmodx/CList.h +++ b/amxmodx/CList.h @@ -59,13 +59,13 @@ public: iterator a = begin(); while( a ) a.remove(); } - bool empty() { + bool empty() const{ return (head ? false : true); } void put( T* a ) { head = new CListEle( a , head ); } - int size() { + int size() const{ CListEle *p = head; int i = 0; while (p)