[Scummvm-cvs-logs] CVS: scummvm util.h,1.4,1.5

Max Horn fingolfin at users.sourceforge.net
Sat Jul 27 06:28:05 CEST 2002


Update of /cvsroot/scummvm/scummvm
In directory usw-pr-cvs1:/tmp/cvs-serv21032

Modified Files:
	util.h 
Log Message:
added isEmpty() methods to String and List class; fixed crasher that occured when saving/loading in NewGUI when nothing was selected

Index: util.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/util.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- util.h	25 Jul 2002 16:29:07 -0000	1.4
+++ util.h	27 Jul 2002 13:27:34 -0000	1.5
@@ -103,6 +103,8 @@
 		_size = 0;
 		_capacity = 0;
 	}
+	
+	bool isEmpty() const	{ return (_size == 0); }
 
 protected:
 	void ensureCapacity(int new_len)
@@ -149,6 +151,8 @@
 	
 	void deleteLastChar();
 	void clear();
+
+	bool isEmpty() const	{ return (_len == 0); }
 
 protected:
 	void ensureCapacity(int new_len, bool keep_old);





More information about the Scummvm-git-logs mailing list