[Scummvm-cvs-logs] CVS: scummvm/common str.cpp,1.9,1.10

Max Horn fingolfin at users.sourceforge.net
Fri Nov 15 09:46:03 CET 2002


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

Modified Files:
	str.cpp 
Log Message:
fix operator == and !=

Index: str.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/str.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- str.cpp	8 Oct 2002 00:11:41 -0000	1.9
+++ str.cpp	15 Nov 2002 17:45:23 -0000	1.10
@@ -227,7 +227,7 @@
 		return (x == 0) || (*x == 0);
 	if (x == 0)
 		return (_len == 0);
-	return (0 != strcmp(_str, x));
+	return (0 == strcmp(_str, x));
 }
 
 bool ConstString::operator !=(const ConstString& x) const
@@ -241,7 +241,7 @@
 		return (x != 0) && (*x != 0);
 	if (x == 0)
 		return (_len != 0);
-	return (0 == strcmp(_str, x));
+	return (0 != strcmp(_str, x));
 }
 
 bool ConstString::operator < (const ConstString& x) const





More information about the Scummvm-git-logs mailing list