[Plib-cvs] CVS: plib/src/util ul.h,1.33,1.34 ulList.cxx,1.2,1.3
Brought to you by:
sjbaker
From: Sebastian U. <ud...@us...> - 2002-03-03 14:17:21
|
Update of /cvsroot/plib/plib/src/util In directory usw-pr-cvs1:/tmp/cvs-serv25359/util Modified Files: ul.h ulList.cxx Log Message: Made ulList const-correct Index: ul.h =================================================================== RCS file: /cvsroot/plib/plib/src/util/ul.h,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -r1.33 -r1.34 --- ul.h 14 Dec 2001 15:24:40 -0000 1.33 +++ ul.h 3 Mar 2002 14:17:16 -0000 1.34 @@ -652,11 +652,12 @@ replaceEntity ( searchForEntity ( old_entity ), new_entity ) ; } - int getNumEntities (void) { return total ; } void *getNextEntity (void) { return getEntity ( next+1 ) ; } - int searchForEntity ( void *entity ) ; + + int getNumEntities (void) const { return total ; } + int searchForEntity ( void *entity ) const ; } ; - + extern int ulStrNEqual ( const char *s1, const char *s2, int len ); extern int ulStrEqual ( const char *s1, const char *s2 ); Index: ulList.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/util/ulList.cxx,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- ulList.cxx 7 Nov 2001 23:51:10 -0000 1.2 +++ ulList.cxx 3 Mar 2002 14:17:16 -0000 1.3 @@ -76,7 +76,7 @@ } -int ulList::searchForEntity ( void *entity ) +int ulList::searchForEntity ( void *entity ) const { for ( unsigned int i = 0 ; i < total ; i++ ) if ( entity_list [ i ] == entity ) |