[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
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/gui dialog.cpp,1.29,1.30
- Next message: [Scummvm-cvs-logs] CVS: scummvm/gui ListWidget.cpp,1.12,1.13 ListWidget.h,1.9,1.10 ScrollBarWidget.cpp,1.6,1.7 ScrollBarWidget.h,1.4,1.5 dialog.cpp,1.30,1.31 dialog.h,1.17,1.18 widget.cpp,1.25,1.26 widget.h,1.23,1.24
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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);
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/gui dialog.cpp,1.29,1.30
- Next message: [Scummvm-cvs-logs] CVS: scummvm/gui ListWidget.cpp,1.12,1.13 ListWidget.h,1.9,1.10 ScrollBarWidget.cpp,1.6,1.7 ScrollBarWidget.h,1.4,1.5 dialog.cpp,1.30,1.31 dialog.h,1.17,1.18 widget.cpp,1.25,1.26 widget.h,1.23,1.24
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list