[Plib-cvs] CVS: plib/src/util ulLinkedList.cxx,1.2,1.3
Brought to you by:
sjbaker
From: Sebastian U. <ud...@us...> - 2002-03-21 19:26:07
|
Update of /cvsroot/plib/plib/src/util In directory usw-pr-cvs1:/tmp/cvs-serv32059 Modified Files: ulLinkedList.cxx Log Message: Return -1 from getNodePosition () and insertSorted () instead of 0 to indicate failure Index: ulLinkedList.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/util/ulLinkedList.cxx,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- ulLinkedList.cxx 20 Mar 2002 16:53:51 -0000 1.2 +++ ulLinkedList.cxx 21 Mar 2002 19:26:01 -0000 1.3 @@ -1,6 +1,6 @@ /* PLIB - A Suite of Portable Game Libraries - Copyright (C) 2001 Steve Baker + Copyright (C) 2002 Steve Baker This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public @@ -17,6 +17,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA For further information visit http://plib.sourceforge.net + + $Id$ */ @@ -73,8 +75,7 @@ curr = curr -> getNext () ; } - ulSetError ( UL_WARNING, "ulLinkedList::getNodePosition: No such node" ) ; - return 0 ; + return -1 ; } @@ -128,7 +129,7 @@ { ulSetError ( UL_WARNING, "ulLinkedList::insertSorted: This is not a sorted list !" ) ; - return 0 ; + return -1 ; } int pos = 0 ; |