[Scummvm-cvs-logs] CVS: scummvm/common str.cpp,1.22,1.23 str.h,1.14,1.15

Max Horn fingolfin at users.sourceforge.net
Mon Oct 6 16:46:11 CEST 2003


Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1:/tmp/cvs-serv11389

Modified Files:
	str.cpp str.h 
Log Message:
added String::emptyString constant

Index: str.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/str.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- str.cpp	2 Oct 2003 17:43:01 -0000	1.22
+++ str.cpp	6 Oct 2003 23:19:01 -0000	1.23
@@ -25,6 +25,8 @@
 
 namespace Common {
 
+const String String::emptyString;
+
 String::String(const char *str, int len) {
 	_refCount = new int(1);
 	if (str && len != 0) {

Index: str.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/str.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- str.h	2 Oct 2003 17:43:01 -0000	1.14
+++ str.h	6 Oct 2003 23:19:01 -0000	1.15
@@ -78,6 +78,8 @@
 	int		_capacity;
 
 public:
+	static const String emptyString;
+
 	String() : _capacity(0) { _refCount = new int(1); }
 	String(const char *str, int len = -1);
 	String(const ConstString &str);





More information about the Scummvm-git-logs mailing list